/* ================================================================
   8BIT FORGE — Marketing Website Stylesheet
   Style: Reason Studios × Retro Neon 8-bit
   ================================================================ */

/* ---- 1. CSS Variables ---- */
:root {
    /* Backgrounds */
    --bg-primary: #0a0a0f;
    --bg-secondary: #12121a;
    --bg-card: #16161f;
    --bg-card-hover: #1c1c28;
    --bg-nav: rgba(10, 10, 15, 0.92);

    /* Accent colors */
    --accent-cyan: #00f0ff;
    --accent-orange: #ff6b35;
    --accent-violet: #a855f7;
    --accent-green: #00ff88;

    /* Glow variants */
    --glow-cyan: 0 0 20px rgba(0, 240, 255, 0.3), 0 0 60px rgba(0, 240, 255, 0.1);
    --glow-orange: 0 0 20px rgba(255, 107, 53, 0.3), 0 0 60px rgba(255, 107, 53, 0.1);
    --glow-violet: 0 0 20px rgba(168, 85, 247, 0.3), 0 0 60px rgba(168, 85, 247, 0.1);
    --glow-green: 0 0 20px rgba(0, 255, 136, 0.3);

    /* Typography */
    --font-pixel: 'Press Start 2P', monospace;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Text colors */
    --text-primary: #f0f0f0;
    --text-secondary: #8a8a9a;
    --text-muted: #555566;

    /* Borders */
    --border-subtle: rgba(255, 255, 255, 0.06);
    --border-light: rgba(255, 255, 255, 0.1);

    /* Spacing */
    --section-padding: 120px;
    --container-max: 1200px;
    --container-padding: 24px;

    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.6s ease;

    /* Z-index */
    --z-nav: 1000;
    --z-hero-canvas: 1;
    --z-hero-content: 10;
    --z-mobile-menu: 999;
}


/* ---- 2. Reset & Base ---- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    overflow-x: hidden;
}

::selection {
    background: rgba(0, 240, 255, 0.3);
    color: #fff;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--accent-cyan);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: #fff;
}

ul {
    list-style: none;
}


/* ---- 3. Typography ---- */
h1, h2, h3 {
    font-family: var(--font-pixel);
    text-transform: uppercase;
    letter-spacing: 2px;
    line-height: 1.4;
    color: var(--text-primary);
}

h1 {
    font-size: clamp(1.4rem, 4vw, 2.8rem);
    line-height: 1.5;
}

h2 {
    font-size: clamp(1rem, 2.5vw, 1.6rem);
    line-height: 1.5;
    margin-bottom: 24px;
}

h3 {
    font-size: clamp(0.75rem, 1.5vw, 1rem);
    line-height: 1.6;
    margin-bottom: 16px;
}

h4 {
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-primary);
    margin-bottom: 16px;
}

p {
    color: var(--text-secondary);
    margin-bottom: 16px;
}

p:last-child {
    margin-bottom: 0;
}

.overline {
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--accent-cyan);
    margin-bottom: 16px;
    display: block;
}

.lead {
    font-size: 18px;
    line-height: 1.8;
    color: var(--text-secondary);
}


/* ---- 4. Layout ---- */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.section {
    padding: var(--section-padding) 0;
}

.section-alt {
    background-color: var(--bg-secondary);
}

.grid-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.grid-3col {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.grid-4col {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.text-center {
    text-align: center;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 64px;
}


/* ---- 5. Navigation ---- */
.site-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: var(--z-nav);
    padding: 16px 0;
    transition: all var(--transition-normal);
    background: transparent;
}

.site-nav.nav-scrolled {
    background: var(--bg-nav);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 10px 0;
    border-bottom: 1px solid var(--border-subtle);
}

.nav-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.nav-logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.nav-logo-full {
    height: 36px;
    width: auto;
}

.nav-logo-sm {
    display: none;
    height: 36px;
    width: auto;
}

.nav-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    list-style: none;
    flex: 1;
}

.nav-links li {
    text-align: center;
}

.nav-links a {
    font-size: 11.5px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-secondary);
    transition: color var(--transition-fast);
    position: relative;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    padding: 0 4px;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-cyan);
    transition: width var(--transition-normal);
}

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

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

/* ---- Language Switcher ---- */
#langToggle {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
    display:none;
}

.lang-switcher {
    position: relative;
    flex-shrink: 0;
}

.lang-switcher-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: transparent;
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    padding: 6px 10px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    font-family: inherit;
    transition: all 0.2s;
}

.lang-switcher-btn:hover {
    color: var(--text-primary);
    border-color: var(--accent-cyan);
}

.lang-switcher-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 4px);
    right: 0;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    overflow: hidden;
    min-width: 140px;
    z-index: 100;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

#langToggle:checked ~ .lang-switcher-dropdown {
    display: block;
}

.lang-switcher-dropdown a {
    display: block;
    padding: 8px 16px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 13px;
    transition: all 0.15s;
}

.lang-switcher-dropdown a:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.lang-switcher-dropdown a.active {
    color: var(--accent-cyan);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.btn-nav-secondary {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    padding: 8px 16px;
    transition: color var(--transition-fast);
}

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

.btn-nav-primary {
    font-size: 13px;
    font-weight: 600;
    color: var(--bg-primary);
    background: var(--accent-cyan);
    padding: 8px 20px;
    border-radius: 6px;
    transition: all var(--transition-fast);
}

.btn-nav-primary:hover {
    background: #fff;
    color: var(--bg-primary);
    box-shadow: var(--glow-cyan);
}

/* Hamburger */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    z-index: calc(var(--z-mobile-menu) + 1);
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: all var(--transition-normal);
    border-radius: 2px;
}

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

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

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


/* ---- 6. Buttons ---- */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 600;
    color: var(--bg-primary);
    background: var(--accent-cyan);
    padding: 14px 32px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all var(--transition-normal);
}

.btn-primary:hover {
    background: #fff;
    color: var(--bg-primary);
    box-shadow: var(--glow-cyan);
    transform: translateY(-2px);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    background: transparent;
    padding: 14px 32px;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    cursor: pointer;
    transition: all var(--transition-normal);
}

.btn-secondary:hover {
    border-color: var(--accent-cyan);
    color: var(--accent-cyan);
    box-shadow: var(--glow-cyan);
    transform: translateY(-2px);
}

.btn-orange {
    background: var(--accent-orange);
}

.btn-orange:hover {
    background: #ff8555;
    box-shadow: var(--glow-orange);
}

.btn-sm {
    font-size: 13px;
    padding: 10px 24px;
}


/* ---- 7. Hero Section ---- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 120px 0 80px;
}

.hero-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: var(--z-hero-canvas);
}

.hero-gradient {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: linear-gradient(transparent, var(--bg-primary));
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: var(--z-hero-content);
    text-align: center;
    max-width: 900px;
    padding: 0 var(--container-padding);
}

.hero-content .overline {
    margin-bottom: 24px;
    animation: fadeInUp 0.8s ease both;
}

.hero-content h1 {
    margin-bottom: 24px;
    animation: fadeInUp 0.8s 0.15s ease both;
}

.hero-content .lead {
    max-width: 600px;
    margin: 0 auto 40px;
    animation: fadeInUp 0.8s 0.3s ease both;
}

.hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s 0.45s ease both;
}

.hero-scroll {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    z-index: var(--z-hero-content);
    animation: bounce 2s infinite;
}

.hero-scroll svg {
    width: 24px;
    height: 24px;
    color: var(--text-muted);
}


/* ---- 8. Trusted / Logo Bar ---- */
.trusted-section {
    padding: 60px 0;
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
}

