/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #0088cc;
    --primary-dark: #006699;
    --secondary-color: #00a5d6;
    --gradient-start: #0088cc;
    --gradient-end: #00d4aa;
    --text-primary: #1a1a1a;
    --text-secondary: #6b7280;
    --text-light: #9ca3af;
    --bg-primary: #ffffff;
    --bg-secondary: #f9fafb;
    --bg-tertiary: #f3f4f6;
    --border-color: #e5e7eb;
    --success-color: #10b981;
    --danger-color: #dc2626;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --error-color: #ef4444;
    --warning-color: #f59e0b;
    --info-color: #3b82f6;
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    top: 80px;
    right: 24px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: none;
}

.toast {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    min-width: 300px;
    max-width: 500px;
    opacity: 0;
    transform: translateX(400px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: auto;
    border-left: 4px solid;
}

.toast.show {
    opacity: 1;
    transform: translateX(0);
}

.toast.hide {
    opacity: 0;
    transform: translateX(400px);
}

.toast-success {
    border-left-color: var(--success-color);
}

.toast-error {
    border-left-color: var(--error-color);
}

.toast-warning {
    border-left-color: var(--warning-color);
}

.toast-info {
    border-left-color: var(--info-color);
}

.toast-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    font-weight: 700;
    font-size: 14px;
    flex-shrink: 0;
}

.toast-success .toast-icon {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success-color);
}

.toast-error .toast-icon {
    background: rgba(239, 68, 68, 0.1);
    color: var(--error-color);
}

.toast-warning .toast-icon {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning-color);
}

.toast-info .toast-icon {
    background: rgba(59, 130, 246, 0.1);
    color: var(--info-color);
}

.toast-message {
    flex: 1;
    color: var(--text-primary);
    font-size: 14px;
    line-height: 1.5;
}

.toast-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s;
    flex-shrink: 0;
}

.toast-close:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

@media (max-width: 768px) {
    .toast-container {
        top: 70px;
        right: 16px;
        left: 16px;
    }

    .toast {
        min-width: auto;
        max-width: 100%;
    }
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    padding: 16px 0;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
}

.logo-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
}

