@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
    --bg: #1c140e;
    --bg-soft: #261d14;
    --card: #2b2218;
    --card-border: #4f3e2ba0;
    --orange: #ff8a3d;
    --orange-soft: #ff8a3d22;
    --gold: #ffc670;
    --text: #f2ebe0;
    --text-dim: #c3b3a0;
    --text-faint: #8e7c68;
    --green: #8faf5c;
    --red: #d6634a;
    --radius: 14px;
}

* { box-sizing: border-box; }

body { cursor: default; }

a, button, [role="button"], .chip.code:not(.disabled), .path-tab {
    cursor: pointer;
}

a *, button *, [role="button"] *, .chip.code:not(.disabled) *, .path-tab * {
    cursor: pointer;
}

html, body {
    margin: 0;
    padding: 0;
    background: var(--bg);
    color: var(--text);
    scroll-behavior: smooth;
    scrollbar-color: var(--orange) var(--bg-soft);
}

::selection { background: var(--orange); color: #fff; }

::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: var(--bg-soft); }
::-webkit-scrollbar-thumb { background: var(--orange); border-radius: 999px; border: 3px solid var(--bg-soft); }
::-webkit-scrollbar-thumb:hover { background: var(--gold); }

body {
    font-family: 'Inter', 'gg sans', 'Noto Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-feature-settings: 'kern' 1, 'liga' 1;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

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


.palm-field {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.palm-field svg {
    position: absolute;
    opacity: 0.4;
}


header.site-header {
    position: relative;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 22px clamp(20px, 5vw, 64px);
    border-bottom: 1px solid var(--card-border);
    background: linear-gradient(180deg, #1c140e80, transparent);
    backdrop-filter: blur(6px);
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    font-size: 1.15rem;
    letter-spacing: 0.02em;
}

.brand-logo {
    height: 38px;
    width: auto;
    display: block;
}

nav.site-nav {
    display: flex;
    gap: clamp(14px, 3vw, 32px);
    font-weight: 500;
    color: var(--text-dim);
}

nav.site-nav a { padding: 6px 2px; border-bottom: 2px solid transparent; transition: color .15s, border-color .15s; }
nav.site-nav a:hover, nav.site-nav a.active { color: var(--text); border-color: var(--orange); }


.hero {
    position: relative;
    padding: clamp(48px, 10vh, 96px) clamp(20px, 5vw, 64px) 56px;
    background: linear-gradient(180deg, #211910 0%, var(--bg) 42%, var(--bg-soft) 100%);
    overflow: hidden;
}

.hero::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 40%;
    background: linear-gradient(180deg, transparent, #ff8a3d14 55%, #ffc6701c);
    pointer-events: none;
}

.hero-split {
    position: relative;
    z-index: 1;
    max-width: 1180px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: clamp(24px, 5vw, 56px);
    align-items: center;
}

@media (max-width: 860px) {
    .hero-split { grid-template-columns: 1fr; text-align: center; }
    .hero-actions { justify-content: center; }
    .hero-right { margin: 0 auto; }
}

.hero-title {
    font-size: clamp(2.2rem, 5vw, 3.6rem);
    font-weight: 800;
    line-height: 1.08;
    margin: 0 0 18px;
    letter-spacing: -0.02em;
    color: var(--text);
}

.hero-title-tag {
    display: inline-block;
    margin-top: 8px;
    padding: 6px 16px 10px;
    line-height: 1.15;
    background: var(--orange);
    color: #fff;
    border-radius: 8px;
}

.hero p.lead {
    color: var(--text-dim);
    font-size: clamp(1rem, 1.6vw, 1.15rem);
    max-width: 520px;
    margin: 0 0 32px;
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.hero-btn-match {
    justify-content: center;
    min-width: 172px;
}


.hero-right {
    position: relative;
    height: 320px;
    max-width: 340px;
    width: 100%;
}

.floating-card {
    position: absolute;
    border-radius: 18px;
    padding: 24px 22px;
    width: 250px;
    background: var(--card);
    border: 1px solid var(--card-border);
    box-shadow: 0 20px 50px -20px #000000a0;
}

.floating-card-back {
    top: -18px;
    right: 0;
    transform: rotate(3deg);
    opacity: 0.7;
    padding: 18px 20px;
    width: 190px;
}

.floating-card-front {
    top: 70px;
    left: 0;
    border-color: #ff8a3d55;
}

.floating-card-status {
    display: flex;
    align-items: center;
    line-height: 1;
    font-size: 0.8rem;
    color: var(--text-dim);
    margin-bottom: 16px;
    font-weight: 600;
}

.floating-card-status .dot { margin-top: -1px; }

.floating-card-tag {
    display: block;
    line-height: 1.3;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--text-faint);
    text-transform: uppercase;
}

.floating-card-value {
    display: block;
    line-height: 1.2;
    font-size: 2.1rem;
    font-weight: 800;
    color: var(--gold);
    margin-top: 4px;
}

.floating-card-footer {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid var(--card-border);
    font-size: 0.82rem;
    line-height: 1.3;
    color: var(--text-dim);
}


.btn-discord {
    box-sizing: border-box;
    min-height: 40px;
    background: #2c2116;
    border-color: var(--gold);
    box-shadow: 0 0 0 1px #ffc67030 inset;
    color: #fff;
    padding: 10px 20px;
    font-size: 0.88rem;
}
.btn-discord svg { color: var(--gold); flex-shrink: 0; }
.btn-discord:hover { background: #372919; border-color: var(--orange); transform: translateY(-1px) translateZ(0); }

.btn-discord-outline {
    background: #ffffff0a;
    border-color: var(--card-border);
    color: #fff;
}
.btn-discord-outline:hover { background: #ffffff14; border-color: var(--gold); transform: translateY(-1px) translateZ(0); }

.page-server .btn,
.page-server .dash-nav-btn {
    border-radius: 999px;
}

.page-modpanel main {
    max-width: none;
    padding-left: clamp(20px, 3vw, 40px);
    padding-right: clamp(20px, 3vw, 40px);
}


.stats-bar {
    position: relative;
    z-index: 1;
    background: linear-gradient(180deg, var(--bg-soft) 0%, var(--bg) 100%);
    border-top: none;
    border-bottom: 1px solid var(--card-border);
    padding: 26px clamp(20px, 5vw, 64px);
}

.stats-bar::before {
    content: '';
    position: absolute;
    inset: 0 0 auto 0;
    height: 60px;
    background: linear-gradient(180deg, #ff8a3d10, transparent);
    pointer-events: none;
}

.stats-bar-inner {
    max-width: 1180px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    gap: 24px;
}

.stats-bar-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 18px;
    border-radius: 12px;
    transition: background .2s ease, transform .2s ease;
    transform: translateZ(0);
    backface-visibility: hidden;
}

.stats-bar-item:hover {
    background: #ff8a3d14;
    transform: translateY(-1px) translateZ(0);
}

.stats-bar-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    flex-shrink: 0;
}

.stats-bar-value { font-size: 1.4rem; font-weight: 800; color: var(--text); }
.stats-bar-label { font-size: 0.78rem; color: var(--text-faint); text-transform: uppercase; letter-spacing: 0.06em; }


.path-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 22px;
    border-bottom: 1px solid var(--card-border);
    padding-bottom: 14px;
}

.path-tab {
    background: var(--card);
    border: 1px solid var(--card-border);
    color: var(--text-dim);
    font-family: inherit;
    font-weight: 600;
    font-size: 0.88rem;
    padding: 10px 18px;
    border-radius: 10px;
    cursor: pointer;
    transition: border-color .15s ease, color .15s ease, background .15s ease;
    transform: translateZ(0);
    backface-visibility: hidden;
    -webkit-font-smoothing: antialiased;
}

.path-tab:hover { color: var(--text); }

.path-tab.active {
    background: var(--orange);
    border-color: transparent;
    color: #fff;
}

.path-panel {
    background: var(--card);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    padding: 30px clamp(20px, 4vw, 36px);
    transition: opacity .22s ease, transform .22s ease;
    transform: translateY(0) translateZ(0);
    backface-visibility: hidden;
    -webkit-font-smoothing: antialiased;
}

.path-panel.switching {
    opacity: 0;
    transform: translateY(6px) translateZ(0);
}

.path-panel-eyebrow {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--gold);
    margin-bottom: 8px;
}

.path-panel h3 { margin: 0 0 12px; font-size: 1.5rem; font-weight: 800; }
.path-panel p { margin: 0 0 20px; color: var(--text-dim); line-height: 1.6; max-width: 640px; }

.path-chips { display: flex; flex-wrap: wrap; gap: 10px; }


.rule-list {
    background: var(--card);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    overflow: hidden;
}

.rule-item {
    display: flex;
    gap: 16px;
    padding: 20px clamp(18px, 3vw, 28px);
    border-bottom: 1px solid var(--card-border);
}

.rule-item:last-child { border-bottom: none; }

.rule-number {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--orange-soft);
    color: var(--gold);
    font-weight: 700;
    font-size: 0.9rem;
    line-height: 1;
}

.rule-title { font-weight: 700; font-size: 1rem; margin-bottom: 4px; }
.rule-body { color: var(--text-dim); font-size: 0.9rem; line-height: 1.55; }

.rule-footer {
    padding: 16px clamp(18px, 3vw, 28px);
    background: var(--bg-soft);
    color: var(--text-faint);
    font-size: 0.85rem;
    line-height: 1.5;
}


.tooltip { position: relative; }

.tooltip::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%) translateY(4px);
    background: #3d2716;
    color: var(--gold);
    font-size: 0.72rem;
    font-weight: 600;
    padding: 6px 11px;
    border-radius: 7px;
    border: 1px solid #5a3c22;
    white-space: normal;
    width: max-content;
    max-width: 200px;
    text-align: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity .15s ease, transform .15s ease;
    z-index: 20;
}

