/*
 * AI Spin Pro — Glassmorphism Overlay v1.0
 * Si carica DOPO frontend.css e ridefinisce solo:
 *   - palette base (più scura, blu-violacea)
 *   - texture pannelli (glass blur + bordi luminosi)
 *   - tipografia (più leggera e contemporanea)
 *   - micro-interazioni (hover bloom, transizioni smooth)
 *
 * Filosofia: feel "trading app dark glass" — non sostituisce il casino premium,
 * lo trasforma in un layer più moderno e leggibile.
 *
 * Per rollback: rimuovere il wp_enqueue di questo file.
 */

/* ══════════════════════════════════════════════════════════════════
   PATCH 0.4 — Header info: tooltip Forza Segnale + badge CET
══════════════════════════════════════════════════════════════════ */
.arp-front .asp-hstat__info {
    display: inline-block;
    margin-left: 4px;
    font-size: 0.78em;
    color: var(--c-gold-light);
    opacity: 0.7;
    cursor: help;
    transition: opacity 0.18s ease;
}
.arp-front .asp-hstat:hover .asp-hstat__info {
    opacity: 1;
}
.arp-front .asp-hstat__tz {
    display: inline-block;
    margin-left: 6px;
    padding: 1px 6px;
    font-size: 0.62em;
    font-weight: 700;
    letter-spacing: 0.1em;
    background: rgba(255, 200, 87, 0.12);
    border: 1px solid rgba(255, 200, 87, 0.32);
    border-radius: 999px;
    color: var(--c-gold-light);
    vertical-align: 1px;
}

/* ══════════════════════════════════════════════════════════════════
   PATCH 0.4 — Area Operativa Live: centro il sottotitolo di stato
   Il documento UX chiede che "SESSIONE COMPLETATA" / "PRONTO" stiano
   nella colonna centrale invece che a sinistra. Lo ottengo
   spostando visualmente il sottotitolo al centro dell'header senza
   toccare il grid HTML (rischio rotture troppo alto).
══════════════════════════════════════════════════════════════════ */
.arp-front .arp-opguide__header {
    display: flex !important;
    align-items: center;
    justify-content: flex-start;
    gap: 1.5rem;
    flex-wrap: wrap;
}
.arp-front .arp-opguide__header-left {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    flex: 1;
    min-width: 0;
}
.arp-front .arp-opguide__title {
    align-self: flex-start;
}
.arp-front .arp-opguide__subtitle {
    align-self: center;
    text-align: center;
    margin-top: 0.25rem;
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: var(--c-gold-light);
    text-shadow: 0 0 12px rgba(255, 200, 87, 0.25);
}

/* ══════════════════════════════════════════════════════════════════
   LOGO HEADER — PNG trasparente, glow gold morbido
══════════════════════════════════════════════════════════════════ */

/* Sopprime lo sfondo nero solido che il vecchio CSS metteva sotto il logo.
   Era stato pensato per "accompagnare" il vecchio logo JPEG con fondo nero.
   Ora che il logo è PNG trasparente, lo sfondo deve passare. */
.arp-front .asp-header {
    background: linear-gradient(180deg,
        rgba(12, 14, 24, 0.6) 0%,
        rgba(7, 8, 15, 0.3) 100%) !important;
    backdrop-filter: blur(20px) saturate(1.4);
    -webkit-backdrop-filter: blur(20px) saturate(1.4);
    border-bottom: 1px solid var(--c-border) !important;
}
.arp-front .asp-header__logo {
    background: transparent !important;
}
.arp-front .asp-logo-img {
    background: transparent !important;
    filter: drop-shadow(0 0 22px rgba(255, 200, 87, 0.4))
            drop-shadow(0 4px 14px rgba(0, 0, 0, 0.5)) !important;
    mix-blend-mode: normal !important;
    transition: filter 0.3s ease, transform 0.3s ease;
}
.arp-front .asp-logo-img:hover {
    filter: drop-shadow(0 0 32px rgba(255, 200, 87, 0.55))
            drop-shadow(0 4px 16px rgba(0, 0, 0, 0.6)) !important;
    transform: scale(1.02);
}

