/* Import premium Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

/* Color Variables & Base Tokens */
:root {
    --bg-dark: #090d16;
    --bg-card: #121826;
    --bg-card-hover: #182032;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --color-cyan: #06b6d4;
    --color-cyan-glow: rgba(6, 182, 212, 0.15);
    --color-emerald: #10b981;
    --color-emerald-glow: rgba(16, 185, 129, 0.15);
    --border-color: rgba(255, 255, 255, 0.08);
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
    --glass-bg: rgba(9, 13, 22, 0.7);
    --glass-border: rgba(255, 255, 255, 0.05);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
    background-color: var(--bg-dark);
    overflow-x: hidden;
}

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

a {
    color: inherit;
    text-decoration: none;
}

/* Layout Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Header & Glassmorphism Nav */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--glass-border);
    transition: all 0.3s ease;
}

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

.logo-section {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-section img {
    height: 48px;
    width: auto;
}

.logo-section span {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, #ffffff 0%, var(--text-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

nav ul li a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color 0.25s ease;
}

nav ul li a:hover {
    color: var(--color-cyan);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.lang-selector select {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    outline: none;
    transition: all 0.25s ease;
}

.lang-selector select:hover, .lang-selector select:focus {
    border-color: var(--color-cyan);
    background-color: rgba(255, 255, 255, 0.1);
}

.lang-selector select option {
    background-color: var(--bg-dark);
    color: var(--text-primary);
}

/* Buttons & CTAs */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, var(--color-cyan) 0%, #0891b2 100%);
    color: #ffffff;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    box-shadow: 0 4px 20px var(--color-cyan-glow);
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(6, 182, 212, 0.35);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

/* Hero Section */
.hero {
    padding-top: 180px;
    padding-bottom: 100px;
    text-align: center;
    position: relative;
}

.hero::after {
    content: '';
    position: absolute;
    top: 50px;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 250px;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.08) 0%, transparent 70%);
    z-index: -1;
    pointer-events: none;
}

.hero-tagline {
    background: rgba(6, 182, 212, 0.08);
    border: 1px solid rgba(6, 182, 212, 0.2);
    color: var(--color-cyan);
    padding: 0.35rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 1.5rem;
    letter-spacing: 0.5px;
}

.hero h1 {
    font-family: var(--font-heading);
    font-size: 3.8rem;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -1.5px;
    margin-bottom: 1.5rem;
}

.hero h1 span {
    background: linear-gradient(135deg, var(--color-cyan) 0%, var(--color-emerald) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto 2.5rem auto;
    font-weight: 400;
}

.hero-ctas {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 4rem;
}

.hero-preview {
    border-radius: 12px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 0.5rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    max-width: 950px;
    margin: 0 auto;
}

.hero-preview img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    display: block;
}

/* Features Section (Bento Grid) */
.features {
    padding: 100px 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: -0.5px;
}

.section-header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 1.5rem;
}

.bento-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2.5rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.bento-card:hover {
    border-color: rgba(6, 182, 212, 0.3);
    background-color: var(--bg-card-hover);
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.bento-card.col-8 {
    grid-column: span 8;
}

.bento-card.col-4 {
    grid-column: span 4;
}

.bento-card.col-6 {
    grid-column: span 6;
}

.card-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(6, 182, 212, 0.08);
    color: var(--color-cyan);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(6, 182, 212, 0.15);
}

.bento-card:nth-child(even) .card-icon {
    background: rgba(16, 185, 129, 0.08);
    color: var(--color-emerald);
    border-color: rgba(16, 185, 129, 0.15);
}

.bento-card h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    letter-spacing: -0.2px;
}

.bento-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Gallery / Screenshots Section */
.gallery {
    padding: 100px 0;
    background-color: rgba(255, 255, 255, 0.01);
}

.carousel-container {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.carousel-slide {
    display: none;
    width: 100%;
    animation: fadeEffect 0.6s ease;
}

.carousel-slide img {
    width: 100%;
    height: auto;
    display: block;
}

.carousel-caption {
    background: rgba(9, 13, 22, 0.95);
    padding: 1.25rem 2rem;
    text-align: center;
    border-top: 1px solid var(--border-color);
}

.carousel-caption h4 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.carousel-caption p {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* Navigation buttons for Carousel */
.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    background: rgba(9, 13, 22, 0.8);
    border: 1px solid var(--border-color);
    color: #fff;
    font-weight: bold;
    font-size: 1.2rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    user-select: none;
    z-index: 10;
}

.prev { left: 20px; }
.next { right: 20px; }

.prev:hover, .next:hover {
    background-color: var(--color-cyan);
    border-color: var(--color-cyan);
}

@keyframes fadeEffect {
    from { opacity: 0.4; }
    to { opacity: 1; }
}

/* Tech Stack Section */
.tech {
    padding: 100px 0;
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-top: 3rem;
}

.tech-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
}

