/* ═══════════════════════════════════════════════════════════
   RZ Service AI Panel — pages.css
   Home · Login · Dashboard · Settings · Status · Admin · Error
   ═══════════════════════════════════════════════════════════ */

/* ══════════════════════════════════════════════════════════
   LANDING PAGE (lp-*)
══════════════════════════════════════════════════════════ */
.lp-wrap {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem 5rem;
}

/* ── Hero ── */
.lp-hero {
    text-align: center;
    padding: 5rem 1rem 3.5rem;
    position: relative;
}
.lp-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 60% 50% at 50% 0%, rgba(45,212,191,.10) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}
.lp-hero > * { position: relative; z-index: 1; }

.lp-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .3rem .9rem;
    border-radius: 99px;
    border: 1px solid rgba(45,212,191,.30);
    background: rgba(45,212,191,.07);
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .07em;
    text-transform: uppercase;
    color: var(--cs-teal);
    margin-bottom: 1.5rem;
    font-family: "JetBrains Mono", monospace;
}

.lp-hero__title {
    font-family: var(--cs-display);
    font-size: clamp(2.6rem, 6vw, 4rem);
    font-weight: 900;
    line-height: 1.06;
    letter-spacing: -.04em;
    margin: 0 0 1.4rem;
    background: linear-gradient(135deg, #ffffff 0%, #bfdbfe 40%, #c4b5fd 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.lp-hero__lead {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.75;
    max-width: 52ch;
    margin: 0 auto 2.2rem;
}

.lp-hero__btns {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .85rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.lp-hero__status {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    font-size: .78rem;
    color: var(--text-muted);
}

/* ── Dashboard Preview (image frame) ── */
.lp-preview-wrap {
    position: relative;
    margin: 0 0 3.5rem;
}

.lp-preview-glow {
    position: absolute;
    inset: 10% 5% -5%;
    background: radial-gradient(ellipse at center, rgba(45,212,191,.15) 0%, transparent 70%);
    filter: blur(30px);
    pointer-events: none;
    z-index: 0;
}

.lp-preview-frame {
    position: relative;
    z-index: 1;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(45,212,191,.22);
    box-shadow: 0 30px 70px rgba(0,0,0,.6), 0 0 0 1px rgba(255,255,255,.04);
    background: #0d1117;
}

.lp-preview-bar {
    background: #111827;
    border-bottom: 1px solid rgba(255,255,255,.07);
    padding: .5rem .85rem;
    display: flex;
    align-items: center;
    gap: .35rem;
}
.lp-preview-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}
.lp-preview-dot.r { background: #f87171; }
.lp-preview-dot.y { background: #fbbf24; }
.lp-preview-dot.g { background: #4ade80; }

.lp-preview-url {
    flex: 1;
    margin: 0 .5rem;
    font-size: .68rem;
    font-family: "JetBrains Mono", monospace;
    color: rgba(255,255,255,.3);
    background: rgba(255,255,255,.05);
    border-radius: 6px;
    padding: .18rem .65rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.lp-preview-lock {
    font-size: .62rem;
    color: rgba(255,255,255,.25);
}

.lp-preview-img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: cover;
    object-position: top;
}

/* ── Stats bar ── */
.lp-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 5rem;
}
.lp-stat {
    background: var(--surface-1);
    padding: 1.6rem 1rem;
    text-align: center;
}
.lp-stat__val {
    font-family: var(--cs-display);
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -.03em;
    background: linear-gradient(135deg,#fff,#a5f3fc);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.lp-stat__lbl {
    font-size: .78rem;
    color: var(--text-muted);
    margin-top: .25rem;
    text-transform: uppercase;
    letter-spacing: .06em;
}

/* ── Section ── */
.lp-section { margin-bottom: 5rem; }
.lp-section__head { text-align: center; margin-bottom: 2.5rem; }
.lp-section__eyebrow {
    display: inline-block;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--cs-teal);
    margin-bottom: .5rem;
}
.lp-section__title {
    font-family: var(--cs-display);
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 800;
    letter-spacing: -.03em;
    margin: 0 0 .75rem;
    color: var(--text-primary);
}
.lp-section__sub {
    font-size: .95rem;
    color: var(--text-muted);
    max-width: 50ch;
    margin: 0 auto;
    line-height: 1.65;
}

/* ── Features grid ── */
.lp-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}
.lp-feat {
    background: var(--surface-1);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.6rem 1.4rem;
    transition: border-color .2s, transform .2s;
}
.lp-feat:hover {
    border-color: rgba(45,212,191,.3);
    transform: translateY(-2px);
}
.lp-feat__icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    color: #fff;
}
.lp-feat__title {
    font-weight: 700;
    font-size: .95rem;
    color: var(--text-primary);
    margin-bottom: .4rem;
}
.lp-feat__desc {
    font-size: .83rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ── Steps (how it works) ── */
.lp-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    position: relative;
}
.lp-steps::before {
    content: '';
    position: absolute;
    top: 28px;
    left: calc(16% + 20px);
    right: calc(16% + 20px);
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--cs-teal), transparent);
    opacity: .4;
}
.lp-step {
    text-align: center;
    padding: 1.5rem 1rem;
}
.lp-step__num {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--brand-gradient);
    color: #fff;
    font-weight: 800;
    font-size: .85rem;
    display: grid;
    place-items: center;
    margin: 0 auto .75rem;
}
.lp-step__icon {
    font-size: 1.6rem;
    color: var(--cs-teal);
    margin-bottom: .75rem;
}
.lp-step__title {
    font-weight: 700;
    font-size: .95rem;
    color: var(--text-primary);
    margin-bottom: .4rem;
}
.lp-step__desc {
    font-size: .82rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ── CTA Banner ── */
.lp-cta {
    text-align: center;
    padding: 3.5rem 2rem;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(45,212,191,.08) 0%, rgba(99,102,241,.08) 100%);
    border: 1px solid rgba(45,212,191,.15);
    position: relative;
    overflow: hidden;
}
.lp-cta::before {
    content: '';
    position: absolute;
    top: -60px;
    left: 50%;
    transform: translateX(-50%);
    width: 300px;
    height: 200px;
    background: radial-gradient(circle, rgba(45,212,191,.12) 0%, transparent 70%);
    pointer-events: none;
}
.lp-cta__title {
    font-family: var(--cs-display);
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 800;
    letter-spacing: -.03em;
    color: var(--text-primary);
    margin-bottom: .6rem;
}
.lp-cta__desc {
    font-size: .95rem;
    color: var(--text-muted);
    margin-bottom: 1.8rem;
    line-height: 1.6;
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .lp-features { grid-template-columns: 1fr 1fr; }
    .lp-steps { grid-template-columns: 1fr; }
    .lp-steps::before { display: none; }
    .lp-stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
    .lp-features { grid-template-columns: 1fr; }
    .lp-stats { grid-template-columns: 1fr 1fr; }
    .lp-hero__title { font-size: 2rem; }
}

