:root {
    --bg: #f4f5fb;
    --bg-soft: #f8f9fd;
    --panel: rgba(255, 255, 255, 0.96);
    --panel-strong: #ffffff;
    --panel-muted: #f3f5fb;
    --line: #e6eaf5;
    --line-strong: #d9dfef;
    --text: #23263b;
    --muted: #8a91a8;
    --muted-strong: #68708b;
    --blue: #4e7cf4;
    --blue-soft: #edf3ff;
    --green: #1dbf73;
    --green-soft: #eafaf2;
    --orange: #ffa51f;
    --orange-soft: #fff5e5;
    --coral: #ff7b57;
    --coral-soft: #fff0ec;
    --danger: #f35366;
    --danger-soft: #ffecef;
    --shadow-sm: 0 8px 18px rgba(31, 45, 91, 0.05);
    --shadow-md: 0 18px 45px rgba(31, 45, 91, 0.08);
    --shadow-lg: 0 28px 72px rgba(31, 45, 91, 0.12);
    --radius-lg: 26px;
    --radius-md: 18px;
    --radius-sm: 12px;
}

* { box-sizing: border-box; }
html { background: var(--bg); }
body {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(circle at top left, rgba(78, 124, 244, 0.12), transparent 30%),
        radial-gradient(circle at top right, rgba(29, 191, 115, 0.08), transparent 22%),
        linear-gradient(180deg, #f7f8fc 0%, #f1f3f9 100%);
    color: var(--text);
    font: 15px/1.55 "Manrope", "Segoe UI", sans-serif;
}
a { color: inherit; text-decoration: none; }
code {
    padding: 4px 9px;
    border-radius: 999px;
    background: #eff3fb;
    color: var(--blue);
    font-family: "Outfit", "Segoe UI", sans-serif;
    font-size: 12px;
}

.admin-shell {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
}

.sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    padding: 28px 20px 22px;
    background: rgba(255, 255, 255, 0.82);
    border-right: 1px solid rgba(225, 229, 240, 0.8);
    backdrop-filter: blur(18px);
}

.brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.brand-stack {
    padding: 8px 10px 18px;
    margin-bottom: 10px;
}