.trusted-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--text-muted);
    text-align: center;
    margin-bottom: 32px;
}

.trusted-logos {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 48px;
    flex-wrap: wrap;
}

.trusted-logos .logo-placeholder {
    width: 100px;
    height: 32px;
    background: var(--text-muted);
    border-radius: 4px;
    opacity: 0.2;
    transition: opacity var(--transition-normal);
}

.trusted-logos .logo-placeholder:hover {
    opacity: 0.5;
}


/* ---- 9. Feature Blocks ---- */
.feature-block {
    padding: 80px 0;
}

.feature-block:nth-child(even) .grid-2col {
    direction: rtl;
}

.feature-block:nth-child(even) .grid-2col > * {
    direction: ltr;
}

.feature-text .overline {
    margin-bottom: 12px;
}

.feature-text h2 {
    margin-bottom: 20px;
}

.feature-text p {
    margin-bottom: 24px;
}

.feature-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--accent-cyan);
    transition: all var(--transition-fast);
}

.feature-link:hover {
    gap: 12px;
    color: #fff;
}

.feature-link svg {
    width: 16px;
    height: 16px;
    transition: transform var(--transition-fast);
}

.feature-link:hover svg {
    transform: translateX(4px);
}

.feature-image {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    aspect-ratio: 16 / 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-normal);
}

.feature-image:hover {
    border-color: rgba(0, 240, 255, 0.2);
    box-shadow: var(--glow-cyan);
}

.feature-image-placeholder {
    font-family: var(--font-pixel);
    font-size: 12px;
    color: var(--text-muted);
    text-align: center;
    padding: 20px;
}

.feature-image img,
.feature-screenshot {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.immersive-screenshot .feature-screenshot {
    height: auto;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}


/* ---- 10. Immersive Screenshot ---- */
.immersive-section {
    position: relative;
    padding: 100px 0;
    overflow: hidden;
    background: var(--bg-secondary);
}

.immersive-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 240, 255, 0.03), rgba(168, 85, 247, 0.03));
    pointer-events: none;
}

.immersive-content {
    position: relative;
    text-align: center;
    z-index: 2;
}

.immersive-content h2 {
    margin-bottom: 48px;
}

.immersive-screenshot {
    max-width: 1000px;
    margin: 0 auto;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border-subtle);
    background: var(--bg-card);
    aspect-ratio: 16 / 9;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.5);
}

.immersive-screenshot .feature-image-placeholder {
    font-size: 14px;
}


/* ---- 11. Stats Counter ---- */
.stats-section {
    padding: 80px 0;
    background: var(--bg-primary);
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    text-align: center;
}

.stat-item {
    padding: 24px;
}

.stat-number {
    font-family: var(--font-pixel);
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    color: var(--accent-cyan);
    margin-bottom: 12px;
    line-height: 1;
}

.stat-number[data-suffix="+"]::after {
    content: '+';
}

.stat-label {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-secondary);
}


/* ---- 12. Testimonials ---- */
.testimonials-section {
    padding: var(--section-padding) 0;
    background: var(--bg-secondary);
}

.testimonial-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    padding: 32px;
    transition: all var(--transition-normal);
}

.testimonial-card:hover {
    border-color: rgba(0, 240, 255, 0.15);
    transform: translateY(-4px);
}

.testimonial-stars {
    color: var(--accent-orange);
    margin-bottom: 16px;
    font-size: 14px;
    letter-spacing: 2px;
}

.testimonial-text {
    font-size: 15px;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 24px;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.testimonial-avatar {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-violet));
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-pixel);
    font-size: 14px;
    color: var(--bg-primary);
    flex-shrink: 0;
}

.testimonial-name {
    font-weight: 600;
    font-size: 14px;
    color: var(--text-primary);
}

.testimonial-role {
    font-size: 12px;
    color: var(--text-muted);
}


/* ---- 13. Pricing ---- */
.pricing-section {
    padding: var(--section-padding) 0;
}

/* Billing toggle */
.billing-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 40px;
}

.billing-label {
    font-size: 14px;
    color: var(--text-muted);
    cursor: pointer;
    transition: color var(--transition-fast);
}

.billing-label.active {
    color: var(--text-primary);
    font-weight: 600;
}

.billing-save {
    background: var(--accent-green);
    color: var(--bg-primary);
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 10px;
    margin-left: 4px;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 26px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    border-radius: 26px;
    transition: var(--transition-fast);
}

.toggle-slider::before {
    content: '';
    position: absolute;
    height: 20px;
    width: 20px;
    left: 2px;
    bottom: 2px;
    background: var(--text-primary);
    border-radius: 50%;
    transition: var(--transition-fast);
}

.toggle-switch input:checked + .toggle-slider {
    background: var(--accent-cyan);
    border-color: var(--accent-cyan);
}

.toggle-switch input:checked + .toggle-slider::before {
    transform: translateX(22px);
    background: var(--bg-primary);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    align-items: start;
}

.pricing-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    padding: 40px 32px;
    text-align: center;
    transition: all var(--transition-normal);
    position: relative;
}

.pricing-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-light);
}

.pricing-card.featured {
    border-color: var(--accent-cyan);
    box-shadow: var(--glow-cyan);
    transform: scale(1.03);
}

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

.pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent-cyan);
    color: var(--bg-primary);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 4px 16px;
    border-radius: 20px;
}

.pricing-name {
    font-family: var(--font-pixel);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.pricing-price {
    font-size: 48px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
    line-height: 1;
}

.pricing-price span {
    font-size: 16px;
    font-weight: 400;
    color: var(--text-muted);
}

.pricing-desc {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.pricing-features {
    text-align: left;
    margin-bottom: 32px;
}

.pricing-features li {
    font-size: 14px;
    color: var(--text-secondary);
    padding: 8px 0;
    border-bottom: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    gap: 10px;
}

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

.pricing-features .check {
    color: var(--accent-green);
    font-weight: bold;
    flex-shrink: 0;
}

.pricing-card .btn-primary {
    width: 100%;
    justify-content: center;
}

.pricing-card .btn-secondary {
    width: 100%;
    justify-content: center;
}

.pricing-feature-limit {
    color: var(--text-muted) !important;
    font-style: italic;
    position: relative;
    padding-left: 28px !important;
}

.pricing-feature-limit::before {
    content: '—';
    position: absolute;
    left: 0;
    color: var(--text-muted);
    font-style: normal;
    font-weight: 600;
}

.pricing-feature-star {
    color: var(--accent-orange) !important;
    position: relative;
    padding-left: 28px !important;
}

.pricing-feature-star::before {
    content: '★';
    position: absolute;
    left: 0;
    color: var(--accent-orange);
}

.pricing-note {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 12px;
}

/* Legal pages */
.legal-content h2 {
    margin-top: 48px;
}
.legal-content h2:first-child {
    margin-top: 0;
}
.legal-content h3 {
    margin-top: 32px;
}
.legal-content ul,
.legal-content ol {
    margin-bottom: 16px;
}

/* Comparison table */
.comparison-table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 12px;
    border: 1px solid var(--border-subtle);
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    min-width: 600px;
}

.comparison-table th,
.comparison-table td {
    padding: 12px 20px;
    text-align: center;
    border-bottom: 1px solid var(--border-subtle);
    color: var(--text-secondary);
}

.comparison-table th:first-child,
.comparison-table td:first-child {
    text-align: left;
    font-weight: 500;
    color: var(--text-primary);
    min-width: 240px;
}

.comparison-table thead th {
    background: var(--bg-card);
    font-family: var(--font-pixel);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-primary);
    padding: 16px 20px;
    position: sticky;
    top: 0;
}