.tech-card:hover {
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.tech-card h4 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.tech-card p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Pricing Section Styles */
.pricing {
    padding: 100px 0;
    background-color: var(--bg-dark);
    border-top: 1px solid var(--border-color);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
    max-width: 900px;
    margin: 4rem auto 0 auto;
}

.pricing-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 3rem 2.5rem;
    position: relative;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
}

.pricing-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.15);
}

.pricing-card.premium {
    border-color: var(--color-cyan);
    box-shadow: 0 10px 30px rgba(6, 182, 212, 0.1);
}

.pricing-card.premium::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 16px;
    pointer-events: none;
    box-shadow: inset 0 0 20px rgba(6, 182, 212, 0.05);
}

.pricing-badge {
    position: absolute;
    top: -15px;
    right: 25px;
    background: linear-gradient(135deg, var(--color-cyan) 0%, #0891b2 100%);
    color: var(--bg-dark);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.35rem 1rem;
    border-radius: 20px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.pricing-card h3 {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.pricing-card .price {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-primary);
    margin: 1.5rem 0;
}

.pricing-card .price span {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-secondary);
}

/* Discount Badge */
.discount-badge {
    position: absolute;
    top: -15px;
    left: 25px;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.35rem 1rem;
    border-radius: 20px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    animation: pulse-badge 2s ease-in-out infinite;
    z-index: 2;
}

@keyframes pulse-badge {
    0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.5); }
    50% { transform: scale(1.05); box-shadow: 0 0 12px 4px rgba(239, 68, 68, 0.25); }
}

/* Original Price (Strikethrough) */
.price-original {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 500;
    color: var(--text-muted);
    margin-top: 1.5rem;
    margin-bottom: -0.75rem;
}

.price-original s {
    text-decoration: line-through;
    text-decoration-color: #ef4444;
    text-decoration-thickness: 2px;
}

/* Checkout Strikethrough & Savings */
.text-strikethrough {
    text-decoration: line-through;
    text-decoration-color: #ef4444;
    color: var(--text-muted);
}

.savings-row {
    background: rgba(16, 185, 129, 0.08);
    border-radius: 8px;
    padding: 0.5rem 0.75rem !important;
    margin: 0.25rem -0.75rem;
}

.text-savings {
    color: var(--color-emerald);
    font-weight: 700;
}

.pricing-card p.description {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 2rem;
    flex-grow: 1;
}

