:root {
    --bg: #f4f7fb;
    --primary: #2563eb;
    --text: #0f172a;
    --white: #ffffff;
    --muted: #475569;
    --border: #dbe3ef;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background-color: var(--bg);
    /* background-image: set in includes/header.php via ilc_url (correct on subpaths / odd rewrites) */
    background-repeat: no-repeat;
    background-position: top center;
    background-size: 100% auto;
    background-attachment: fixed;
    color: var(--text);
    line-height: 1.5;
    -webkit-tap-highlight-color: transparent;
}

.container {
    width: min(960px, 92%);
    margin: 0 auto;
}

.top-bar {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 14px 0;
}

.top-bar .container {
    width: 100%;
    max-width: none;
    padding: 0 20px;
    margin: 0;
}

.logo {
    display: inline-flex;
    align-items: center;
}

.top-bar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.logo img {
    width: min(180px, 60vw);
    height: auto;
    display: block;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    flex: 1 1 auto;
    justify-content: center;
}

.user-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.user-nav-name {
    font-size: 0.82rem;
    color: #64748b;
}

.page {
    padding: 30px 0 56px;
}

.hero {
    text-align: center;
    margin-bottom: 30px;
}

.hero h1 {
    margin: 0 0 10px;
    font-size: clamp(1.65rem, 3.5vw, 2.15rem);
}

.hero p,
.section-subtext {
    margin: 0 0 20px;
    color: var(--muted);
}

.hero-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.hero-actions .btn {
    padding: 13px 22px;
}

.landing-page .hero-actions .btn-secondary {
    background: #facc15;
    color: #1f2937;
    border: 1px solid #eab308;
}

.landing-page .hero-actions .btn-secondary:hover {
    background: #fbbf24;
}

.check-card,
.result-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.05);
}

.check-card h1,
.check-card h2,
.result-card h1 {
    margin-top: 0;
}

.field-group {
    margin-bottom: 16px;
}

.recent-checks {
    margin: 0 0 16px;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: #f8fbff;
}

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

.recent-checks h3 {
    margin: 0;
    font-size: 0.95rem;
}

.recent-checks-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.recent-check-item {
    border: 1px solid #c7d8f4;
    background: #eef4ff;
    color: #1e293b;
    border-radius: 999px;
    padding: 6px 12px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
}

.recent-check-item:hover {
    background: #e0ecff;
}

.recent-clear-btn {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #fff;
    color: #475569;
    font-size: 0.76rem;
    padding: 4px 8px;
    cursor: pointer;
}

label {
    font-size: 13px;
    color: #64748b;
    font-weight: 500;
    display: block;
    margin-bottom: 4px;
}

input,
select,
textarea {
    width: 100%;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 1rem;
    background: var(--white);
}

input:focus-visible,
select:focus-visible,
.recent-check-item:focus-visible,
.recent-clear-btn:focus-visible,
.home-btn-inline:focus-visible,
.back-btn:focus-visible {
    outline: 2px solid #ca8a04;
    outline-offset: 2px;
}

input[type="date"] {
    accent-color: #facc15;
}

.numbers {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 5px;
}

.numbers input {
    min-width: 60px;
    text-align: center;
}

.number-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.number-input-label {
    margin-bottom: 4px;
}

.field-help {
    margin: 6px 0 0;
    font-size: 0.82rem;
    color: #64748b;
}

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

.rows-container {
    display: grid;
    gap: 12px;
}

.ticket-row {
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 10px;
    background: #f8fbff;
}

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

.ticket-row-head h3 {
    margin: 0;
    font-size: 0.95rem;
}

.lottery-rules-help {
    margin-top: 8px;
}

.date-feedback {
    margin: 6px 0 0;
    font-size: 0.82rem;
    color: #64748b;
}

.date-feedback.is-valid {
    color: #0f766e;
}

.date-feedback.is-invalid {
    color: #b91c1c;
}

.number-feedback {
    margin: 2px 0 0;
    min-height: 16px;
    font-size: 0.75rem;
    color: #b91c1c;
}

.submit-feedback {
    min-height: 16px;
}

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

.numbers input.input-invalid {
    border-color: #b91c1c;
    box-shadow: 0 0 0 1px rgba(185, 28, 28, 0.12);
}

.megaplier-controls {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.megaplier-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    color: var(--text);
}

.megaplier-toggle input {
    width: auto;
    margin: 0;
}

.megaplier-controls select {
    width: auto;
    min-width: 120px;
}