/* ── legacy home-stats (kept for other uses) ── */
.home-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1px;
    background: var(--border);
    border-radius: var(--cs-radius);
    overflow: hidden;
    border: 1px solid var(--border);
}

.home-stat {
    background: var(--surface-0);
    padding: 1.25rem 1.4rem;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.home-stat__value {
    font-family: var(--cs-display);
    font-size: 2rem;
    font-weight: 800;
    background: var(--brand-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
}

.home-stat__label {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--cs-muted);
    font-weight: 600;
}

/* ── Features ──────────────────────────────────────────── */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
}

.feature-card {
    background: var(--surface-0);
    border: 1px solid var(--border);
    border-radius: var(--cs-radius);
    padding: 1.4rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    transition: var(--t-fast);
    position: relative;
    overflow: hidden;
}

.feature-card:hover {
    border-color: rgba(45,212,191,0.30);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: var(--brand-gradient);
    opacity: 0;
    transition: opacity 0.25s;
}

.feature-card:hover::before { opacity: 1; }

.feature-card__icon {
    width: 44px;
    height: 44px;
    border-radius: 13px;
    background: var(--brand-gradient);
    display: grid;
    place-items: center;
    font-size: 1rem;
    color: #fff;
    box-shadow: 0 8px 20px rgba(45,212,191,0.18);
}

.feature-card__title {
    font-family: var(--cs-display);
    font-size: 1rem;
    font-weight: 700;
}

.feature-card__desc {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ── CTA strip ─────────────────────────────────────────── */
.cta-strip {
    background: var(--surface-0);
    border: 1px solid var(--border);
    border-radius: var(--cs-radius);
    padding: 2rem 2.2rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    position: relative;
    overflow: hidden;
}

.cta-strip::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at left center, rgba(45,212,191,0.08), transparent 55%);
    pointer-events: none;
}

.cta-strip__text { flex: 1; }

.cta-strip__title {
    font-family: var(--cs-display);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.35rem;
}

.cta-strip__desc { font-size: 0.9rem; color: var(--text-secondary); }

/* ══════════════════════════════════════════════════════════
   LOGIN PAGE (two-column)
══════════════════════════════════════════════════════════ */
.login-shell {
    position: relative;
    z-index: 1;
    max-width: 1080px;
    margin: 0 auto;
    padding: clamp(2.5rem, 6vw, 4.5rem) 1.5rem 3rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(2rem, 4vw, 4rem);
    align-items: center;
    min-height: calc(100vh - 73px);
}

/* ── Left column ───────────────────────────────────────── */
.login-visual__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.38rem 0.85rem;
    border-radius: var(--r-full);
    font-family: "JetBrains Mono", monospace;
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #a5f3fc;
    border: 1px solid rgba(34,211,238,0.35);
    background: rgba(34,211,238,0.09);
    margin-bottom: 1.25rem;
}

