/**
 * AABStudio.ai - Global Styles
 * Enterprise Video Production Platform
 * 
 * @package AABStudio
 * @version 1.0.0
 */

/* ============================================
   RESET
   ============================================ */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    max-width: 100vw;
    overflow-x: hidden;
    box-sizing: border-box;
}

*, *::before, *::after {
    box-sizing: inherit;
}

body {
    height: 100%;
    max-width: 100vw;
    overflow-x: hidden;
    overflow-y: auto;
    font-family: 'Sora', sans-serif;
    font-size: 14px;
    line-height: 1.6;
    transition: background-color 0.3s ease, color 0.3s ease;
}

button,
input,
select,
textarea {
    font-family: inherit;
}

/* ============================================
   CSS CUSTOM PROPERTIES (TOKENS)
   ============================================ */
:root {
    /* Dark Theme (default) */
    --navy: #0a0e1a;
    --navy2: #111827;
    --navy3: #1a2235;
    --navy4: #243044;
    --accent: #00d4ff;
    --accent2: #0099cc;
    --gold: #f59e0b;
    --green: #10b981;
    --red: #ef4444;
    --purple: #8b5cf6;
    --white: #fff;
    --off: #f7f8fa;
    --ink: #0d0f14;
    --muted: #6b7280;
    --muted2: #9ca3af;
    --bdr: rgba(0, 0, 0, .08);
    --bdr2: rgba(0, 0, 0, .12);
    --r: 8px;
    --rl: 12px;
    --rxl: 18px;
    
    /* Theme-specific */
    --bg-body: var(--navy);
    --bg-surface: var(--navy2);
    --bg-surface2: var(--navy3);
    --bg-card: var(--navy3);
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, .7);
    --text-muted: rgba(255, 255, 255, .4);
    --border-color: rgba(255, 255, 255, .08);
    --border-color2: rgba(255, 255, 255, .12);
    --shadow-color: rgba(0, 0, 0, .3);
    --glass-bg: rgba(255, 255, 255, .04);
    --glass-border: rgba(255, 255, 255, .08);
}

/* Light Theme */
[data-theme="light"] {
    --bg-body: #f7f8fa;
    --bg-surface: #ffffff;
    --bg-surface2: #f1f3f5;
    --bg-card: #ffffff;
    --text-primary: #0d0f14;
    --text-secondary: rgba(13, 15, 20, .7);
    --text-muted: rgba(13, 15, 20, .4);
    --border-color: rgba(0, 0, 0, .08);
    --border-color2: rgba(0, 0, 0, .12);
    --shadow-color: rgba(0, 0, 0, .08);
    --glass-bg: rgba(255, 255, 255, .6);
    --glass-border: rgba(0, 0, 0, .08);
    --off: #f7f8fa;
    --ink: #0d0f14;
    --muted: #6b7280;
    --muted2: #9ca3af;
    --bdr: rgba(0, 0, 0, .08);
    --bdr2: rgba(0, 0, 0, .12);
}

/* ============================================
   PAGES
   ============================================ */
.page {
    display: none;
    min-height: 100vh;
    background: var(--bg-body);
    color: var(--text-primary);
}

.page.active {
    display: block;
}

.page-full {
    display: none;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100;
}

.page-full.active {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100vh;
    background: #000;
}

.page-flex {
    display: none;
}

.page-flex.active {
    display: flex;
    flex-direction: column;
}

/* ============================================
   TOP NAVIGATION
   ============================================ */
#topnav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    height: 52px;
    display: flex;
    align-items: center;
    padding: 0 24px;
    background: var(--bg-surface);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: .5px solid var(--border-color);
    transition: background 0.3s ease;
}

[data-theme="light"] #topnav {
    background: rgba(255, 255, 255, .95);
    border-bottom: .5px solid rgba(0, 0, 0, .08);
}

.nav-container {
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    gap: 16px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
    cursor: pointer;
    text-decoration: none;
    letter-spacing: -.01em;
    flex-shrink: 0;
}

.nav-logo-img {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    object-fit: cover;
}

.nav-logo span {
    color: var(--accent);
}

