/* ============================================================
   ControlTower — Design System
   Dark Professional Theme: navy, indigo, white
   ============================================================ */

/* ---- Variables ---- */
:root {
    --bg-0:         #050914;
    --bg-1:         #0a1020;
    --bg-2:         #0f1a2e;
    --bg-card:      #111827;
    --bg-card-h:    #172034;

    --border:       #1e3a5f;
    --border-sub:   #152238;

    --accent:       #6366f1;
    --accent-hover: #4f46e5;
    --accent-glow:  rgba(99,102,241,.3);
    --accent-dim:   rgba(99,102,241,.12);

    --blue-300:     #93c5fd;
    --blue-400:     #60a5fa;
    --blue-500:     #3b82f6;
    --blue-600:     #2563eb;
    --cyan-400:     #22d3ee;
    --cyan-500:     #06b6d4;

    --text-1:       #f1f5f9;
    --text-2:       #cbd5e1;
    --text-3:       #94a3b8;
    --text-4:       #64748b;

    --green-400:    #4ade80;
    --green-500:    #22c55e;
    --red-400:      #f87171;
    --yellow-400:   #facc15;

    --font:         'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --r-sm:         6px;
    --r:            10px;
    --r-lg:         16px;
    --r-xl:         24px;

    --shadow:       0 4px 6px -1px rgba(0,0,0,.5);
    --shadow-lg:    0 20px 40px -10px rgba(0,0,0,.7);
    --glow:         0 0 40px rgba(99,102,241,.15);
    --glow-sm:      0 0 20px rgba(99,102,241,.1);

    --max-w:        1200px;
    --nav-h:        68px;
}

/* ---- Light Theme ---- */
[data-theme="light"] {
    --bg-0: #f8fafc;
    --bg-1: #f1f5f9;
    --bg-2: #e2e8f0;
    --bg-card: #ffffff;
    --bg-card-h: #f8fafc;
    --border: #cbd5e1;
    --border-sub: #e2e8f0;
    --text-1: #0f172a;
    --text-2: #334155;
    --text-3: #64748b;
    --text-4: #94a3b8;
    --shadow: 0 4px 6px -1px rgba(0,0,0,.1);
    --shadow-lg: 0 20px 40px -10px rgba(0,0,0,.15);
    --glow: 0 0 40px rgba(99,102,241,.08);
    --glow-sm: 0 0 20px rgba(99,102,241,.05);
}
[data-theme="light"] .navbar {
    background: rgba(248,250,252,.95);
    border-bottom-color: #cbd5e1;
}
[data-theme="light"] .form-input,
[data-theme="light"] .form-group input,
[data-theme="light"] .form-group select,
[data-theme="light"] .form-group textarea {
    background: #ffffff;
    color: #0f172a;
}
[data-theme="light"] .lang-toggle {
    color: #334155;
    border-color: #cbd5e1;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
    font-family: var(--font);
    background: var(--bg-0);
    color: var(--text-1);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
a[d-on-click], [d-on-click] { cursor: pointer; }
ul, ol { list-style: none; }

/* ---- Typography ---- */
h1, h2, h3, h4, h5, h6 {
    line-height: 1.2;
    font-weight: 700;
    color: var(--text-1);
}
h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); }
h3 { font-size: 1.25rem; }
p  { color: var(--text-2); }

/* ---- Layout ---- */
.container {
    width: 100%;
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 1.5rem;
}
.section { padding: 6rem 0; }
.section--lg { padding: 8rem 0; }