.tooltip:hover::after {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.tooltip.copied::after {
    background: var(--green);
    color: #17110c;
    border-color: transparent;
}

@keyframes chip-copied-pulse {
    0% { transform: scale(1); }
    40% { transform: scale(0.94); }
    100% { transform: scale(1); }
}

.chip.code.copied {
    animation: chip-copied-pulse .32s ease;
    border-color: var(--green);
    color: var(--green);
}


@keyframes skeleton-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.45; }
}

.skel {
    display: inline-block;
    background: #3a2d1e;
    border-radius: 6px;
    animation: skeleton-pulse 1.2s ease-in-out infinite;
    vertical-align: middle;
}

.skel-card {
    display: flex;
    align-items: center;
    gap: 14px;
    background: var(--card);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    padding: 14px;
}

.skel-avatar {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    flex-shrink: 0;
    background: #3a2d1e;
    animation: skeleton-pulse 1.2s ease-in-out infinite;
}

.skel-avatar.round { border-radius: 50%; width: 44px; height: 44px; }

.skel-lines { flex: 1; display: flex; flex-direction: column; gap: 8px; }

.skel-line {
    height: 12px;
    border-radius: 4px;
    background: #3a2d1e;
    animation: skeleton-pulse 1.2s ease-in-out infinite;
}

.skel-line.w60 { width: 60%; }
.skel-line.w40 { width: 40%; height: 9px; }


.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 26px;
    border-radius: 10px;
    font-family: 'Inter', 'gg sans', 'Noto Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform .15s ease, box-shadow .15s ease, background .15s ease, border-color .15s ease;
    transform: translateZ(0);
    backface-visibility: hidden;
    -webkit-font-smoothing: antialiased;
}

.btn-primary {
    background: var(--orange);
    color: #fff;
    box-shadow: 0 4px 10px -4px #00000060;
}
.btn-primary:hover { background: #e56a25; transform: translateY(-1px) translateZ(0); box-shadow: 0 6px 14px -4px #00000070; }

.btn-ghost {
    background: #ffffff0a;
    border-color: var(--card-border);
    color: var(--text);
}
.btn-ghost:hover { background: #ffffff14; border-color: var(--gold); transform: translateY(-1px) translateZ(0); }

.btn-outline {
    background: transparent;
    border-color: var(--orange);
    color: var(--orange);
}
.btn-outline:hover { background: #ff8a3d1a; border-color: var(--gold); color: var(--gold); transform: translateY(-1px) translateZ(0); }


.stats-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 16px;
    max-width: 760px;
    margin: 48px auto 0;
}

.stat-card {
    background: var(--card);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    padding: 22px 18px;
    text-align: center;
}

.stat-card .value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--gold);
}

.stat-card .label {
    margin-top: 4px;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-faint);
}

.dot {
    display: inline-block;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    margin-right: 7px;
    vertical-align: middle;
}
.dot.online { background: var(--green); box-shadow: 0 0 8px 1px #4fbf7899; }
.dot.offline { background: var(--red); }
.dot.loading { background: #3a2d1e; animation: skeleton-pulse 1.2s ease-in-out infinite; }


main {
    flex: 1;
    position: relative;
    z-index: 1;
    padding: 48px clamp(20px, 5vw, 64px) 80px;
    max-width: 1180px;
    margin: 0 auto;
    width: 100%;
}

.section-heading {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 22px;
}

.section-heading h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
}

.section-heading .sub {
    color: var(--text-faint);
    font-size: 0.9rem;
}

.toolbar {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 28px;
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--card);
    border: 1px solid var(--card-border);
    padding: 9px 16px;
    border-radius: 999px;
    font-size: 0.88rem;
    color: var(--text-dim);
    transition: border-color .35s ease, color .35s ease, opacity .2s ease;
}

