:root {
    --bg: #0a0a0d;
    --bg-alt: #101014;
    --card: #131318;
    --card-hover: #17171d;
    --border: #24242c;
    --text: #f4f4f6;
    --text-muted: #a8a8b3;
    --text-faint: #6f6f7a;
    --blue: #59a8ff;
    --blue-dark: #2f7fd9;
    --blue-glow: rgba(89, 168, 255, .35);
    --danger: #ef4444;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 18px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 24px;
    --space-6: 40px;
    --max-width: 1120px;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a { color: inherit; text-decoration: none; }
h1, h2, h3 { letter-spacing: -.02em; }

/* Header */
.site-header {
    border-bottom: 1px solid var(--border);
    background: rgba(16, 16, 20, .85);
    backdrop-filter: blur(8px);
    position: sticky; top: 0; z-index: 50;
}
.header-inner {
    max-width: var(--max-width); margin: 0 auto; padding: 14px 24px;
    display: flex; align-items: center; justify-content: space-between; gap: var(--space-4);
    position: relative;
}
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; letter-spacing: -.01em; }
.logo-mark {
    width: 34px; height: 34px; overflow: hidden;
    display: flex; align-items: center; justify-content: center;
}
.logo-mark img { width: 100%; height: 100%; object-fit: contain; }
.logo-text { color: #fff; }
.logo-text-accent { color: var(--blue); }

.header-nav { display: flex; align-items: center; gap: var(--space-5); }
.header-nav-links { display: flex; align-items: center; gap: 6px; }
.header-nav-actions { display: flex; align-items: center; gap: 10px; }
.nav-pill {
    padding: 8px 16px; border-radius: 999px; font-size: 14px; font-weight: 600;
    color: var(--text-muted); transition: background .15s ease, color .15s ease;
}
.nav-pill:hover { background: #1c1c24; color: var(--text); }
.nav-pill-ghost { color: var(--text); }

.header-account-chip {
    display: flex; align-items: center; gap: 8px; padding: 6px 14px 6px 6px;
    border-radius: 999px; background: var(--card); border: 1px solid var(--border);
    font-size: 13px; font-weight: 600; transition: border-color .15s ease;
}
.header-account-chip:hover { border-color: var(--blue); }
.header-avatar {
    width: 26px; height: 26px; border-radius: 50%; object-fit: cover;
}
.header-avatar-fallback {
    display: flex; align-items: center; justify-content: center;
    background: var(--blue); color: #fff; font-size: 12px; font-weight: 700;
}

.nav-toggle-input { display: none; }
.nav-toggle {
    display: none; flex-direction: column; justify-content: center; gap: 5px;
    width: 34px; height: 34px; cursor: pointer;
}
.nav-toggle span { display: block; width: 100%; height: 2px; background: var(--text); border-radius: 2px; }

/* Page shell */
.page-content { flex: 1; display: flex; flex-direction: column; }
.page-content > section:not(.hero):not(.auth-section):not(.trust-strip):not(.cta-banner) {
    padding: var(--space-6) 20px; max-width: var(--max-width); margin: 0 auto; width: 100%;
}

/* Hero */
.hero {
    position: relative;
    min-height: 640px;
    display: flex; align-items: center; justify-content: center;
    text-align: center;
    background:
        radial-gradient(60% 60% at 50% 0%, rgba(89,168,255,.18), transparent 70%),
        linear-gradient(rgba(10,10,13,.6), rgba(10,10,13,.92)),
        url('https://images.vextro.nl/images/banner-vs-5.webp') center / cover no-repeat;
    padding: 70px 20px;
    overflow: hidden;
}
.hero::before, .hero::after {
    content: ''; position: absolute; border-radius: 50%; filter: blur(80px); pointer-events: none; z-index: 0;
}
.hero::before { width: 340px; height: 340px; background: rgba(89,168,255,.25); top: -100px; left: -60px; }
.hero::after { width: 260px; height: 260px; background: rgba(89,168,255,.18); bottom: -80px; right: -40px; }
.hero-inner { position: relative; z-index: 1; }
.hero-inner { max-width: 680px; }
.eyebrow {
    display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .08em;
    text-transform: uppercase; color: var(--blue); margin-bottom: 14px;
}
.hero h1 { font-size: 46px; line-height: 1.12; margin: 0 0 14px; font-weight: 800; }
.text-accent { color: var(--blue); }
.hero-sub { font-size: 18px; color: var(--text-muted); margin: 0 0 32px; }

.hero-actions { display: flex; gap: var(--space-3); justify-content: center; margin-bottom: 36px; flex-wrap: wrap; }

.hero-stats {
    font-size: 14px; color: var(--text-faint); margin: 0;
}
.hero-stats strong { color: var(--text); font-weight: 700; }

.welcome-strip {
    text-align: center; padding: 16px; border-top: 1px solid var(--border);
    color: var(--text-muted); font-size: 14px;
}

/* Trust strip */
.trust-strip { border-bottom: 1px solid var(--border); background: var(--bg-alt); }
.trust-strip-inner {
    max-width: var(--max-width); margin: 0 auto; padding: 28px 20px;
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center;
}
.trust-item { display: flex; flex-direction: column; gap: 4px; }
.trust-item strong { font-size: 24px; font-weight: 800; }
.trust-item span { font-size: 13px; color: var(--text-faint); }

/* Section heading */
.section-heading { text-align: center; max-width: 560px; margin: 0 auto 40px; }
.section-heading h2 { font-size: 30px; margin: 6px 0 10px; font-weight: 800; }
.section-heading p { color: var(--text-muted); margin: 0; font-size: 15px; }

/* Features */
.feature-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-4);
}
.feature-card {
    position: relative; overflow: hidden;
    background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg);
    padding: var(--space-5); transition: border-color .15s ease, transform .15s ease, background .15s ease;
}
.feature-card::after {
    content: ''; position: absolute; top: -30%; right: -20%; width: 140px; height: 140px; border-radius: 50%;
    background: radial-gradient(circle, rgba(89,168,255,.16), transparent 70%);
    opacity: 0; transition: opacity .2s ease;
}
.feature-card:hover { border-color: var(--blue); background: var(--card-hover); transform: translateY(-2px); }
.feature-card:hover::after { opacity: 1; }
.feature-icon {
    width: 42px; height: 42px; border-radius: var(--radius-sm); background: rgba(89,168,255,.12);
    display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 700;
    color: var(--blue); letter-spacing: .02em; margin-bottom: 14px;
    position: relative; z-index: 1;
}
.feature-card h3, .feature-card p { position: relative; z-index: 1; }
.feature-card h3 { font-size: 16px; margin: 0 0 8px; }
.feature-card p { font-size: 14px; color: var(--text-muted); margin: 0; line-height: 1.5; }

