:root {
    --bg: #07110d;
    --bg-soft: #0d1c16;
    --panel: rgba(16, 28, 22, 0.96);
    --panel-soft: rgba(255, 255, 255, 0.04);
    --line: rgba(255, 255, 255, 0.09);
    --text: #f8f4ea;
    --muted: #9aada0;
    --accent: #a4f067;
    --accent-deep: #87d74b;
    --gold: #f4bf54;
    --danger: #ff7f67;
    --danger-soft: rgba(255, 127, 103, 0.12);
    --success-soft: rgba(164, 240, 103, 0.14);
    --shadow: 0 28px 70px rgba(0, 0, 0, 0.3);
    --radius: 24px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: 'Sora', sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(164, 240, 103, 0.1), transparent 24%),
        radial-gradient(circle at right 10%, rgba(244, 191, 84, 0.09), transparent 18%),
        linear-gradient(180deg, #081410 0%, #07110d 100%);
}

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

button,
input,
select,
textarea {
    font: inherit;
}

button {
    border: 0;
}

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

.sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    padding: 28px 20px;
    background: rgba(6, 12, 9, 0.9);
    border-right: 1px solid var(--line);
    display: grid;
    align-content: start;
    gap: 24px;
}

.sidebar-brand,
.brand-mark,
.topbar,
.topbar-meta,
.toolbar,
.filter-form,
.table-actions,
.pagination-bar,
.pagination-actions,
.checkbox-row {
    display: flex;
    align-items: center;
}

.sidebar-brand {
    gap: 12px;
}

.brand-mark,
.topbar-copy h1,
.card-header h2,
.stat-card strong,
.metric-value,
.auth-panel h1,
.auth-panel h2 {
    font-family: 'Bebas Neue', sans-serif;
    letter-spacing: 0.03em;
}

.brand-mark {
    width: 52px;
    height: 52px;
    justify-content: center;
    border-radius: 18px;
    background: linear-gradient(135deg, var(--accent), var(--gold));
    color: #09110d;
    font-size: 1.9rem;
}

.sidebar-brand strong,
.identity-chip strong {
    display: block;
}

.sidebar-brand span,
.identity-chip span,
.topbar-copy p,
.detail-list span,
.metric-row span,
.stat-card p,
.empty-state p,
.auth-panel p,
.demo-list span,
.sidebar-note p,
td,
th,
label,
.flash {
    color: var(--muted);
}

.sidebar-group {
    display: grid;
    gap: 10px;
}

.sidebar-label,
.eyebrow,
.stat-label {
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.sidebar-label {
    color: var(--gold);
}

.sidebar-link {
    padding: 12px 14px;
    border-radius: 16px;
    border: 1px solid transparent;
    color: var(--muted);
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.sidebar-link:hover,
.sidebar-link.active {
    color: var(--text);
    background: rgba(164, 240, 103, 0.08);
    border-color: rgba(164, 240, 103, 0.12);
}

.sidebar-note {
    padding: 16px;
    border-radius: 18px;
    border: 1px solid var(--line);
    background: var(--panel-soft);
}

.admin-main {
    min-width: 0;
    padding: 24px;
}

.topbar {
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
}

.topbar-copy h1,
.card-header h2,
.auth-panel h1,
.auth-panel h2 {
    margin: 0;
    color: var(--text);
    line-height: 0.96;
}

.topbar-copy h1 {
    font-size: clamp(2.3rem, 4vw, 3.4rem);
}

.topbar-copy p {
    margin: 8px 0 0;
    max-width: 680px;
    line-height: 1.7;
}

.topbar-meta {
    gap: 12px;
}

.identity-chip {
    padding: 12px 16px;
    border-radius: 18px;
    border: 1px solid var(--line);
    background: var(--panel-soft);
}

.content,
.content-grid,
.stats-grid,
.metric-list,
.detail-list,
.form-grid,
.stack-form,
.demo-list,
.role-grid,
.action-grid {
    display: grid;
    gap: 18px;
}

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

.content-grid.two-column {
    grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
}

.panel,
.stat-card,
.auth-panel {
    border-radius: var(--radius);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    background: linear-gradient(180deg, rgba(18, 33, 26, 0.96), rgba(9, 16, 12, 0.96));
}

.panel,
.auth-panel {
    padding: 24px;
}

.stat-card {
    padding: 22px;
}

.stat-card strong {
    display: block;
    margin: 8px 0 6px;
    font-size: 2.3rem;
}

.stat-card p {
    margin: 0;
    line-height: 1.6;
}

.eyebrow {
    display: inline-flex;
    width: fit-content;
    padding: 8px 12px;
    border-radius: 999px;
    color: var(--accent);
    background: rgba(164, 240, 103, 0.08);
    border: 1px solid rgba(164, 240, 103, 0.12);
}

.card-header {
    display: grid;
    gap: 12px;
    margin-bottom: 18px;
}

.card-header h2 {
    font-size: clamp(2rem, 3vw, 3rem);
}

.button {
    display: inline-flex;
    justify-content: center;
    gap: 10px;
    padding: 12px 18px;
    border-radius: 999px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.button:hover {
    transform: translateY(-1px);
}

.button-primary {
    color: #09110d;
    background: linear-gradient(135deg, var(--accent), var(--gold));
}

.button-ghost,
.button-disabled {
    color: var(--text);
    background: rgba(255, 255, 255, 0.04);
    border-color: var(--line);
}

.button-disabled {
    opacity: 0.55;
    cursor: default;
}

.toolbar,
.pagination-bar {
    justify-content: space-between;
    gap: 12px;
}

.toolbar.wrap {
    flex-wrap: wrap;
}

.filter-form {
    gap: 12px;
    flex-wrap: wrap;
}

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

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

.transaction-card {
    padding: 14px 16px;
    border-radius: 18px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.03);
}

.transaction-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}

.transaction-head strong,
.transaction-meta,
.transaction-card p {
    display: block;
}

.transaction-card p,
.transaction-meta {
    margin: 0;
    color: var(--muted);
    line-height: 1.65;
}

.transaction-meta {
    font-size: 0.85rem;
}

.transaction-amount {
    font-weight: 700;
}

.transaction-amount.positive {
    color: var(--accent);
}

.transaction-amount.negative {
    color: var(--danger);
}

table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    padding: 16px 12px;
    text-align: left;
    border-bottom: 1px solid var(--line);
}