.nav-links {
    display: flex;
    gap: 20px;
    margin-left: 36px;
}

.nav-links a {
    font-size: 13px;
    color: var(--text-muted);
    cursor: pointer;
    text-decoration: none;
    transition: color .15s;
    padding: 4px 0;
    border-bottom: 2px solid transparent;
}

.nav-links a:hover {
    color: var(--text-primary);
}

.nav-links a.active {
    color: var(--accent);
    border-bottom-color: var(--accent);
}

.nav-right {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Credits Pill */
.credits-pill {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 4px 12px;
    border-radius: 20px;
    background: rgba(245, 158, 11, .1);
    border: .5px solid rgba(245, 158, 11, .25);
    font-size: 12px;
    color: var(--gold);
    font-weight: 500;
    cursor: pointer;
    transition: all .2s;
}

.credits-pill:hover {
    background: rgba(245, 158, 11, .2);
}

.credits-pill .credit-icon {
    font-size: 12px;
}

/* Theme Toggle */
.theme-toggle,
.theme-toggle-mobile {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: .5px solid var(--border-color);
    background: var(--glass-bg);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all .2s;
    font-size: 16px;
    flex-shrink: 0;
}

.theme-toggle:hover,
.theme-toggle-mobile:hover {
    background: var(--glass-bg);
    border-color: var(--accent);
    color: var(--accent);
}

.theme-toggle .theme-icon-light,
.theme-toggle-mobile .theme-icon-light {
    display: none;
}

.theme-toggle .theme-icon-dark,
.theme-toggle-mobile .theme-icon-dark {
    display: inline;
}

[data-theme="light"] .theme-toggle .theme-icon-light,
[data-theme="light"] .theme-toggle-mobile .theme-icon-light {
    display: inline;
}

[data-theme="light"] .theme-toggle .theme-icon-dark,
[data-theme="light"] .theme-toggle-mobile .theme-icon-dark {
    display: none;
}

/* Nav Hamburger */
.nav-hamburger {
    display: none;
    flex-direction: column;
    gap: 4px;
    padding: 4px;
    background: none;
    border: none;
    cursor: pointer;
    margin-left: auto;
}

.nav-hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all .25s ease;
}

.nav-hamburger[aria-expanded="true"] span:nth-child(1) {
    transform: rotate(45deg) translate(4px, 4px);
}

.nav-hamburger[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.nav-hamburger[aria-expanded="true"] span:nth-child(3) {
    transform: rotate(-45deg) translate(4px, -4px);
}

/* Mobile Drawer */
.nav-drawer {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 320px;
    max-width: 80vw;
    z-index: 101;
    background: var(--bg-surface);
    border-right: .5px solid var(--border-color);
    transform: translateX(-100%);
    transition: transform .28s cubic-bezier(.4, 0, .2, 1);
    overflow-y: auto;
    padding: 0;
}

.nav-drawer.open {
    transform: translateX(0);
}

.nav-drawer-inner {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    padding: 16px;
}

.nav-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 16px;
    border-bottom: .5px solid var(--border-color);
}

.nav-drawer-header .nav-logo {
    font-size: .95rem;
}

.nav-drawer-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 20px;
    cursor: pointer;
    padding: 4px 8px;
}

.nav-drawer-user {
    padding: 16px 0;
    border-bottom: .5px solid var(--border-color);
}

.nav-drawer-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(0, 212, 255, .15);
    border: 1.5px solid rgba(0, 212, 255, .3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 8px;
}

.nav-drawer-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
}

.nav-drawer-email {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 2px;
}

.nav-drawer-plan {
    display: inline-block;
    margin-top: 6px;
    font-size: 10px;
    padding: 2px 10px;
    border-radius: 10px;
    background: rgba(245, 158, 11, .1);
    color: var(--gold);
    border: .5px solid rgba(245, 158, 11, .2);
}

.nav-drawer-links {
    flex: 1;
    padding: 12px 0;
}

.nav-drawer-links a {
    display: block;
    padding: 12px 0;
    font-size: 14px;
    color: var(--text-secondary);
    text-decoration: none;
    border-bottom: .5px solid var(--border-color);
    transition: color .15s;
}