/* Steps */
.steps-grid {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-4);
    counter-reset: step;
}
.step-card {
    position: relative;
    background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg);
    padding: var(--space-5) var(--space-4) var(--space-4);
}
.step-card:not(:last-child)::before {
    content: ''; position: absolute; top: 34px; left: 100%; width: var(--space-4);
    height: 1px; background: var(--border);
}
.step-number {
    width: 34px; height: 34px; border-radius: 50%; background: var(--blue); color: #fff;
    display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 15px;
    margin-bottom: 16px;
}
.step-card h3 { font-size: 15px; margin: 0 0 8px; }
.step-card p { font-size: 13px; color: var(--text-muted); margin: 0; line-height: 1.5; }

/* CTA banner */
.cta-banner { padding: 0 20px 80px; }
.cta-banner-inner {
    max-width: var(--max-width); margin: 0 auto;
    background: linear-gradient(120deg, #10131c, #0d1420);
    border: 1px solid var(--border); border-radius: var(--radius-lg);
    padding: 40px; display: flex; align-items: center; justify-content: space-between; gap: 24px;
    flex-wrap: wrap; box-shadow: 0 0 60px -20px var(--blue-glow);
}
.cta-banner-inner h2 { font-size: 24px; margin: 0 0 6px; }
.cta-banner-inner p { margin: 0; color: var(--text-muted); font-size: 14px; }

/* Buttons */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    border: none; border-radius: var(--radius-sm); font-weight: 600; cursor: pointer;
    padding: 10px 18px; font-size: 14px; transition: background .15s ease, opacity .15s ease, transform .15s ease;
}
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-dark); }
.btn-secondary { background: var(--card); color: var(--text); border: 1px solid var(--border); }
.btn-secondary:hover { background: #1b1b22; }
.btn-sm { padding: 7px 14px; font-size: 13px; }
.btn-lg { padding: 14px 28px; font-size: 15px; }
.btn-block { width: 100%; }

/* Account panel */
.panel-section { width: 100%; display: flex; justify-content: center; padding: 60px 20px; }
.panel-shell {
    width: 100%; max-width: 720px; background: var(--card); border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: var(--space-5) var(--space-5) var(--space-6);
}
.panel-header {
    display: flex; align-items: center; justify-content: space-between; gap: var(--space-4);
    padding-bottom: var(--space-5); margin-bottom: var(--space-5); border-bottom: 1px solid var(--border);
    flex-wrap: wrap;
}
.panel-header-user { display: flex; align-items: center; gap: 14px; }
.panel-avatar { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; }
.panel-avatar-fallback {
    display: flex; align-items: center; justify-content: center;
    background: var(--blue); color: #fff; font-weight: 700; font-size: 20px;
}
.panel-header h1 { font-size: 20px; margin: 0 0 4px; }
.panel-subtitle { margin: 0; font-size: 13px; color: var(--text-muted); }

.status-pill { font-size: 12px; font-weight: 700; padding: 5px 12px; border-radius: 999px; }
.status-active { background: rgba(34,197,94,.12); color: #4ade80; }
.status-suspended { background: rgba(239,68,68,.12); color: #fca5a5; }

.panel-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-3); margin-bottom: var(--space-5); }
.panel-card {
    display: flex; flex-direction: column; gap: 4px; padding: 14px 16px;
    background: #0f0f14; border: 1px solid var(--border); border-radius: var(--radius-sm);
}
.panel-label { font-size: 12px; color: var(--text-faint); }
.panel-value { font-size: 14px; font-weight: 600; }

.panel-placeholder {
    padding: 24px; text-align: center; border: 1px dashed var(--border); border-radius: var(--radius-sm);
    color: var(--text-faint); font-size: 13px; margin-bottom: var(--space-5);
}

@media (max-width: 480px) {
    .panel-grid { grid-template-columns: 1fr; }
}

/* Auth (unchanged from before) */
.auth-section { width: 100%; display: flex; justify-content: center; padding: 60px 20px; }
.card {
    background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-md);
}
.auth-card { width: 100%; max-width: 420px; padding: var(--space-5); }
.auth-header { text-align: center; margin-bottom: var(--space-5); }
.auth-header h1 { font-size: 22px; margin: 0 0 6px; }
.auth-header p { margin: 0; color: var(--text-muted); font-size: 14px; }