/* ---- Buttons ---- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .75rem 1.75rem;
    border-radius: var(--r);
    font-size: .95rem;
    font-weight: 600;
    transition: all .2s ease;
    cursor: pointer;
    white-space: nowrap;
}
.btn--primary {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 0 20px var(--accent-glow);
}
.btn--primary:hover {
    background: var(--accent-hover);
    box-shadow: 0 0 30px var(--accent-glow);
    transform: translateY(-1px);
}
.btn--ghost {
    background: transparent;
    color: var(--text-2);
    border: 1px solid var(--border);
}
.btn--ghost:hover {
    border-color: var(--accent);
    color: var(--accent);
}
.btn--sm { padding: .5rem 1.25rem; font-size: .875rem; }
.btn--lg { padding: 1rem 2.5rem; font-size: 1.05rem; }
.btn--loading {
    opacity: .65;
    cursor: not-allowed;
    pointer-events: none;
    position: relative;
}
.btn--loading::after {
    content: '';
    display: inline-block;
    width: .9em;
    height: .9em;
    border: 2px solid rgba(255,255,255,.4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: btn-spin .65s linear infinite;
    margin-left: .4rem;
}
@keyframes btn-spin { to { transform: rotate(360deg); } }

/* ---- Badge ---- */
.badge {
    display: inline-flex;
    align-items: center;
    gap: .375rem;
    padding: .35rem .9rem;
    border-radius: 100px;
    font-size: .8rem;
    font-weight: 600;
    letter-spacing: .025em;
    text-transform: uppercase;
}
.badge--blue {
    background: var(--accent-dim);
    color: #818cf8;
    border: 1px solid rgba(99,102,241,.25);
}
.badge--green {
    background: rgba(34,197,94,.15);
    color: #16a34a;
    border: 1px solid rgba(34,197,94,.3);
    font-size: .72rem;
    padding: .2rem .55rem;
    border-radius: 100px;
    font-weight: 700;
}

/* ---- Navbar ---- */
.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    height: var(--nav-h);
    background: rgba(5,9,20,.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-sub);
    display: flex;
    align-items: center;
}
.navbar .container, .navbar__inner {
    width: 100%;
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 1.5rem;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}
.navbar__brand {
    display: flex;
    align-items: center;
    gap: .6rem;
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--text-1);
    flex-shrink: 0;
    cursor: pointer;
}
.navbar__title { font-weight: 800; }
.navbar__logo-img { height: 32px; width: auto; }
.navbar__links {
    display: flex;
    align-items: center;
    gap: .25rem;
}
.navbar__link {
    padding: .5rem .9rem;
    border-radius: var(--r-sm);
    color: var(--text-3);
    font-size: .9rem;
    font-weight: 500;
    transition: color .15s, background .15s;
    cursor: pointer;
}
.navbar__link:hover { color: var(--text-1); background: rgba(255,255,255,.05); }
.navbar__actions {
    display: flex;
    align-items: center;
    gap: .75rem;
    flex-shrink: 0;
}
.navbar__user { font-size: .9rem; color: var(--text-3); }
.menu-toggle {
    display: none;
    font-size: 1.4rem;
    color: var(--text-2);
    padding: .25rem;
}
.navbar__mobile {
    display: flex;
    position: fixed;
    inset: 0;
    background: var(--bg-1);
    z-index: 999;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    padding: 2rem;
}
.navbar__mobile .navbar__link { font-size: 1.25rem; }
.menu-close {
    position: absolute;
    top: 1.5rem; right: 1.5rem;
    font-size: 1.5rem;
    color: var(--text-3);
    background: none;
    border: none;
    cursor: pointer;
}

/* ---- Hero ---- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: var(--nav-h);
}
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 50% -10%, rgba(99,102,241,.18) 0%, transparent 65%),
        radial-gradient(ellipse 50% 50% at 80% 70%, rgba(34,211,238,.07) 0%, transparent 60%);
    pointer-events: none;
}
.hero__grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(30,58,95,.2) 1px, transparent 1px),
        linear-gradient(90deg, rgba(30,58,95,.2) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
    mask-image: radial-gradient(ellipse 80% 80% at 50% 20%, black 30%, transparent 70%);
}
.hero__inner {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 4rem 0 3rem;
}
.hero__eyebrow { margin-bottom: 1.5rem; }
.hero__title { margin-bottom: 1.5rem; letter-spacing: -.02em; }
.hero__title span {
    background: linear-gradient(135deg, #818cf8, var(--cyan-400));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero__subtitle {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: var(--text-3);
    max-width: 600px;
    margin: 0 auto 2.5rem;
}
.hero__cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}
.hero__trust {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .75rem;
    font-size: .85rem;
    color: var(--text-4);
}
.hero__trust-dot {
    width: 4px; height: 4px;
    border-radius: 50%;
    background: var(--text-4);
}

/* ---- Section headers ---- */
.section-header { text-align: center; margin-bottom: 4rem; }
.section-header h2 { margin-bottom: 1rem; }
.section-header p {
    font-size: 1.1rem;
    color: var(--text-3);
    max-width: 560px;
    margin: 0 auto;
}

