/* assets/css/style.css */
:root {
    --bg-dark: #0f1115;
    --bg-darker: #0a0b0e;
    --bg-card: rgba(255, 255, 255, 0.03);
    --border-color: rgba(255, 255, 255, 0.08);
    --primary: #2AABEE; /* Telegram Blue */
    --primary-hover: #1A7FB4; /* Darker Blue for better contrast */
    --text-main: #f5f5f5;
    --text-muted: #8b92a5;
    --success: #33c648;
    --warning: #f1b300;
    --danger: #ff4d4f;
    --radius-md: 12px;
    --radius-lg: 20px;
    --shadow-glow: 0 0 20px rgba(42, 171, 238, 0.3);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-hover);
}

/* Typography */
h1, h2, h3, h4 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.text-center { text-align: center; }
.text-right { text-align: right; }
.text-muted { color: var(--text-muted); }
.text-primary { color: var(--primary); }
.text-success { color: var(--success); }
.text-warning { color: var(--warning); }
.text-danger { color: var(--danger); }
.font-weight-bold { font-weight: 600; }
.text-sm { font-size: 0.875rem; }

/* Utilities */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
.d-flex { display: flex; }
.d-none { display: none; }
.justify-content-between { justify-content: space-between; }
.align-items-center { align-items: center; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.mb-5 { margin-bottom: 3rem; }
.mt-4 { margin-top: 1.5rem; }
.mt-5 { margin-top: 3rem; }
.mr-1 { margin-right: 0.25rem; }
.py-4 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.pb-2 { padding-bottom: 0.5rem; }
.w-100 { width: 100%; }
.max-w-md { max-width: 600px; }
.mx-auto { margin-left: auto; margin-right: auto; }
.border-bottom { border-bottom: 1px solid var(--border-color); }
.truncate-text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

@media (min-width: 768px) {
    .d-md-flex { display: flex; }
    .d-md-none { display: none; }
}

/* Grid */
.grid {
    display: grid;
    gap: 24px;
}
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }

@media (min-width: 768px) {
    .grid-2 { grid-template-columns: repeat(2, 1fr); }
    .grid-3 { grid-template-columns: repeat(3, 1fr); }
}

/* Components */
.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-size: 1rem;
}

.btn-lg { padding: 14px 28px; font-size: 1.125rem; }
.btn-primary {
    background: var(--primary);
    color: #fff;
    border: 1px solid transparent;
}
.btn-primary:hover {
    background: var(--primary-hover);
    border-color: #15628b;
    box-shadow: 0 4px 12px rgba(26, 127, 180, 0.4);
    transform: translateY(-1px);
}
.glow-effect:hover {
    box-shadow: var(--shadow-glow);
    transform: translateY(-2px);
}
.btn-outline {
    background: transparent;
    color: var(--text-main);
    border: 1px solid var(--border-color);
}
.btn-outline:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
}
.icon-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.25rem;
    cursor: pointer;
    transition: var(--transition);
    padding: 4px;
    border-radius: 4px;
}
.icon-btn:hover {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.05);
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.badge-success { background: rgba(51, 198, 72, 0.15); color: var(--success); }
.badge-warning { background: rgba(241, 179, 0, 0.15); color: var(--warning); }
.badge-danger { background: rgba(255, 77, 79, 0.15); color: var(--danger); }
.badge-primary { background: rgba(42, 171, 238, 0.15); color: var(--primary); }
.badge-pill {
    display: inline-flex;
    align-items: center;
    padding: 6px 16px;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    font-size: 0.875rem;
}
.badge-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--success);
    margin-right: 8px;
    box-shadow: 0 0 10px var(--success);
}

/* Forms */
.form-group { margin-bottom: 1.5rem; }
.form-label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-muted);
    font-size: 0.875rem;
}
.form-control {
    width: 100%;
    padding: 12px 16px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-main);
    font-size: 1rem;
    transition: var(--transition);
}
.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(42, 171, 238, 0.2);
}
.input-group { position: relative; }
.input-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}
.pl-5 { padding-left: 2.5rem !important; }