.nav-drawer-links a:hover {
    color: var(--text-primary);
}

.nav-drawer-links hr {
    border: none;
    border-top: .5px solid var(--border-color);
    margin: 8px 0;
}

.nav-drawer-links .nav-drawer-cta {
    color: var(--accent);
    font-weight: 600;
}

.nav-drawer-links .nav-drawer-signout {
    color: var(--red);
}

.nav-drawer-footer {
    padding-top: 16px;
    border-top: .5px solid var(--border-color);
}

.theme-toggle-mobile {
    width: 100%;
    border-radius: 8px;
    padding: 10px;
    gap: 10px;
    font-size: 13px;
    background: var(--glass-bg);
    border: .5px solid var(--border-color);
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .2s;
}

.theme-toggle-mobile:hover {
    border-color: var(--accent);
    color: var(--accent);
}

/* Drawer Overlay */
.nav-drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .55);
    z-index: 100;
    opacity: 0;
    pointer-events: none;
    transition: opacity .28s ease;
}

.nav-drawer-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 18px;
    border-radius: var(--r);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    border: none;
    transition: all .15s;
    font-family: 'Sora', sans-serif;
    text-decoration: none;
    white-space: nowrap;
}

.btn:disabled {
    opacity: .4;
    cursor: not-allowed;
}

.btn-primary {
    background: var(--accent);
    color: var(--navy);
    font-weight: 600;
}

.btn-primary:hover:not(:disabled) {
    background: #33ddff;
    transform: translateY(-1px);
}

[data-theme="light"] .btn-primary {
    color: #0a0e1a;
}

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
    border: .5px solid var(--border-color);
}

.btn-ghost:hover {
    background: var(--glass-bg);
    color: var(--text-primary);
}

.btn-dark {
    background: var(--bg-surface2);
    color: var(--text-secondary);
    border: .5px solid var(--border-color);
}

.btn-dark:hover {
    background: var(--navy4);
}

.btn-danger {
    background: rgba(239, 68, 68, .1);
    color: var(--red);
    border: .5px solid rgba(239, 68, 68, .2);
}

.btn-danger:hover {
    background: rgba(239, 68, 68, .2);
}

.btn-sm {
    padding: 5px 12px;
    font-size: 12px;
}

.btn-lg {
    padding: 12px 28px;
    font-size: 15px;
}

.btn-block {
    width: 100%;
    justify-content: center;
}

/* ============================================
   FORM INPUTS
   ============================================ */
.form-input {
    width: 100%;
    padding: 9px 13px;
    border-radius: var(--r);
    border: .5px solid var(--border-color2);
    background: var(--bg-body);
    color: var(--text-primary);
    font-size: 14px;
    outline: none;
    transition: border-color .15s, background .3s ease;
}

.form-input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(0, 212, 255, .1);
}

[data-theme="light"] .form-input {
    background: #ffffff;
    border-color: rgba(0, 0, 0, .12);
}

[data-theme="light"] .form-input:focus {
    box-shadow: 0 0 0 3px rgba(0, 212, 255, .15);
}

.form-input::placeholder {
    color: var(--text-muted);
}

.form-input-dark {
    background: rgba(255, 255, 255, .04);
    border-color: var(--border-color);
    color: var(--text-primary);
}

.form-input-dark::placeholder {
    color: rgba(255, 255, 255, .25);
}

.form-input-dark:focus {
    border-color: var(--accent);
}

.form-textarea {
    width: 100%;
    padding: 12px 14px;
    border-radius: var(--r);
    border: .5px solid var(--border-color2);
    background: var(--bg-body);
    color: var(--text-primary);
    font-size: 14px;
    font-family: 'Sora', sans-serif;
    resize: vertical;
    min-height: 120px;
    outline: none;
    line-height: 1.65;
}

.form-textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(0, 212, 255, .1);
}

[data-theme="light"] .form-textarea {
    background: #ffffff;
    border-color: rgba(0, 0, 0, .12);
}

.form-textarea-dark {
    background: rgba(255, 255, 255, .04);
    border-color: var(--border-color);
    color: var(--text-primary);
}

