:root {
    --bg-darkest: #0f1014;
    --bg-dark: #1a1c22;
    --bg-mid: #232631;
    --bg-light: #2d3140;
    --border: #2a2d38;
    --border-bright: #3a3d4a;

    --text-primary: #f2f3f5;
    --text-muted: #b5bac1;
    --text-dim: #80848e;

    --accent: #5865f2;
    --accent-hover: #4752c4;
    --accent-glow: rgba(88, 101, 242, 0.4);

    --green: #23a55a;
    --amber: #e5a55a;
    --red: #f04747;

    --radius: 12px;
    --radius-sm: 8px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
    background: var(--bg-darkest);
    color: var(--text-primary);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
    min-height: 100vh;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

body {
    background:
        radial-gradient(circle at 20% 0%, rgba(88, 101, 242, 0.18) 0%, transparent 50%),
        radial-gradient(circle at 80% 100%, rgba(35, 165, 90, 0.10) 0%, transparent 50%),
        var(--bg-darkest);
}

a { color: inherit; text-decoration: none; }

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 32px 24px 64px;
}

/* ---------- Nav ---------- */
nav.topnav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0 48px;
    flex-wrap: wrap;
    gap: 16px;
}
nav.topnav .logo {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.01em;
    background: linear-gradient(135deg, #fff 0%, var(--text-muted) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-flex;
    align-items: center;
}
nav.topnav .logo img {
    height: 50px;
    width: auto;
    display: block;
}
@media (max-width: 600px) { nav.topnav .logo img { height: 40px; } }
nav.topnav .links {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}
nav.topnav .links a {
    color: var(--text-muted);
    font-weight: 500;
    font-size: 15px;
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    transition: color 0.15s, background 0.15s;
}
nav.topnav .links a:hover {
    color: var(--text-primary);
    background: var(--bg-mid);
}
nav.topnav .links a.active {
    color: var(--text-primary);
    background: var(--bg-mid);
}

/* ---------- Language toggle ---------- */
.lang-toggle {
    display: inline-flex;
    align-items: center;
    background: var(--bg-mid);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 3px;
    cursor: pointer;
    position: relative;
    font-family: inherit;
    margin-left: 4px;
    height: 34px;
}
.lang-toggle .lang-opt {
    padding: 0 12px;
    line-height: 26px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    position: relative;
    z-index: 2;
    transition: color 0.2s;
    user-select: none;
}
.lang-toggle .lang-slider {
    position: absolute;
    top: 3px;
    left: 3px;
    width: calc(50% - 3px);
    height: calc(100% - 6px);
    background: var(--accent);
    border-radius: 999px;
    transition: transform 0.2s ease;
    z-index: 1;
    box-shadow: 0 2px 8px var(--accent-glow);
}
.lang-toggle[data-lang="en"] .lang-slider {
    transform: translateX(100%);
}
.lang-toggle[data-lang="no"] .lang-opt[data-opt="no"],
.lang-toggle[data-lang="en"] .lang-opt[data-opt="en"] {
    color: #fff;
}
.lang-toggle:hover {
    border-color: var(--border-bright);
}

/* ---------- Hero ---------- */
.hero {
    text-align: center;
    padding: 16px 0 40px;
}
.hero h1 {
    font-size: clamp(36px, 6.5vw, 64px);
    font-weight: 800;
    line-height: 1.05;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, #fff 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero .tagline {
    font-size: clamp(17px, 2vw, 20px);
    color: var(--text-muted);
    max-width: 640px;
    margin: 0 auto;
    padding: 0 16px;
}

/* ---------- Hero banner (bilde) ---------- */
.hero-banner {
    display: block;
    width: 100%;
    margin: 0 auto 28px;
    border-radius: var(--radius);
    overflow: hidden;
    position: relative;
    max-width: 1200px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.4);
}
.hero-banner::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 30%;
    background: linear-gradient(to bottom, transparent 0%, var(--bg-darkest) 100%);
    pointer-events: none;
}
.hero-banner img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
}
@media (max-width: 767px) {
    .hero-banner {
        border-radius: var(--radius-sm);
        margin-bottom: 24px;
    }
    .hero-banner::after { height: 22%; }
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 24px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 15px;
    transition: all 0.15s;
    border: none;
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
}
.btn-primary {
    background: var(--accent);
    color: white;
    box-shadow: 0 4px 16px var(--accent-glow);
}
.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
    box-shadow: 0 6px 22px var(--accent-glow);
}
.btn-secondary {
    background: var(--bg-light);
    color: var(--text-primary);
}
.btn-secondary:hover {
    background: var(--border-bright);
    transform: translateY(-1px);
}
.btn-ghost {
    background: transparent;
    color: var(--text-muted);
    border: 1px solid var(--border-bright);
}
.btn-ghost:hover {
    color: var(--text-primary);
    border-color: var(--accent);
}
.btn-disabled {
    background: var(--bg-mid);
    color: var(--text-dim);
    cursor: not-allowed;
}
.btn-disabled:hover { transform: none; }

.cta {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ---------- Status badges ---------- */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.badge.live { background: rgba(35, 165, 90, 0.15); color: var(--green); }
.badge.beta { background: rgba(229, 165, 90, 0.15); color: var(--amber); }
.badge.soon { background: rgba(128, 132, 142, 0.18); color: var(--text-muted); }
.badge .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}

