/* ============================================================================
   PUNTZ — dark fintech theme. Palette comes from web.config (injected into
   :root by the master page); the fallbacks here keep it working standalone.
   ============================================================================ */
:root {
    --bg: #0B0B0F;
    --surface: #15151C;
    --surface2: #1E1E27;
    --primary: #22E0A1;
    --accent: #FF6B81;
    --text: #F4F4F6;
    --muted: #8B8B97;
    --border: #2A2A35;
    --radius: 18px;
    --primary-soft: rgba(34,224,161,.14);
    --accent-soft: rgba(255,107,129,.14);
}

* {
    box-sizing: border-box
}

html, body {
    margin: 0;
    padding: 0
}

body {
    background: radial-gradient(1200px 600px at 85% -10%, rgba(34,224,161,.06), transparent 60%), radial-gradient(900px 500px at -10% 110%, rgba(255,107,129,.05), transparent 55%), var(--bg);
    color: var(--text);
    font-family: 'Plus Jakarta Sans',-apple-system,Segoe UI,Roboto,sans-serif;
    font-size: 15px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--primary);
    text-decoration: none
}

/* ---- App shell: sidebar + content ---- */
.pz-shell {
    display: flex;
    min-height: 100vh
}

.pz-side {
    width: 248px;
    flex-shrink: 0;
    background: var(--surface);
    border-right: 1px solid var(--border);
    padding: 26px 18px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    position: sticky;
    top: 0;
    height: 100vh
}

.pz-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 1.3rem;
    letter-spacing: -.5px;
    margin-bottom: 26px;
    padding: 0 8px
}

    .pz-brand .dot {
        width: 11px;
        height: 11px;
        border-radius: 50%;
        background: var(--primary);
        box-shadow: 0 0 16px var(--primary)
    }

.pz-nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 14px;
    border-radius: 12px;
    color: var(--muted);
    font-weight: 600;
    font-size: .92rem;
    transition: .15s
}

    .pz-nav a:hover {
        background: var(--surface2);
        color: var(--text)
    }

    .pz-nav a.active {
        background: var(--primary-soft);
        color: var(--primary)
    }

.pz-nav .sep {
    margin: 14px 8px 6px;
    font-size: .7rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--muted);
    opacity: .7
}

.pz-side-foot {
    margin-top: auto;
    padding: 0 8px;
    font-size: .82rem;
    color: var(--muted)
}

    .pz-side-foot a {
        color: var(--accent);
        font-weight: 600
    }

.pz-main {
    flex: 1;
    min-width: 0;
    padding: 30px 38px 60px
}

.pz-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 26px
}

.pz-h1 {
    font-size: 1.55rem;
    font-weight: 800;
    letter-spacing: -.4px;
    margin: 0
}

.pz-sub {
    color: var(--muted);
    font-size: .9rem;
    margin: 4px 0 0
}

.pz-user {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: .9rem;
    color: var(--muted)
}

.pz-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--surface2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--text)
}

/* ---- Cards ---- */
.pz-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px 24px;
    margin-bottom: 18px
}

    .pz-card h3 {
        margin: 0 0 4px;
        font-size: 1.05rem;
        font-weight: 700
    }

.pz-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(260px,1fr));
    gap: 18px
}

/* ---- Fixture rows ---- */
.pz-fx {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 18px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--surface2);
    margin-bottom: 12px
}

    .pz-fx.locked {
        opacity: .62
    }

.pz-fx-meta {
    width: 150px;
    flex-shrink: 0;
    font-size: .78rem;
    color: var(--muted)
}

    .pz-fx-meta .grp {
        display: inline-block;
        background: var(--surface);
        border: 1px solid var(--border);
        border-radius: 6px;
        padding: 1px 7px;
        margin-bottom: 4px;
        font-weight: 700;
        color: var(--text)
    }

.pz-fx-teams {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700
}

    .pz-fx-teams .flag {
        width: 26px;
        height: 18px;
        border-radius: 3px;
        object-fit: cover;
        background: var(--surface)
    }

    .pz-fx-teams .vs {
        color: var(--muted);
        font-weight: 600;
        font-size: .82rem;
        padding: 0 4px
    }