.form-group { margin-bottom: var(--space-4); }
.form-row { display: flex; gap: var(--space-3); }
.form-row .form-group { flex: 1; }
.form-label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.form-hint { display: block; font-size: 12px; color: var(--text-faint); margin-top: 6px; }

.input {
    width: 100%; padding: 10px 12px; border-radius: var(--radius-sm);
    border: 1px solid var(--border); background: #0f0f14; color: var(--text); font-size: 14px;
}
.input:focus { outline: none; border-color: var(--blue); }

select.input { appearance: none; }

.checkbox-row {
    display: flex; align-items: flex-start; gap: 10px; margin-bottom: var(--space-3);
    font-size: 13px; color: var(--text-muted); cursor: pointer;
}
.checkbox-row input[type="checkbox"] { margin-top: 3px; flex-shrink: 0; width: 16px; height: 16px; accent-color: var(--blue); }
.checkbox-row a { color: var(--text); text-decoration: underline; }

.alert { padding: 10px 14px; border-radius: var(--radius-sm); font-size: 13px; margin-bottom: var(--space-4); border: 1px solid transparent; }
.alert-danger { background: rgba(239, 68, 68, .1); border-color: rgba(239, 68, 68, .35); color: #fca5a5; }

.auth-fineprint { font-size: 12px; color: var(--text-faint); text-align: center; margin: var(--space-4) 0 0; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); background: var(--bg-alt); }
.footer-inner { max-width: var(--max-width); margin: 0 auto; padding: 48px 24px 24px; }
.footer-top {
    display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: var(--space-5);
    padding-bottom: 32px; border-bottom: 1px solid var(--border);
}
.footer-brand .logo { margin-bottom: 12px; }
.footer-tagline { font-size: 13px; color: var(--text-muted); margin: 0 0 16px; max-width: 260px; line-height: 1.5; }
.footer-socials { display: flex; gap: 8px; }
.footer-social {
    font-size: 12px; font-weight: 600; padding: 6px 12px; border-radius: 999px;
    background: var(--card); border: 1px solid var(--border); color: var(--text-muted);
}
.footer-social:hover { color: var(--text); border-color: var(--blue); }

