/* =========================================================================
   Unspoken Roleplay — "Console" dashboard UI
   A from-scratch sidebar app shell. No relation to the original landing CSS.
   ========================================================================= */

:root {
    --bg: #0a0711;
    --bg-2: #0d0918;
    --rail: #100a1c;
    --panel: rgba(255, 255, 255, 0.045);
    --panel-2: rgba(255, 255, 255, 0.075);
    --border: rgba(255, 255, 255, 0.09);
    --border-strong: rgba(182, 92, 255, 0.38);
    --text: #f4eefb;
    --muted: #9c8fb4;
    --faint: #6f6685;
    --accent: #b65cff;
    --accent-2: #ff4fd2;
    --grad: linear-gradient(135deg, #b65cff 0%, #ff4fd2 100%);
    --grad-soft: linear-gradient(135deg, rgba(182, 92, 255, 0.18), rgba(255, 79, 210, 0.14));
    --good: #38e0a1;
    --bad: #ff5d6c;
    --warn: #ffce6a;
    --radius: 18px;
    --radius-sm: 12px;
    --sidebar-w: 250px;
    --shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
    --font: "Inter", system-ui, sans-serif;
    --display: "Space Grotesk", "Inter", sans-serif;
}

* { box-sizing: border-box; }

html, body { height: 100%; }

body {
    margin: 0;
    font-family: var(--font);
    color: var(--text);
    background:
        radial-gradient(1100px 600px at 78% -10%, rgba(255, 79, 210, 0.10), transparent 60%),
        radial-gradient(900px 600px at 0% 0%, rgba(182, 92, 255, 0.12), transparent 55%),
        var(--bg);
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--display); margin: 0; line-height: 1.12; letter-spacing: -0.01em; }
p { margin: 0; }
img { max-width: 100%; display: block; }

/* The [hidden] attribute must always win, even over a class that sets display. */
[hidden] { display: none !important; }

/* All inline icons are line-style: never let them fall back to a black fill,
   and never balloon to the SVG default size (explicit sizes below override 1em). */
svg { fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; width: 1em; height: 1em; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: rgba(182, 92, 255, 0.28); border-radius: 20px; border: 2px solid transparent; background-clip: content-box; }
::-webkit-scrollbar-track { background: transparent; }

/* ---------- App shell ---------- */
.app {
    display: grid;
    grid-template-columns: var(--sidebar-w) minmax(0, 1fr);
    min-height: 100vh;
}

/* ---------- Sidebar ---------- */
.app-sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 22px 16px;
    background: linear-gradient(180deg, var(--rail), #0b0714);
    border-right: 1px solid var(--border);
    z-index: 60;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 6px 8px 18px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 6px;
}
.brand img { height: 40px; width: auto; }
.brand .brand-text { display: grid; line-height: 1; }
.brand .brand-text strong { font-family: var(--display); font-size: 1.02rem; font-weight: 700; }
.brand .brand-text small { color: var(--accent); font-size: 0.62rem; letter-spacing: 0.22em; text-transform: uppercase; margin-top: 4px; }

.side-label { color: var(--faint); font-size: 0.64rem; letter-spacing: 0.2em; text-transform: uppercase; padding: 14px 10px 6px; }

.side-nav { display: grid; gap: 4px; }
.side-nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 12px;
    border-radius: var(--radius-sm);
    color: var(--muted);
    font-weight: 600;
    font-size: 0.92rem;
    position: relative;
    transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}
.side-nav a svg { width: 19px; height: 19px; stroke: currentColor; fill: none; stroke-width: 1.9; flex: none; }
.side-nav a:hover { color: var(--text); background: var(--panel); }
.side-nav a.active { color: #fff; background: var(--grad-soft); border: 1px solid var(--border-strong); }
.side-nav a.active::before {
    content: ""; position: absolute; left: -16px; top: 50%; transform: translateY(-50%);
    width: 4px; height: 22px; border-radius: 0 4px 4px 0; background: var(--grad);
}

.side-foot { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--border); }