/* ---- How it works ---- */
.how-it-works { background: var(--bg-1); }
.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    position: relative;
}
.step {
    background: var(--bg-card);
    border: 1px solid var(--border-sub);
    border-radius: var(--r-lg);
    padding: 2.5rem 2rem;
    text-align: center;
    position: relative;
    transition: transform .2s, box-shadow .2s;
}
.step:hover { transform: translateY(-4px); box-shadow: var(--glow); }
.step__icon { font-size: 2.5rem; margin-bottom: 1rem; display: block; }
.step__num {
    position: absolute;
    top: -1px; left: 50%;
    transform: translate(-50%, -50%);
    width: 2rem; height: 2rem;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    font-size: .75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid var(--bg-1);
}
.step h3 { margin-bottom: .75rem; }

/* ---- Features ---- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}
.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-sub);
    border-radius: var(--r-lg);
    padding: 2rem;
    transition: transform .2s, border-color .2s, box-shadow .2s;
}
.feature-card:hover {
    transform: translateY(-3px);
    border-color: var(--border);
    box-shadow: var(--glow-sm);
}
.feature-card__icon { font-size: 2rem; margin-bottom: 1rem; }
.feature-card h3 { margin-bottom: .6rem; font-size: 1.05rem; }
.feature-card p { font-size: .9rem; color: var(--text-3); }

/* ---- Pricing ---- */
.pricing-bg { background: var(--bg-1); }
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    align-items: start;
}
.pricing-card {
    background: var(--bg-card);
    border: 1px solid var(--border-sub);
    border-radius: var(--r-xl);
    padding: 2.5rem 2rem;
    transition: transform .2s, box-shadow .2s;
}
.pricing-card--featured {
    border-color: var(--accent);
    box-shadow: var(--glow);
    position: relative;
    transform: scale(1.03);
}
.pricing-card--featured:hover { transform: scale(1.03) translateY(-4px); }
.pricing-card:not(.pricing-card--featured):hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}
.pricing-card__label {
    position: absolute;
    top: -1px; left: 50%;
    transform: translate(-50%, -50%);
    padding: .3rem 1rem;
    background: var(--accent);
    color: #fff;
    font-size: .75rem;
    font-weight: 700;
    border-radius: 100px;
    text-transform: uppercase;
    letter-spacing: .05em;
    white-space: nowrap;
}
.pricing-card__tier { font-size: .85rem; font-weight: 600; color: var(--text-4); text-transform: uppercase; letter-spacing: .08em; margin-bottom: .75rem; }
.pricing-card__price { margin-bottom: 1.75rem; }
.pricing-card__price .amount { font-size: 3rem; font-weight: 800; color: var(--text-1); line-height: 1; }
.pricing-card__price .period { font-size: .9rem; color: var(--text-4); margin-top: .25rem; }
.pricing-card__features { list-style: none; margin-bottom: 2rem; }
.pricing-card__features li {
    display: flex;
    align-items: flex-start;
    gap: .6rem;
    padding: .55rem 0;
    font-size: .9rem;
    color: var(--text-2);
    border-bottom: 1px solid var(--border-sub);
}
.pricing-card__features li:last-child { border-bottom: none; }
.pricing-card__features li::before { content: '✓'; color: var(--green-400); font-weight: 700; flex-shrink: 0; }
.pricing-card__features li.off { color: var(--text-4); }
.pricing-card__features li.off::before { content: '—'; color: var(--text-4); }
.pricing-card .btn { width: 100%; justify-content: center; }

/* ---- CTA ---- */
.cta-section {
    background:
        radial-gradient(ellipse 80% 80% at 50% 50%, rgba(99,102,241,.08) 0%, transparent 70%),
        var(--bg-1);
    border-top: 1px solid var(--border-sub);
    border-bottom: 1px solid var(--border-sub);
}
.cta-box { text-align: center; max-width: 600px; margin: 0 auto; }
.cta-box h2 { margin-bottom: 1rem; }
.cta-box p { color: var(--text-3); margin-bottom: 2.5rem; font-size: 1.05rem; }