.pz-fx-pick {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0
}

/* segmented H/D/A control */
.pz-seg {
    display: inline-flex;
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden
}

    .pz-seg label {
        padding: 8px 13px;
        cursor: pointer;
        font-weight: 700;
        font-size: .85rem;
        color: var(--muted);
        background: var(--surface);
        transition: .12s;
        user-select: none
    }

        .pz-seg label:hover {
            color: var(--text)
        }

    .pz-seg input {
        display: none
    }

        .pz-seg input:checked + label {
            background: var(--primary-soft);
            color: var(--primary)
        }

.pz-score {
    width: 42px;
    text-align: center;
    padding: 8px 6px;
    border-radius: 9px;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text);
    font-weight: 700
}

    .pz-score:focus {
        outline: none;
        border-color: var(--primary)
    }

.pz-locktag {
    font-size: .72rem;
    color: var(--accent);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em
}

.pz-result {
    font-weight: 800;
    font-size: 1rem
}

.pz-pts {
    font-size: .74rem;
    color: var(--primary);
    font-weight: 700
}

/* ---- Buttons ---- */
.pz-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-weight: 700;
    font-size: .92rem;
    padding: 12px 22px;
    border-radius: 12px;
    background: var(--primary);
    color: #06251A;
    transition: .15s
}

    .pz-btn:hover {
        filter: brightness(1.07);
        transform: translateY(-1px)
    }

.pz-btn-ghost {
    background: var(--surface2);
    color: var(--text);
    border: 1px solid var(--border)
}

.pz-btn-accent {
    background: var(--accent);
    color: #2A0810
}

.pz-btn-sm {
    padding: 8px 14px;
    font-size: .84rem;
    border-radius: 10px
}

/* ---- Forms ---- */
.pz-field {
    margin-bottom: 16px
}

.pz-label {
    display: block;
    font-size: .82rem;
    font-weight: 600;
    color: var(--muted);
    margin-bottom: 6px
}

.pz-input, .pz-select {
    width: 100%;
    padding: 11px 13px;
    border-radius: 11px;
    border: 1px solid var(--border);
    background: var(--surface2);
    color: var(--text);
    font-family: inherit;
    font-size: .92rem
}

    .pz-input:focus, .pz-select:focus {
        outline: none;
        border-color: var(--primary)
    }

/* ---- Table / leaderboard ---- */
.pz-table {
    width: 100%;
    border-collapse: collapse
}

    .pz-table th {
        text-align: left;
        font-size: .74rem;
        letter-spacing: .08em;
        text-transform: uppercase;
        color: var(--muted);
        padding: 10px 14px;
        border-bottom: 1px solid var(--border)
    }

    .pz-table td {
        padding: 13px 14px;
        border-bottom: 1px solid var(--border);
        font-size: .92rem
    }

    .pz-table tr:last-child td {
        border-bottom: none
    }

.pz-rank {
    font-weight: 800;
    color: var(--muted);
    width: 42px
}

    .pz-rank.r1 {
        color: #FFD15C
    }

    .pz-rank.r2 {
        color: #CBD5E1
    }

    .pz-rank.r3 {
        color: #E0A77A
    }

.pz-total {
    font-weight: 800;
    color: var(--primary)
}

/* ---- Alerts ---- */
.pz-alert {
    display: block;
    position: relative;
    z-index: 2;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: .9rem;
    margin-bottom: 16px;
    font-weight: 600
}

.pz-alert-ok {
    background: var(--primary-soft);
    color: var(--primary)
}

.pz-alert-err {
    background: var(--accent-soft);
    color: var(--accent)
}

/* ---- Login ---- */
.pz-login-wrap {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px
}

.pz-login {
    width: 100%;
    max-width: 400px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 34px 32px
}

    .pz-login .pz-brand {
        justify-content: center;
        font-size: 1.7rem;
        margin-bottom: 6px
    }

    .pz-login .tagline {
        text-align: center;
        color: var(--muted);
        font-size: .88rem;
        margin-bottom: 26px
    }