/* ══════════════════════════════════════════════════════════════════
   FULL-BLEED BACKGROUND — sopprime sfondo bianco di tema/Elementor
   Questo è AGGRESSIVO perché molti temi (Astra, Hello Elementor,
   GeneratePress...) impongono lo sfondo a vari livelli del DOM.
══════════════════════════════════════════════════════════════════ */
html:has(.aispin-shell),
html:has(.aispin-shell) body,
body:has(.aispin-shell),
body:has(.aispin-shell) #page,
body:has(.aispin-shell) main,
body:has(.aispin-shell) .site,
body:has(.aispin-shell) .site-content,
body:has(.aispin-shell) .entry-content,
body:has(.aispin-shell) .elementor-section-wrap,
body:has(.aispin-shell) [class*="elementor-location-"] {
    background:       #07080f !important;
    background-color: #07080f !important;
}

/* Estende lo shell oltre la larghezza del contenitore tema */
.aispin-shell {
    position:    relative !important;
    width:       100vw !important;
    max-width:   100vw !important;
    left:        50% !important;
    right:       50% !important;
    margin-left:  -50vw !important;
    margin-right: -50vw !important;
    padding-top:    1.5rem !important;
    padding-bottom: 4rem !important;
    background: #07080f !important;
}

/* Per safety, qualunque container superiore non deve avere bianco */
.aispin-shell ~ *,
*:has(> .aispin-shell) {
    background: transparent;
}

/* ══════════════════════════════════════════════════════════════════
   PALETTE OVERRIDE — più cool, meno bronze
══════════════════════════════════════════════════════════════════ */
.arp-front {
    /* Base — scuro blu-violaceo invece di nero puro */
    --c-bg:          #07080f;
    --c-card:        rgba(20, 24, 40, 0.55);          /* glass primario */
    --c-card2:       rgba(28, 32, 52, 0.45);          /* glass secondario */
    --c-raised:      rgba(36, 42, 68, 0.6);           /* glass raised */
    --c-input:       rgba(12, 14, 24, 0.7);

    /* Bordi — luminosità sottile, non gold pesante */
    --c-border:      rgba(148, 168, 220, 0.12);
    --c-border-glow: rgba(180, 200, 255, 0.28);
    --c-border-hot:  rgba(255, 200, 80, 0.45);

    /* Accent — gold più caldo + ciano elettrico per highlight informativi */
    --c-gold:        #ffc857;
    --c-gold-light:  #ffd87a;
    --c-gold-pale:   #ffe9b3;
    --c-gold-glow:   rgba(255, 200, 87, 0.35);
    --c-accent:      #6aa9ff;
    --c-accent-glow: rgba(106, 169, 255, 0.4);

    /* Stati semantici — saturazioni moderne */
    --c-red:         #ef4d5f;
    --c-red-dark:    #b21e2e;
    --c-red-glow:    rgba(239, 77, 95, 0.4);
    --c-green:       #21a05a;
    --c-green-br:    #34d97a;
    --c-green-glow:  rgba(52, 217, 122, 0.35);

    /* Testo — alto contrasto */
    --c-text:        #e8edf7;
    --c-muted:       #aab4c8;
    --c-dim:         #6d7793;
    --c-bright:      #ffffff;

    /* Shadow + radius */
    --r:             14px;
    --r-sm:          10px;
    --r-xs:          6px;
    --sh-glass:      0 8px 32px rgba(0, 0, 0, 0.45),
                     inset 0 1px 0 rgba(255, 255, 255, 0.06);
    --sh-hot:        0 0 0 1px var(--c-border-hot),
                     0 8px 24px rgba(255, 200, 87, 0.12);

    /* Background ambient — gradiente radiale lontano */
    background:
        radial-gradient(ellipse 80% 50% at 50% 0%, rgba(106, 169, 255, 0.06), transparent 60%),
        radial-gradient(ellipse 60% 40% at 80% 100%, rgba(255, 200, 87, 0.04), transparent 70%),
        var(--c-bg) !important;
}