.chip strong { color: var(--text); }

.chip.code {
    font-family: 'Courier New', monospace;
    letter-spacing: 0.03em;
}

.chip.code.disabled {
    opacity: 0.6;
}


.player-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 14px;
}

.player-card {
    display: flex;
    align-items: center;
    gap: 14px;
    background: var(--card);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    padding: 14px;
    transition: border-color .15s ease, transform .15s ease;
    transform: translateZ(0);
    backface-visibility: hidden;
    -webkit-font-smoothing: antialiased;
}
.player-card:hover { border-color: #ff8a3d55; transform: translateY(-2px) translateZ(0); }

.player-avatar {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: #332619;
    object-fit: cover;
    flex-shrink: 0;
}

.player-info { min-width: 0; }
.player-name { font-weight: 600; font-size: 0.95rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.team-badge {
    display: inline-block;
    margin-top: 4px;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 3px 9px;
    border-radius: 999px;
    background: var(--orange-soft);
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}


.staff-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 14px;
}

.staff-card {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--card);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    padding: 14px;
    transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
    transform: translateZ(0);
    backface-visibility: hidden;
}

.staff-card:hover {
    border-color: #ff8a3d66;
    transform: translateY(-3px) translateZ(0);
    box-shadow: 0 14px 28px -16px #000000a0;
}

.staff-card:hover .staff-avatar { transform: scale(1.06); }

.staff-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    background: #332619;
    transition: transform .18s ease;
}

.staff-name { font-weight: 600; font-size: 0.92rem; }
.staff-tag { font-size: 0.76rem; color: var(--green); margin-top: 2px; font-weight: 600; }
.staff-duty { font-size: 0.72rem; color: var(--text-faint); margin-top: 2px; }


.empty-state, .loading-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-faint);
    border: 1px dashed var(--card-border);
    border-radius: var(--radius);
}

.loading-state::after {
    content: '';
    display: block;
    width: 22px;
    height: 22px;
    margin: 16px auto 0;
    border-radius: 50%;
    border: 3px solid var(--card-border);
    border-top-color: var(--orange);
    animation: spin 0.8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }


.typewriter {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0 auto 18px;
    padding: 7px 18px;
    border-radius: 999px;
    background: var(--orange-soft);
    border: 1px solid #ff8a3d40;
    color: var(--gold);
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.01em;
}

.typewriter .cursor {
    display: inline-block;
    width: 2px;
    height: 1em;
    background: var(--gold);
    animation: blink 1s step-end infinite;
}

@keyframes blink { 50% { opacity: 0; } }


.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
}

.feature-card {
    background: var(--card);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    padding: 22px 20px;
    transition: border-color .15s ease, transform .15s ease;
    transform: translateZ(0);
    backface-visibility: hidden;
    -webkit-font-smoothing: antialiased;
}
.feature-card:hover { border-color: #ff8a3d55; transform: translateY(-3px) translateZ(0); }

.feature-card h3 { margin: 0 0 8px; font-size: 1.05rem; font-weight: 700; }
.feature-card p { margin: 0; color: var(--text-dim); font-size: 0.88rem; line-height: 1.55; }


.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    counter-reset: step;
}

.step-card {
    position: relative;
    background: var(--card);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    padding: 24px 20px 20px;
}

.step-card::before {
    counter-increment: step;
    content: counter(step);
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    text-align: center;
    width: 30px;
    height: 30px;
    padding-top: 1px;
    border-radius: 50%;
    background: var(--orange-soft);
    color: var(--gold);
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 14px;
}

.steps-grid.no-number { counter-reset: none; }
.steps-grid.no-number .step-card { padding-top: 20px; }
.steps-grid.no-number .step-card::before { content: none; margin-bottom: 0; }
.steps-grid.no-number .step-card p { margin: 0; color: var(--text-dim); font-size: 0.9rem; line-height: 1.55; }

.step-card h3 { margin: 0 0 6px; font-size: 1rem; font-weight: 700; }
.step-card p { margin: 0; color: var(--text-dim); font-size: 0.86rem; line-height: 1.5; }