.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col h4 { font-size: 13px; margin: 0 0 4px; color: var(--text); }
.footer-col a { font-size: 13px; color: var(--text-muted); }
.footer-col a:hover { color: var(--text); }

.footer-bottom {
    display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px;
    padding-top: 20px; color: var(--text-faint); font-size: 12px;
}
.footer-bottom p { margin: 0; }

/* Pricing (bot packages) */
.pricing-grid {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-4); align-items: stretch;
}
.pricing-card {
    position: relative; display: flex; flex-direction: column; gap: var(--space-4);
    background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg);
    padding: var(--space-5);
}
.pricing-card-popular { border-color: var(--blue); box-shadow: 0 0 0 1px var(--blue); }
.pricing-badge {
    position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
    background: var(--blue); color: #fff; font-size: 11px; font-weight: 700;
    padding: 4px 12px; border-radius: 999px; letter-spacing: .02em;
}
.pricing-card-head h3 { font-size: 18px; margin: 0 0 6px; }
.pricing-price { display: flex; align-items: baseline; gap: 6px; margin: 0; }
.pricing-price strong { font-size: 30px; font-weight: 800; }
.pricing-price span { font-size: 13px; color: var(--text-faint); }
.pricing-hosting {
    font-size: 12.5px; color: var(--text-muted); background: var(--bg-alt);
    border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 8px 10px; margin: 0;
}
.pricing-hosting strong { color: var(--text); }

.pricing-specs { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: 13px; }
.pricing-specs li { display: flex; gap: 8px; align-items: flex-start; }
.pricing-specs li::before { content: '—'; color: var(--text-faint); flex-shrink: 0; }
.pricing-specs li strong { color: var(--text); }

.pricing-divider { border: none; border-top: 1px solid var(--border); margin: 0; }

.pricing-checklist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 7px; font-size: 13px; }
.pricing-checklist li { display: flex; align-items: center; gap: 8px; color: var(--text-muted); }
.pricing-checklist li.has { color: var(--text); }
.pricing-checklist .mark { width: 16px; flex-shrink: 0; text-align: center; font-weight: 700; }
.pricing-checklist li.has .mark { color: #4ade80; }
.pricing-checklist li:not(.has) .mark { color: var(--text-faint); }

.pricing-fit { font-size: 12.5px; color: var(--text-muted); margin: 0; line-height: 1.5; }
.pricing-fit strong { color: var(--text); }

.pricing-cta { margin-top: auto; }

/* Core modules explainer */
.core-modules-intro { max-width: 640px; margin: 0 auto 32px; text-align: center; }
.core-modules-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-4); }
.core-module-card {
    background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-md);
    padding: var(--space-4);
}
.core-module-card h4 { margin: 0 0 4px; font-size: 14px; }
.core-module-card code {
    display: inline-block; font-size: 12.5px; font-weight: 700; color: var(--blue);
    background: rgba(89,168,255,.1); padding: 2px 8px; border-radius: 999px; margin-bottom: 8px;
}
.core-module-card p { margin: 0; font-size: 13px; color: var(--text-muted); line-height: 1.5; }

@media (max-width: 900px) {
    .pricing-grid { grid-template-columns: repeat(2, 1fr); }
    .core-modules-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
    .pricing-grid { grid-template-columns: 1fr; }
    .core-modules-grid { grid-template-columns: 1fr; }
}

/* Flat, quiet UI in the vextro.nl / clearlydev.com register: hairline
   borders, restrained colour, real (SVG) icons, no glow/blur decoration. */

.panel-body { background: var(--bg); }

.panel-layout { display: flex; min-height: 100vh; }

.panel-icon { width: 16px; height: 16px; display: inline-block; flex-shrink: 0; }
.panel-icon svg { width: 100%; height: 100%; }

.panel-sidebar {
    width: 232px; flex-shrink: 0; background: var(--bg); border-right: 1px solid var(--border);
    padding: 20px 14px; display: flex; flex-direction: column; gap: 28px;
}
.panel-sidebar-brand {
    display: flex; align-items: center; gap: 9px; font-weight: 700; font-size: 14px;
    margin-bottom: 4px; padding: 0 6px;
}
.panel-sidebar-brand .logo-mark { width: 22px; height: 22px; }