body:has(.aispin-shell),
.aispin-shell {
    background: var(--c-bg) !important;
}
.aispin-shell::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse 60% 40% at 20% 10%, rgba(106, 169, 255, 0.08), transparent 60%),
        radial-gradient(ellipse 50% 50% at 90% 80%, rgba(255, 200, 87, 0.05), transparent 70%);
    z-index: 0;
}
.aispin-shell > * { position: relative; z-index: 1; }

/* ══════════════════════════════════════════════════════════════════
   GLASS PANELS — backdrop blur su tutto ciò che è una card
══════════════════════════════════════════════════════════════════ */

/* Pattern generico: tutte le card del plugin */
.arp-front .arp-card,
.arp-front .asp-card,
.arp-front .asp-panel,
.arp-front .arp-panel,
.arp-front .arp-section,
.arp-front .arp-stat,
.arp-front [class*="arp-"][class*="card"],
.arp-front [class*="asp-"][class*="card"] {
    background: var(--c-card);
    backdrop-filter: blur(18px) saturate(1.4);
    -webkit-backdrop-filter: blur(18px) saturate(1.4);
    border: 1px solid var(--c-border);
    border-radius: var(--r);
    box-shadow: var(--sh-glass);
    transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

/* Hover bloom — leggero, non aggressivo */
.arp-front .arp-card:hover,
.arp-front .asp-card:hover,
.arp-front .asp-panel:hover,
.arp-front .arp-panel:hover {
    border-color: var(--c-border-glow);
    transform: translateY(-1px);
}

/* Inserimento Rapido & Screenshot — il blocco principale di input */
.arp-front #arp-quick-input,
.arp-front #arp-screenshot-input,
.arp-front .arp-quick-input,
.arp-front .asp-quick-input-wrap,
.arp-front .arp-bulk-import {
    background: var(--c-card);
    backdrop-filter: blur(20px) saturate(1.4);
    -webkit-backdrop-filter: blur(20px) saturate(1.4);
    border: 1px solid var(--c-border);
    border-radius: var(--r);
    box-shadow: var(--sh-glass);
}

/* Area Operativa Live — il pannello centrale */
.arp-front #aco-panel,
.arp-front .arp-opguide,
.arp-front .arp-operative-card,
.arp-front .arp-op-area {
    background: linear-gradient(135deg,
        rgba(28, 32, 52, 0.6) 0%,
        rgba(20, 24, 40, 0.5) 100%);
    backdrop-filter: blur(24px) saturate(1.5);
    -webkit-backdrop-filter: blur(24px) saturate(1.5);
    border: 1px solid var(--c-border);
    border-radius: var(--r);
    box-shadow: var(--sh-glass);
}

/* ══════════════════════════════════════════════════════════════════
   HEADER — più minimale e leggibile
══════════════════════════════════════════════════════════════════ */
.arp-front .asp-header {
    background: linear-gradient(180deg,
        rgba(12, 14, 24, 0.85) 0%,
        rgba(7, 8, 15, 0.65) 100%);
    backdrop-filter: blur(20px) saturate(1.4);
    -webkit-backdrop-filter: blur(20px) saturate(1.4);
    border-bottom: 1px solid var(--c-border);
}
.arp-front .asp-header::after {
    background: linear-gradient(90deg,
        transparent,
        var(--c-border-glow) 30%,
        var(--c-border-glow) 70%,
        transparent);
    height: 1px;
    opacity: 0.5;
}

.arp-front .asp-hstat__val {
    font-family: var(--font);
    font-size: 1.75rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--c-bright);
}
.arp-front .asp-hstat__lbl {
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    color: var(--c-dim);
    text-transform: uppercase;
}
.arp-front .asp-hstat__val--mono {
    font-family: var(--font-m);
    font-size: 1.3rem;
    color: var(--c-muted);
    font-weight: 500;
}