.back-btn {
    display: inline-block;
    margin-bottom: 15px;
    color: #2563eb;
    text-decoration: none;
    font-weight: 600;
}

.back-btn:hover {
    text-decoration: underline;
}

.page-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 15px;
}

.page-actions .back-btn {
    margin-bottom: 0;
}

.home-btn-inline {
    display: inline-block;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.86rem;
    color: #1f2937;
    background: #facc15;
    border: 1px solid #eab308;
    border-radius: 999px;
    padding: 6px 12px;
}

.home-btn-inline:hover {
    background: #fbbf24;
}

.btn {
    display: inline-block;
    border: none;
    border-radius: 8px;
    padding: 11px 18px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.15s ease, opacity 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
    touch-action: manipulation;
}

.btn:hover {
    transform: translateY(-1px);
    opacity: 1;
    box-shadow: 0 6px 14px rgba(15, 23, 42, 0.16);
}

.btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.18) inset;
}

.btn:focus-visible {
    outline: 2px solid #ca8a04;
    outline-offset: 2px;
}

.btn[disabled] {
    cursor: not-allowed;
    opacity: 0.85;
}

.btn-primary {
    background: #facc15;
    color: #1f2937;
    border: 1px solid #eab308;
}

.btn-secondary {
    background: #facc15;
    color: #1f2937;
    border: 1px solid #eab308;
}

.btn-primary:hover,
.btn-secondary:hover {
    background: #fbbf24;
}

.trust {
    margin-top: 20px;
    text-align: center;
    color: var(--muted);
    font-size: 0.95rem;
}

.landing-section {
    margin-top: 20px;
}

.landing-access-tiers {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 4px;
}

.landing-tier-cta {
    margin-bottom: 0;
}

    margin-top: 14px;
}

.landing-page {
    padding-top: 18px;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.info-card {
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 14px;
    background: #f8fbff;
}

.info-card h3 {
    margin: 0 0 6px;
    font-size: 1rem;
}

.info-card p {
    margin: 0;
    color: var(--muted);
    font-size: 0.93rem;
}

.lottery-rule-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.lottery-rule-card {
    border: 1px solid #c4d5f1;
    border-radius: 10px;
    padding: 14px;
    background: #f8fbff;
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.06);
}

.lottery-rule-card p {
    margin: 0;
    color: var(--muted);
    font-size: 0.9rem;
}

.result-list {
    margin: 0 0 20px;
    padding-left: 20px;
}

.result-overview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
    margin-bottom: 18px;
}

.result-overview-grid > .result-overview-item {
    min-width: 0;
}

.result-overview-item {
    background: #f8fbff;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 10px 12px;
}

.result-overview-label {
    margin: 0;
    font-size: 0.78rem;
    color: #64748b;
}

.result-overview-grid--ticket-check .result-overview-item-ticket-status {
    border-width: 2px;
    padding: 12px 14px;
}