.pricing-features {
    list-style: none;
    margin-bottom: 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.pricing-features li {
    font-size: 0.9rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.pricing-features li::before {
    content: '✓';
    color: var(--color-cyan);
    font-weight: 700;
}

.pricing-features li.disabled {
    color: var(--text-muted);
    text-decoration: line-through;
}

.pricing-features li.disabled::before {
    content: '✗';
    color: var(--text-muted);
}

.pricing-card .btn-pricing {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 1rem;
    border-radius: 8px;
    font-weight: 600;
    text-align: center;
    transition: all 0.25s ease;
}

.pricing-card.premium .btn-pricing {
    background: linear-gradient(135deg, var(--color-cyan) 0%, #0891b2 100%);
    color: var(--bg-dark);
}

.pricing-card.premium .btn-pricing:hover {
    background: linear-gradient(135deg, #22d3ee 0%, #0e7490 100%);
    box-shadow: 0 0 15px rgba(6, 182, 212, 0.4);
}

.pricing-card.free .btn-pricing {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

.pricing-card.free .btn-pricing:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

/* CTA & Download Banner Section */
.cta-banner {
    padding: 100px 0;
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.05) 0%, rgba(16, 185, 129, 0.05) 100%);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    text-align: center;
    position: relative;
}

.cta-banner h2 {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    letter-spacing: -1px;
}

.cta-banner p {
    color: var(--text-secondary);
    font-size: 1.15rem;
    max-width: 600px;
    margin: 0 auto 2.5rem auto;
}

/* Footer Styles */
footer {
    padding: 60px 0 40px 0;
    background-color: #06090f;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

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

.footer-credits {
    text-align: right;
}

/* Mobile & Tablet Responsiveness */
@media (max-width: 992px) {
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .bento-card.col-8, .bento-card.col-4, .bento-card.col-6 {
        grid-column: span 2;
    }
    .tech-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .pricing-grid {
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 1.25rem;
    }
    
    /* Header & Navigation */
    .nav-container {
        height: 70px;
    }
    .logo-section img {
        height: 36px;
    }
    .logo-section span {
        font-size: 1.15rem;
    }
    .header-right .btn-primary {
        padding: 0.4rem 0.75rem;
        font-size: 0.75rem;
    }
    .version-tag {
        display: none;
    }
    nav {
        display: none;
    }
    
    /* Hero Section */
    .hero {
        padding: 120px 0 60px 0;
    }
    .hero::after {
        display: none;
    }
    .hero h1 {
        font-size: 2.2rem;
        line-height: 1.2;
    }
    .hero-subtitle {
        font-size: 0.95rem;
        margin-bottom: 2rem;
        width: 100%;
        max-width: 100%;
    }
    .hero-preview {
        margin-top: 2rem;
        border-radius: 8px;
        width: 100%;
        max-width: 100%;
    }
    
    /* Bento Grid (1 Column for Mobile) */
    .bento-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
    .bento-card {
        padding: 1.75rem;
    }
    .bento-card.col-8, .bento-card.col-4, .bento-card.col-6 {
        grid-column: span 1;
    }
    .bento-card h3 {
        font-size: 1.25rem;
    }
    .bento-card p {
        font-size: 0.85rem;
    }
    
    /* Carousel Gallery */
    .gallery {
        padding: 60px 0;
    }
    .carousel-container {
        border-radius: 8px;
    }
    .carousel-caption {
        padding: 1rem 1.25rem;
    }
    .carousel-caption h4 {
        font-size: 1.05rem;
    }
    .carousel-caption p {
        font-size: 0.8rem;
    }
    .prev, .next {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }
    .prev { left: 10px; }
    .next { right: 10px; }
    
    /* Tech Stack (1 Column for Mobile) */
    .tech {
        padding: 60px 0;
    }
    .tech-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        margin-top: 2rem;
    }
    .tech-card {
        padding: 1.5rem;
    }
    
    /* Pricing */
    .pricing {
        padding: 60px 0;
    }
    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 450px;
        gap: 2rem;
        margin-top: 2.5rem;
    }
    .pricing-card {
        padding: 2.5rem 1.75rem;
    }
    
    /* CTA Banner */
    .cta-banner {
        padding: 60px 0;
    }
    .cta-banner h2 {
        font-size: 2rem;
        letter-spacing: -0.5px;
    }
    .cta-banner p {
        font-size: 0.95rem;
        margin-bottom: 2rem;
    }
    
    /* Footer */
    footer {
        padding: 40px 0 30px 0;
    }
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
    .footer-links {
        justify-content: center;
        gap: 1.5rem;
    }
    .footer-credits {
        text-align: center;
    }
}

/* Modal Backdrop Overlay */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(9, 13, 22, 0.8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1.5rem;
    overflow-y: auto; /* Enable scroll if modal is taller than screen */
    animation: fadeIn 0.3s ease;
}

/* Modal Card Container */
.modal-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    width: 100%;
    max-width: 440px;
    padding: 3rem 2.5rem;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6);
    margin: auto; /* Center modal card cleanly inside scrollable container */
    animation: slideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.75rem;
    cursor: pointer;
    line-height: 1;
    transition: color 0.25s ease;
}

.modal-close:hover {
    color: #ffffff;
}

/* Auth Tabs styling */
.auth-tabs {
    display: flex;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 2rem;
}

.auth-tab {
    flex: 1;
    background: none;
    border: none;
    color: var(--text-muted);
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    padding: 0.75rem 0;
    cursor: pointer;
    position: relative;
    transition: color 0.25s ease;
}

.auth-tab.active {
    color: var(--color-cyan);
}

.auth-tab.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--color-cyan);
    box-shadow: 0 0 10px rgba(6, 182, 212, 0.5);
}

/* Auth Form Fields styling */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    text-align: left;
}