th {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--gold);
}

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

.table-actions {
    gap: 10px;
    flex-wrap: wrap;
}

.table-link {
    padding: 0;
    background: transparent;
    color: var(--accent);
    cursor: pointer;
}

.table-link.danger {
    color: var(--danger);
}

.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
}

.status-badge.active {
    color: var(--accent);
    background: var(--success-soft);
}

.status-badge.inactive {
    color: var(--danger);
    background: var(--danger-soft);
}

.metric-row,
.detail-list > div {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
}

.metric-row:last-child,
.detail-list > div:last-child {
    border-bottom: 0;
}

.metric-row strong,
.detail-list strong {
    display: block;
    color: var(--text);
}

.metric-value {
    font-size: 1.8rem;
    color: var(--accent);
}

.flash {
    margin-bottom: 18px;
    padding: 14px 16px;
    border-radius: 18px;
    border: 1px solid var(--line);
    line-height: 1.65;
}

.flash.success {
    color: var(--accent);
    background: rgba(164, 240, 103, 0.08);
}

.flash.error {
    color: #ffd5cf;
    background: rgba(255, 127, 103, 0.08);
}

.flash ul {
    margin: 10px 0 0;
    padding-left: 18px;
}

.flash.compact {
    margin-bottom: 16px;
}

.field,
.field-full {
    display: grid;
    gap: 8px;
}

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

.field-full {
    grid-column: 1 / -1;
}

input,
select,
textarea {
    width: 100%;
    padding: 13px 14px;
    border-radius: 16px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
}

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

.checkbox-row {
    gap: 10px;
    font-size: 0.92rem;
}

.checkbox-row input {
    width: auto;
}

.empty-state {
    padding: 24px;
    border-radius: 18px;
    border: 1px dashed var(--line);
    background: rgba(255, 255, 255, 0.03);
}

.empty-state strong {
    display: block;
    margin-bottom: 6px;
}

.empty-state.compact {
    padding: 18px;
}

.subsection {
    margin-top: 18px;
}

.subsection h3 {
    margin: 0 0 12px;
}

.side-note {
    align-content: start;
}

.pagination-actions {
    gap: 10px;
}

.sidebar-toggle {
    display: none;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--line);
    color: var(--text);
}

.auth-page {
    display: grid;
    place-items: center;
    padding: 24px;
}

.auth-shell {
    width: min(1120px, 100%);
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(340px, 0.9fr);
    gap: 20px;
}

.auth-panel-copy {
    background:
        radial-gradient(circle at top right, rgba(244, 191, 84, 0.13), transparent 22%),
        linear-gradient(160deg, rgba(18, 33, 26, 0.98), rgba(9, 16, 12, 0.98));
}

.auth-panel h1 {
    font-size: clamp(3.2rem, 7vw, 5.6rem);
    margin: 12px 0;
    max-width: 10ch;
}

.auth-panel h2 {
    font-size: 2.4rem;
}

.auth-panel p {
    line-height: 1.75;
    max-width: 58ch;
}

.login-note,
.module-copy {
    margin: 0 0 16px;
    line-height: 1.75;
    color: var(--muted);
}

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

.role-grid.compact {
    grid-template-columns: 1fr;
}

.demo-list > div {
    padding: 14px;
    border-radius: 18px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.03);
}

.role-card,
.action-card {
    padding: 16px;
    border-radius: 18px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.03);
}

.role-card strong,
.action-card strong {
    display: block;
    margin-bottom: 8px;
    color: var(--text);
}