.comparison-table .highlight {
    background: rgba(0, 255, 255, 0.03);
}

.comparison-table thead th.highlight {
    color: var(--accent-cyan);
    background: rgba(0, 255, 255, 0.06);
}

.comparison-section-row td {
    background: var(--bg-secondary);
    font-family: var(--font-pixel);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent-cyan) !important;
    padding: 10px 20px !important;
    font-weight: 700;
}

.comparison-table tbody tr:last-child td {
    border-bottom: none;
}

/* ---- 13b. Billing History ---- */
.billing-desc {
    color: var(--text-secondary);
    margin-bottom: 20px;
    font-size: 0.9rem;
}
.billing-loading {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 30px 0;
    color: var(--text-secondary);
}
.billing-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 40px 0;
    color: var(--text-secondary);
    text-align: center;
}
.billing-table-wrapper {
    overflow-x: auto;
    margin: 0 -20px;
    padding: 0 20px;
}
.billing-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}
.billing-table th {
    text-align: left;
    padding: 10px 12px;
    border-bottom: 2px solid var(--border);
    color: var(--text-secondary);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}
.billing-table td {
    padding: 12px;
    border-bottom: 1px solid var(--border);
    color: var(--text-primary);
}
.billing-table tr:last-child td {
    border-bottom: none;
}
.billing-table tr:hover td {
    background: var(--bg-secondary);
}
.billing-amount {
    font-family: 'JetBrains Mono', monospace;
    white-space: nowrap;
}
.billing-amount small {
    color: var(--text-secondary);
    font-size: 0.75rem;
}
.billing-status {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.78rem;
    font-weight: 600;
    white-space: nowrap;
}
.billing-paid {
    background: rgba(0, 200, 120, 0.15);
    color: #00c878;
}
.billing-open, .billing-draft {
    background: rgba(255, 170, 0, 0.15);
    color: #ffaa00;
}
.billing-void, .billing-uncollectible {
    background: rgba(255, 80, 80, 0.15);
    color: #ff5050;
}
.billing-actions {
    white-space: nowrap;
}
.billing-action-link {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--accent-cyan);
    background: rgba(0, 180, 255, 0.08);
    text-decoration: none;
    margin-right: 6px;
    transition: background 0.2s;
}
.billing-action-link:hover {
    background: rgba(0, 180, 255, 0.18);
}
.billing-no-invoice {
    color: var(--text-secondary);
}
@media (max-width: 600px) {
    .billing-table th:nth-child(4),
    .billing-table td:nth-child(4) {
        display: none;
    }
    .billing-table td {
        padding: 10px 8px;
        font-size: 0.82rem;
    }
}

/* ---- 14. Storytelling ---- */
.story-section {
    padding: var(--section-padding) 0;
    background: var(--bg-secondary);
    position: relative;
    overflow: hidden;
}

.story-section::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.06), transparent 70%);
    pointer-events: none;
}

.story-content {
    max-width: 700px;
}

.story-content h2 {
    margin-bottom: 24px;
}

.story-content p {
    font-size: 16px;
    line-height: 1.9;
    margin-bottom: 16px;
}

.story-visual {
    display: flex;
    align-items: center;
    justify-content: center;
}

.pixel-art-decoration {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, var(--bg-card), var(--bg-primary));
    border-radius: 16px;
    border: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.pixel-art-decoration::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        repeating-linear-gradient(0deg, transparent, transparent 8px, rgba(0, 240, 255, 0.03) 8px, rgba(0, 240, 255, 0.03) 9px),
        repeating-linear-gradient(90deg, transparent, transparent 8px, rgba(0, 240, 255, 0.03) 8px, rgba(0, 240, 255, 0.03) 9px);
}

.pixel-art-decoration .icon-large {
    font-size: 80px;
    position: relative;
    z-index: 1;
}


/* ---- 15. Newsletter ---- */
.newsletter-section {
    padding: 80px 0;
    background: var(--bg-primary);
    border-top: 1px solid var(--border-subtle);
}

.newsletter-inner {
    max-width: 560px;
    margin: 0 auto;
    text-align: center;
}

.newsletter-inner h2 {
    margin-bottom: 12px;
}

.newsletter-inner p {
    margin-bottom: 32px;
}

.newsletter-form {
    display: flex;
    gap: 12px;
}

.newsletter-form input[type="email"] {
    flex: 1;
    padding: 14px 20px;
    font-family: var(--font-body);
    font-size: 15px;
    color: var(--text-primary);
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    outline: none;
    transition: all var(--transition-fast);
}

.newsletter-form input[type="email"]::placeholder {
    color: var(--text-muted);
}

.newsletter-form input[type="email"]:focus {
    border-color: var(--accent-cyan);
    box-shadow: 0 0 0 3px rgba(0, 240, 255, 0.1);
}

.newsletter-form button {
    flex-shrink: 0;
}

.newsletter-success {
    font-size: 14px;
    color: var(--accent-green);
    margin-top: 12px;
}


/* ---- 16. Footer ---- */
.site-footer {
    padding: 80px 0 40px;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-subtle);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-logo {
    height: 32px;
    width: auto;
    margin-bottom: 16px;
}

.footer-brand { max-width: 280px; }

.footer-brand p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 20px;
}

.footer-social {
    display: flex;
    gap: 12px;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    color: var(--text-muted);
    transition: all var(--transition-fast);
}

.footer-social a:hover {
    color: var(--accent-cyan);
    border-color: var(--accent-cyan);
    box-shadow: var(--glow-cyan);
}

.footer-col h4 {
    margin-bottom: 20px;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul a {
    font-size: 14px;
    color: var(--text-muted);
    transition: color var(--transition-fast);
}

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

/* Footer nav — horizontal links (CodePen style) */
.footer-nav { display: flex; flex-direction: column; justify-content: center; gap: 18px; }
.footer-row { display: flex; align-items: baseline; gap: 28px; }
.footer-row h4 { min-width: 110px; flex-shrink: 0; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-primary); margin: 0; }
.footer-row ul { display: flex; flex-wrap: wrap; gap: 4px 22px; list-style: none; padding: 0; margin: 0; }
.footer-row ul a { font-size: 14px; color: var(--text-muted); transition: color var(--transition-fast); }
.footer-row ul a:hover { color: var(--text-primary); }

.footer-bottom {
    padding-top: 32px;
    border-top: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer-bottom p {
    font-size: 13px;
    color: var(--text-muted);
}

.pixel-heart {
    color: var(--accent-orange);
}


/* ---- 17. Page Hero (sub-pages) ---- */
.page-hero {
    padding: 160px 0 80px;
    text-align: center;
    background: var(--bg-secondary);
    position: relative;
}

.page-hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-cyan), transparent);
    opacity: 0.3;
}

.page-hero h1 {
    margin-bottom: 16px;
}

.page-hero .lead {
    max-width: 600px;
    margin: 0 auto;
}

/* Compact hero for auth/account pages */
.page-hero-compact {
    padding: 140px 0 48px;
}

.page-hero-compact h1 {
    margin-bottom: 8px;
}


/* ---- 18. Features Page ---- */
.feature-detail {
    padding: 60px 0;
    border-bottom: 1px solid var(--border-subtle);
}

.feature-detail:last-child {
    border-bottom: none;
}

.feature-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(0, 240, 255, 0.1), rgba(168, 85, 247, 0.1));
    border: 1px solid rgba(0, 240, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 20px;
}