.result-overview-grid--ticket-check .result-overview-item-ticket-status.is-win {
    background: linear-gradient(165deg, #ecfdf5 0%, #bbf7d0 55%, #86efac 100%);
    border-color: #16a34a;
    box-shadow: 0 2px 8px rgba(22, 163, 74, 0.12);
}

.result-overview-grid--ticket-check .result-overview-item-ticket-status.is-lose {
    background: linear-gradient(165deg, #fef2f2 0%, #fecaca 100%);
    border-color: #f87171;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.1);
}

.result-overview-grid--ticket-check .result-overview-item-ticket-status .result-overview-label {
    font-size: 0.82rem;
    font-weight: 600;
    color: #334155;
}

.result-overview-grid--ticket-check .result-overview-item-ticket-status .status-pill {
    font-size: clamp(0.92rem, 2.5vw, 1.1rem);
    padding: 8px 16px;
    margin-top: 2px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.result-overview-grid--ticket-check .result-overview-item-ticket-status.is-win .status-pill.is-win {
    background: #ffffff;
    color: #047857;
    border: 1px solid rgba(22, 163, 74, 0.35);
}

.result-overview-grid--ticket-check .result-overview-item-ticket-status.is-lose .status-pill.is-lose {
    background: #ffffff;
    color: #b91c1c;
    border: 1px solid rgba(248, 113, 113, 0.5);
}

.result-overview-grid--ticket-check .result-overview-item-ticket-payout,
.result-overview-grid--ticket-check .result-overview-item-ticket-payout-total {
    border-width: 2px;
    padding: 12px 14px;
    background: linear-gradient(165deg, #fffbeb 0%, #fde047 40%, #facc15 100%);
    border-color: #eab308;
    box-shadow: 0 2px 10px rgba(234, 179, 8, 0.2);
    container-type: inline-size;
    container-name: ilc-ticket-pay;
}

.result-overview-grid--ticket-check .result-overview-item-ticket-payout-total {
    border-color: #ca8a04;
}

.result-overview-grid--ticket-check .result-overview-item-ticket-payout .result-overview-label,
.result-overview-grid--ticket-check .result-overview-item-ticket-payout-total .result-overview-label {
    font-size: 0.82rem;
    font-weight: 700;
    color: #78350f;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

/* Match Summary — money stays one line until JS lowers font-size to fit narrow grid cells */
[data-ilc-payout-fit] {
    white-space: nowrap;
}

.result-fx-output [data-ilc-payout-fit] {
    display: inline-block;
    max-width: 100%;
    vertical-align: baseline;
}

.result-overview-grid--ticket-check .result-overview-item-ticket-payout .result-overview-value,
.result-overview-grid--ticket-check .result-overview-item-ticket-payout-total .result-overview-value {
    margin-top: 8px;
    width: 100%;
    box-sizing: border-box;
    line-height: 1.18;
    font-weight: 800;
    color: #422006;
    font-variant-numeric: tabular-nums;
    overflow-wrap: normal;
    word-break: normal;
    /* Fallback when container units / JS unavailable — never inflate from viewport vmin */
    font-size: clamp(0.6875rem, 0.72rem, 1rem);
}

.result-overview-grid--ticket-check .result-overview-item-ticket-payout-total .result-overview-value {
    font-size: clamp(0.6875rem, 0.76rem, 1.0625rem);
}

@supports (font-size: 1cqw) {
    .result-overview-grid--ticket-check .result-overview-item-ticket-payout .result-overview-value,
    .result-overview-grid--ticket-check .result-overview-item-ticket-payout-total .result-overview-value {
        font-size: clamp(0.6875rem, calc(0.48rem + 4.85cqw), 1.0625rem);
    }

    .result-overview-grid--ticket-check .result-overview-item-ticket-payout-total .result-overview-value {
        font-size: clamp(0.6875rem, calc(0.5rem + 5.2cqw), 1.125rem);
    }
}

.result-fx-panel {
    margin: 14px 0 18px;
    padding: 14px 16px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: linear-gradient(180deg, #f8fafc 0%, #fff 65%);
    container-type: inline-size;
    container-name: ilc-fx;
    min-width: 0;
}

.result-fx-heading {
    margin: 0 0 10px;
    font-size: 1rem;
    font-weight: 700;
    color: #0f172a;
}

.result-fx-intro {
    margin: 0 0 12px !important;
}

.result-fx-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 14px;
    margin-bottom: 10px;
}

.result-fx-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #334155;
}

.result-fx-select {
    min-width: min(260px, 100%);
    padding: 8px 10px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: #fff;
    font-size: 0.95rem;
}

.result-fx-output {
    margin: 8px 0 6px;
    max-width: 100%;
    font-size: 1.1rem;
    font-weight: 700;
    color: #422006;
    font-variant-numeric: tabular-nums;
    overflow-wrap: break-word;
    word-break: break-word;
    line-height: 1.3;
}

.result-fx-output .result-fx-eq {
    font-weight: 600;
    color: #64748b;
    font-size: 0.92rem;
    margin-right: 4px;
}

.result-fx-output .result-fx-sum {
    font-size: clamp(0.8rem, 0.82rem, 1.0625rem);
}

@supports (font-size: 1cqw) {
    .result-fx-output .result-fx-sum {
        font-size: clamp(0.8rem, calc(0.55rem + 3.65cqw), 1.125rem);
    }
}

.result-fx-meta {
    margin-bottom: 6px !important;
    font-size: 0.82rem !important;
    line-height: 1.45;
}

.result-fx-meta a {
    color: var(--accent, #2563eb);
}

.result-fx-load-status {
    margin-top: 0 !important;
    font-style: italic;
    color: #64748b;
}

.result-fx-disclaimer {
    margin-top: 10px !important;
    margin-bottom: 0 !important;
}

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

.status-pill.is-win {
    background: #dcfce7;
    color: #166534;
}

.status-pill.is-lose {
    background: #fee2e2;
    color: #991b1b;
}

.result-block {
    margin-bottom: 16px;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 12px;
    background: #fff;
}

.result-block h3 {
    margin: 0 0 10px;
    font-size: 1rem;
}

.result-highlight {
    background: #fffdf2;
    border-color: #f5e4a3;
}

.result-summary-text {
    margin: 0;
    color: #854d0e;
    font-weight: 700;
}

.number-group {
    margin-bottom: 10px;
}

.number-group:last-child {
    margin-bottom: 0;
}

.number-group-title {
    margin: 0 0 6px;
    font-size: 0.82rem;
    color: #64748b;
    font-weight: 600;
}

.number-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.number-chip {
    min-width: 32px;
    height: 32px;
    border-radius: 999px;
    padding: 0 10px;
    border: 1px solid #d6e2f5;
    background: #eef4ff;
    color: #1e293b;
    font-size: 0.86rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.number-chip.is-matched {
    background: #fef08a;
    border-color: #f59e0b;
    color: #854d0e;
    animation: matchedPulse 0.7s ease-out;
}

@keyframes matchedPulse {
    0% {
        transform: scale(1);
    }
    45% {
        transform: scale(1.08);
    }
    100% {
        transform: scale(1);
    }
}

.nearby-dates-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.nearby-date-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid #c7d8f4;
    background: #eef4ff;
    color: #1e293b;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 600;
}

.nearby-date-chip:hover {
    background: #e0ecff;
}

.result-note {
    margin-bottom: 16px;
}

.payout-list li {
    margin-bottom: 6px;
}

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

.copy-toast {
    position: fixed;
    right: 16px;
    bottom: 16px;
    z-index: 90;
    background: #1f2937;
    color: #ffffff;
    border-radius: 999px;
    padding: 8px 12px;
    font-size: 0.82rem;
    font-weight: 700;
    opacity: 0;
    transform: translateY(8px);
    pointer-events: none;
    transition: opacity 0.18s ease, transform 0.18s ease;
}

.copy-toast.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.stats-data-table {
    width: 100%;
    border-collapse: collapse;
    margin: 12px 0;
    font-size: 0.86rem;
}

.stats-data-table th,
.stats-data-table td {
    border-bottom: 1px solid var(--border);
    padding: 8px;
    text-align: left;
    vertical-align: top;
}

.stats-data-table th {
    color: #475569;
    font-weight: 600;
}

.stats-subhead {
    margin: 16px 0 8px;
    font-size: 1rem;
    color: #334155;
}

.stats-report-block {
    overflow-x: auto;
}

.site-footer {
    border-top: 1px solid var(--border);
    background: var(--white);
    padding: 0;
    margin-top: auto;
}

.site-footer-nav {
    background: #1e293b;
    padding: 12px 0;
}

.site-footer-nav-inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 6px 2px;
    row-gap: 10px;
    font-size: 0.8125rem;
    line-height: 1.4;
}

.site-footer-nav a {
    color: #4ade80;
    font-weight: 600;
    text-decoration: none;
    padding: 4px 2px;
}

.site-footer-nav a:hover {
    color: #86efac;
    text-decoration: underline;
}

.site-footer-nav a:focus-visible {
    outline: 2px solid #86efac;
    outline-offset: 2px;
    border-radius: 4px;
}

.site-footer-nav-sep {
    color: #f8fafc;
    opacity: 0.9;
    user-select: none;
    padding: 0 4px;
}

.site-footer-copy {
    padding: 14px 0;
    text-align: center;
    color: var(--muted);
    font-size: 0.85rem;
}

.site-footer-copy p {
    margin: 0;
}

.info-static-page h1 {
    margin: 0 0 8px;
    font-size: clamp(1.35rem, 3vw, 1.65rem);
}

.info-static-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.info-static-toolbar .btn {
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.info-static-toolbar button.btn {
    cursor: pointer;
    font: inherit;
    border-width: 1px;
    border-style: solid;
}

.info-static-page .info-last-updated {
    margin: 0 0 18px;
    font-size: 0.875rem;
    color: var(--muted);
}

.info-static-page h2 {
    margin: 22px 0 8px;
    font-size: 1.05rem;
    color: var(--text);
}

.info-static-page p,
.info-static-page li {
    font-size: 0.9375rem;
    color: var(--text);
}

.info-static-page ul {
    margin: 8px 0 12px 1.2em;
    padding: 0;
}

.info-static-page .notice-box {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 10px;
    padding: 12px 14px;
    margin: 16px 0;
    font-size: 0.9rem;
    color: #1e3a8a;
}

.info-static-page a {
    color: var(--primary);
    font-weight: 600;
}

.install-banner {
    position: fixed;
    right: 14px;
    bottom: 14px;
    z-index: 40;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 10px 12px;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.12);
    max-width: min(420px, 92vw);
}

.install-btn {
    white-space: nowrap;
}

.install-banner .btn,
#installAppBtn {
    background: #facc15 !important;
    color: #1f2937 !important;
    border: 1px solid #eab308 !important;
}

.install-banner .btn:hover,
#installAppBtn:hover {
    background: #fbbf24 !important;
}

@media (max-width: 480px) {
    .check-card,
    .result-card {
        padding: 18px;
    }

    .page {
        padding: 16px 0 40px;
    }

    .hero {
        margin-bottom: 18px;
    }

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

    .hero-actions .btn {
        width: 100%;
        text-align: center;
    }

    .btn {
        min-height: 44px;
    }

    .back-btn {
        margin-bottom: 10px;
    }

    .home-btn-inline {
        padding: 6px 10px;
        font-size: 0.82rem;
    }

    .logo img {
        width: min(150px, 65vw);
    }

    .top-bar-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .site-nav {
        width: 100%;
        justify-content: flex-start;
    }

    .user-nav {
        width: 100%;
        justify-content: flex-start;
    }

    .install-banner {
        left: 12px;
        right: 12px;
        bottom: 12px;
        justify-content: flex-end;
    }

    .result-actions .btn {
        width: 100%;
        text-align: center;
    }

    .copy-toast {
        right: 12px;
        bottom: 12px;
    }

    .site-footer-nav-inner {
        font-size: 0.72rem;
        gap: 4px 1px;
    }

    .site-footer-nav-sep {
        padding: 0 2px;
    }
}

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

    .lottery-rule-grid {
        grid-template-columns: 1fr;
    }
}

/* Admin manual check recent table (Manual Check Statistics page) */
.admin-manual-recent-heading {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: baseline;
    gap: 8px 12px;
    margin-bottom: 4px;
}

.admin-manual-updated {
    margin: 0;
    font-style: italic;
}

.admin-manual-scroll {
    max-height: 520px;
    overflow: auto;
    margin-top: 12px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #fafcff;
}

.admin-manual-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.86rem;
}

