:root {
    --bg: #050505;
    --bg-2: #101010;
    --surface: rgba(14,14,14,.84);
    --surface-strong: rgba(18,18,18,.94);
    --panel: linear-gradient(180deg, rgba(20,20,20,.96), rgba(9,9,9,.96));
    --text: #f3f3f3;
    --muted: #b4b4b4;
    --line: rgba(255,255,255,.10);
    --line-strong: rgba(255,255,255,.18);
    --gold: #c8a449;
    --gold-strong: #ddb354;
    --gold-soft: rgba(200,164,73,.18);
    --silver: #bcbcbc;
    --silver-soft: rgba(180,180,180,.12);
    --success: #57c783;
    --danger: #ff7b7b;
    --shadow: 0 22px 50px rgba(0,0,0,.45);
    --radius: 26px;
}
* { box-sizing: border-box; }
html { min-height: 100%; }
body {
    margin: 0;
    min-height: 100vh;
    color: var(--text);
    font-family: Inter, Arial, Helvetica, sans-serif;
    background:
        radial-gradient(circle at top left, rgba(200,164,73,.16), transparent 22%),
        radial-gradient(circle at top right, rgba(255,255,255,.05), transparent 18%),
        linear-gradient(180deg, #040404 0%, #0b0b0b 52%, #121212 100%);
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.page {
    width: min(1180px, calc(100% - 28px));
    margin: 0 auto;
    padding: 20px 0 36px;
}
.page.narrow { width: min(780px, calc(100% - 28px)); }
.bg-orb { display: none; }
.top-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 14px 16px;
    border-radius: 28px;
    border: 1px solid var(--line);
    background: rgba(12,12,12,.92);
    box-shadow: var(--shadow);
    backdrop-filter: blur(14px);
    margin-bottom: 18px;
}
.brand-block {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}
.brand-logo, .pay-logo {
    width: 82px;
    height: 82px;
    object-fit: contain;
    border-radius: 20px;
    background: #ffffff;
    padding: 6px;
    border: 1px solid rgba(255,255,255,.08);
}
.brand-block span, .brand {
    display: block;
    color: var(--gold-strong);
    font-weight: 900;
    letter-spacing: .28em;
    font-size: 12px;
    text-transform: uppercase;
}
.brand-block strong {
    display: block;
    font-size: clamp(20px, 3vw, 34px);
    margin-top: 6px;
    line-height: 1.05;
}
.nav-chip, .countdown {
    min-width: 220px;
    text-align: center;
    padding: 14px 18px;
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(26,26,26,.98), rgba(12,12,12,.98));
    border: 1px solid rgba(200,164,73,.28);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.4);
}
.nav-chip span, .countdown span {
    display: block;
    color: var(--muted);
    font-size: 12px;
    margin-bottom: 4px;
}
.nav-chip strong, .countdown strong {
    font-size: 22px;
    color: var(--gold-strong);
}
.layout-grid {
    display: grid;
    grid-template-columns: .92fr 1.08fr;
    gap: 18px;
    align-items: start;
}
.hero-panel, .form-panel, .step-card, .checkout-card, .card, .info-row article {
    background: var(--panel);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}
.hero-panel {
    position: sticky;
    top: 18px;
    border-radius: 34px;
    padding: 26px;
}
.eyebrow {
    display: inline-flex;
    padding: 8px 12px;
    border-radius: 999px;
    background: var(--gold-soft);
    color: var(--gold-strong);
    border: 1px solid rgba(200,164,73,.26);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}