.side-user { display: flex; align-items: center; gap: 11px; padding: 8px; border-radius: var(--radius-sm); }
.side-user img { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--border-strong); }
.side-user .su-meta { display: grid; min-width: 0; }
.side-user .su-meta strong { font-size: 0.86rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-user .su-meta small { color: var(--muted); font-size: 0.68rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- Main column ---------- */
.app-shell { display: flex; flex-direction: column; min-width: 0; }

.app-topbar {
    position: sticky;
    top: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 30px;
    background: rgba(10, 7, 17, 0.72);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
}
.topbar-heading { display: grid; gap: 2px; }
.topbar-heading h1 { font-size: 1.28rem; }
.topbar-heading span { color: var(--muted); font-size: 0.82rem; }
.topbar-actions { margin-left: auto; display: flex; align-items: center; gap: 12px; }

.hamburger {
    display: none;
    width: 42px; height: 42px;
    border-radius: var(--radius-sm);
    background: var(--panel); border: 1px solid var(--border);
    color: var(--text); cursor: pointer; align-items: center; justify-content: center;
}
.hamburger svg { width: 20px; height: 20px; stroke: currentColor; }

.app-content { padding: 30px; display: grid; gap: 22px; align-content: start; }

/* ---------- Profile menu (topbar) ---------- */
.profile { position: relative; }
.profile-btn {
    display: flex; align-items: center; gap: 10px;
    padding: 6px 12px 6px 6px; border-radius: 40px;
    background: var(--panel); border: 1px solid var(--border);
    color: var(--text); cursor: pointer; font: inherit;
}
.profile-btn img { width: 30px; height: 30px; border-radius: 50%; }
.profile-btn strong { font-size: 0.84rem; font-weight: 600; }
.profile-menu {
    position: absolute; right: 0; top: calc(100% + 10px); width: 240px;
    background: #15101f; border: 1px solid var(--border); border-radius: var(--radius);
    box-shadow: var(--shadow); padding: 10px; display: grid; gap: 2px; z-index: 70;
}
.profile-menu a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--radius-sm); color: var(--muted); font-size: 0.88rem; font-weight: 500; }
.profile-menu a svg { width: 18px; height: 18px; flex: none; }
.profile-menu a:hover { background: var(--panel); color: var(--text); }
.profile-menu .danger { color: var(--bad); }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 9px;
    padding: 11px 20px; border-radius: 12px; cursor: pointer;
    font-family: var(--font); font-weight: 600; font-size: 0.9rem;
    border: 1px solid var(--border); background: var(--panel); color: var(--text);
    transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}