.role-card p,
.action-card p {
    margin: 0;
    line-height: 1.7;
    color: var(--muted);
}

.role-card-soft {
    background: rgba(164, 240, 103, 0.06);
}

.panel-inner {
    padding: 18px;
    background: rgba(255, 255, 255, 0.03);
    box-shadow: none;
}

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

.action-card {
    transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.action-card:hover {
    transform: translateY(-2px);
    border-color: rgba(164, 240, 103, 0.18);
    background: rgba(164, 240, 103, 0.06);
}

.compact-list {
    gap: 0;
}

.demo-list strong,
.demo-list span {
    display: block;
}

.sportsbook-rule {
    padding: 10px 14px;
    border-radius: 999px;
    border: 1px solid rgba(244, 191, 84, 0.16);
    background: rgba(244, 191, 84, 0.08);
    color: var(--text);
}

.fixture-grid,
.fixture-stack,
.live-score-grid {
    display: grid;
    gap: 16px;
}

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

.live-score-grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.fixture-stack.compact {
    gap: 12px;
}

.fixture-card,
.fixture-preview,
.live-score-card {
    padding: 18px;
    border-radius: 20px;
    border: 1px solid var(--line);
    background:
        radial-gradient(circle at top right, rgba(164, 240, 103, 0.1), transparent 30%),
        rgba(255, 255, 255, 0.03);
}

.fixture-preview-head,
.live-score-header,
.stake-row,
.odds-strip {
    display: flex;
    align-items: center;
}

.fixture-preview-head,
.live-score-header,
.stake-row {
    justify-content: space-between;
    gap: 12px;
}

.fixture-title,
.fixture-preview strong {
    display: block;
    margin-bottom: 8px;
    font-size: 1.15rem;
    color: var(--text);
}

.fixture-copy,
.fixture-note,
.fixture-preview p,
.live-score-card p {
    margin: 0 0 12px;
    color: var(--muted);
    line-height: 1.7;
}

.fixture-note {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--line);
}

.sport-pill {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(164, 240, 103, 0.12);
    color: var(--accent);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.12em;
}

.fixture-time {
    color: var(--gold);
    font-size: 0.85rem;
}

.odds-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
    gap: 10px;
}

.odds-option {
    position: relative;
    display: block;
    cursor: pointer;
}

.odds-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.odds-option-copy {
    display: grid;
    gap: 6px;
    min-height: 84px;
    padding: 14px;
    border-radius: 18px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.03);
    transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.odds-option:hover .odds-option-copy {
    transform: translateY(-1px);
    border-color: rgba(164, 240, 103, 0.22);
}

.odds-option input:checked + .odds-option-copy {
    border-color: rgba(164, 240, 103, 0.32);
    background: rgba(164, 240, 103, 0.1);
    box-shadow: inset 0 0 0 1px rgba(164, 240, 103, 0.12);
}

.odds-market {
    color: var(--muted);
    font-size: 0.84rem;
}

.odds-option-copy strong {
    font-size: 1.3rem;
    color: var(--text);
}

.stake-row {
    margin-top: 14px;
}

.stake-row input {
    flex: 1;
}

.odds-strip {
    flex-wrap: wrap;
    gap: 8px;
}

.odds-strip span {
    display: inline-flex;
    padding: 8px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--line);
    color: var(--text);
    font-size: 0.82rem;
}

.live-feed-shell {
    margin-bottom: 18px;
}

.live-score-title {
    display: block;
    margin: 10px 0 8px;
    font-size: 1.08rem;
    color: var(--text);
}

.live-score-meta,
.score-lines {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.live-score-meta {
    margin-bottom: 10px;
}

.live-score-meta span,
.score-pill {
    display: inline-flex;
    padding: 8px 10px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
    font-size: 0.8rem;
}

.score-pill {
    background: rgba(164, 240, 103, 0.08);
    border-color: rgba(164, 240, 103, 0.12);
}

.full-width {
    width: 100%;
}

@media (max-width: 1080px) {
    .admin-shell,
    .auth-shell,
    .content-grid.two-column,
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .action-grid,
    .role-grid {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: fixed;
        inset: 0 auto 0 0;
        width: min(280px, calc(100% - 64px));
        transform: translateX(-100%);
        transition: transform 0.2s ease;
        z-index: 30;
    }

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

    .sidebar-toggle {
        display: inline-flex;
    }

    .admin-main {
        padding: 18px;
    }
}

@media (max-width: 760px) {
    .topbar,
    .toolbar,
    .pagination-bar {
        flex-direction: column;
        align-items: start;
    }

    .topbar-meta,
    .filter-form,
    .form-grid {
        width: 100%;
        grid-template-columns: 1fr;
    }

    .button,
    .filter-form input,
    .filter-form select {
        width: 100%;
    }

    .metric-row,
    .detail-list > div {
        flex-direction: column;
        align-items: start;
    }

    .stake-row,
    .fixture-preview-head,
    .live-score-header {
        flex-direction: column;
        align-items: start;
    }
}