.cta-banner {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    padding: 48px clamp(20px, 5vw, 56px);
    text-align: center;
    background:
        radial-gradient(ellipse 700px 300px at 50% 0%, #ff8a3d30, transparent 65%),
        var(--card);
    border: 1px solid var(--card-border);
}

.cta-banner h2 { margin: 0 0 10px; font-size: 1.6rem; font-weight: 800; }
.cta-banner p { margin: 0 0 26px; color: var(--text-dim); max-width: 480px; margin-left: auto; margin-right: auto; }
.cta-banner .hero-actions { justify-content: center; }

footer.site-footer {
    position: relative;
    z-index: 1;
    border-top: 1px solid var(--card-border);
    padding: 28px clamp(20px, 5vw, 64px);
    text-align: center;
    color: var(--text-faint);
    font-size: 0.85rem;
}


.dash-nav-btn {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    box-sizing: border-box;
    min-height: 40px;
    padding: 6px 20px 6px 6px;
    border-radius: 10px;
    background: var(--card);
    border: 1px solid var(--card-border);
    color: var(--text);
    font-weight: 600;
    font-size: 0.88rem;
    transition: border-color .18s ease, transform .18s ease, background-color .18s ease;
    transform: translateZ(0);
    backface-visibility: hidden;
}
.dash-nav-btn:hover { border-color: var(--gold); transform: translateY(-1px) translateZ(0); }
.dash-nav-btn.login { padding: 10px 20px; background: var(--orange); border-color: transparent; color: #fff; }
.dash-nav-btn.login:hover { background: #e56a25; }

.dash-nav-btn.loading {
    background: #3a2d1e;
    border-color: transparent;
    color: transparent;
    pointer-events: none;
    animation: skeleton-pulse 1.2s ease-in-out infinite;
}
.dash-nav-avatar { width: 28px; height: 28px; border-radius: 50%; background: #3a2c1a; flex-shrink: 0; }


.dash-grid {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 28px;
    align-items: start;
}

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

.dash-sidebar {
    background: var(--card);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    padding: 28px 22px;
    text-align: center;
    position: sticky;
    top: 24px;
}

.dash-header {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 36px;
}

.dash-avatar { width: 64px; height: 64px; border-radius: 50%; background: var(--card); border: 2px solid var(--card-border); }
.dash-name { font-size: 1.4rem; font-weight: 800; }
.dash-sub { color: var(--text-faint); font-size: 0.88rem; }

.dash-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    margin-bottom: 40px;
}

.dash-stat {
    background: var(--card);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    padding: 20px;
}
.dash-stat .value { font-size: 1.7rem; font-weight: 800; color: var(--gold); }
.dash-stat .label { margin-top: 4px; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-faint); }

.app-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 0.76rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.app-status.pending { background: var(--orange-soft); color: var(--gold); }
.app-status.approved { background: #8faf5c22; color: var(--green); }
.app-status.denied { background: #d6634a22; color: var(--red); }

.app-card {
    background: var(--card);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    padding: 18px 20px;
    margin-bottom: 12px;
}
.app-card-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
.app-card-title { font-weight: 700; }
.app-card-date { color: var(--text-faint); font-size: 0.8rem; }
.app-card-reason { margin-top: 8px; color: var(--text-dim); font-size: 0.88rem; line-height: 1.5; }

.login-gate {
    text-align: center;
    padding: 80px 20px;
}
.login-gate p { color: var(--text-dim); max-width: 440px; margin: 12px auto 26px; line-height: 1.6; }


.apply-types {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-bottom: 32px;
}

.apply-type-card {
    position: relative;
    background: var(--card);
    border: 1px solid var(--card-border);
    border-left: 3px solid var(--card-border);
    border-radius: var(--radius);
    padding: 22px 20px;
    cursor: pointer;
    transition: border-color .18s ease, transform .18s ease;
    transform: translateZ(0);
    backface-visibility: hidden;
}
.apply-type-card:hover {
    border-color: var(--accent, var(--orange));
    border-left-color: var(--accent, var(--orange));
    transform: translateY(-2px) translateZ(0);
}
.apply-type-card.selected { background: color-mix(in srgb, var(--accent, var(--orange)) 12%, var(--card)); }

.apply-type-card.skel-card-mode { cursor: default; }
.apply-type-card.skel-card-mode:hover {
    border-color: var(--card-border);
    border-left-color: var(--card-border);
    transform: translateZ(0);
}

.apply-type-card.closed {
    cursor: default;
    opacity: 0.55;
}
.apply-type-card.closed:hover {
    border-color: var(--card-border);
    border-left-color: var(--card-border);
    transform: translateZ(0);
}

.apply-type-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
}

.apply-type-status {
    display: inline-block;
    flex-shrink: 0;
    margin-top: 3px;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.apply-type-status.hiring { background: #8faf5c22; color: var(--green); }
.apply-type-status.closed { background: #d6634a22; color: var(--red); }
.apply-type-status.already { background: #ffc67022; color: var(--gold); }

.apply-type-card h3 { margin: 0; font-size: 1.2rem; color: var(--accent, var(--text)); }

.apply-type-divider {
    height: 1px;
    background: var(--card-border);
    margin: 0 0 14px;
}

.wizard-progress {
    display: flex;
    align-items: flex-start;
    margin-bottom: 26px;
    padding-bottom: 26px;
    border-bottom: 1px solid var(--card-border);
}

.wizard-progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex-shrink: 0;
    width: 92px;
}

.wizard-progress-dot {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    flex-shrink: 0;
    line-height: 1;
    padding: 0;
    box-sizing: border-box;
    border-radius: 50%;
    background: var(--card);
    border: 1px solid var(--card-border);
    color: var(--text-faint);
    font-size: 0.8rem;
    font-weight: 700;
    font-family: inherit;
    transition: background-color .18s ease, border-color .18s ease, color .18s ease;
}

.wizard-progress-dot.active {
    background: var(--orange);
    border-color: var(--orange);
    color: #fff;
}

.wizard-progress-dot.done {
    background: var(--orange);
    border-color: var(--orange);
    color: #fff;
}

.wizard-progress-label {
    margin-top: 6px;
    font-size: 0.68rem;
    line-height: 1.3;
    color: var(--text-faint);
}

.wizard-progress-label.active { color: var(--text); font-weight: 600; }
.wizard-progress-label.done { color: var(--text-dim); }

.wizard-progress-line {
    flex: 1;
    height: 1px;
    background: var(--card-border);
    margin-top: 15px;
}

.wizard-progress-line.done { background: var(--orange); }

@media (max-width: 640px) {
    .wizard-progress-label { display: none; }
    .wizard-progress-step { width: auto; }
}
.apply-type-card p { margin: 0; color: var(--text-dim); font-size: 0.85rem; line-height: 1.5; }

.apply-form { background: var(--card); border: 1px solid var(--card-border); border-radius: var(--radius); padding: clamp(24px, 4vw, 36px); }

.wizard-section-head {
    padding-bottom: 22px;
    margin-bottom: 26px;
    border-bottom: 1px solid var(--card-border);
}
.wizard-section-head h3 { margin: 0 0 8px; font-size: 1.55rem; font-weight: 800; }
.wizard-section-head p { margin: 0; max-width: 640px; color: var(--text-dim); font-size: 0.92rem; line-height: 1.5; }

.apply-field { margin-bottom: 30px; }
.apply-field label { display: block; font-weight: 600; margin-bottom: 4px; font-size: 0.96rem; font-family: inherit; color: #e2d5c3; }
.apply-field-hint { color: var(--text-faint); font-size: 0.82rem; margin-bottom: 12px; }
.apply-field .req { color: var(--red); margin-left: 3px; }
.apply-field input:not([type="checkbox"]), .apply-field textarea {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--card-border);
    border-radius: 0;
    padding: 8px 2px 10px;
    color: var(--text-dim);
    font-family: inherit;
    font-size: 0.92rem;
    resize: none;
    overflow: hidden;
    transition: border-color .18s ease;
}
.apply-field input:not([type="checkbox"])::placeholder, .apply-field textarea::placeholder { color: var(--text-faint); }
.apply-field input:not([type="checkbox"]):focus, .apply-field textarea:focus { outline: none; border-color: var(--orange); }
.apply-field input:not([type="checkbox"])[readonly], .apply-field textarea[readonly] { color: var(--text-dim); border-color: var(--card-border); cursor: default; }
.apply-field textarea { min-height: 24px; }

.apply-msg { margin-top: 16px; font-size: 0.9rem; }
.apply-msg.error { color: var(--red); }
.apply-msg.success { color: var(--green); }

.apply-field-checkbox { margin-bottom: 16px; }

.apply-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    cursor: pointer;
}

.apply-checkbox-input {
    -webkit-appearance: none;
    appearance: none;
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    margin: 1px 0 0;
    padding: 0;
    border-radius: 6px;
    border: 1.5px solid var(--card-border);
    background: var(--bg-soft);
    position: relative;
    cursor: pointer;
    transition: background-color .16s ease, border-color .16s ease;
}

.apply-checkbox-input::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 13px;
    opacity: 0;
    transform: scale(0.6);
    transition: opacity .14s ease, transform .14s ease;
}

.apply-checkbox-input:checked {
    background: #F97316;
    border-color: #F97316;
}

.apply-checkbox-input:checked::after {
    opacity: 1;
    transform: scale(1);
}

.apply-checkbox-input:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
}

.apply-checkbox-label { color: #e2d5c3; font-weight: 600; font-size: 0.96rem; line-height: 1.4; }


.wizard-nav {
    display: flex;
    gap: 14px;
}

.wizard-btn {
    display: inline-flex;
    flex: 1;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 15px 28px;
    border-radius: 10px;
    border: none;
    background: var(--orange);
    color: #fff;
    font-family: 'Inter', 'gg sans', 'Noto Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-weight: 700;
    font-size: 0.98rem;
    cursor: pointer;
    transition: background-color .18s ease, color .18s ease;
}
.wizard-btn:hover { background: var(--gold); }
.wizard-btn:disabled { opacity: 0.6; cursor: default; }

.wizard-btn.ghost {
    background: #ff8a3d33;
    color: var(--gold);
}
.wizard-btn.ghost:hover { background: #ff8a3d4d; color: var(--gold); }

.review-filter-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 26px;
}

.review-search-input {
    display: block;
    width: 100%;
    max-width: 420px;
    flex: 1 1 auto;
    min-width: 0;
    padding: 12px 16px;
    background: var(--card);
    border: 1px solid var(--card-border);
    border-radius: 10px;
    color: var(--text);
    font-family: inherit;
    font-size: 0.92rem;
    box-sizing: border-box;
    transition: border-color .15s ease;
}
.review-search-input:focus { outline: none; border-color: var(--accent, var(--orange)); }
.review-search-input::placeholder { color: var(--text-faint); }

.custom-select {
    position: relative;
    min-width: 170px;
}

.custom-select-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
    padding: 12px 16px;
    background: var(--card);
    border: 1px solid var(--card-border);
    border-radius: 10px;
    color: var(--text);
    font-family: inherit;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: border-color .15s ease;
}
.custom-select-btn svg { flex-shrink: 0; color: var(--text-faint); transition: transform .18s ease; }
.custom-select.open .custom-select-btn { border-color: var(--orange); }
.custom-select.open .custom-select-btn svg { transform: rotate(180deg); }

.custom-select-menu {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background: var(--card);
    border: 1px solid var(--card-border);
    border-radius: 10px;
    padding: 6px;
    box-shadow: 0 14px 28px -12px #000000a0;
    z-index: 20;
    opacity: 0;
    transform: translateY(-6px);
    pointer-events: none;
    transition: opacity .15s ease, transform .15s ease;
}
.custom-select.open .custom-select-menu {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.custom-select-option {
    padding: 9px 12px;
    border-radius: 7px;
    color: var(--text-dim);
    font-size: 0.86rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color .15s ease, color .15s ease;
}
.custom-select-option:hover { background: #ff8a3d1a; color: var(--gold); }
.custom-select-option.active { color: var(--orange); }

.staff-review-divider {
    height: 1px;
    background: var(--card-border);
    margin: 10px 0;
}

.review-browse {
    transition: opacity .2s ease, transform .2s ease;
    opacity: 1;
    transform: translateX(0);
}
.review-browse.review-fade-out {
    opacity: 0;
    transform: translateX(-16px);
    pointer-events: none;
}

.staff-review-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
}

.staff-review-card {
    background: var(--card);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    padding: 20px 16px;
    text-align: center;
    cursor: pointer;
    transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
    transform: translateZ(0);
    backface-visibility: hidden;
}
.staff-review-card:hover {
    border-color: var(--orange);
    transform: translateY(-3px) translateZ(0);
    box-shadow: 0 14px 28px -16px #000000a0;
}

.staff-review-card.skel-card-mode { cursor: default; }
.staff-review-card.skel-card-mode:hover {
    border-color: var(--card-border);
    transform: translateZ(0);
    box-shadow: none;
}

.staff-review-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #332619;
    margin: 0 auto 12px;
    display: block;
    object-fit: cover;
}

.staff-review-name { font-weight: 700; font-size: 0.95rem; margin-bottom: 4px; }

.staff-review-id {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    color: var(--text-faint);
    font-size: 0.72rem;
    margin-bottom: 3px;
}
.staff-review-id:last-of-type { margin-bottom: 10px; }
.staff-review-id svg { flex-shrink: 0; opacity: 0.8; }

.staff-review-rating { font-size: 0.8rem; color: var(--text-dim); }
.staff-review-count { color: var(--text-faint); }

.stars { color: var(--gold); letter-spacing: 1px; }
.staff-review-rating .stars { color: var(--orange); }

.review-detail {
    opacity: 1;
    transform: translateX(0);
    transition: opacity .22s ease, transform .22s ease;
}
.review-detail.review-slide-in-prep {
    opacity: 0;
    transform: translateX(24px);
}

.review-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: none;
    border: none;
    color: var(--text-dim);
    font-family: inherit;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    padding: 0 0 20px;
    transition: color .15s ease;
}
.review-back-btn svg { transition: transform .15s ease; flex-shrink: 0; }
.review-back-btn:hover { color: var(--gold); }
.review-back-btn:hover svg { transform: translateX(-3px); }

.review-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 28px;
    align-items: start;
}

@media (max-width: 760px) {
    .review-layout { grid-template-columns: 1fr; }
}

.review-profile {
    background: var(--card);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    padding: 28px 20px;
    text-align: center;
    position: sticky;
    top: 20px;
}

.review-profile-avatar {
    width: 84px;
    height: 84px;
    border-radius: 50%;
    background: #332619;
    object-fit: cover;
    margin: 0 auto 14px;
    display: block;
    border: 2px solid var(--card-border);
}

.review-profile-name { font-size: 1.1rem; font-weight: 800; margin-bottom: 4px; }

.review-profile-id {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: var(--text-faint);
    font-size: 0.78rem;
    margin-bottom: 4px;
}
.review-profile-id:last-of-type { margin-bottom: 0; }
.review-profile-id svg { flex-shrink: 0; opacity: 0.8; }

.review-profile-divider {
    height: 1px;
    background: var(--card-border);
    margin: 14px 0;
}

.review-profile-rating { font-size: 1.3rem; margin-bottom: 4px; }
.review-profile-avg { color: var(--text-dim); font-size: 0.82rem; }

.review-compose-card {
    background: var(--card);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 32px;
}

.review-compose-card textarea {
    width: 100%;
    min-height: 90px;
    margin-top: 14px;
    padding: 12px 14px;
    background: var(--bg-soft);
    border: 1px solid var(--card-border);
    border-radius: 10px;
    color: var(--text);
    font-family: inherit;
    font-size: 0.92rem;
    resize: vertical;
}
.review-compose-card textarea {
    transition: border-color .15s ease, box-shadow .15s ease;
}
.review-compose-card textarea:focus {
    outline: none;
    border-color: var(--orange);
    box-shadow: 0 0 0 3px #ff8a3d2e;
}

.star-picker {
    display: flex;
    gap: 6px;
    font-size: 1.8rem;
    line-height: 1;
    margin-top: 4px;
}
.star-pick {
    color: var(--card-border);
    cursor: pointer;
    transition: color .12s ease, transform .12s ease;
}
.star-pick.hover, .star-pick.filled { color: var(--gold); }
.star-pick:hover { transform: scale(1.12); }

.review-list-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 16px;
}
.review-list-head h3 { margin: 0; font-size: 1.1rem; }
.review-count-badge { color: var(--text-faint); font-size: 0.82rem; }