.panel-nav, .panel-quick-actions { display: flex; flex-direction: column; gap: 1px; }
.panel-nav-heading {
    font-size: 10.5px; text-transform: uppercase; letter-spacing: .07em; color: var(--text-faint);
    font-weight: 600; margin-bottom: 6px; padding: 0 8px;
}
.panel-nav-link {
    display: flex; align-items: center; gap: 9px; padding: 7px 8px; border-radius: 6px;
    font-size: 13.5px; font-weight: 500; color: var(--text-muted);
}
.panel-nav-link:hover { background: var(--card); color: var(--text); }
.panel-nav-link.is-active { background: var(--card); color: var(--text); font-weight: 600; box-shadow: inset 2px 0 0 var(--text); }
.panel-nav-icon { color: var(--text-faint); }
.panel-nav-link.is-active .panel-nav-icon { color: var(--text); }

.panel-quick-btn {
    display: flex; align-items: center; justify-content: center; gap: 6px; text-align: center;
    padding: 7px 10px; border-radius: 6px; font-size: 13px; font-weight: 600;
    background: var(--text); color: var(--bg); margin-bottom: 6px; border: 1px solid var(--text);
}
.panel-quick-btn:hover { opacity: .85; }
.panel-quick-btn-ghost { background: transparent; border: 1px solid var(--border); color: var(--text-muted); }
.panel-quick-btn-ghost:hover { color: var(--text); border-color: var(--text-faint); opacity: 1; }