/* ---- 19. Contact Form ---- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

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

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    font-family: var(--font-body);
    font-size: 15px;
    color: var(--text-primary);
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    outline: none;
    transition: all var(--transition-fast);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--accent-cyan);
    box-shadow: 0 0 0 3px rgba(0, 240, 255, 0.1);
}

.form-group textarea {
    min-height: 160px;
    resize: vertical;
}

.form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%238a8a9a' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

.contact-info {
    padding-top: 40px;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 32px;
}

.contact-info-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-cyan);
    flex-shrink: 0;
    font-size: 18px;
}

.contact-info-item h4 {
    margin-bottom: 4px;
    text-transform: none;
    letter-spacing: 0;
}

.contact-info-item p {
    font-size: 14px;
    color: var(--text-muted);
}


/* ---- 20. Blog Grid ---- */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.blog-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    overflow: hidden;
    transition: all var(--transition-normal);
}

.blog-card:hover {
    border-color: var(--border-light);
    transform: translateY(-4px);
}

.blog-card-image {
    aspect-ratio: 16 / 9;
    background: linear-gradient(135deg, var(--bg-primary), var(--bg-card));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-family: var(--font-pixel);
    font-size: 11px;
    position: relative;
}

.blog-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
}

.blog-card-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--accent-violet);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 4px 10px;
    border-radius: 4px;
}

.blog-card-body {
    padding: 24px;
}

.blog-card-date {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.blog-card-body h3 {
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 600;
    text-transform: none;
    letter-spacing: 0;
    margin-bottom: 8px;
}

.blog-card-body p {
    font-size: 14px;
    line-height: 1.6;
}


/* ---- 21. FAQ Accordion ---- */
.faq-section {
    padding: var(--section-padding) 0;
    background: var(--bg-secondary);
}

.faq-list {
    max-width: 700px;
    margin: 0 auto;
}

.faq-list details {
    border-bottom: 1px solid var(--border-subtle);
}

.faq-list summary {
    padding: 20px 0;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: color var(--transition-fast);
}

.faq-list summary::-webkit-details-marker {
    display: none;
}

.faq-list summary::after {
    content: '+';
    font-size: 20px;
    color: var(--accent-cyan);
    flex-shrink: 0;
    transition: transform var(--transition-fast);
}

.faq-list details[open] summary::after {
    content: '−';
}

.faq-list summary:hover {
    color: var(--accent-cyan);
}

.faq-answer {
    padding: 0 0 20px;
    font-size: 14px;
    line-height: 1.8;
    color: var(--text-secondary);
}


/* ---- 22. About Page ---- */
.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.value-card {
    text-align: center;
    padding: 40px 24px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    transition: all var(--transition-normal);
}

.value-card:hover {
    border-color: var(--border-light);
    transform: translateY(-4px);
}

.value-icon {
    font-size: 40px;
    margin-bottom: 20px;
}

.value-card h3 {
    margin-bottom: 12px;
}

.value-card p {
    font-size: 14px;
}


/* ---- 23. Coming Soon Badge ---- */
.coming-soon-overlay {
    position: relative;
}

.coming-soon-overlay::before {
    content: 'Coming Soon';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-12deg);
    font-family: var(--font-pixel);
    font-size: clamp(1.5rem, 4vw, 3rem);
    color: var(--accent-cyan);
    opacity: 0.15;
    z-index: 10;
    pointer-events: none;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 4px;
}


/* ---- 24. CTA Section ---- */
.cta-section {
    padding: 80px 0;
    text-align: center;
    background: linear-gradient(135deg, rgba(0, 240, 255, 0.03), rgba(168, 85, 247, 0.03));
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
}

.cta-section h2 {
    margin-bottom: 16px;
}

.cta-section p {
    max-width: 500px;
    margin: 0 auto 32px;
}


/* ---- 24b. Download Page ---- */
.download-card {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    padding: 40px 32px;
    text-align: center;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.download-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.download-card h3 {
    margin-bottom: 4px;
}

.download-card-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.download-card-windows {
    color: #0078d4;
    background: rgba(0, 120, 212, 0.08);
    border-color: rgba(0, 120, 212, 0.25);
}

.download-card-macos {
    color: #a2aaad;
    background: rgba(162, 170, 173, 0.08);
    border-color: rgba(162, 170, 173, 0.25);
}

.download-card-linux {
    color: #e95420;
    background: rgba(233, 84, 32, 0.08);
    border-color: rgba(233, 84, 32, 0.25);
}

.download-card-version {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 24px;
    height: 46px;
}

.download-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    justify-content: center;
    margin-bottom: 12px;
    font-size: 12px;
    padding: 14px 24px;
}

.download-btn-alt {
    display: inline-block;
    font-size: 12px;
    margin-bottom: 16px;
    padding: 8px 20px;
}

.download-size {
    display: block;
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 4px;
}

.download-card-unavailable {
    opacity: 0.5;
    pointer-events: none;
    position: relative;
}

.download-card-unavailable:hover {
    transform: none;
    box-shadow: none;
}

.download-badge-soon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 14px 24px;
    margin-bottom: 12px;
    font-size: 11px;
    font-family: var(--font-pixel);
    letter-spacing: 2px;
    color: var(--text-muted);
    border: 1px dashed rgba(255,255,255,0.15);
    border-radius: 8px;
    text-transform: uppercase;
}

/* Specs cards */
.specs-card {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 32px;
}

.specs-card h3 {
    margin-bottom: 20px;
    font-size: 14px;
}

.specs-table {
    width: 100%;
    border-collapse: collapse;
}

.specs-table tr {
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.specs-table tr:last-child {
    border-bottom: none;
}

.specs-table td {
    padding: 10px 0;
    font-size: 13px;
    color: var(--text-secondary);
}

.specs-table td:first-child {
    color: var(--text-primary);
    font-weight: 600;
    width: 90px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Version badge */
.version-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-violet));
    color: #fff;
    font-family: var(--font-pixel);
    font-size: 14px;
    padding: 8px 24px;
    border-radius: 20px;
    letter-spacing: 1px;
}

.text-secondary {
    color: var(--text-secondary);
    font-size: 13px;
}

/* ---- 25. Animations ---- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-12px);
    }
    60% {
        transform: translateX(-50%) translateY(-6px);
    }
}

/* Scroll reveal */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* Glow effects */
.glow-text {
    text-shadow: 0 0 10px rgba(0, 240, 255, 0.5), 0 0 40px rgba(0, 240, 255, 0.2);
}


/* ---- 26. 404 Page ---- */
.page-404 {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px;
}

.page-404 h1 {
    font-size: clamp(3rem, 10vw, 8rem);
    color: var(--accent-cyan);
    opacity: 0.3;
    margin-bottom: 16px;
}

.page-404 h2 {
    margin-bottom: 16px;
}


/* ---- 27. Responsive ---- */