.form-textarea-dark::placeholder {
    color: rgba(255, 255, 255, .3);
}

.field-hint {
    display: block;
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 4px;
}

/* ============================================
   TOAST SYSTEM
   ============================================ */
#toasts {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 99998;
    display: flex;
    flex-direction: column-reverse;
    gap: 8px;
    pointer-events: none;
    max-width: 340px;
}

.toast {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 10px;
    font-size: 13px;
    font-family: 'Sora', sans-serif;
    font-weight: 500;
    box-shadow: 0 8px 32px rgba(0, 0, 0, .4);
    pointer-events: all;
    cursor: default;
    max-width: 340px;
    border: .5px solid transparent;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    animation: toastSlideUp .28s cubic-bezier(.34, 1.56, .64, 1) both;
}

.toast-ok {
    background: rgba(16, 185, 129, .18);
    border-color: rgba(16, 185, 129, .35);
    color: #6ee7b7;
}

.toast-error {
    background: rgba(239, 68, 68, .18);
    border-color: rgba(239, 68, 68, .35);
    color: #fca5a5;
}

.toast-info {
    background: rgba(99, 102, 241, .18);
    border-color: rgba(99, 102, 241, .35);
    color: #c7d2fe;
}

.toast-warn {
    background: rgba(245, 158, 11, .18);
    border-color: rgba(245, 158, 11, .35);
    color: #fde68a;
}

.toast-icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
}

.toast-ok .toast-icon {
    background: rgba(16, 185, 129, .3);
}

.toast-error .toast-icon {
    background: rgba(239, 68, 68, .3);
}

.toast-info .toast-icon {
    background: rgba(99, 102, 241, .3);
}

.toast-warn .toast-icon {
    background: rgba(245, 158, 11, .3);
}

.toast-msg {
    flex: 1;
    line-height: 1.4;
}

.toast-close {
    background: none;
    border: none;
    color: currentColor;
    opacity: .5;
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
    padding: 0 2px;
    flex-shrink: 0;
}

.toast-close:hover {
    opacity: 1;
}

@keyframes toastSlideUp {
    from {
        opacity: 0;
        transform: translateY(8px) scale(.96);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ============================================
   HOME PAGE
   ============================================ */
#home {
    background: var(--bg-body);
    color: var(--text-primary);
    padding-top: 52px;
}

/* Hero */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 80px 24px 60px;
    position: relative;
    overflow: hidden;
}

.hero-glow {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 70% 50% at 50% 20%, rgba(0, 212, 255, .07), transparent 70%),
                radial-gradient(ellipse 40% 40% at 80% 70%, rgba(139, 92, 246, .05), transparent 60%);
    pointer-events: none;
}

[data-theme="light"] .hero-glow {
    background: radial-gradient(ellipse 70% 50% at 50% 20%, rgba(0, 212, 255, .04), transparent 70%),
                radial-gradient(ellipse 40% 40% at 80% 70%, rgba(139, 92, 246, .03), transparent 60%);
}

.hero-grid {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(255, 255, 255, .018) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(255, 255, 255, .018) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
}

[data-theme="light"] .hero-grid {
    background-image: linear-gradient(rgba(0, 0, 0, .04) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(0, 0, 0, .04) 1px, transparent 1px);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 820px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 14px;
    border-radius: 20px;
    background: rgba(0, 212, 255, .08);
    border: .5px solid rgba(0, 212, 255, .2);
    font-size: 12px;
    font-weight: 500;
    color: var(--accent);
    margin-bottom: 22px;
}

.badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: .35; }
}

.hero h1 {
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -.02em;
    color: var(--text-primary);
    margin-bottom: 14px;
}

.hero h1 em {
    font-style: normal;
    color: var(--accent);
}

.hero-sub {
    font-size: 1rem;
    color: var(--text-secondary);
    max-width: 520px;
    margin: 0 auto 36px;
    line-height: 1.7;
}

.hero-cards {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 56px;
}