/* Uitgelichte CTA-kaart in de sidebar (bv. "Discord bot bestellen") */
.panel-quick-featured {
    position: relative; display: flex; align-items: center; gap: 11px;
    padding: 12px 12px; margin-bottom: 6px; border-radius: 12px; text-align: left;
    background: linear-gradient(155deg, var(--blue) 0%, var(--blue-dark) 100%);
    border: 1px solid var(--blue-dark);
    box-shadow: 0 4px 16px -4px var(--blue-glow), inset 0 1px 0 rgba(255,255,255,.14);
    overflow: hidden; transition: transform .18s ease, box-shadow .18s ease;
}
.panel-quick-featured::before {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(120px 60px at 85% -10%, rgba(255,255,255,.35), transparent 70%);
    pointer-events: none;
}
.panel-quick-featured:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 22px -4px var(--blue-glow), inset 0 1px 0 rgba(255,255,255,.18);
}
.panel-quick-featured-icon {
    flex-shrink: 0; width: 34px; height: 34px; border-radius: 9px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,.16); color: #fff;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.25);
}
.panel-quick-featured-icon .panel-icon { width: 18px; height: 18px; }
.panel-quick-featured-body { flex: 1; min-width: 0; }
.panel-quick-featured-title {
    display: block; font-size: 13.5px; font-weight: 700; color: #fff; line-height: 1.25;
}
.panel-quick-featured-sub {
    display: block; font-size: 11px; font-weight: 500; color: rgba(255,255,255,.78);
    margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.panel-quick-featured-arrow {
    flex-shrink: 0; width: 16px; height: 16px; color: rgba(255,255,255,.85);
    transition: transform .18s ease;
}
.panel-quick-featured:hover .panel-quick-featured-arrow { transform: translateX(2px); }
.panel-quick-featured-badge {
    position: absolute; top: 7px; right: 8px; font-size: 8.5px; font-weight: 700;
    letter-spacing: .04em; text-transform: uppercase; color: rgba(255,255,255,.9);
    background: rgba(255,255,255,.16); padding: 2px 6px; border-radius: 999px;
}
html.theme-light .panel-quick-featured { border-color: var(--blue-dark); }

.panel-main { flex: 1; display: flex; flex-direction: column; min-width: 0; }

.panel-topbar {
    display: flex; align-items: center; justify-content: space-between;
    padding: 12px 24px; border-bottom: 1px solid var(--border);
}
.panel-back {
    width: 30px; height: 30px; border-radius: 6px; display: flex; align-items: center; justify-content: center;
    background: transparent; border: 1px solid var(--border); color: var(--text-muted);
}
.panel-back:hover { border-color: var(--text-faint); color: var(--text); }
.panel-topbar-actions { display: flex; align-items: center; gap: 10px; }
.panel-icon-btn {
    width: 30px; height: 30px; border-radius: 6px; border: 1px solid var(--border); background: transparent;
    color: var(--text-muted); cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.panel-icon-btn:hover { border-color: var(--text-faint); color: var(--text); }
.panel-icon-btn .icon-sun { display: none; }
html.theme-light .panel-icon-btn .icon-moon { display: none; }
html.theme-light .panel-icon-btn .icon-sun { display: flex; }

.panel-profile { position: relative; }
.panel-profile-trigger {
    display: flex; align-items: center; gap: 8px; background: none; border: none; cursor: pointer;
    color: var(--text); font-size: 13.5px; font-weight: 500; padding: 3px;
}
.panel-profile-avatar, .panel-profile-menu-avatar {
    width: 26px; height: 26px; border-radius: 50%; object-fit: cover;
}
.panel-profile-menu-avatar { width: 44px; height: 44px; margin: 0 auto 10px; }
.panel-avatar-fallback {
    display: flex; align-items: center; justify-content: center;
    background: var(--card); border: 1px solid var(--border); color: var(--text); font-weight: 600; font-size: 12px;
}

.panel-profile-menu {
    display: none; position: absolute; right: 0; top: calc(100% + 8px); width: 220px; z-index: 40;
    background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-md);
    padding: 16px; text-align: center; box-shadow: 0 8px 24px rgba(0,0,0,.28);
}
.panel-profile-menu.is-open { display: block; }
.panel-profile-menu-name { margin: 0; font-weight: 600; font-size: 13.5px; }
.panel-profile-menu-email { margin: 0 0 14px; font-size: 12px; color: var(--text-muted); }
.panel-profile-menu .btn { margin-bottom: 8px; }

.btn-danger-outline { background: transparent; border: 1px solid var(--border); color: var(--text-muted); }
.btn-danger-outline:hover { border-color: var(--danger); color: #fca5a5; }
.btn-discord { background: transparent; border: 1px solid var(--border); color: var(--text); }
.btn-discord:hover { border-color: #5865F2; color: #5865F2; }

.panel-lang-switch { display: flex; gap: 6px; margin-top: 4px; }
.panel-lang-btn {
    flex: 1; font-size: 11px; padding: 6px 4px; border-radius: 6px; border: 1px solid var(--border);
    background: transparent; color: var(--text-muted); cursor: pointer;
}
.panel-lang-btn.is-active { background: var(--bg-alt); color: var(--text); border-color: var(--text-faint); }

.panel-content { flex: 1; padding: 32px; max-width: 1080px; width: 100%; margin: 0 auto; }
.panel-content-head {
    display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
    margin-bottom: 22px; flex-wrap: wrap;
}
.panel-title { font-size: 20px; font-weight: 700; margin: 0; }
.panel-subtle { font-size: 13px; color: var(--text-faint); margin: 2px 0 0; }

.panel-banner {
    display: flex; align-items: center; gap: 9px; padding: 10px 14px; border-radius: var(--radius-sm);
    font-size: 13px; font-weight: 500; margin-bottom: 20px; border: 1px solid var(--border);
}
.panel-banner-success { background: var(--card); border-color: rgba(34,197,94,.35); color: var(--text); }
.panel-banner-icon {
    width: 16px; height: 16px; color: #22c55e; flex-shrink: 0; display: flex; align-items: center; justify-content: center;
}

.panel-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-bottom: 28px;
    background: var(--border); border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; }
.panel-stat-card {
    display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; padding: 16px 18px;
    background: var(--card);
}
.panel-stat-icon {
    width: 30px; height: 30px; border-radius: 7px; display: flex; align-items: center; justify-content: center;
    color: var(--text-faint); border: 1px solid var(--border); flex-shrink: 0;
}
.panel-stat-red .panel-stat-icon { color: var(--danger); }
.panel-stat-amber .panel-stat-icon { color: #d97706; }
.panel-stat-label { display: block; font-size: 12px; color: var(--text-faint); margin-bottom: 3px; }
.panel-stat-value { display: block; font-size: 20px; font-weight: 700; font-variant-numeric: tabular-nums; }

.panel-columns { display: grid; grid-template-columns: 2fr 1fr; gap: var(--space-4); align-items: start; margin-bottom: 28px; }

.panel-info-card {
    border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--card);
    padding: 16px 18px;
}
.panel-info-card h2 { font-size: 13px; font-weight: 600; margin: 0 0 12px; color: var(--text); }
.panel-info-row {
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    padding: 8px 0; border-top: 1px solid var(--border); font-size: 13px;
}
.panel-info-row:first-of-type { border-top: none; }
.panel-info-row dt { color: var(--text-faint); margin: 0; }
.panel-info-row dd { margin: 0; font-weight: 600; text-align: right; }

.panel-table-section { margin-bottom: 28px; }
.panel-table-section-head {
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    margin: 0 0 12px; padding-bottom: 10px; border-bottom: 1px solid var(--border);
}
.panel-table-section-head h2 { font-size: 13px; font-weight: 600; margin: 0; color: var(--text); }
.panel-table-section-head a { font-size: 12.5px; color: var(--text-faint); font-weight: 500; }
.panel-table-section-head a:hover { color: var(--text); }

.panel-table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius-md); }
.panel-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.panel-table th {
    text-align: left; padding: 10px 14px; font-size: 11px; text-transform: uppercase; letter-spacing: .04em;
    font-weight: 600; color: var(--text-faint); border-bottom: 1px solid var(--border); background: var(--bg-alt);
}
.panel-table td { padding: 11px 14px; border-bottom: 1px solid var(--border); }
.panel-table tr:last-child td { border-bottom: none; }
.panel-table tbody tr:hover { background: var(--card-hover); }
.panel-table td:first-child { color: var(--text-muted); font-variant-numeric: tabular-nums; }
.panel-table a { text-decoration: underline; text-underline-offset: 2px; text-decoration-color: var(--border); }
.panel-table a:hover { text-decoration-color: var(--text); }