.logo-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.mobile-menu-toggle span {
    width: 24px;
    height: 3px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

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

.cta-button-nav {
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    color: white !important;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
}

.cta-button-nav:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

/* Shared Buttons (also used by modals) */
.btn-primary {
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: white;
    color: var(--text-primary);
    border: 2px solid var(--border-color);
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: border-color 0.2s, color 0.2s;
}

.btn-secondary:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn-danger {
    background: var(--danger-color);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: opacity 0.2s;
}

.btn-danger:hover {
    opacity: 0.9;
}

.btn-primary,
.btn-secondary,
.btn-danger {
    font-family: inherit;
}

.dashboard-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.dashboard-link:hover {
    color: var(--primary-color);
}

.dashboard-link .nav-icon {
    font-size: 18px;
}

.logout-btn-nav {
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}

.logout-btn-nav:hover {
    background: var(--border-color);
    color: var(--text-primary);
    transform: translateY(-1px);
}

/* Hide authenticated/unauthenticated navigation items initially */
.dashboard-link,
.logout-btn-nav {
    display: none;
}

.signin-link,
.signup-link {
    display: block;
}

.dashboard-link.show,
.logout-btn-nav.show {
    display: flex;
}

.dashboard-link.show {
    display: flex;
}

.logout-btn-nav.show {
    display: block;
}

.signin-link.hide,
.signup-link.hide {
    display: none;
}

/* Hero Section */
.hero {
    position: relative;
    padding: 120px 0 80px;
    overflow: hidden;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(0, 136, 204, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(0, 212, 170, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content {
    max-width: 600px;
}

.hero-badge {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(0, 136, 204, 0.1);
    border-radius: 20px;
    margin-bottom: 24px;
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-color);
}

.hero-title {
    font-size: 56px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    color: var(--text-primary);
}

.gradient-text {
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
}

.hero-description {
    font-size: 20px;
    color: var(--text-secondary);
    margin-bottom: 32px;
    line-height: 1.6;
}

.hero-cta {
    display: flex;
    gap: 16px;
    margin-bottom: 48px;
    flex-wrap: wrap;
}

.cta-primary {
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    color: white;
    padding: 16px 32px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 18px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: var(--shadow-md);
}

.cta-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.cta-primary.large {
    padding: 20px 40px;
    font-size: 20px;
}

.cta-secondary {
    background: white;
    color: var(--text-primary);
    padding: 16px 32px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 18px;
    border: 2px solid var(--border-color);
    transition: border-color 0.2s, transform 0.2s;
}

.cta-secondary:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.arrow {
    font-size: 20px;
}

.hero-stats {
    display: flex;
    gap: 48px;
    flex-wrap: wrap;
}

.stat {
    text-align: center;
}

.stat-number {
    font-size: 36px;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 4px;
}

.stat-label {
    font-size: 14px;
    color: var(--text-secondary);
}

/* Hero Visual */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.phone-mockup {
    perspective: 1000px;
}

.phone-frame {
    background: #1a1a1a;
    border-radius: 24px;
    padding: 12px;
    box-shadow: var(--shadow-xl);
    transform: rotateY(-5deg) rotateX(5deg);
    transition: transform 0.3s;
}

.phone-frame:hover {
    transform: rotateY(0deg) rotateX(0deg);
}

.phone-screen {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    width: 320px;
    height: 600px;
    box-shadow: inset 0 0 0 2px rgba(0, 0, 0, 0.1);
}

.telegram-chat {
    height: 100%;
    display: flex;
    flex-direction: column;
    background: #e5ddd5;
}

.chat-header {
    background: var(--primary-color);
    padding: 16px;
    color: white;
}

.chat-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.chat-avatar {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.chat-name {
    font-weight: 600;
    font-size: 16px;
}

.chat-status {
    font-size: 12px;
    opacity: 0.9;
}

.chat-messages {
    flex: 1;
    padding: 16px;
    overflow-y: auto;
}

.message {
    margin-bottom: 16px;
}

.message-summary {
    background: white;
    border-radius: 12px;
    padding: 16px;
    box-shadow: var(--shadow-sm);
    max-width: 280px;
}

.message-time {
    font-size: 11px;
    color: var(--text-light);
    margin-bottom: 8px;
}

.summary-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 12px;
}

.summary-content {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-primary);
}

/* Section Styles */
section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-title {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.section-description {
    font-size: 20px;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* Features Section */
.features {
    background: var(--bg-primary);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
}

.feature-card {
    background: white;
    padding: 32px;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    transition: transform 0.2s, box-shadow 0.2s;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.feature-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.feature-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.feature-description {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* How It Works Section */
.how-it-works {
    background: var(--bg-secondary);
}

.steps {
    display: grid;
    gap: 32px;
    max-width: 800px;
    margin: 0 auto;
}

.step {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

.step-number {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 800;
    flex-shrink: 0;
}

.step-content {
    flex: 1;
}

.step-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.step-description {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Benefits Section */
.benefits {
    background: var(--bg-primary);
}

.benefits-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.benefits-list {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.benefit-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.benefit-icon {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
}

.benefit-item h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.benefit-item p {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.benefit-card-visual {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
}

.visual-header {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
}

.visual-dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--text-light);
    display: inline-block;
}

.visual-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    color: white;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 16px;
}

.visual-summary h4 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.visual-summary ul {
    list-style: none;
}

.visual-summary li {
    padding: 8px 0;
    font-size: 16px;
    color: var(--text-secondary);
}

/* Pricing Section */
.pricing {
    background: var(--bg-secondary);
}

.pricing-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
    max-width: 1000px;
    margin: 0 auto;
}

.pricing-card {
    background: white;
    border-radius: 16px;
    padding: 32px;
    border: 2px solid var(--border-color);
    position: relative;
    transition: transform 0.2s, box-shadow 0.2s;
}

.pricing-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.pricing-card.featured {
    border-color: var(--primary-color);
    transform: scale(1.05);
}

.pricing-card.featured:hover {
    transform: scale(1.05) translateY(-4px);
}

.pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.pricing-header {
    text-align: center;
    margin-bottom: 32px;
}

.pricing-name {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.pricing-price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 4px;
}

.price-amount {
    font-size: 48px;
    font-weight: 800;
    color: var(--primary-color);
}

.price-period {
    font-size: 18px;
    color: var(--text-secondary);
}

.pricing-features {
    list-style: none;
    margin-bottom: 32px;
}

.pricing-features li {
    padding: 12px 0;
    font-size: 16px;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--bg-tertiary);
}

.pricing-features li:last-child {
    border-bottom: none;
}

.pricing-cta {
    display: block;
    text-align: center;
    padding: 16px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 18px;
    background: var(--bg-tertiary);
    color: var(--text-primary);
    transition: background 0.2s, color 0.2s;
}

.pricing-cta:hover {
    background: var(--border-color);
}

.pricing-cta.primary {
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    color: white;
}

.pricing-cta.primary:hover {
    box-shadow: var(--shadow-md);
}

/* Final CTA Section */
.final-cta {
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    color: white;
    text-align: center;
    padding: 80px 0;
}

.cta-content {
    max-width: 600px;
    margin: 0 auto;
}

.cta-title {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 16px;
}

.cta-description {
    font-size: 20px;
    margin-bottom: 32px;
    opacity: 0.95;
}

.cta-note {
    margin-top: 24px;
    font-size: 14px;
    opacity: 0.9;
}

/* Footer */
.footer {
    background: var(--text-primary);
    color: white;
    padding: 64px 0 32px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 48px;
    margin-bottom: 48px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 16px;
}

.footer-description {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
}

.footer-heading {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 16px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

.footer-note {
    margin-top: 8px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
}

.footer-note a {
    color: inherit;
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero .container {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    /* Text first, then image on mobile */
    .hero-content {
        order: 1;
    }

    .hero-visual {
        order: 2;
    }

    .benefits-content {
        grid-template-columns: 1fr;
    }

    .pricing-card.featured {
        transform: none;
    }

    .pricing-card.featured:hover {
        transform: translateY(-4px);
    }
}

@media (max-width: 768px) {
    /* Navbar mobile fixes */
    .navbar {
        padding: 12px 0;
    }

    .nav-content {
        position: relative;
    }

    .logo {
        font-size: 18px;
    }

    .logo-icon {
        font-size: 20px;
    }

    .mobile-menu-toggle {
        display: flex;
        order: 2;
    }

    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        border-top: 1px solid var(--border-color);
        box-shadow: var(--shadow-lg);
        flex-direction: column;
        align-items: stretch;
        padding: 16px 24px;
        gap: 0;
        display: none;
        z-index: 1000;
        margin-top: 12px;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links a {
        font-size: 16px;
        padding: 12px 16px;
        border-radius: 8px;
        width: 100%;
        text-align: left;
    }

    .nav-links a:hover {
        background: var(--bg-tertiary);
    }

    .cta-button-nav {
        padding: 12px 16px;
        font-size: 16px;
        width: 100%;
        text-align: center;
        justify-content: center;
    }

    .logout-btn-nav {
        padding: 12px 16px;
        font-size: 16px;
        width: 100%;
        text-align: center;
    }

    .dashboard-link {
        width: 100%;
        padding: 12px 16px;
    }

    .hero {
        padding: 100px 0 60px;
    }

    .hero-title {
        font-size: 40px;
    }

    .hero-description {
        font-size: 18px;
    }

    .section-title {
        font-size: 36px;
    }

    .hero-stats {
        gap: 24px;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .steps {
        gap: 24px;
    }

    .pricing-cards {
        grid-template-columns: 1fr;
    }

    .phone-frame {
        transform: none;
    }
}

@media (max-width: 480px) {
    /* Navbar extra small mobile */
    .navbar {
        padding: 10px 0;
    }

    .container {
        padding: 0 16px;
    }

    .logo {
        font-size: 16px;
    }

    .logo-icon {
        font-size: 18px;
    }

    .nav-links {
        padding: 12px 16px;
        margin-top: 10px;
    }

    .nav-links a {
        font-size: 15px;
        padding: 10px 12px;
    }

    .cta-button-nav {
        padding: 10px 12px;
        font-size: 15px;
    }

    .logout-btn-nav {
        padding: 10px 12px;
        font-size: 15px;
    }

    .hero {
        padding: 90px 0 50px;
    }

    .hero-title {
        font-size: 32px;
        line-height: 1.2;
    }

    .hero-description {
        font-size: 16px;
        margin-bottom: 24px;
    }

    .hero-cta {
        flex-direction: column;
        margin-bottom: 32px;
    }

    .cta-primary,
    .cta-secondary {
        width: 100%;
        justify-content: center;
        padding: 14px 24px;
        font-size: 16px;
    }

    .hero-stats {
        gap: 16px;
        justify-content: space-around;
    }

    .stat-number {
        font-size: 28px;
    }

    .stat-label {
        font-size: 12px;
    }

    .section-title {
        font-size: 28px;
    }

    .phone-screen {
        width: 260px;
        height: 480px;
    }

    .phone-frame {
        padding: 8px;
    }
}

/* Legal Pages */
.legal-wrapper {
    max-width: 800px;
    margin: 0 auto;
    padding: 120px 0 80px;
}

.license-text {
    background: var(--bg-secondary);
    border-radius: 8px;
    padding: 20px;
    font-family: 'SFMono-Regular', Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 14px;
    line-height: 1.6;
    white-space: pre-wrap;
    color: var(--text-secondary);
    margin-bottom: 40px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

/* Telegram Widget Placeholder */
.telegram-widget-placeholder {
    text-align: center;
    padding: 12px 0;
}

/* Registration Page Styles */
.register-section {
    padding: 120px 0 80px;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    min-height: calc(100vh - 80px);
}

.register-container {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: start;
}

.register-card {
    background: white;
    border-radius: 24px;
    padding: 48px;
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border-color);
}

.register-header {
    text-align: center;
    margin-bottom: 40px;
}

.register-title {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.register-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
}

.social-login-section {
    margin-bottom: 32px;
}

.social-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 14px 20px;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    background: white;
    color: var(--text-primary);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    width: 100%;
}

.social-btn:hover:not(:disabled) {
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.social-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}

.social-btn.google {
    border-color: #4285F4;
    color: #4285F4;
}

.social-btn.google:hover {
    background: #4285F4;
    color: white;
}

.social-btn.microsoft {
    border-color: #0078d4;
    color: #0078d4;
}

.social-btn.microsoft:hover {
    background: #0078d4;
    color: white;
}

.social-btn.apple {
    border-color: var(--text-primary);
    color: var(--text-primary);
}

.social-btn.apple:hover {
    background: var(--text-primary);
    color: white;
}

.social-btn.telegram {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.social-btn.telegram:hover {
    background: var(--primary-color);
    color: white;
}

.social-btn.github {
    border-color: var(--text-primary);
    color: var(--text-primary);
}

.social-btn.github:hover {
    background: var(--text-primary);
    color: white;
}

.social-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 32px 0;
    color: var(--text-light);
    font-size: 14px;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--border-color);
}

.divider span {
    padding: 0 16px;
}

.consent-section {
    margin-bottom: 24px;
    padding: 16px;
    background: var(--bg-secondary);
    border-radius: 12px;
    border: 2px solid var(--border-color);
}

.consent-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    user-select: none;
}

.consent-checkbox input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    position: relative;
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-color);
    border-radius: 4px;
    background: white;
    transition: all 0.2s;
    margin-top: 2px;
}

.consent-checkbox:hover .checkmark {
    border-color: var(--primary-color);
}

.consent-checkbox input[type="checkbox"]:checked + .checkmark {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.consent-checkbox input[type="checkbox"]:checked + .checkmark::after {
    content: '';
    position: absolute;
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.consent-checkbox input[type="checkbox"]:focus + .checkmark {
    box-shadow: 0 0 0 3px rgba(0, 136, 204, 0.1);
}

.consent-checkbox input[type="checkbox"]:required + .checkmark {
    border-color: var(--primary-color);
}

.consent-text {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-primary);
    flex: 1;
}

.consent-text a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.consent-text a:hover {
    text-decoration: underline;
}

.telegram-widget-container {
    text-align: center;
    padding: 12px 0;
}

.email-form {
    margin-top: 24px;
}

.error-message {
    background: #fee2e2;
    border: 1px solid #fca5a5;
    color: #dc2626;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.5;
    display: none;
}

.password-requirements {
    margin-top: 12px;
    padding: 12px;
    background: #f9fafb;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.requirement-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 6px;
    transition: color 0.2s;
}

.requirement-item:last-child {
    margin-bottom: 0;
}

.requirement-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    font-size: 12px;
    font-weight: bold;
    flex-shrink: 0;
}

.requirement-unmet .requirement-icon {
    color: #dc2626;
}

.requirement-met .requirement-icon {
    color: #10b981;
}

.requirement-met {
    color: var(--text-primary);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.form-group input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    font-size: 16px;
    transition: border-color 0.2s;
    background: white;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 136, 204, 0.1);
}

.form-helper {
    display: flex;
    justify-content: flex-end;
    margin-top: 8px;
}

.forgot-password {
    font-size: 14px;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.forgot-password:hover {
    text-decoration: underline;
}

.email-submit-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: var(--shadow-md);
}

.email-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.register-footer {
    text-align: center;
    padding-top: 32px;
    border-top: 1px solid var(--border-color);
}

.register-footer p {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 12px;
    line-height: 1.6;
}

.register-footer a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.register-footer a:hover {
    text-decoration: underline;
}

.login-link {
    margin-top: 16px;
}

.register-features {
    background: white;
    border-radius: 24px;
    padding: 40px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    position: sticky;
    top: 100px;
}

.register-features h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--text-primary);
}