/* Tables */
.table {
    width: 100%;
    border-collapse: collapse;
}
.table th, .table td {
    padding: 16px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}
.table th {
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.875rem;
}
.table tbody tr:hover {
    background: rgba(255, 255, 255, 0.02);
}
.table tbody tr:last-child td {
    border-bottom: none;
}
.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* Alerts */
.alert {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 0.875rem;
}
.alert-success { background: rgba(51, 198, 72, 0.15); color: var(--success); border: 1px solid rgba(51, 198, 72, 0.3); }
.alert-error { background: rgba(255, 77, 79, 0.15); color: var(--danger); border: 1px solid rgba(255, 77, 79, 0.3); }

/* Landing Page Specific */
.landing-body { padding-top: 80px; }
.bg-darker { background-color: var(--bg-darker); }
.text-gradient {
    background: linear-gradient(135deg, #2AABEE 0%, #007bb5 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.section { padding: 80px 0; }
.section-title { font-size: 2.5rem; margin-bottom: 1rem; }
.section-desc { color: var(--text-muted); font-size: 1.125rem; max-width: 600px; margin: 0 auto; }

.glass-nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: 80px;
    background: rgba(15, 17, 21, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
}
.nav-container { height: 100%; display: flex; align-items: center; justify-content: space-between; }
.logo { font-size: 1.5rem; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.nav-links { display: flex; gap: 24px; }
.nav-links a { color: var(--text-main); font-weight: 500; }
.nav-links a:hover { color: var(--primary); }

.hero-container {
    display: flex;
    align-items: center;
    min-height: calc(100vh - 80px);
    gap: 40px;
}
.hero-content { flex: 1; }
.hero-title { font-size: 3.5rem; margin-bottom: 1.5rem; line-height: 1.1; }
.hero-subtitle { font-size: 1.25rem; color: var(--text-muted); margin-bottom: 2rem; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-image { flex: 1; position: relative; }
.blur-blob {
    position: absolute;
    width: 300px; height: 300px;
    border-radius: 50%;
    filter: blur(100px);
    z-index: -1;
}
.blur-blob.top-right { top: -50px; right: -50px; background: rgba(42, 171, 238, 0.2); }
.blur-blob.bottom-left { bottom: -50px; left: -50px; background: rgba(138, 43, 226, 0.15); }

.mockup-card { padding: 0; overflow: hidden; border-radius: 12px; }
.mockup-header { padding: 12px 16px; background: rgba(0,0,0,0.3); display: flex; gap: 8px; border-bottom: 1px solid var(--border-color); }
.dot { width: 12px; height: 12px; border-radius: 50%; }
.dot.red { background: #ff5f56; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #27c93f; }
.mockup-body { padding: 24px; }
.mockup-body pre { color: #a5d6ff; font-family: monospace; font-size: 0.9rem; white-space: pre-wrap; }

.feature-card { text-align: center; padding: 40px 24px; transition: var(--transition); }
.feature-card:hover { transform: translateY(-10px); border-color: rgba(42, 171, 238, 0.3); }
.feature-icon { font-size: 3rem; color: var(--primary); margin-bottom: 1.5rem; }

.pricing-card { display: flex; flex-direction: column; position: relative; }
.pricing-card.premium { border-color: var(--primary); box-shadow: var(--shadow-glow); }
.popular-badge {
    position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
    background: var(--primary); color: #fff;
    padding: 4px 12px; border-radius: 20px; font-size: 0.75rem; font-weight: 600;
}
.pricing-header { text-align: center; margin-bottom: 24px; padding-bottom: 24px; border-bottom: 1px solid var(--border-color); }
.price { font-size: 3rem; font-weight: 700; color: var(--text-main); }
.period { font-size: 1rem; color: var(--text-muted); font-weight: 400; }
.pricing-features { list-style: none; flex-grow: 1; }
.pricing-features li { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.pricing-features li i { color: var(--success); }

.footer { padding: 40px 0; border-top: 1px solid var(--border-color); }

@media (max-width: 768px) {
    .hero-container { flex-direction: column; text-align: center; padding-top: 40px; }
    .hero-title { font-size: 2.5rem; }
    .hero-actions { justify-content: center; }
}