/* ---- Auth pages ---- */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: var(--nav-h);
    padding-bottom: 4rem;
}
.auth-card {
    width: 100%;
    max-width: 420px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--r-xl);
    padding: 3rem 2.5rem;
    box-shadow: var(--shadow-lg);
}
.auth-card__logo { text-align: center; margin-bottom: 2rem; }
.auth-card h2 { text-align: center; margin-bottom: .5rem; font-size: 1.5rem; }
.auth-card__sub { text-align: center; color: var(--text-3); font-size: .9rem; margin-bottom: 2rem; }
.form-group { margin-bottom: 1.25rem; }
.form-label, .form-group label { display: block; font-size: .875rem; font-weight: 500; color: var(--text-2); margin-bottom: .5rem; }
.form-input, .form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: .75rem 1rem;
    border-radius: var(--r);
    background: var(--bg-2);
    border: 1px solid var(--border);
    color: var(--text-1);
    font-size: .95rem;
    font-family: var(--font);
    outline: none;
    transition: border-color .2s, box-shadow .2s;
}
.form-input:focus, .form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 2px var(--accent-glow);
}
.form-input::placeholder, .form-group input::placeholder { color: var(--text-4); }
.form-group select option { background: var(--bg-2); }
.auth-footer {
    text-align: center;
    margin-top: 1.5rem;
    font-size: .875rem;
    color: var(--text-4);
}
.auth-footer a { color: #818cf8; cursor: pointer; }
.auth-footer a:hover { color: #a5b4fc; }

/* ---- Alert ---- */
.alert {
    padding: .75rem 1rem;
    border-radius: var(--r);
    font-size: .9rem;
    font-weight: 500;
    margin-bottom: 1rem;
}
.alert--error {
    background: rgba(248,113,113,.08);
    border: 1px solid rgba(248,113,113,.3);
    color: var(--red-400);
}
.alert--success {
    background: rgba(74,222,128,.08);
    border: 1px solid rgba(74,222,128,.2);
    color: var(--green-400);
}
.waitlist-error { margin-top: .75rem; color: var(--red-400); font-size: .875rem; text-align: center; }
.signup-error {
    margin-top: 1rem;
    padding: .75rem 1rem;
    background: rgba(248,113,113,.08);
    border: 1px solid rgba(248,113,113,.3);
    border-radius: var(--r);
    color: var(--red-400);
    font-size: .9rem;
    font-weight: 500;
}

/* ---- Footer ---- */
.footer {
    background: var(--bg-1);
    border-top: 1px solid var(--border-sub);
    padding: 2rem 0;
}
.footer__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
}
.footer__brand { font-size: .9rem; color: var(--text-4); }
.footer__links { display: flex; gap: 1.5rem; }
.footer__link { font-size: .9rem; color: var(--text-4); cursor: pointer; transition: color .15s; }
.footer__link:hover { color: var(--text-2); }

/* ---- Admin ---- */
.admin-tabs { display: flex; gap: .5rem; margin-bottom: 1.5rem; border-bottom: 1px solid var(--border); padding-bottom: .5rem; }
.admin-tab { padding: .5rem 1.25rem; border-radius: var(--r-sm); font-size: .9rem; font-weight: 600; color: var(--text-3); cursor: pointer; }
.admin-tab--active { background: var(--accent); color: #fff; }
.admin-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.admin-table th { text-align: left; padding: .75rem 1rem; color: var(--text-3); font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; border-bottom: 1px solid var(--border); }
.admin-table td { padding: .75rem 1rem; border-bottom: 1px solid var(--border); color: var(--text-2); word-break: break-word; max-width: 300px; }
.admin-table tr:hover td { background: var(--bg-card); }

/* ---- App Layout (authenticated pages) ---- */
.app-layout { display: flex; height: 100vh; overflow: hidden; }
.app-sidebar {
    width: 220px;
    min-width: 220px;
    background: var(--bg-1);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    padding: 1.5rem 0;
    overflow-y: auto;
}
.sidebar-link {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .65rem 1.5rem;
    color: var(--text-2);
    text-decoration: none;
    font-size: .9rem;
    transition: all .15s;
    cursor: pointer;
}
.sidebar-link:hover, .sidebar-link.active {
    background: var(--accent-dim);
    color: var(--accent);
}
.sidebar-link svg { width: 18px; height: 18px; flex-shrink: 0; }
.app-main { flex: 1; overflow-y: auto; padding: 2rem; }
.page-container { max-width: 900px; margin: 0 auto; }

/* ---- Dashboard ---- */
.dash-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.25rem;
    margin-bottom: 2rem;
}
.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 1.25rem;
}
.stat-card__value { font-size: 2rem; font-weight: 700; color: var(--accent); }
.stat-card__label { font-size: .85rem; color: var(--text-2); margin-top: .25rem; }