.hero-card {
    background: var(--glass-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 22px 26px;
    max-width: 240px;
    text-align: left;
    cursor: pointer;
    transition: all .2s;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.hero-card:hover {
    transform: translateY(-3px);
    border-color: var(--accent);
    box-shadow: 0 16px 48px var(--shadow-color);
}

.hero-card.accent {
    background: rgba(0, 212, 255, .06);
    border-color: rgba(0, 212, 255, .25);
}

.hero-card .hc-icon {
    font-size: 20px;
    margin-bottom: 10px;
}

.hero-card .hc-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.hero-card .hc-desc {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 14px;
}

.hero-card .hc-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 8px 16px;
    border-radius: 7px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    font-family: 'Sora', sans-serif;
}

.hc-btn-accent {
    background: var(--accent);
    color: var(--navy);
}

[data-theme="light"] .hc-btn-accent {
    color: #0a0e1a;
}

.hc-btn-ghost {
    background: rgba(255, 255, 255, .1);
    color: var(--text-primary);
    border: .5px solid rgba(255, 255, 255, .2);
}

[data-theme="light"] .hc-btn-ghost {
    background: rgba(0, 0, 0, .05);
    border-color: rgba(0, 0, 0, .15);
}

.hero-stats {
    display: flex;
    gap: 36px;
    justify-content: center;
    flex-wrap: wrap;
}

.stat {
    text-align: center;
}

.stat-number {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-primary);
}

.stat-label {
    font-size: 10px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: .06em;
    margin-top: 2px;
}

.stat-divider {
    width: .5px;
    height: 28px;
    background: var(--border-color);
}

/* Home Sections */
.home-section {
    padding: 72px 24px;
}

.container {
    max-width: 1060px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 48px;
}

.section-kicker {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--accent);
    margin-bottom: 10px;
}

.section-header h2 {
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -.015em;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.section-sub {
    color: var(--text-secondary);
    max-width: 480px;
    margin: 0 auto;
    line-height: 1.7;
}

/* TP Feature */
.tp-feature {
    background: var(--bg-surface2);
    border-top: .5px solid var(--border-color);
    border-bottom: .5px solid var(--border-color);
}

[data-theme="light"] .tp-feature {
    background: #f1f3f5;
}

.tp-feature-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 44px;
    align-items: center;
}

.tp-feature-content .section-sub {
    margin: 0 0 28px;
}

.tp-features-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 22px;
}

.tp-feat {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.tp-feat-icon {
    width: 30px;
    height: 30px;
    border-radius: 7px;
    background: rgba(0, 212, 255, .08);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 13px;
}

.tp-feat-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 3px;
}

.tp-feat-desc {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.55;
}

.tp-demo {
    background: #000;
    border-radius: 16px;
    overflow: hidden;
    border: .5px solid var(--border-color);
    aspect-ratio: 16/9;
    position: relative;
}

.tp-demo-background {
    background: linear-gradient(135deg, #0a1a2e, #0d2040);
    width: 100%;
    height: 100%;
}

.tp-demo-text {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, .95) 0%, rgba(0, 0, 0, .5) 55%, transparent 100%);
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.tp-demo-prev {
    font-size: 11px;
    color: rgba(255, 255, 255, .2);
    font-family: 'JetBrains Mono', monospace;
    margin-bottom: 8px;
}

.tp-demo-current {
    font-size: 1.2rem;
    font-weight: 600;
    color: #fff;
    font-family: 'JetBrains Mono', monospace;
    border-left: 3px solid var(--accent);
    padding-left: 14px;
    line-height: 1.6;
}

.tp-demo-current .gold {
    color: var(--gold);
}

.tp-demo-next {
    font-size: 11px;
    color: rgba(255, 255, 255, .15);
    font-family: 'JetBrains Mono', monospace;
    margin-top: 8px;
}

.tp-phone-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(0, 212, 255, .1);
    border: .5px solid rgba(0, 212, 255, .3);
    border-radius: 7px;
    padding: 5px 10px;
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 10px;
    color: var(--accent);
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 12px;
}

.feat-card {
    background: var(--bg-card);
    border: .5px solid var(--border-color);
    border-radius: var(--rl);
    padding: 22px;
    transition: all .2s;
}