/* Tablet */
@media (max-width: 1024px) {
    :root {
        --section-padding: 80px;
    }

    .grid-2col {
        gap: 40px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .footer-row { flex-wrap: wrap; gap: 8px 16px; }
    .footer-row h4 { min-width: 90px; }

    .pricing-grid {
        gap: 16px;
    }

    .pricing-card {
        padding: 32px 24px;
    }

    .pricing-card.featured {
        transform: scale(1.01);
    }

    .contact-grid {
        gap: 40px;
    }
}

/* Mobile landscape / small tablet */
@media (max-width: 768px) {
    :root {
        --section-padding: 60px;
        --container-padding: 20px;
    }

    /* Nav mobile */
    .nav-toggle {
        display: flex;
    }

    .nav-logo-full {
        display: none;
    }

    .nav-logo-sm {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--bg-secondary);
        flex-direction: column;
        flex: none;
        max-width: none;
        padding: 80px 32px 32px;
        gap: 0;
        z-index: var(--z-mobile-menu);
        transition: right var(--transition-normal);
        border-left: 1px solid var(--border-subtle);
    }

    .nav-links.open {
        right: 0;
    }

    .nav-links li {
        width: 100%;
    }

    .nav-links a {
        display: block;
        padding: 14px 0;
        font-size: 15px;
        border-bottom: 1px solid var(--border-subtle);
        overflow: visible;
        text-overflow: clip;
        white-space: normal;
    }

    .nav-links a::after {
        display: none;
    }

    .nav-actions {
        display: none;
    }

    .lang-switcher {
        order: -1;
        margin-right: auto;
        margin-left: 12px;
    }

    /* Grids */
    .grid-2col {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .grid-3col,
    .values-grid,
    .blog-grid {
        grid-template-columns: 1fr;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }

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

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

    .grid-4col {
        grid-template-columns: 1fr 1fr;
    }

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

    .footer-bottom {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }

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

    /* Feature blocks - reset rtl */
    .feature-block:nth-child(even) .grid-2col {
        direction: ltr;
    }

    /* Hero */
    .hero {
        min-height: auto;
        padding: 140px 0 80px;
    }

    .hero-actions {
        flex-direction: column;
    }

    .hero-actions .btn-primary,
    .hero-actions .btn-secondary {
        width: 100%;
        justify-content: center;
    }

    .hero-scroll {
        display: none;
    }

    /* Newsletter */
    .newsletter-form {
        flex-direction: column;
    }

    .newsletter-form button {
        width: 100%;
    }

    /* Trusted */
    .trusted-logos {
        gap: 24px;
    }
}

/* Small mobile */
@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }

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

    .grid-4col {
        grid-template-columns: 1fr;
    }

    .trusted-logos {
        gap: 16px;
    }

    .trusted-logos .logo-placeholder {
        width: 70px;
    }
}


/* ================================================================
   28. Documentation Page
   ================================================================ */

.docs-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 48px;
    align-items: start;
}

/* Sidebar Navigation */
.docs-sidebar {
    position: sticky;
    top: 100px;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    padding-right: 16px;
}

.docs-sidebar::-webkit-scrollbar {
    width: 3px;
}

.docs-sidebar::-webkit-scrollbar-track {
    background: transparent;
}

.docs-sidebar::-webkit-scrollbar-thumb {
    background: var(--border-light);
    border-radius: 3px;
}

.docs-nav-group {
    margin-bottom: 24px;
}

.docs-nav-group h4 {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent-cyan);
    margin-bottom: 10px;
    padding-left: 12px;
}

.docs-nav-group a {
    display: block;
    font-size: 13px;
    color: var(--text-muted);
    padding: 6px 12px;
    border-left: 2px solid transparent;
    border-radius: 0 4px 4px 0;
    transition: all var(--transition-fast);
}

.docs-nav-group a:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.03);
    border-left-color: var(--border-light);
}

.docs-nav-group a.active {
    color: var(--accent-cyan);
    border-left-color: var(--accent-cyan);
    background: rgba(0, 240, 255, 0.05);
}

/* Doc Content */
.docs-content {
    min-width: 0;
}

.doc-section {
    margin-bottom: 64px;
    scroll-margin-top: 100px;
}

.doc-section > h2 {
    font-family: var(--font-pixel);
    font-size: clamp(0.85rem, 1.5vw, 1.1rem);
    color: var(--accent-cyan);
    margin-bottom: 8px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-subtle);
}

.doc-section > h3 {
    font-family: var(--font-body);
    font-size: 18px;
    font-weight: 700;
    text-transform: none;
    letter-spacing: 0;
    color: var(--text-primary);
    margin-top: 32px;
    margin-bottom: 12px;
}

.doc-section p {
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 12px;
}

.doc-section ul,
.doc-section ol {
    padding-left: 20px;
    margin-bottom: 16px;
}

.doc-section li {
    font-size: 14px;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.doc-section li strong {
    color: var(--text-primary);
}

/* Parameter tables */
.param-table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0 24px;
    font-size: 13px;
}

.param-table thead {
    background: var(--bg-card);
}

.param-table th {
    text-align: left;
    padding: 10px 14px;
    font-weight: 600;
    color: var(--text-primary);
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 1px;
    border-bottom: 1px solid var(--border-light);
}

.param-table td {
    padding: 8px 14px;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-subtle);
    vertical-align: top;
}

.param-table tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}

.param-table code {
    background: var(--bg-card);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 12px;
    color: var(--accent-green);
}

/* Keyboard shortcut badges */
kbd {
    display: inline-block;
    padding: 2px 8px;
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 600;
    color: var(--text-primary);
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 4px;
    line-height: 1.6;
    white-space: nowrap;
}

/* Tip / Note boxes */
.doc-tip {
    padding: 16px 20px;
    background: rgba(0, 240, 255, 0.04);
    border-left: 3px solid var(--accent-cyan);
    border-radius: 0 8px 8px 0;
    margin: 16px 0;
    font-size: 13px;
    color: var(--text-secondary);
}

.doc-tip strong {
    color: var(--accent-cyan);
}

.doc-warning {
    padding: 16px 20px;
    background: rgba(255, 107, 53, 0.04);
    border-left: 3px solid var(--accent-orange);
    border-radius: 0 8px 8px 0;
    margin: 16px 0;
    font-size: 13px;
    color: var(--text-secondary);
}

.doc-warning strong {
    color: var(--accent-orange);
}