.form-group label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.form-group input {
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    color: #ffffff;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    outline: none;
    transition: all 0.25s ease;
}

.form-group input:focus {
    border-color: var(--color-cyan);
    background-color: rgba(255, 255, 255, 0.06);
    box-shadow: 0 0 10px rgba(6, 182, 212, 0.1);
}

.btn-full {
    width: 100%;
    justify-content: center;
    padding: 0.9rem;
    font-size: 1rem;
}

/* Auth divider and Google login button */
.auth-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 1.25rem 0;
    color: var(--text-muted, #64748B);
    font-size: 0.85rem;
}
.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--border-color);
}
.auth-divider::before {
    margin-right: .75em;
}
.auth-divider::after {
    margin-left: .75em;
}

.btn-google {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    background-color: transparent;
    color: #f8fafc;
    border: 1px solid var(--border-color);
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.95rem;
    width: 100%;
}
.btn-google:hover {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: #475569;
}
.btn-google svg {
    flex-shrink: 0;
}

/* User Account Area & Dropdown in navbar */
.auth-panel {
    display: flex;
    align-items: center;
}

.user-panel {
    display: flex;
    align-items: center;
}

.user-avatar-trigger {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-cyan) 0%, #0891b2 100%);
    color: var(--bg-dark);
    font-weight: 700;
    font-family: var(--font-heading);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    user-select: none;
    transition: box-shadow 0.3s ease;
}

/* Pro user avatar glow */
.user-avatar-trigger.pro {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    box-shadow: 0 0 12px rgba(245, 158, 11, 0.4);
}

/* Crown overlay */
.user-crown {
    position: absolute;
    top: -8px;
    right: -6px;
    font-size: 14px;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.5));
    z-index: 2;
    animation: crown-bounce 2s ease-in-out infinite;
    pointer-events: none;
}

@keyframes crown-bounce {
    0%, 100% { transform: translateY(0) rotate(-10deg); }
    50% { transform: translateY(-2px) rotate(5deg); }
}

.user-dropdown {
    position: absolute;
    top: 50px;
    right: 0;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    width: 240px;
    padding: 1.25rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    display: none;
    flex-direction: column;
    gap: 0.5rem;
    z-index: 100;
    text-align: left;
    cursor: default;
}

.user-dropdown.active {
    display: flex;
}

.user-dropdown-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding-bottom: 0.5rem;
}