/* ---------- Product grid (hub) ---------- */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin: 24px 0 60px;
}
.product-card {
    background: linear-gradient(180deg, var(--bg-dark) 0%, var(--bg-mid) 100%);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
    position: relative;
    overflow: hidden;
}
.product-card:hover {
    transform: translateY(-3px);
    border-color: var(--accent);
    box-shadow: 0 12px 32px rgba(0,0,0,0.3);
}
.product-card .top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}
.product-card .icon {
    font-size: 36px;
    line-height: 1;
}
.product-card h3 {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.01em;
}
.product-card p {
    color: var(--text-muted);
    font-size: 14.5px;
    flex-grow: 1;
}
.product-card .actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.product-card .meta {
    color: var(--text-dim);
    font-size: 12.5px;
    border-top: 1px solid var(--border);
    padding-top: 12px;
}

/* ---------- Sections ---------- */
.section-title {
    font-size: clamp(24px, 3vw, 32px);
    font-weight: 700;
    text-align: center;
    margin: 48px 0 8px;
    letter-spacing: -0.01em;
}
.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: 16px;
    margin-bottom: 36px;
}

/* ---------- Feature list (product pages) ---------- */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
    margin: 24px 0 48px;
}
.feature {
    background: var(--bg-dark);
    padding: 22px 20px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
}
.feature .icon {
    font-size: 24px;
    margin-bottom: 8px;
}
.feature h4 {
    font-size: 16px;
    margin-bottom: 6px;
    font-weight: 600;
}
.feature p {
    color: var(--text-muted);
    font-size: 14px;
}

/* ---------- Stats row ---------- */
.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
    margin: 24px 0 48px;
}
.stat {
    background: var(--bg-dark);
    border: 1px solid var(--border);
    padding: 18px 12px;
    border-radius: var(--radius-sm);
    text-align: center;
}
.stat-value {
    font-size: 24px;
    font-weight: 800;
    color: var(--accent);
    margin-bottom: 2px;
}
.stat-label {
    color: var(--text-muted);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ---------- Product page hero ---------- */
.product-hero {
    text-align: center;
    padding: 32px 0 48px;
}
.product-hero .product-icon {
    font-size: 64px;
    margin-bottom: 12px;
}
.product-hero h1 {
    font-size: clamp(32px, 5vw, 52px);
    font-weight: 800;
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}
.product-hero .tagline {
    font-size: 18px;
    color: var(--text-muted);
    max-width: 560px;
    margin: 0 auto 24px;
}
.product-hero .meta-pill {
    display: inline-block;
    background: var(--bg-light);
    color: var(--text-muted);
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 16px;
}

/* ---------- Footer ---------- */
footer {
    text-align: center;
    padding: 48px 24px 24px;
    color: var(--text-dim);
    font-size: 14px;
    border-top: 1px solid var(--border);
    margin-top: 48px;
}
footer .footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 18px;
    margin-bottom: 14px;
}
footer .footer-links a {
    color: var(--text-muted);
}
footer .footer-links a:hover { color: var(--text-primary); }
footer .copyright { margin-top: 6px; font-size: 12px; color: var(--text-dim); opacity: 0.7; }

@media (max-width: 600px) {
    .container { padding: 20px 18px 48px; }
    nav.topnav { padding-bottom: 28px; }
    .hero { padding: 24px 0 36px; }
}

/* ---------- Login (knapp i topnav) ---------- */
.btn-login {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: var(--accent);
    color: #fff;
    font-family: inherit;
    font-weight: 600;
    font-size: 14px;
    padding: 8px 16px;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: background 0.15s, transform 0.15s, box-shadow 0.15s;
    box-shadow: 0 2px 10px var(--accent-glow);
    margin-left: 4px;
    height: 34px;
}
.btn-login:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px var(--accent-glow);
}
.btn-login.is-member {
    background: var(--bg-mid);
    color: var(--text-primary);
    box-shadow: none;
    border: 1px solid var(--border-bright);
}
.btn-login.is-member:hover { border-color: var(--accent); background: var(--bg-light); }

/* ---------- Profil-badge (innlogget) — FELLES MAL for alle Luna-apper ----------
   Avatar + navn + tier i topnav. Klikk åpner dropdown-meny (Min side, logg ut, …).
   Bygges av auth.js (renderProfileBadge). Hold denne i synk på tvers av appene. */
.luna-profile-wrap { position: relative; margin-left: 4px; display: inline-flex; align-items: center; gap: 2px; }
/* Signalhub-bjelle i badgen (signalhub-bell.js). Panel/toast henger på <body>, så
   --lsb-* må ligge på :root for å nå dem. Mapper til Lunas egne tokens. */