[data-theme="light"] .feat-card {
    background: #ffffff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .04);
}

.feat-card:hover {
    border-color: rgba(0, 212, 255, .2);
    transform: translateY(-2px);
    box-shadow: 0 8px 32px var(--shadow-color);
}

.feat-icon {
    width: 38px;
    height: 38px;
    border-radius: 9px;
    background: rgba(0, 212, 255, .08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    margin-bottom: 12px;
}

.feat-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 5px;
}

.feat-desc {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Pricing */
.pricing {
    background: var(--bg-surface2);
    border-top: .5px solid var(--border-color);
    border-bottom: .5px solid var(--border-color);
}

[data-theme="light"] .pricing {
    background: #f1f3f5;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}

.plan {
    background: var(--bg-card);
    border: .5px solid var(--border-color);
    border-radius: var(--rxl);
    padding: 24px;
    transition: transform .2s;
    position: relative;
}

[data-theme="light"] .plan {
    background: #ffffff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .04);
}

.plan:hover {
    transform: translateY(-2px);
}

.plan.featured {
    background: linear-gradient(135deg, rgba(0, 212, 255, .05), var(--bg-card));
    border-color: rgba(0, 212, 255, .25);
}

[data-theme="light"] .plan.featured {
    background: linear-gradient(135deg, rgba(0, 212, 255, .04), #ffffff);
}

.plan.pro {
    background: linear-gradient(135deg, rgba(139, 92, 246, .08), var(--bg-card));
    border-color: rgba(139, 92, 246, .4);
}

[data-theme="light"] .plan.pro {
    background: linear-gradient(135deg, rgba(139, 92, 246, .04), #ffffff);
}

.plan-badge {
    position: absolute;
    top: -1px;
    right: 18px;
    background: var(--accent);
    color: var(--navy);
    font-size: 10px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 0 0 7px 7px;
    letter-spacing: .04em;
}

.plan-badge.pro {
    background: var(--purple);
    color: #fff;
}

[data-theme="light"] .plan-badge {
    color: #0a0e1a;
}

.plan-name {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--text-muted);
    margin-bottom: 7px;
}

.plan-price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -.02em;
}

.plan-price sub {
    font-size: .9rem;
    font-weight: 400;
    color: var(--text-muted);
}

.plan-period {
    font-size: 11px;
    color: var(--text-muted);
    margin: 5px 0 16px;
}

.plan-features {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 20px;
}

.plan-feat {
    font-size: 12px;
    color: var(--text-secondary);
    display: flex;
    gap: 7px;
}

.plan-feat::before {
    content: "✓";
    color: var(--accent);
    font-weight: 600;
    flex-shrink: 0;
}

.plan-feat-disabled {
    color: var(--text-muted);
}

.plan-feat-disabled::before {
    content: "✗";
    color: var(--text-muted);
}

.pricing-note {
    text-align: center;
    font-size: 12px;
    color: var(--text-muted);
}

/* CTA Section */
.cta {
    text-align: center;
}

.cta h2 {
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.cta-sub {
    font-size: 1rem;
    color: var(--text-secondary);
    max-width: 380px;
    margin: 0 auto 32px;
}

.cta-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Contact CTA */
.contact-cta {
    background: var(--bg-surface2);
    border-top: .5px solid var(--border-color);
    text-align: center;
}

[data-theme="light"] .contact-cta {
    background: #f1f3f5;
}

.contact-cta h2 {
    font-size: 26px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.contact-cta-sub {
    color: var(--text-secondary);
    margin-bottom: 24px;
}

/* ============================================
   AUTH PAGES
   ============================================ */
#auth-page {
    background: var(--bg-body);
    color: var(--text-primary);
    padding-top: 52px;
    min-height: 100vh;
}

.auth-container {
    min-height: calc(100vh - 52px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.auth-box {
    background: var(--bg-surface);
    border: .5px solid var(--border-color);
    border-radius: var(--rxl);
    padding: 34px;
    width: 100%;
    max-width: min(390px, 100%);
    box-shadow: 0 24px 60px var(--shadow-color);
}

[data-theme="light"] .auth-box {
    background: #ffffff;
    box-shadow: 0 24px 60px rgba(0, 0, 0, .08);
}

.auth-header {
    text-align: center;
    margin-bottom: 24px;
}

.auth-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
}

.auth-logo img {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    object-fit: cover;
}

.auth-logo span {
    color: var(--accent);
}

.auth-sub {
    font-size: 13px;
    color: var(--text-muted);
    text-align: center;
    margin-top: 6px;
}

.auth-tabs {
    display: flex;
    border-radius: var(--r);
    overflow: hidden;
    border: .5px solid var(--border-color);
    margin-bottom: 22px;
}

.auth-tab {
    flex: 1;
    padding: 8px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-family: 'Sora', sans-serif;
    transition: all .15s;
}

.auth-tab.active {
    background: rgba(0, 212, 255, .1);
    color: var(--accent);
}

.auth-panel {
    display: none;
}

.auth-panel.active {
    display: block;
}

.auth-field {
    margin-bottom: 13px;
}

.auth-field label {
    display: block;
    font-size: 11px;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 5px;
}

.auth-error {
    font-size: 12px;
    color: var(--red);
    padding: 8px 12px;
    background: rgba(239, 68, 68, .08);
    border-radius: var(--r);
    margin-bottom: 11px;
    display: none;
}

.auth-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 14px;
    font-size: 12px;
    color: var(--text-muted);
}

.auth-links a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
}

.auth-links a:hover {
    text-decoration: underline;
}

.auth-back {
    text-align: center;
    margin-top: 14px;
}

.auth-back a {
    font-size: 12px;
    color: var(--text-muted);
    cursor: pointer;
    text-decoration: none;
}

.auth-back a:hover {
    color: var(--accent);
}

/* ============================================
   FOOTER
   ============================================ */
#aab-footer {
    display: flex;
    position: relative;
    background: var(--bg-surface);
    border-top: .5px solid var(--border-color);
    padding: 16px 24px;
    z-index: 50;
    font-family: 'Sora', 'Inter', sans-serif;
    font-size: 11px;
    color: var(--text-muted);
    transition: background 0.3s ease;
}

[data-theme="light"] #aab-footer {
    background: #f7f8fa;
    border-top: .5px solid rgba(0, 0, 0, .06);
}