/* Track color badges */
.track-badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.track-badge.lead { background: rgba(0, 200, 255, 0.15); color: #00c8ff; }
.track-badge.harmony { background: rgba(100, 149, 237, 0.15); color: #6495ed; }
.track-badge.bass { background: rgba(168, 85, 247, 0.15); color: #a855f7; }
.track-badge.arp { background: rgba(0, 206, 209, 0.15); color: #00ced1; }
.track-badge.kick { background: rgba(255, 80, 80, 0.15); color: #ff5050; }
.track-badge.snare { background: rgba(255, 165, 0, 0.15); color: #ffa500; }
.track-badge.hihat { background: rgba(255, 255, 0, 0.15); color: #cccc00; }
.track-badge.fx { background: rgba(255, 0, 255, 0.15); color: #ff66ff; }

/* Responsive docs */
@media (max-width: 1024px) {
    .docs-layout {
        grid-template-columns: 220px 1fr;
        gap: 32px;
    }
}

@media (max-width: 768px) {
    .docs-layout {
        grid-template-columns: 1fr;
    }

    .docs-sidebar {
        position: relative;
        top: 0;
        max-height: none;
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        padding: 16px;
        background: var(--bg-card);
        border-radius: 12px;
        border: 1px solid var(--border-subtle);
        margin-bottom: 24px;
    }

    .docs-nav-group {
        margin-bottom: 0;
    }

    .docs-nav-group h4 {
        display: none;
    }

    .docs-nav-group a {
        border-left: none;
        padding: 6px 12px;
        border-radius: 6px;
        font-size: 12px;
        border: 1px solid var(--border-subtle);
    }

    .docs-nav-group a.active {
        background: rgba(0, 240, 255, 0.1);
        border-color: var(--accent-cyan);
    }
}


/* ================================================================
   29. Auth Pages (Login / Register / Account)
   ================================================================ */

/* Auth page container — replaces page-hero for auth pages */
.auth-page {
    padding: 120px 0 80px;
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: flex-start;
}

.auth-page-wide {
    align-items: stretch;
}

.auth-wrapper {
    max-width: 440px;
    margin: 0 auto;
    width: 100%;
}

.auth-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    padding: 40px;
}

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

.auth-card-header img {
    height: 40px;
    margin: 0 auto 20px;
    display: block;
}

.auth-card-header h2 {
    font-family: var(--font-body);
    font-size: 22px;
    font-weight: 700;
    text-transform: none;
    letter-spacing: 0;
    margin-bottom: 6px;
}

.auth-card-header p {
    font-size: 14px;
    color: var(--text-muted);
}

/* Auth messages (error/success) */
.auth-message {
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    margin-bottom: 20px;
    display: none;
}

.auth-message.show {
    display: block;
}

.auth-message-error {
    background: rgba(255, 107, 53, 0.08);
    border: 1px solid rgba(255, 107, 53, 0.2);
    color: var(--accent-orange);
}

.auth-message-success {
    background: rgba(0, 255, 136, 0.08);
    border: 1px solid rgba(0, 255, 136, 0.2);
    color: var(--accent-green);
}

.auth-message-info {
    background: rgba(0, 212, 255, 0.08);
    border: 1px solid rgba(0, 212, 255, 0.2);
    color: var(--accent-cyan);
}

/* Full-width submit */
.auth-submit {
    width: 100%;
    justify-content: center;
    position: relative;
    min-height: 48px;
}

/* Spinner inside button */
.auth-spinner {
    display: none;
    width: 18px;
    height: 18px;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: authSpin 0.6s linear infinite;
}

.auth-submit.loading .btn-text { display: none; }
.auth-submit.loading .auth-spinner { display: inline-block; }

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

/* Form options row (remember me + forgot pw) */
.auth-form-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    font-size: 13px;
}

.auth-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    color: var(--text-secondary);
}

.auth-checkbox input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--accent-cyan);
}

.auth-form-options a {
    color: var(--accent-cyan);
    font-size: 13px;
}

/* Password strength bar */
.password-strength-bar {
    height: 4px;
    background: var(--bg-secondary);
    border-radius: 2px;
    margin-top: 8px;
    overflow: hidden;
}

.password-strength-fill {
    height: 100%;
    width: 0%;
    border-radius: 2px;
    transition: all var(--transition-normal);
}

.password-strength-fill.weak {
    width: 33%;
    background: var(--accent-orange);
}

.password-strength-fill.medium {
    width: 66%;
    background: #fbbf24;
}

.password-strength-fill.strong {
    width: 100%;
    background: var(--accent-green);
}

.password-strength-label {
    font-size: 11px;
    margin-top: 4px;
    color: var(--text-muted);
}

/* Auth card footer */
.auth-card-footer {
    text-align: center;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--border-subtle);
}

.auth-card-footer p {
    font-size: 14px;
    color: var(--text-muted);
}

.auth-card-footer a {
    color: var(--accent-cyan);
    font-weight: 600;
}

/* Form hint */
.form-hint {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 4px;
    display: block;
}

/* ─── Auth Step Panels (verification, 2FA, magic link) ─── */
.auth-step {
    text-align: center;
}

.auth-step-icon {
    margin: 0 auto 20px;
    width: 72px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 229, 255, 0.06);
    border-radius: 50%;
    border: 1px solid rgba(0, 229, 255, 0.12);
}

.auth-step-title {
    font-family: var(--font-body);
    font-size: 20px;
    font-weight: 700;
    text-transform: none;
    letter-spacing: 0;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.auth-step-desc {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 28px;
    line-height: 1.5;
}

.auth-step-desc strong {
    color: var(--text-primary);
}

.auth-step-hint {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 16px;
}

.auth-step-footer {
    text-align: center;
    margin-top: 24px;
}

.auth-step-footer p {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.auth-step-footer a {
    color: var(--accent-cyan);
    font-weight: 500;
}

/* ─── 6-digit Code Inputs ─── */
.code-inputs {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 24px;
}

.code-digit {
    width: 46px;
    height: 56px;
    text-align: center;
    font-size: 24px;
    font-weight: 700;
    font-family: 'JetBrains Mono', monospace;
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    border-radius: 10px;
    color: var(--accent-cyan);
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    caret-color: var(--accent-cyan);
}

.code-digit:focus {
    border-color: var(--accent-cyan);
    box-shadow: 0 0 0 3px rgba(0, 229, 255, 0.15);
}

.code-digit.error {
    border-color: var(--accent-orange);
    animation: codeShake 0.4s ease;
}

.code-separator {
    color: var(--text-muted);
    font-size: 18px;
    margin: 0 2px;
    user-select: none;
}

@keyframes codeShake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-4px); }
    75% { transform: translateX(4px); }
}

/* ─── Auth Divider ─── */
.auth-divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 24px 0;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border-subtle);
}

.auth-divider span {
    font-size: 13px;
    color: var(--text-muted);
    text-transform: lowercase;
}

/* ─── Magic Link Button ─── */
.auth-magic-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 20px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
}

.auth-magic-btn svg {
    flex-shrink: 0;
}

/* ─── Section Description ─── */
.section-desc {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 16px;
    line-height: 1.5;
}

/* ─── 2FA Method Cards ─── */
.tfa-method-cards {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 16px;
}

.tfa-method-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    transition: border-color 0.2s;
}

.tfa-method-card:hover {
    border-color: var(--accent-cyan);
}

.tfa-method-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 229, 255, 0.06);
    border-radius: 10px;
}

.tfa-method-info {
    flex: 1;
    min-width: 0;
}

.tfa-method-info h4 {
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 600;
    text-transform: none;
    letter-spacing: 0;
    margin-bottom: 2px;
    color: var(--text-primary);
}

.tfa-method-info p {
    font-size: 13px;
    color: var(--text-muted);
    margin: 0;
}

/* 2FA Status Badge */
.tfa-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 10px;
    font-size: 14px;
}

.tfa-status-active {
    background: rgba(0, 255, 136, 0.08);
    border: 1px solid rgba(0, 255, 136, 0.2);
    color: var(--accent-green);
}

.tfa-status-active strong {
    color: var(--text-primary);
}

/* 2FA Secret Key Display */
.tfa-secret-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 12px;
    font-size: 13px;
}

.tfa-secret-row .label {
    color: var(--text-muted);
}

.tfa-secret-row code {
    background: var(--bg-secondary);
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 13px;
    font-family: 'JetBrains Mono', monospace;
    color: var(--accent-cyan);
    letter-spacing: 1px;
    user-select: all;
}


/* ================================================================
   30. Account Dashboard — Sidebar Layout
   ================================================================ */

/* Two-column layout: sidebar left, content right */
.account-layout {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 32px;
    align-items: start;
}

.account-main {
    min-width: 0;
}

.account-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-violet));
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-family: var(--font-pixel);
    font-size: 16px;
    color: var(--bg-primary);
    overflow: hidden;
}