/* ---- Responsive layer: off-canvas drawer + mobile polish. One UI for all
       devices (Site.Mobile.Master removed). ---- */
.pz-menu-btn {
    display: none;
    background: var(--surface2);
    border: 1px solid var(--border);
    color: var(--text);
    border-radius: 12px;
    width: 42px;
    height: 42px;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    flex-shrink: 0
}

.pz-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.55);
    z-index: 40
}

.pz-mypick {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 999px;
    background: var(--primary-soft);
    border: 1px solid var(--border);
    color: var(--text);
    font-size: .82rem;
    margin-right: 8px;
    white-space: nowrap
}

@media(max-width:880px) {
    .pz-menu-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center
    }

    .pz-side {
        position: fixed;
        left: -290px;
        top: 0;
        width: 272px;
        height: 100dvh;
        overflow-y: auto;
        z-index: 50;
        transition: left .25s ease;
        box-shadow: 0 0 40px rgba(0,0,0,.5)
    }

    body.pz-nav-open .pz-side {
        left: 0
    }

    body.pz-nav-open .pz-backdrop {
        display: block
    }

    .pz-main {
        padding: 18px 14px 60px;
        width: 100%;
        min-width: 0
    }

    .pz-topbar {
        flex-wrap: wrap;
        gap: 10px
    }

    .pz-h1 {
        font-size: 1.25rem
    }

    .pz-user {
        width: 100%;
        justify-content: space-between
    }

    .pz-card {
        overflow-x: auto
    }

    .pz-fx {
        flex-wrap: wrap;
        gap: 8px
    }

    .pz-fx-meta {
        width: auto
    }

    .pz-fx-pick {
        width: 100%;
        justify-content: flex-start
    }

    .pz-input, .pz-score {
        font-size: 16px
    }
}

/* ---- multi-pool hub + flag fallback (added 07) ---- */
.pz-msg {
    display: block;
    margin: 0 0 16px;
    padding: 10px 14px;
    border-radius: var(--radius);
    background: rgba(46,213,164,.12);
    border: 1px solid rgba(46,213,164,.35);
    color: var(--text);
    font-size: 14px
}

.pz-pools {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 6px
}

.pz-pool {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface-2)
}

.pz-pool-name {
    font-weight: 600
}

.pz-pool-meta {
    color: var(--muted);
    font-size: 12px;
    margin-top: 2px
}

.flag-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 22px;
    padding: 0 6px;
    border-radius: 5px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .5px
}

.flag-tbd {
    min-width: 22px;
    background: transparent
}

/* top-bar quiniela switcher */
.pz-input-sm {
    width: auto;
    min-width: 170px;
    max-width: 280px;
    padding: 8px 12px;
    font-size: .85rem;
    border-radius: 11px
}

.pz-link-sm {
    color: var(--muted);
    font-size: .85rem;
    text-decoration: none
}

    .pz-link-sm:hover {
        color: var(--text)
    }

.pz-userlink {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    border-radius: 999px;
    padding: 3px 4px 3px 10px;
    transition: background .15s
}

    .pz-userlink:hover {
        background: var(--surface2)
    }

        .pz-userlink:hover .pz-avatar {
            filter: brightness(1.08)
        }

.pz-dash {
    margin: 0 6px;
    color: var(--muted);
    font-weight: 700
}

.pz-seg-ro {
    display: inline-flex;
    gap: 4px;
    margin-left: 12px;
    vertical-align: middle
}

    .pz-seg-ro span {
        min-width: 46px;
        text-align: center;
        padding: 7px 8px;
        border-radius: 9px;
        background: var(--surface2);
        color: var(--muted);
        font-weight: 700;
        font-size: .8rem;
        border: 1px solid var(--border)
    }

        .pz-seg-ro span.on {
            background: var(--primary-soft);
            color: var(--primary);
            border-color: transparent
        }