/* ══════════════════════════════════════════════════════════════════
   TIPOGRAFIA — pesi e dimensioni più contemporanee
══════════════════════════════════════════════════════════════════ */
.arp-front {
    font-feature-settings: "ss01", "cv11";
}

/* Title di pannello — più leggero, più spazio */
.arp-front .arp-card__title,
.arp-front .asp-panel__title,
.arp-front .arp-section__title,
.arp-front .arp-op-section-title {
    font-size: 0.7rem !important;
    font-weight: 600 !important;
    letter-spacing: 0.14em !important;
    text-transform: uppercase !important;
    color: var(--c-muted) !important;
    margin-bottom: 0.6rem !important;
}

/* Valori grandi — peso medio, non bold pesante */
.arp-front .arp-stat__value,
.arp-front .asp-stat-value,
.arp-front .arp-bigval {
    font-weight: 600 !important;
    letter-spacing: -0.02em !important;
    color: var(--c-bright) !important;
}

/* Etichette di stat */
.arp-front .arp-stat__label,
.arp-front .asp-stat-label {
    font-size: 0.68rem !important;
    font-weight: 600 !important;
    letter-spacing: 0.12em !important;
    color: var(--c-dim) !important;
    text-transform: uppercase !important;
}

/* ══════════════════════════════════════════════════════════════════
   CHIPS / NUMERI — più contemporanei
══════════════════════════════════════════════════════════════════ */

/* Chip ruota — bordi più puliti, glow contestuale */
.arp-front .arp-chip {
    font-weight: 700;
    border: 1.5px solid rgba(255, 255, 255, 0.12);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.18),
        0 2px 8px rgba(0, 0, 0, 0.4);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.arp-front .arp-chip:hover {
    transform: translateY(-1px) scale(1.04);
}
.arp-front .arp-chip--red {
    background: radial-gradient(circle at 30% 30%, #f25d6e 0%, #c41e2f 60%, #8a1421 100%);
    color: #fff;
    border-color: rgba(255, 100, 120, 0.3);
}
.arp-front .arp-chip--black {
    background: radial-gradient(circle at 30% 30%, #364060 0%, #1a1f30 60%, #0a0d18 100%);
    color: #fff;
    border-color: rgba(140, 160, 200, 0.2);
}
.arp-front .arp-chip--green {
    background: radial-gradient(circle at 30% 30%, #3ad97e 0%, #16a851 60%, #0a6b34 100%);
    color: #fff;
    border-color: rgba(80, 230, 130, 0.3);
}

/* Chip extra large dell'ultimo numero — più impatto */
.arp-front .arp-chip--xl,
.arp-front #arp-last-chip {
    box-shadow:
        inset 0 2px 0 rgba(255, 255, 255, 0.22),
        0 0 0 4px rgba(255, 200, 87, 0.18),
        0 8px 24px rgba(0, 0, 0, 0.6);
    transform: none;
}

/* Numero target (cerchi gialli "GIOCA") */
.arp-front .arp-target,
.arp-front .arp-target-num,
.arp-front .arp-opguide-target .arp-chip {
    border: 2px solid var(--c-gold) !important;
    box-shadow:
        0 0 0 1px rgba(0, 0, 0, 0.4),
        0 0 18px var(--c-gold-glow),
        inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
}

/* ══════════════════════════════════════════════════════════════════
   BUTTONS — glass + glow su CTA primari
══════════════════════════════════════════════════════════════════ */
.arp-front .arp-btn,
.arp-front .asp-btn {
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--c-border);
    border-radius: var(--r-sm);
    color: var(--c-text);
    font-weight: 600;
    letter-spacing: 0.02em;
    transition: all 0.2s ease;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.arp-front .arp-btn:hover,
.arp-front .asp-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--c-border-glow);
    transform: translateY(-1px);
}
.arp-front .arp-btn:active,
.arp-front .asp-btn:active {
    transform: translateY(0);
}