.luna-bell-slot { display: inline-flex; align-items: center; }
:root {
    --lsb-surface: var(--bg-panel, #161922);
    --lsb-panel-bg: var(--bg-panel, #161922);
    --lsb-border: var(--border);
    --lsb-text: var(--text-primary);
    --lsb-text-soft: var(--text-dim);
    --lsb-accent: var(--accent);
    --lsb-accent-soft: rgba(110, 168, 254, .16);
    --lsb-badge: var(--red, #e5484d);
}
.luna-profile {
    display: inline-flex; align-items: center; gap: 9px;
    background: var(--bg-mid); border: 1px solid var(--border-bright);
    border-radius: 999px; padding: 4px 10px 4px 4px; cursor: pointer;
    font-family: inherit; transition: border-color .15s, background .15s;
}
.luna-profile:hover { border-color: var(--accent); background: var(--bg-light); }
.lp-ava {
    width: 32px; height: 32px; border-radius: 50%; flex-shrink: 0; overflow: hidden;
    display: flex; align-items: center; justify-content: center;
    background: var(--accent); color: #fff; font-size: 14px; font-weight: 700;
}
.lp-ava img { width: 100%; height: 100%; object-fit: cover; }
/* Default-avatar: tier-tintet gråtone-måne + initial (auth.js moonAvatarHTML).
   Vises der bruker ikke har eget bilde. Fyller enhver avatar-sirkel (100%). */
.luna-moon { position: relative; width: 100%; height: 100%; border-radius: inherit; overflow: hidden;
    display: flex; align-items: center; justify-content: center;
    background: #c4c8cf url(/assets/default-moon.png?v=1) center/cover no-repeat; }
.luna-moon::before { content: ""; position: absolute; inset: 0; mix-blend-mode: color; }
.luna-moon.tier-pluss::before { background: #e23b40; }   /* rød — blood moon (pluss) */
.luna-moon.tier-admin::before { background: #3b82f6; }   /* blå — blue moon (admin) */
.luna-moon.tier-super::before { background: #a855f7; }   /* lilla — superadmin (foreløpig) */
/* tier-medlem = ingen tint (nøytral grå måne) */
.luna-moon-i { position: relative; z-index: 2; color: #fff; font-weight: 800; line-height: 1;
    text-shadow: 0 1px 4px rgba(0,0,0,.65); }
.lp-meta { display: flex; flex-direction: column; line-height: 1.15; text-align: left; }
.lp-name { font-size: 14px; font-weight: 600; color: var(--text-primary); }
.lp-tier { font-size: 11px; color: var(--text-dim); font-weight: 700; }
/* Tier-farget tittel (matcher avatar-månene): medlem=grå, pluss=rød, admin=blå, super=lilla. */
.lp-tier.tier-pluss { color: #ef5a5f; }
.lp-tier.tier-admin { color: #5a9bff; }
.lp-tier.tier-super { color: #b87cff; }
.lp-caret { color: var(--text-dim); font-size: 10px; margin-left: 2px; transition: transform .15s; }
.luna-profile-wrap.open .lp-caret { transform: rotate(180deg); }
.luna-profile-menu {
    position: absolute; right: 0; top: calc(100% + 8px); min-width: 210px; z-index: 50;
    background: var(--bg-dark); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 6px; box-shadow: 0 8px 28px rgba(0,0,0,.45);
}
.luna-profile-menu[hidden] { display: none; }
.luna-profile-head { display: flex; align-items: center; gap: 10px; padding: 8px 10px 10px; border-bottom: 1px solid var(--border); margin-bottom: 6px; }
.luna-profile-head .lp-ava { width: 38px; height: 38px; font-size: 16px; }
.lpm-item {
    display: flex; align-items: center; gap: 10px; width: 100%; text-align: left;
    background: none; border: none; color: var(--text-primary); font-family: inherit;
    font-size: 14px; font-weight: 500; padding: 9px 10px; border-radius: var(--radius-sm);
    cursor: pointer; text-decoration: none;
}
.lpm-item:hover { background: var(--bg-mid); }
.lpm-item.danger { color: var(--red); }
.lpm-sep { height: 1px; background: var(--border); margin: 6px 4px; }
.lpm-ic { width: 18px; text-align: center; flex-shrink: 0; }

/* ---------- Stream-chat-widget (.lcw-) — FELLES MAL (chat-client.js) ---------- */
.lcw { display: flex; flex-direction: column; min-height: 0; flex: 1; position: relative; }
.lcw-msgs { flex: 1; overflow-y: auto; padding: 12px 14px; display: flex; flex-direction: column; gap: 7px; }
.lcw-empty { color: var(--text-dim); font-size: 13px; text-align: center; padding: 20px 8px; }
.lcw-msg { font-size: 14px; line-height: 1.4; word-break: break-word; }
.lcw-msg.deleted { opacity: .4; text-decoration: line-through; }
.lcw-name { color: var(--accent); font-weight: 600; cursor: pointer; }
.lcw-name:hover { text-decoration: underline; }
.lcw-text { color: var(--text-primary); }
.lcw-mod { display: none; gap: 4px; margin-left: 6px; }
.lcw-msg:hover .lcw-mod { display: inline-flex; }
.lcw-mod button { background: none; border: none; cursor: pointer; font-size: 12px; padding: 0 2px; color: var(--text-dim); }
.lcw-mod button:hover { color: var(--red); }
/* Rapportér-popover: liten dialog sentrert over widgeten (lunareports). */
.lcw-report { position: absolute; left: 50%; bottom: 64px; transform: translateX(-50%);
    width: min(280px, 90%); background: var(--bg-darkest, #15171e); border: 1px solid var(--border);
    border-radius: var(--radius-sm); box-shadow: 0 10px 30px rgba(0,0,0,.5); z-index: 40; padding: 12px; }
.lcw-report-hd { font-size: 13px; font-weight: 700; color: var(--text-primary); margin-bottom: 8px; }
.lcw-report-cats { display: flex; flex-wrap: wrap; gap: 6px; }
.lcw-report-cats button { background: var(--bg-mid); color: var(--text-muted); border: 1px solid var(--border);
    border-radius: 999px; padding: 4px 9px; font-size: 12px; cursor: pointer; }
.lcw-report-cats button:hover { color: var(--text-primary); border-color: var(--accent); }
.lcw-report-cats button:disabled { opacity: .5; cursor: default; }
.lcw-report-note { width: 100%; box-sizing: border-box; margin-top: 9px; background: var(--bg-mid);
    color: var(--text-primary); border: 1px solid var(--border); border-radius: var(--radius-sm);
    padding: 6px 8px; font-size: 13px; }
.lcw-report-ft { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 9px; }
.lcw-report-x { background: none; border: none; color: var(--text-dim); cursor: pointer; font-size: 12px; padding: 2px 4px; }
.lcw-report-x:hover { color: var(--text-primary); }
.lcw-report-status { font-size: 12px; color: var(--text-muted); }
/* Tier-badge ved navnet (kun super/admin/pluss; vanlig medlem = ingen badge). */
.lcw-badge { display: inline-block; font-size: 9px; font-weight: 800; letter-spacing: .03em;
    text-transform: uppercase; padding: 1px 5px; border-radius: 4px; vertical-align: 1px;
    border: 1px solid currentColor; opacity: .9; }
.lcw-badge.tier-pluss { color: #ef5a5f; }
.lcw-badge.tier-admin { color: #5a9bff; }
.lcw-badge.tier-super { color: #b87cff; }
/* @mentions: highlight i teksten + markert melding når DU blir nevnt. */
.lcw-mention { color: var(--accent); font-weight: 600; }
.lcw-mention.me { background: rgba(110,168,254,.18); border-radius: 4px; padding: 0 3px; }
.lcw-msg.mention-me { border-left: 2px solid var(--accent); padding-left: 8px;
    background: rgba(110,168,254,.06); border-radius: 4px; }
@keyframes lcw-flash { from { background: rgba(110,168,254,.32); } to { background: rgba(110,168,254,.06); } }
.lcw-msg.flash { animation: lcw-flash 1.1s ease-out; }
/* Whisper (/w) — privat 1:1, lilla aksent, kursiv. */
.lcw-whisper { background: rgba(168,85,247,.10); border-left: 2px solid #a855f7; padding-left: 8px; border-radius: 4px; }
.lcw-wlabel { color: #b87cff; font-weight: 600; font-style: italic; }
.lcw-whisper .lcw-text { font-style: italic; color: var(--text-dim); }
/* Chat-moduser: indikator (alle) + mod-kontroller (kun eier/admin). */
.lcw-modes { padding: 5px 12px; font-size: 11px; font-weight: 600; color: var(--accent);
    border-top: 1px solid var(--border); background: rgba(110,168,254,.05); }
.lcw-modbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap;
    padding: 7px 12px; border-top: 1px solid var(--border); font-size: 12px; color: var(--text-dim); }
.lcw-modbar label { display: inline-flex; align-items: center; gap: 4px; }
.lcw-modbar .lcw-slow, .lcw-modbar .lcw-gate, .lcw-modbar .lcw-amact { background: var(--bg-darkest, #15171e);
    color: var(--text-primary); border: 1px solid var(--border); border-radius: 4px; padding: 3px 5px; font-size: 12px; }
.lcw-modbar .lcw-slow { width: 52px; }
.lcw-modbar .lcw-words { background: none; border: 1px solid var(--border); border-radius: 4px;
    color: var(--text-dim); cursor: pointer; padding: 3px 8px; font-size: 12px; }
.lcw-modbar .lcw-words:hover { color: var(--text-primary); border-color: var(--accent); }
.lcw-hint { padding: 8px 14px; font-size: 12px; color: var(--text-dim); border-top: 1px solid var(--border); }
.lcw-form { display: flex; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--border); position: relative; }
/* @-autocomplete: popup over input-feltet. */
.lcw-ac { position: absolute; left: 12px; right: 12px; bottom: calc(100% + 4px);
    background: var(--bg-darkest, #15171e); border: 1px solid var(--border);
    border-radius: var(--radius-sm); overflow: hidden; box-shadow: 0 8px 24px rgba(0,0,0,.4); z-index: 30; }
.lcw-ac-item { display: flex; align-items: center; gap: 7px; padding: 7px 10px; cursor: pointer; font-size: 13px; }
.lcw-ac-item.active { background: rgba(110,168,254,.14); }
.lcw-ac-name { color: var(--text-primary); }

/* ---------- Venner-fane (.vf-) i medlem.html ---------- */
.vf-add { display: flex; gap: 8px; margin: 14px 0 4px; max-width: 460px; }
.vf-add input { flex: 1; min-width: 0; background: var(--bg-darkest, #15171e); color: var(--text-primary);
    border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 9px 11px; font-size: 14px; }
.vf-msg { font-size: 13px; margin: 8px 0 0; }
.vf-msg.ok { color: var(--accent); }
.vf-msg.err { color: var(--red, #e5484d); }
.vf-h { font-size: 15px; margin: 22px 0 8px; color: var(--text-primary); }
.vf-h-sub { font-size: 13px; color: var(--text-dim); font-weight: 600; margin-top: 18px; }
.vf-list { display: flex; flex-direction: column; gap: 6px; }
.vf-empty { color: var(--text-dim); font-size: 13px; padding: 6px 0; }
.vf-row { display: flex; align-items: center; gap: 10px; padding: 8px 10px;
    background: var(--bg-panel, #161922); border: 1px solid var(--border); border-radius: 10px; }
.vf-ava { position: relative; width: 32px; height: 32px; flex: none; }
.vf-ava img, .vf-ava .vf-ava-i { width: 32px; height: 32px; border-radius: 50%; object-fit: cover;
    display: flex; align-items: center; justify-content: center; }
.vf-ava .vf-ava-i { background: var(--bg-light, #222633); color: var(--text-primary); font-weight: 700; font-size: 14px; }
.vf-dot { position: absolute; right: -1px; bottom: -1px; width: 11px; height: 11px; border-radius: 50%;
    border: 2px solid var(--bg-panel, #161922); background: #6b7280; }
.vf-dot[data-status="online"] { background: #3ba55d; }
.vf-dot[data-status="away"] { background: #faa61a; }
.vf-dot[data-status="busy"] { background: #ed4245; }
.vf-name { font-weight: 600; color: var(--text-primary); }
.vf-meta { color: var(--text-dim); font-size: 12px; }
.vf-spacer { flex: 1; }
.vf-act { padding: 5px 12px; font-size: 13px; }
.lcw-form input { flex: 1; min-width: 0; background: var(--bg-darkest, #15171e); color: var(--text-primary); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 9px 11px; font-size: 14px; }

/* ---------- Webcam-PIP (.webcam-pip) — FELLES MAL (webcam-pip.js) ----------
   Liten webcam-rute oppå hovedbildet. Plasseres i hjørne via .wc-tl/tr/bl/br,
   størrelse via .wc-small/large (medium = default). Ankret i et position:relative-wrap. */
.webcam-pip {
    position: absolute; width: 27%; height: auto; aspect-ratio: 16 / 9; object-fit: cover;
    border-radius: 10px; border: 2px solid rgba(255, 255, 255, 0.85);
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.45); background: #000; z-index: 6;
    top: auto; bottom: 14px; right: 14px; left: auto;
}
.webcam-pip.wc-small { width: 20%; }
.webcam-pip.wc-large { width: 35%; }
.webcam-pip.wc-tl { top: 14px; left: 14px; bottom: auto; right: auto; }
.webcam-pip.wc-tr { top: 14px; right: 14px; bottom: auto; left: auto; }
.webcam-pip.wc-bl { bottom: 14px; left: 14px; top: auto; right: auto; }
.webcam-pip.wc-br { bottom: 14px; right: 14px; top: auto; left: auto; }

/* ---------- Login-modal ---------- */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 1000;
    animation: luna-fade 0.15s ease;
}
.modal-overlay.open { display: flex; }
@keyframes luna-fade { from { opacity: 0; } to { opacity: 1; } }

.modal-card {
    background: var(--bg-dark);
    border: 1px solid var(--border-bright);
    border-radius: var(--radius);
    padding: 28px;
    width: 100%;
    max-width: 380px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: luna-pop 0.18s ease;
}
@keyframes luna-pop { from { transform: translateY(8px) scale(0.98); opacity: 0; } to { transform: none; opacity: 1; } }

.modal-card h2 {
    font-size: 20px;
    font-weight: 800;
    margin: 0 0 4px;
    letter-spacing: -0.01em;
}
.modal-card .sub {
    color: var(--text-muted);
    font-size: 14px;
    margin: 0 0 20px;
}
.modal-card label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    margin: 0 0 6px;
}
.modal-card .field { margin-bottom: 16px; }
.modal-card input {
    width: 100%;
    box-sizing: border-box;
    background: var(--bg-darkest);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 15px;
    padding: 11px 13px;
    transition: border-color 0.15s;
}
.modal-card input:focus {
    outline: none;
    border-color: var(--accent);
}
.modal-card .btn-primary { width: 100%; margin-top: 4px; }
.modal-card .btn-primary[disabled] { opacity: 0.6; cursor: progress; }

.modal-error {
    background: rgba(240, 71, 71, 0.12);
    border: 1px solid var(--red);
    color: #ffb3b3;
    font-size: 13px;
    border-radius: var(--radius-sm);
    padding: 9px 12px;
    margin-bottom: 16px;
    display: none;
}
.modal-error.show { display: block; }

.modal-foot {
    margin-top: 18px;
    font-size: 13px;
    color: var(--text-dim);
    text-align: center;
}
.modal-foot a { color: var(--accent); cursor: pointer; }
.modal-close {
    float: right;
    background: none;
    border: none;
    color: var(--text-dim);
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    margin: -4px -4px 0 0;
}
.modal-close:hover { color: var(--text-primary); }

/* ---------- Medlemsside ---------- */
.member-hero {
    padding: 48px 0 24px;
}
.member-hero h1 {
    font-size: 30px;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin: 0 0 8px;
}
.member-hero p { color: var(--text-muted); font-size: 16px; margin: 0; }
.member-empty {
    background: var(--bg-dark);
    border: 1px dashed var(--border-bright);
    border-radius: var(--radius);
    padding: 48px 28px;
    text-align: center;
    color: var(--text-dim);
    margin-top: 24px;
}
.member-empty .icon { font-size: 40px; margin-bottom: 12px; }

/* ---------- Medlems-dashboard (sidemeny + innhold) ---------- */
.member-layout {
    display: flex;
    gap: 28px;
    align-items: flex-start;
    margin-top: 24px;
}
.member-sidebar {
    width: 220px;
    flex-shrink: 0;
    background: var(--bg-dark);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 14px;
    position: sticky;
    top: 20px;
}
.member-sidebar .nav-item {
    display: flex;
    align-items: center;
    gap: 11px;
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    color: var(--text-muted);
    text-decoration: none;
    font-family: inherit;
    font-size: 15px;
    font-weight: 500;
    padding: 11px 13px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}
.member-sidebar .nav-item .ic { font-size: 17px; width: 20px; text-align: center; }
.member-sidebar .nav-item:hover { background: var(--bg-mid); color: var(--text-primary); }
.member-sidebar .nav-item.active {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 2px 10px var(--accent-glow);
}
.member-sidebar .nav-sep { height: 1px; background: var(--border); margin: 12px 4px; }
.member-sidebar .nav-section { display: contents; }
.member-sidebar .nav-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-dim);
    padding: 4px 12px 6px;
}
.member-sidebar .nav-item.logout { color: var(--text-dim); }
.member-sidebar .nav-item.logout:hover { color: #ffb3b3; background: rgba(240, 71, 71, 0.12); }

.member-content { flex: 1; min-width: 0; }
.member-panel { display: none; }
.member-panel.active { display: block; animation: luna-fade 0.2s ease; }
.member-panel h1 {
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin: 0 0 6px;
}
.member-panel .lead { color: var(--text-muted); font-size: 15px; margin: 0 0 24px; }

/* Profil */
.profile-head {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 26px;
}
.profile-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    border: 1px solid var(--border-bright);
    object-fit: cover;
    flex-shrink: 0;
}
.profile-head .who h2 { margin: 0; font-size: 22px; font-weight: 700; }
.profile-head .who .email { color: var(--text-muted); font-size: 14px; margin-top: 3px; }
.profile-fields {
    display: grid;
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}
.profile-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 14px 18px;
    background: var(--bg-dark);
    font-size: 14px;
}
.profile-row .k { color: var(--text-dim); }
.profile-row .v { color: var(--text-primary); font-weight: 500; text-align: right; word-break: break-word; }
.badge-soft {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 999px;
    background: var(--bg-light);
    color: var(--text-muted);
    border: 1px solid var(--border-bright);
}

@media (max-width: 720px) {
    .member-layout { flex-direction: column; }
    .member-sidebar {
        width: 100%;
        box-sizing: border-box;
        position: static;
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
    }
    .member-sidebar .nav-item { width: auto; }
    .member-sidebar .nav-sep { display: none; }
    .member-sidebar .nav-label { display: none; }
}

/* ---------- Admin: medlemstabell ---------- */
.admin-table-wrap {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow-x: auto;
}
table.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}
table.admin-table th,
table.admin-table td {
    text-align: left;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}
table.admin-table thead th {
    color: var(--text-dim);
    font-weight: 600;
    font-size: 12px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    background: var(--bg-dark);
}
table.admin-table tbody tr:last-child td { border-bottom: none; }
table.admin-table tbody tr:hover { background: var(--bg-dark); }
table.admin-table td .uname { font-weight: 600; color: var(--text-primary); }
table.admin-table td .email { color: var(--text-muted); }

.grp {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    padding: 3px 11px;
    border-radius: 999px;
}
/* Super Admin (server-eier): fylt aksent så den leses som over vanlig Admin. */
.grp-superadmin { background: var(--accent); color: #fff; border: 1px solid var(--accent); }
.grp-admin { background: rgba(88, 101, 242, 0.18); color: #aab4ff; border: 1px solid var(--accent); }
.grp-pluss { background: rgba(229, 165, 90, 0.16); color: #f0c089; border: 1px solid var(--amber); }
.grp-medlem { background: var(--bg-light); color: var(--text-muted); border: 1px solid var(--border-bright); }

/* Tier-nedtrekk + reserve-admin-bryter side om side i medlemstabellen. */
.grp-controls { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.admin-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--text-muted);
    cursor: pointer;
    user-select: none;
}
.admin-toggle input { accent-color: var(--accent); cursor: pointer; margin: 0; }

select.tier-select {
    background: var(--bg-darkest);
    color: var(--text-primary);
    border: 1px solid var(--border-bright);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 13px;
    padding: 6px 10px;
    cursor: pointer;
}
select.tier-select:focus { outline: none; border-color: var(--accent); }
.admin-note { color: var(--text-dim); font-size: 13px; margin: 14px 2px 0; }

/* Tema-velger (medlem) — speiler LunaChat sin palett */
.theme-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 14px;
    margin: 8px 0 4px;
}
.theme-card {
    background: none;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 8px;
    cursor: pointer;
    text-align: center;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.theme-card:hover { border-color: var(--border-bright); }
.theme-card.active {
    border-color: var(--accent);
    box-shadow: 0 0 0 1px var(--accent), 0 4px 14px var(--accent-glow);
}
.theme-card-preview {
    position: relative;
    height: 84px;
    border-radius: calc(var(--radius) - 4px);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.theme-card-panel {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 15px;
}
.theme-card-dot { width: 14px; height: 14px; border-radius: 50%; display: inline-block; }
.theme-card-check {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
}
.theme-card.active .theme-card-check { display: flex; }
.theme-card-name { margin-top: 8px; font-size: 13px; font-weight: 600; color: var(--text-muted); }
.theme-card.active .theme-card-name { color: var(--text-primary); }

/* Send e-post (admin broadcast) */
.compose { display: flex; flex-direction: column; gap: 14px; }
.compose-field { display: flex; flex-direction: column; gap: 6px; }
.compose-field > span { font-size: 13px; font-weight: 600; color: var(--text-muted); }
.compose-field input,
.compose-field textarea {
    width: 100%;
    box-sizing: border-box;
    background: var(--bg-darkest);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 14px;
    padding: 10px 12px;
    resize: vertical;
}
.compose-field input:focus,
.compose-field textarea:focus { outline: none; border-color: var(--accent); }
.compose-foot { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.compose-result { font-size: 13px; }
.compose-result.ok { color: #5fd39a; }
.compose-result.err { color: var(--red); }

/* ---------- Admin: invite-koder ---------- */
.admin-card {
    background: var(--bg-dark);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px 22px;
    margin-bottom: 28px;
}

/* Tjenester-fane: health-bokser */
.svc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 18px;
}
.svc-card {
    position: relative;
    background: linear-gradient(160deg, var(--bg-mid), var(--bg-dark));
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px 22px;
    transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.svc-card:hover {
    border-color: var(--border-bright);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}
/* En tynn fargestripe i toppen som speiler status */
.svc-card::before {
    content: "";
    position: absolute; top: 0; left: 0; right: 0; height: 3px;
    border-radius: var(--radius) var(--radius) 0 0;
    background: var(--text-dim);
    transition: background .25s ease;
}
.svc-card.up::before { background: var(--green); }
.svc-card.down::before { background: var(--red); }
.svc-card.checking::before { background: var(--amber); }

.svc-card-top { display: flex; align-items: center; gap: 12px; }

/* Indikator-lys: kjerne + ytre glød-ring */
.svc-dot {
    position: relative;
    width: 13px; height: 13px; border-radius: 50%;
    background: var(--text-dim); flex: 0 0 auto;
}
.svc-dot::after {
    content: "";
    position: absolute; inset: -5px;
    border-radius: 50%;
    border: 2px solid transparent;
    transition: border-color .25s ease;
}
.svc-card.up .svc-dot {
    background: var(--green);
    box-shadow: 0 0 10px var(--green), 0 0 3px var(--green);
}
.svc-card.up .svc-dot::after { border-color: rgba(35, 165, 90, 0.35); }
.svc-card.down .svc-dot {
    background: var(--red);
    box-shadow: 0 0 10px var(--red), 0 0 3px var(--red);
}
.svc-card.down .svc-dot::after { border-color: rgba(240, 71, 71, 0.35); }
.svc-card.checking .svc-dot {
    background: var(--amber);
    animation: svc-pulse 1.1s ease-in-out infinite;
}
@keyframes svc-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(229, 165, 90, 0.5); opacity: 1; }
    50% { box-shadow: 0 0 0 7px rgba(229, 165, 90, 0); opacity: 0.6; }
}

.svc-name { font-size: 16px; font-weight: 700; color: var(--text-primary); flex: 1; }

/* Status-pille til høyre i toppen */
.svc-badge {
    font-size: 12px; font-weight: 700; letter-spacing: .02em;
    padding: 3px 10px; border-radius: 999px;
    background: var(--bg-light); color: var(--text-dim);
    white-space: nowrap;
}
.svc-card.up .svc-badge { background: rgba(35, 165, 90, 0.15); color: var(--green); }
.svc-card.down .svc-badge { background: rgba(240, 71, 71, 0.15); color: var(--red); }
.svc-card.checking .svc-badge { background: rgba(229, 165, 90, 0.15); color: var(--amber); }

.svc-desc { color: var(--text-muted); font-size: 13px; margin: 10px 0 14px; }
.svc-foot {
    display: flex; justify-content: space-between; align-items: baseline;
    border-top: 1px solid var(--border); padding-top: 12px;
}
.svc-host { color: var(--text-dim); font-size: 12px; word-break: break-all; }
.svc-latency {
    color: var(--text-muted); font-size: 13px; font-weight: 600;
    font-variant-numeric: tabular-nums; white-space: nowrap;
}

/* Forsides-reel: aktive live-sendinger */
.live-reel { margin-bottom: 8px; }
.reel-heading { display: flex; align-items: center; gap: 10px; }
.reel-live-dot {
    width: 10px; height: 10px; border-radius: 50%;
    background: var(--red); box-shadow: 0 0 8px var(--red);
    animation: reel-pulse 1.4s ease-in-out infinite;
}
@keyframes reel-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }
.reel-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 18px;
}
.reel-card {
    display: block; text-decoration: none; overflow: hidden;
    background: var(--bg-dark); border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.reel-card:hover {
    transform: translateY(-3px); border-color: var(--border-bright);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.4);
}
.reel-thumb {
    position: relative; aspect-ratio: 16 / 9;
    background: linear-gradient(135deg, var(--bg-mid), var(--bg-light));
    display: flex; align-items: center; justify-content: center;
}
.reel-thumb::after { content: "📡"; font-size: 30px; opacity: 0.5; }
.reel-badge {
    position: absolute; top: 10px; left: 10px;
    display: flex; align-items: center; gap: 6px;
    background: var(--red); color: #fff;
    font-size: 11px; font-weight: 800; letter-spacing: .05em;
    padding: 3px 8px; border-radius: 6px;
}
.reel-badge-dot {
    width: 7px; height: 7px; border-radius: 50%; background: #fff;
    animation: reel-pulse 1.4s ease-in-out infinite;
}
.reel-viewers {
    position: absolute; bottom: 10px; right: 10px;
    background: rgba(0, 0, 0, 0.65); color: #fff;
    font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 6px;
}
.reel-info { padding: 12px 14px; }
.reel-title {
    color: var(--text-primary); font-weight: 700; font-size: 15px;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.reel-streamer { color: var(--text-dim); font-size: 13px; margin-top: 4px; }

/* Viewer-side (live.html) */
.live-stage { max-width: 1100px; margin: 0 auto; }
.live-video-wrap {
    position: relative; width: 100%; aspect-ratio: 16 / 9;
    background: #000; border: 1px solid var(--border);
    border-radius: var(--radius); overflow: hidden;
    display: flex; align-items: center; justify-content: center;
}
.live-video { width: 100%; height: 100%; object-fit: contain; background: #000; display: block; }
.live-overlay {
    position: absolute; inset: 0; z-index: 2;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px;
    background: linear-gradient(160deg, var(--bg-mid), var(--bg-darkest));
    color: var(--text-muted); text-align: center; padding: 24px;
}
/* hidden-attributtet må vinne over display:flex over (ellers skjules aldri overlay) */
.live-overlay[hidden] { display: none; }
.live-overlay-text { font-size: 16px; font-weight: 600; color: var(--text-primary); }
.live-spinner {
    width: 36px; height: 36px; border-radius: 50%;
    border: 3px solid var(--border-bright); border-top-color: var(--accent);
    animation: live-spin 0.9s linear infinite;
}
@keyframes live-spin { to { transform: rotate(360deg); } }
.live-badge {
    position: absolute; top: 14px; left: 14px; z-index: 3;
}
.live-unmute {
    position: absolute; bottom: 14px; right: 14px; z-index: 3;
    background: rgba(0, 0, 0, 0.7); color: #fff; border: 1px solid var(--border-bright);
    border-radius: 8px; padding: 8px 14px; font-size: 14px; font-weight: 600; cursor: pointer;
}
.live-unmute:hover { background: rgba(0, 0, 0, 0.85); }
.live-meta { margin-top: 18px; }
.live-title { font-size: 22px; font-weight: 800; margin: 0 0 4px; color: var(--text-primary); }
.live-sub { color: var(--text-dim); font-size: 15px; }
.live-viewers-text { color: var(--text-dim); }
.live-debug {
    margin-top: 6px; font-size: 12px; color: var(--text-dim);
    font-family: ui-monospace, monospace; min-height: 14px;
}
.admin-card h2 { margin: 0 0 4px; font-size: 17px; font-weight: 700; }
.admin-card .hint { color: var(--text-muted); font-size: 13px; margin: 0 0 16px; }
.member-panel h2.section-h { font-size: 17px; font-weight: 700; margin: 0 0 14px; }

.invite-create { display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap; }
.invite-create label {
    font-size: 13px; color: var(--text-muted); font-weight: 600;
    display: flex; flex-direction: column; gap: 5px;
}
.invite-create input {
    width: 96px; box-sizing: border-box;
    background: var(--bg-darkest); border: 1px solid var(--border-bright);
    border-radius: var(--radius-sm); color: var(--text-primary);
    font-family: inherit; font-size: 14px; padding: 8px 10px;
}
.invite-create .btn-primary { padding: 9px 18px; }

.invite-result {
    display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
    margin-top: 16px; padding: 14px 16px;
    background: var(--bg-darkest); border: 1px solid var(--accent);
    border-radius: var(--radius-sm);
}
.invite-result code {
    font-size: 20px; font-weight: 700; letter-spacing: 0.1em; color: #fff;
    font-family: ui-monospace, Menlo, Consolas, monospace;
}
.btn-copy {
    background: var(--bg-light); color: var(--text-primary);
    border: 1px solid var(--border-bright); border-radius: var(--radius-sm);
    font-family: inherit; font-size: 13px; font-weight: 600;
    padding: 7px 14px; cursor: pointer; transition: border-color 0.15s;
}
.btn-copy:hover { border-color: var(--accent); }

.invite-list { margin-top: 18px; display: grid; gap: 8px; }
.invite-row {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 10px 14px; background: var(--bg-darkest);
    border: 1px solid var(--border); border-radius: var(--radius-sm); font-size: 13px;
}
.invite-row code { font-weight: 700; letter-spacing: 0.06em; color: var(--text-primary);
    font-family: ui-monospace, Menlo, Consolas, monospace; }
.invite-row .meta { color: var(--text-dim); }
.invite-row.used-up { opacity: 0.5; }