.login-visual__title {
    font-family: var(--cs-display);
    margin: 0 0 1rem;
    font-size: clamp(2.1rem, 4.2vw, 3.15rem);
    font-weight: 800;
    line-height: 1.07;
    letter-spacing: -0.035em;
    background: linear-gradient(135deg, #fff 0%, #dbeafe 42%, #c4b5fd 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.login-visual__lead {
    margin: 0 0 2rem;
    font-size: 1.02rem;
    line-height: 1.68;
    color: var(--text-secondary);
    max-width: 38ch;
}

.login-perks {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.login-perk {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    padding: 0.9rem 1rem;
    border-radius: 13px;
    border: 1px solid var(--border);
    background: var(--surface-1);
    backdrop-filter: blur(10px);
    font-size: 0.9rem;
    color: var(--text-secondary);
    transition: var(--t-fast);
}

.login-perk:hover {
    border-color: rgba(45,212,191,0.35);
    transform: translateX(4px);
}

.login-perk i {
    margin-top: 0.18rem;
    color: var(--cs-teal);
    flex-shrink: 0;
}

/* ── Right column (card) ───────────────────────────────── */
.login-card-wrap {
    position: relative;
    border-radius: calc(var(--cs-radius) + 3px);
    padding: 2px;
    background: linear-gradient(
        130deg,
        #5865f2, var(--cs-indigo), var(--cs-teal), var(--cs-violet), #5865f2
    );
    background-size: 280% 280%;
    animation: login-glow 12s ease infinite;
    box-shadow: var(--cs-shadow), 0 0 80px rgba(88,101,242,0.12);
}

@keyframes login-glow {
    0%, 100% { background-position: 0% 50%; }
    50%       { background-position: 100% 50%; }
}

@media (prefers-reduced-motion: reduce) {
    .login-card-wrap { animation: none; }
    .login-perk:hover { transform: none; }
}

.login-card {
    border-radius: var(--cs-radius);
    background: linear-gradient(165deg, rgba(10,16,34,0.97), rgba(7,11,23,0.99));
    border: 1px solid rgba(148,163,184,0.10);
    padding: clamp(1.75rem, 4vw, 2.5rem);
    display: flex;
    flex-direction: column;
    gap: 1.4rem;
}

.login-card__head h2 {
    margin: 0 0 0.4rem;
    font-family: var(--cs-display);
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.login-card__head p {
    margin: 0;
    font-size: 0.88rem;
    color: var(--cs-muted);
    line-height: 1.55;
}

.login-card__separator {
    position: relative;
    text-align: center;
    font-size: 0.78rem;
    color: var(--text-faint);
}

.login-card__separator::before,
.login-card__separator::after {
    content: '';
    position: absolute;
    top: 50%;
    width: calc(50% - 1.5rem);
    height: 1px;
    background: var(--border);
}

.login-card__separator::before { left: 0; }
.login-card__separator::after  { right: 0; }

/* ── Error box inside login card ─── */
.login-error {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    padding: 0.8rem 1rem;
    border-radius: var(--r-sm);
    background: rgba(239,68,68,0.10);
    border: 1px solid rgba(239,68,68,0.28);
    color: #fca5a5;
    font-size: 0.875rem;
}

/* ══════════════════════════════════════════════════════════
   DASHBOARD (server list page)
══════════════════════════════════════════════════════════ */
.dashboard-hero {
    background: var(--surface-0);
    border: 1px solid var(--border);
    border-radius: var(--cs-radius);
    padding: 1.75rem 2rem;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    position: relative;
    overflow: hidden;
}

.dashboard-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at right, rgba(45,212,191,0.08), transparent 60%);
    pointer-events: none;
}

.dashboard-hero__avatar {
    width: 62px;
    height: 62px;
    border-radius: 18px;
    object-fit: cover;
    border: 2px solid rgba(45,212,191,0.30);
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.dashboard-hero__avatar-placeholder {
    width: 62px;
    height: 62px;
    border-radius: 18px;
    background: var(--brand-gradient);
    display: grid;
    place-items: center;
    font-family: var(--cs-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.dashboard-hero__info { position: relative; z-index: 1; flex: 1; }

.dashboard-hero__greeting {
    font-size: 0.8rem;
    color: var(--cs-muted);
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.dashboard-hero__name {
    font-family: var(--cs-display);
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 0.2rem;
}

.dashboard-hero__sub {
    font-size: 0.86rem;
    color: var(--text-secondary);
}

/* ── Section title ─────────────────────────────────────── */
.page-section { display: flex; flex-direction: column; gap: 0.85rem; }

.page-section__head {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.15rem;
}

.page-section__title {
    font-family: var(--cs-display);
    font-size: 1.1rem;
    font-weight: 700;
    flex: 1;
}

.page-section__sub { font-size: 0.82rem; color: var(--cs-muted); }

/* ══════════════════════════════════════════════════════════
   SETTINGS PAGE
══════════════════════════════════════════════════════════ */
.settings-header {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--border);
    margin-bottom: 0.25rem;
}

.settings-header img {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    object-fit: cover;
    border: 1px solid var(--border);
}

.settings-header__placeholder {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    background: var(--brand-gradient);
    display: grid;
    place-items: center;
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
}

.settings-header__name {
    font-family: var(--cs-display);
    font-size: 1.3rem;
    font-weight: 800;
    margin-bottom: 0.2rem;
}

.settings-header__meta {
    font-size: 0.82rem;
    color: var(--cs-muted);
    font-family: "JetBrains Mono", monospace;
}

.settings-tabs {
    display: flex;
    gap: 0.4rem;
    border-bottom: 1px solid var(--border);
    overflow-x: auto;
    scrollbar-width: none;
}

.settings-tabs::-webkit-scrollbar { display: none; }

.settings-tab {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.6rem 1rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    border-bottom: 2px solid transparent;
    cursor: pointer;
    white-space: nowrap;
    transition: var(--t-fast);
    margin-bottom: -1px;
}

.settings-tab:hover { color: var(--text-primary); }

.settings-tab.active {
    color: var(--cs-teal);
    border-bottom-color: var(--cs-teal);
}

/* ══════════════════════════════════════════════════════════
   STATUS PAGE
══════════════════════════════════════════════════════════ */
.status-hero {
    background: var(--surface-0);
    border: 1px solid var(--border);
    border-radius: var(--cs-radius);
    padding: 2rem 2.2rem;
    position: relative;
    overflow: hidden;
}

.status-hero--operational {
    border-color: rgba(34,197,94,0.30);
    background: linear-gradient(135deg, rgba(17,24,39,0.85) 0%, rgba(16,185,129,0.06) 100%);
}
.status-hero--degraded {
    border-color: rgba(245,158,11,0.30);
    background: linear-gradient(135deg, rgba(17,24,39,0.85) 0%, rgba(245,158,11,0.06) 100%);
}
.status-hero--outage {
    border-color: rgba(239,68,68,0.30);
    background: linear-gradient(135deg, rgba(17,24,39,0.85) 0%, rgba(239,68,68,0.06) 100%);
}

.status-hero__dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 0.5rem;
}
.status-hero--operational .status-hero__dot {
    background: var(--success);
    box-shadow: 0 0 8px rgba(34,197,94,0.5);
}
.status-hero--degraded .status-hero__dot {
    background: var(--warning);
    box-shadow: 0 0 8px rgba(245,158,11,0.5);
}
.status-hero--outage .status-hero__dot {
    background: var(--danger);
    box-shadow: 0 0 8px rgba(239,68,68,0.5);
}

.status-hero__title {
    font-family: var(--cs-display);
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 0.4rem;
}

.status-hero__msg { font-size: 0.92rem; color: var(--text-secondary); }

/* ── Service grid ─────────────────────────────────────── */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 0.9rem;
}

.service-card {
    background: var(--surface-0);
    border: 1px solid var(--border);
    border-radius: var(--cs-radius-sm);
    padding: 1rem 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.85rem;
    transition: var(--t-fast);
}

.service-card:hover { transform: translateY(-1px); box-shadow: var(--shadow-sm); }

.service-card__icon {
    width: 38px;
    height: 38px;
    border-radius: 11px;
    display: grid;
    place-items: center;
    font-size: 0.9rem;
    flex-shrink: 0;
}
.service-card__icon.operational { background: rgba(34,197,94,0.12); color: #4ade80; }
.service-card__icon.degraded    { background: rgba(245,158,11,0.12); color: #fbbf24; }
.service-card__icon.outage      { background: rgba(239,68,68,0.12);  color: #f87171; }
.service-card__icon.maintenance { background: rgba(56,189,248,0.12); color: #38bdf8; }

.service-card__info { flex: 1; }
.service-card__name { font-weight: 700; font-size: 0.9rem; }
.service-card__meta { font-size: 0.76rem; color: var(--cs-muted); margin-top: 0.1rem; }

/* ── Metrics row ───────────────────────────────────────── */
.metrics-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 0.9rem;
}

.metric-card {
    background: var(--surface-0);
    border: 1px solid var(--border);
    border-radius: var(--cs-radius-sm);
    padding: 1rem 1.2rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.metric-card__label {
    font-size: 0.74rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--cs-muted);
    font-weight: 600;
}

.metric-card__value {
    font-family: var(--cs-display);
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--text-primary);
}

/* ── Incidents ─────────────────────────────────────────── */
.incident-list {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.incident-item {
    background: var(--surface-1);
    border: 1px solid var(--border);
    border-radius: var(--cs-radius-sm);
    padding: 1rem 1.25rem;
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
}

.incident-item__bar {
    width: 3px;
    min-height: 40px;
    border-radius: 999px;
    flex-shrink: 0;
    margin-top: 0.15rem;
}
.incident-item.critical .incident-item__bar { background: var(--danger); }
.incident-item.major    .incident-item__bar { background: var(--warning); }
.incident-item.minor    .incident-item__bar { background: var(--info); }
.incident-item.maintenance .incident-item__bar { background: var(--info); }

.incident-item__content { flex: 1; }
.incident-item__title { font-weight: 700; font-size: 0.9rem; margin-bottom: 0.25rem; }
.incident-item__desc  { font-size: 0.82rem; color: var(--text-secondary); line-height: 1.55; }
.incident-item__meta  { font-size: 0.75rem; color: var(--cs-muted); margin-top: 0.5rem; }

/* ── History blocks ────────────────────────────────────── */
.uptime-bars {
    display: flex;
    gap: 2px;
    height: 32px;
    align-items: flex-end;
    margin-top: 0.75rem;
}

.uptime-bar {
    flex: 1;
    min-width: 3px;
    border-radius: 2px;
    background: rgba(34,197,94,0.35);
    transition: background 0.2s;
}
.uptime-bar:hover { background: rgba(34,197,94,0.7); cursor: default; }
.uptime-bar.down  { background: rgba(239,68,68,0.50); }

/* ══════════════════════════════════════════════════════════
   ADMIN PAGE
══════════════════════════════════════════════════════════ */
.admin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1rem;
}

.admin-card {
    background: var(--surface-0);
    border: 1px solid var(--border);
    border-radius: var(--cs-radius);
    padding: 1.4rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    transition: var(--t-fast);
    position: relative;
    overflow: hidden;
}

.admin-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: var(--brand-gradient);
    opacity: 0;
    transition: opacity 0.2s;
}

.admin-card:hover {
    border-color: rgba(45,212,191,0.28);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}
.admin-card:hover::before { opacity: 1; }

/* ══════════════════════════════════════════════════════════
   USER SETTINGS PAGE
══════════════════════════════════════════════════════════ */
.user-profile-card {
    background: var(--surface-0);
    border: 1px solid var(--border);
    border-radius: var(--cs-radius);
    padding: 1.75rem 2rem;
    display: flex;
    align-items: center;
    gap: 1.35rem;
    position: relative;
    overflow: hidden;
}

.user-profile-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at left center, rgba(45,212,191,0.06), transparent 60%);
    pointer-events: none;
}

.user-profile-card__avatar {
    width: 68px;
    height: 68px;
    border-radius: 20px;
    object-fit: cover;
    border: 2px solid rgba(45,212,191,0.35);
    position: relative;
    z-index: 1;
}

.user-profile-card__info { position: relative; z-index: 1; }

.user-profile-card__name {
    font-family: var(--cs-display);
    font-size: 1.35rem;
    font-weight: 800;
    margin-bottom: 0.25rem;
}

.user-profile-card__tag {
    font-size: 0.82rem;
    color: var(--cs-muted);
    font-family: "JetBrains Mono", monospace;
}

/* ══════════════════════════════════════════════════════════
   ERROR PAGE
══════════════════════════════════════════════════════════ */
.error-shell {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 73px);
    text-align: center;
    padding: 2rem 1.5rem;
    position: relative;
    z-index: 1;
}