/* CTA primario — gold solido */
.arp-front .arp-btn--primary,
.arp-front .asp-btn--primary,
.arp-front button[id*="save"],
.arp-front #asp-btn-session-start,
.arp-front #asp-btn-session-start-right,
.arp-front #asp-btn-session-start-bottom {
    background: linear-gradient(135deg, var(--c-gold) 0%, #e8a82d 100%);
    border: 1px solid rgba(255, 200, 87, 0.6);
    color: #1a1408;
    font-weight: 700;
    box-shadow:
        0 4px 16px rgba(255, 200, 87, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.18);
}
.arp-front .arp-btn--primary:hover,
.arp-front .asp-btn--primary:hover {
    background: linear-gradient(135deg, var(--c-gold-light) 0%, var(--c-gold) 100%);
    box-shadow:
        0 6px 22px rgba(255, 200, 87, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
    transform: translateY(-1px);
}

/* CTA "INIZIA A GIOCARE" — verde brillante (è il GO!) */
.arp-front .arp-btn--success,
.arp-front .asp-btn--success,
.arp-front .arp-btn-play,
.arp-front button[class*="play"],
.arp-front button[id*="play"] {
    background: linear-gradient(135deg, var(--c-green-br) 0%, var(--c-green) 100%);
    border: 1px solid rgba(52, 217, 122, 0.6);
    color: #062014;
    font-weight: 700;
    box-shadow:
        0 4px 16px rgba(52, 217, 122, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

/* Bottone danger / cancella */
.arp-front .arp-btn--danger,
.arp-front .asp-btn--danger,
.arp-front #arp-btn-reset {
    background: rgba(239, 77, 95, 0.12);
    border: 1px solid rgba(239, 77, 95, 0.35);
    color: #ff8a96;
}
.arp-front .arp-btn--danger:hover {
    background: rgba(239, 77, 95, 0.22);
    border-color: rgba(239, 77, 95, 0.6);
}

/* ══════════════════════════════════════════════════════════════════
   INPUT — glass field
══════════════════════════════════════════════════════════════════ */
.arp-front input[type="text"],
.arp-front input[type="number"],
.arp-front input[type="email"],
.arp-front textarea,
.arp-front select {
    background: var(--c-input) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--c-border) !important;
    color: var(--c-text) !important;
    border-radius: var(--r-sm) !important;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.arp-front input:focus,
.arp-front textarea:focus,
.arp-front select:focus {
    outline: none !important;
    border-color: var(--c-gold) !important;
    box-shadow: 0 0 0 3px var(--c-gold-glow) !important;
}

/* ══════════════════════════════════════════════════════════════════
   TAG / PILL — finestra, count badge, ecc
══════════════════════════════════════════════════════════════════ */
.arp-front .arp-tag,
.arp-front .asp-pill,
.arp-front .arp-pill {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--c-border);
    color: var(--c-muted);
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    padding: 0.35rem 0.8rem;
    border-radius: var(--r-pill);
    text-transform: uppercase;
}

/* Badge LIVE — verde pulsante */
.arp-front .arp-live-badge--on {
    background: rgba(52, 217, 122, 0.15);
    border-color: rgba(52, 217, 122, 0.4);
    color: #6df09a;
    box-shadow: 0 0 14px rgba(52, 217, 122, 0.2);
}

/* ══════════════════════════════════════════════════════════════════
   VITTORIE / PROFIT — colonna destra
══════════════════════════════════════════════════════════════════ */
.arp-front .arp-victories,
.arp-front .arp-wins,
.arp-front [class*="vittorie"] {
    background: var(--c-card);
    backdrop-filter: blur(18px) saturate(1.4);
    -webkit-backdrop-filter: blur(18px) saturate(1.4);
    border: 1px solid var(--c-border);
    border-radius: var(--r);
}

/* Total profit — evidenziato verde */
.arp-front .arp-total-profit,
.arp-front [id*="total-profit"],
.arp-front [class*="total-profit"] {
    color: var(--c-green-br) !important;
    font-weight: 700 !important;
    text-shadow: 0 0 18px rgba(52, 217, 122, 0.4);
}

/* Profit negativo → rosso */
.arp-front .arp-pnl--neg {
    color: var(--c-red) !important;
    text-shadow: 0 0 14px rgba(239, 77, 95, 0.3);
}
.arp-front .arp-pnl--pos {
    color: var(--c-green-br) !important;
    text-shadow: 0 0 14px rgba(52, 217, 122, 0.3);
}

/* Token AI Spin (jeton vittorie) — più puliti */
.arp-front .arp-win-chip,
.arp-front [class*="aispin-coin"] {
    transition: transform 0.18s ease, filter 0.18s ease;
}
.arp-front .arp-win-chip.is-active {
    filter: drop-shadow(0 0 12px var(--c-gold-glow));
    transform: scale(1.08);
}

/* ══════════════════════════════════════════════════════════════════
   FICHE OPERATIVE — grid 20 spin
══════════════════════════════════════════════════════════════════ */
.arp-front .arp-fiche-grid,
.arp-front .arp-op-chips,
.arp-front [class*="op-chip"],
.arp-front [id*="op-chip"] {
    gap: 8px;
}
.arp-front .arp-fiche-chip,
.arp-front .arp-op-chip {
    transition: all 0.2s ease;
    opacity: 0.35;
}
.arp-front .arp-fiche-chip.is-active,
.arp-front .arp-op-chip.is-active {
    opacity: 1;
    filter: drop-shadow(0 0 10px var(--c-gold-glow));
}

/* ══════════════════════════════════════════════════════════════════
   ULTIMI SPIN — riga chip scorrevole
══════════════════════════════════════════════════════════════════ */
.arp-front #arp-chip-row,
.arp-front .arp-spins-row {
    padding: 0.5rem 0;
    gap: 6px;
}

/* ══════════════════════════════════════════════════════════════════
   INSERIMENTO RAPIDO — pulsanti numeri
══════════════════════════════════════════════════════════════════ */
.arp-front .asp-quick-num,
.arp-front [class*="quick-num"] button,
.arp-front .arp-quick-btn {
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.arp-front .asp-quick-num:hover,
.arp-front .arp-quick-btn:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow:
        0 6px 16px rgba(0, 0, 0, 0.5),
        0 0 0 2px var(--c-border-glow);
}

/* ══════════════════════════════════════════════════════════════════
   ANIMAZIONI smooth — hit, miss, transizioni di stato
══════════════════════════════════════════════════════════════════ */
@keyframes asp-glass-pulse {
    0%, 100% { box-shadow: var(--sh-glass); }
    50%      { box-shadow: var(--sh-glass), 0 0 0 4px var(--c-border-hot); }
}
.arp-front .arp-pulse-hit {
    animation: asp-glass-pulse 1.4s ease-in-out infinite;
}

@keyframes asp-glass-flash-win {
    0%   { background: var(--c-card); }
    30%  { background: rgba(52, 217, 122, 0.25); }
    100% { background: var(--c-card); }
}
.arp-front .arp-flash-win {
    animation: asp-glass-flash-win 1.2s ease-out;
}

@keyframes asp-glass-flash-loss {
    0%   { background: var(--c-card); }
    30%  { background: rgba(239, 77, 95, 0.18); }
    100% { background: var(--c-card); }
}
.arp-front .arp-flash-loss {
    animation: asp-glass-flash-loss 1.2s ease-out;
}

/* ══════════════════════════════════════════════════════════════════
   RESPONSIVE — mobile-first feel
══════════════════════════════════════════════════════════════════ */
@media (max-width: 900px) {
    .arp-front {
        --r:    12px;
        --r-sm: 8px;
    }
    .arp-front .asp-hstat__val { font-size: 1.4rem; }
}

/* ══════════════════════════════════════════════════════════════════
   FALLBACK — browser senza backdrop-filter (vecchi Firefox)
══════════════════════════════════════════════════════════════════ */
@supports not (backdrop-filter: blur(10px)) {
    .arp-front .arp-card,
    .arp-front .asp-card,
    .arp-front .asp-panel,
    .arp-front #aco-panel,
    .arp-front .arp-opguide {
        background: rgba(20, 24, 40, 0.95);
    }
}

/* ══════════════════════════════════════════════════════════════════
   ALTRE PICCOLE CORREZIONI in linea col doc UX
══════════════════════════════════════════════════════════════════ */

/* "Total Profit" — evidenziatura forte */
.arp-front .asp-total-profit-card {
    background: linear-gradient(135deg,
        rgba(52, 217, 122, 0.08) 0%,
        rgba(20, 24, 40, 0.6) 100%);
    border-color: rgba(52, 217, 122, 0.25);
}

/* Header right — utente e badge live più leggibili */
.arp-front .arp-session-info {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--c-border);
    color: var(--c-text);
    font-weight: 500;
}