.user-dropdown-info .user-email {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-dropdown-info .user-badge {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
}

.user-dropdown-info .user-badge.pro {
    color: var(--color-cyan);
}

.user-dropdown hr {
    border: none;
    border-top: 1px solid var(--border-color);
    margin: 0.25rem 0;
}

.dropdown-item {
    font-size: 0.85rem;
    color: var(--text-secondary);
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    transition: all 0.25s ease;
    cursor: pointer;
}

.dropdown-item:hover {
    background-color: rgba(255, 255, 255, 0.05);
    color: #ffffff;
}

.dropdown-item.logout-btn {
    color: #ef4444;
}

.dropdown-item.logout-btn:hover {
    background-color: rgba(239, 68, 68, 0.08);
    color: #fca5a5;
}

/* Payment Modal Specifics */
.payment-card {
    max-width: 480px;
}

.modal-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.modal-subtitle {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.checkout-summary {
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.25rem;
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.summary-row.total-row {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    color: #ffffff;
}

.checkout-summary hr {
    border: none;
    border-top: 1px solid var(--border-color);
}

.payment-methods {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 2.5rem;
}

.payment-method {
    display: flex;
    align-items: center;
    gap: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 1rem;
    cursor: pointer;
    transition: all 0.25s ease;
}

.payment-method input {
    accent-color: var(--color-cyan);
}

.payment-method:hover {
    background-color: rgba(255, 255, 255, 0.02);
    border-color: rgba(255, 255, 255, 0.15);
}

.payment-method.active {
    border-color: var(--color-cyan);
    background-color: rgba(6, 182, 212, 0.03);
}

.method-icon {
    font-size: 1.25rem;
}

.method-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* Spinner and Action area */
.payment-action-area {
    display: flex;
    justify-content: center;
}

.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Success Card */
.success-card {
    max-width: 420px;
}

.success-icon {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    animation: popIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.success-activation-info {
    background-color: rgba(6, 182, 212, 0.03);
    border: 1px solid rgba(6, 182, 212, 0.15);
    border-radius: 10px;
    padding: 1.25rem;
    margin: 1.5rem 0 2rem 0;
    text-align: center;
}

.success-activation-info p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
}

.success-activation-info code {
    display: block;
    background-color: var(--bg-dark);
    padding: 0.5rem;
    border-radius: 6px;
    font-family: monospace;
    font-size: 0.9rem;
    color: var(--color-cyan);
    border: 1px solid var(--border-color);
}

/* Toast System */
.toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    z-index: 3000;
}

.toast {
    background-color: #121826;
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--text-muted);
    color: #ffffff;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 500;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    animation: slideInLeft 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    min-width: 280px;
}

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

.toast.error {
    border-left-color: #ef4444;
}

/* Animations definition */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { transform: translateY(30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes popIn {
    from { transform: scale(0.5); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

@keyframes slideInLeft {
    from { transform: translateX(50px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* ==========================================
   FAQ Section Styles
   ========================================== */
.faq-section {
    padding: 8rem 0;
    position: relative;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    background: rgba(30, 41, 59, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    overflow: hidden;
    backdrop-filter: blur(16px);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-item:hover, .faq-item.active {
    border-color: rgba(56, 189, 248, 0.3);
    background: rgba(30, 41, 59, 0.6);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.3);
}

.faq-question {
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    user-select: none;
}

.faq-question h4 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #f8fafc;
    transition: color 0.3s ease;
}

.faq-item:hover .faq-question h4, .faq-item.active .faq-question h4 {
    color: var(--color-cyan);
}

.faq-icon {
    font-size: 1.2rem;
    color: var(--text-muted);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
    color: var(--color-cyan);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    opacity: 0;
    padding: 0 1.5rem;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding: 0 1.5rem 1.5rem 1.5rem;
    opacity: 1;
}

.faq-answer p {
    margin: 0;
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 0.95rem;
}

/* ==========================================
   Legal & Help Document Layout
   ========================================== */
.doc-page {
    background-color: var(--bg-dark);
    color: #f8fafc;
    font-family: var(--font-body);
}

.doc-nav {
    border-bottom: 1px solid var(--border-color);
    padding: 1.5rem 0;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.btn-back-home {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.btn-back-home:hover {
    color: var(--color-cyan);
}

.doc-hero {
    padding: 5rem 0 3rem 0;
    text-align: center;
    background: radial-gradient(circle at top, rgba(56, 189, 248, 0.08) 0%, transparent 60%);
}

.doc-hero h1 {
    font-size: 2.75rem;
    font-weight: 800;
    margin-bottom: 1rem;
    letter-spacing: -0.025em;
    background: linear-gradient(to right, #ffffff, #94a3b8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.doc-hero p {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

.doc-content-body {
    max-width: 800px;
    margin: 0 auto 8rem auto;
    background: rgba(30, 41, 59, 0.2);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 3rem;
    backdrop-filter: blur(16px);
}

.doc-section {
    margin-bottom: 2.5rem;
}

.doc-section:last-child {
    margin-bottom: 0;
}

.doc-section h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-cyan);
    margin-bottom: 1rem;
}

.doc-section p, .doc-section ul {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1rem;
}

.doc-section ul {
    padding-left: 1.5rem;
}

.doc-section li {
    margin-bottom: 0.5rem;
}

.doc-section strong {
    color: #ffffff;
}

/* Contact Grid & Form */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 3.5rem;
}

.contact-card {
    background: rgba(30, 41, 59, 0.4);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.contact-card:hover {
    border-color: rgba(56, 189, 248, 0.3);
    transform: translateY(-5px);
}

.contact-card-icon {
    font-size: 2.25rem;
    margin-bottom: 1.25rem;
    display: block;
}

.contact-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #ffffff;
}

.contact-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin: 0;
    line-height: 1.5;
    word-break: break-word;
}

.contact-card a {
    color: var(--color-cyan);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-card a:hover {
    text-decoration: underline;
}

.form-group {
    margin-bottom: 1.5rem;
    text-align: left;
}

.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: #e2e8f0;
    margin-bottom: 0.5rem;
}

.form-control {
    width: 100%;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    color: #ffffff;
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: border-color 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--color-cyan);
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
    .doc-content-body {
        padding: 1.5rem;
        margin: 0 1rem 4rem 1rem;
    }
    .doc-hero h1 {
        font-size: 2rem;
    }
}