.error-code {
    font-family: var(--cs-display);
    font-size: clamp(5rem, 15vw, 9rem);
    font-weight: 900;
    line-height: 1;
    background: var(--brand-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
}

.error-title {
    font-family: var(--cs-display);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.error-msg {
    font-size: 1rem;
    color: var(--text-secondary);
    max-width: 42ch;
    line-height: 1.65;
    margin: 0 auto 2rem;
}

/* ══════════════════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════════════════ */
@media (max-width: 860px) {
    .home-hero { grid-template-columns: 1fr; }
    .login-shell { grid-template-columns: 1fr; min-height: auto; }
    .login-visual { display: none; }
    .cta-strip { flex-direction: column; align-items: flex-start; }
    .dashboard-hero { flex-wrap: wrap; }
    .settings-header { flex-wrap: wrap; }
}

@media (max-width: 600px) {
    .home-hero { padding: 2.5rem 0 1.5rem; }
    .home-hero__title { font-size: 2rem; }
    .home-hero__actions { flex-direction: column; align-items: flex-start; }
    .services-grid { grid-template-columns: 1fr; }
    .metrics-row { grid-template-columns: 1fr 1fr; }
    .login-shell { padding: 1.5rem 0; }
    .login-card { padding: 1.5rem; }
    .kpi-grid { grid-template-columns: 1fr 1fr; }
    .admin-grid { grid-template-columns: 1fr; }
}

/* ══════════════════════════════════════════════════════════
   DASHBOARD GUILD LIST (horizontal TicketFast-style rows)
══════════════════════════════════════════════════════════ */
.guild-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.guild-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.85rem 1.1rem;
    background: var(--surface-0);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    text-decoration: none;
    color: var(--text-primary);
    transition: var(--t-fast);
    min-width: 0;
}

.guild-row:hover {
    border-color: rgba(45,212,191,0.30);
    background: var(--surface-1);
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(0,0,0,.25);
}

.guild-row__icon-wrap {
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    position: relative;
}

.guild-row__icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    object-fit: cover;
}