/* Scrollbar custom — sottile, glassy */
.arp-front ::-webkit-scrollbar { width: 8px; height: 8px; }
.arp-front ::-webkit-scrollbar-track { background: transparent; }
.arp-front ::-webkit-scrollbar-thumb {
    background: rgba(168, 188, 220, 0.18);
    border-radius: 4px;
}
.arp-front ::-webkit-scrollbar-thumb:hover {
    background: rgba(168, 188, 220, 0.32);
}

/* ══════════════════════════════════════════════════════════════════════════
   PATCH 1.0 — Banner Money Management Adattivo
   Tre stati visivi: normal (neutro), recovery_soft (gold warn), cooldown (red lock).
   Posizionato tra header e body 3-colonne dell'area operativa.
══════════════════════════════════════════════════════════════════════════ */
.arp-front .asp-mm-banner {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    flex-wrap: wrap;
    margin: 0 1rem 0.75rem;
    padding: 0.75rem 1.1rem;
    border-radius: 12px;
    background: rgba(20, 28, 44, 0.55);
    border: 1px solid rgba(120, 145, 200, 0.18);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: all 0.3s ease;
    font-size: 0.92rem;
}
.arp-front .asp-mm-banner--recovery_soft {
    background: linear-gradient(135deg, rgba(120, 75, 20, 0.32), rgba(50, 35, 15, 0.55));
    border-color: rgba(255, 180, 60, 0.35);
    box-shadow: inset 0 0 12px rgba(255, 180, 60, 0.08), 0 0 16px rgba(255, 180, 60, 0.12);
}
.arp-front .asp-mm-banner--cooldown {
    background: linear-gradient(135deg, rgba(120, 30, 30, 0.38), rgba(50, 15, 15, 0.58));
    border-color: rgba(255, 90, 90, 0.42);
    box-shadow: inset 0 0 12px rgba(255, 90, 90, 0.10), 0 0 16px rgba(255, 90, 90, 0.14);
}