.account-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.account-username {
    font-weight: 600;
    font-size: 16px;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.account-email {
    font-size: 13px;
    color: var(--text-muted);
    word-break: break-all;
}

.account-plan-badge {
    display: inline-block;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.account-plan-badge.plan-free {
    background: rgba(138, 138, 154, 0.15);
    color: var(--text-secondary);
}

.account-plan-badge.plan-annual {
    background: rgba(0, 240, 255, 0.15);
    color: var(--accent-cyan);
}

.account-plan-badge.plan-perpetual {
    background: rgba(168, 85, 247, 0.15);
    color: var(--accent-violet);
}

/* ---- Nav Plan Badge ---- */
.nav-plan-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-left: 6px;
    vertical-align: middle;
    line-height: 1.4;
}

.nav-plan-badge.plan-free {
    background: rgba(138, 138, 154, 0.15);
    color: var(--text-secondary);
}

.nav-plan-badge.plan-annual {
    background: rgba(0, 240, 255, 0.15);
    color: var(--accent-cyan);
}

.nav-plan-badge.plan-perpetual {
    background: rgba(168, 85, 247, 0.15);
    color: var(--accent-violet);
}

/* Badge in dropdown header — slightly bigger */
.nav-user-dropdown-info .nav-plan-badge {
    margin-left: 0;
    margin-top: 4px;
    font-size: 10px;
    padding: 3px 10px;
}

/* ---- Sidebar ---- */
.account-sidebar {
    position: sticky;
    top: 100px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    padding: 24px;
}

.account-sidebar-user {
    text-align: center;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-subtle);
    margin-bottom: 16px;
}

.account-sidebar-user .account-avatar {
    width: 64px;
    height: 64px;
    margin: 0 auto 12px;
    font-size: 20px;
}

.account-sidebar-user .account-username {
    margin-bottom: 2px;
}

.account-sidebar-user .account-plan-badge {
    margin-top: 8px;
}

/* Nav buttons - vertical list */
.account-nav {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-bottom: 16px;
}

.account-nav-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px 14px;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    background: none;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all var(--transition-fast);
    text-align: left;
}

.account-nav-btn:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.03);
}

.account-nav-btn.active {
    color: var(--accent-cyan);
    background: rgba(0, 240, 255, 0.06);
    font-weight: 600;
}

.account-nav-btn svg {
    flex-shrink: 0;
    opacity: 0.7;
}

.account-nav-btn.active svg {
    opacity: 1;
}

.account-nav-btn-danger {
    color: var(--accent-orange);
}

.account-nav-btn-danger:hover {
    background: rgba(255, 107, 53, 0.04);
}

.account-nav-btn-danger.active {
    color: var(--accent-orange);
    background: rgba(255, 107, 53, 0.06);
}

/* Tab panels */
.account-tab-panel {
    display: none;
}

.account-tab-panel.active {
    display: block;
}

/* Sign out */
.account-signout {
    padding-top: 16px;
    border-top: 1px solid var(--border-subtle);
    text-align: center;
}

.account-signout .btn-secondary {
    font-size: 13px;
    padding: 10px 32px;
    width: 100%;
}

/* ---- Profile Banner & Avatar ---- */
.account-profile-banner-card {
    padding: 0;
    overflow: hidden;
}

.profile-banner {
    width: 100%;
    height: 180px;
    background: linear-gradient(135deg, var(--bg-secondary), var(--bg-card-hover, #1e1e2e));
    background-size: cover;
    background-position: center;
    position: relative;
}

.profile-banner-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.45);
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.profile-banner:hover .profile-banner-overlay {
    opacity: 1;
}

.btn-small {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    font-size: 12px;
}

.profile-avatar-wrapper {
    position: relative;
    width: 88px;
    margin: -44px auto 16px;
}

.account-avatar-lg {
    width: 88px;
    height: 88px;
    font-size: 24px;
    border: 3px solid var(--bg-card);
}

.avatar-upload-btn {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--accent-cyan);
    color: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform var(--transition-fast);
    border: 2px solid var(--bg-card);
}

.avatar-upload-btn:hover {
    transform: scale(1.1);
}

/* Section cards */
.account-section-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    padding: 32px;
    margin-bottom: 24px;
}

.account-section-card h3 {
    font-family: var(--font-body);
    font-size: 18px;
    font-weight: 700;
    text-transform: none;
    letter-spacing: 0;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-subtle);
}

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

.account-section-card .btn-primary {
    margin-top: 8px;
}

/* Read-only field style */
.form-readonly {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Plan display */
.plan-display {
    padding: 24px;
    background: var(--bg-secondary);
    border-radius: 12px;
    margin-bottom: 24px;
}

.plan-display-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.plan-display-name {
    font-family: var(--font-pixel);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent-cyan);
}

.plan-display-details p {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.plan-display-details p strong {
    color: var(--text-primary);
}

.plan-display-actions {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

/* Subscription status badges */
.sub-status {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 600;
}

.sub-status-active {
    background: rgba(0, 255, 136, 0.12);
    color: var(--accent-green);
}

.sub-status-trialing {
    background: rgba(0, 240, 255, 0.12);
    color: var(--accent-cyan);
}

.sub-status-past_due {
    background: rgba(255, 107, 53, 0.12);
    color: var(--accent-orange);
}

.sub-status-canceled,
.sub-status-expired {
    background: rgba(138, 138, 154, 0.12);
    color: var(--text-muted);
}

/* Upgrade cards (mini pricing) */
.upgrade-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-top: 16px;
}

.upgrade-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    transition: all var(--transition-normal);
}

.upgrade-card:hover {
    border-color: var(--border-light);
    transform: translateY(-2px);
}