.btn svg { width: 18px; height: 18px; }
.btn:hover { transform: translateY(-1px); border-color: var(--border-strong); }
.btn-primary { background: var(--grad); border: none; color: #fff; box-shadow: 0 10px 26px rgba(182, 92, 255, 0.32); }
.btn-primary:hover { box-shadow: 0 14px 34px rgba(255, 79, 210, 0.4); }
.btn-ghost { background: transparent; }
.btn-block { width: 100%; }
.btn-steam { background: var(--grad); border: none; color: #fff; }

/* ---------- Cards ---------- */
.card {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.card-pad { padding: 24px; }
.card-title { font-size: 1.05rem; margin-bottom: 4px; }
.card-sub { color: var(--muted); font-size: 0.86rem; }

.section-head { display: flex; align-items: end; justify-content: space-between; gap: 14px; margin-bottom: 2px; }
.section-head h2 { font-size: 1.35rem; }
.section-head p { color: var(--muted); font-size: 0.86rem; margin-top: 6px; }
.eyebrow { color: var(--accent); font-size: 0.7rem; letter-spacing: 0.22em; text-transform: uppercase; font-weight: 700; }

/* grids */
.grid { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* ---------- Hero card ---------- */
.hero-card {
    position: relative; overflow: hidden;
    border-radius: var(--radius); border: 1px solid var(--border);
    min-height: 320px; display: flex; align-items: end;
}
.hero-card video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.hero-card .hero-shade { position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(10,7,17,0.2) 0%, rgba(10,7,17,0.55) 55%, rgba(10,7,17,0.94) 100%); }
.hero-card .hero-body { position: relative; z-index: 2; padding: 34px; max-width: 640px; }
.hero-card h1 { font-size: clamp(1.9rem, 4vw, 3rem); }
.hero-card h1 span { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-card p { color: #d9cfe8; margin: 14px 0 22px; font-size: 1rem; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.chips { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; }
.chip { padding: 6px 12px; border-radius: 30px; background: rgba(10,7,17,0.55); border: 1px solid var(--border); font-size: 0.74rem; color: #e7ddf3; }

/* ---------- Stat tiles ---------- */
.stat { display: flex; align-items: center; gap: 16px; padding: 20px; }
.stat .stat-ico { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--grad-soft); border: 1px solid var(--border-strong); color: var(--accent); flex: none; }
.stat .stat-ico svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.9; }
.stat .stat-val { font-family: var(--display); font-size: 1.5rem; font-weight: 700; line-height: 1; }
.stat .stat-lbl { color: var(--muted); font-size: 0.78rem; margin-top: 5px; }
.stat .dot-live { width: 8px; height: 8px; border-radius: 50%; background: var(--good); box-shadow: 0 0 0 4px rgba(56, 224, 161, 0.18); display: inline-block; margin-right: 6px; }

/* ---------- Feature cards ---------- */
.feature { padding: 22px; display: grid; gap: 10px; }
.feature .f-ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--grad-soft); border: 1px solid var(--border-strong); color: var(--accent); }
.feature .f-ico svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.8; }
.feature h3 { font-size: 1.05rem; }
.feature p { color: var(--muted); font-size: 0.88rem; line-height: 1.55; }

/* ---------- Package cards ---------- */
.pkg { padding: 22px; display: grid; gap: 8px; position: relative; overflow: hidden; }
.pkg.feat { border-color: var(--border-strong); box-shadow: 0 0 0 1px rgba(182,92,255,0.18), 0 20px 50px rgba(182,92,255,0.16); }
.pkg .pkg-badge { position: absolute; top: 14px; right: 14px; font-size: 0.62rem; letter-spacing: 0.14em; text-transform: uppercase; padding: 4px 9px; border-radius: 20px; background: var(--grad); color: #fff; }
.pkg .pkg-img { width: 72px; height: 72px; object-fit: contain; margin-bottom: 4px; filter: drop-shadow(0 8px 20px rgba(182,92,255,0.4)); }
.pkg h3 { font-size: 1.2rem; }
.pkg .pkg-queue { font-family: var(--display); font-size: 1.8rem; font-weight: 700; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pkg .pkg-queue small { display: block; -webkit-text-fill-color: var(--muted); color: var(--muted); font-size: 0.72rem; font-weight: 500; font-family: var(--font); }
.pkg .pkg-price { font-size: 1.05rem; font-weight: 600; margin: 4px 0 6px; }
.pkg .pkg-price small { color: var(--muted); font-weight: 400; }
.pkg ul { list-style: none; padding: 0; margin: 0 0 8px; display: grid; gap: 8px; }
.pkg ul li { display: flex; gap: 9px; align-items: center; color: var(--muted); font-size: 0.85rem; }
.pkg ul li svg { width: 16px; height: 16px; color: var(--accent); flex: none; }

/* ---------- Forms ---------- */
.form-grid { display: grid; gap: 16px; }
.form-grid label { display: grid; gap: 7px; }
.form-grid label > span { font-size: 0.82rem; color: var(--muted); font-weight: 600; }
input, select, textarea {
    width: 100%; font: inherit; color: var(--text);
    background: rgba(0, 0, 0, 0.28); border: 1px solid var(--border);
    border-radius: var(--radius-sm); padding: 12px 14px; outline: none;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}
textarea { resize: vertical; min-height: 110px; }
input:focus, select:focus, textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(182, 92, 255, 0.18); background: rgba(0,0,0,0.4); }
input[readonly] { color: var(--muted); }
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23b65cff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 18px; padding-right: 40px; cursor: pointer; }
option { background: #15101f; }

/* ---------- Banners ---------- */
.banner { padding: 13px 16px; border-radius: var(--radius-sm); border: 1px solid var(--border); font-size: 0.9rem; display: flex; align-items: center; gap: 10px; }
.banner svg { width: 18px; height: 18px; flex: none; }
.banner.error { background: rgba(255, 93, 108, 0.1); border-color: rgba(255, 93, 108, 0.35); color: #ffc3c9; }
.banner.success { background: rgba(56, 224, 161, 0.1); border-color: rgba(56, 224, 161, 0.35); color: #b8f5df; }
.banner.warn { background: rgba(255, 206, 106, 0.1); border-color: rgba(255, 206, 106, 0.35); color: #ffe6b3; }

/* ---------- Rules accordion ---------- */
.rule-block { padding: 0; overflow: hidden; }
.rule-block summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 12px; padding: 18px 22px; font-family: var(--display); font-weight: 600; }
.rule-block summary::-webkit-details-marker { display: none; }
.rule-block summary .r-num { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: var(--grad-soft); border: 1px solid var(--border-strong); color: var(--accent); font-size: 0.82rem; }
.rule-block summary .chev { margin-left: auto; transition: transform 0.2s ease; color: var(--muted); }
.rule-block[open] summary .chev { transform: rotate(180deg); }
.rule-block .rule-body { padding: 0 22px 20px 64px; display: grid; gap: 10px; }
.rule-block .rule-body li { list-style: none; color: var(--muted); font-size: 0.9rem; display: flex; gap: 10px; line-height: 1.5; }
.rule-block .rule-body li::before { content: "◆"; color: var(--accent); font-size: 0.7rem; margin-top: 4px; }

/* ---------- Rules (reworked: numbered category cards) ---------- */
.rules-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; align-items: start; }
.rule-cat { padding: 24px; }
.rule-cat-head { display: flex; align-items: center; gap: 14px; padding-bottom: 16px; margin-bottom: 16px; border-bottom: 1px solid var(--border); }
.rule-cat-head .f-ico { width: 42px; height: 42px; flex: none; }
.rule-cat-head .f-ico svg { width: 21px; height: 21px; }
.rule-cat-head h3 { font-size: 1.06rem; }
.rule-cat-head .rc-count { color: var(--muted); font-size: 0.74rem; margin-top: 3px; }
.rule-list { list-style: none; counter-reset: rule; margin: 0; padding: 0; display: grid; gap: 13px; }
.rule-list li { counter-increment: rule; display: flex; gap: 13px; color: var(--muted); font-size: 0.9rem; line-height: 1.55; }
.rule-list li::before {
    content: counter(rule, decimal-leading-zero);
    flex: none; width: 27px; height: 27px; border-radius: 8px;
    display: grid; place-items: center;
    font-family: var(--display); font-size: 0.72rem; font-weight: 700;
    color: var(--accent); background: var(--grad-soft); border: 1px solid var(--border-strong);
}
@media (max-width: 860px) { .rules-grid { grid-template-columns: 1fr; } }

/* ---------- Recruitment hub ---------- */
.hub-intro { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.hub-intro .f-ico { width: 50px; height: 50px; }
.hub-intro .f-ico svg { width: 24px; height: 24px; }

.apply-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; align-items: stretch; }
@media (max-width: 1100px) { .apply-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 720px) { .apply-grid { grid-template-columns: 1fr; } }

.apply-card { position: relative; display: flex; flex-direction: column; gap: 12px; padding: 24px; overflow: hidden; }
.apply-card::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--grad); opacity: 0.85; }
.apply-card.is-closed::after { background: var(--faint); opacity: 0.5; }
.apply-card .f-ico { width: 46px; height: 46px; }
.apply-card .f-ico svg { width: 23px; height: 23px; }
.apply-card h3 { font-size: 1.12rem; }
.apply-card p { color: var(--muted); font-size: 0.88rem; line-height: 1.55; flex: 1; }

.apply-status { display: inline-flex; align-items: center; gap: 7px; align-self: flex-start; padding: 5px 11px; border-radius: 30px; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.apply-status .pip { width: 7px; height: 7px; border-radius: 50%; }
.apply-status.open { background: rgba(56, 224, 161, 0.12); border: 1px solid rgba(56, 224, 161, 0.4); color: #9af3d4; }
.apply-status.open .pip { background: var(--good); box-shadow: 0 0 0 3px rgba(56, 224, 161, 0.18); }
.apply-status.closed { background: rgba(255, 255, 255, 0.05); border: 1px solid var(--border); color: var(--muted); }
.apply-status.closed .pip { background: var(--faint); }

.apply-card__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 6px; padding-top: 14px; border-top: 1px solid var(--border); }
.apply-card__foot .review { color: var(--faint); font-size: 0.74rem; }
.apply-card__foot .review b { color: var(--muted); font-weight: 600; }

.form-back { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 0.85rem; font-weight: 600; }
.form-back:hover { color: var(--text); }
.form-back svg { width: 16px; height: 16px; }

/* ---------- Auth (login) ---------- */
.auth-wrap { display: grid; place-items: center; padding: 40px 0; }
.auth-card { width: min(440px, 100%); padding: 36px; text-align: center; }
.auth-card .auth-logo { height: 56px; width: auto; margin: 0 auto 18px; }
.auth-card h1 { font-size: 1.5rem; margin-bottom: 10px; }
.auth-card p { color: var(--muted); font-size: 0.9rem; margin-bottom: 22px; line-height: 1.6; }
.auth-card .steam-mark { width: 22px; height: 22px; border-radius: 50%; background: rgba(255,255,255,0.18); display: grid; place-items: center; font-weight: 800; font-size: 0.8rem; }
.auth-card small { display: block; color: var(--faint); font-size: 0.74rem; margin-top: 16px; line-height: 1.5; }

/* ---------- Status pills ---------- */
.pill { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 30px; font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; border: 1px solid var(--border); white-space: nowrap; }
.pill-good { background: rgba(56, 224, 161, 0.12); border-color: rgba(56, 224, 161, 0.4); color: #9af3d4; }
.pill-warn { background: rgba(255, 206, 106, 0.12); border-color: rgba(255, 206, 106, 0.4); color: #ffe6b3; }
.pill-bad  { background: rgba(255, 93, 108, 0.12); border-color: rgba(255, 93, 108, 0.4); color: #ffc3c9; }
.pill-muted{ background: rgba(255, 255, 255, 0.06); border-color: var(--border); color: var(--muted); }

/* ---------- Rank badges ---------- */
.rank {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 3px 11px; border-radius: 20px; white-space: nowrap;
    font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em;
    color: #fff; background: rgba(255, 255, 255, 0.06); border: 1px solid var(--border);
    color: color-mix(in srgb, var(--rank) 80%, white);
    background: color-mix(in srgb, var(--rank) 16%, transparent);
    border: 1px solid color-mix(in srgb, var(--rank) 45%, transparent);
}
.rank::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--rank); }

.adm-locked { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 0.82rem; }
.adm-locked svg { width: 16px; height: 16px; color: var(--warn); }

.app-setting { display: flex; flex-direction: column; gap: 14px; }
.app-setting__head { display: flex; align-items: center; gap: 12px; }
.app-setting__head .f-ico { width: 42px; height: 42px; flex: none; }
.app-setting__head .f-ico svg { width: 21px; height: 21px; }
.app-setting__head h3 { font-size: 1.05rem; }
.app-setting__head .pill { margin-left: auto; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
.table th { text-align: left; color: var(--muted); font-weight: 600; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; padding: 10px 14px; border-bottom: 1px solid var(--border); white-space: nowrap; }
.table td { padding: 12px 14px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table tbody tr:hover { background: var(--panel); }
.mono { font-family: ui-monospace, "Cascadia Code", monospace; font-size: 0.78rem; color: var(--muted); }
.btn-sm { padding: 7px 13px; font-size: 0.8rem; border-radius: 9px; gap: 6px; }
.btn-sm svg { width: 15px; height: 15px; }

/* ---------- Profile ---------- */
.profile-head { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }
.profile-avatar { width: 84px; height: 84px; border-radius: 50%; border: 2px solid var(--border-strong); object-fit: cover; flex: none; }
.profile-head__meta { flex: 1; min-width: 220px; }
.profile-head__meta h2 { font-size: 1.4rem; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.profile-facts { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 10px; color: var(--muted); font-size: 0.84rem; }
.profile-facts span { display: inline-flex; align-items: center; gap: 7px; }
.profile-facts span svg { width: 15px; height: 15px; color: var(--accent); }
.profile-facts b { color: var(--text); font-weight: 600; }
.profile-head__sub { text-align: right; min-width: 170px; }
.profile-plan { font-family: var(--display); font-weight: 700; font-size: 1.05rem; margin-top: 6px; display: flex; gap: 8px; align-items: center; justify-content: flex-end; }

/* ---------- Connections (Discord) ---------- */
.connect-card { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.f-ico--discord { background: rgba(88, 101, 242, 0.16); border-color: rgba(88, 101, 242, 0.5); color: #8b97ff; }
.connect-meta { flex: 1; min-width: 220px; }
.connect-name { display: flex; align-items: center; gap: 10px; margin-top: 6px; }
.connect-name img { width: 30px; height: 30px; border-radius: 50%; }
.connect-name strong { font-size: 1rem; }
.connect-name small { color: var(--muted); }
.connect-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.btn-discord { background: #5865f2; border: none; color: #fff; }
.btn-discord:hover { background: #4954d6; }
.btn-discord svg { width: 18px; height: 18px; }

/* ---------- Admin ---------- */
.adm-tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.adm-tabs a { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 10px; color: var(--muted); font-weight: 600; font-size: 0.86rem; border: 1px solid transparent; }
.adm-tabs a svg { width: 17px; height: 17px; }
.adm-tabs a:hover { color: var(--text); background: var(--panel); }
.adm-tabs a.active { color: #fff; background: var(--grad-soft); border-color: var(--border-strong); }

.adm-item__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.adm-item__head h3 { font-size: 1.05rem; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.adm-type { font-size: 0.64rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--accent); background: var(--grad-soft); border: 1px solid var(--border-strong); padding: 3px 9px; border-radius: 20px; }
.adm-meta { color: var(--muted); font-size: 0.8rem; margin-top: 4px; }
.adm-details { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 16px 0; padding: 16px; background: rgba(0, 0, 0, 0.22); border-radius: 12px; border: 1px solid var(--border); }
.adm-details > div span { display: block; color: var(--faint); font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 3px; }
.adm-details > div p { color: var(--text); font-size: 0.88rem; line-height: 1.5; }
.adm-actions { display: flex; gap: 8px; flex-wrap: wrap; }
@media (max-width: 720px) { .adm-details { grid-template-columns: 1fr; } .profile-head__sub { text-align: left; } .profile-plan { justify-content: flex-start; } }

/* ---------- Footer ---------- */
.app-foot { padding: 18px 30px 30px; color: var(--faint); font-size: 0.8rem; border-top: 1px solid var(--border); margin-top: 6px; }

/* ---------- Reveal ---------- */
[data-reveal] { opacity: 0; transform: translateY(14px); transition: opacity 0.5s ease, transform 0.5s ease; }
[data-reveal].in { opacity: 1; transform: none; }

/* ---------- Mobile drawer ---------- */
.scrim { display: none; }
@media (max-width: 980px) {
    .app { grid-template-columns: 1fr; }
    .app-sidebar {
        position: fixed; left: 0; top: 0; width: 270px;
        transform: translateX(-100%); transition: transform 0.25s ease;
    }
    .app.nav-open .app-sidebar { transform: none; }
    .hamburger { display: inline-flex; }
    .scrim { display: block; position: fixed; inset: 0; background: rgba(0,0,0,0.55); z-index: 55; opacity: 0; pointer-events: none; transition: opacity 0.25s ease; }
    .app.nav-open .scrim { opacity: 1; pointer-events: auto; }
}
@media (max-width: 1180px) { .grid-4 { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 860px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } .app-content, .app-topbar { padding-left: 18px; padding-right: 18px; } }
@media (max-width: 560px) { .grid-4 { grid-template-columns: 1fr; } .hero-card .hero-body { padding: 22px; } }