.arp-front .asp-mm-banner__left {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.arp-front .asp-mm-banner__label {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: rgba(168, 188, 220, 0.7);
}
.arp-front .asp-mm-banner__status {
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: var(--c-gold-light, #ffc857);
}
.arp-front .asp-mm-banner--recovery_soft .asp-mm-banner__status { color: #ffb43c; }
.arp-front .asp-mm-banner--cooldown      .asp-mm-banner__status { color: #ff6b6b; }

.arp-front .asp-mm-banner__center {
    display: flex;
    gap: 1.25rem;
    flex-wrap: wrap;
    flex: 1;
}
.arp-front .asp-mm-banner__metric {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}
.arp-front .asp-mm-banner__metric-k {
    font-size: 0.66rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(168, 188, 220, 0.55);
}
.arp-front .asp-mm-banner__metric-v {
    font-size: 1rem;
    font-weight: 700;
    color: #e8eef8;
    font-variant-numeric: tabular-nums;
}
.arp-front .asp-mm-banner__metric-v--neg { color: #ff7878; }
.arp-front .asp-mm-banner__metric-v--pos { color: #6cdf8e; }

.arp-front .asp-mm-banner__hint {
    font-size: 0.78rem;
    color: rgba(255, 220, 160, 0.85);
    font-style: italic;
    margin-left: auto;
}
.arp-front .asp-mm-banner--cooldown .asp-mm-banner__hint {
    color: rgba(255, 170, 170, 0.85);
}

/* Mobile: stack verticale */
@media (max-width: 720px) {
    .arp-front .asp-mm-banner {
        flex-direction: column;
        align-items: stretch;
        gap: 0.6rem;
    }
    .arp-front .asp-mm-banner__hint {
        margin-left: 0;
    }
}

/* ══════════════════════════════════════════════════════════════════════════
   PATCH 1.3 — Font/leggibilità dashboard
   Su richiesta documento Roby:
   - Aumentare font dashboard
   - Aumentare valori €
   - Aumentare step
   - Migliorare leggibilità pannelli centrali (fiche, progressione, totale)
   Conservativo: incrementi del 10-15% solo dove serve, evitando overflow.
══════════════════════════════════════════════════════════════════════════ */

/* Valori € nei KV puntata (Fiche, Tot.puntata, Totale progressivo, Risultato) */
.arp-front .asp-p3-v {
    font-size: 1.18rem !important;   /* era ~1rem */
    font-weight: 700;
    letter-spacing: 0.01em;
}
.arp-front .asp-p3-v--big {
    font-size: 1.40rem !important;   /* Tot. puntata = più grande di tutti */
}
.arp-front .asp-p3-v--gold {
    color: var(--c-gold-light, #ffc857);
    text-shadow: 0 0 8px rgba(255, 200, 87, 0.18);
}
.arp-front .asp-p3-k {
    font-size: 0.72rem !important;   /* le label sopra, leggermente più leggibili */
    font-weight: 600;
    letter-spacing: 0.06em;
}

/* Totale (P&L giornaliero) — leggibilità migliore */
.arp-front .arp-opguide__netto-val {
    font-size: 1.55rem !important;
    font-weight: 700;
    letter-spacing: 0.01em;
}
.arp-front .arp-opguide__netto-lbl {
    font-size: 0.72rem;
    letter-spacing: 0.10em;
}

/* Step counter in header subtitle "SESSIONE LIVE — SPIN X/Y" */
.arp-front .arp-opguide__subtitle {
    font-size: 1.08rem;
}
.arp-front #aco-step-count {
    font-size: 1.18rem;
    font-weight: 700;
}

/* Track-label "SPIN x/20 — FICHE €0,XX" */
.arp-front .aco__track-label {
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.05em;
}

/* "ULTIMO USCITO" / "GIOCA" — leggibilità colonna sinistra */
.arp-front .arp-opguide__last-lbl,
.arp-front .arp-opguide__play-title {
    font-size: 0.80rem;
    letter-spacing: 0.08em;
}

/* ══════════════════════════════════════════════════════════════════════════
   PATCH 1.6 — Nuovo KV "Guadagno della Partita" (5° in colonna centrale)
   Verde se positivo, rosso se negativo. Stessa logica visiva del Totale.
══════════════════════════════════════════════════════════════════════════ */
.arp-front .asp-p3-v--pos {
    color: #6cdf8e !important;
}
.arp-front .asp-p3-v--neg {
    color: #ff7878 !important;
}