.upgrade-card h4 {
    font-family: var(--font-pixel);
    font-size: 12px;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.upgrade-card .price {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.upgrade-card .price span {
    font-size: 14px;
    font-weight: 400;
    color: var(--text-muted);
}

.upgrade-card .btn-primary {
    width: 100%;
    margin-top: 16px;
    font-size: 12px;
    padding: 10px 16px;
}

/* Preference toggles */
.pref-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
    border-bottom: 1px solid var(--border-subtle);
}

.pref-toggle:last-of-type {
    border-bottom: none;
}

.pref-toggle-label {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.pref-toggle-label span:first-child {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
}

.pref-toggle-label span:last-child {
    font-size: 12px;
    color: var(--text-muted);
}

/* Toggle switch */
.toggle-switch {
    position: relative;
    width: 44px;
    height: 24px;
    flex-shrink: 0;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
}

.toggle-slider {
    position: absolute;
    inset: 0;
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.toggle-slider::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 18px;
    height: 18px;
    background: var(--text-muted);
    border-radius: 50%;
    transition: all var(--transition-fast);
}

.toggle-switch input:checked + .toggle-slider {
    background: rgba(0, 240, 255, 0.15);
    border-color: var(--accent-cyan);
}

.toggle-switch input:checked + .toggle-slider::before {
    transform: translateX(20px);
    background: var(--accent-cyan);
}

/* Bio textarea */
.account-section-card textarea {
    resize: vertical;
    min-height: 80px;
}

/* Upgrade helpers */
.upgrade-desc {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.upgrade-subtitle {
    font-size: 13px;
    color: var(--text-muted);
    margin: 8px 0;
}

.upgrade-title { letter-spacing: 2px; }
.upgrade-title-pro { color: var(--accent-cyan); }
.upgrade-title-studio { color: var(--accent-violet); }

.btn-studio {
    background: var(--accent-violet);
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.25);
}

.btn-studio:hover {
    background: #c084fc;
}

/* Danger zone card */
.card-danger {
    border-color: rgba(255, 107, 53, 0.2);
}

.card-danger h3 {
    color: var(--accent-orange);
    border-bottom-color: rgba(255, 107, 53, 0.15);
}

.card-danger p {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.btn-danger {
    color: var(--accent-orange);
    border-color: rgba(255, 107, 53, 0.3);
}

.btn-danger:hover {
    background: rgba(255, 107, 53, 0.08);
    border-color: var(--accent-orange);
}

/* Preferences toggle group */
.pref-toggles {
    margin-top: 24px;
}

.btn-save-prefs {
    margin-top: 24px;
}

/* ---- Account responsive ---- */
@media (max-width: 900px) {
    .account-layout {
        grid-template-columns: 1fr;
    }

    .account-sidebar {
        position: static;
    }

    .account-sidebar-user {
        display: none;
    }

    .account-nav {
        flex-direction: row;
        overflow-x: auto;
        gap: 4px;
        margin-bottom: 0;
        padding-bottom: 4px;
    }

    .account-nav-btn {
        white-space: nowrap;
        flex-shrink: 0;
        padding: 8px 12px;
        font-size: 13px;
    }

    .account-signout {
        display: none;
    }
}

@media (max-width: 768px) {
    .profile-banner {
        height: 140px;
    }

    .profile-avatar-wrapper {
        width: 72px;
        margin-top: -36px;
    }

    .account-avatar-lg {
        width: 72px;
        height: 72px;
        font-size: 20px;
    }

    .account-section-card {
        padding: 20px;
    }

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

/* Loading skeleton */
.account-loading {
    text-align: center;
    padding: 60px 0;
}

.account-loading .auth-spinner {
    display: inline-block;
    width: 32px;
    height: 32px;
    border: 3px solid var(--border-subtle);
    border-top-color: var(--accent-cyan);
    border-radius: 50%;
    animation: authSpin 0.8s linear infinite;
}

.account-loading p {
    margin-top: 16px;
    font-size: 14px;
    color: var(--text-muted);
}

/* ── Nav user menu (logged-in state) ── */
.nav-user-menu {
    position: relative;
    flex-shrink: 0;
}

#userMenuToggle {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

.nav-user-trigger {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 4px 10px 4px 4px;
    border-radius: 24px;
    border: 1px solid var(--border-subtle);
    transition: all 0.2s;
    user-select: none;
}

.nav-user-trigger:hover {
    border-color: var(--accent-cyan);
    background: rgba(255, 255, 255, 0.03);
}

.nav-avatar-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-violet));
    flex-shrink: 0;
}

.nav-avatar-circle-lg {
    width: 40px;
    height: 40px;
}

.nav-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.nav-avatar-initials {
    font-size: 11px;
    font-weight: 700;
    color: var(--bg-primary);
    line-height: 1;
}

.nav-avatar-circle-lg .nav-avatar-initials {
    font-size: 14px;
}

.nav-user-name {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary);
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.nav-user-chevron {
    color: var(--text-muted);
    transition: transform 0.2s;
    flex-shrink: 0;
}

#userMenuToggle:checked ~ .nav-user-trigger .nav-user-chevron {
    transform: rotate(180deg);
}

/* Dropdown */
.nav-user-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 240px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    overflow: hidden;
    z-index: 100;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
}

#userMenuToggle:checked ~ .nav-user-dropdown {
    display: block;
}

.nav-user-dropdown-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
}

.nav-user-dropdown-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.nav-user-dropdown-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.nav-user-dropdown-email {
    font-size: 12px;
    color: var(--text-muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.nav-user-dropdown-divider {
    height: 1px;
    background: var(--border-subtle);
}

.nav-user-dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    font-size: 13px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.15s;
}

.nav-user-dropdown-item:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.nav-user-dropdown-item svg {
    flex-shrink: 0;
    opacity: 0.6;
}

.nav-user-dropdown-item:hover svg {
    opacity: 1;
}

.nav-user-signout {
    color: var(--accent-red, #ff4d6a);
}

.nav-user-signout:hover {
    background: rgba(255, 77, 106, 0.1);
    color: var(--accent-red, #ff4d6a);
}

/* Toast notifications */
.auth-toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    padding: 14px 24px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    font-size: 14px;
    color: var(--text-primary);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    z-index: 9999;
    transform: translateY(100px);
    opacity: 0;
    transition: all var(--transition-normal);
    max-width: 360px;
}

.auth-toast.show {
    transform: translateY(0);
    opacity: 1;
}

.auth-toast.toast-success {
    border-color: rgba(0, 255, 136, 0.3);
}

.auth-toast.toast-error {
    border-color: rgba(255, 107, 53, 0.3);
}


/* ================================================================
   31. Auth & Account Responsive
   ================================================================ */

@media (max-width: 1024px) {
    .account-dashboard {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .auth-page {
        padding: 100px 0 60px;
    }

    .auth-card {
        padding: 28px 20px;
    }

    .account-header {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }

    .account-header-user {
        flex-direction: column;
    }

    .account-tabs {
        overflow-x: auto;
    }

    .account-tab-btn {
        font-size: 13px;
        padding: 10px 12px;
        white-space: nowrap;
    }

    .plan-display-actions {
        flex-direction: column;
    }

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

    .account-section-card {
        padding: 24px 20px;
    }

    /* Mobile auth links in nav menu */
    .nav-mobile-auth {
        border-top: 1px solid var(--border-subtle);
        margin-top: 16px;
        padding-top: 16px;
    }

    .nav-mobile-auth a {
        display: block;
        padding: 14px 0;
        font-size: 15px;
        color: var(--text-secondary);
        border-bottom: 1px solid var(--border-subtle);
    }

    .nav-mobile-auth a:last-child {
        border-bottom: none;
        color: var(--accent-orange);
    }
}

@media (max-width: 480px) {
    .auth-page {
        padding: 80px 0 40px;
    }

    .auth-wrapper {
        padding: 0 4px;
    }

    .auth-card {
        padding: 24px 16px;
        border-radius: 12px;
    }

    .auth-form-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .auth-toast {
        left: 16px;
        right: 16px;
        bottom: 16px;
        max-width: none;
    }

    .code-digit {
        width: 38px;
        height: 48px;
        font-size: 20px;
        border-radius: 8px;
    }

    .code-inputs {
        gap: 5px;
    }

    .code-separator {
        margin: 0;
    }
}

/* ============================================================
   Lightbox
   ============================================================ */
#lightbox {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}
#lightbox.lb-visible {
    opacity: 1;
    pointer-events: auto;
}
#lb-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(5, 5, 15, 0.92);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
#lb-content {
    position: relative;
    z-index: 2;
    max-width: 90vw;
    max-height: 88vh;
    display: flex;
    align-items: center;
    justify-content: center;
}
#lb-img {
    max-width: 90vw;
    max-height: 88vh;
    width: auto;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 32px 80px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(0, 229, 255, 0.12);
    opacity: 0;
    transform: scale(0.92);
    transition: opacity 0.25s ease, transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: block;
}
#lb-img[style*="opacity: 1"],
#lb-img[style*="opacity:1"] {
    opacity: 1;
    transform: scale(1);
}
#lb-close {
    position: absolute;
    top: 20px;
    right: 24px;
    z-index: 3;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.15);
    background: rgba(255,255,255,0.08);
    color: #fff;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, transform 0.2s;
    backdrop-filter: blur(4px);
}
#lb-close:hover {
    background: rgba(0, 229, 255, 0.2);
    transform: scale(1.1);
}
#lb-prev,
#lb-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.15);
    background: rgba(255,255,255,0.08);
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, transform 0.2s;
    backdrop-filter: blur(4px);
}
#lb-prev { left: 20px; }
#lb-next { right: 20px; }
#lb-prev:hover,
#lb-next:hover {
    background: rgba(0, 229, 255, 0.2);
    transform: translateY(-50%) scale(1.1);
}
@media (max-width: 640px) {
    #lb-prev { left: 8px; }
    #lb-next { right: 8px; }
    #lb-content { max-width: 96vw; }
    #lb-img { max-width: 96vw; border-radius: 8px; }
}