.panel-empty-state {
    display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center;
    padding: 36px 20px; border: 1px dashed var(--border); border-radius: var(--radius-md); color: var(--text-muted);
}
.panel-empty-icon { color: var(--text-faint); }
.panel-empty-state p { margin: 0; font-size: 13px; }

.panel-footer { text-align: center; padding: 16px; font-size: 12px; color: var(--text-faint); border-top: 1px solid var(--border); }

.status-pill { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; padding: 3px 10px 3px 8px; border-radius: 999px; border: 1px solid var(--border); }
.status-pill::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status-active { color: #22c55e; }
.status-suspended { color: var(--danger); }

/* Light theme override */
html.theme-light { --bg: #ffffff; --bg-alt: #fafafb; --card: #ffffff; --card-hover: #f7f7f9;
    --border: #e6e6ea; --text: #17171c; --text-muted: #5c5c68; --text-faint: #93939f; }
html.theme-light .panel-sidebar { background: #ffffff; }
html.theme-light .panel-nav-link.is-active { background: var(--bg-alt); }
html.theme-light .panel-quick-btn { background: var(--text); color: #fff; border-color: var(--text); }
html.theme-light .panel-profile-menu { box-shadow: 0 8px 24px rgba(20,20,30,.08); }

@media (max-width: 900px) {
    .panel-sidebar { display: none; }
    .panel-stats { grid-template-columns: 1fr; }
    .panel-columns { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
    .feature-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-top { grid-template-columns: 1fr 1fr; }
    .trust-strip-inner { grid-template-columns: repeat(2, 1fr); }
    .steps-grid { grid-template-columns: repeat(2, 1fr); }
    .step-card::before { display: none; }
}

@media (max-width: 720px) {
    .nav-toggle { display: flex; }
    .header-nav {
        position: absolute; top: 100%; left: 0; right: 0;
        background: var(--bg-alt); border-bottom: 1px solid var(--border);
        flex-direction: column; align-items: stretch; gap: 0;
        max-height: 0; overflow: hidden; transition: max-height .2s ease;
    }
    .nav-toggle-input:checked ~ .header-nav { max-height: 400px; }
    .header-nav-links, .header-nav-actions { flex-direction: column; align-items: stretch; padding: 14px 20px; }
    .header-nav-actions { border-top: 1px solid var(--border); }
    .nav-pill { text-align: center; }
}

@media (max-width: 480px) {
    .form-row { flex-direction: column; gap: 0; }
    .hero h1 { font-size: 34px; }
    .feature-grid { grid-template-columns: 1fr; }
    .footer-top { grid-template-columns: 1fr; }
    .cta-banner-inner { flex-direction: column; text-align: center; }
    .trust-strip-inner { grid-template-columns: repeat(2, 1fr); }
    .steps-grid { grid-template-columns: 1fr; }
}