.brand-logo {
    display: grid;
    grid-template-columns: repeat(2, 18px);
    gap: 4px;
    padding: 8px;
    border-radius: 18px;
    background: linear-gradient(145deg, #f7f8ff, #eef2ff);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.95), var(--shadow-sm);
}

.brand-logo-img {
    width: 52px;
    height: 52px;
    flex: 0 0 52px;
    display: block;
    object-fit: contain;
    border-radius: 16px;
    background: #111827;
    box-shadow: 0 12px 28px rgba(17, 24, 39, .16);
}

.brand-logo span {
    width: 18px;
    height: 18px;
    display: block;
    border-radius: 5px;
    transform: rotate(45deg);
    background: linear-gradient(135deg, #7190ff, #4769ec);
}

.brand-logo span:nth-child(2) { background: linear-gradient(135deg, #90a8ff, #5679f3); }
.brand-logo span:nth-child(3) { background: linear-gradient(135deg, #5e80f2, #3957d3); }
.brand-logo span:nth-child(4) { background: linear-gradient(135deg, #7f96ff, #4a67df); }

.brand strong {
    display: block;
    font: 800 22px/1 "Outfit", sans-serif;
    letter-spacing: .01em;
}

.brand small {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    font-size: 12px;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.nav {
    display: grid;
    gap: 20px;
    padding: 12px 8px 0;
}

.nav-label {
    margin: 0 0 10px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.nav-links {
    display: grid;
    gap: 6px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 48px;
    padding: 0 14px;
    border-radius: 15px;
    color: var(--muted-strong);
    font-weight: 700;
    transition: .22s ease;
}

.nav-item:hover {
    background: rgba(78, 124, 244, 0.08);
    color: var(--blue);
}

.nav-item.active {
    background: linear-gradient(135deg, #edf3ff, #f6f8ff);
    color: var(--blue);
    box-shadow: inset 0 0 0 1px rgba(78, 124, 244, 0.08);
}

.nav-icon {
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: #f4f6fd;
    color: inherit;
    font-size: 13px;
    flex: 0 0 auto;
}

.nav-item.active .nav-icon {
    background: #ffffff;
    box-shadow: var(--shadow-sm);
}

.sidebar-footer {
    position: absolute;
    left: 20px;
    right: 20px;
    bottom: 22px;
    display: grid;
    gap: 12px;
}

.mini-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 15px;
    border-radius: 18px;
    background: linear-gradient(135deg, #f8fbff, #f1f6ff);
    border: 1px solid var(--line);
}

.mini-card strong {
    display: block;
    font-size: 13px;
    font-weight: 800;
}

.mini-card small {
    color: var(--muted);
    font-size: 11px;
}

.mini-dot {
    width: 12px;
    height: 12px;
    border-radius: 999px;
    background: linear-gradient(135deg, #1ccf7a, #10a95f);
    box-shadow: 0 0 0 6px rgba(29, 191, 115, 0.12);
}

.logout {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    border-radius: 14px;
    background: #fff3f5;
    color: var(--danger);
    font-weight: 800;
    box-shadow: inset 0 0 0 1px rgba(243, 83, 102, 0.12);
}

.main {
    min-width: 0;
    padding: 18px 20px 28px;
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 6px 6px 22px;
}

.topbar-main {
    min-width: 0;
}

.breadcrumbs {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.crumb-home::before {
    content: "⌂";
    display: inline-block;
    margin-right: 8px;
    color: var(--blue);
}

.crumb-sep {
    color: #bcc3d7;
}

.crumb-current {
    color: var(--text);
}

.topbar p {
    margin: 0 0 4px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.topbar h1 {
    margin: 0;
    font: 800 32px/1.05 "Outfit", sans-serif;
    letter-spacing: -.03em;
}

.topbar-tools {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.top-search {
    display: flex;
    align-items: center;
    gap: 10px;
    width: min(320px, 100%);
    min-height: 48px;
    padding: 0 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: var(--shadow-sm);
}

.top-search input {
    border: 0;
    background: transparent;
    min-height: 0;
    padding: 0;
    box-shadow: none;
    font-size: 14px;
}

.top-search input:focus {
    box-shadow: none;
}

.search-icon {
    color: var(--muted);
    font-size: 16px;
}

.status-chip,
.user-chip {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 48px;
    padding: 0 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: var(--shadow-sm);
    font-weight: 700;
}

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

.status-chip strong,
.user-chip strong {
    color: var(--text);
    font-size: 13px;
}

.status-chip span,
.user-chip small {
    color: var(--muted);
    font-size: 12px;
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ffb11b;
}

.avatar {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: linear-gradient(135deg, #58d777, #21b862);
    color: #fff;
    font-weight: 800;
}

.content {
    display: grid;
    gap: 18px;
}

.cards {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.stat,
.panel,
.file-card {
    background: var(--panel);
    border: 1px solid rgba(229, 233, 243, 0.95);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.stat {
    position: relative;
    overflow: hidden;
    padding: 22px 22px 20px;
}

.stat::after {
    content: "";
    position: absolute;
    inset: auto -26px -26px auto;
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(78, 124, 244, 0.12), transparent 70%);
}

.stat-badge {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    margin-bottom: 18px;
    border-radius: 50%;
    font-size: 18px;
    font-weight: 800;
}

.stat-badge.coral { background: var(--coral-soft); color: var(--coral); }
.stat-badge.blue { background: var(--blue-soft); color: var(--blue); }
.stat-badge.orange { background: var(--orange-soft); color: var(--orange); }
.stat-badge.green { background: var(--green-soft); color: var(--green); }

.stat strong {
    display: block;
    margin-bottom: 4px;
    font: 800 34px/1 "Outfit", sans-serif;
    letter-spacing: -.03em;
}

.stat strong.coral { color: var(--coral); }
.stat strong.blue { color: var(--blue); }
.stat strong.orange { color: var(--orange); }
.stat strong.green { color: var(--green); }

.stat span {
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.stat-meta {
    display: block;
    margin-top: 12px;
    color: var(--muted-strong);
    font-size: 12px;
    font-weight: 700;
}

.panel {
    padding: 22px;
}

.panel-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.panel-head h2 {
    margin: 0;
    font: 800 22px/1.1 "Outfit", sans-serif;
}

.panel-head p,
.hint {
    margin: 8px 0 0;
    color: var(--muted);
    font-size: 13px;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 1.8fr .82fr;
    gap: 18px;
    align-items: stretch;
}

.sales-panel {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 18px;
    min-height: 380px;
}

.sales-legend {
    display: grid;
    align-content: start;
    gap: 16px;
}

.legend-item {
    display: grid;
    gap: 4px;
}

.legend-row {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.legend-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
}

.legend-dot.blue { background: #5e7dfa; }
.legend-dot.green { background: #23c276; }
.legend-dot.coral { background: #ff8a66; }
.legend-dot.orange { background: #ffb323; }

.legend-value {
    font: 800 26px/1 "Outfit", sans-serif;
}

.legend-note {
    color: var(--muted);
    font-size: 12px;
}

.view-link {
    margin-top: 8px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 18px;
    border: 0;
    border-radius: 12px;
    background: #eef1fb;
    color: var(--text);
    cursor: pointer;
    font-family: inherit;
    font-weight: 800;
    transition: transform .2s ease, box-shadow .2s ease, opacity .2s ease;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.btn.primary {
    background: linear-gradient(135deg, #4e7cf4, #6287f7);
    color: #fff;
}

.btn.danger {
    background: #fff1f3;
    color: var(--danger);
}

.btn.small {
    min-height: 34px;
    padding: 0 12px;
    border-radius: 10px;
    font-size: 12px;
}

.sales-chart {
    display: grid;
    grid-template-rows: auto auto 1fr auto;
    gap: 14px;
}

.range-pills {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
}

.range-pill {
    padding: 7px 12px;
    border-radius: 999px;
    background: #f5f6fb;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.range-pill.active {
    background: #28c66f;
    color: #fff;
}

.chart-shell {
    position: relative;
    min-height: 250px;
    border-radius: 22px;
    background:
        linear-gradient(to top, rgba(78, 124, 244, 0.05), rgba(78, 124, 244, 0)),
        repeating-linear-gradient(to right, transparent 0, transparent 48px, rgba(230, 234, 245, 0.8) 48px, rgba(230, 234, 245, 0.8) 49px),
        repeating-linear-gradient(to bottom, transparent 0, transparent 52px, rgba(235, 238, 246, 0.9) 52px, rgba(235, 238, 246, 0.9) 53px),
        #fbfcff;
    overflow: hidden;
}

.chart-shell svg {
    position: absolute;
    inset: 16px 12px 26px;
    width: calc(100% - 24px);
    height: calc(100% - 42px);
}

.chart-months {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 4px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
}

.chart-months span { text-align: center; }

.chart-legend {
    display: flex;
    justify-content: center;
    gap: 16px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}

.sales-side {
    display: grid;
    align-content: start;
    gap: 18px;
}

.mini-chart {
    display: grid;
    gap: 20px;
    min-height: 380px;
}

.mini-bars {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 12px;
    min-height: 170px;
    padding: 12px 10px 0;
}

.bar-col {
    flex: 1 1 0;
    display: grid;
    gap: 10px;
    justify-items: center;
}

.bar {
    width: 26px;
    border-radius: 10px 10px 4px 4px;
    background: linear-gradient(180deg, #6b85f7, #466be8);
}

.bar-label {
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
}

.mini-score {
    font: 800 48px/1 "Outfit", sans-serif;
    text-align: center;
}

.mini-sub {
    color: var(--muted);
    text-align: center;
    font-size: 13px;
    font-weight: 700;
}

.dual-panels {
    display: grid;
    grid-template-columns: 1.2fr .9fr;
    gap: 18px;
}

.stats-list {
    display: grid;
    gap: 12px;
}

.list-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 16px 18px;
    border-radius: 18px;
    background: var(--panel-muted);
}

.list-card strong {
    display: block;
    font-size: 14px;
    font-weight: 800;
}

.list-card span {
    color: var(--muted);
    font-size: 12px;
}

.list-chip {
    padding: 10px 12px;
    border-radius: 14px;
    background: #fff;
    font: 800 20px/1 "Outfit", sans-serif;
}

.quick-links {
    display: grid;
    gap: 12px;
}

.quick-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 16px 18px;
    border-radius: 18px;
    background: linear-gradient(135deg, #fbfcff, #f4f7ff);
    border: 1px solid var(--line);
    font-weight: 800;
}

.quick-link small {
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}

.table-wrap {
    overflow: auto;
    border-radius: 20px;
    border: 1px solid var(--line);
}

table {
    width: 100%;
    min-width: 760px;
    border-collapse: collapse;
    background: var(--panel-strong);
}

th,
td {
    padding: 15px 16px;
    border-bottom: 1px solid #eef1f7;
    text-align: left;
    vertical-align: middle;
}

th {
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
    background: #fafbff;
}

tr:hover td {
    background: #fcfdff;
}

tr:last-child td {
    border-bottom: 0;
}

.game-cell {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 260px;
}

.game-cell img,
.thumb {
    width: 52px;
    height: 62px;
    object-fit: cover;
    border-radius: 14px;
    background: #eef2fb;
}

.thumb {
    width: 96px;
    height: 54px;
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 999px;
    background: #eef6ff;
    color: var(--blue);
    font-size: 11px;
    font-weight: 800;
}

.filters,
.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.filters {
    grid-template-columns: minmax(180px, 1fr) 220px auto;
    margin-bottom: 18px;
}

.analytics-cards {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.analytics-grid {
    grid-template-columns: 1.55fr .85fr;
}

.analytics-bottom-grid {
    grid-template-columns: 1.35fr .75fr;
}

.analytics-filter-bar {
    padding: 18px 20px;
}

.analytics-filter-form {
    display: grid;
    grid-template-columns: minmax(220px, 1.25fr) repeat(2, minmax(180px, .72fr)) repeat(2, minmax(150px, .62fr)) auto;
    gap: 14px;
    align-items: end;
}

.analytics-filter-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.is-disabled {
    opacity: .55;
}

.analytics-panel-head {
    margin-bottom: 0;
}

.analytics-subhead {
    margin-top: 24px;
}

.analytics-trend-panel {
    grid-template-columns: 240px minmax(0, 1fr);
}

.analytics-trend-shell {
    display: grid;
    gap: 16px;
}

.analytics-bars {
    display: flex;
    align-items: end;
    gap: 14px;
    min-height: 320px;
    padding: 12px 4px 0;
    overflow-x: auto;
}

.analytics-bar-group {
    min-width: 64px;
    display: grid;
    gap: 10px;
    justify-items: center;
}

.analytics-bar-stack {
    height: 220px;
    width: 100%;
    display: flex;
    align-items: end;
    justify-content: center;
    gap: 8px;
    padding: 0 8px;
    border-radius: 18px;
    background:
        linear-gradient(180deg, rgba(255,255,255,.8), rgba(247,249,255,.95)),
        repeating-linear-gradient(to top, transparent 0, transparent 39px, rgba(230,234,245,.8) 39px, rgba(230,234,245,.8) 40px);
    border: 1px solid var(--line);
}

.analytics-bar {
    width: 16px;
    min-height: 10px;
    border-radius: 999px 999px 6px 6px;
}

.analytics-bar.views {
    background: linear-gradient(180deg, #ff9b7c, #ff7b57);
}

.analytics-bar.downloads {
    background: linear-gradient(180deg, #6d8cff, #4972f1);
}

.analytics-bar-values,
.analytics-bar-label {
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
    text-align: center;
}

.analytics-side-panel {
    display: grid;
    align-content: start;
    gap: 18px;
}

.analytics-mix-list,
.analytics-top-games {
    display: grid;
    gap: 14px;
}

.analytics-mix-item {
    display: grid;
    gap: 8px;
}

.analytics-mix-head,
.analytics-top-game {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.analytics-mix-head strong,
.analytics-top-game strong {
    font-size: 14px;
}

.analytics-top-game span {
    color: var(--muted);
    font-size: 12px;
}

.analytics-progress {
    width: 100%;
    height: 10px;
    border-radius: 999px;
    background: #eef1fb;
    overflow: hidden;
}

.analytics-progress span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #5a83ff, #2fc486);
}

.analytics-empty {
    min-height: 280px;
    display: grid;
    place-items: center;
    gap: 8px;
    text-align: center;
    color: var(--muted);
}

.analytics-empty strong {
    color: var(--text);
    font: 800 20px/1.1 "Outfit", sans-serif;
}

label {
    display: grid;
    gap: 8px;
    color: var(--muted-strong);
    font-size: 13px;
    font-weight: 800;
}

input,
select,
textarea {
    width: 100%;
    min-height: 46px;
    padding: 12px 14px;
    border: 1px solid var(--line-strong);
    border-radius: 14px;
    background: #fff;
    color: var(--text);
    font: inherit;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #bcd0ff;
    box-shadow: 0 0 0 4px rgba(78, 124, 244, 0.08);
}

textarea {
    min-height: 130px;
    resize: vertical;
}

.check {
    display: flex;
    align-items: center;
    gap: 10px;
}

.check input {
    width: auto;
    min-height: 0;
}

.span-2 {
    grid-column: 1 / -1;
}

.file-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 14px;
}

.file-card {
    padding: 16px 18px;
}

.file-card strong {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
}

.file-card span {
    color: var(--muted);
    font-size: 12px;
}

.actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.actions form {
    margin: 0;
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
}

.pagination a {
    min-width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: rgba(255,255,255,.85);
    font-weight: 800;
}

.pagination a.active {
    background: var(--blue);
    color: #fff;
}

.alert {
    padding: 14px 16px;
    border-radius: 16px;
    background: var(--green-soft);
    color: var(--green);
    font-size: 13px;
    font-weight: 800;
    box-shadow: var(--shadow-sm);
}

.alert.danger {
    background: var(--danger-soft);
    color: var(--danger);
}

.alert.warning {
    background: var(--orange-soft);
    color: var(--orange);
}

.alert.info {
    background: var(--blue-soft);
    color: var(--blue);
}

.login-page {
    display: grid;
    place-items: center;
}

.login-card {
    box-shadow: var(--shadow-lg);
}

.import-log {
    padding: 28px;
}

.log-box {
    max-width: 920px;
    margin: 0 auto;
    padding: 24px;
    border-radius: 24px;
    background: rgba(255,255,255,.95);
    box-shadow: var(--shadow-md);
}

@media (max-width: 1180px) {
    .cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dashboard-grid,
    .dual-panels,
    .sales-panel {
        grid-template-columns: 1fr;
    }

    .analytics-filter-form {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 920px) {
    .admin-shell {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: static;
        height: auto;
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .sidebar-footer {
        position: static;
        margin-top: 18px;
    }

    .main {
        padding: 16px;
    }

    .topbar {
        flex-direction: column;
        align-items: stretch;
    }

    .topbar-tools {
        justify-content: stretch;
    }

    .top-search,
    .status-chip,
    .user-chip {
        width: 100%;
    }

    .filters,
    .form-grid,
    .cards {
        grid-template-columns: 1fr;
    }

    .analytics-filter-form {
        grid-template-columns: 1fr;
    }

    .analytics-filter-actions {
        flex-direction: column;
        align-items: stretch;
    }
}

/* Professional admin refresh: responsive surfaces, motion, and manageability polish. */
.admin-shell::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 18% 12%, rgba(78, 124, 244, 0.12), transparent 24%),
        radial-gradient(circle at 84% 18%, rgba(29, 191, 115, 0.10), transparent 22%);
    z-index: -1;
}

.sidebar {
    overflow-y: auto;
    scrollbar-width: thin;
}

.nav-item {
    position: relative;
    overflow: hidden;
}

.nav-item::after {
    content: "";
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 6px;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--blue), var(--green));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .22s ease;
}

.nav-item:hover::after,
.nav-item.active::after {
    transform: scaleX(1);
}

.crumb-home::before {
    content: "";
    margin-right: 0;
}

.content > *,
.panel,
.stat,
.file-card {
    animation: adminPanelIn .42s cubic-bezier(.2,.8,.2,1) both;
}

.content > *:nth-child(2) { animation-delay: .04s; }
.content > *:nth-child(3) { animation-delay: .08s; }
.content > *:nth-child(4) { animation-delay: .12s; }

.panel,
.stat,
.file-card,
.quick-link,
.list-card {
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease, background .22s ease;
}

.panel:hover,
.stat:hover,
.file-card:hover {
    transform: translateY(-2px);
    border-color: rgba(78, 124, 244, 0.18);
    box-shadow: var(--shadow-lg);
}

.quick-link:hover,
.list-card:hover {
    transform: translateX(4px);
}

.stat-badge {
    font-size: 0;
}

.stat-badge::before {
    font-size: 15px;
    font-weight: 900;
}

.stat:nth-child(1) .stat-badge::before { content: "G"; }
.stat:nth-child(2) .stat-badge::before { content: "P"; }
.stat:nth-child(3) .stat-badge::before { content: "2"; }
.stat:nth-child(4) .stat-badge::before { content: "D"; }

.panel-head {
    flex-wrap: wrap;
}

.panel-head .btn {
    flex-shrink: 0;
}

.form-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.form-actions .btn {
    min-width: 150px;
}

.table-wrap {
    background: rgba(255,255,255,.76);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.9);
}

tbody tr {
    animation: adminRowIn .32s ease both;
    animation-delay: calc(var(--row-index, 0) * 18ms);
    transition: background .18s ease, transform .18s ease;
}

tbody tr:hover {
    background: rgba(78, 124, 244, 0.055);
    transform: translateX(3px);
}

input,
select,
textarea {
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

input:focus,
select:focus,
textarea:focus {
    transform: translateY(-1px);
}

.btn {
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent 0%, rgba(255,255,255,.34) 45%, transparent 70%);
    transform: translateX(-120%);
    transition: transform .5s ease;
}

.btn:hover::before {
    transform: translateX(120%);
}

.btn.is-loading {
    opacity: .72;
    pointer-events: none;
}

.quick-link span {
    min-width: 34px;
    height: 28px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: var(--blue-soft);
    color: var(--blue);
    font-size: 11px;
    font-weight: 900;
}

.quick-link span {
    font-size: 0;
}

.quick-link span::before {
    content: "Go";
    font-size: 11px;
}

@keyframes adminPanelIn {
    from {
        opacity: 0;
        transform: translateY(14px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes adminRowIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 920px) {
    .sidebar {
        padding: 18px 14px;
    }

    .brand-stack {
        padding-bottom: 10px;
    }

    .nav {
        display: flex;
        gap: 12px;
        overflow-x: auto;
        padding: 10px 4px 4px;
        scroll-snap-type: x proximity;
    }

    .nav-group {
        min-width: 220px;
        scroll-snap-align: start;
    }

    .panel {
        padding: 18px;
        border-radius: 22px;
    }

    .panel-head {
        align-items: stretch;
    }

    .panel-head > .btn,
    .filters .btn,
    .form-actions .btn {
        width: 100%;
    }

    table {
        min-width: 760px;
    }

    .actions {
        min-width: 150px;
    }
}

@media (max-width: 560px) {
    .main {
        padding: 12px;
    }

    .topbar {
        padding-bottom: 14px;
    }

    .cards {
        gap: 12px;
    }

    .panel,
    .stat {
        border-radius: 18px;
    }

    .topbar h1 {
        font-size: 30px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
    }
}

/* NextPlay Admin v2: ecommerce-style responsive dashboard refresh */
:root {
    --admin-bg: #f5f6fa;
    --admin-surface: #ffffff;
    --admin-surface-2: #f7f8fb;
    --admin-text: #111827;
    --admin-muted: #6b7280;
    --admin-line: #eceff5;
    --admin-primary: #ff6b35;
    --admin-primary-2: #ff8a5b;
    --admin-blue: #2f73ff;
    --admin-green: #22c55e;
    --admin-violet: #8067f4;
    --admin-shadow: 0 18px 48px rgba(17, 24, 39, .07);
    --admin-shadow-soft: 0 10px 28px rgba(17, 24, 39, .055);
}

body.admin-shell {
    display: grid;
    grid-template-columns: 292px minmax(0, 1fr);
    min-height: 100vh;
    background:
        radial-gradient(circle at 18% 10%, rgba(255, 107, 53, .09), transparent 28%),
        radial-gradient(circle at 88% 18%, rgba(47, 115, 255, .08), transparent 26%),
        var(--admin-bg);
    color: var(--admin-text);
    font-family: "Manrope", "Segoe UI", sans-serif;
}

.icon-svg {
    width: 20px;
    height: 20px;
    display: block;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    padding: 24px 18px;
    display: flex;
    flex-direction: column;
    background: rgba(255, 255, 255, .96);
    border-right: 1px solid var(--admin-line);
    box-shadow: 12px 0 40px rgba(17, 24, 39, .035);
    backdrop-filter: blur(16px);
    z-index: 30;
}

.brand-stack {
    min-height: 70px;
    padding: 0 10px 22px;
    border-bottom: 1px solid var(--admin-line);
}

.brand-logo {
    width: 48px;
    height: 48px;
    grid-template-columns: repeat(2, 12px);
    align-content: center;
    justify-content: center;
    gap: 5px;
    border-radius: 16px;
    background: #111827;
    box-shadow: 0 12px 28px rgba(17, 24, 39, .16);
}

.brand-logo span {
    width: 12px;
    height: 12px;
    border-radius: 4px;
    background: linear-gradient(135deg, #fff, #cfd6e7);
}

.brand strong {
    font: 800 26px/1 "Outfit", sans-serif;
    letter-spacing: -.02em;
}

.brand small {
    margin-top: 5px;
    color: var(--admin-muted);
    letter-spacing: .06em;
}

.nav {
    display: grid;
    gap: 20px;
    padding: 22px 4px 18px;
    flex: 1 1 auto;
    overflow-y: auto;
    min-height: 0;
}

.nav-label {
    margin: 0 10px 8px;
    color: #a1a7b3;
    font-size: 10px;
    letter-spacing: .16em;
}

.nav-links {
    gap: 3px;
}

.nav-item {
    min-height: 48px;
    gap: 12px;
    padding: 0 12px;
    border-radius: 0;
    border-left: 3px solid transparent;
    color: #111827;
    font-size: 15px;
    background: transparent;
}

.nav-item::after {
    display: none;
}

.nav-item:hover {
    color: var(--admin-primary);
    background: linear-gradient(90deg, rgba(255, 107, 53, .09), transparent);
    transform: translateX(3px);
}

.nav-item.active {
    color: var(--admin-primary);
    background: linear-gradient(90deg, rgba(255, 107, 53, .13), rgba(255, 107, 53, .02));
    border-left-color: var(--admin-primary);
    box-shadow: none;
}

.nav-icon {
    width: 34px;
    height: 34px;
    border-radius: 12px;
    background: #f3f5f9;
    color: currentColor;
}

.nav-item.active .nav-icon {
    background: #fff;
    box-shadow: var(--admin-shadow-soft);
}

.sidebar-footer {
    position: static;
    flex: 0 0 auto;
    display: grid;
    gap: 12px;
    padding-top: 14px;
}

.mini-card {
    border-radius: 18px;
    background: linear-gradient(135deg, #111827, #263142);
    color: #fff;
    border: 0;
    box-shadow: var(--admin-shadow);
}

.mini-card small {
    color: rgba(255,255,255,.66);
}

.logout {
    gap: 8px;
    border-radius: 16px;
    background: #fff2ee;
    color: var(--admin-primary);
}

.main {
    min-width: 0;
    padding: 0 30px 34px;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    min-height: 76px;
    margin: 0 -30px 26px;
    padding: 14px 30px;
    background: rgba(255,255,255,.92);
    border-bottom: 1px solid var(--admin-line);
    backdrop-filter: blur(18px);
}

.mobile-menu,
.tool-icon {
    width: 44px;
    height: 44px;
    display: inline-grid;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: #f3f5f8;
    color: #111827;
    cursor: pointer;
    transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}

.mobile-menu {
    display: none;
}

.tool-icon:hover,
.mobile-menu:hover {
    transform: translateY(-2px);
    background: #fff;
    box-shadow: var(--admin-shadow-soft);
}

.breadcrumbs {
    margin-bottom: 4px;
    font-size: 12px;
}

.crumb-home,
.crumb-current {
    color: var(--admin-primary);
}

.topbar p {
    color: var(--admin-muted);
    font-size: 12px;
}

.topbar h1 {
    font-size: clamp(26px, 3vw, 38px);
}

.topbar-tools {
    gap: 10px;
}

.top-search {
    width: min(340px, 32vw);
    min-height: 46px;
    box-shadow: none;
    background: #f4f5f7;
}

.search-icon {
    color: #111827;
}

.status-chip,
.user-chip {
    min-height: 46px;
    box-shadow: none;
    background: #f4f5f7;
}

.status-dot {
    background: var(--admin-green);
    box-shadow: 0 0 0 5px rgba(34, 197, 94, .14);
}

.avatar {
    background: linear-gradient(135deg, #ffd7bd, #ff8a5b);
    color: #743014;
}

.content {
    gap: 22px;
}

.cards {
    grid-template-columns: repeat(4, minmax(210px, 1fr));
}

.panel,
.stat,
.file-card {
    background: rgba(255,255,255,.96);
    border: 1px solid rgba(236, 239, 245, .9);
    border-radius: 16px;
    box-shadow: var(--admin-shadow);
}

.panel {
    padding: clamp(18px, 2vw, 28px);
}

.panel:hover,
.stat:hover,
.file-card:hover {
    transform: translateY(-3px);
}

.panel-head {
    align-items: center;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--admin-line);
}

.panel-head h2 {
    font-size: clamp(20px, 2vw, 26px);
}

.panel-head p,
.hint {
    color: var(--admin-muted);
}

.stat {
    min-height: 170px;
}

.stat::after {
    background: radial-gradient(circle, rgba(255, 107, 53, .14), transparent 70%);
}

.stat-badge {
    border-radius: 16px;
}

.btn {
    min-height: 42px;
    border-radius: 12px;
    background: #f2f4f8;
    color: #111827;
}

.btn.primary {
    background: linear-gradient(135deg, var(--admin-primary), var(--admin-primary-2));
    box-shadow: 0 10px 20px rgba(255, 107, 53, .18);
}

.btn.danger {
    background: #fff0f0;
    color: #ef4444;
}

.filters,
.form-grid {
    gap: 16px;
}

.filters {
    grid-template-columns: minmax(220px, 1fr) minmax(160px, 240px) minmax(150px, 220px) auto;
    align-items: end;
}

label {
    color: #4b5563;
}

input,
select,
textarea {
    min-height: 48px;
    border-radius: 14px;
    border-color: #e4e8f0;
    background: #fbfcff;
}

input:focus,
select:focus,
textarea:focus {
    border-color: rgba(255, 107, 53, .55);
    box-shadow: 0 0 0 4px rgba(255, 107, 53, .11);
}

.check {
    padding: 12px 14px;
    border: 1px solid #e7ebf2;
    border-radius: 14px;
    background: #fbfcff;
}

.check input {
    accent-color: var(--admin-primary);
}

.table-wrap {
    border-radius: 16px;
    border-color: #e9edf5;
}

table {
    background: #fff;
}

th {
    position: sticky;
    top: 0;
    z-index: 1;
    background: #f8fafc;
    color: #8a92a4;
}

td {
    color: #1f2937;
}

.pill {
    background: #fff3ed;
    color: var(--admin-primary);
}

.game-cell img,
.thumb {
    border-radius: 12px;
}

.pagination a.active {
    background: var(--admin-primary);
}

.alert {
    border: 1px solid rgba(34, 197, 94, .14);
}

.sidebar-backdrop {
    display: none;
}

@media (max-width: 1240px) {
    body.admin-shell {
        grid-template-columns: 260px minmax(0, 1fr);
    }

    .cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .top-search {
        width: min(300px, 100%);
    }
}

@media (max-width: 980px) {
    body.admin-shell {
        display: block;
    }

    .sidebar {
        position: fixed;
        inset: 0 auto 0 0;
        width: min(320px, 88vw);
        height: 100vh;
        transform: translateX(-105%);
        transition: transform .28s cubic-bezier(.2,.8,.2,1);
    }

    body.sidebar-open .sidebar {
        transform: translateX(0);
    }

    .sidebar-backdrop {
        position: fixed;
        inset: 0;
        display: block;
        border: 0;
        background: rgba(17, 24, 39, .38);
        opacity: 0;
        pointer-events: none;
        z-index: 25;
        transition: opacity .22s ease;
    }

    body.sidebar-open .sidebar-backdrop {
        opacity: 1;
        pointer-events: auto;
    }

    .nav {
        display: grid;
        overflow: visible;
        padding-bottom: 18px;
    }

    .nav-group {
        min-width: 0;
    }

    .main {
        padding: 0 16px 28px;
    }

    .mobile-menu {
        display: inline-grid;
        flex: 0 0 auto;
    }

    .topbar {
        margin: 0 -16px 20px;
        padding: 12px 16px;
        align-items: flex-start;
    }

    .topbar-main {
        flex: 1 1 auto;
    }

    .topbar-tools {
        width: 100%;
        justify-content: stretch;
    }

    .top-search,
    .status-chip,
    .user-chip {
        width: 100%;
    }

    .tool-icon {
        flex: 1 1 0;
        border-radius: 14px;
    }

    .filters,
    .form-grid,
    .cards,
    .analytics-filter-form {
        grid-template-columns: 1fr;
    }

    .span-2 {
        grid-column: auto;
    }
}

@media (max-width: 620px) {
    .topbar {
        gap: 12px;
    }

    .panel {
        padding: 16px;
        border-radius: 14px;
    }

    .panel-head {
        align-items: stretch;
    }

    .panel-head .btn,
    .filters .btn,
    .form-actions .btn {
        width: 100%;
    }

    .cards {
        gap: 14px;
    }

    .actions {
        flex-wrap: wrap;
    }
}

body.theme-dark {
    --admin-bg: #101624;
    --admin-surface: #171f2d;
    --admin-surface-2: #202a3b;
    --admin-text: #f8fafc;
    --admin-muted: #aab3c5;
    --admin-line: rgba(255,255,255,.1);
    background:
        radial-gradient(circle at 18% 12%, rgba(255, 107, 53, .13), transparent 30%),
        radial-gradient(circle at 82% 20%, rgba(47, 115, 255, .14), transparent 26%),
        var(--admin-bg);
    color: var(--admin-text);
}

body.theme-dark .sidebar,
body.theme-dark .topbar,
body.theme-dark .panel,
body.theme-dark .stat,
body.theme-dark .file-card,
body.theme-dark .table-wrap,
body.theme-dark table {
    background: rgba(23, 31, 45, .96);
    border-color: var(--admin-line);
}

body.theme-dark .nav-item,
body.theme-dark .tool-icon,
body.theme-dark .mobile-menu,
body.theme-dark td,
body.theme-dark .crumb-current,
body.theme-dark .status-chip strong,
body.theme-dark .user-chip strong {
    color: var(--admin-text);
}

body.theme-dark .top-search,
body.theme-dark .status-chip,
body.theme-dark .user-chip,
body.theme-dark .tool-icon,
body.theme-dark input,
body.theme-dark select,
body.theme-dark textarea,
body.theme-dark .check,
body.theme-dark th {
    background: #202a3b;
    border-color: rgba(255,255,255,.1);
    color: var(--admin-text);
}

body.theme-dark .btn {
    background: #263349;
    color: var(--admin-text);
}

body.theme-dark .btn.primary {
    background: linear-gradient(135deg, var(--admin-primary), var(--admin-primary-2));
}

/* Final layout guard: keeps older responsive rules from overlapping the refreshed shell. */
html,
body {
    max-width: 100%;
    overflow-x: hidden;
}

body.admin-shell {
    width: 100%;
}

body.admin-shell *,
body.admin-shell *::before,
body.admin-shell *::after {
    box-sizing: border-box;
}

.main,
.content,
.panel,
.table-wrap,
.analytics-filter-bar,
.analytics-filter-form,
.dashboard-grid,
.cards {
    min-width: 0;
    max-width: 100%;
}

.table-wrap {
    overflow-x: auto;
}

.topbar,
.topbar-main,
.topbar-tools {
    min-width: 0;
}

.topbar {
    flex-wrap: wrap;
}

.topbar-main h1,
.topbar-main p {
    overflow-wrap: anywhere;
}

@media (min-width: 981px) {
    body.admin-shell {
        display: grid !important;
        grid-template-columns: 260px minmax(0, 1fr) !important;
        align-items: start;
        overflow-x: hidden;
    }

    body.admin-shell .sidebar {
        position: sticky !important;
        inset: 0 auto auto 0 !important;
        top: 0 !important;
        width: 260px !important;
        height: 100vh !important;
        max-height: 100vh !important;
        transform: none !important;
        z-index: 40 !important;
        display: flex !important;
        flex-direction: column !important;
        overflow: hidden !important;
    }

    body.admin-shell .nav {
        display: grid !important;
        flex: 1 1 auto !important;
        min-height: 0 !important;
        overflow-x: hidden !important;
        overflow-y: auto !important;
        padding: 22px 4px 18px !important;
    }

    body.admin-shell .nav-group,
    body.admin-shell .nav-item,
    body.admin-shell .sidebar-footer,
    body.admin-shell .live-card,
    body.admin-shell .logout-card {
        min-width: 0 !important;
        max-width: 100% !important;
    }

    body.admin-shell .sidebar-footer {
        flex: 0 0 auto !important;
        margin-top: 16px !important;
    }

    body.admin-shell .main {
        width: 100% !important;
        min-width: 0 !important;
        padding: 0 30px 34px !important;
        overflow: visible !important;
    }

    body.admin-shell .topbar {
        margin: 0 -30px 26px !important;
        padding: 14px 30px !important;
    }

    body.admin-shell .mobile-menu,
    body.admin-shell .sidebar-backdrop {
        display: none !important;
    }
}

@media (min-width: 981px) and (max-width: 1240px) {
    body.admin-shell {
        grid-template-columns: 236px minmax(0, 1fr) !important;
    }

    body.admin-shell .sidebar {
        width: 236px !important;
        padding-inline: 14px !important;
    }

    body.admin-shell .main {
        padding-inline: 22px !important;
    }

    body.admin-shell .topbar {
        margin-inline: -22px !important;
        padding-inline: 22px !important;
    }

    body.admin-shell .top-search {
        width: min(300px, 100%) !important;
    }

    body.admin-shell .topbar-tools {
        flex: 1 1 420px;
        justify-content: flex-end;
    }

    .analytics-filter-form {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }

    .analytics-cards {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    .analytics-grid,
    .analytics-bottom-grid,
    .analytics-trend-panel {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 980px) {
    body.admin-shell {
        display: block !important;
        overflow-x: hidden;
    }

    body.admin-shell .sidebar {
        position: fixed !important;
        inset: 0 auto 0 0 !important;
        width: min(320px, 88vw) !important;
        height: 100dvh !important;
        max-height: 100dvh !important;
        transform: translateX(-105%) !important;
        z-index: 40 !important;
        overflow: hidden !important;
    }

    body.sidebar-open .sidebar {
        transform: translateX(0) !important;
    }

    body.admin-shell .main {
        width: 100% !important;
        min-width: 0 !important;
        padding: 0 16px 28px !important;
    }

    body.admin-shell .topbar {
        margin: 0 -16px 20px !important;
        padding: 12px 16px !important;
    }

    body.admin-shell .topbar-tools {
        width: 100%;
    }
}

@media (max-width: 760px) {
    .analytics-filter-form,
    .filters,
    .form-grid,
    .cards,
    .dashboard-grid {
        grid-template-columns: 1fr !important;
    }

    .analytics-filter-actions,
    .form-actions {
        justify-content: stretch;
    }

    .analytics-filter-actions .btn,
    .form-actions .btn {
        width: 100%;
    }
}

/* Compact professional UI pass. */
body.admin-shell {
    --admin-primary: #11b981;
    --admin-primary-2: #2f73ff;
    --admin-bg: #f4f7fb;
    --admin-surface: #ffffff;
    --admin-surface-2: #f7f9fc;
    --admin-text: #121826;
    --admin-muted: #667085;
    --admin-line: #e7ecf3;
    --admin-shadow: 0 14px 34px rgba(15, 23, 42, .06);
    --admin-shadow-soft: 0 8px 20px rgba(15, 23, 42, .055);
    font-size: 13px;
    line-height: 1.45;
    background:
        radial-gradient(circle at 20% 10%, rgba(17, 185, 129, .10), transparent 26%),
        radial-gradient(circle at 88% 14%, rgba(47, 115, 255, .08), transparent 24%),
        linear-gradient(180deg, #f8fafc 0%, var(--admin-bg) 100%);
}

body.admin-shell .sidebar {
    background: rgba(255, 255, 255, .97);
    border-right-color: var(--admin-line);
    box-shadow: 10px 0 28px rgba(15, 23, 42, .035);
}

body.admin-shell .brand-stack {
    min-height: 62px;
    padding: 0 8px 16px;
}

body.admin-shell .brand {
    gap: 10px;
}

body.admin-shell .brand-logo,
body.admin-shell .brand-logo-img {
    width: 42px;
    height: 42px;
    flex-basis: 42px;
    border-radius: 12px;
}

body.admin-shell .brand strong {
    font-size: 21px;
    letter-spacing: -.01em;
}

body.admin-shell .brand small {
    margin-top: 3px;
    font-size: 9px;
    letter-spacing: .08em;
}

body.admin-shell .nav {
    gap: 14px;
    padding: 16px 2px 12px !important;
}

body.admin-shell .nav-label {
    margin: 0 9px 6px;
    font-size: 9px;
    letter-spacing: .14em;
}

body.admin-shell .nav-links {
    gap: 2px;
}

body.admin-shell .nav-item {
    min-height: 41px;
    gap: 10px;
    padding: 0 10px;
    border-left-width: 2px;
    border-radius: 12px;
    color: #263244;
    font-size: 13px;
    font-weight: 750;
}

body.admin-shell .nav-item:hover {
    transform: translateX(2px);
    background: rgba(17, 185, 129, .08);
}

body.admin-shell .nav-item.active {
    color: var(--admin-primary);
    background: linear-gradient(90deg, rgba(17, 185, 129, .13), rgba(47, 115, 255, .035));
    border-left-color: var(--admin-primary);
}

body.admin-shell .nav-icon {
    width: 29px;
    height: 29px;
    border-radius: 9px;
    background: #f1f5f9;
}

body.admin-shell .icon-svg {
    width: 17px;
    height: 17px;
}

body.admin-shell .sidebar-footer {
    gap: 9px;
    padding-top: 10px;
}

body.admin-shell .mini-card {
    gap: 9px;
    padding: 11px 12px;
    border-radius: 14px;
}

body.admin-shell .mini-card strong {
    font-size: 12px;
}

body.admin-shell .mini-card small {
    display: block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 10px;
}

body.admin-shell .mini-dot {
    width: 10px;
    height: 10px;
    box-shadow: 0 0 0 5px rgba(17, 185, 129, .14);
}

body.admin-shell .logout {
    min-height: 40px;
    border-radius: 13px;
    background: #fff4f4;
    color: #ef4444;
    font-size: 13px;
}

body.admin-shell .topbar {
    min-height: 66px;
    gap: 14px;
    background: rgba(255, 255, 255, .94);
}

body.admin-shell .breadcrumbs {
    margin-bottom: 2px;
    font-size: 11px;
}

body.admin-shell .topbar h1 {
    margin: 0;
    font-size: clamp(23px, 2.1vw, 30px);
    line-height: 1.02;
    letter-spacing: -.025em;
}

body.admin-shell .topbar p {
    margin-top: 5px;
    font-size: 11px;
    line-height: 1.35;
}

body.admin-shell .topbar-tools {
    gap: 8px;
}

body.admin-shell .mobile-menu,
body.admin-shell .tool-icon {
    width: 38px;
    height: 38px;
    border-radius: 13px;
}

body.admin-shell .top-search,
body.admin-shell .status-chip,
body.admin-shell .user-chip {
    min-height: 40px;
    border-radius: 16px;
    background: #f3f6fa;
}

body.admin-shell .top-search {
    width: min(300px, 28vw);
    padding: 0 13px;
}

body.admin-shell .top-search input {
    min-height: 38px;
    font-size: 12px;
}

body.admin-shell .status-chip,
body.admin-shell .user-chip {
    padding: 7px 11px;
    font-size: 11px;
}

body.admin-shell .status-chip strong,
body.admin-shell .user-chip strong {
    font-size: 12px;
}

body.admin-shell .avatar {
    width: 30px;
    height: 30px;
    background: linear-gradient(135deg, #18c78a, #2f73ff);
    color: #fff;
}

body.admin-shell .content {
    gap: 16px;
}

body.admin-shell .cards,
body.admin-shell .dashboard-grid,
body.admin-shell .dual-panels,
body.admin-shell .filters,
body.admin-shell .form-grid,
body.admin-shell .analytics-filter-form {
    gap: 14px;
}

body.admin-shell .panel,
body.admin-shell .stat,
body.admin-shell .file-card {
    border: 1px solid var(--admin-line);
    border-radius: 14px;
    background: rgba(255, 255, 255, .98);
    box-shadow: var(--admin-shadow);
}

body.admin-shell .panel:hover,
body.admin-shell .stat:hover,
body.admin-shell .file-card:hover {
    transform: translateY(-1px);
}

body.admin-shell .panel {
    padding: 18px;
}

body.admin-shell .panel-head {
    gap: 12px;
    padding-bottom: 12px;
    margin-bottom: 14px;
}

body.admin-shell .panel-head h2 {
    font-size: clamp(17px, 1.5vw, 21px);
    line-height: 1.12;
}

body.admin-shell .panel-head p,
body.admin-shell .hint,
body.admin-shell .stat-meta {
    font-size: 11px;
    line-height: 1.35;
}

body.admin-shell .stat {
    min-height: 124px;
    padding: 17px 18px;
}

body.admin-shell .stat-badge {
    width: 36px;
    height: 36px;
    border-radius: 12px;
}

body.admin-shell .stat strong {
    margin-top: 13px;
    font-size: clamp(24px, 2vw, 31px);
    line-height: 1;
}

body.admin-shell .stat span {
    margin-top: 6px;
    font-size: 12px;
}

body.admin-shell label {
    gap: 6px;
    font-size: 11px;
    font-weight: 800;
}

body.admin-shell input,
body.admin-shell select,
body.admin-shell textarea {
    min-height: 40px;
    border-radius: 12px;
    padding: 10px 12px;
    font-size: 12px;
}

body.admin-shell textarea {
    min-height: 88px;
}

body.admin-shell .btn {
    min-height: 39px;
    padding: 0 14px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 800;
}

body.admin-shell .btn.small {
    min-height: 32px;
    padding: 0 11px;
    font-size: 11px;
}

body.admin-shell .btn.primary {
    background: linear-gradient(135deg, var(--admin-primary), var(--admin-primary-2));
    box-shadow: 0 10px 22px rgba(17, 185, 129, .18);
}

body.admin-shell .table-wrap {
    border-radius: 14px;
    border-color: var(--admin-line);
    box-shadow: none;
}

body.admin-shell table {
    font-size: 12px;
}

body.admin-shell th,
body.admin-shell td {
    padding: 11px 13px;
}

body.admin-shell th {
    font-size: 9.5px;
    letter-spacing: .11em;
}

body.admin-shell .game-cell {
    gap: 10px;
    min-width: 230px;
}

body.admin-shell .game-cell img,
body.admin-shell .thumb {
    width: 42px;
    height: 50px;
    border-radius: 11px;
}

body.admin-shell .thumb {
    width: 74px;
    height: 42px;
}

body.admin-shell .pill {
    padding: 4px 8px;
    font-size: 10px;
    background: rgba(17, 185, 129, .1);
    color: #059669;
}

body.admin-shell .quick-link {
    min-height: 56px;
    padding: 12px 16px;
}

body.admin-shell .quick-link > div {
    display: grid;
    gap: 3px;
    min-width: 0;
}

body.admin-shell .quick-link strong,
body.admin-shell .quick-link small {
    display: block;
    min-width: 0;
    overflow-wrap: anywhere;
}

body.admin-shell .quick-link strong {
    font-size: 13px;
}

body.admin-shell .quick-link small {
    font-size: 11px;
}

body.admin-shell .analytics-filter-bar {
    padding: 14px;
}

body.admin-shell .analytics-filter-form {
    grid-template-columns: minmax(190px, 1.1fr) repeat(2, minmax(150px, .75fr)) repeat(2, minmax(130px, .65fr)) auto;
    align-items: end;
}

body.admin-shell .website-filter-form {
    grid-template-columns: repeat(3, minmax(150px, 1fr)) repeat(2, minmax(130px, .7fr)) auto;
}

body.admin-shell .analytics-filter-actions {
    gap: 8px;
}

body.admin-shell .analytics-trend-panel {
    grid-template-columns: 200px minmax(0, 1fr);
}

body.admin-shell .analytics-bars {
    min-height: 260px;
    gap: 11px;
}

body.admin-shell .analytics-bar-stack {
    height: 180px;
}

body.admin-shell .analytics-bar {
    width: 12px;
    border-radius: 999px 999px 4px 4px;
}

body.admin-shell .website-trend-panel .analytics-bar.views {
    background: linear-gradient(180deg, #11b981, #4ade80);
}

body.admin-shell .website-trend-panel .analytics-bar.downloads {
    background: linear-gradient(180deg, #2f73ff, #7aa2ff);
}

body.admin-shell .website-trend-panel .list-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 10px 0;
}

body.admin-shell .website-trend-panel .list-row > div:first-child {
    display: grid;
    gap: 4px;
    min-width: 0;
}

body.admin-shell .website-trend-panel .list-row strong,
body.admin-shell .website-trend-panel .list-row span {
    display: block;
}

body.admin-shell .website-trend-panel .list-row span {
    color: var(--admin-muted);
    font-size: 11px;
}

body.admin-shell .analytics-bar-values,
body.admin-shell .analytics-bar-label,
body.admin-shell .analytics-top-game span {
    font-size: 10px;
}

body.admin-shell .analytics-mix-head strong,
body.admin-shell .analytics-top-game strong {
    font-size: 12px;
}

@media (min-width: 981px) {
    body.admin-shell {
        grid-template-columns: 248px minmax(0, 1fr) !important;
    }

    body.admin-shell .sidebar {
        width: 248px !important;
        padding: 18px 14px !important;
    }

    body.admin-shell .main {
        padding: 0 24px 28px !important;
    }

    body.admin-shell .topbar {
        margin: 0 -24px 20px !important;
        padding: 11px 24px !important;
    }
}

@media (min-width: 981px) and (max-width: 1240px) {
    body.admin-shell {
        grid-template-columns: 220px minmax(0, 1fr) !important;
    }

    body.admin-shell .sidebar {
        width: 220px !important;
        padding-inline: 12px !important;
    }

    body.admin-shell .brand strong {
        font-size: 18px;
    }

    body.admin-shell .nav-item {
        font-size: 12px;
        min-height: 39px;
        padding-inline: 8px;
    }

    body.admin-shell .nav-icon {
        width: 28px;
        height: 28px;
    }

    body.admin-shell .main {
        padding-inline: 18px !important;
    }

    body.admin-shell .topbar {
        margin-inline: -18px !important;
        padding-inline: 18px !important;
    }

    body.admin-shell .topbar-main {
        flex: 1 1 290px;
    }

    body.admin-shell .topbar-tools {
        flex: 1 1 360px;
    }

    body.admin-shell .top-search {
        width: min(260px, 100%) !important;
    }

    body.admin-shell .analytics-filter-form {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }

    body.admin-shell .analytics-trend-panel {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 980px) {
    body.admin-shell {
        font-size: 12px;
    }

    body.admin-shell .sidebar {
        padding: 18px 14px !important;
    }

    body.admin-shell .main {
        padding: 0 14px 24px !important;
    }

    body.admin-shell .topbar {
        display: grid;
        grid-template-columns: 42px minmax(0, 1fr);
        margin: 0 -14px 16px !important;
        padding: 10px 14px !important;
        align-items: center;
    }

    body.admin-shell .mobile-menu {
        grid-column: 1;
        grid-row: 1;
        width: 40px !important;
        height: 40px !important;
    }

    body.admin-shell .topbar-main {
        grid-column: 2;
        grid-row: 1;
        min-width: 0;
    }

    body.admin-shell .topbar h1 {
        font-size: 21px;
    }

    body.admin-shell .topbar-tools {
        grid-column: 1 / -1;
        grid-row: 2;
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        align-items: stretch;
    }

    body.admin-shell .top-search,
    body.admin-shell .status-chip,
    body.admin-shell .user-chip {
        grid-column: 1 / -1;
        width: 100% !important;
    }

    body.admin-shell .tool-icon,
    body.admin-shell .topbar-tools .mobile-menu {
        width: 100%;
    }

    body.admin-shell .panel {
        padding: 15px;
    }

    body.admin-shell .stat {
        min-height: 112px;
    }

    body.admin-shell .analytics-filter-actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    body.admin-shell .cards,
    body.admin-shell .analytics-cards,
    body.admin-shell .dashboard-grid,
    body.admin-shell .dual-panels,
    body.admin-shell .analytics-filter-form,
    body.admin-shell .filters,
    body.admin-shell .form-grid {
        grid-template-columns: 1fr !important;
    }

    body.admin-shell .panel-head {
        align-items: stretch;
    }

    body.admin-shell .panel-head .btn,
    body.admin-shell .filters .btn,
    body.admin-shell .form-actions .btn,
    body.admin-shell .analytics-filter-actions .btn {
        width: 100%;
    }
}

/* NextPlay app theme match: dark blue surfaces, compact gaming UI. */
html,
body.admin-shell {
    background: #263A52 !important;
}

body.admin-shell {
    --admin-bg: #263A52;
    --admin-surface: #1A2D40;
    --admin-surface-2: #223850;
    --admin-surface-deep: #132638;
    --admin-text: #F3FFF9;
    --admin-muted: #B8CAD7;
    --admin-muted-2: #7AABB8;
    --admin-line: rgba(52, 211, 120, .26);
    --admin-line-strong: rgba(52, 211, 120, .45);
    --admin-primary: #22C55E;
    --admin-primary-2: #34D378;
    --admin-primary-dark: #16A34A;
    --admin-danger: #FF4F7B;
    --admin-warning: #FFE66D;
    --admin-blue: #34D378;
    --admin-green: #22C55E;
    --admin-violet: #22C55E;
    --admin-shadow: 0 18px 40px rgba(4, 12, 22, .28);
    --admin-shadow-soft: 0 10px 24px rgba(4, 12, 22, .22);
    color: var(--admin-text) !important;
    background:
        radial-gradient(circle at 18% 8%, rgba(52, 211, 120, .16), transparent 24%),
        radial-gradient(circle at 82% 18%, rgba(34, 197, 94, .10), transparent 26%),
        linear-gradient(135deg, #263A52 0%, #223850 46%, #1A2D40 100%) !important;
}

body.admin-shell::before {
    background:
        linear-gradient(90deg, rgba(52, 211, 120, .06) 1px, transparent 1px),
        linear-gradient(0deg, rgba(52, 211, 120, .045) 1px, transparent 1px) !important;
    background-size: 42px 42px !important;
    opacity: .55;
}

body.admin-shell .sidebar {
    background: linear-gradient(180deg, rgba(19, 38, 56, .98), rgba(26, 45, 64, .98)) !important;
    border-right: 1px solid var(--admin-line) !important;
    box-shadow: 12px 0 34px rgba(4, 12, 22, .28) !important;
}

body.admin-shell .brand-stack {
    border-bottom-color: var(--admin-line) !important;
}

body.admin-shell .brand-logo-img {
    background: #132638 !important;
    border: 1px solid var(--admin-line-strong);
    box-shadow: 0 12px 28px rgba(34, 197, 94, .18) !important;
}

body.admin-shell .brand strong,
body.admin-shell .topbar h1,
body.admin-shell .panel-head h2,
body.admin-shell .stat strong,
body.admin-shell .quick-link strong,
body.admin-shell td strong {
    color: var(--admin-text) !important;
}

body.admin-shell .brand small,
body.admin-shell .nav-label,
body.admin-shell .topbar p,
body.admin-shell .panel-head p,
body.admin-shell .hint,
body.admin-shell .stat span,
body.admin-shell .stat-meta,
body.admin-shell .quick-link small,
body.admin-shell td,
body.admin-shell label,
body.admin-shell .analytics-bar-values,
body.admin-shell .analytics-bar-label,
body.admin-shell .chart-legend,
body.admin-shell .crumb-sep,
body.admin-shell .user-chip small,
body.admin-shell .status-chip span,
body.admin-shell .website-trend-panel .list-row span {
    color: var(--admin-muted) !important;
}

body.admin-shell .crumb-home,
body.admin-shell .crumb-current,
body.admin-shell a:hover {
    color: var(--admin-primary-2) !important;
}

body.admin-shell .nav-item {
    color: var(--admin-muted) !important;
    background: transparent !important;
    border: 1px solid transparent !important;
}

body.admin-shell .nav-item:hover {
    color: var(--admin-text) !important;
    background: linear-gradient(90deg, rgba(52, 211, 120, .13), rgba(34, 56, 80, .44)) !important;
    border-color: rgba(52, 211, 120, .18) !important;
}

body.admin-shell .nav-item.active {
    color: var(--admin-primary-2) !important;
    background: linear-gradient(90deg, rgba(52, 211, 120, .20), rgba(34, 56, 80, .62)) !important;
    border-color: var(--admin-line-strong) !important;
    box-shadow: inset 3px 0 0 var(--admin-primary), 0 12px 24px rgba(4, 12, 22, .18) !important;
}

body.admin-shell .nav-icon,
body.admin-shell .tool-icon,
body.admin-shell .mobile-menu {
    color: var(--admin-text) !important;
    background: rgba(52, 211, 120, .08) !important;
    border: 1px solid rgba(52, 211, 120, .22) !important;
}

body.admin-shell .nav-item.active .nav-icon,
body.admin-shell .tool-icon:hover,
body.admin-shell .mobile-menu:hover {
    color: var(--admin-primary-2) !important;
    background: rgba(52, 211, 120, .14) !important;
    box-shadow: 0 0 0 4px rgba(52, 211, 120, .08) !important;
}

body.admin-shell .topbar {
    background: rgba(19, 38, 56, .94) !important;
    border-bottom: 1px solid var(--admin-line) !important;
    box-shadow: 0 14px 30px rgba(4, 12, 22, .22) !important;
}

body.admin-shell .top-search,
body.admin-shell .status-chip,
body.admin-shell .user-chip,
body.admin-shell input,
body.admin-shell select,
body.admin-shell textarea,
body.admin-shell .check {
    color: var(--admin-text) !important;
    background: linear-gradient(180deg, #1A2D40, #20364D) !important;
    border: 1px solid var(--admin-line) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .035) !important;
}

body.admin-shell .top-search input {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}

body.admin-shell input::placeholder,
body.admin-shell textarea::placeholder {
    color: rgba(184, 202, 215, .70) !important;
}

body.admin-shell input:focus,
body.admin-shell select:focus,
body.admin-shell textarea:focus {
    border-color: var(--admin-primary-2) !important;
    box-shadow: 0 0 0 4px rgba(52, 211, 120, .12) !important;
}

body.admin-shell .panel,
body.admin-shell .stat,
body.admin-shell .file-card,
body.admin-shell .table-wrap,
body.admin-shell .analytics-filter-bar,
body.admin-shell .quick-link,
body.admin-shell .list-card {
    color: var(--admin-text) !important;
    background: linear-gradient(135deg, rgba(26, 45, 64, .98), rgba(32, 54, 77, .96)) !important;
    border: 1px solid var(--admin-line) !important;
    border-radius: 14px !important;
    box-shadow: var(--admin-shadow-soft) !important;
}

body.admin-shell .panel-head {
    border-bottom-color: var(--admin-line) !important;
}

body.admin-shell .stat::after {
    background: radial-gradient(circle, rgba(52, 211, 120, .16), transparent 72%) !important;
}

body.admin-shell .stat-badge,
body.admin-shell .list-chip,
body.admin-shell .avatar {
    color: #06140d !important;
    background: linear-gradient(135deg, var(--admin-primary-dark), var(--admin-primary-2)) !important;
    border: 1px solid rgba(243, 255, 249, .16) !important;
    box-shadow: 0 10px 22px rgba(34, 197, 94, .18) !important;
}

body.admin-shell .stat strong.green,
body.admin-shell .stat strong.blue,
body.admin-shell .stat strong.coral,
body.admin-shell .stat strong.orange {
    color: var(--admin-primary-2) !important;
}

body.admin-shell .btn,
body.admin-shell .range-pill,
body.admin-shell .pagination a {
    color: var(--admin-text) !important;
    background: linear-gradient(180deg, #1A2D40, #20364D) !important;
    border: 1px solid var(--admin-line) !important;
    box-shadow: none !important;
}

body.admin-shell .btn:hover,
body.admin-shell .range-pill:hover,
body.admin-shell .pagination a:hover {
    border-color: var(--admin-line-strong) !important;
    box-shadow: 0 0 0 4px rgba(52, 211, 120, .08) !important;
}

body.admin-shell .btn.primary,
body.admin-shell .range-pill.active,
body.admin-shell .pagination a.active {
    color: #06140d !important;
    background: linear-gradient(90deg, var(--admin-primary-dark), var(--admin-primary), var(--admin-primary-2)) !important;
    border-color: rgba(243, 255, 249, .18) !important;
    box-shadow: 0 12px 24px rgba(34, 197, 94, .20) !important;
}

body.admin-shell .btn.danger,
body.admin-shell .logout {
    color: #fff !important;
    background: linear-gradient(135deg, rgba(255, 79, 123, .24), rgba(255, 79, 123, .12)) !important;
    border: 1px solid rgba(255, 79, 123, .38) !important;
}

body.admin-shell .mini-card {
    background: linear-gradient(135deg, #132638, #1A2D40) !important;
    border: 1px solid var(--admin-line) !important;
    box-shadow: 0 12px 26px rgba(4, 12, 22, .30) !important;
}

body.admin-shell .mini-card strong,
body.admin-shell .status-chip strong,
body.admin-shell .user-chip strong {
    color: var(--admin-text) !important;
}

body.admin-shell .mini-dot,
body.admin-shell .status-dot {
    background: var(--admin-primary) !important;
    box-shadow: 0 0 0 6px rgba(34, 197, 94, .14), 0 0 18px rgba(52, 211, 120, .55) !important;
}

body.admin-shell table {
    background: #1A2D40 !important;
    color: var(--admin-text) !important;
}

body.admin-shell th {
    color: var(--admin-muted) !important;
    background: #132638 !important;
    border-bottom: 1px solid var(--admin-line) !important;
}

body.admin-shell td {
    border-bottom-color: rgba(52, 211, 120, .14) !important;
}

body.admin-shell tr:hover td {
    background: rgba(52, 211, 120, .055) !important;
}

body.admin-shell code,
body.admin-shell .pill {
    color: var(--admin-primary-2) !important;
    background: rgba(52, 211, 120, .12) !important;
    border: 1px solid rgba(52, 211, 120, .20) !important;
}

body.admin-shell .game-cell img,
body.admin-shell .thumb {
    background: #132638 !important;
    border: 1px solid var(--admin-line) !important;
}

body.admin-shell .analytics-progress,
body.admin-shell .chart-line,
body.admin-shell .chart {
    background-color: rgba(184, 202, 215, .10) !important;
}

body.admin-shell .analytics-progress span,
body.admin-shell .analytics-bar.views,
body.admin-shell .website-trend-panel .analytics-bar.views {
    background: linear-gradient(180deg, var(--admin-primary-2), var(--admin-primary-dark)) !important;
}

body.admin-shell .analytics-bar.downloads,
body.admin-shell .website-trend-panel .analytics-bar.downloads {
    background: linear-gradient(180deg, #F3FFF9, var(--admin-primary)) !important;
}

body.admin-shell .analytics-bar-stack {
    background: linear-gradient(180deg, rgba(19, 38, 56, .55), rgba(26, 45, 64, .78)) !important;
    border: 1px solid rgba(52, 211, 120, .16) !important;
}

body.admin-shell .analytics-empty {
    color: var(--admin-muted) !important;
    background: rgba(19, 38, 56, .64) !important;
    border: 1px dashed var(--admin-line) !important;
}

body.admin-shell .alert {
    color: var(--admin-text) !important;
    background: rgba(34, 197, 94, .12) !important;
    border: 1px solid var(--admin-line-strong) !important;
}

body.admin-shell .alert.error {
    background: rgba(255, 79, 123, .14) !important;
    border-color: rgba(255, 79, 123, .42) !important;
}

body.admin-shell .sidebar-backdrop {
    background: rgba(6, 20, 30, .72) !important;
}

@media (min-width: 981px) {
    body.admin-shell .main {
        background: transparent !important;
    }
}

/* Fixed desktop sidebar. */
@media (min-width: 981px) {
    body.admin-shell {
        display: block !important;
    }

    body.admin-shell .sidebar {
        position: fixed !important;
        inset: 0 auto 0 0 !important;
        width: 248px !important;
        height: 100vh !important;
        max-height: 100vh !important;
        overflow: hidden !important;
    }

    body.admin-shell .nav {
        overflow-y: auto !important;
        overflow-x: hidden !important;
    }

    body.admin-shell .main {
        width: auto !important;
        min-width: 0 !important;
        margin-left: 248px !important;
        padding: 0 24px 28px !important;
    }

    body.admin-shell .topbar {
        margin: 0 -24px 20px !important;
        padding: 11px 24px !important;
    }
}

@media (min-width: 981px) and (max-width: 1240px) {
    body.admin-shell .sidebar {
        width: 220px !important;
    }

    body.admin-shell .main {
        margin-left: 220px !important;
        padding-inline: 18px !important;
    }

    body.admin-shell .topbar {
        margin-inline: -18px !important;
        padding-inline: 18px !important;
    }
}

@media (max-width: 980px) {
    body.admin-shell .main {
        margin-left: 0 !important;
    }
}

/* Material light admin theme: clean surfaces, outlined fields, CRUD-friendly controls. */
html,
body.admin-shell,
body.admin-shell.theme-dark {
    background: #f5f7fb !important;
}

body.admin-shell,
body.admin-shell.theme-dark {
    --admin-bg: #f5f7fb;
    --admin-surface: #ffffff;
    --admin-surface-2: #f8fafc;
    --admin-surface-deep: #eef2f7;
    --admin-text: #172033;
    --admin-muted: #667085;
    --admin-muted-2: #98a2b3;
    --admin-line: #e4e9f2;
    --admin-line-strong: #cfd8e6;
    --admin-primary: #2563eb;
    --admin-primary-2: #06b6d4;
    --admin-primary-dark: #1d4ed8;
    --admin-green: #10b981;
    --admin-danger: #ef4444;
    --admin-warning: #f59e0b;
    --admin-shadow: 0 16px 38px rgba(17, 24, 39, .08);
    --admin-shadow-soft: 0 8px 22px rgba(17, 24, 39, .06);
    color: var(--admin-text) !important;
    background:
        radial-gradient(circle at 18% 8%, rgba(37, 99, 235, .10), transparent 24%),
        radial-gradient(circle at 88% 18%, rgba(6, 182, 212, .09), transparent 24%),
        linear-gradient(180deg, #fbfdff 0%, #f5f7fb 100%) !important;
}

body.admin-shell::before {
    background:
        linear-gradient(90deg, rgba(37, 99, 235, .035) 1px, transparent 1px),
        linear-gradient(0deg, rgba(37, 99, 235, .03) 1px, transparent 1px) !important;
    background-size: 48px 48px !important;
    opacity: .65 !important;
}

body.admin-shell .sidebar {
    background: rgba(255, 255, 255, .98) !important;
    border-right: 1px solid var(--admin-line) !important;
    box-shadow: 8px 0 28px rgba(17, 24, 39, .055) !important;
}

body.admin-shell .brand-stack {
    border-bottom-color: var(--admin-line) !important;
}

body.admin-shell .brand-logo-img {
    background: #ffffff !important;
    border: 1px solid var(--admin-line) !important;
    box-shadow: var(--admin-shadow-soft) !important;
}

body.admin-shell .brand strong,
body.admin-shell .topbar h1,
body.admin-shell .panel-head h2,
body.admin-shell .stat strong,
body.admin-shell .quick-link strong,
body.admin-shell td strong,
body.admin-shell .mini-card strong,
body.admin-shell .status-chip strong,
body.admin-shell .user-chip strong {
    color: var(--admin-text) !important;
}

body.admin-shell .brand small,
body.admin-shell .nav-label,
body.admin-shell .topbar p,
body.admin-shell .panel-head p,
body.admin-shell .hint,
body.admin-shell .stat span,
body.admin-shell .stat-meta,
body.admin-shell .quick-link small,
body.admin-shell td,
body.admin-shell label,
body.admin-shell .analytics-bar-values,
body.admin-shell .analytics-bar-label,
body.admin-shell .chart-legend,
body.admin-shell .crumb-sep,
body.admin-shell .user-chip small,
body.admin-shell .status-chip span,
body.admin-shell .website-trend-panel .list-row span {
    color: var(--admin-muted) !important;
}

body.admin-shell .crumb-home,
body.admin-shell .crumb-current {
    color: var(--admin-primary) !important;
}

body.admin-shell .nav-item {
    color: #344054 !important;
    background: transparent !important;
    border: 1px solid transparent !important;
    border-radius: 12px !important;
    box-shadow: none !important;
}

body.admin-shell .nav-item:hover {
    color: var(--admin-primary) !important;
    background: #eef4ff !important;
    border-color: #dbe7ff !important;
    transform: translateX(2px);
}

body.admin-shell .nav-item.active {
    color: var(--admin-primary) !important;
    background: linear-gradient(90deg, #eef4ff, #f8fbff) !important;
    border-color: #c7d7fe !important;
    box-shadow: inset 3px 0 0 var(--admin-primary), 0 8px 18px rgba(37, 99, 235, .08) !important;
}

body.admin-shell .nav-icon,
body.admin-shell .tool-icon,
body.admin-shell .mobile-menu {
    color: #344054 !important;
    background: #f2f5f9 !important;
    border: 1px solid var(--admin-line) !important;
    box-shadow: none !important;
}

body.admin-shell .nav-item.active .nav-icon,
body.admin-shell .tool-icon:hover,
body.admin-shell .mobile-menu:hover {
    color: var(--admin-primary) !important;
    background: #ffffff !important;
    border-color: #c7d7fe !important;
    box-shadow: 0 6px 14px rgba(37, 99, 235, .10) !important;
}

body.admin-shell .topbar {
    background: rgba(255, 255, 255, .94) !important;
    border-bottom: 1px solid var(--admin-line) !important;
    box-shadow: 0 8px 22px rgba(17, 24, 39, .055) !important;
}

body.admin-shell .top-search,
body.admin-shell .status-chip,
body.admin-shell .user-chip,
body.admin-shell input,
body.admin-shell select,
body.admin-shell textarea,
body.admin-shell .check {
    color: var(--admin-text) !important;
    background: #ffffff !important;
    border: 1px solid #d9e1ec !important;
    box-shadow: none !important;
}

body.admin-shell .top-search input {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}

body.admin-shell input::placeholder,
body.admin-shell textarea::placeholder {
    color: #98a2b3 !important;
}

body.admin-shell input:focus,
body.admin-shell select:focus,
body.admin-shell textarea:focus {
    border-color: var(--admin-primary) !important;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, .12) !important;
}

body.admin-shell input[type="file"] {
    padding: 9px 12px !important;
    cursor: pointer;
}

body.admin-shell input[type="file"]::file-selector-button {
    margin-right: 12px;
    min-height: 32px;
    padding: 0 12px;
    border: 0;
    border-radius: 10px;
    background: #eef4ff;
    color: var(--admin-primary);
    font-weight: 800;
    cursor: pointer;
}

body.admin-shell .panel,
body.admin-shell .stat,
body.admin-shell .file-card,
body.admin-shell .table-wrap,
body.admin-shell .analytics-filter-bar,
body.admin-shell .quick-link,
body.admin-shell .list-card {
    color: var(--admin-text) !important;
    background: #ffffff !important;
    border: 1px solid var(--admin-line) !important;
    border-radius: 14px !important;
    box-shadow: var(--admin-shadow-soft) !important;
}

body.admin-shell .panel:hover,
body.admin-shell .stat:hover,
body.admin-shell .file-card:hover,
body.admin-shell .quick-link:hover {
    box-shadow: var(--admin-shadow) !important;
}

body.admin-shell .panel-head {
    border-bottom-color: var(--admin-line) !important;
}

body.admin-shell .stat::after {
    background: radial-gradient(circle, rgba(37, 99, 235, .09), transparent 72%) !important;
}

body.admin-shell .stat-badge,
body.admin-shell .avatar {
    color: #ffffff !important;
    background: linear-gradient(135deg, var(--admin-primary), var(--admin-primary-2)) !important;
    border: 0 !important;
    box-shadow: 0 8px 18px rgba(37, 99, 235, .18) !important;
}

body.admin-shell .list-chip {
    color: var(--admin-text) !important;
    background: #f2f6fb !important;
    border: 1px solid var(--admin-line) !important;
    box-shadow: none !important;
}

body.admin-shell .stat strong.green {
    color: var(--admin-green) !important;
}

body.admin-shell .stat strong.blue {
    color: var(--admin-primary) !important;
}

body.admin-shell .stat strong.coral {
    color: #f97316 !important;
}

body.admin-shell .stat strong.orange {
    color: var(--admin-warning) !important;
}

body.admin-shell .btn,
body.admin-shell .range-pill,
body.admin-shell .pagination a,
body.admin-shell .actions a {
    color: #344054 !important;
    background: #ffffff !important;
    border: 1px solid #d9e1ec !important;
    box-shadow: none !important;
}

body.admin-shell .btn:hover,
body.admin-shell .range-pill:hover,
body.admin-shell .pagination a:hover,
body.admin-shell .actions a:hover {
    color: var(--admin-primary) !important;
    border-color: #c7d7fe !important;
    background: #f8fbff !important;
    box-shadow: 0 6px 14px rgba(37, 99, 235, .08) !important;
}

body.admin-shell .btn.primary,
body.admin-shell .range-pill.active,
body.admin-shell .pagination a.active {
    color: #ffffff !important;
    background: linear-gradient(135deg, var(--admin-primary), var(--admin-primary-2)) !important;
    border-color: transparent !important;
    box-shadow: 0 10px 20px rgba(37, 99, 235, .18) !important;
}

body.admin-shell .btn.danger,
body.admin-shell .logout,
body.admin-shell .actions a[href*="delete"],
body.admin-shell .actions button[name*="delete"] {
    color: #dc2626 !important;
    background: #fff5f5 !important;
    border: 1px solid #fecaca !important;
}

body.admin-shell .btn.success,
body.admin-shell .actions a[href*="edit"],
body.admin-shell .actions a[href*="add"] {
    color: #047857 !important;
    background: #ecfdf5 !important;
    border: 1px solid #bbf7d0 !important;
}

body.admin-shell .mini-card {
    background: #ffffff !important;
    border: 1px solid var(--admin-line) !important;
    box-shadow: var(--admin-shadow-soft) !important;
}

body.admin-shell .mini-dot,
body.admin-shell .status-dot {
    background: var(--admin-green) !important;
    box-shadow: 0 0 0 5px rgba(16, 185, 129, .14) !important;
}

body.admin-shell table {
    background: #ffffff !important;
    color: var(--admin-text) !important;
}

body.admin-shell th {
    color: #667085 !important;
    background: #f8fafc !important;
    border-bottom: 1px solid var(--admin-line) !important;
}

body.admin-shell td {
    color: #344054 !important;
    border-bottom-color: var(--admin-line) !important;
}

body.admin-shell tr:hover td {
    background: #f8fbff !important;
}

body.admin-shell code,
body.admin-shell .pill {
    color: var(--admin-primary) !important;
    background: #eef4ff !important;
    border: 1px solid #dbe7ff !important;
}

body.admin-shell .pill.success {
    color: #047857 !important;
    background: #ecfdf5 !important;
    border-color: #bbf7d0 !important;
}

body.admin-shell .pill.danger {
    color: #dc2626 !important;
    background: #fff5f5 !important;
    border-color: #fecaca !important;
}

body.admin-shell .game-cell img,
body.admin-shell .thumb {
    background: #f2f6fb !important;
    border: 1px solid var(--admin-line) !important;
}

body.admin-shell .analytics-progress,
body.admin-shell .chart-line,
body.admin-shell .chart {
    background-color: #edf2f7 !important;
}

body.admin-shell .analytics-progress span,
body.admin-shell .analytics-bar.views,
body.admin-shell .website-trend-panel .analytics-bar.views {
    background: linear-gradient(180deg, var(--admin-primary), #60a5fa) !important;
}

body.admin-shell .analytics-bar.downloads,
body.admin-shell .website-trend-panel .analytics-bar.downloads {
    background: linear-gradient(180deg, var(--admin-green), #34d399) !important;
}

body.admin-shell .analytics-bar-stack {
    background: linear-gradient(180deg, #ffffff, #f4f7fb) !important;
    border: 1px solid var(--admin-line) !important;
}

body.admin-shell .analytics-empty {
    color: var(--admin-muted) !important;
    background: #f8fafc !important;
    border: 1px dashed var(--admin-line-strong) !important;
}

body.admin-shell .alert {
    color: #047857 !important;
    background: #ecfdf5 !important;
    border: 1px solid #bbf7d0 !important;
}

body.admin-shell .alert.error,
body.admin-shell .alert.danger {
    color: #dc2626 !important;
    background: #fff5f5 !important;
    border-color: #fecaca !important;
}

body.admin-shell .sidebar-backdrop {
    background: rgba(15, 23, 42, .42) !important;
}

/* Replace letter badges with contextual Material-style icons. */
body.admin-shell {
    --badge-icon-game: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 9h10a5 5 0 0 1 4 8l-1 1a2 2 0 0 1-3-.5L16 15H8l-1 2.5a2 2 0 0 1-3 .5l-1-1a5 5 0 0 1 4-8Z'/%3E%3Cpath d='M8 12v4M6 14h4M16 13h.01M18 15h.01'/%3E%3C/svg%3E");
    --badge-icon-device: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 3h10v18H7z'/%3E%3Cpath d='M11 18h2'/%3E%3C/svg%3E");
    --badge-icon-grid: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 4h6v6H4zM14 4h6v6h-6zM4 14h6v6H4zM14 14h6v6h-6z'/%3E%3C/svg%3E");
    --badge-icon-eye: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 12s3.5-6 10-6 10 6 10 6-3.5 6-10 6S2 12 2 12Z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E");
    --badge-icon-download: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3v12'/%3E%3Cpath d='m7 10 5 5 5-5'/%3E%3Cpath d='M5 21h14'/%3E%3C/svg%3E");
    --badge-icon-users: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='9' cy='7' r='4'/%3E%3Cpath d='M22 21v-2a4 4 0 0 0-3-3.87'/%3E%3Cpath d='M16 3.13a4 4 0 0 1 0 7.75'/%3E%3C/svg%3E");
    --badge-icon-conversion: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 7h11v11'/%3E%3Cpath d='M18 7 6 19'/%3E%3Cpath d='M7 13H3V3h10v4'/%3E%3C/svg%3E");
    --badge-icon-globe: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M3 12h18'/%3E%3Cpath d='M12 3a14 14 0 0 1 0 18'/%3E%3Cpath d='M12 3a14 14 0 0 0 0 18'/%3E%3C/svg%3E");
    --badge-icon-inbox: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 12h-6l-2 3h-4l-2-3H2'/%3E%3Cpath d='m5.45 5.11-3.27 6.54A2 2 0 0 0 2 12.55V19a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6.45a2 2 0 0 0-.18-.9l-3.27-6.54A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11Z'/%3E%3C/svg%3E");
    --badge-icon-spark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 2l1.8 5.2L19 9l-5.2 1.8L12 16l-1.8-5.2L5 9l5.2-1.8L12 2Z'/%3E%3Cpath d='M19 15l.9 2.1L22 18l-2.1.9L19 21l-.9-2.1L16 18l2.1-.9L19 15Z'/%3E%3C/svg%3E");
    --badge-icon-clock: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3 2'/%3E%3C/svg%3E");
    --badge-icon-check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
}

body.admin-shell .stat-badge {
    font-size: 0 !important;
    color: #ffffff !important;
}

body.admin-shell .stat-badge::before {
    content: "" !important;
    display: block !important;
    width: 19px !important;
    height: 19px !important;
    background: currentColor !important;
    -webkit-mask: var(--badge-icon-grid) center / contain no-repeat !important;
    mask: var(--badge-icon-grid) center / contain no-repeat !important;
}

body.admin-shell .stat-badge .icon-svg {
    width: 19px !important;
    height: 19px !important;
    color: currentColor !important;
}

body.page-dashboard .cards > .stat:nth-child(1) .stat-badge::before { -webkit-mask-image: var(--badge-icon-game) !important; mask-image: var(--badge-icon-game) !important; }
body.page-dashboard .cards > .stat:nth-child(2) .stat-badge::before { -webkit-mask-image: var(--badge-icon-device) !important; mask-image: var(--badge-icon-device) !important; }
body.page-dashboard .cards > .stat:nth-child(3) .stat-badge::before { -webkit-mask-image: var(--badge-icon-grid) !important; mask-image: var(--badge-icon-grid) !important; }
body.page-dashboard .cards > .stat:nth-child(4) .stat-badge::before { -webkit-mask-image: var(--badge-icon-download) !important; mask-image: var(--badge-icon-download) !important; }

body.page-analytics .analytics-cards > .stat:nth-child(1) .stat-badge::before { -webkit-mask-image: var(--badge-icon-eye) !important; mask-image: var(--badge-icon-eye) !important; }
body.page-analytics .analytics-cards > .stat:nth-child(2) .stat-badge::before { -webkit-mask-image: var(--badge-icon-download) !important; mask-image: var(--badge-icon-download) !important; }
body.page-analytics .analytics-cards > .stat:nth-child(3) .stat-badge::before { -webkit-mask-image: var(--badge-icon-users) !important; mask-image: var(--badge-icon-users) !important; }
body.page-analytics .analytics-cards > .stat:nth-child(4) .stat-badge::before { -webkit-mask-image: var(--badge-icon-conversion) !important; mask-image: var(--badge-icon-conversion) !important; }

body.page-website_analytics .analytics-cards > .stat:nth-child(1) .stat-badge::before { -webkit-mask-image: var(--badge-icon-globe) !important; mask-image: var(--badge-icon-globe) !important; }
body.page-website_analytics .analytics-cards > .stat:nth-child(2) .stat-badge::before { -webkit-mask-image: var(--badge-icon-users) !important; mask-image: var(--badge-icon-users) !important; }
body.page-website_analytics .analytics-cards > .stat:nth-child(3) .stat-badge::before { -webkit-mask-image: var(--badge-icon-download) !important; mask-image: var(--badge-icon-download) !important; }
body.page-website_analytics .analytics-cards > .stat:nth-child(4) .stat-badge::before { -webkit-mask-image: var(--badge-icon-conversion) !important; mask-image: var(--badge-icon-conversion) !important; }

body.page-problem_reports .support-stats > .stat:nth-child(1) .stat-badge::before,
body.page-game_requests .support-stats > .stat:nth-child(1) .stat-badge::before { -webkit-mask-image: var(--badge-icon-inbox) !important; mask-image: var(--badge-icon-inbox) !important; }
body.page-problem_reports .support-stats > .stat:nth-child(2) .stat-badge::before,
body.page-game_requests .support-stats > .stat:nth-child(2) .stat-badge::before { -webkit-mask-image: var(--badge-icon-spark) !important; mask-image: var(--badge-icon-spark) !important; }
body.page-problem_reports .support-stats > .stat:nth-child(3) .stat-badge::before,
body.page-game_requests .support-stats > .stat:nth-child(3) .stat-badge::before { -webkit-mask-image: var(--badge-icon-clock) !important; mask-image: var(--badge-icon-clock) !important; }
body.page-problem_reports .support-stats > .stat:nth-child(4) .stat-badge::before,
body.page-game_requests .support-stats > .stat:nth-child(4) .stat-badge::before { -webkit-mask-image: var(--badge-icon-check) !important; mask-image: var(--badge-icon-check) !important; }

/* NextPlay PSP Admin: premium neon-blue control panel refresh. */
html,
body.admin-shell,
body.admin-shell.theme-dark {
    background: #071827 !important;
}

body.admin-shell,
body.admin-shell.theme-dark {
    --admin-bg: #071827;
    --admin-surface: #10273a;
    --admin-surface-2: #16334a;
    --admin-surface-deep: #091c2b;
    --admin-text: #f4fbff;
    --admin-muted: #a9c2d4;
    --admin-muted-2: #7199ad;
    --admin-line: rgba(72, 201, 255, .26);
    --admin-line-strong: rgba(72, 201, 255, .52);
    --admin-primary: #35c7ff;
    --admin-primary-2: #8be9ff;
    --admin-primary-dark: #158ad0;
    --admin-green: #35c7ff;
    --admin-danger: #ff5c8a;
    --admin-warning: #ffd166;
    --admin-shadow: 0 22px 48px rgba(0, 8, 18, .34);
    --admin-shadow-soft: 0 14px 30px rgba(0, 8, 18, .24);
    color: var(--admin-text) !important;
    background:
        radial-gradient(circle at 18% 8%, rgba(53, 199, 255, .18), transparent 26%),
        radial-gradient(circle at 82% 12%, rgba(139, 233, 255, .12), transparent 25%),
        linear-gradient(135deg, #071827 0%, #0b2234 48%, #102d42 100%) !important;
}

body.admin-shell::before {
    background:
        linear-gradient(90deg, rgba(72, 201, 255, .05) 1px, transparent 1px),
        linear-gradient(0deg, rgba(72, 201, 255, .04) 1px, transparent 1px) !important;
    background-size: 44px 44px !important;
    opacity: .68 !important;
}

body.admin-shell .sidebar,
body.admin-shell .topbar,
body.admin-shell .panel,
body.admin-shell .stat,
body.admin-shell .file-card,
body.admin-shell .table-wrap,
body.admin-shell .analytics-filter-bar,
body.admin-shell .quick-link,
body.admin-shell .list-card,
body.admin-shell .top-search,
body.admin-shell .status-chip,
body.admin-shell .user-chip,
body.admin-shell input,
body.admin-shell select,
body.admin-shell textarea,
body.admin-shell .check {
    color: var(--admin-text) !important;
    background: linear-gradient(145deg, rgba(16, 39, 58, .96), rgba(11, 31, 47, .94)) !important;
    border-color: var(--admin-line) !important;
    box-shadow: var(--admin-shadow-soft) !important;
}

body.admin-shell .sidebar {
    box-shadow: 16px 0 42px rgba(0, 8, 18, .30) !important;
}

body.admin-shell .brand-logo-img {
    background: #071827 !important;
    border-color: var(--admin-line-strong) !important;
    box-shadow: 0 0 0 1px rgba(139, 233, 255, .18), 0 14px 32px rgba(53, 199, 255, .20) !important;
}

body.admin-shell .brand strong,
body.admin-shell .topbar h1,
body.admin-shell .panel-head h2,
body.admin-shell .stat strong,
body.admin-shell .quick-link strong,
body.admin-shell td strong {
    color: var(--admin-text) !important;
}

body.admin-shell .nav-item {
    color: var(--admin-muted) !important;
    background: transparent !important;
    border-color: transparent !important;
}

body.admin-shell .nav-item:hover,
body.admin-shell .nav-item.active {
    color: var(--admin-primary-2) !important;
    background: linear-gradient(90deg, rgba(53, 199, 255, .18), rgba(16, 39, 58, .58)) !important;
    border-color: var(--admin-line) !important;
    box-shadow: inset 3px 0 0 var(--admin-primary), 0 12px 24px rgba(0, 8, 18, .22) !important;
}

body.admin-shell .nav-icon,
body.admin-shell .tool-icon,
body.admin-shell .mobile-menu {
    color: var(--admin-primary-2) !important;
    background: rgba(53, 199, 255, .10) !important;
    border-color: rgba(72, 201, 255, .28) !important;
}

body.admin-shell .btn.primary,
body.admin-shell .range-pill.active,
body.admin-shell .pagination a.active,
body.admin-shell .stat-badge,
body.admin-shell .avatar {
    color: #051421 !important;
    background: linear-gradient(135deg, var(--admin-primary), var(--admin-primary-2)) !important;
    border-color: rgba(244, 251, 255, .20) !important;
    box-shadow: 0 12px 26px rgba(53, 199, 255, .24) !important;
}

body.admin-shell .btn,
body.admin-shell .range-pill,
body.admin-shell .pagination a,
body.admin-shell .actions a {
    color: var(--admin-text) !important;
    background: rgba(16, 39, 58, .92) !important;
    border-color: var(--admin-line) !important;
}

body.admin-shell table,
body.admin-shell th {
    background: rgba(9, 28, 43, .92) !important;
    color: var(--admin-text) !important;
}

body.admin-shell td {
    border-bottom-color: rgba(72, 201, 255, .14) !important;
}

body.admin-shell tr:hover td {
    background: rgba(53, 199, 255, .055) !important;
}

body.admin-shell code,
body.admin-shell .pill,
body.admin-shell .list-chip {
    color: var(--admin-primary-2) !important;
    background: rgba(53, 199, 255, .10) !important;
    border-color: rgba(72, 201, 255, .24) !important;
}

/* Support inbox pages: Problem Reports and Game Requests. */
body.admin-shell .support-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 20px;
    overflow: hidden;
}

body.admin-shell .support-hero h2 {
    margin: 8px 0 6px;
    color: var(--admin-text);
    font: 800 clamp(22px, 2vw, 30px)/1.1 "Outfit", sans-serif;
}

body.admin-shell .support-hero p {
    margin: 0;
    max-width: 720px;
    color: var(--admin-muted);
}

body.admin-shell .support-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 11px;
    border-radius: 999px;
    background: #eef4ff;
    color: var(--admin-primary);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

body.admin-shell .support-eyebrow::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: var(--admin-green);
    box-shadow: 0 0 0 5px rgba(16, 185, 129, .14);
}

body.admin-shell .support-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}

body.admin-shell .support-stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

body.admin-shell .support-stat {
    min-height: 118px;
}

body.admin-shell .support-stat .stat-badge {
    font-size: 13px !important;
}

body.admin-shell .support-stat .stat-badge::before {
    content: none !important;
}

body.admin-shell .support-panel {
    padding: 18px;
}

body.admin-shell .support-table {
    min-width: 1180px;
}

body.admin-shell .support-table th,
body.admin-shell .support-table td {
    vertical-align: top;
}

body.admin-shell .support-date {
    min-width: 132px;
    color: var(--admin-muted);
    font-weight: 700;
}

body.admin-shell .support-user {
    min-width: 170px;
}

body.admin-shell .support-user small,
body.admin-shell .support-game-title span,
body.admin-shell .muted-text {
    color: var(--admin-muted);
    font-size: 11px;
}

body.admin-shell .support-game-title {
    min-width: 210px;
}

body.admin-shell .support-game-title strong,
body.admin-shell .support-game-title span {
    display: block;
}

body.admin-shell .support-message {
    max-width: 340px;
    min-width: 240px;
    max-height: 150px;
    overflow: auto;
    padding: 12px;
    border: 1px solid var(--admin-line);
    border-radius: 12px;
    background: #f8fafc;
    color: #344054;
    line-height: 1.5;
    white-space: normal;
}

body.admin-shell .support-response-cell {
    min-width: 360px;
}

body.admin-shell .support-response-form {
    display: grid;
    gap: 10px;
    min-width: 0;
}

body.admin-shell .support-response-form label {
    display: grid;
    gap: 6px;
}

body.admin-shell .support-response-form textarea {
    min-height: 96px;
    resize: vertical;
}

body.admin-shell .support-form-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

body.admin-shell .support-form-footer small {
    color: var(--admin-muted);
    font-size: 11px;
}

body.admin-shell .status-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 92px;
    padding: 7px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    white-space: nowrap;
}

body.admin-shell .status-new {
    color: #b45309;
    background: #fffbeb;
    border: 1px solid #fde68a;
}

body.admin-shell .status-in_progress {
    color: #1d4ed8;
    background: #eef4ff;
    border: 1px solid #bfdbfe;
}

body.admin-shell .status-resolved {
    color: #047857;
    background: #ecfdf5;
    border: 1px solid #bbf7d0;
}

body.admin-shell .status-closed {
    color: #475467;
    background: #f2f4f7;
    border: 1px solid #e4e7ec;
}

body.admin-shell .support-shot {
    display: grid;
    gap: 7px;
    justify-items: start;
    color: var(--admin-primary);
    font-size: 11px;
    font-weight: 800;
}

body.admin-shell .support-shot .thumb {
    width: 88px;
    height: 58px;
    object-fit: cover;
}

body.admin-shell .support-empty {
    display: grid;
    gap: 6px;
    justify-items: center;
    padding: 34px 16px;
    border-radius: 14px;
    background: #f8fafc;
    color: var(--admin-muted);
}

body.admin-shell .support-empty strong {
    color: var(--admin-text);
    font-size: 16px;
}

@media (max-width: 980px) {
    body.admin-shell .support-hero {
        align-items: stretch;
        flex-direction: column;
    }

    body.admin-shell .support-hero-actions {
        justify-content: flex-start;
    }

    body.admin-shell .support-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 640px) {
    body.admin-shell .support-stats {
        grid-template-columns: 1fr !important;
    }

    body.admin-shell .support-panel {
        padding: 14px;
    }

    body.admin-shell .support-form-footer {
        align-items: stretch;
        flex-direction: column;
    }
}

/* Final badge icon override: no letters inside stat badges anywhere. */
body.admin-shell .stat-badge,
body.admin-shell .support-stat .stat-badge {
    font-size: 0 !important;
    line-height: 0 !important;
}

body.admin-shell .stat-badge::before,
body.admin-shell .support-stat .stat-badge::before {
    content: "" !important;
    display: block !important;
    width: 19px !important;
    height: 19px !important;
    background: currentColor !important;
    -webkit-mask: var(--badge-icon-grid) center / contain no-repeat !important;
    mask: var(--badge-icon-grid) center / contain no-repeat !important;
}

body.page-dashboard .cards > .stat:nth-child(1) .stat-badge::before { -webkit-mask-image: var(--badge-icon-game) !important; mask-image: var(--badge-icon-game) !important; }
body.page-dashboard .cards > .stat:nth-child(2) .stat-badge::before { -webkit-mask-image: var(--badge-icon-device) !important; mask-image: var(--badge-icon-device) !important; }
body.page-dashboard .cards > .stat:nth-child(3) .stat-badge::before { -webkit-mask-image: var(--badge-icon-grid) !important; mask-image: var(--badge-icon-grid) !important; }
body.page-dashboard .cards > .stat:nth-child(4) .stat-badge::before { -webkit-mask-image: var(--badge-icon-download) !important; mask-image: var(--badge-icon-download) !important; }
body.page-analytics .analytics-cards > .stat:nth-child(1) .stat-badge::before { -webkit-mask-image: var(--badge-icon-eye) !important; mask-image: var(--badge-icon-eye) !important; }
body.page-analytics .analytics-cards > .stat:nth-child(2) .stat-badge::before { -webkit-mask-image: var(--badge-icon-download) !important; mask-image: var(--badge-icon-download) !important; }
body.page-analytics .analytics-cards > .stat:nth-child(3) .stat-badge::before { -webkit-mask-image: var(--badge-icon-users) !important; mask-image: var(--badge-icon-users) !important; }
body.page-analytics .analytics-cards > .stat:nth-child(4) .stat-badge::before { -webkit-mask-image: var(--badge-icon-conversion) !important; mask-image: var(--badge-icon-conversion) !important; }
body.page-website_analytics .analytics-cards > .stat:nth-child(1) .stat-badge::before { -webkit-mask-image: var(--badge-icon-globe) !important; mask-image: var(--badge-icon-globe) !important; }
body.page-website_analytics .analytics-cards > .stat:nth-child(2) .stat-badge::before { -webkit-mask-image: var(--badge-icon-users) !important; mask-image: var(--badge-icon-users) !important; }
body.page-website_analytics .analytics-cards > .stat:nth-child(3) .stat-badge::before { -webkit-mask-image: var(--badge-icon-download) !important; mask-image: var(--badge-icon-download) !important; }
body.page-website_analytics .analytics-cards > .stat:nth-child(4) .stat-badge::before { -webkit-mask-image: var(--badge-icon-conversion) !important; mask-image: var(--badge-icon-conversion) !important; }
body.page-problem_reports .support-stats > .stat:nth-child(1) .stat-badge::before,
body.page-game_requests .support-stats > .stat:nth-child(1) .stat-badge::before { -webkit-mask-image: var(--badge-icon-inbox) !important; mask-image: var(--badge-icon-inbox) !important; }
body.page-problem_reports .support-stats > .stat:nth-child(2) .stat-badge::before,
body.page-game_requests .support-stats > .stat:nth-child(2) .stat-badge::before { -webkit-mask-image: var(--badge-icon-spark) !important; mask-image: var(--badge-icon-spark) !important; }
body.page-problem_reports .support-stats > .stat:nth-child(3) .stat-badge::before,
body.page-game_requests .support-stats > .stat:nth-child(3) .stat-badge::before { -webkit-mask-image: var(--badge-icon-clock) !important; mask-image: var(--badge-icon-clock) !important; }
body.page-problem_reports .support-stats > .stat:nth-child(4) .stat-badge::before,
body.page-game_requests .support-stats > .stat:nth-child(4) .stat-badge::before { -webkit-mask-image: var(--badge-icon-check) !important; mask-image: var(--badge-icon-check) !important; }
