/* =========================================================
   PuntVault Mobile Enterprise UI
   Mobile-first visual system for screens <= 768px
   ========================================================= */

@media (max-width: 768px){

    :root{
        --pv-bg:#061512;
        --pv-bg-2:#081c18;
        --pv-panel:#0d1720;
        --pv-panel-2:#101d27;
        --pv-card:#111c25;
        --pv-card-soft:#102722;
        --pv-border:rgba(255,255,255,.10);
        --pv-border-strong:rgba(0,255,157,.24);
        --pv-text:#f4f7fb;
        --pv-soft:#dce4ef;
        --pv-muted:#8e9aaa;
        --pv-green:#00e083;
        --pv-green-2:#10f29a;
        --pv-gold:#f5c518;
        --pv-red:#ff4d5e;
        --pv-blue:#46a7ff;
        --pv-radius:22px;
        --pv-radius-sm:14px;
        --pv-shadow:0 18px 45px rgba(0,0,0,.38);
        --pv-bottom-nav-height:88px;
    }

    html{
        -webkit-text-size-adjust:100%;
        scroll-behavior:smooth;
    }

    body{
        background:
            radial-gradient(circle at top left, rgba(0,224,131,.16), transparent 32%),
            linear-gradient(180deg, var(--pv-bg), #050b10 75%);
        color:var(--pv-text);
        font-size:15px;
        line-height:1.45;
        overflow-x:hidden;
        padding-bottom:calc(var(--pv-bottom-nav-height) + env(safe-area-inset-bottom));
    }

    img, svg, video{
        max-width:100%;
        height:auto;
    }

    a{
        -webkit-tap-highlight-color:transparent;
    }

    button,
    a,
    input,
    select,
    textarea{
        touch-action:manipulation;
    }

    .pv-shell,
    .container,
    .page-container,
    .content-wrapper,
    main{
        width:100%;
        max-width:100%;
        padding-left:16px !important;
        padding-right:16px !important;
        box-sizing:border-box;
    }

    section{
        margin-left:0 !important;
        margin-right:0 !important;
    }

    /* Typography */
    h1{
        font-size:clamp(28px, 8vw, 40px) !important;
        line-height:1.02 !important;
        letter-spacing:-.045em;
        margin-bottom:12px;
    }

    h2{
        font-size:clamp(22px, 6vw, 30px) !important;
        line-height:1.08 !important;
        letter-spacing:-.035em;
    }

    h3{
        font-size:18px !important;
        line-height:1.18 !important;
    }

    p{
        color:var(--pv-muted);
        font-size:15px;
    }

    small{
        color:var(--pv-muted);
        font-size:13px;
    }

    /* Enterprise sections */
    .pvm-hero,
    .hero,
    .page-hero{
        padding:26px 0 18px !important;
        background:
            radial-gradient(circle at top right, rgba(0,224,131,.18), transparent 32%),
            linear-gradient(180deg, rgba(14,32,38,.78), rgba(6,14,20,.38)) !important;
        border-bottom:1px solid var(--pv-border);
    }

    .pvm-section,
    .section{
        padding:18px 0 !important;
    }

    /* Cards */
    .pvm-card,
    .card,
    .tip-card,
    .result-card,
    .prediction-card{
        background:
            linear-gradient(180deg, rgba(17,28,37,.98), rgba(10,18,26,.98)) !important;
        border:1px solid var(--pv-border) !important;
        border-radius:var(--pv-radius) !important;
        box-shadow:var(--pv-shadow);
        overflow:hidden;
    }

    .pvm-card-grid,
    .cards-grid,
    .grid{
        display:grid !important;
        grid-template-columns:1fr !important;
        gap:14px !important;
    }

    /* Badges */
    .pv-badge,
    .badge,
    .status-badge,
    .tag{
        display:inline-flex;
        align-items:center;
        justify-content:center;
        min-height:34px;
        padding:7px 12px !important;
        border-radius:999px !important;
        font-size:12px !important;
        font-weight:900 !important;
        text-transform:uppercase;
        letter-spacing:.02em;
        border:1px solid var(--pv-border);
        white-space:nowrap;
    }

    .pv-badge-green,
    .badge-won,
    .status-won,
    .won{
        background:rgba(0,224,131,.12) !important;
        color:var(--pv-green) !important;
        border-color:rgba(0,224,131,.35) !important;
    }

    .pv-badge-gold,
    .badge-reviewed,
    .verified,
    .reviewed{
        background:rgba(245,197,24,.12) !important;
        color:var(--pv-gold) !important;
        border-color:rgba(245,197,24,.35) !important;
    }

    .lost,
    .status-lost{
        background:rgba(255,77,94,.12) !important;
        color:var(--pv-red) !important;
        border-color:rgba(255,77,94,.35) !important;
    }

    /* Buttons */
    .pv-btn,
    .btn,
    button[type="submit"]{
        min-height:48px;
        border-radius:16px !important;
        font-weight:900 !important;
        letter-spacing:.01em;
    }

    .pv-btn-primary,
    .btn-primary,
    button[type="submit"]{
        background:linear-gradient(135deg, #00c875, #00f092) !important;
        color:#03100b !important;
        border:0 !important;
        box-shadow:0 12px 28px rgba(0,224,131,.23);
    }

    .form-control,
    input[type="text"],
    input[type="email"],
    input[type="password"],
    input[type="number"],
    select,
    textarea{
        width:100%;
        min-height:48px;
        border-radius:16px !important;
        background:rgba(255,255,255,.055) !important;
        border:1px solid var(--pv-border) !important;
        color:var(--pv-text) !important;
        padding:12px 14px !important;
        font-size:16px !important;
    }

    input::placeholder,
    textarea::placeholder{
        color:rgba(220,228,239,.45);
    }

    /* Tabs / chips */
    .pvm-tabs,
    .tabs,
    .filter-tabs{
        display:flex !important;
        gap:10px;
        overflow-x:auto;
        padding-bottom:6px;
        scrollbar-width:none;
    }

    .pvm-tabs::-webkit-scrollbar,
    .tabs::-webkit-scrollbar,
    .filter-tabs::-webkit-scrollbar{
        display:none;
    }

    .pvm-tab,
    .tab,
    .filter-chip{
        flex:0 0 auto;
        min-height:42px;
        display:inline-flex;
        align-items:center;
        justify-content:center;
        padding:10px 14px !important;
        border-radius:999px !important;
        background:rgba(255,255,255,.06) !important;
        border:1px solid var(--pv-border) !important;
        color:var(--pv-soft) !important;
        font-size:13px;
        font-weight:800;
        text-decoration:none;
    }

    .pvm-tab.active,
    .tab.active,
    .filter-chip.active{
        background:rgba(0,224,131,.14) !important;
        border-color:rgba(0,224,131,.38) !important;
        color:var(--pv-green) !important;
    }

    /* Mobile bottom nav global safety */
    .bottom-nav,
    .mobile-bottom-nav,
    .pv-bottom-nav{
        position:fixed !important;
        left:14px;
        right:14px;
        bottom:calc(12px + env(safe-area-inset-bottom));
        z-index:9999;
        min-height:76px;
        border-radius:24px !important;
        background:rgba(7,13,22,.92) !important;
        border:1px solid rgba(255,255,255,.12) !important;
        backdrop-filter:blur(18px);
        box-shadow:0 18px 48px rgba(0,0,0,.52);
    }

    .bottom-nav a,
    .mobile-bottom-nav a,
    .pv-bottom-nav a{
        min-width:54px;
        min-height:58px;
        border-radius:18px;
        display:flex;
        flex-direction:column;
        align-items:center;
        justify-content:center;
        gap:4px;
        color:var(--pv-muted) !important;
        font-size:11px !important;
        font-weight:900 !important;
        text-decoration:none;
    }

    .bottom-nav a.active,
    .mobile-bottom-nav a.active,
    .pv-bottom-nav a.active{
        color:var(--pv-green) !important;
        background:rgba(0,224,131,.10);
    }

    /* Tables become cards */
    table{
        width:100%;
        border-collapse:collapse;
        font-size:13px;
    }

    th,td{
        padding:10px 8px;
        border-bottom:1px solid var(--pv-border);
    }

    /* Prevent bottom nav covering final cards */
    main,
    .main-content,
    .page-content{
        padding-bottom:calc(var(--pv-bottom-nav-height) + 28px) !important;
    }
}

/* =========================================================
   Enterprise Prediction Card
   ========================================================= */

@media (max-width: 768px){

    .pvx-card{
        display:block;
        text-decoration:none;
        color:var(--pv-text);
        padding:16px;
        border-radius:24px;
        background:
            radial-gradient(circle at top right, rgba(0,224,131,.13), transparent 34%),
            linear-gradient(180deg, rgba(17,28,37,.98), rgba(7,14,22,.98));
        border:1px solid rgba(255,255,255,.10);
        box-shadow:0 18px 48px rgba(0,0,0,.42);
        margin-bottom:14px;
        overflow:hidden;
    }

    .pvx-card-top{
        display:flex;
        justify-content:space-between;
        align-items:flex-start;
        gap:12px;
        margin-bottom:16px;
    }

    .pvx-league{
        display:block;
        color:var(--pv-green);
        font-size:12px;
        font-weight:900;
        text-transform:uppercase;
        letter-spacing:.04em;
        margin-bottom:3px;
    }

    .pvx-card-top small{
        color:var(--pv-muted);
        font-size:12px;
        font-weight:700;
    }

    .pvx-badge{
        display:inline-flex;
        align-items:center;
        justify-content:center;
        min-height:30px;
        padding:6px 10px;
        border-radius:999px;
        font-size:11px;
        font-weight:950;
        letter-spacing:.04em;
        border:1px solid rgba(255,255,255,.12);
        white-space:nowrap;
    }

    .pvx-badge-free{
        color:var(--pv-green);
        background:rgba(0,224,131,.11);
        border-color:rgba(0,224,131,.35);
    }

    .pvx-badge-vip{
        color:var(--pv-gold);
        background:rgba(245,197,24,.12);
        border-color:rgba(245,197,24,.36);
    }

    .pvx-badge-win{
        color:var(--pv-green);
        background:rgba(0,224,131,.13);
        border-color:rgba(0,224,131,.38);
    }

    .pvx-badge-loss{
        color:var(--pv-red);
        background:rgba(255,77,94,.12);
        border-color:rgba(255,77,94,.36);
    }

    .pvx-badge-void{
        color:var(--pv-muted);
        background:rgba(255,255,255,.07);
    }

    .pvx-match{
        display:grid;
        grid-template-columns:1fr 56px 1fr;
        align-items:center;
        gap:10px;
        margin-bottom:14px;
    }

    .pvx-team{
        display:flex;
        flex-direction:column;
        align-items:flex-start;
        gap:8px;
        min-width:0;
    }

    .pvx-team.away{
        align-items:flex-end;
        text-align:right;
    }

    .pvx-team img,
    .pvx-team-fallback{
        width:42px;
        height:42px;
        border-radius:50%;
        border:1px solid rgba(255,255,255,.12);
        background:rgba(255,255,255,.08);
        object-fit:contain;
        display:inline-flex;
        align-items:center;
        justify-content:center;
        color:var(--pv-green);
        font-weight:950;
    }

    .pvx-team strong{
        font-size:15px;
        line-height:1.15;
        color:var(--pv-text);
        max-width:100%;
        overflow:hidden;
        text-overflow:ellipsis;
    }

    .pvx-vs{
        min-height:54px;
        border-radius:18px;
        background:rgba(255,255,255,.055);
        border:1px solid rgba(255,255,255,.08);
        display:flex;
        flex-direction:column;
        align-items:center;
        justify-content:center;
    }

    .pvx-vs span{
        color:var(--pv-muted);
        font-size:11px;
        font-weight:950;
    }

    .pvx-vs small{
        color:var(--pv-soft);
        font-size:12px;
        font-weight:900;
    }

    .pvx-pick-panel{
        background:rgba(0,224,131,.08);
        border:1px solid rgba(0,224,131,.20);
        border-radius:18px;
        padding:12px;
        margin:12px 0;
    }

    .pvx-pick-panel span{
        display:block;
        color:var(--pv-muted);
        font-size:12px;
        font-weight:800;
        margin-bottom:4px;
    }

    .pvx-pick-panel strong{
        color:var(--pv-text);
        font-size:18px;
        line-height:1.2;
    }

    .pvx-confidence{
        margin:14px 0;
    }

    .pvx-confidence-top{
        display:flex;
        justify-content:space-between;
        align-items:center;
        margin-bottom:8px;
    }

    .pvx-confidence-top span{
        color:var(--pv-muted);
        font-size:12px;
        font-weight:800;
    }

    .pvx-confidence-top strong{
        color:var(--pv-green);
        font-size:14px;
        font-weight:950;
    }

    .pvx-confidence-track{
        height:10px;
        border-radius:999px;
        background:rgba(255,255,255,.08);
        overflow:hidden;
    }

    .pvx-confidence-track span{
        display:block;
        height:100%;
        border-radius:999px;
        background:linear-gradient(90deg, var(--pv-green), var(--pv-gold));
    }

    .pvx-card-bottom{
        display:grid;
        grid-template-columns:1fr 1fr auto;
        align-items:center;
        gap:10px;
        padding-top:12px;
        border-top:1px solid rgba(255,255,255,.08);
    }

    .pvx-card-bottom span{
        display:block;
        color:var(--pv-muted);
        font-size:11px;
        font-weight:800;
    }

    .pvx-card-bottom strong{
        color:var(--pv-text);
        font-size:15px;
        font-weight:950;
    }

    .pvx-open{
        min-height:38px;
        padding:0 12px;
        border-radius:14px;
        display:flex;
        align-items:center;
        justify-content:center;
        background:rgba(255,255,255,.07);
        color:var(--pv-green);
        font-size:12px;
        font-weight:950;
    }
}

.pvx-results-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(280px,1fr));
    gap:16px;
}