.footer-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    flex-wrap: wrap;
    gap: 10px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
}

.footer-logo-img {
    width: 24px;
    height: 24px;
    border-radius: 4px;
    object-fit: cover;
}

.footer-logo span {
    color: var(--accent);
}

.footer-tagline {
    font-size: 11px;
    color: var(--text-muted);
    margin: 0;
}

.footer-links {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.footer-links a {
    font-size: 11px;
    color: var(--text-muted);
    cursor: pointer;
    text-decoration: none;
    transition: color .15s;
}

.footer-links a:hover {
    color: var(--text-primary);
}

.footer-meta {
    display: flex;
    align-items: center;
    gap: 16px;
}

.footer-status {
    display: flex;
    align-items: center;
    gap: 4px;
    color: var(--green);
    font-size: 10px;
}

.status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--green);
    display: inline-block;
}

.footer-plan {
    background: rgba(37, 99, 235, .15);
    color: #60a5fa;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 10px;
    font-weight: 700;
}

.footer-copy {
    color: var(--text-muted);
}

/* ============================================
   CONTACT PAGE
   ============================================ */
.contact-page {
    background: var(--bg-body);
    color: var(--text-primary);
    padding-top: 52px;
    min-height: 100vh;
}

.contact-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 60px 24px;
}

.contact-container h1 {
    font-size: 32px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.contact-container .contact-sub {
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.contact-container .contact-email {
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.contact-container .contact-email a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.contact-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.contact-form .form-row .form-input {
    width: 100%;
}

.contact-form .form-submit {
    padding: 12px;
    background: var(--accent);
    color: var(--navy);
    border: none;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    font-size: 14px;
    font-family: inherit;
}

[data-theme="light"] .contact-form .form-submit {
    color: #0a0e1a;
}

.contact-form .form-submit:hover {
    opacity: .9;
}

.contact-status {
    display: none;
    color: var(--green);
    text-align: center;
    font-size: 13px;
    margin-top: 12px;
}

.contact-status.show {
    display: block;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    /* Tablet adjustments */
}

@media (max-width: 768px) {
    /* General */
    body {
        font-size: 13px;
    }
    
    .btn {
        padding: 7px 14px;
        font-size: 13px;
    }
    
    .btn-lg {
        padding: 10px 18px;
        font-size: 14px;
    }
    
    /* Topnav */
    #topnav {
        padding: 0 14px;
        gap: 8px;
    }
    
    .nav-links {
        display: none;
    }
    
    .nav-hamburger {
        display: flex;
    }
    
    .nav-logo {
        font-size: .95rem;
    }
    
    /* Home */
    .hero {
        padding: 70px 16px 40px;
    }
    
    .hero h1 {
        font-size: 1.9rem;
    }
    
    .hero-sub {
        font-size: .9rem;
    }
    
    .hero-cards {
        flex-direction: column;
        align-items: center;
        width: 100%;
    }
    
    .hero-card {
        width: 100%;
        max-width: 360px;
    }
    
    .hero-stats {
        gap: 20px;
    }
    
    .features-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .pricing-grid {
        grid-template-columns: 1fr;
    }
    
    .tp-feature-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    /* Auth */
    .auth-container {
        padding: 16px;
        align-items: flex-start;
        padding-top: 20px;
    }
    
    .auth-box {
        padding: 22px 18px;
    }
    
    /* Footer */
    #aab-footer {
        padding: 12px 16px;
    }
    
    .footer-container {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
    
    .footer-links {
        justify-content: center;
    }
    
    .footer-meta {
        justify-content: center;
    }
    
    /* Contact */
    .contact-form .form-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.6rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .auth-box {
        padding: 18px 14px;
    }
    
    .contact-container {
        padding: 40px 16px;
    }
}

/* ============================================
   SCROLLBARS
   ============================================ */
::-webkit-scrollbar {
    width: 4px;
    height: 4px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, .15);
    border-radius: 3px;
}

[data-theme="light"] ::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, .15);
}