.feature-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.feature-icon {
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    flex-shrink: 0;
    margin-top: 2px;
}

.feature-list span:last-child {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.6;
}

@media (max-width: 1024px) {
    .register-container {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .register-features {
        position: relative;
        top: 0;
    }
}

@media (max-width: 768px) {
    .register-card {
        padding: 32px 24px;
    }

    .register-title {
        font-size: 28px;
    }

    .register-subtitle {
        font-size: 16px;
    }

    .social-btn {
        font-size: 14px;
        padding: 12px 16px;
    }
}

@media (max-width: 480px) {
    .register-section {
        padding: 100px 0 40px;
    }

    .register-card {
        padding: 24px 20px;
    }

    .register-title {
        font-size: 24px;
    }

    .register-features {
        padding: 24px;
    }
}

/* Confirmation Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: #ffffff;
    border-radius: 16px;
    width: 100%;
    max-width: 420px;
    box-shadow: var(--shadow-xl);
    overflow: hidden;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
}

.modal-header h2 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
}

.modal-close {
    background: none;
    border: none;
    font-size: 28px;
    color: var(--text-light);
    cursor: pointer;
    line-height: 1;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.modal-close:hover {
    background: var(--bg-tertiary);
}

.modal-body {
    padding: 24px;
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.5;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 20px 24px;
    border-top: 1px solid var(--border-color);
}

.modal .form-group {
    margin-top: 16px;
}

.modal .form-input {
    width: 100%;
    margin-top: 8px;
}

@media (max-width: 768px) {
    .modal-content {
        max-width: 95%;
    }

    .modal-body,
    .modal-footer,
    .modal-header {
        padding: 16px;
    }
}