.guild-row__icon-fb {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: var(--brand-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
}

.guild-row__icon-add {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    border: 2px dashed rgba(45,212,191,.35);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: var(--cs-teal);
    background: rgba(45,212,191,.05);
}

.guild-row__info {
    flex: 1;
    min-width: 0;
}

.guild-row__name {
    font-weight: 600;
    font-size: 0.92rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.guild-row__id {
    font-size: 0.74rem;
    color: var(--cs-muted);
    font-family: "JetBrains Mono", monospace;
    margin-top: 0.1rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.guild-row__badges {
    display: flex;
    gap: 0.4rem;
    align-items: center;
    flex-shrink: 0;
}

.guild-row__status {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.78rem;
    color: var(--text-secondary);
    flex-shrink: 0;
    min-width: 90px;
}

.guild-row__action { flex-shrink: 0; }

.guild-row--add {
    border-style: dashed;
    border-color: rgba(45,212,191,.20);
    opacity: 0.75;
}
.guild-row--add:hover { opacity: 1; }

/* ══════════════════════════════════════════════════════════
   GUILD SETTINGS — CLEAN TAB LAYOUT (sp-*)
══════════════════════════════════════════════════════════ */

/* Keep gs-layout as alias so any stale references don't break */
.gs-layout { display: none; }

/* ── Header banner ── */
.gs-header {
    background: var(--surface-0);
    border: 1px solid var(--border);
    border-radius: var(--cs-radius);
    padding: 1.1rem 1.4rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
    overflow: hidden;
}

.gs-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 50% 120% at left center, rgba(45,212,191,.06), transparent 70%);
    pointer-events: none;
}

.gs-header__back {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 9px;
    background: var(--surface-1);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.85rem;
    flex-shrink: 0;
    transition: var(--t-fast);
    position: relative;
    z-index: 1;
}
.gs-header__back:hover { color: var(--cs-teal); border-color: rgba(45,212,191,.35); }

.gs-header__icon-wrap {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.gs-header__icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    object-fit: cover;
}

.gs-header__icon-fb {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: var(--brand-gradient);
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
}

.gs-header__info {
    flex: 1;
    min-width: 0;
    position: relative;
    z-index: 1;
}

.gs-header__name {
    font-family: var(--cs-display);
    font-size: 1.15rem;
    font-weight: 800;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.gs-header__meta {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.78rem;
    color: var(--cs-muted);
    margin-top: 0.2rem;
    font-family: "JetBrains Mono", monospace;
    flex-wrap: wrap;
}

.gs-header__dot { opacity: 0.4; }

.gs-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.18rem 0.6rem;
    border-radius: 99px;
    font-size: 0.71rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    font-family: var(--cs-body);
}
.gs-status-badge--on  { background: rgba(34,197,94,.12); color: #4ade80; }
.gs-status-badge--off { background: rgba(100,116,139,.12); color: var(--cs-muted); }

.gs-header__kpis {
    display: flex;
    gap: 1.5rem;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.gs-kpi {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.05rem;
}
.gs-kpi span {
    font-family: var(--cs-display);
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--text-primary);
}
.gs-kpi label {
    font-size: 0.68rem;
    color: var(--cs-muted);
    text-transform: uppercase;
    letter-spacing: 0.07em;
}

/* ── Body: sidebar + content ── */
.gs-body {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 1rem;
    align-items: start;
}

/* ── Sidebar nav ── */
.gs-nav {
    background: var(--surface-0);
    border: 1px solid var(--border);
    border-radius: var(--cs-radius);
    padding: 0.6rem 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    position: sticky;
    top: 80px;
}

.gs-nav__item {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.6rem 0.85rem;
    border-radius: 9px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    background: transparent;
    border: none;
    cursor: pointer;
    text-align: left;
    transition: var(--t-fast);
    text-decoration: none;
    width: 100%;
}

.gs-nav__item:hover { background: var(--surface-1); color: var(--text-primary); }

.gs-nav__item.active {
    background: rgba(45,212,191,.10);
    color: var(--cs-teal);
    font-weight: 600;
}

.gs-nav__item--danger { color: var(--cs-muted); margin-top: 0.25rem; }
.gs-nav__item--danger:hover { background: rgba(239,68,68,.08); color: #f87171; }

.gs-nav__spacer { flex: 1; min-height: 0.5rem; }

/* ── Content area ── */
.gs-content {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    min-width: 0;
}

/* ── Tab panels ── */
.gs-tab {
    display: none;
    flex-direction: column;
    gap: 1rem;
}
.gs-tab.active { display: flex; }

.gs-tab__head {
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border);
}
.gs-tab__head h2 {
    font-family: var(--cs-display);
    font-size: 1.2rem;
    font-weight: 800;
    margin: 0 0 0.2rem;
}
.gs-tab__head p {
    font-size: 0.83rem;
    color: var(--text-secondary);
    margin: 0;
}

/* ── Section cards inside tabs ── */
.gs-section {
    background: var(--surface-0);
    border: 1px solid var(--border);
    border-radius: var(--cs-radius);
    overflow: hidden;
}

.gs-section__label {
    padding: 0.75rem 1.1rem;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--cs-muted);
    background: var(--surface-1);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.gs-section__body {
    padding: 1rem 1.1rem;
}

/* channel grid (3 cols) */
.gs-ch-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 0.9rem;
}

/* ── Overview list ── */
.gs-overview-list {
    background: var(--surface-0);
    border: 1px solid var(--border);
    border-radius: var(--cs-radius);
    overflow: hidden;
}

.gs-overview-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.7rem 1.1rem;
    font-size: 0.88rem;
    border-bottom: 1px solid var(--border);
}
.gs-overview-row:last-child { border-bottom: none; }