/* ============================================
   UTILITY
   ============================================ */
.text-accent {
    color: var(--accent);
}

.text-gold {
    color: var(--gold);
}

.text-green {
    color: var(--green);
}

.text-red {
    color: var(--red);
}

.text-muted {
    color: var(--text-muted);
}

.text-center {
    text-align: center;
}

.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.gap-8 {
    gap: 8px;
}

.gap-12 {
    gap: 12px;
}

.gap-16 {
    gap: 16px;
}

.mt-8 {
    margin-top: 8px;
}

.mt-12 {
    margin-top: 12px;
}

.mt-16 {
    margin-top: 16px;
}

.mt-24 {
    margin-top: 24px;
}

.mb-8 {
    margin-bottom: 8px;
}

.mb-12 {
    margin-bottom: 12px;
}

.mb-16 {
    margin-bottom: 16px;
}

.mb-24 {
    margin-bottom: 24px;
}

/* ============================================
   FOOTER SOCIAL MEDIA ICONS
   ============================================ */
.footer-social {
    display: flex;
    align-items: center;
    gap: 6px;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    color: var(--text-muted);
    transition: all 0.2s ease;
    text-decoration: none;
    border: 1px solid var(--border-color);
    background: var(--glass-bg);
}

.social-icon:hover {
    color: var(--accent);
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 212, 255, 0.15);
}

.social-icon svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* Light theme adjustments */
[data-theme="light"] .social-icon {
    color: #6b7280;
    border-color: rgba(0, 0, 0, 0.08);
    background: rgba(255, 255, 255, 0.6);
}

[data-theme="light"] .social-icon:hover {
    color: var(--accent);
    border-color: var(--accent);
}

/* Mobile responsive */
@media (max-width: 768px) {
    .footer-social {
        gap: 4px;
    }
    
    .social-icon {
        width: 28px;
        height: 28px;
    }
    
    .social-icon svg {
        width: 14px;
        height: 14px;
    }
}