@media (min-width: 769px){
    .pvx-card{
        display:block;
        text-decoration:none;
        color:#f4f7fb;
        padding:18px;
        border-radius:24px;
        background:linear-gradient(180deg, rgba(17,28,37,.98), rgba(7,14,22,.98));
        border:1px solid rgba(255,255,255,.10);
        box-shadow:0 18px 48px rgba(0,0,0,.30);
        margin-bottom:0;
    }

    .pvx-card-top,
    .pvx-confidence-top,
    .pvx-card-bottom{
        display:flex;
        justify-content:space-between;
        gap:12px;
    }

    .pvx-match{
        display:grid;
        grid-template-columns:1fr 60px 1fr;
        align-items:center;
        gap:12px;
        margin:16px 0;
    }

    .pvx-team{
        display:flex;
        flex-direction:column;
        gap:8px;
    }

    .pvx-team.away{
        align-items:flex-end;
        text-align:right;
    }

    .pvx-team img,
    .pvx-team-fallback{
        width:42px;
        height:42px;
        border-radius:50%;
        display:inline-flex;
        align-items:center;
        justify-content:center;
        background:rgba(255,255,255,.08);
    }

    .pvx-vs,
    .pvx-open{
        display:flex;
        align-items:center;
        justify-content:center;
        flex-direction:column;
    }

    .pvx-pick-panel{
        background:rgba(0,224,131,.08);
        border:1px solid rgba(0,224,131,.20);
        border-radius:18px;
        padding:12px;
        margin:12px 0;
    }

    .pvx-confidence-track{
        height:10px;
        border-radius:999px;
        background:rgba(255,255,255,.08);
        overflow:hidden;
    }

    .pvx-confidence-track span{
        display:block;
        height:100%;
        border-radius:999px;
        background:linear-gradient(90deg,#00e083,#f5c518);
    }

    .pvx-badge{
        display:inline-flex;
        align-items:center;
        justify-content:center;
        min-height:30px;
        padding:6px 10px;
        border-radius:999px;
        font-size:11px;
        font-weight:900;
        border:1px solid rgba(255,255,255,.12);
    }

    .pvx-badge-free,.pvx-badge-win{
        color:#00e083;
        background:rgba(0,224,131,.11);
        border-color:rgba(0,224,131,.35);
    }

    .pvx-badge-vip{
        color:#f5c518;
        background:rgba(245,197,24,.12);
        border-color:rgba(245,197,24,.36);
    }

    .pvx-badge-loss{
        color:#ff4d5e;
        background:rgba(255,77,94,.12);
        border-color:rgba(255,77,94,.36);
    }
}

.pvx-predict-card{
    position:relative;
}

.pvx-pro-form{
    margin-top:14px;
    padding-top:14px;
    border-top:1px solid rgba(255,255,255,.08);
}

.pvx-pro-form label{
    display:block;
    margin:10px 0 6px;
    color:var(--pv-muted,#8e9aaa);
    font-size:12px;
    font-weight:900;
    text-transform:uppercase;
    letter-spacing:.04em;
}

.pvx-pro-form button{
    width:100%;
    margin-top:14px;
}

.pvx-pro-form select,
.pvx-pro-form input{
    width:100%;
    min-height:48px;
    border-radius:16px;
    background:rgba(255,255,255,.055);
    border:1px solid rgba(255,255,255,.10);
    color:var(--pv-text,#f4f7fb);
    padding:12px 14px;
    font-size:16px;
}

/* ==========================================================
   Enterprise Dashboard KPI Cards
   ========================================================== */

.pv-dashboard-kpis{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(180px,1fr));
    gap:16px;
    margin:24px 0 36px;
}

.pv-kpi-card{
    display:flex;
    align-items:center;
    gap:16px;
    padding:18px;
    border-radius:22px;
    background:linear-gradient(180deg, rgba(17,28,37,.98), rgba(7,14,22,.98));
    border:1px solid rgba(255,255,255,.08);
    box-shadow:0 14px 36px rgba(0,0,0,.30);
}

.pv-kpi-icon{
    width:58px;
    height:58px;
    border-radius:18px;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:24px;
    background:rgba(0,224,131,.10);
}

.pv-kpi-content span{
    display:block;
    font-size:12px;
    color:var(--pv-muted);
    font-weight:900;
    text-transform:uppercase;
    letter-spacing:.05em;
}

.pv-kpi-content strong{
    display:block;
    margin-top:4px;
    font-size:28px;
    font-weight:900;
    color:white;
}

.pv-kpi-content small{
    color:var(--pv-green);
    font-size:12px;
    font-weight:800;
}

@media(max-width:768px){
    .pv-dashboard-kpis{
        grid-template-columns:1fr 1fr;
    }
}

/* ==========================================================
   PuntVault Enterprise Design System
   Shared primitives for all pages
   ========================================================== */

:root{
    --pv-space-xs:6px;
    --pv-space-sm:10px;
    --pv-space-md:16px;
    --pv-space-lg:24px;
    --pv-space-xl:34px;

    --pv-radius-xs:10px;
    --pv-radius-sm:14px;
    --pv-radius-md:18px;
    --pv-radius-lg:24px;
    --pv-radius-xl:32px;

    --pv-ease:cubic-bezier(.2,.8,.2,1);
}

/* Base surfaces */
.pv-surface,
.pv-card-base{
    background:linear-gradient(180deg, rgba(17,28,37,.98), rgba(7,14,22,.98));
    border:1px solid rgba(255,255,255,.10);
    border-radius:var(--pv-radius-lg);
    box-shadow:0 18px 48px rgba(0,0,0,.34);
}

/* Enterprise buttons */
.pv-btn,
.pv-btn-primary,
.pv-btn-ghost,
.pv-btn-outline,
.pv-btn-success,
.pv-btn-vip,
.pv-btn-danger{
    min-height:48px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:8px;
    padding:12px 18px;
    border-radius:16px;
    font-weight:900;
    text-decoration:none;
    transition:transform .18s var(--pv-ease), box-shadow .18s var(--pv-ease), opacity .18s var(--pv-ease);
}

.pv-btn:active{
    transform:scale(.98);
}

.pv-btn-primary,
.pv-btn-success{
    background:linear-gradient(135deg,#00c875,#00f092);
    color:#03100b;
    border:0;
}

.pv-btn-vip{
    background:linear-gradient(135deg,#f5c518,#ffe889);
    color:#151006;
    border:0;
}

.pv-btn-ghost,
.pv-btn-outline{
    background:rgba(255,255,255,.06);
    color:var(--pv-soft,#dce4ef);
    border:1px solid rgba(255,255,255,.12);
}

.pv-btn-danger{
    background:rgba(255,77,94,.13);
    color:#ff4d5e;
    border:1px solid rgba(255,77,94,.35);
}

/* Enterprise badge system */
.pv-badge-system{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-height:32px;
    padding:6px 11px;
    border-radius:999px;
    font-size:11px;
    font-weight:950;
    text-transform:uppercase;
    letter-spacing:.04em;
    border:1px solid rgba(255,255,255,.12);
    white-space:nowrap;
}

.pv-badge-system.free,
.pv-badge-system.success,
.pv-badge-system.won{
    color:#00e083;
    background:rgba(0,224,131,.12);
    border-color:rgba(0,224,131,.35);
}

.pv-badge-system.vip,
.pv-badge-system.gold{
    color:#f5c518;
    background:rgba(245,197,24,.12);
    border-color:rgba(245,197,24,.35);
}

.pv-badge-system.lost,
.pv-badge-system.danger{
    color:#ff4d5e;
    background:rgba(255,77,94,.12);
    border-color:rgba(255,77,94,.35);
}

.pv-badge-system.neutral,
.pv-badge-system.void{
    color:#dce4ef;
    background:rgba(255,255,255,.07);
    border-color:rgba(255,255,255,.12);
}

/* Section header primitive */
.pv-section-head-enterprise{
    display:flex;
    align-items:flex-end;
    justify-content:space-between;
    gap:16px;
    margin-bottom:18px;
}

.pv-section-head-enterprise h2{
    margin:8px 0 0;
}

.pv-section-head-enterprise p{
    margin:8px 0 0;
    max-width:680px;
}

/* Horizontal chip scroller */
.pv-chip-scroll{
    display:flex;
    gap:10px;
    overflow-x:auto;
    padding:4px 0 8px;
    scrollbar-width:none;
}

.pv-chip-scroll::-webkit-scrollbar{
    display:none;
}

.pv-chip{
    flex:0 0 auto;
    min-height:40px;
    padding:9px 14px;
    border-radius:999px;
    background:rgba(255,255,255,.06);
    border:1px solid rgba(255,255,255,.10);
    color:var(--pv-soft,#dce4ef);
    font-size:13px;
    font-weight:850;
    text-decoration:none;
}

.pv-chip.active{
    color:#00e083;
    background:rgba(0,224,131,.12);
    border-color:rgba(0,224,131,.35);
}

/* Empty state */
.pv-empty-state{
    padding:34px;
    text-align:center;
    border-radius:24px;
    background:rgba(255,255,255,.045);
    border:1px solid rgba(255,255,255,.10);
}

.pv-empty-state h3{
    margin:0 0 8px;
}

.pv-empty-state p{
    margin:0 0 16px;
}

/* Motion */
.pv-animate-up{
    animation:pvFadeUp .34s var(--pv-ease) both;
}

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

/* Skeleton loader */
.pv-skeleton{
    position:relative;
    overflow:hidden;
    background:rgba(255,255,255,.06);
    border-radius:14px;
}

.pv-skeleton::after{
    content:"";
    position:absolute;
    inset:0;
    transform:translateX(-100%);
    background:linear-gradient(90deg, transparent, rgba(255,255,255,.12), transparent);
    animation:pvShimmer 1.3s infinite;
}

@keyframes pvShimmer{
    100%{
        transform:translateX(100%);
    }
}

@media(max-width:768px){
    .pv-section-head-enterprise{
        align-items:flex-start;
        flex-direction:column;
    }

    .pv-empty-state{
        padding:24px 18px;
    }
}

/* ==========================================================
   World Cup Command Center
   ========================================================== */

.pvwc-hero{
    padding:34px 0 22px;
    background:
        radial-gradient(circle at top right, rgba(245,197,24,.18), transparent 34%),
        radial-gradient(circle at top left, rgba(0,224,131,.16), transparent 30%),
        linear-gradient(180deg, rgba(12,24,34,.95), rgba(5,11,16,.82));
    border-bottom:1px solid rgba(255,255,255,.10);
}

.pvwc-hero-card{
    padding:24px;
    border-radius:28px;
    background:linear-gradient(180deg, rgba(17,28,37,.98), rgba(7,14,22,.98));
    border:1px solid rgba(245,197,24,.18);
    box-shadow:0 20px 50px rgba(0,0,0,.38);
}

.pvwc-hero-card h1{
    margin:12px 0;
}

.pvwc-hero-actions{
    display:flex;
    gap:10px;
    flex-wrap:wrap;
    margin-top:18px;
}

.pvwc-kpi-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(180px,1fr));
    gap:14px;
    margin-top:18px;
}

.pvwc-stage-card{
    padding:18px;
    border-radius:24px;
    background:linear-gradient(180deg, rgba(17,28,37,.98), rgba(7,14,22,.98));
    border:1px solid rgba(255,255,255,.10);
    box-shadow:0 16px 38px rgba(0,0,0,.30);
}

.pvwc-team-grid{
    display:grid;
    grid-template-columns:1fr;
    gap:10px;
    margin-top:14px;
}

.pvwc-team-option{
    display:block;
    cursor:pointer;
}

.pvwc-team-option input{
    display:none;
}

.pvwc-team-option span{
    min-height:48px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding:12px 14px;
    border-radius:16px;
    color:var(--pv-soft,#dce4ef);
    background:rgba(255,255,255,.055);
    border:1px solid rgba(255,255,255,.10);
    font-weight:850;
}

.pvwc-team-option span::after{
    content:"Tap";
    color:var(--pv-muted,#8e9aaa);
    font-size:11px;
    font-weight:900;
    text-transform:uppercase;
}

.pvwc-team-option input:checked + span{
    color:#f5c518;
    background:rgba(245,197,24,.12);
    border-color:rgba(245,197,24,.42);
}

.pvwc-team-option input:checked + span::after{
    content:"Selected";
    color:#f5c518;
}

.pvwc-list{
    display:grid;
    gap:10px;
}

.pvwc-list-row{
    display:flex;
    gap:12px;
    align-items:center;
    padding:14px;
    border-radius:18px;
    background:rgba(255,255,255,.045);
    border:1px solid rgba(255,255,255,.08);
}

.pvwc-list-row > span:first-child{
    width:36px;
    height:36px;
    border-radius:12px;
    display:flex;
    align-items:center;
    justify-content:center;
    background:rgba(0,224,131,.10);
    color:#00e083;
    font-weight:950;
    flex:0 0 auto;
}

.pvwc-list-row strong{
    display:block;
    color:var(--pv-text,#f4f7fb);
}

.pvwc-list-row small{
    color:var(--pv-muted,#8e9aaa);
}

@media(max-width:768px){
    .pvwc-hero{
        padding:22px 0 16px;
    }

    .pvwc-hero-card{
        padding:20px;
    }

    .pvwc-kpi-grid{
        grid-template-columns:1fr 1fr;
    }
}

/* ==========================================================
   VIP Command Center Intelligence
   ========================================================== */

.pvv-ai-intel-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
    gap:14px;
    margin-top:18px;
}

.pvv-ai-intel-card{
    padding:18px;
    border-radius:24px;
    background:linear-gradient(180deg, rgba(17,28,37,.98), rgba(7,14,22,.98));
    border:1px solid rgba(245,197,24,.18);
    box-shadow:0 16px 38px rgba(0,0,0,.30);
}

.pvv-ai-intel-card span{
    display:block;
    color:var(--pv-muted,#8e9aaa);
    font-size:12px;
    font-weight:900;
    text-transform:uppercase;
    letter-spacing:.05em;
}

.pvv-ai-intel-card strong{
    display:block;
    margin-top:8px;
    color:#f5c518;
    font-size:26px;
    font-weight:950;
}

.pvv-ai-intel-card p{
    margin:8px 0 0;
    color:var(--pv-muted,#8e9aaa);
}

.pvv-vip-timeline{
    display:grid;
    gap:12px;
    margin-top:18px;
}

.pvv-vip-timeline-row{
    display:flex;
    gap:12px;
    align-items:flex-start;
    padding:14px;
    border-radius:18px;
    background:rgba(255,255,255,.045);
    border:1px solid rgba(255,255,255,.08);
}

.pvv-vip-timeline-time{
    min-width:54px;
    color:#f5c518;
    font-weight:950;
    font-size:13px;
}

.pvv-vip-timeline-row strong{
    display:block;
    color:var(--pv-text,#f4f7fb);
}

.pvv-vip-timeline-row small{
    color:var(--pv-muted,#8e9aaa);
}

@media(max-width:768px){
    .pvv-ai-intel-grid{
        grid-template-columns:1fr 1fr;
    }

    .pvv-ai-intel-card{
        padding:14px;
    }

    .pvv-ai-intel-card strong{
        font-size:22px;
    }
}

/* AI Match Intelligence card summary */
.pvx-ai-summary{
    margin:12px 0 10px;
    padding:12px 13px;
    border-radius:16px;
    background:rgba(0,224,131,.065);
    border:1px solid rgba(0,224,131,.14);
    color:rgba(244,247,251,.88);
    font-size:13px;
    line-height:1.55;
}

@media(max-width:768px){
    .pvx-ai-summary{
        font-size:12.5px;
        line-height:1.5;
        padding:11px 12px;
    }
}

@media (max-width: 768px){
    .pv-vip-trial-banner{
        margin:12px 14px;
        border-radius:20px;
        padding:14px;
        border:1px solid rgba(255,255,255,.12);
        box-shadow:0 16px 38px rgba(0,0,0,.34);
        position:relative;
        z-index:40;
    }

    .pv-vip-trial-content{
        display:flex;
        flex-direction:column;
        gap:12px;
    }

    .pv-vip-trial-content strong{
        display:block;
        color:#fff;
        font-size:16px;
        margin-bottom:4px;
    }

    .pv-vip-trial-content p{
        margin:0;
        color:#dce4ef;
        font-size:13px;
        line-height:1.55;
    }

    .pv-vip-trial-btn{
        display:flex;
        align-items:center;
        justify-content:center;
        min-height:44px;
        border-radius:14px;
        background:#00e083;
        color:#03100b !important;
        font-weight:900;
        text-decoration:none;
    }

    .pv-vip-trial-success{
        background:linear-gradient(135deg, rgba(0,224,131,.22), rgba(8,20,24,.96));
        border-color:rgba(0,224,131,.36);
    }

    .pv-vip-trial-warning{
        background:linear-gradient(135deg, rgba(245,197,24,.24), rgba(8,20,24,.96));
        border-color:rgba(245,197,24,.42);
    }

    .pv-vip-trial-danger{
        background:linear-gradient(135deg, rgba(255,77,94,.26), rgba(8,20,24,.96));
        border-color:rgba(255,77,94,.44);
    }
}

/* Dashboard compact cards - desktop + mobile */
.pv-compact-pick-list{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(280px,1fr));
    gap:16px;
}

.pv-compact-pick{
    display:block;
    padding:18px;
    border-radius:22px;
    background:linear-gradient(180deg, rgba(17,28,37,.98), rgba(10,18,26,.98));
    border:1px solid rgba(255,255,255,.10);
    text-decoration:none;
    color:var(--pv-text);
    box-shadow:0 18px 45px rgba(0,0,0,.28);
}

.pv-compact-top{
    display:flex;
    justify-content:space-between;
    gap:12px;
    align-items:flex-start;
}

.pv-compact-top strong{
    display:block;
    font-size:18px;
    line-height:1.2;
}

.pv-compact-top small{
    display:block;
    margin-top:6px;
    color:var(--pv-muted);
}

.pv-compact-middle{
    margin-top:14px;
    padding:13px 15px;
    border-radius:16px;
    background:rgba(0,224,131,.10);
    color:var(--pv-green);
    font-size:18px;
    font-weight:950;
}

.pv-compact-meta{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:10px;
    margin-top:12px;
}

.pv-compact-meta span{
    padding:10px 12px;
    border-radius:14px;
    background:rgba(255,255,255,.045);
    border:1px solid rgba(255,255,255,.08);
    color:var(--pv-muted);
    font-size:13px;
}

.pv-compact-meta strong{
    color:var(--pv-text);
}

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

.pv-mini-card{
    display:flex;
    flex-direction:column;
    gap:4px;
    padding:18px;
    border-radius:20px;
    background:rgba(255,255,255,.055);
    border:1px solid rgba(255,255,255,.10);
    text-decoration:none;
    color:var(--pv-text);
}

.pv-stat-strip{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:12px;
}

.pv-stat-strip div{
    padding:18px;
    border-radius:20px;
    background:rgba(255,255,255,.055);
    border:1px solid rgba(255,255,255,.10);
}

.pv-stat-strip strong{
    display:block;
    font-size:28px;
    color:var(--pv-text);
}

.pv-stat-strip span{
    color:var(--pv-muted);
    font-size:12px;
    font-weight:800;
    text-transform:uppercase;
}

@media(max-width:768px){
    .pv-compact-pick-list{grid-template-columns:1fr;}
    .pv-stat-strip{grid-template-columns:1fr 1fr;}
}

/* ============================================================
   Fixed Mobile Bottom Navigation Stabilizer
============================================================ */

@media (max-width: 768px) {
    .pv-mobile-bottom-nav,
    .pv-bottom-nav,
    .mobile-bottom-nav,
    .bottom-nav,
    .pv-sticky-mobile-nav {
        position: fixed !important;
        left: 12px !important;
        right: 12px !important;
        bottom: max(10px, env(safe-area-inset-bottom)) !important;
        z-index: 9999 !important;
        transform: none !important;
        margin: 0 !important;
    }

    body {
        padding-bottom: 92px !important;
    }
}

/* ============================================================
   PuntVault Mobile Dense Layout
   Goal: Flashscore-style compact mobile interface
============================================================ */

@media (max-width:768px){

    /* Remove large vertical gaps */
    section,
    .section,
    .pv-section,
    .page-section,
    .content-section{
        padding-top:8px !important;
        padding-bottom:8px !important;
        margin-top:0 !important;
        margin-bottom:0 !important;
    }

    /* Make shells tighter */
    .pv-shell,
    .container,
    .wrapper{
        padding-left:10px !important;
        padding-right:10px !important;
    }

    /* Cards should almost touch */
    .card,
    .pv-card,
    .prediction-card,
    .match-card,
    .tip-card,
    .fixture-card,
    .accumulator-card,
    .premium-card,
    .result-card,
    .league-card{

        margin-top:0 !important;
        margin-bottom:4px !important;
        padding:12px !important;
        border-radius:12px;
    }

    /* Grid spacing */
    .grid,
    .cards,
    .prediction-grid,
    .fixture-grid{
        gap:4px !important;
    }

    /* Headlines */
    h1{
        margin-bottom:8px !important;
    }

    h2{
        margin-bottom:6px !important;
    }

    h3{
        margin-bottom:4px !important;
    }

    p{
        margin-bottom:6px !important;
    }

    /* Buttons */
    .btn,
    .pv-btn{
        margin:2px !important;
    }

    /* Lists */
    li{
        margin-bottom:2px;
    }

}

/* ============================================================
   PuntVault Global Mobile Design System v1
   Central mobile standard for dense sports-app experience
============================================================ */

@media (max-width: 768px) {

    :root {
        --pvm-page-x: 10px;
        --pvm-section-y: 8px;
        --pvm-card-gap: 4px;
        --pvm-card-pad: 10px;
        --pvm-radius: 12px;
        --pvm-touch: 44px;
    }

    html,
    body {
        overflow-x: hidden !important;
        width: 100% !important;
    }

    body {
        padding-bottom: 92px !important;
    }

    /* Main wrappers */
    .pv-shell,
    .pla-shell,
    .plc-shell,
    .pvv-shell,
    .pvr-shell,
    .pvs-shell,
    .container,
    .wrapper,
    main > div {
        max-width: 100% !important;
        width: 100% !important;
        padding-left: var(--pvm-page-x) !important;
        padding-right: var(--pvm-page-x) !important;
    }

    /* Dense sections */
    section,
    .pv-section,
    .pvh-section,
    .pvs-section,
    .pvv-section,
    .pvr-section,
    .pvm-section,
    .pla-main-section,
    .plc-main-section {
        padding-top: var(--pvm-section-y) !important;
        padding-bottom: var(--pvm-section-y) !important;
        margin-top: 0 !important;
        margin-bottom: 0 !important;
    }

    /* Compact heroes */
    .pvh-hero,
    .pvs-hero,
    .pvv-hero,
    .pvr-hero,
    .pvm-hero,
    .pla-hero,
    .plc-hero {
        padding-top: 18px !important;
        padding-bottom: 12px !important;
    }

    h1 {
        font-size: clamp(1.75rem, 7vw, 2.35rem) !important;
        line-height: 1.02 !important;
        margin-top: 6px !important;
        margin-bottom: 8px !important;
    }

    h2 {
        font-size: clamp(1.2rem, 5vw, 1.55rem) !important;
        line-height: 1.08 !important;
        margin-top: 4px !important;
        margin-bottom: 6px !important;
    }

    h3 {
        font-size: 1rem !important;
        line-height: 1.15 !important;
        margin-top: 4px !important;
        margin-bottom: 4px !important;
    }

    p {
        margin-top: 0 !important;
        margin-bottom: 6px !important;
        line-height: 1.45 !important;
    }

    /* Universal card density */
    .card,
    .pv-card,
    .pvm-card,
    .pvh-card,
    .pvs-card,
    .pvv-card,
    .pvr-card,
    .pla-side-card,
    .pla-action-card,
    .pla-fixture-card,
    .pla-feed-row,
    .plc-side-card,
    .plc-match-card,
    .plc-feed-row,
    .prediction-card,
    .prediction-card-enterprise,
    .match-card,
    .tip-card,
    .fixture-card,
    .accumulator-card,
    .premium-card,
    .result-card,
    .league-card {
        margin-top: 0 !important;
        margin-bottom: var(--pvm-card-gap) !important;
        padding: var(--pvm-card-pad) !important;
        border-radius: var(--pvm-radius) !important;
    }

    /* Universal grid density */
    .grid,
    .cards,
    .pvm-card-grid,
    .pvh-ledger,
    .pvs-grid,
    .pvv-grid,
    .pvr-grid,
    .pla-panel-grid,
    .pla-fixture-list,
    .pla-feed,
    .pla-sidebar,
    .plc-main,
    .plc-sidebar,
    .prediction-grid,
    .fixture-grid,
    .pvx-results-grid {
        gap: var(--pvm-card-gap) !important;
    }

    /* Make dashboard columns stack cleanly */
    .pla-dashboard-grid,
    .plc-grid,
    .pvh-hero-grid,
    .pvs-hero-grid,
    .pvv-hero-grid,
    .pvr-hero-grid {
        grid-template-columns: 1fr !important;
        gap: var(--pvm-card-gap) !important;
    }

    .pla-sidebar,
    .plc-sidebar {
        position: static !important;
    }

    /* Mobile sliding tabs / pills */
    .pvm-tabs,
    .pla-tabs,
    .plc-tabs,
    .pvv-terminal-tabs,
    .pv-filter-tabs,
    .pv-tabs {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        gap: 8px !important;
        padding: 10px var(--pvm-page-x) 8px !important;
        margin-left: calc(var(--pvm-page-x) * -1) !important;
        margin-right: calc(var(--pvm-page-x) * -1) !important;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x proximity;
        scrollbar-width: none;
    }

    .pvm-tabs::-webkit-scrollbar,
    .pla-tabs::-webkit-scrollbar,
    .plc-tabs::-webkit-scrollbar,
    .pvv-terminal-tabs::-webkit-scrollbar,
    .pv-filter-tabs::-webkit-scrollbar,
    .pv-tabs::-webkit-scrollbar {
        display: none;
    }

    .pvm-tab,
    .pla-tab,
    .plc-tab,
    .pvv-terminal-tabs button,
    .pv-filter-tabs a,
    .pv-filter-tabs button,
    .pv-tabs a,
    .pv-tabs button {
        flex: 0 0 auto !important;
        width: auto !important;
        min-width: max-content !important;
        min-height: var(--pvm-touch) !important;
        padding: 11px 14px !important;
        font-size: .86rem !important;
        white-space: nowrap !important;
        scroll-snap-align: start;
    }

    /* Buttons and touch targets */
    button,
    .btn,
    .pv-btn,
    .pv-btn-v2,
    input[type="submit"],
    .button {
        min-height: var(--pvm-touch) !important;
        touch-action: manipulation;
    }

    /* Reduce bulky stat ribbons */
    .pv-stats-ribbon-v2,
    .pvv-terminal-stats,
    .pvr-kpi-grid,
    .pla-stat-grid,
    .plc-stat-grid,
    .plc-progress-card {
        gap: 4px !important;
    }

    .pv-stats-ribbon-v2 > div,
    .pvv-terminal-stats > div,
    .pvr-kpi-card,
    .pla-stat-grid > div,
    .plc-stat-grid > div,
    .plc-progress-card > div {
        padding: 8px !important;
        border-radius: 10px !important;
    }

    /* Compact lists / rows */
    .pvr-result-row,
    .pvv-match-row,
    .pla-rank-row,
    .plc-rank-row,
    .pla-feed-row,
    .plc-activity-row {
        padding-top: 8px !important;
        padding-bottom: 8px !important;
    }

    /* Prevent images and tables from causing sideways scrolling */
    img,
    video,
    iframe {
        max-width: 100% !important;
        height: auto;
    }

    table {
        max-width: 100% !important;
    }

    /* Fixed bottom nav stabilizer */
    .pv-mobile-bottom-nav,
    .pv-bottom-nav,
    .mobile-bottom-nav,
    .bottom-nav,
    .pv-sticky-mobile-nav {
        position: fixed !important;
        left: 10px !important;
        right: 10px !important;
        bottom: max(8px, env(safe-area-inset-bottom)) !important;
        z-index: 9999 !important;
        transform: none !important;
        margin: 0 !important;
    }
}

@media (max-width: 420px) {
    @media (max-width: 768px) {
        :root {
            --pvm-page-x: 8px;
            --pvm-card-pad: 9px;
            --pvm-card-gap: 3px;
        }
    }
}

/* Premium VIP navigation links */
.pvv-terminal-tabs a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 11px 16px;
    border-radius: 999px;
    border: 1px solid var(--pv-border-soft);
    background: rgba(255,255,255,.055);
    color: var(--pv-text);
    text-decoration: none;
    font-weight: 950;
    white-space: nowrap;
}

.pvv-terminal-tabs a.is-active,
.pvv-terminal-tabs a:hover {
    background: linear-gradient(135deg, var(--pv-green), #00b86b);
    color: #02110a;
    border-color: rgba(0,224,131,.75);
}

/* ============================================================
   Premium VIP Gold Navigation Restore
   Applies old button styling to new real anchor links
============================================================ */

.pvv-terminal-tabs a,
.pvv-terminal-tabs button {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 44px !important;
    padding: 11px 16px !important;
    border-radius: 999px !important;
    border: 1px solid rgba(255, 210, 31, .28) !important;
    background:
        linear-gradient(180deg, rgba(255, 210, 31, .13), rgba(255, 210, 31, .04)),
        rgba(255,255,255,.045) !important;
    color: #ffd21f !important;
    text-decoration: none !important;
    font-weight: 950 !important;
    white-space: nowrap !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.08) !important;
}

.pvv-terminal-tabs a.is-active,
.pvv-terminal-tabs button.is-active,
.pvv-terminal-tabs a:hover,
.pvv-terminal-tabs button:hover {
    background:
        linear-gradient(135deg, #ffd21f, #ffb800) !important;
    color: #151004 !important;
    border-color: rgba(255, 210, 31, .85) !important;
    box-shadow:
        0 14px 32px rgba(255, 210, 31, .22),
        inset 0 1px 0 rgba(255,255,255,.28) !important;
}

@media (max-width: 768px) {
    .pvv-terminal-tabs a,
    .pvv-terminal-tabs button {
        flex: 0 0 auto !important;
        min-width: max-content !important;
    }
}