.gs-overview-row span:first-child {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    color: var(--text-secondary);
}

/* ── Save bar ── */
.gs-save-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.85rem 1.1rem;
    background: var(--surface-0);
    border: 1px solid var(--border);
    border-radius: var(--cs-radius);
    position: sticky;
    bottom: 1rem;
    z-index: 20;
    backdrop-filter: blur(12px);
}

.gs-save-bar__hint {
    font-size: 0.8rem;
    color: var(--cs-muted);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

/* ── Misc helpers ── */
.form-hint-inline {
    color: var(--cs-muted);
    font-weight: 400;
    font-size: 0.8em;
}

/* ══════════════════════════════════════════════════════════
   SETTINGS PAGE — sp-* CLEAN LAYOUT
══════════════════════════════════════════════════════════ */
.sp-wrap {
    max-width: 900px;
    margin: 0 auto;
    padding: 1.25rem 1.5rem 3rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* ── Top header ── */
.sp-top {
    display: flex;
    align-items: center;
    gap: .9rem;
    background: var(--surface-0);
    border: 1px solid var(--border);
    border-radius: var(--cs-radius);
    padding: .9rem 1.15rem;
}

.sp-back {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 9px;
    background: var(--surface-1);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    text-decoration: none;
    font-size: .82rem;
    flex-shrink: 0;
    transition: var(--t-fast);
}
.sp-back:hover { color: var(--cs-teal); border-color: rgba(45,212,191,.35); }

.sp-top__icon-wrap { width: 42px; height: 42px; flex-shrink: 0; }
.sp-top__icon {
    width: 42px; height: 42px;
    border-radius: 12px;
    object-fit: cover;
}
.sp-top__icon-fb {
    width: 42px; height: 42px;
    border-radius: 12px;
    background: var(--brand-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #fff;
}

.sp-top__info { flex: 1; min-width: 0; }
.sp-top__name {
    font-weight: 700;
    font-size: .95rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.sp-top__sub {
    font-size: .74rem;
    color: var(--cs-muted);
    font-family: "JetBrains Mono", monospace;
}

.sp-top__status {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .22rem .7rem;
    border-radius: 99px;
    font-size: .74rem;
    font-weight: 600;
    flex-shrink: 0;
}
.sp-top__status.on  { background: rgba(34,197,94,.12); color: #4ade80; }
.sp-top__status.off { background: rgba(100,116,139,.12); color: var(--cs-muted); }

.sp-top__meta {
    display: flex;
    gap: 1rem;
    font-size: .76rem;
    color: var(--cs-muted);
    flex-shrink: 0;
}
.sp-top__meta span { display: flex; align-items: center; gap: .3rem; }

/* ── Tab bar ── */
.sp-tabs {
    display: flex;
    gap: .25rem;
    background: var(--surface-0);
    border: 1px solid var(--border);
    border-radius: var(--cs-radius);
    padding: .35rem;
}

.sp-tab {
    display: flex;
    align-items: center;
    gap: .45rem;
    padding: .5rem 1rem;
    border-radius: 8px;
    font-size: .83rem;
    font-weight: 500;
    color: var(--text-secondary);
    background: transparent;
    border: none;
    cursor: pointer;
    transition: var(--t-fast);
    white-space: nowrap;
}
.sp-tab:hover { background: var(--surface-1); color: var(--text-primary); }
.sp-tab.active {
    background: rgba(45,212,191,.12);
    color: var(--cs-teal);
    font-weight: 600;
}

/* ── Form ── */
.sp-form {
    display: flex;
    flex-direction: column;
    gap: .85rem;
}

/* ── Tab panels ── */
.sp-panel { display: none; flex-direction: column; gap: .85rem; }
.sp-panel.active { display: flex; }

/* ── Cards ── */
.sp-card {
    background: var(--surface-0);
    border: 1px solid var(--border);
    border-radius: var(--cs-radius);
    padding: 1.15rem 1.25rem;
    display: flex;
    flex-direction: column;
    gap: .65rem;
}

.sp-card__title {
    font-size: .78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .07em;
    color: var(--cs-muted);
    padding-bottom: .5rem;
    border-bottom: 1px solid var(--border);
    margin-bottom: .1rem;
    display: flex;
    align-items: center;
    gap: .4rem;
}

/* 2-col grid for form fields inside General */
.sp-field-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .75rem;
}

/* 3-col channel grid */
.sp-ch-cols {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: .85rem;
}

/* empty placeholder text */
.sp-empty { font-size: .8rem; color: var(--cs-muted); padding: .2rem 0; margin: 0; }

/* ── Save bar ── */
.sp-save {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    background: var(--surface-0);
    border: 1px solid var(--border);
    border-radius: var(--cs-radius);
    padding: .8rem 1.15rem;
    position: sticky;
    bottom: 1rem;
    z-index: 20;
    backdrop-filter: blur(12px);
}
.sp-save__note {
    font-size: .79rem;
    color: var(--cs-muted);
    display: flex;
    align-items: center;
    gap: .4rem;
}

/* ══════════════════════════════════════════════════════════
   RESPONSIVE – guild list & settings
══════════════════════════════════════════════════════════ */
@media (max-width: 860px) {
    .sp-ch-cols { grid-template-columns: 1fr 1fr; }
    .sp-field-grid { grid-template-columns: 1fr; }
    .sp-top__meta { display: none; }
}
@media (max-width: 600px) {
    .guild-row__badges { display: none; }
    .guild-row__status { display: none; }
    .sp-ch-cols { grid-template-columns: 1fr; }
    .sp-wrap { padding: 1rem .75rem 2rem; }
    .sp-tabs { flex-wrap: wrap; }
    .sp-tab { font-size: .76rem; padding: .4rem .7rem; }
    .sp-top__status { display: none; }
}

/* ═══════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════ */
.cs-footer {
    margin-top: 4rem;
    border-top: 1px solid var(--border);
    padding: 2.5rem 1.5rem 2rem;
    background: var(--surface-1);
}
.cs-footer__inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
    text-align: center;
}
.cs-footer__brand {
    display: flex;
    align-items: center;
    gap: .6rem;
    font-size: .95rem;
    color: var(--text-muted);
}
.cs-footer__brand i { color: var(--accent); font-size: 1.1rem; }
.cs-footer__brand strong { color: var(--text); font-weight: 700; }
.cs-footer__brand span {
    font-size: .78rem;
    color: var(--text-muted);
    border-left: 1px solid var(--border);
    margin-left: .4rem;
    padding-left: .6rem;
}
.cs-footer__links {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem 1.5rem;
    justify-content: center;
}
.cs-footer__links a {
    font-size: .82rem;
    color: var(--text-muted);
    text-decoration: none;
    transition: color .2s;
}
.cs-footer__links a:hover { color: var(--accent); }
.cs-footer__copy {
    font-size: .75rem;
    color: var(--text-muted);
    opacity: .6;
}
.cs-footer__copy a { color: var(--accent); text-decoration: none; }

/* ═══════════════════════════════════════════════
   LEGAL PAGES (Terms / Privacy)
═══════════════════════════════════════════════ */
.page-wrapper--narrow {
    max-width: 820px;
    margin: 0 auto;
    padding: 2.5rem 1.5rem 4rem;
}
.legal-page {
    background: var(--surface-1);
    border: 1px solid var(--border);
    border-radius: 1.25rem;
    padding: 2.5rem 2.75rem;
}
.legal-page__title {
    font-family: 'Outfit', sans-serif;
    font-size: 2rem;
    font-weight: 800;
    margin: 0 0 .3rem;
    background: linear-gradient(135deg, var(--accent), var(--violet));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.legal-page__date {
    font-size: .8rem;
    color: var(--text-muted);
    margin: 0 0 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
}
.legal-section {
    margin-bottom: 1.75rem;
}
.legal-section h2 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 .6rem;
}
.legal-section p, .legal-section ul {
    font-size: .9rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin: 0 0 .5rem;
}
.legal-section ul {
    padding-left: 1.4rem;
}
.legal-section ul li { margin-bottom: .3rem; }
.legal-section a { color: var(--accent); text-decoration: none; }
.legal-section a:hover { text-decoration: underline; }
.legal-section code {
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: .35rem;
    padding: .1em .45em;
    font-size: .82rem;
    font-family: 'JetBrains Mono', monospace;
    color: var(--accent);
}
.legal-back {
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}
@media (max-width: 640px) {
    .legal-page { padding: 1.5rem 1.2rem; }
    .legal-page__title { font-size: 1.5rem; }
    .cs-footer__brand span { display: none; }
}

/* ═══════════════════════════════════════════════
   OWNER SERVER LIST
═══════════════════════════════════════════════ */
.ow-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
}
.ow-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.6rem;
    font-weight: 800;
    margin: 0 0 .25rem;
}
.ow-title i { color: var(--accent); margin-right: .4rem; }
.ow-sub { font-size: .85rem; color: var(--text-muted); margin: 0; }
.ow-stats { display: flex; gap: 1rem; }
.ow-stat {
    background: var(--surface-1);
    border: 1px solid var(--border);
    border-radius: .8rem;
    padding: .75rem 1.25rem;
    text-align: center;
    min-width: 90px;
}
.ow-stat span { display: block; font-size: 1.4rem; font-weight: 800; color: var(--accent); }
.ow-stat label { font-size: .72rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: .04em; }
.srv-name-cell { display: flex; align-items: center; gap: .75rem; }
.srv-icon {
    width: 40px; height: 40px;
    border-radius: .6rem;
    object-fit: cover;
    flex-shrink: 0;
    transition: transform .2s ease, box-shadow .2s ease;
}
.srv-icon:hover { transform: scale(1.12); box-shadow: 0 4px 16px rgba(45,212,191,.3); }
.srv-icon--animated {
    outline: 2px solid rgba(45,212,191,.45);
    outline-offset: 1px;
}
.srv-icon--fb {
    background: var(--surface-2);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: .9rem;
    color: var(--accent);
}

/* Invite Button */
.ow-inv-btn {
    font-size: .75rem !important;
    padding: .3rem .65rem !important;
    white-space: nowrap;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: inline-flex;
    align-items: center;
    gap: .35rem;
}
.ow-table th:last-child,
.ow-table td:last-child { white-space: nowrap; }
.srv-name { font-size: .85rem; font-weight: 600; color: var(--text); }
.srv-id { font-size: .72rem; color: var(--text-muted); font-family: 'JetBrains Mono', monospace; }
.srv-code {
    font-family: 'JetBrains Mono', monospace;
    font-size: .75rem;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: .35rem;
    padding: .15em .45em;
    color: var(--text-muted);
}

/* ── Status page ── */
.status-row {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .65rem .5rem;
    border-bottom: 1px solid var(--border);
    font-size: .9rem;
    font-weight: 500;
    color: var(--text-secondary);
}
.status-row:last-child { border-bottom: none; }

/* ══════════════════════════════════════════════════════════
   BLACKLIST MANAGER
══════════════════════════════════════════════════════════ */

/* ── Censored / pixelation effect ── */
.censored {
    display: inline-block;
    filter: blur(5px);
    cursor: pointer;
    transition: filter .25s ease, opacity .25s ease;
    user-select: none;
    border-radius: 3px;
    opacity: .85;
}
.censored:hover {
    filter: blur(2px);
    opacity: 1;
}
.censored.revealed {
    filter: blur(0);
    opacity: 1;
    user-select: text;
}

/* ── Word chips grid ── */
.bl-chip-grid {
    display: flex;
    flex-wrap: wrap;
    gap: .45rem;
    padding: .85rem 0;
    min-height: 48px;
}

.bl-chip {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
    padding: .28rem .6rem .28rem .65rem;
    font-size: .8rem;
    font-family: 'JetBrains Mono', monospace;
    color: var(--text-secondary);
    transition: border-color .15s, background .15s;
}
.bl-chip:hover { border-color: var(--border-strong); background: var(--surface-1); }

.bl-chip__text {
    max-width: 160px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.bl-chip__del {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0 .1rem;
    font-size: .7rem;
    line-height: 1;
    border-radius: 3px;
    transition: color .15s, background .15s;
    display: flex;
    align-items: center;
}
.bl-chip__del:hover { color: var(--danger); background: rgba(239,68,68,.12); }

/* ── Add-word form ── */
.bl-add-form {
    display: flex;
    gap: .6rem;
    align-items: center;
    padding-top: .85rem;
    border-top: 1px solid var(--border);
    margin-top: .5rem;
}
.bl-add-form .form-input { flex: 1; font-family: 'JetBrains Mono', monospace; }

/* ── Reveal-all row ── */
.bl-reveal-all-row {
    display: flex;
    gap: .5rem;
    padding-top: .6rem;
    border-top: 1px solid var(--border);
    margin-top: .25rem;
}

/* ── Empty state ── */
.bl-empty {
    font-size: .82rem;
    color: var(--text-muted);
    font-style: italic;
    padding: .4rem 0;
}

/* ══════════════════════════════════════════════════════════
   FAQ PAGE
══════════════════════════════════════════════════════════ */

/* ── Hero ── */
/* ═══════════════════════════════════════════════════════════════
   FAQ PAGE
   ═══════════════════════════════════════════════════════════════ */

/* ── Hero ── */
.faq-hero {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: .75rem 0 .5rem;
}
.faq-hero__badge {
    width: 64px;
    height: 64px;
    border-radius: 20px;
    background: var(--brand-gradient);
    display: grid;
    place-items: center;
    font-size: 1.6rem;
    color: #fff;
    flex-shrink: 0;
    box-shadow: 0 8px 32px rgba(45,212,191,.3);
}
.faq-hero__title {
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 800;
    background: var(--brand-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0 0 .25rem;
    line-height: 1.2;
}
.faq-hero__sub {
    font-size: .95rem;
    color: var(--text-muted);
    margin: 0;
}

/* ── Accordion list ── */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: .75rem;
}

/* ── Single item ── */
.faq-item {
    background: var(--surface-1);
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
    transition: border-color .25s, box-shadow .25s, transform .15s;
    position: relative;
}
.faq-item::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 3px;
    background: var(--brand-gradient);
    opacity: 0;
    transition: opacity .25s;
}
.faq-item:has(.faq-q[aria-expanded="true"]) {
    border-color: rgba(45,212,191,.3);
    box-shadow: 0 6px 28px rgba(45,212,191,.09);
}
.faq-item:has(.faq-q[aria-expanded="true"])::before {
    opacity: 1;
}

/* ── Question button ── */
.faq-q {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.2rem 1.4rem;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    color: var(--text-primary);
    font-size: .975rem;
    font-weight: 600;
    line-height: 1.45;
    transition: background .15s;
}
.faq-q:hover {
    background: rgba(255,255,255,.025);
}
.faq-q[aria-expanded="true"] {
    background: rgba(45,212,191,.05);
    color: #fff;
}

.faq-q__num {
    font-family: 'JetBrains Mono', monospace;
    font-size: .7rem;
    font-weight: 700;
    color: var(--cs-teal);
    background: rgba(45,212,191,.12);
    border-radius: 8px;
    padding: .25em .55em;
    flex-shrink: 0;
    letter-spacing: .06em;
    line-height: 1.8;
    transition: background .2s, color .2s;
}
.faq-q[aria-expanded="true"] .faq-q__num {
    background: rgba(45,212,191,.22);
}

.faq-q__text {
    flex: 1;
}

.faq-q__icon {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: rgba(255,255,255,.06);
    display: grid;
    place-items: center;
    flex-shrink: 0;
    font-size: .75rem;
    color: var(--text-muted);
    transition: transform .28s cubic-bezier(.4,0,.2,1), background .2s, color .2s;
}
.faq-q[aria-expanded="true"] .faq-q__icon {
    transform: rotate(180deg);
    background: rgba(45,212,191,.18);
    color: var(--cs-teal);
}

/* ── Answer body ── */
.faq-body {
    overflow: hidden;
    max-height: 0;
    transition: max-height .25s cubic-bezier(.4,0,.2,1);
}

.faq-a {
    padding: 1rem 1.4rem 1.25rem 3.5rem;
    font-size: .9rem;
    line-height: 1.75;
    color: var(--text-secondary);
    border-top: 1px solid rgba(255,255,255,.06);
    margin: 0;
}

/* ── CTA box ── */
.faq-cta {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    background: linear-gradient(135deg, rgba(88,101,242,.1), rgba(45,212,191,.08));
    border: 1px solid rgba(88,101,242,.25);
    border-radius: 16px;
    padding: 1.5rem 1.75rem;
}
.faq-cta__icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: rgba(88,101,242,.2);
    display: grid;
    place-items: center;
    font-size: 1.4rem;
    color: #7289da;
    flex-shrink: 0;
}
.faq-cta__body { flex: 1; }
.faq-cta__title {
    font-weight: 700;
    font-size: 1rem;
    color: var(--text-primary);
    margin-bottom: .2rem;
}
.faq-cta__desc {
    font-size: .85rem;
    color: var(--text-muted);
}
.faq-cta__btn { white-space: nowrap; flex-shrink: 0; }

@media (max-width: 600px) {
    .faq-hero { gap: 1rem; }
    .faq-hero__badge { width: 52px; height: 52px; font-size: 1.3rem; border-radius: 16px; }
    .faq-q { padding: 1rem 1.1rem; gap: .75rem; }
    .faq-a { padding-left: 1.1rem; }
    .faq-cta { flex-direction: column; align-items: flex-start; gap: 1rem; }
    .faq-cta__btn { width: 100%; justify-content: center; }
}