h1, h2, h3, p { margin-top: 0; }
h1 { color: #ffffff; }
.hero-copy h1 {
    font-size: clamp(38px, 5vw, 62px);
    line-height: .96;
    letter-spacing: -0.05em;
    margin: 18px 0 14px;
    text-transform: uppercase;
}
.hero-copy p {
    color: var(--muted);
    font-size: 17px;
    line-height: 1.55;
}
.match-card {
    margin-top: 28px;
    padding: 18px;
    border-radius: 28px;
    background:
        linear-gradient(90deg, transparent 49.75%, rgba(0,0,0,.06) 49.75%, rgba(0,0,0,.06) 50.25%, transparent 50.25%),
        linear-gradient(180deg, rgba(24,24,24,.98), rgba(10,10,10,.95));
    border: 1px solid var(--line);
}
.match-date {
    display: inline-flex;
    margin-bottom: 14px;
    color: var(--muted);
    font-size: 13px;
    padding: 7px 11px;
    border-radius: 999px;
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(0,0,0,.06);
}
.match-teams {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 12px;
}
.team-card {
    min-height: 154px;
    display: grid;
    place-items: center;
    gap: 10px;
    padding: 18px;
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(28,28,28,.96), rgba(14,14,14,.94));
    border: 1px solid rgba(255,255,255,.08);
}
.flag {
    width: 84px;
    height: 58px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid rgba(0,0,0,.10);
    box-shadow: 0 8px 18px rgba(0,0,0,.08);
}
.flag img { width: 100%; height: 100%; object-fit: cover; }
.flag.small {
    width: 64px;
    height: 44px;
}
.team-card span {
    font-size: 18px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .04em;
}
.versus, .score-x {
    color: var(--silver);
    font-size: 28px;
    font-weight: 900;
}
.price-strip, .checkout-total, .pay-box, .stats-grid, .info-row {
    display: grid;
    gap: 12px;
}
.price-strip, .checkout-total { grid-template-columns: 1fr 1fr; }
.pay-box { grid-template-columns: repeat(3, 1fr); margin: 20px 0; }
.stats-grid { grid-template-columns: repeat(4, 1fr); }
.info-row { grid-template-columns: repeat(3, 1fr); margin-top: 18px; }
.price-strip div, .checkout-total div, .pay-box div, .stat, .info-row article, .ticket, .mini-ticket {
    background: linear-gradient(180deg, rgba(23,23,23,.96), rgba(10,10,10,.94));
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 22px;
    padding: 16px;
}
.price-strip span, .checkout-total span, .pay-box span, .stat span {
    display: block;
    color: var(--muted);
    font-size: 12px;
    margin-bottom: 6px;
}
.price-strip strong, .checkout-total strong, .pay-box strong, .stat strong {
    display: block;
    color: var(--gold-strong);
    font-size: 22px;
}
.form-panel {
    border-radius: 34px;
    padding: 14px;
}
.step-card, .checkout-card, .card {
    border-radius: 28px;
    padding: 22px;
}
.step-card { margin-bottom: 14px; }
.checkout-card { margin-bottom: 0; border-color: rgba(200,164,73,.28); }
.step-title {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}
.step-title > span {
    flex: 0 0 auto;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    color: #fff;
    background: linear-gradient(180deg, #cba84f, #ad862e);
    font-weight: 900;
}
.step-title h2 { margin: 0 0 4px; font-size: 24px; letter-spacing: -0.03em; }
.step-title p { margin: 0; color: var(--muted); font-size: 14px; }
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}
.form-grid label:first-child { grid-column: span 2; }
label {
    display: block;
    font-size: 14px;
    font-weight: 800;
    color: #f0f0f0;
}
input, textarea, select {
    width: 100%;
    margin-top: 8px;
    border-radius: 18px;
    border: 1px solid rgba(200,164,73,.25);
    background: #ffffff;
    color: #111111;
    -webkit-text-fill-color: #111111;
    caret-color: #111111;
    padding: 15px 16px;
    font-size: 16px;
    outline: none;
}
input::placeholder, textarea::placeholder { color: #777777; -webkit-text-fill-color: #777777; opacity: 1; }
input:focus, textarea:focus, select:focus {
    border-color: rgba(200,164,73,.55);
    box-shadow: 0 0 0 4px rgba(200,164,73,.12);
}
.bets-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: start;
    gap: 12px;
}
.bet-card {
    border-radius: 26px;
    padding: 16px;
    margin-bottom: 14px;
    border: 1px solid rgba(255,255,255,.08);
    background:
        linear-gradient(90deg, transparent 49.75%, rgba(0,0,0,.05) 49.75%, rgba(0,0,0,.05) 50.25%, transparent 50.25%),
        linear-gradient(180deg, rgba(26,26,26,.98), rgba(12,12,12,.95));
}
.bet-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}
.bet-pill {
    color: var(--gold-strong);
    background: var(--gold-soft);
    border: 1px solid rgba(200,164,73,.22);
    border-radius: 999px;
    padding: 8px 12px;
    font-weight: 900;
    font-size: 13px;
}
.score-board {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 14px;
    align-items: center;
}
.score-side {
    min-width: 0;
    display: grid;
    justify-items: center;
    gap: 10px;
}
.score-side strong {
    font-size: 15px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .04em;
}
.score-display {
    width: min(118px, 100%);
    background: linear-gradient(180deg, #ffffff, #d8d8d8);
    border: 1px solid rgba(181,142,47,.20);
    border-radius: 24px;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.45), 0 10px 18px rgba(0,0,0,.06);
}
input:-webkit-autofill,
textarea:-webkit-autofill,
select:-webkit-autofill {
    -webkit-text-fill-color: #111111 !important;
    box-shadow: 0 0 0 1000px #ffffff inset !important;
}
.score-input {
    margin: 0;
    border: 0;
    background: transparent;
    color: var(--gold-strong);
    -webkit-text-fill-color: var(--gold-strong);
    caret-color: var(--gold-strong);
    text-align: center;
    font-size: 66px;
    font-weight: 900;
    line-height: 1;
    padding: 15px 8px;
    appearance: textfield;
    -moz-appearance: textfield;
}
.score-input::-webkit-outer-spin-button,
.score-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.score-controls {
    display: flex;
    gap: 10px;
}
.score-btn, .icon-btn {
    cursor: pointer;
    border: 1px solid rgba(0,0,0,.10);
    background: linear-gradient(180deg, #1f1f1f, #090909);
    color: var(--gold-strong);
    border-radius: 16px;
    font-size: 26px;
    font-weight: 900;
    width: 56px;
    height: 46px;
    transition: transform .12s ease, box-shadow .12s ease;
    box-shadow: 0 8px 16px rgba(0,0,0,.06);
}
.score-btn:hover, .icon-btn:hover, .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 18px rgba(0,0,0,.08);
}
.icon-btn {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    color: #d2d2d2;
}
.btn {
    border: 0;
    border-radius: 18px;
    padding: 14px 18px;
    font-size: 15px;
    font-weight: 900;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: transform .12s ease, opacity .12s ease;
}
.btn.primary, .btn.tiny {
    color: #fff;
    background: linear-gradient(180deg, #cba84f, #a98126);
    box-shadow: 0 12px 24px rgba(181,142,47,.18);
}
.btn.ghost, .btn.secondary {
    color: #ffffff;
    border: 1px solid rgba(255,255,255,.10);
    background: linear-gradient(180deg, #1b1b1b, #090909);
}
.btn.full { width: 100%; margin-top: 16px; }
.btn.tiny { padding: 8px 10px; border-radius: 12px; }
.btn:disabled, .score-btn:disabled, .icon-btn:disabled {
    opacity: .5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}
.terms {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: var(--muted);
    font-weight: 500;
    margin-top: 16px;
    line-height: 1.45;
}
.terms input { width: auto; margin-top: 2px; }
.info-row strong { color: var(--gold-strong); font-size: 18px; }
.info-row p { color: var(--muted); margin: 8px 0 0; line-height: 1.45; }
.rules-list { margin: 10px 0 0; padding-left: 18px; color: var(--muted); line-height: 1.55; }
.rules-list li + li { margin-top: 8px; }
.rules-card { align-self: stretch; }
.alert {
    border-radius: 20px;
    padding: 14px 16px;
    margin-bottom: 16px;
    border: 1px solid rgba(191,75,75,.20);
    background: rgba(191,75,75,.14);
    color: #ffc8c8;
}
.payment-card { text-align: center; }
.pay-logo { margin: 0 auto 14px; }
.success-mark {
    width: 68px;
    height: 68px;
    margin: 0 auto 14px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    color: var(--success);
    background: rgba(47,138,87,.08);
    border: 1px solid rgba(47,138,87,.16);
    font-size: 38px;
    font-weight: 900;
}
textarea#pixCode {
    min-height: 170px;
    font-family: monospace;
    resize: vertical;
}
.status {
    display: inline-flex;
    padding: 5px 9px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
}
.status.pendente { background: rgba(200,164,73,.16); color: var(--gold-strong); }
.status.pago { background: rgba(47,138,87,.14); color: var(--success); }
.status.cancelado { background: rgba(191,75,75,.12); color: var(--danger); }
.tickets { display: grid; gap: 10px; }
.ticket { display: flex; justify-content: space-between; gap: 10px; }
.admin-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.admin-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.stat { margin-bottom: 0; }
.stat strong { font-size: 30px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 980px; }
th, td {
    text-align: left;
    padding: 12px 10px;
    border-bottom: 1px solid rgba(255,255,255,.08);
    vertical-align: top;
}
th {
    color: var(--gold-strong);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: .04em;
}
small { color: var(--muted); }
.inline-form { display: flex; gap: 8px; align-items: center; }
.inline-form select { min-width: 120px; padding: 8px; margin: 0; }
.mini-ticket {
    display: inline-flex;
    margin: 2px;
    padding: 4px 8px;
    border-radius: 999px;
    font-weight: 700;
}
@media (max-width: 980px) {
    .layout-grid { grid-template-columns: 1fr; }
    .hero-panel { position: relative; top: auto; }
}
@media (max-width: 720px) {
    .page { width: calc(100% - 16px); padding-top: 8px; padding-bottom: 28px; }
    .top-nav, .brand-block, .bets-toolbar, .admin-head {
        flex-direction: column;
        align-items: stretch;
    }
    .top-nav { padding: 12px; gap: 12px; border-radius: 22px; }
    .brand-block { text-align: center; gap: 10px; }
    .brand-logo, .pay-logo { margin: 0 auto; width: 76px; height: 76px; }
    .brand-block span { font-size: 11px; }
    .brand-block strong { font-size: 24px; }
    .nav-chip, .countdown { min-width: 0; width: 100%; }
    .layout-grid { gap: 12px; }
    .hero-panel, .form-panel, .step-card, .checkout-card, .card { border-radius: 22px; }
    .hero-panel { padding: 18px; }
    .form-panel { padding: 10px; }
    .step-card, .checkout-card, .card { padding: 18px; }
    .hero-copy h1 { font-size: 34px; line-height: 1; }
    .hero-copy p { font-size: 15px; }
    .form-grid, .info-row, .pay-box, .stats-grid, .checkout-total, .price-strip { grid-template-columns: 1fr; }
    .form-grid label:first-child { grid-column: auto; }
    .match-card { padding: 14px; border-radius: 22px; }
    .match-teams {
        grid-template-columns: 1fr auto 1fr;
        gap: 8px;
    }
    .team-card {
        min-height: 112px;
        padding: 12px 8px;
        border-radius: 18px;
    }
    .team-card span { font-size: 15px; }
    .flag { width: 58px; height: 40px; }
    .flag.small { width: 48px; height: 34px; }
    .versus, .score-x { transform: none; margin: 0 auto; font-size: 22px; }
    .bets-toolbar { gap: 10px; }
    .bets-toolbar .btn { width: 100%; }
    .bet-card { padding: 14px; border-radius: 20px; }
    .bet-card-head { margin-bottom: 10px; }
    .score-board {
        grid-template-columns: 1fr auto 1fr;
        gap: 8px;
        align-items: start;
    }
    .score-side { gap: 8px; }
    .score-side strong {
        font-size: 12px;
        text-align: center;
        min-height: 30px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .score-display { width: 86px; border-radius: 18px; }
    .score-input { font-size: 44px; padding: 12px 6px; }
    .score-controls { gap: 8px; width: 100%; justify-content: center; }
    .score-btn { width: 42px; height: 40px; border-radius: 12px; font-size: 22px; }
    .icon-btn { width: 34px; height: 34px; font-size: 20px; }
    .checkout-total strong { font-size: 24px; }
    .terms { font-size: 14px; }
    .ticket { flex-direction: column; }
}
@media (max-width: 420px) {
    .page { width: calc(100% - 12px); }
    .hero-copy h1 { font-size: 30px; }
    .match-date { font-size: 12px; }
    .team-card span { font-size: 13px; }
    .score-board { gap: 6px; }
    .score-display { width: 74px; }
    .score-input { font-size: 38px; }
    .score-btn { width: 36px; height: 36px; font-size: 20px; }
    .step-title { gap: 10px; }
    .step-title > span { width: 36px; height: 36px; border-radius: 12px; }
    .step-title h2 { font-size: 21px; }
    input, textarea, select { padding: 13px 14px; font-size: 15px; }
    .btn { padding: 13px 16px; }
}

.top-nav, .hero-panel, .form-panel, .step-card, .checkout-card, .card, .info-row article, .nav-chip, .countdown { backdrop-filter: blur(14px); }
.result-form {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 12px;
    align-items: end;
    margin: 16px 0;
}
.winner-summary {
    margin: 14px 0;
    padding: 14px 16px;
    border-radius: 18px;
    border: 1px solid rgba(221,179,84,.22);
    background: rgba(221,179,84,.10);
    color: var(--muted);
}
.winner-summary strong { color: var(--gold-strong); }
.alert.info {
    background: rgba(221,179,84,.10);
    border-color: rgba(221,179,84,.22);
    color: var(--gold-strong);
}
@media (max-width: 720px) {
    .result-form { grid-template-columns: 1fr; }
    .result-form .btn { width: 100%; }
}


/* Correção painel administrador - contraste em campos, placar e ações */
.admin-page .card,
.admin-page .table-card,
.admin-page .admin-head,
.admin-page .stat {
    color: var(--text);
}

.admin-page table,
.admin-page th,
.admin-page td {
    color: var(--text);
}

.admin-page td strong,
.admin-page .mini-ticket {
    color: var(--text);
}

.admin-page small {
    color: var(--muted);
}

.admin-page select,
.admin-page input,
.admin-page textarea,
.inline-form select,
.inline-form input {
    background: #111111 !important;
    color: #ffffff !important;
    border: 1px solid rgba(221,179,84,.45) !important;
    -webkit-text-fill-color: #ffffff !important;
}

.admin-page select option,
.inline-form select option {
    background: #111111;
    color: #ffffff;
}

.admin-page .btn,
.admin-page .btn.secondary,
.admin-page .btn.ghost {
    color: #ffffff !important;
}

.admin-page .btn.tiny,
.inline-form .btn.tiny {
    color: #ffffff !important;
    background: linear-gradient(180deg, #cba84f, #a98126) !important;
}

.admin-page .mini-ticket {
    background: rgba(221,179,84,.14) !important;
    border-color: rgba(221,179,84,.35) !important;
    color: #ffffff !important;
}

.admin-page .status {
    color: #ffffff !important;
}

.admin-page .status.pendente {
    background: rgba(221,179,84,.28) !important;
    color: #ffd983 !important;
}

.admin-page .status.pago {
    background: rgba(87,199,131,.22) !important;
    color: #8ff0b6 !important;
}

.admin-page .status.cancelado {
    background: rgba(255,123,123,.20) !important;
    color: #ffb0b0 !important;
}

/* Campos do placar vencedor no admin */
.admin-page input[type="number"],
.admin-page .winner-score input,
.admin-page .placar-vencedor input {
    background: #111111 !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    border-color: rgba(221,179,84,.45) !important;
}