.review-card-item {
    display: flex;
    gap: 14px;
    background: var(--card);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    padding: 18px 20px;
    margin-bottom: 14px;
    max-height: 900px;
    overflow: hidden;
    transition: opacity .25s ease, transform .25s ease, max-height .25s ease, margin .25s ease, padding .25s ease;
}
.review-card-item.review-card-exit {
    opacity: 0;
    transform: translateY(-6px) scale(0.98);
    max-height: 0;
    margin-top: 0;
    margin-bottom: 0;
    padding-top: 0;
    padding-bottom: 0;
    border-width: 0;
}

.review-card-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
    background: #332619;
    flex-shrink: 0;
}

.review-card-body { flex: 1; min-width: 0; }

.review-card-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 42px;
    margin-bottom: 6px;
}
.review-card-top {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}
.review-card-top-right {
    display: flex;
    align-items: center;
    gap: 10px;
}
.review-card-date { color: var(--text-faint); font-size: 0.78rem; }
.review-card-author { font-weight: 700; font-size: 0.88rem; }
.review-own-tag { color: var(--gold); font-weight: 600; font-size: 0.78rem; }

.review-card-target-wrap {
    display: flex;
    justify-content: flex-end;
    margin-top: 10px;
}

.review-card-target {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px 4px 4px;
    background: #ffffff0a;
    border-radius: 999px;
    color: var(--text-dim);
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color .15s ease, color .15s ease;
}
.review-card-target:hover { background: #ffffff14; color: var(--gold); }
.review-card-target img { width: 20px; height: 20px; border-radius: 50%; object-fit: cover; background: #332619; }

.review-card-text { color: var(--text-dim); font-size: 0.9rem; line-height: 1.55; white-space: pre-wrap; }

.review-flag-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 26px;
    height: 26px;
    padding: 0;
    background: none;
    border: 1px solid var(--card-border);
    border-radius: 50%;
    color: var(--text-faint);
    cursor: pointer;
    transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.review-flag-btn:hover { background: var(--red); border-color: var(--red); color: #fff; }
.review-flag-btn:disabled { opacity: 0.6; cursor: default; }

.modal-overlay {
    position: fixed;
    inset: 0;
    background: #000000a0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    padding: 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity .18s ease;
}
.modal-overlay.show { opacity: 1; pointer-events: auto; }

.modal-box {
    background: var(--card);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    padding: 26px;
    width: 100%;
    max-width: 420px;
    transform: scale(0.96) translateY(6px);
    transition: transform .18s ease;
}
.modal-overlay.show .modal-box { transform: scale(1) translateY(0); }

.modal-box textarea {
    width: 100%;
    min-height: 80px;
    margin-top: 6px;
    padding: 12px 14px;
    background: var(--bg-soft);
    border: 1px solid var(--card-border);
    border-radius: 10px;
    color: var(--text);
    font-family: inherit;
    font-size: 0.9rem;
    resize: vertical;
    transition: border-color .18s ease, box-shadow .18s ease;
}
.modal-box textarea:focus {
    outline: none;
    border-color: var(--orange);
    box-shadow: 0 0 0 3px #ff8a3d2e;
}

.modal-actions-divider {
    height: 1px;
    background: var(--card-border);
    margin: 18px 0 16px;
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.btn-sm {
    padding: 9px 18px;
    font-size: 0.85rem;
}

.modpanel-3col {
    display: grid;
    grid-template-columns: 340px 1fr 1fr;
    gap: 20px;
    align-items: stretch;
    min-height: calc(100vh - 320px);
}

@media (max-width: 1080px) {
    .modpanel-3col { grid-template-columns: 1fr 1fr; }
    .modpanel-3col > aside { grid-column: 1 / -1; }
}

@media (max-width: 700px) {
    .modpanel-3col { grid-template-columns: 1fr; }
}

.modpanel-card {
    background: var(--card);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    padding: 24px;
    height: 100%;
    min-height: fit-content;
}

#createLogWrap .modpanel-card { display: flex; flex-direction: column; }
#createLogWrap .apply-field { margin-bottom: 22px; }
#createLogWrap .apply-field:last-of-type { margin-bottom: 24px; }

.modpanel-profile-card {
    background: var(--card);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    padding: 22px 20px;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.modpanel-profile-top {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}

.modpanel-profile-avatar { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; background: #332619; flex-shrink: 0; }
.modpanel-profile-name { font-weight: 700; font-size: 0.95rem; }
.modpanel-profile-id { color: var(--text-faint); font-size: 0.76rem; margin-top: 2px; }

.modpanel-profile-name-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.modpanel-status-row {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--text-dim);
    font-size: 0.78rem;
    font-weight: 600;
}
.modpanel-status-row .dot { flex-shrink: 0; }

.modpanel-shift-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 18px;
}

.modpanel-log-item {
    position: relative;
    background: var(--bg-soft);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 16px 44px 16px 18px;
    margin-bottom: 12px;
    text-align: left;
}

.modpanel-log-item.modpanel-log-bolo-active { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold) inset; }

@keyframes modpanel-log-enter {
    0% { opacity: 0; transform: translateY(-8px); background-color: #ff8a3d22; }
    100% { opacity: 1; transform: translateY(0); }
}
.modpanel-log-enter { animation: modpanel-log-enter .5s ease; }

.modpanel-log-item { max-height: 900px; transition: opacity .25s ease, transform .25s ease, max-height .25s ease, margin .25s ease, padding .25s ease; overflow: hidden; }
.modpanel-log-item.modpanel-log-exit { opacity: 0; transform: translateY(-6px) scale(0.98); max-height: 0; margin-top: 0; margin-bottom: 0; padding-top: 0; padding-bottom: 0; border-width: 0; }

.modpanel-log-staff-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}
.modpanel-log-staff-avatar { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; background: #332619; flex-shrink: 0; }
.modpanel-log-staff-name { font-size: 0.92rem; font-weight: 700; color: var(--text); line-height: 1.25; }
.modpanel-log-staff-handle { font-size: 0.76rem; color: var(--text-faint); line-height: 1.2; }

.modpanel-log-type-title { display: flex; align-items: center; gap: 10px; font-size: 1.15rem; font-weight: 800; color: var(--text); margin-bottom: 8px; }
.modpanel-log-type-title .modpanel-bolo-status { position: relative; top: 1px; }

.modpanel-log-user-line { display: flex; align-items: center; gap: 6px; }
.modpanel-log-user-avatar { width: 20px; height: 20px; border-radius: 50%; object-fit: cover; background: #332619; flex-shrink: 0; }

.modpanel-log-line {
    text-align: left;
    font-size: 0.85rem;
    line-height: 1.7;
}
.modpanel-log-field-label { color: var(--text); font-weight: 700; }
.modpanel-log-field-value { color: var(--text-dim); font-weight: 500; }

.modpanel-log-edited-tag {
    margin-top: 8px;
    display: inline-flex;
    color: var(--text-faint);
    font-size: 0.72rem;
    font-style: italic;
}

.modpanel-history-item {
    border-radius: 8px;
    background: #ffffff05;
    border: 1px solid var(--card-border);
    margin-bottom: 8px;
    overflow: hidden;
}
.modpanel-history-item:last-child { margin-bottom: 0; }

.modpanel-history-head {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
    background: none;
    border: none;
    text-align: left;
    cursor: pointer;
    color: inherit;
    font-family: inherit;
}
.modpanel-history-head:hover { background: #ffffff08; }
.modpanel-history-tag { font-size: 0.85rem; font-weight: 600; color: var(--text); }
.modpanel-history-time { font-size: 0.76rem; color: var(--text-faint); margin-top: 2px; }
.modpanel-history-chevron { color: var(--text-faint); flex-shrink: 0; transition: transform .2s ease; }
.modpanel-history-item.open .modpanel-history-chevron { transform: rotate(180deg); }

.modpanel-history-detail {
    max-height: 0;
    overflow: hidden;
    transition: max-height .25s ease;
}
.modpanel-history-item.open .modpanel-history-detail { max-height: 400px; }

.modpanel-history-change {
    padding: 8px 12px;
    border-top: 1px solid var(--card-border);
}
.modpanel-history-change-field { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; color: var(--text-faint); margin-bottom: 3px; }
.modpanel-history-change-diff { font-size: 0.82rem; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.modpanel-history-from { color: var(--red); text-decoration: line-through; }
.modpanel-history-arrow { color: var(--text-faint); }
.modpanel-history-to { color: var(--green); }
.modpanel-history-change-empty { padding: 8px 12px; border-top: 1px solid var(--card-border); font-size: 0.78rem; color: var(--text-faint); }

.modpanel-bolo-status {
    display: inline-block;
    padding: 1px 8px;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-left: 4px;
}
.modpanel-bolo-status.open { background: #ffc67022; color: var(--gold); }
.modpanel-bolo-status.completed { background: #8faf5c22; color: var(--green); }
.modpanel-bolo-status.denied { background: #d6634a22; color: var(--red); }

.modpanel-log-menu-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    background: none;
    border: none;
    border-radius: 7px;
    color: var(--text-faint);
    cursor: pointer;
    transition: background-color .15s ease, color .15s ease;
}
.modpanel-log-menu-btn:hover { background: #ffffff14; color: var(--text); }

.modpanel-log-dropdown {
    position: absolute;
    top: 42px;
    right: 12px;
    min-width: 140px;
    background: var(--card);
    border: 1px solid var(--card-border);
    border-radius: 10px;
    padding: 6px;
    box-shadow: 0 14px 28px -12px #000000a0;
    z-index: 20;
    opacity: 0;
    transform: translateY(-6px) scale(0.97);
    pointer-events: none;
    transition: opacity .15s ease, transform .15s ease;
}
.modpanel-log-dropdown.show { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }

.modpanel-log-dropdown-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 7px;
    color: var(--text-dim);
    font-size: 0.84rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color .15s ease, color .15s ease;
}
.modpanel-log-dropdown-item:hover { background: #ff8a3d1a; color: var(--gold); }
.modpanel-log-dropdown-item.danger:hover { background: #d6634a22; color: var(--red); }
.modpanel-log-dropdown-item.disabled { cursor: not-allowed; opacity: 0.45; }
.modpanel-log-dropdown-item.disabled:hover { background: none; color: var(--text-dim); }

.modpanel-filter-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    flex-shrink: 0;
    background: var(--card);
    border: 1px solid var(--card-border);
    border-radius: 10px;
    color: var(--text-dim);
    cursor: pointer;
    transition: border-color .15s ease, color .15s ease, background-color .15s ease;
}
.modpanel-filter-toggle:hover, .modpanel-filter-toggle.active { border-color: var(--orange); color: var(--gold); background: #ff8a3d14; }

.modpanel-filter-panel {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 340px;
    max-width: calc(100vw - 40px);
    z-index: 30;
    padding: 18px;
    background: var(--card);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    box-shadow: 0 20px 40px -16px #000000a0;
    opacity: 0;
    transform: translateY(-6px) scale(0.98);
    pointer-events: none;
    transition: opacity .18s ease, transform .18s ease;
}
.modpanel-filter-panel.show {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.modpanel-multiselect .custom-select-menu,
#filterStaffMenu {
    max-height: 300px;
    overflow-y: auto;
}

.modpanel-multiselect .custom-select-menu,
#filterStaffMenu,
.autocomplete-menu {
    scrollbar-width: thin;
    scrollbar-color: var(--orange) transparent;
}
.modpanel-multiselect .custom-select-menu::-webkit-scrollbar,
#filterStaffMenu::-webkit-scrollbar,
.autocomplete-menu::-webkit-scrollbar {
    width: 6px;
}
.modpanel-multiselect .custom-select-menu::-webkit-scrollbar-track,
#filterStaffMenu::-webkit-scrollbar-track,
.autocomplete-menu::-webkit-scrollbar-track {
    background: transparent;
}
.modpanel-multiselect .custom-select-menu::-webkit-scrollbar-thumb,
#filterStaffMenu::-webkit-scrollbar-thumb,
.autocomplete-menu::-webkit-scrollbar-thumb {
    background: var(--orange);
    border-radius: 999px;
    border: none;
}
.modpanel-multiselect .custom-select-menu::-webkit-scrollbar-thumb:hover,
#filterStaffMenu::-webkit-scrollbar-thumb:hover,
.autocomplete-menu::-webkit-scrollbar-thumb:hover {
    background: var(--gold);
}

.modpanel-filter-types {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.modpanel-filter-check {
    display: flex;
    align-items: center;
    padding: 9px 12px;
    border-radius: 7px;
    font-size: 0.84rem;
    color: var(--text-dim);
    font-weight: 600;
    cursor: pointer;
    transition: background-color .15s ease, color .15s ease;
}
.modpanel-filter-check:hover { background: #ff8a3d14; color: var(--text); }
.modpanel-filter-check.selected { background: #ff8a3d2e; color: var(--gold); }
.modpanel-filter-check.selected:hover { background: #ff8a3d42; color: var(--gold); }


.modpanel-filter-panel input[type="text"],
.modpanel-filter-panel input[type="datetime-local"] {
    width: 100%;
    padding: 10px 12px;
    background: var(--card);
    border: 1px solid var(--card-border);
    border-radius: 8px;
    color: var(--text);
    font-family: inherit;
    font-size: 0.85rem;
}
.modpanel-filter-panel input:focus { outline: none; border-color: var(--orange); }

#punishReason, #editReason {
    height: auto;
    min-height: 38px;
    max-height: 220px;
    line-height: 1.5;
    padding: 8px 2px 10px;
    box-sizing: border-box;
    display: block;
    overflow-y: hidden;
}

#punishUsername.modpanel-input-rounded,
#punishReason.modpanel-input-rounded {
    background: var(--card);
    border: 1px solid var(--card-border);
    border-radius: 10px;
    padding: 12px 16px;
    transition: border-color .16s ease;
}
#punishReason.modpanel-input-rounded { padding: 12px 16px; }
#punishUsername.modpanel-input-rounded:focus,
#punishReason.modpanel-input-rounded:focus {
    outline: none;
    border-color: var(--orange);
}

.modpanel-user-input-row { display: flex; align-items: center; gap: 8px; }
.modpanel-user-input-row #punishUsername { flex: 1; min-width: 0; }

.modpanel-copy-id-btn {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    padding: 12px 14px;
    background: var(--card);
    border: 1px solid var(--card-border);
    border-radius: 10px;
    color: var(--text-dim);
    font-size: 0.82rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: border-color .15s ease, color .15s ease, background-color .15s ease;
}
.modpanel-copy-id-btn:hover { border-color: var(--orange); color: var(--gold); }
.modpanel-copy-id-btn.copied { border-color: var(--green); color: var(--green); }

.apply-field-grow { flex: 1; display: flex; flex-direction: column; }

.shift-timer {
    font-size: 2.4rem;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    color: var(--gold);
}

.shift-sub { color: var(--text-faint); font-size: 0.82rem; margin-top: 4px; }

.preset-reason-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.preset-reason-chip {
    padding: 5px 12px;
    background: #ffffff0a;
    border: 1px solid var(--card-border);
    border-radius: 999px;
    color: var(--text-dim);
    font-family: inherit;
    font-size: 0.74rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.preset-reason-chip:hover { background: #ff8a3d1a; border-color: var(--orange); color: var(--gold); }

.modpanel-onduty-heading {
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid var(--card-border);
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-faint);
}

.modpanel-onduty-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 12px;
}

.modpanel-onduty-empty { color: var(--text-faint); font-size: 0.8rem; }

.modpanel-onduty-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 8px;
    border-radius: 8px;
    transition: background-color .15s ease;
}
.modpanel-onduty-item:hover { background: #ffffff0a; }
.modpanel-onduty-item img { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; background: #332619; flex-shrink: 0; }
.modpanel-onduty-info { flex: 1; display: flex; flex-direction: column; overflow: hidden; }
.modpanel-onduty-name { font-size: 0.85rem; font-weight: 600; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.modpanel-onduty-meta { font-size: 0.7rem; color: var(--text-faint); display: flex; flex-wrap: wrap; gap: 4px; }
.modpanel-onduty-live { color: var(--gold); font-weight: 600; }

.modpanel-onduty-break {
    padding: 2px 8px;
    background: var(--orange-soft);
    border-radius: 999px;
    color: var(--gold);
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    flex-shrink: 0;
}

.modpanel-toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    z-index: 200;
    transform: translate(-50%, 12px);
    opacity: 0;
    pointer-events: none;
    background: var(--card);
    border: 1px solid var(--card-border);
    border-radius: 10px;
    padding: 12px 18px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text);
    box-shadow: 0 14px 28px -12px #000000a0;
    transition: opacity .2s ease, transform .2s ease;
    max-width: min(90vw, 380px);
}
.modpanel-toast.show { opacity: 1; transform: translate(-50%, 0); }

.modpanel-shift-stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}
.modpanel-shift-stats-grid > div {
    background: #ffffff08;
    border: 1px solid var(--card-border);
    border-radius: 10px;
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-size: 0.72rem;
    color: var(--text-dim);
}
.modpanel-shift-stats-grid > div span {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text);
}

.autocomplete-menu {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    margin-top: 4px;
    background: var(--card);
    border: 1px solid var(--card-border);
    border-radius: 10px;
    padding: 6px;
    box-shadow: 0 14px 28px -12px #000000a0;
    z-index: 25;
    max-height: 460px;
    overflow-y: auto;
    opacity: 0;
    transform: translateY(-6px);
    pointer-events: none;
    transition: opacity .15s ease, transform .15s ease;
}
.autocomplete-menu.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.autocomplete-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 7px;
    color: var(--text-dim);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color .15s ease, color .15s ease;
}
.autocomplete-option:hover { background: #ff8a3d1a; color: var(--gold); }
.autocomplete-option-ingame { background: #ff8a3d12; }
.autocomplete-option-ingame:hover { background: #ff8a3d24; }

.autocomplete-user {
    display: flex;
    align-items: center;
    gap: 8px;
}
.autocomplete-user img { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; background: #332619; flex-shrink: 0; }

.autocomplete-tag {
    color: var(--text-faint);
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
}

.autocomplete-option-tags { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }

.autocomplete-status {
    display: flex;
    align-items: center;
    gap: 4px;
    color: var(--gold);
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    white-space: nowrap;
}
.autocomplete-status svg { flex-shrink: 0; }

.autocomplete-heading {
    padding: 6px 10px 4px;
    color: var(--text-faint);
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
