/* ═══════════════════════════════════════════════════════════════
   GSVerwaltung – Main Stylesheet
   ═══════════════════════════════════════════════════════════════ */

:root {
    --bg:       #07080f;
    --bg2:      #0d0f1e;
    --bg3:      #131629;
    --bg4:      #1a1d33;
    --border:   rgba(255,255,255,.07);
    --border2:  rgba(255,255,255,.12);
    --text:     #c9d1e8;
    --muted:    #64748b;
    --muted2:   #94a3b8;
    --primary:  #6366f1;
    --primary2: #818cf8;
    --primary3: #4f46e5;
    --purple:   #a855f7;
    --green:    #22c55e;
    --amber:    #f59e0b;
    --red:      #ef4444;
    --blue:     #3b82f6;
    --radius:   14px;
    --radius-sm: 8px;
    --shadow:   0 4px 24px rgba(0,0,0,.4);
    --shadow-lg: 0 8px 48px rgba(0,0,0,.6);
    --transition: .18s ease;
}

/* ── Reset ─────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    background: var(--bg);
    color: var(--text);
    font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    font-size: 15px;
    line-height: 1.6;
    min-height: 100vh;
}
img { max-width: 100%; display: block; }
a { color: var(--primary2); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--primary); }
button, input, select, textarea { font: inherit; }

/* ── Typography ────────────────────────────────────────────────── */
h1, h2, h3, h4, h5 { line-height: 1.25; font-weight: 700; color: #e2e8f0; }
h1 { font-size: clamp(1.8rem, 4vw, 3rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2.2rem); }
h3 { font-size: 1.2rem; }
p { color: var(--muted2); }

/* ── Navbar ─────────────────────────────────────────────────────── */
.navbar {
    position: sticky; top: 0; z-index: 100;
    background: rgba(7,8,15,.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 0 24px;
    height: 64px;
    display: flex; align-items: center; justify-content: space-between;
}
.nav-brand {
    display: flex; align-items: center; gap: 10px;
    font-size: 1.15rem; font-weight: 800; color: #e2e8f0;
    text-decoration: none;
}
.nav-brand-icon {
    width: 32px; height: 32px; border-radius: 8px;
    background: linear-gradient(135deg, var(--primary), var(--purple));
    display: flex; align-items: center; justify-content: center;
}
.nav-brand-icon svg { width: 18px; height: 18px; color: #fff; }
.nav-links {
    display: flex; align-items: center; gap: 4px;
    list-style: none;
}
.nav-links a {
    padding: 7px 14px; border-radius: var(--radius-sm);
    font-size: 14px; font-weight: 500; color: var(--muted2);
    transition: color var(--transition), background var(--transition);
}
.nav-links a:hover { color: #e2e8f0; background: rgba(255,255,255,.05); }
.nav-actions {
    display: flex; align-items: center; gap: 10px;
}
.nav-user {
    display: flex; align-items: center; gap: 8px;
    font-size: 14px; color: var(--muted2);
}
.nav-user strong { color: #e2e8f0; }

/* ── Buttons ────────────────────────────────────────────────────── */
.btn {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 10px 20px; border-radius: 10px;
    font-size: 14px; font-weight: 600; cursor: pointer;
    border: none; text-decoration: none;
    transition: all var(--transition); white-space: nowrap;
    line-height: 1.4;
}
.btn svg { width: 16px; height: 16px; flex-shrink: 0; }
.btn-primary {
    background: var(--primary); color: #fff;
    box-shadow: 0 0 20px rgba(99,102,241,.3);
}
.btn-primary:hover { background: var(--primary3); color: #fff; box-shadow: 0 0 28px rgba(99,102,241,.45); transform: translateY(-1px); }
.btn-secondary {
    background: rgba(255,255,255,.06); color: var(--text);
    border: 1px solid var(--border2);
}
.btn-secondary:hover { background: rgba(255,255,255,.1); color: #e2e8f0; }
.btn-ghost {
    background: transparent; color: var(--muted2);
    border: 1px solid var(--border);
}
.btn-ghost:hover { background: rgba(255,255,255,.05); color: #e2e8f0; border-color: var(--border2); }
.btn-danger { background: rgba(239,68,68,.1); color: #f87171; border: 1px solid rgba(239,68,68,.25); }
.btn-danger:hover { background: rgba(239,68,68,.2); color: #fca5a5; }
.btn-sm { padding: 7px 14px; font-size: 13px; border-radius: 8px; }
.btn-lg { padding: 14px 28px; font-size: 16px; border-radius: 12px; }
.btn-block { width: 100%; justify-content: center; }

/* ── Forms ──────────────────────────────────────────────────────── */
.form-group { margin-bottom: 18px; }
.form-label {
    display: block; margin-bottom: 7px;
    font-size: 13px; font-weight: 600; color: var(--muted2);
    letter-spacing: .02em;
}
.form-control {
    width: 100%; padding: 11px 14px; border-radius: 10px;
    background: var(--bg3); border: 1px solid var(--border2);
    color: #e2e8f0; font-size: 14px;
    transition: border-color var(--transition), box-shadow var(--transition);
    outline: none;
}
.form-control:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(99,102,241,.15); }
.form-control::placeholder { color: var(--muted); }
textarea.form-control { resize: vertical; min-height: 100px; }
select.form-control { cursor: pointer; }
.form-hint { margin-top: 5px; font-size: 12px; color: var(--muted); }
.form-error { margin-top: 5px; font-size: 12px; color: #f87171; }

/* ── Cards ──────────────────────────────────────────────────────── */
.card {
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
}
.card-header {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 20px; padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}
.card-title { font-size: 1rem; font-weight: 700; color: #e2e8f0; margin: 0; }
.card-sm { padding: 16px; border-radius: var(--radius-sm); }

/* ── Badges ─────────────────────────────────────────────────────── */
.badge {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 3px 10px; border-radius: 20px;
    font-size: 12px; font-weight: 600; letter-spacing: .02em;
}
.badge-green  { background: rgba(34,197,94,.1);  color: #4ade80;  border: 1px solid rgba(34,197,94,.25); }
.badge-red    { background: rgba(239,68,68,.1);  color: #f87171;  border: 1px solid rgba(239,68,68,.25); }
.badge-amber  { background: rgba(245,158,11,.1); color: #fbbf24;  border: 1px solid rgba(245,158,11,.25);}
.badge-blue   { background: rgba(59,130,246,.1); color: #60a5fa;  border: 1px solid rgba(59,130,246,.25);}
.badge-indigo { background: rgba(99,102,241,.1); color: #818cf8;  border: 1px solid rgba(99,102,241,.25);}
.badge-purple { background: rgba(168,85,247,.1); color: #c084fc;  border: 1px solid rgba(168,85,247,.25);}
.badge-gray   { background: rgba(100,116,139,.1);color: #94a3b8;  border: 1px solid rgba(100,116,139,.25);}

/* ── Tables ─────────────────────────────────────────────────────── */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
thead th {
    padding: 10px 14px; text-align: left;
    font-size: 11px; font-weight: 700; letter-spacing: .08em;
    text-transform: uppercase; color: var(--muted);
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}
tbody td {
    padding: 13px 14px;
    border-bottom: 1px solid var(--border);
    color: var(--text); vertical-align: middle;
}
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover td { background: rgba(255,255,255,.02); }

/* ── Flash messages ─────────────────────────────────────────────── */
.flash-wrap { display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; }
.flash {
    display: flex; align-items: flex-start; gap: 12px;
    padding: 14px 16px; border-radius: 10px; font-size: 14px;
}
.flash svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 1px; }
.flash-success { background: rgba(34,197,94,.08);  border: 1px solid rgba(34,197,94,.2);  color: #4ade80; }
.flash-error   { background: rgba(239,68,68,.08);  border: 1px solid rgba(239,68,68,.2);  color: #f87171; }
.flash-warning { background: rgba(245,158,11,.08); border: 1px solid rgba(245,158,11,.2); color: #fbbf24; }
.flash-info    { background: rgba(59,130,246,.08); border: 1px solid rgba(59,130,246,.2); color: #60a5fa; }

/* ── Dashboard layout ───────────────────────────────────────────── */
.dash-wrap {
    display: flex; min-height: calc(100vh - 64px);
}
.sidebar {
    width: 240px; flex-shrink: 0;
    background: var(--bg2);
    border-right: 1px solid var(--border);
    padding: 20px 12px;
    position: sticky; top: 64px;
    height: calc(100vh - 64px);
    overflow-y: auto;
    display: flex; flex-direction: column;
}
.sb-section { margin-bottom: 6px; }
.sb-label {
    font-size: 10px; font-weight: 700; letter-spacing: .1em;
    text-transform: uppercase; color: var(--muted); padding: 0 12px;
    margin: 16px 0 6px;
}
.sb-item {
    display: flex; align-items: center; gap: 10px;
    padding: 9px 12px; border-radius: 9px;
    font-size: 13.5px; font-weight: 500; color: var(--muted2);
    cursor: pointer; text-decoration: none;
    transition: all var(--transition);
}
.sb-item svg { width: 17px; height: 17px; flex-shrink: 0; }
.sb-item:hover { background: rgba(255,255,255,.05); color: #e2e8f0; }
.sb-item.active { background: rgba(99,102,241,.12); color: var(--primary2); }
.sb-item.active svg { color: var(--primary); }
.sb-spacer { flex: 1; }
.dash-main { flex: 1; padding: 32px; min-width: 0; }
.dash-title { font-size: 1.5rem; font-weight: 800; margin-bottom: 4px; color: #e2e8f0; }
.dash-sub   { color: var(--muted); font-size: 14px; margin-bottom: 28px; }

/* ── Stats grid ─────────────────────────────────────────────────── */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px; margin-bottom: 28px;
}
.stat-card {
    background: var(--bg2); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 20px;
    display: flex; align-items: center; gap: 14px;
}
.stat-icon {
    width: 44px; height: 44px; border-radius: 10px;
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.stat-icon svg { width: 22px; height: 22px; }
.stat-icon-indigo { background: rgba(99,102,241,.15); color: var(--primary2); }
.stat-icon-green  { background: rgba(34,197,94,.12);  color: #4ade80; }
.stat-icon-amber  { background: rgba(245,158,11,.12); color: #fbbf24; }
.stat-icon-blue   { background: rgba(59,130,246,.12); color: #60a5fa; }
.stat-icon-red    { background: rgba(239,68,68,.12);  color: #f87171; }
.stat-val  { font-size: 1.5rem; font-weight: 800; color: #e2e8f0; line-height: 1; }
.stat-lbl  { font-size: 12px; color: var(--muted); margin-top: 3px; }

/* ── Hero (Landing) ─────────────────────────────────────────────── */
.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 100px 24px 80px;
    text-align: center;
    background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(99,102,241,.12) 0%, transparent 70%);
}
.hero-badge {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(99,102,241,.1); border: 1px solid rgba(99,102,241,.25);
    border-radius: 20px; padding: 5px 14px; margin-bottom: 24px;
    font-size: 13px; font-weight: 600; color: var(--primary2);
}
.hero-badge-dot {
    width: 7px; height: 7px; border-radius: 50%; background: var(--primary);
    animation: blink 2s ease-in-out infinite;
}
@keyframes blink { 0%,100% { opacity:1; } 50% { opacity:.3; } }
.hero h1 {
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    font-weight: 900; margin-bottom: 20px;
    background: linear-gradient(135deg, #e2e8f0 30%, var(--primary2) 80%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
    letter-spacing: -.03em; line-height: 1.15;
    max-width: 800px; width: 100%;
}
.hero-sub {
    font-size: 1.1rem; color: var(--muted2);
    max-width: 560px; width: 100%;
    margin: 0 0 36px; line-height: 1.7;
}
.hero-actions {
    display: flex; gap: 12px; justify-content: center; flex-wrap: wrap;
    margin-bottom: 56px; width: 100%;
}
.hero-img {
    width: 100%; max-width: 900px;
    border: 1px solid var(--border2);
    border-radius: 16px; overflow: hidden;
    box-shadow: 0 24px 80px rgba(0,0,0,.6), 0 0 60px rgba(99,102,241,.08);
}

/* ── Section ────────────────────────────────────────────────────── */
.section { padding: 80px 24px; }
.section-inner { max-width: 1100px; margin: 0 auto; }
.section-header { text-align: center; margin-bottom: 56px; }
.section-tag {
    display: inline-block; background: rgba(99,102,241,.1); color: var(--primary2);
    border: 1px solid rgba(99,102,241,.25); border-radius: 20px;
    padding: 4px 14px; font-size: 12px; font-weight: 700; letter-spacing: .08em;
    text-transform: uppercase; margin-bottom: 14px;
}
.section-title { font-size: clamp(1.5rem, 3vw, 2.2rem); margin-bottom: 14px; }
.section-sub { color: var(--muted2); max-width: 520px; margin: 0 auto; font-size: 1rem; }

/* ── Projects grid ──────────────────────────────────────────────── */
.projects-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
    gap: 20px;
}
/* Featured card spans full width on first row */
.project-featured {
    grid-column: 1 / -1;
}
@media (max-width: 700px) {
    .projects-grid { grid-template-columns: 1fr; }
    .project-featured { grid-column: 1; }
}

.project-card {
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}
.project-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 40px rgba(0,0,0,.35);
}
.project-featured {
    border-color: rgba(99,102,241,.3);
    background: linear-gradient(160deg, rgba(99,102,241,.06) 0%, var(--bg2) 60%);
}
.project-featured:hover {
    border-color: rgba(99,102,241,.5);
    box-shadow: 0 12px 48px rgba(99,102,241,.15);
}
.project-soon {
    opacity: .75;
}
.project-soon:hover { opacity: 1; }

.project-card-top {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}
.project-icon {
    width: 48px;
    height: 48px;
    border-radius: 13px;
    background: linear-gradient(135deg, rgba(99,102,241,.25), rgba(168,85,247,.2));
    border: 1px solid rgba(99,102,241,.3);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--primary2);
}
.project-icon svg { width: 22px; height: 22px; }
.project-icon-muted {
    background: rgba(255,255,255,.05);
    border-color: var(--border);
    color: var(--muted);
}

.project-name { font-size: 1.1rem; font-weight: 800; color: #e2e8f0; }
.project-type { font-size: 12px; color: var(--muted2); margin-top: 2px; }

.project-desc {
    font-size: 14px;
    color: var(--muted2);
    line-height: 1.7;
    margin: 0;
}

.project-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 8px;
}
.project-feature {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--muted2);
}
.project-feature svg {
    width: 14px;
    height: 14px;
    color: #4ade80;
    flex-shrink: 0;
}

.project-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

/* ── Features grid ──────────────────────────────────────────────── */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}
.feature-card {
    background: var(--bg2); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 28px;
    transition: border-color var(--transition), transform var(--transition);
}
.feature-card:hover { border-color: rgba(99,102,241,.3); transform: translateY(-2px); }
.feature-icon {
    width: 48px; height: 48px; border-radius: 12px;
    background: rgba(99,102,241,.1); border: 1px solid rgba(99,102,241,.2);
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 18px;
}
.feature-icon svg { width: 22px; height: 22px; color: var(--primary2); }
.feature-title { font-size: 1rem; font-weight: 700; color: #e2e8f0; margin-bottom: 8px; }
.feature-desc  { font-size: 14px; color: var(--muted); line-height: 1.65; }

/* ── Pricing ────────────────────────────────────────────────────── */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 340px));
    gap: 20px;
    align-items: start;
    justify-content: center;
}
.pricing-card {
    background: var(--bg2); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 32px;
    position: relative;
    transition: transform var(--transition), border-color var(--transition);
}
.pricing-card:hover { transform: translateY(-3px); }
.pricing-card.highlight {
    border-color: rgba(99,102,241,.4);
    background: linear-gradient(145deg, rgba(99,102,241,.06) 0%, var(--bg2) 100%);
    box-shadow: 0 0 60px rgba(99,102,241,.1);
}
.pricing-popular {
    position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
    background: var(--primary); color: #fff;
    font-size: 11px; font-weight: 700; letter-spacing: .06em;
    text-transform: uppercase; padding: 4px 14px; border-radius: 20px;
    white-space: nowrap;
}
.pricing-name   { font-size: 1.1rem; font-weight: 800; color: #e2e8f0; margin-bottom: 4px; }
.pricing-desc   { font-size: 13px; color: var(--muted); margin-bottom: 20px; }
.pricing-price  { margin-bottom: 24px; }
.pricing-amount {
    font-size: 2.4rem; font-weight: 900; color: #e2e8f0; line-height: 1;
    display: inline-flex; align-items: flex-start; gap: 4px;
}
.pricing-currency { font-size: 1.1rem; font-weight: 600; color: var(--muted2); margin-top: 6px; }
.pricing-period   { font-size: 13px; color: var(--muted); margin-left: 4px; margin-top: 8px; }
.pricing-tba { font-size: 1.3rem; font-weight: 700; color: var(--muted2); margin-bottom: 6px; }
.pricing-tba-sub { font-size: 12px; color: var(--muted); }
.pricing-features { list-style: none; margin-bottom: 28px; }
.pricing-features li {
    display: flex; align-items: center; gap: 10px;
    padding: 8px 0; font-size: 14px; color: var(--muted2);
    border-bottom: 1px solid var(--border);
}
.pricing-features li:last-child { border-bottom: none; }
.pricing-features li svg { width: 16px; height: 16px; color: var(--green); flex-shrink: 0; }

/* ── Toggle (billing) ───────────────────────────────────────────── */
.billing-toggle {
    display: flex; align-items: center; justify-content: center; gap: 14px;
    margin-bottom: 40px; flex-wrap: wrap;
}
.toggle-btn {
    padding: 8px 20px; border-radius: 20px; border: 1px solid var(--border2);
    background: transparent; color: var(--muted2); font-size: 14px; font-weight: 600;
    cursor: pointer; transition: all var(--transition);
}
.toggle-btn.active { background: var(--primary); color: #fff; border-color: transparent; }
.save-badge {
    background: rgba(34,197,94,.1); color: #4ade80;
    border: 1px solid rgba(34,197,94,.25); border-radius: 20px;
    font-size: 11px; font-weight: 700; padding: 3px 10px;
}

/* ── Panel Preview / Browser Mockup ────────────────────────────── */
.browser-mockup {
    max-width: 960px; margin: 0 auto 56px;
    border-radius: 14px; border: 1px solid var(--border); overflow: hidden;
    box-shadow: 0 32px 80px rgba(0,0,0,.5), 0 0 0 1px rgba(255,255,255,.04);
    transform: perspective(1400px) rotateX(3deg) scale(.98);
    transform-origin: top center;
    transition: transform .5s cubic-bezier(.22,1,.36,1), box-shadow .5s ease;
}
.browser-mockup:hover {
    transform: perspective(1400px) rotateX(0deg) scale(1);
    box-shadow: 0 40px 100px rgba(0,0,0,.55), 0 0 0 1px rgba(99,102,241,.15);
}
.browser-top {
    background: #161d2e; padding: 11px 16px;
    display: flex; align-items: center; gap: 12px;
    border-bottom: 1px solid rgba(255,255,255,.07); flex-shrink: 0;
}
.browser-dots { display: flex; gap: 7px; flex-shrink: 0; }
.browser-dots span { width: 12px; height: 12px; border-radius: 50%; display: block; }
.browser-dots span:nth-child(1) { background: #ff5f57; box-shadow: 0 0 6px rgba(255,95,87,.4); }
.browser-dots span:nth-child(2) { background: #ffbd2e; box-shadow: 0 0 6px rgba(255,189,46,.4); }
.browser-dots span:nth-child(3) { background: #28c840; box-shadow: 0 0 6px rgba(40,200,64,.4); }
.browser-address {
    flex: 1; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08);
    border-radius: 6px; padding: 5px 14px; font-size: 12px; color: var(--muted);
    text-align: center; font-family: monospace; letter-spacing: .01em;
}
.browser-body { background: var(--bg); }
.browser-body img { width: 100%; display: block; max-height: 540px; object-fit: cover; object-position: top; }

/* Placeholder (kein Screenshot hinterlegt) */
.browser-placeholder {
    height: 420px; position: relative; overflow: hidden;
    background: linear-gradient(160deg, #0d1117 0%, #0f172a 50%, #0d1117 100%);
    display: flex; align-items: center; justify-content: center;
}
.browser-placeholder::before {
    content: ''; position: absolute; inset: 0;
    background:
        repeating-linear-gradient(0deg, transparent, transparent 40px, rgba(99,102,241,.04) 40px, rgba(99,102,241,.04) 41px),
        repeating-linear-gradient(90deg, transparent, transparent 40px, rgba(99,102,241,.04) 40px, rgba(99,102,241,.04) 41px);
}
/* Fake-Panel-Wireframe */
.fake-panel {
    position: absolute; inset: 0; display: grid;
    grid-template-columns: 190px 1fr; opacity: .3; pointer-events: none;
}
.fake-sidebar {
    background: rgba(15,23,42,.9); border-right: 1px solid rgba(99,102,241,.15);
    padding: 18px 12px; display: flex; flex-direction: column; gap: 7px;
}
.fake-logo { height: 36px; width: 100%; border-radius: 8px; background: rgba(99,102,241,.2); margin-bottom: 8px; }
.fake-nav { height: 30px; border-radius: 7px; background: rgba(255,255,255,.05); }
.fake-nav.active { background: rgba(99,102,241,.25); }
.fake-content { padding: 22px; display: flex; flex-direction: column; gap: 12px; background: #0d1117; }
.fake-topbar { height: 40px; border-radius: 8px; background: rgba(255,255,255,.05); width: 55%; }
.fake-cards { display: grid; grid-template-columns: repeat(4,1fr); gap: 10px; }
.fake-card { height: 72px; border-radius: 10px; background: rgba(99,102,241,.07); border: 1px solid rgba(99,102,241,.1); }
.fake-table { flex: 1; min-height: 160px; border-radius: 10px; background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.06); }

.browser-placeholder-badge {
    position: relative; z-index: 2; text-align: center;
    background: rgba(99,102,241,.1); border: 1px solid rgba(99,102,241,.25);
    border-radius: 12px; padding: 18px 28px;
}
.browser-placeholder-badge svg { width: 28px; height: 28px; color: #818cf8; margin-bottom: 10px; }
.browser-placeholder-badge p { font-size: 13px; color: var(--muted); margin: 0; }

/* Feature callouts under mockup */
.preview-features-grid {
    display: grid; grid-template-columns: repeat(3,1fr); gap: 20px;
    max-width: 960px; margin: 0 auto;
}
@media (max-width: 720px)  { .preview-features-grid { grid-template-columns: 1fr; } }
@media (max-width: 960px) and (min-width: 721px) { .preview-features-grid { grid-template-columns: repeat(2,1fr); } }
.preview-feature {
    background: var(--bg2); border: 1px solid var(--border);
    border-radius: 14px; padding: 24px;
    transition: border-color .2s, transform .2s;
}
.preview-feature:hover { border-color: rgba(99,102,241,.35); transform: translateY(-2px); }
.preview-feature-num {
    font-size: 11px; font-weight: 800; letter-spacing: .1em;
    color: #6366f1; margin-bottom: 10px; font-family: monospace;
}
.preview-feature h3 { font-size: 15px; font-weight: 700; color: var(--text); margin: 0 0 8px; }
.preview-feature p  { font-size: 13px; color: var(--muted); line-height: 1.65; margin: 0; }
.preview-feature-icon {
    width: 38px; height: 38px; border-radius: 10px; margin-bottom: 14px;
    background: rgba(99,102,241,.1); border: 1px solid rgba(99,102,241,.2);
    display: flex; align-items: center; justify-content: center; color: #818cf8;
}
.preview-feature-icon svg { width: 18px; height: 18px; }

/* ── FAQ ────────────────────────────────────────────────────────── */
.faq-list { max-width: 720px; margin: 0 auto; }
.faq-item {
    border: 1px solid var(--border); border-radius: var(--radius);
    overflow: hidden; margin-bottom: 10px;
}
.faq-q {
    display: flex; justify-content: space-between; align-items: center;
    padding: 18px 22px; cursor: pointer; font-size: 15px; font-weight: 600;
    color: #e2e8f0; background: var(--bg2);
    transition: background var(--transition); user-select: none;
}
.faq-q:hover { background: var(--bg3); }
.faq-q svg { width: 18px; height: 18px; color: var(--muted); transition: transform .2s; flex-shrink: 0; }
.faq-item.open .faq-q svg { transform: rotate(180deg); }
.faq-a {
    display: none; padding: 0 22px 18px;
    font-size: 14px; color: var(--muted2); line-height: 1.7;
    background: var(--bg2);
}
.faq-item.open .faq-a { display: block; }

/* ── Footer ─────────────────────────────────────────────────────── */
.footer {
    background: var(--bg2); border-top: 1px solid var(--border);
    padding: 48px 24px 24px;
}
.footer-inner { max-width: 1100px; margin: 0 auto; }
.footer-top {
    display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px; margin-bottom: 40px;
}
.footer-brand p { font-size: 13px; color: var(--muted); margin-top: 10px; line-height: 1.65; }
.footer-col h4 { font-size: 13px; font-weight: 700; color: #e2e8f0; margin-bottom: 14px; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a { font-size: 13px; color: var(--muted); transition: color var(--transition); }
.footer-col ul li a:hover { color: var(--primary2); }
.footer-bottom {
    display: flex; justify-content: space-between; align-items: center;
    flex-wrap: wrap; gap: 12px;
    border-top: 1px solid var(--border); padding-top: 20px;
    font-size: 12px; color: var(--muted);
}

/* ── Cookie banner ──────────────────────────────────────────────── */
#cookie-banner {
    position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%);
    z-index: 9999; width: min(680px, calc(100vw - 32px));
    background: var(--bg3); border: 1px solid var(--border2);
    border-radius: 16px; padding: 20px 24px;
    box-shadow: var(--shadow-lg);
    display: none; /* shown via JS */
    align-items: center; gap: 20px; flex-wrap: wrap;
}
#cookie-banner.show { display: flex; }
.cookie-text { flex: 1; font-size: 13px; color: var(--muted2); line-height: 1.6; min-width: 200px; }
.cookie-text a { color: var(--primary2); }
.cookie-actions { display: flex; gap: 10px; flex-shrink: 0; flex-wrap: wrap; }

/* ── Auth pages ─────────────────────────────────────────────────── */
.auth-wrap {
    min-height: 100vh; display: flex; align-items: center;
    justify-content: center; padding: 24px;
    background: radial-gradient(ellipse 80% 60% at 50% 20%, rgba(99,102,241,.08) 0%, transparent 70%);
}
.auth-card {
    width: 100%; max-width: 420px;
    background: var(--bg2); border: 1px solid var(--border);
    border-radius: 20px; padding: 40px;
    box-shadow: var(--shadow-lg);
}
.auth-logo {
    text-align: center; margin-bottom: 28px;
}
.auth-logo-icon {
    width: 52px; height: 52px; border-radius: 14px;
    background: linear-gradient(135deg, var(--primary), var(--purple));
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 12px;
}
.auth-logo-icon svg { width: 26px; height: 26px; color: #fff; }
.auth-title { font-size: 1.4rem; font-weight: 800; color: #e2e8f0; margin-bottom: 4px; text-align: center; }
.auth-sub   { font-size: 13px; color: var(--muted); text-align: center; }
.auth-link  { text-align: center; margin-top: 20px; font-size: 13px; color: var(--muted); }
.auth-link a { color: var(--primary2); font-weight: 600; }
.auth-divider {
    display: flex; align-items: center; gap: 12px; margin: 20px 0;
    font-size: 12px; color: var(--muted);
}
.auth-divider::before, .auth-divider::after {
    content: ''; flex: 1; height: 1px; background: var(--border);
}

/* ── Legal pages ────────────────────────────────────────────────── */
.legal-wrap { max-width: 780px; margin: 0 auto; padding: 48px 24px; }
.legal-wrap h1 { margin-bottom: 8px; }
.legal-updated { font-size: 13px; color: var(--muted); margin-bottom: 40px; }
.legal-wrap h2 { font-size: 1.2rem; margin: 32px 0 12px; color: #e2e8f0; }
.legal-wrap h3 { font-size: 1rem; margin: 20px 0 8px; color: #e2e8f0; }
.legal-wrap p  { font-size: 14px; color: var(--muted2); margin-bottom: 12px; line-height: 1.75; }
.legal-wrap ul, .legal-wrap ol {
    margin: 10px 0 16px 20px; font-size: 14px; color: var(--muted2); line-height: 1.75;
}
.legal-wrap table { font-size: 13px; margin: 16px 0; }

/* ── Admin layout ───────────────────────────────────────────────── */
.admin-body { background: var(--bg); overflow-x: hidden; }
.admin-shell { display: flex; min-height: 100vh; }

/* Sidebar */
.admin-sidebar {
    width: 232px; flex-shrink: 0;
    background: var(--bg2);
    border-right: 1px solid var(--border);
    display: flex; flex-direction: column;
    position: fixed; top: 0; left: 0; bottom: 0;
    overflow-y: auto; z-index: 100;
}
.admin-brand {
    display: flex; align-items: center; gap: 10px;
    padding: 16px 14px; border-bottom: 1px solid var(--border);
    flex-shrink: 0;
}
.admin-brand-icon {
    width: 34px; height: 34px; border-radius: 9px;
    background: linear-gradient(135deg, var(--primary), var(--purple));
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0; color: #fff;
}
.admin-brand-name  { font-size: 14px; font-weight: 700; color: #e2e8f0; line-height: 1.2; }
.admin-brand-badge { font-size: 10px; color: var(--primary2); font-weight: 600; letter-spacing: .5px; text-transform: uppercase; }

.admin-nav { flex: 1; padding: 10px 8px; overflow-y: auto; }
.admin-nav-group { margin-bottom: 18px; }
.admin-nav-label {
    font-size: 10px; font-weight: 700; color: var(--muted);
    letter-spacing: .8px; text-transform: uppercase;
    padding: 0 8px; margin-bottom: 4px;
}
.admin-nav-item {
    display: flex; align-items: center; gap: 9px;
    padding: 7px 10px; border-radius: 7px;
    font-size: 13px; font-weight: 500; color: var(--muted2);
    text-decoration: none; transition: background var(--transition), color var(--transition);
    margin-bottom: 2px; cursor: pointer; border: none; text-align: left;
    white-space: nowrap;
}
.admin-nav-item:hover  { background: rgba(99,102,241,.09); color: #e2e8f0; }
.admin-nav-item.active { background: rgba(99,102,241,.15); color: var(--primary2); font-weight: 600; }
.admin-nav-item svg { width: 15px; height: 15px; flex-shrink: 0; opacity: .75; }
.admin-nav-item.active svg, .admin-nav-item:hover svg { opacity: 1; }
.admin-nav-badge {
    margin-left: auto; background: #f59e0b; color: #000;
    font-size: 10px; font-weight: 700; padding: 1px 6px;
    border-radius: 99px; line-height: 1.6; flex-shrink: 0;
}
.admin-nav-badge.danger { background: #f87171; color: #fff; }
.admin-nav-divider { height: 1px; background: var(--border); margin: 10px 8px; }

.admin-sidebar-user { flex-shrink: 0; padding: 10px 8px; border-top: 1px solid var(--border); }
.admin-sidebar-usercard {
    display: flex; align-items: center; gap: 9px;
    padding: 9px 10px; border-radius: 9px;
    background: var(--bg3); border: 1px solid var(--border);
    margin-bottom: 6px;
}
.admin-sidebar-avatar {
    width: 30px; height: 30px; border-radius: 7px;
    background: linear-gradient(135deg, var(--primary), var(--purple));
    display: flex; align-items: center; justify-content: center;
    font-size: 13px; font-weight: 700; color: #fff; flex-shrink: 0;
}
.admin-sidebar-uname  { font-size: 12px; font-weight: 600; color: #e2e8f0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.3; }
.admin-sidebar-uemail { font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Main */
.admin-main { margin-left: 232px; flex: 1; display: flex; flex-direction: column; min-height: 100vh; }
.admin-topbar {
    height: 54px; background: var(--bg2); border-bottom: 1px solid var(--border);
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 28px; position: sticky; top: 0; z-index: 50; flex-shrink: 0;
}
.admin-topbar-title { font-size: 15px; font-weight: 700; color: #e2e8f0; margin: 0; }
.admin-topbar-badge {
    font-size: 11px; color: var(--primary2); padding: 3px 10px;
    background: rgba(99,102,241,.1); border-radius: 99px;
    border: 1px solid rgba(99,102,241,.2); font-weight: 600; letter-spacing: .3px;
}
.admin-content { flex: 1; padding: 28px; }
.admin-content-inner { max-width: 1100px; }

/* Admin page header row */
.admin-page-header {
    display: flex; align-items: flex-start; justify-content: space-between;
    gap: 16px; margin-bottom: 24px;
}
.admin-page-title { font-size: 1.3rem; font-weight: 800; color: #e2e8f0; margin: 0 0 4px; }
.admin-page-desc  { font-size: 13px; color: var(--muted); margin: 0; }

/* Settings layout */
.admin-settings-grid { display: grid; grid-template-columns: 200px 1fr; gap: 20px; align-items: start; }
.admin-settings-tabs { display: flex; flex-direction: column; gap: 4px; position: sticky; top: 82px; }
.admin-settings-tab {
    display: flex; align-items: center; gap: 8px; padding: 9px 12px;
    border-radius: 8px; font-size: 13px; font-weight: 500; color: var(--muted2);
    text-decoration: none; cursor: pointer; transition: background var(--transition), color var(--transition);
}
.admin-settings-tab:hover   { background: rgba(255,255,255,.04); color: #e2e8f0; }
.admin-settings-tab.active  { background: rgba(99,102,241,.12); color: var(--primary2); font-weight: 600; }
.admin-settings-tab svg     { width: 15px; height: 15px; flex-shrink: 0; }

/* Form rows inside cards */
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-row.single { grid-template-columns: 1fr; }
.form-group { display: flex; flex-direction: column; gap: 5px; }
.form-hint  { font-size: 12px; color: var(--muted); line-height: 1.4; }

@media (max-width: 900px) {
    .admin-sidebar { transform: translateX(-100%); }
    .admin-main { margin-left: 0; }
    .admin-settings-grid { grid-template-columns: 1fr; }
    .admin-settings-tabs { flex-direction: row; flex-wrap: wrap; position: static; }
}
@media (max-width: 640px) {
    .admin-content { padding: 16px; }
    .admin-topbar  { padding: 0 16px; }
    .form-row { grid-template-columns: 1fr; }
}

/* ── Utility ─────────────────────────────────────────────────────── */
.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.text-center { text-align: center; }
.text-muted  { color: var(--muted); }
.text-sm     { font-size: 13px; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.gap-1 { gap: 8px; }
.gap-2 { gap: 16px; }
.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.flex-wrap { flex-wrap: wrap; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.divider { height: 1px; background: var(--border); margin: 24px 0; }
.empty-state { text-align: center; padding: 48px 24px; }
.empty-icon  { width: 56px; height: 56px; border-radius: 14px; background: var(--bg3); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; }
.empty-icon svg { width: 24px; height: 24px; color: var(--muted); }
.empty-title { font-size: 1rem; font-weight: 700; color: #e2e8f0; margin-bottom: 6px; }
.empty-sub   { font-size: 13px; color: var(--muted); margin-bottom: 20px; }
.tag { display: inline-flex; align-items: center; gap: 6px; background: var(--bg3); border: 1px solid var(--border); border-radius: 6px; padding: 3px 10px; font-size: 12px; color: var(--muted2); }
.monospace { font-family: 'SFMono-Regular', Consolas, monospace; }

/* ── Responsive ──────────────────────────────────────────────────── */
@media (max-width: 900px) {
    .footer-top { grid-template-columns: 1fr 1fr; }
    .dash-wrap { flex-direction: column; }
    .sidebar { width: 100%; height: auto; position: static; flex-direction: row; flex-wrap: wrap; padding: 12px; gap: 4px; }
    .sb-label { display: none; }
    .sb-item { font-size: 13px; }
    .dash-main { padding: 20px; }
}
@media (max-width: 640px) {
    .navbar { padding: 0 16px; }
    /* Hide desktop nav, show hamburger */
    .nav-links { display: none; }
    #mobile-nav-btn { display: flex !important; align-items: center; }
    /* Mobile nav dropdown */
    .nav-links.show {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background: var(--bg2);
        border-bottom: 1px solid var(--border);
        padding: 10px 12px;
        gap: 2px;
        z-index: 99;
    }
    .nav-links.show li { width: 100%; }
    .nav-links.show a  { display: block; padding: 10px 14px; }
    .footer-top { grid-template-columns: 1fr; }
    .hero { padding: 60px 16px 48px; }
    .section { padding: 48px 16px; }
    .auth-card { padding: 28px 20px; }
    #cookie-banner { bottom: 0; border-radius: 16px 16px 0 0; width: 100%; }
    .pricing-grid { grid-template-columns: 1fr; }
}