.admin-manual-table thead th {
    position: sticky;
    top: 0;
    z-index: 2;
    padding: 11px 12px;
    text-align: left;
    background: #e8eef8;
    border-bottom: 2px solid var(--border);
    color: #1e3a5f;
    font-weight: 700;
    white-space: nowrap;
}

.admin-manual-table tbody td {
    padding: 11px 12px;
    border-bottom: 1px solid var(--border);
    vertical-align: top;
    background: var(--white);
    color: var(--text);
}

.admin-manual-table tbody tr:last-child td {
    border-bottom: none;
}

.admin-manual-table tbody tr:hover td {
    background: #f1f7ff;
}

.admin-manual-nowrap {
    white-space: nowrap;
    color: var(--muted);
    font-size: 0.82rem;
}

.admin-manual-muted {
    color: var(--muted);
    font-size: 0.82rem;
}

.admin-manual-strong {
    color: var(--primary);
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}

.admin-manual-game-pill {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 999px;
    border: 1px solid rgba(250, 204, 21, 0.65);
    background: rgba(250, 204, 21, 0.2);
    color: #854d0e;
    font-weight: 700;
    font-size: 0.8rem;
    white-space: nowrap;
}

.admin-manual-numbers-cell {
    max-width: 420px;
    min-width: 220px;
}

.admin-manual-numbers-wrap {
    max-height: 200px;
    overflow-y: auto;
    padding: 8px 10px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: #f8fafc;
}

.admin-manual-row-line {
    margin-bottom: 8px;
}

.admin-manual-row-line:last-child {
    margin-bottom: 0;
}

.admin-manual-row-label {
    display: block;
    font-size: 0.74rem;
    font-weight: 700;
    color: #c2410c;
    margin-bottom: 5px;
}

.admin-manual-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.admin-manual-mini-chip {
    min-width: 28px;
    height: 28px;
    border-radius: 8px;
    padding: 0 7px;
    border: 1px solid rgba(37, 99, 235, 0.25);
    background: #e8f2ff;
    color: var(--text);
    font-size: 0.76rem;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.admin-manual-payout {
    white-space: nowrap;
    font-weight: 700;
    color: #15803d;
    font-variant-numeric: tabular-nums;
}

.admin-manual-result {
    max-width: 220px;
    font-size: 0.74rem;
    color: var(--muted);
    font-family: ui-monospace, SFMono-Regular, Consolas, Menlo, monospace;
    word-break: break-word;
}

.admin-manual-json {
    cursor: help;
}