/* ---- Data Table ---- */
.data-table { width: 100%; border-collapse: collapse; }
.data-table th {
    text-align: left;
    padding: .65rem 1rem;
    font-size: .8rem;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--text-2);
    border-bottom: 1px solid var(--border);
}
.data-table td { padding: .75rem 1rem; border-bottom: 1px solid rgba(30,58,95,.4); font-size: .9rem; }
.data-table tr:hover td { background: rgba(99,102,241,.05); }

/* ---- Cards ---- */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 1.25rem;
    box-shadow: 0 1px 3px rgba(0,0,0,.2);
}
.card:hover { box-shadow: 0 2px 8px rgba(0,0,0,.25); }

/* ---- Pills ---- */
.pill { display: inline-block; padding: .2rem .65rem; border-radius: 99px; font-size: .75rem; font-weight: 600; }
.pill--green { background: rgba(16,185,129,.15); color: #10b981; }
.pill--blue { background: rgba(99,102,241,.15); color: var(--accent); }
.pill--yellow { background: rgba(245,158,11,.15); color: #f59e0b; }
.pill--red { background: rgba(239,68,68,.15); color: #ef4444; }
.pill--gray { background: rgba(107,114,128,.15); color: #6b7280; }

/* ---- Empty state ---- */
.empty-state { text-align: center; padding: 3rem 2rem; color: var(--text-3); }
.empty-state__icon { font-size: 2.5rem; margin-bottom: .75rem; opacity: .6; }
.empty-state p { font-size: .95rem; max-width: 400px; margin: 0 auto; }

/* ---- YAML editor ---- */
.yaml-editor {
    width: 100%;
    min-height: 300px;
    background: var(--bg-0);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1rem;
    font-family: monospace;
    font-size: .85rem;
    color: var(--text-1);
    resize: vertical;
}

/* ---- Tabs ---- */
.tabs { display: flex; gap: .5rem; border-bottom: 1px solid var(--border); margin-bottom: 1.5rem; }
.tab { padding: .6rem 1.25rem; cursor: pointer; color: var(--text-2); border-bottom: 2px solid transparent; font-size: .9rem; transition: all .15s; }
.tab.active, .tab:hover { color: var(--accent); border-bottom-color: var(--accent); }

/* ---- Modal ---- */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}
.modal {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 2rem;
    width: 100%;
    max-width: 520px;
}

/* ---- Page header ---- */
.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}
.page-title { font-size: 1.4rem; font-weight: 700; }

/* ---- Theme option (settings page) ---- */
.theme-option {
    padding: 1.25rem 1.75rem;
    border-radius: var(--r);
    border: 2px solid var(--border);
    min-width: 120px;
    text-align: center;
    transition: border-color .2s, background .2s;
}
.theme-option:hover { border-color: var(--accent); }

/* ---- Toast notification ---- */
.toast-notification {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: var(--accent);
    color: #fff;
    padding: .75rem 1.5rem;
    border-radius: var(--r);
    font-weight: 600;
    z-index: 9999;
    box-shadow: var(--shadow-lg);
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
    .features-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .navbar__links { display: none; }
    .menu-toggle { display: flex; }
    .steps { grid-template-columns: 1fr; }
    .features-grid { grid-template-columns: 1fr; }
    .pricing-grid { grid-template-columns: 1fr; }
    .pricing-card--featured { transform: none; }
    .app-layout { flex-direction: column; }
    .app-sidebar { width: 100%; min-width: unset; height: auto; flex-direction: row; overflow-x: auto; padding: .5rem 0; }
    .app-main { padding: 1rem; }
}
@media (max-width: 480px) {
    .hero__cta { flex-direction: column; align-items: center; }
    .auth-card { padding: 2rem 1.5rem; }
}
