@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

/* DESIGN SYSTEM & COLORI - 2DIPICCHE CLUB (FONDO ORO, NERO, AZZURRO E BIANCO) */
:root {
    /* Palette Dorata per Sfondo */
    --gold-light: #f3e098;
    --gold-main: #d4af37;
    --gold-dark: #aa841e;
    
    /* Palette App: Nero, Azzurro, Bianco */
    --bg-app: #07090e; /* Nero molto profondo */
    --bg-glass: rgba(10, 14, 23, 0.88); /* Vetro Nero */
    --border-glass: rgba(255, 255, 255, 0.08);
    --border-glass-glow: rgba(0, 168, 255, 0.25); /* Glow Azzurro */
    
    --primary: #00a8ff; /* Azzurro Elettrico */
    --primary-glow: rgba(0, 168, 255, 0.45);
    --primary-dark: #007cc0;
    
    --accent: #d4af37; /* Dettagli Oro */
    
    --text-main: #ffffff; /* Bianco */
    --text-muted: #8ea1b4; /* Azzurro Grigio Muted */
    --text-dark: #07090e;
    
    --success: #00b259;
    --error: #ff3b30;
    --warning: #ffcc00;
    
    --shadow-premium: 0 12px 40px rgba(0, 0, 0, 0.6);
    --shadow-glow: 0 0 15px var(--primary-glow);
    
    --font: 'Outfit', sans-serif;
    --safe-area-bottom: env(safe-area-inset-bottom, 0px);
}

/* RESET E STILI DI BASE */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: var(--font);
    background-color: var(--gold-dark);
    /* Sfondo Oro Satinato con riflesso metallico */
    background-image: 
        linear-gradient(135deg, rgba(255,255,255,0.15) 0%, transparent 50%, rgba(0,0,0,0.15) 100%),
        radial-gradient(circle at 50% 30%, var(--gold-light) 0%, var(--gold-main) 50%, var(--gold-dark) 100%);
    background-attachment: fixed;
    color: var(--text-main);
    overflow-x: hidden;
    line-height: 1.5;
    display: flex;
    justify-content: center;
}

/* CONTAINER MOBILE-FIRST */
.app-container {
    width: 100%;
    max-width: 480px;
    min-height: 100vh;
    background-color: var(--bg-app);
    background-image: 
        linear-gradient(rgba(7, 9, 14, 0.40), rgba(7, 9, 14, 0.40)),
        url('../assets/bg_football_stadium.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    border-left: 1px solid var(--border-glass);
    border-right: 1px solid var(--border-glass);
    display: flex;
    flex-direction: column;
    position: relative;
    padding-bottom: calc(30px + var(--safe-area-bottom));
    box-shadow: 0 0 60px rgba(0, 0, 0, 0.9);
}

/* HEADER CON LOGO CENTRATO E INGRANDITO */
.app-header {
    background-color: var(--bg-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-glass);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 12px 20px;
    display: grid;
    grid-template-columns: 40px 1fr 40px; /* Griglia per centratura assoluta */
    align-items: center;
}

.app-header #hamburger-menu-btn {
    justify-self: start;
}

.app-header #header-notif-btn {
    justify-self: end;
}

.logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    cursor: pointer;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.logo-container:active {
    transform: scale(0.96);
    opacity: 0.8;
}

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

/* Stile Brand START CLUB con Stella al posto della A */
.brand-start-text {
    font-family: 'Outfit', sans-serif;
    font-weight: 900;
    background: linear-gradient(180deg, #ffffff 0%, #cbd5e1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 1px;
    font-size: 38px; /* Ingrandito ulteriormente da 32px */
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    filter: drop-shadow(0 2px 5px rgba(0,0,0,0.6));
    user-select: none;
}

.brand-start-star-svg {
    width: 32px; /* Ingrandito ulteriormente da 26px */
    height: 32px; /* Ingrandito ulteriormente da 26px */
    color: #f5a623; /* Stella gialla coordinata con la scritta club */
    margin: 0 -1px 2px -1px;
    display: inline-block;
    vertical-align: middle;
    animation: starGlowPulse 3s infinite ease-in-out;
}

@keyframes starGlowPulse {
    0%, 100% {
        filter: drop-shadow(0 0 5px rgba(245, 166, 35, 0.6));
        transform: scale(1);
    }
    50% {
        filter: drop-shadow(0 0 13px rgba(245, 166, 35, 0.95));
        transform: scale(1.05);
    }
}

.logo-club-text-header {
    position: absolute;
    right: -32px; /* Adattato per la nuova dimensione */
    bottom: -10px; /* Adattato per la nuova dimensione */
    font-family: 'Outfit', sans-serif;
    font-style: italic;
    font-weight: 900;
    background: linear-gradient(135deg, #ffe066 0%, #f5a623 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.8));
    transform: rotate(-10deg);
    z-index: 5;
    font-size: 26px; /* Ingrandito da 22px */
    letter-spacing: 0.5px;
    pointer-events: none;
}

/* Logo della Sidebar */
.sidebar-header .brand-start-text {
    font-size: 32px; /* Ingrandito da 28px */
}

.sidebar-header .brand-start-star-svg {
    width: 26px; /* Ingrandito da 23px */
    height: 26px; /* Ingrandito da 23px */
    margin: 0 -1px 1px -1px;
}

.logo-club-text {
    position: absolute;
    right: -28px;
    bottom: -10px;
    font-family: 'Outfit', sans-serif;
    font-style: italic;
    font-weight: 900;
    background: linear-gradient(135deg, #ffe066 0%, #f5a623 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.8));
    transform: rotate(-10deg);
    z-index: 5;
    font-size: 22px; /* Ingrandito da 19px */
    letter-spacing: 0.5px;
    pointer-events: none;
}

.header-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.icon-btn {
    background: none;
    border: none;
    color: var(--text-main);
    font-size: 20px;
    cursor: pointer;
    position: relative;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-glass);
    transition: all 0.3s ease;
}

.icon-btn:active {
    transform: scale(0.9);
    background-color: rgba(255, 255, 255, 0.1);
}

.badge {
    position: absolute;
    top: -2px;
    right: -2px;
    background-color: var(--primary); /* Badge Azzurro */
    color: white;
    font-size: 10px;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    border: 2px solid var(--bg-app);
}

/* SIDEBAR HAMBURGER MENU */
.sidebar-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 150;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.sidebar-menu-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

.sidebar-drawer {
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;
    height: 100vh;
    background-color: rgba(7, 9, 14, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-right: 1px solid var(--border-glass-glow);
    z-index: 160;
    padding: 30px 24px;
    display: flex;
    flex-direction: column;
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.1, 0.9, 0.2, 1);
    box-shadow: 10px 0 40px rgba(0, 0, 0, 0.8);
}

.sidebar-drawer.open {
    transform: translateX(0);
}

.close-sidebar-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 28px;
    cursor: pointer;
}

.sidebar-header {
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-glass);
}

.sidebar-logo-icon {
    font-size: 36px;
    display: block;
    margin-bottom: 8px;
    filter: drop-shadow(0 0 8px var(--primary-glow));
    color: var(--primary);
}

.sidebar-logo-text {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: 1px;
    color: var(--text-main);
}

.sidebar-logo-sub {
    font-size: 12px;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
}

.sidebar-nav-item {
    background: none;
    border: none;
    color: var(--text-muted);
    padding: 12px 16px;
    border-radius: 10px;
    text-align: left;
    font-family: var(--font);
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.2s ease;
}

.sidebar-nav-item .nav-icon {
    font-size: 18px;
}

.sidebar-nav-item:hover, .sidebar-nav-item.active {
    color: var(--text-main);
    background-color: rgba(255, 255, 255, 0.03);
    border-left: 3px solid var(--primary);
    padding-left: 13px;
}

.sidebar-nav-item.active {
    color: var(--primary);
    background-color: rgba(0, 168, 255, 0.06);
    border-left-color: var(--primary);
}

.sidebar-footer {
    padding-top: 20px;
    border-top: 1px solid var(--border-glass);
    color: var(--text-muted);
    font-size: 11px;
}

/* CONTENUTO PRINCIPALE (VIEWS) */
.app-content {
    flex: 1;
    padding: 20px;
}

.view-section {
    display: none;
}

.view-section.active {
    display: block;
    animation: slideInUp 0.38s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

/* TITOLI DI SEZIONE */
.section-title {
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
    color: var(--text-main);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 35px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 2px;
}

/* CARDS GLASSMORPHISM */
.card-premium {
    background: var(--bg-glass);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-premium);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.card-premium::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.02) 0%, transparent 100%);
    pointer-events: none;
}

.card-premium:active {
    transform: scale(0.99);
}

/* 3 BOX REGISTRAZIONE ORIZZONTALI (QUADRATI COMPATTI) */
.affiliations-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 colonne uguali affiancate */
    gap: 10px;
    margin-bottom: 30px;
}

.affiliate-square-card {
    background: linear-gradient(135deg, rgba(10, 14, 23, 0.95) 0%, rgba(18, 28, 43, 0.8) 100%);
    border: 1px solid var(--border-glass);
    border-radius: 12px;
    padding: 12px 6px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    aspect-ratio: 1 / 1.15; /* Layout quasi quadrato */
    box-shadow: var(--shadow-premium);
    text-decoration: none;
    transition: all 0.3s ease;
}

.affiliate-square-card:active {
    transform: scale(0.95);
    border-color: var(--primary);
}

.affiliate-square-logo {
    font-size: 24px;
    margin-bottom: 5px;
    filter: drop-shadow(0 0 5px var(--primary-glow));
}

.affiliate-square-title {
    font-size: 11px;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.affiliate-square-btn {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    font-size: 8.5px;
    font-weight: 800;
    padding: 4px 6px;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: auto;
}

/* PROMOZIONI BANNER */
.promo-carousel {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.promo-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    min-height: 190px;
    display: flex;
    align-items: flex-end;
    box-shadow: var(--shadow-premium);
    border: 1px solid var(--border-glass);
}

.promo-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.35);
    transition: transform 0.5s ease;
}

.promo-card:hover .promo-image {
    transform: scale(1.03);
}

.promo-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    box-shadow: var(--shadow-glow);
}

.promo-content {
    position: relative;
    z-index: 2;
    padding: 20px;
    width: 100%;
    background: linear-gradient(to top, rgba(7,9,14,0.98) 0%, rgba(7,9,14,0.5) 70%, transparent 100%);
}

.promo-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--text-main);
}

.promo-period {
    font-size: 11px;
    color: var(--primary);
    margin-bottom: 8px;
    font-weight: 600;
}

.promo-desc {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.45;
}

/* COMPONENTE PUNTI VENDITA */
.shop-card {
    padding: 0;
    overflow: hidden;
}

.shop-img-container {
    height: 150px;
    width: 100%;
    position: relative;
}

.shop-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.shop-concessionario {
    position: absolute;
    bottom: 12px;
    left: 12px;
    background-color: rgba(7, 9, 14, 0.9);
    border: 1px solid var(--border-glass-glow);
    color: var(--primary);
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
}

.shop-body {
    padding: 20px;
}

.shop-name {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-main);
}

.shop-info-row {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin-bottom: 8px;
    font-size: 13px;
    color: var(--text-muted);
}

.shop-icon {
    color: var(--primary);
    margin-top: 2px;
    width: 16px;
    text-align: center;
}

.shop-services {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 15px;
}

.service-badge {
    font-size: 10px;
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-glass);
    padding: 3px 8px;
    border-radius: 6px;
    color: var(--text-main);
}

.btn-info-rules {
    background: rgba(0, 168, 255, 0.08);
    border: 1px solid rgba(0, 168, 255, 0.4);
    color: var(--primary);
    font-size: 11px;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: all 0.2s ease;
    outline: none;
}

.btn-info-rules:hover {
    background: rgba(0, 168, 255, 0.2);
    border-color: var(--primary);
    box-shadow: 0 0 8px rgba(0, 168, 255, 0.25);
}

.btn-primary {
    display: block;
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border: none;
    border-radius: 10px;
    color: white;
    font-weight: 700;
    font-size: 14px;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    box-shadow: var(--shadow-glow);
    transition: all 0.3s ease;
    margin-top: 15px;
}

.btn-primary:active {
    transform: scale(0.98);
    opacity: 0.9;
}

/* POP-UP SLOT MACHINE (AL POSTO DELLA RUOTA) */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.88);
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.slot-modal {
    width: 90%;
    max-width: 400px;
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--primary-glow);
    border-radius: 24px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 168, 255, 0.3);
    transform: scale(0.8);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
}

.modal-overlay.active .slot-modal {
    transform: scale(1);
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border-glass);
    color: var(--text-muted);
    font-size: 16px;
    cursor: pointer;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-modal:active {
    transform: scale(0.9);
}

.slot-title {
    font-size: 22px;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.slot-subtitle {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 20px;
}

/* STRUTTURA SLOT MACHINE: DISPLAY + LEVA */
.slot-machine-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin: 20px auto;
    width: 100%;
    max-width: 320px;
}

.slot-machine-display {
    flex: 1;
    height: 120px; /* Mostra un simbolo centrale e intravede sopra/sotto */
    background: #000000;
    border: 3px solid var(--accent);
    border-radius: 16px;
    display: flex;
    position: relative;
    overflow: hidden;
    padding: 8px;
    gap: 6px;
    box-shadow: inset 0 0 20px rgba(0,0,0,0.9), 0 0 15px var(--primary-glow);
}

/* Linea di vincita centrale rossa luminosa */
.slot-machine-line {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 2px;
    background: rgba(255, 59, 48, 0.85);
    z-index: 10;
    transform: translateY(-50%);
    box-shadow: 0 0 8px rgba(255, 59, 48, 0.9);
    pointer-events: none;
}

.reel-container {
    flex: 1;
    height: 100%;
    background: #090b10;
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 8px;
    position: relative;
    overflow: hidden;
}

.reel-strip {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    transform: translateY(0px);
    transition: transform 0.1s linear;
}

/* Il singolo quadratino del simbolo */
.slot-symbol {
    height: 98px; /* Altezza precisa del simbolo */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 42px;
    line-height: 98px;
    user-select: none;
    transition: filter 0.1s ease;
}

/* Sfocatura del movimento (Motion Blur) */
.slot-symbol.blur {
    filter: blur(4px) grayscale(0.2);
}

/* LEVA DELLA SLOT MACHINE */
.slot-lever-container {
    position: relative;
    width: 40px;
    height: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
}

.slot-lever-base {
    width: 24px;
    height: 24px;
    background: #222;
    border: 2.5px solid #555;
    border-radius: 50%;
    z-index: 2;
    box-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.slot-lever {
    position: absolute;
    bottom: 12px;
    height: 80px;
    width: 6px;
    transform-origin: bottom center;
    transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    transform: rotate(0deg);
    cursor: pointer;
    z-index: 3;
}

/* Animazione leva tirata */
.slot-lever.pulled {
    transform: rotate(70deg);
}

.slot-lever-shaft {
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, #bbbbbb 0%, #ffffff 40%, #888888 100%);
    border-radius: 3px;
    box-shadow: inset 1px 0 2px rgba(255,255,255,0.4);
}

.slot-lever-knob {
    position: absolute;
    top: -16px;
    left: 50%;
    transform: translateX(-50%);
    width: 22px;
    height: 22px;
    background: radial-gradient(circle at 30% 30%, #ff3b30 0%, #a70000 80%, #600000 100%);
    border-radius: 50%;
    box-shadow: 0 4px 6px rgba(0,0,0,0.6), inset 1px 1px 3px rgba(255,255,255,0.5);
    transition: background 0.2s ease;
}

.slot-btn {
    width: 100%;
    max-width: 200px;
    margin: 10px auto 0;
}

/* RISULTATO VINCITA */
.win-animation {
    display: none;
    margin-top: 15px;
    animation: popIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes popIn {
    0% { transform: scale(0.5); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

.win-emoji {
    font-size: 48px;
    margin-bottom: 10px;
    animation: bounce 1s infinite alternate;
}

@keyframes bounce {
    0% { transform: translateY(0); }
    100% { transform: translateY(-10px); }
}

.win-text-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--success);
    margin-bottom: 5px;
}

.win-text-detail {
    font-size: 14px;
    color: var(--text-main);
    background: rgba(255,255,255,0.05);
    padding: 10px 15px;
    border-radius: 8px;
    border: 1px solid var(--border-glass);
}

.lose-text-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-muted);
    margin-bottom: 5px;
}

/* TOAST NOTIFICATION (Gestita via toast-container in fondo a v47) */

.toast {
    background: rgba(10, 14, 23, 0.98);
    border-left: 4px solid var(--primary);
    border-top: 1px solid var(--border-glass-glow);
    border-bottom: 1px solid var(--border-glass-glow);
    border-right: 1px solid var(--border-glass-glow);
    padding: 15px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.7);
    display: flex;
    gap: 12px;
    align-items: flex-start;
    transform: translateY(-20px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    pointer-events: auto;
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
}

.toast-icon {
    font-size: 20px;
    margin-top: 1px;
}

.toast-content {
    flex: 1;
}

.toast-title {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 3px;
}

.toast-body {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.3;
}

.toast-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 14px;
    cursor: pointer;
}

/* NOTIFICHE SECTION */
.notification-card {
    padding: 15px;
    display: flex;
    gap: 15px;
    align-items: flex-start;
    border-left: 3px solid var(--border-glass-glow);
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.notification-card:hover {
    background-color: rgba(255, 255, 255, 0.02);
}

.notif-delete-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 16px;
    padding: 6px;
    cursor: pointer;
    transition: color 0.2s ease, transform 0.1s ease;
    align-self: center;
    z-index: 10;
}

.notif-delete-btn:hover {
    color: #ff3b30;
    transform: scale(1.15);
}

.notification-card.unread {
    border-left-color: var(--primary);
    background-color: rgba(0, 168, 255, 0.03);
}

.notification-card.unread .notification-title {
    font-weight: 700;
}

.notification-icon {
    font-size: 20px;
    padding: 8px;
    background-color: rgba(255,255,255,0.02);
    border-radius: 50%;
    border: 1px solid var(--border-glass);
}

.notification-info {
    flex: 1;
}

.notification-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
}

.notification-body {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.4;
    margin-bottom: 6px;
}

.notification-time {
    font-size: 10px;
    color: var(--text-muted);
}

/* BANNER INSTALLAZIONE PWA INTELLIGENTE */
.pwa-install-banner {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 440px;
    background: rgba(10, 14, 23, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-glass-glow);
    border-radius: 16px;
    padding: 15px;
    z-index: 250;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8), 0 0 15px rgba(0, 168, 255, 0.1);
    animation: slideUp 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes slideUp {
    0% { transform: translate(-50%, 100px); opacity: 0; }
    100% { transform: translate(-50%, 0); opacity: 1; }
}

.pwa-install-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.pwa-install-logo-icon {
    font-size: 28px;
    color: var(--primary);
    filter: drop-shadow(0 0 5px var(--primary-glow));
}

.pwa-install-text {
    flex: 1;
}

.pwa-install-title {
    font-size: 13px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 2px;
}

.pwa-install-desc {
    font-size: 11px;
    color: var(--text-muted);
    line-height: 1.35;
}

.pwa-install-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 20px;
    cursor: pointer;
    padding: 0 5px;
}

.pwa-install-close:active {
    transform: scale(0.9);
}

/* BOX DI BENVENUTO IN HOME */
.user-welcome-title {
    font-size: 25px;
    font-weight: 800;
    margin-bottom: 25px;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 10px;
    letter-spacing: -0.5px;
    line-height: 1.2;
}

/* BANNER SCORCIATOIE HOME */
.home-shortcuts-container {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 10px;
    margin-bottom: 30px;
}

.shortcut-banner-card {
    background: linear-gradient(135deg, rgba(138, 43, 226, 0.16), rgba(0, 168, 255, 0.16));
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.35);
}

.shortcut-banner-card:hover {
    border-color: var(--primary-glow);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(138, 43, 226, 0.25);
    background: linear-gradient(135deg, rgba(138, 43, 226, 0.22), rgba(0, 168, 255, 0.22));
}

.shortcut-banner-card:active {
    transform: translateY(0);
}

/* Layout Griglia 6 Tasti Quadrati in Home Page */
/* Layout Griglia 2x2 con Accenti Neon in Home Page */
.home-shortcuts-grid-2x2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-top: 20px;
    margin-bottom: 20px;
}

.shortcut-grid-card {
    height: 95px;
    background: linear-gradient(180deg, #1f1f24 0%, #121214 40%, #08080a 100%);
    border: none;
    border-radius: 8px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    cursor: pointer;
    transition: all 0.22s ease-in-out;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.7);
    position: relative;
    overflow: hidden;
}

/* Riflesso lucido in alto */
.shortcut-grid-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.07) 0%, rgba(255, 255, 255, 0) 100%);
    pointer-events: none;
    z-index: 1;
}

/* Linea neon inferiore */
.shortcut-grid-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    z-index: 2;
    transition: background-color 0.2s ease;
}

.shortcut-grid-card.accent-top11::after,
.shortcut-grid-card.accent-bomber::after {
    background: #00b259;
}

.shortcut-grid-card.accent-battilasala::after {
    background: var(--accent);
}

.shortcut-grid-card.accent-survivor::after {
    background: #a855f7;
}

.shortcut-grid-card:hover {
    transform: translateY(-3px);
    background: linear-gradient(180deg, #2a2a30 0%, #18181b 40%, #0d0d0f 100%);
}

.shortcut-grid-card.accent-top11:hover,
.shortcut-grid-card.accent-bomber:hover {
    box-shadow: 0 8px 24px rgba(0, 178, 89, 0.25);
}

.shortcut-grid-card.accent-battilasala:hover {
    box-shadow: 0 8px 24px rgba(255, 215, 0, 0.25);
}

.shortcut-grid-card.accent-survivor:hover {
    box-shadow: 0 8px 24px rgba(168, 85, 247, 0.25);
}

.shortcut-grid-card:active {
    transform: scale(0.96) translateY(0);
}

.shortcut-grid-card.accent-top11:active,
.shortcut-grid-card.accent-bomber:active {
    box-shadow: 0 4px 12px rgba(0, 178, 89, 0.45);
}

.shortcut-grid-card.accent-battilasala:active {
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.45);
}

.shortcut-grid-card.accent-survivor:active {
    box-shadow: 0 4px 12px rgba(168, 85, 247, 0.45);
}

.shortcut-grid-title {
    font-size: 14.5px;
    font-weight: 900;
    color: #ffffff;
    text-transform: uppercase;
    z-index: 2;
    line-height: 1.25;
    letter-spacing: 0.5px;
}

.shortcut-grid-action {
    font-size: 10px;
    font-weight: 700;
    color: var(--text-muted);
    margin-top: 6px;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    z-index: 2;
    transition: color 0.2s ease;
}

.shortcut-grid-card.accent-top11:hover .shortcut-grid-action,
.shortcut-grid-card.accent-bomber:hover .shortcut-grid-action {
    color: #00b259;
}

.shortcut-grid-card.accent-battilasala:hover .shortcut-grid-action {
    color: var(--accent);
}

.shortcut-grid-card.accent-survivor:hover .shortcut-grid-action {
    color: #a855f7;
}

#home-vlt-code-badge {
    color: var(--accent);
}

#home-betting-code-badge {
    color: #00b259;
}


/* Pulsante orizzontale unico per Apri Conto Gioco */
.shortcut-banner-full {
    background: linear-gradient(135deg, rgba(0, 178, 89, 0.26), rgba(0, 168, 255, 0.26)); /* Trasparenza ridotta di circa 10% */
    border: 2.5px solid var(--accent); /* Contorno giallo anche qui per coordinamento */
    border-radius: 16px;
    padding: 16px 20px;
    display: flex;
    justify-content: center; /* Scritta centrata */
    align-items: center;
    text-align: center;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.35);
    margin-bottom: 30px;
}

.shortcut-banner-full:hover {
    border-color: #00b259;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 178, 89, 0.25);
}

.shortcut-content {
    display: flex;
    align-items: center;
    gap: 16px;
    text-align: left;
}

.shortcut-icon {
    font-size: 26px;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

.shortcut-title {
    font-size: 16.5px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 2px;
}

.shortcut-title-large {
    font-size: 18.5px;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: 0.3px;
    line-height: 1.25;
}

.shortcut-desc {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.35;
}

.shortcut-arrow {
    font-size: 16px;
    color: var(--primary);
    transition: transform 0.3s ease;
}

.shortcut-banner-card:hover .shortcut-arrow {
    transform: translateX(4px);
    color: #ffffff;
}

@keyframes wave {
    0% { transform: rotate( 0.0deg) }
   10% { transform: rotate(14.0deg) }
   20% { transform: rotate(-8.0deg) }
   30% { transform: rotate(14.0deg) }
   40% { transform: rotate(-4.0deg) }
   50% { transform: rotate(10.0deg) }
   60% { transform: rotate( 0.0deg) }
  100% { transform: rotate( 0.0deg) }
}
.welcome-hand {
    animation: wave 2.5s infinite;
    transform-origin: 70% 70%;
    display: inline-block;
}

/* OVERLAY E CARD DI REGISTRAZIONE INIZIALE */
.registration-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(7, 9, 14, 0.98);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    z-index: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-y: auto;
    padding: 20px;
}

.registration-card {
    width: 100%;
    max-width: 400px;
    background: rgba(10, 14, 23, 0.85);
    border: 1px solid var(--border-glass-glow);
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.8);
    text-align: center;
    margin: auto;
}

.registration-title {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 5px;
    margin-top: 10px;
}

.registration-subtitle {
    font-size: 15px;
    color: var(--text-muted);
    margin-bottom: 20px;
    line-height: 1.4;
}

.form-group-reg {
    margin-bottom: 16px;
    text-align: left;
}

.form-label-reg {
    display: block;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 6px;
    letter-spacing: 0.5px;
}

.form-control-reg {
    width: 100%;
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-glass);
    border-radius: 8px;
    color: #fff;
    font-family: var(--font);
    font-size: 16px;
    transition: all 0.3s ease;
}

.form-control-reg:focus {
    border-color: var(--primary);
    outline: none;
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 0 8px rgba(0, 168, 255, 0.15);
}

.privacy-checkbox-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-top: 15px;
    margin-bottom: 15px;
    text-align: left;
    cursor: pointer;
}

.privacy-checkbox-wrapper input[type="checkbox"] {
    margin-top: 3px;
    cursor: pointer;
}

.privacy-label-reg {
    font-size: 11px;
    color: var(--text-muted);
    line-height: 1.35;
    cursor: pointer;
    user-select: none;
}

/* GIOCO TOP 11 - CAMPO DA CALCIO ED ELEMENTI DI SELEZIONE */
.soccer-field-container {
    width: 100%;
    aspect-ratio: 1 / 1.25;
    background: #0d2814;
    border: 3px solid var(--border-glass);
    border-radius: 16px;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-premium), inset 0 0 30px rgba(0,0,0,0.8);
    margin-bottom: 20px;
}

.soccer-field {
    height: 100%;
    width: 100%;
    background-image: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.45)), url('../assets/bg_top11_field.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    padding: 15px 5px;
    position: relative;
}

/* Linee fittizie rimosse per visibilità dello sfondo 3D reale */
.midfield-line {
    display: none;
}

.soccer-field::after {
    display: none;
}

/* Area di rigore e porta fittizia rimosse per visibilità dello sfondo 3D reale */
.soccer-field::before {
    display: none;
}

.field-row {
    display: flex;
    justify-content: center;
    gap: 18px;
    width: 100%;
    z-index: 5;
}

.field-player-position {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 82px;
}

.field-player-position:active {
    transform: scale(0.92);
}

.player-icon-add {
    width: 51px;
    height: 51px;
    background: rgba(10, 14, 23, 0.9);
    border: 3px dashed rgba(0, 168, 255, 0.4);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: var(--primary);
    margin-bottom: 6px;
    box-shadow: 0 6px 10px rgba(0,0,0,0.55);
    transition: all 0.25s ease;
}

/* Quando la maglia è occupata (Calciatore scelto) */
.field-player-position.occupied .player-icon-add {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border: 3px solid #ffffff;
    border-style: solid;
    color: #ffffff;
    font-size: 15px;
    font-weight: 800;
    box-shadow: 0 6px 14px rgba(0, 168, 255, 0.5);
}

/* Selezionato per la compilazione corrente */
.field-player-position.active-selection .player-icon-add {
    border-color: var(--accent);
    background: rgba(212, 175, 55, 0.2);
    box-shadow: 0 0 10px var(--accent);
    animation: pulseGlow 1.5s infinite alternate;
}

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

.player-name-label {
    font-size: 17px; /* Ridotto del 15% rispetto a 20px */
    font-weight: 700;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 2px 4px #000000;
    text-align: center;
    max-width: 80px; /* Ridotto per evitare sovrapposizioni orizzontali */
    white-space: normal; /* Permette l'andata a capo su più righe */
    word-wrap: break-word;
    line-height: 1.1;
}

.field-player-position.occupied .player-name-label {
    font-size: 19.5px; /* Ridotto del 15% rispetto a 23px */
    font-weight: 900;
    color: #ffffff;
    letter-spacing: -0.2px;
}

/* STATO COMPILAZIONE PROGRESS */
.selection-status-box {
    background: rgba(10, 14, 23, 0.95);
    border: 1px solid var(--border-glass-glow);
}

.selection-progress-bar-container {
    width: 100%;
    height: 6px;
    background: rgba(255,255,255,0.05);
    border-radius: 3px;
    overflow: hidden;
}

.selection-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--success));
    border-radius: 3px;
    transition: width 0.4s ease;
}

/* ACCORDION PARTITE & ROSE */
.accordion-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.accordion-header {
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    border-radius: 12px;
    padding: 12px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.accordion-header:active {
    transform: scale(0.99);
}

.accordion-header-teams {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14.5px;
    font-weight: 800;
}

.accordion-header-info {
    font-size: 11px;
    color: var(--text-muted);
}

.accordion-content {
    display: none;
    padding: 12px;
    background: rgba(7,9,14,0.4);
    border-left: 1px solid var(--border-glass);
    border-right: 1px solid var(--border-glass);
    border-bottom: 1px solid var(--border-glass);
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
    margin-top: -8px;
    animation: fadeIn 0.3s ease forwards;
}

.accordion-header.active {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    border-color: var(--primary-glow);
}

.accordion-header.active + .accordion-content {
    display: block;
}

/* TAB RUOLI DENTRO ACCORDION */
.accordion-roles-tabs {
    display: flex;
    gap: 6px;
    margin-bottom: 10px;
    border-bottom: 1px solid var(--border-glass);
    padding-bottom: 8px;
}

.role-tab {
    padding: 4px 10px;
    font-size: 11.5px; /* Aumentato del 5% */
    font-weight: 700;
    border: 1px solid var(--border-glass);
    border-radius: 6px;
    background: none;
    color: var(--text-muted);
    cursor: pointer;
    font-family: var(--font);
}

.role-tab.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* LISTA CALCIATORI SELEZIONABILI */
.players-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    max-height: 220px;
    overflow-y: auto;
    padding-right: 4px;
}

/* Scrollbar personalizzata per lista giocatori */
.players-list::-webkit-scrollbar {
    width: 4px;
}
.players-list::-webkit-scrollbar-thumb {
    background: var(--border-glass);
    border-radius: 2px;
}

.player-selection-row {
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--border-glass);
    border-radius: 8px;
    padding: 8px 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.player-selection-row:active {
    transform: scale(0.96);
}

.player-selection-row.selected {
    border-color: var(--primary);
    background: rgba(0, 168, 255, 0.08);
}

.player-selection-row.disabled {
    opacity: 0.35;
    cursor: not-allowed;
    pointer-events: none;
}

.player-sel-name {
    font-size: 14.2px; /* Aumentato del 5% */
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 140px;
    color: #fff;
}

.player-sel-team {
    font-size: 10.5px; /* Aumentato del 5% */
    color: var(--text-muted);
}

/* GRAFICA CALENDARI SPORTIVI EUROPEI */
.calendar-match-card {
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    border-radius: 12px;
    padding: 12px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    box-shadow: var(--shadow-premium);
    transition: all 0.2s ease;
}

.calendar-match-card:hover {
    border-color: var(--primary-glow);
    transform: translateY(-1px);
}

.calendar-match-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1.2;
}

.calendar-match-time {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 500;
}

.calendar-match-status-badge {
    font-size: 9px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    text-transform: uppercase;
    width: fit-content;
}

.calendar-match-status-badge.ft {
    background: rgba(0, 204, 136, 0.1);
    color: var(--success);
}

.calendar-match-status-badge.ns {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
}

.calendar-match-status-badge.live {
    background: rgba(255, 59, 48, 0.15);
    color: var(--error);
    animation: flashLive 1s infinite alternate;
}

@keyframes flashLive {
    0% { opacity: 0.6; }
    100% { opacity: 1; }
}

.calendar-match-teams-wrapper {
    flex: 2;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.calendar-match-team-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.calendar-match-team-name {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12.5px;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 140px;
}

.calendar-match-team-logo {
    width: 18px;
    height: 18px;
    object-fit: contain;
}

.calendar-match-team-score {
    font-size: 14px;
    font-weight: 800;
    color: var(--primary);
    width: 25px;
    text-align: right;
}.toast-container {
    position: fixed !important; /* Rispetto allo schermo intero dell'iPhone */
    top: 75px !important; /* Sotto l'header fisso */
    left: 15px !important;
    right: 15px !important;
    width: calc(100% - 30px) !important;
    transform: none !important; /* Forza il corretto allineamento orizzontale */
    box-sizing: border-box !important;
    z-index: 10000 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
    pointer-events: none !important;
}

.toast-notification-banner {
    background: rgba(10, 14, 23, 0.98);
    border: 1px solid var(--accent);
    border-radius: 14px;
    padding: 16px 20px;
    box-shadow: 0 12px 36px rgba(0, 168, 255, 0.55);
    backdrop-filter: blur(8px);
    display: flex;
    flex-direction: column;
    animation: slideInDown 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    pointer-events: auto;
    cursor: pointer;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.toast-notification-banner:hover {
    background: rgba(16, 22, 36, 0.99);
    transform: scale(1.01);
}

.toast-notification-banner.hide {
    animation: fadeOutUp 0.35s ease forwards;
}

@keyframes slideInDown {
    from { transform: translateY(-100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes fadeOutUp {
    from { transform: translateY(0); opacity: 1; }
    to { transform: translateY(-30px); opacity: 0; }
}

/* PANCHINA RISERVE TOP 11 */
.bench-container {
    width: 100%;
    background: rgba(10, 14, 23, 0.95);
    border-top: 2px solid var(--border-glass);
    padding: 10px 5px;
    position: absolute;
    bottom: 0;
    left: 0;
    z-index: 10;
}

.bench-title {
    font-size: 11px;
    font-weight: 800;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: center;
    margin-bottom: 8px;
}

.bench-row {
    display: flex;
    justify-content: space-around;
    align-items: center;
    width: 100%;
}

.bench-position .player-icon-add {
    border-color: rgba(255, 215, 0, 0.3); /* Colore oro semitrasparente */
    background: rgba(0, 0, 0, 0.6);
}

.bench-position.occupied .player-icon-add {
    background: linear-gradient(135deg, var(--accent), #aa841e);
    border-color: #ffffff;
    box-shadow: 0 4px 10px rgba(212, 175, 55, 0.4);
}

/* Modifiche al layout del campo per allinearsi all'inserimento della panchina */
.soccer-field {
    height: calc(100% - 90px) !important; /* Riduce l'altezza per far spazio alla panchina in basso */
}

/* OTTIMIZZAZIONI RESPONSIVE PER SCHERMI STRETTI (IPHONE) */
@media (max-width: 480px) {
    .soccer-field-container {
        aspect-ratio: 1 / 1.35 !important; /* Più allungato per evitare compressioni */
    }
    .soccer-field {
        height: calc(100% - 80px) !important; /* Riduce l'altezza leggermente meno */
        padding: 5px 3px !important;
    }
    .field-row {
        gap: 6px !important; /* Avvicina i giocatori */
    }
    .field-player-position {
        min-width: 65px !important;
    }
    .player-icon-add {
        width: 38px !important;
        height: 38px !important;
        font-size: 12px !important;
        margin-bottom: 3px !important;
    }
    .player-name-label {
        font-size: 13.5px !important; /* Ridotto del 15% rispetto a 16px */
        max-width: 65px !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        line-height: 1.1 !important;
    }
    .field-player-position.occupied .player-name-label {
        font-size: 15px !important; /* Ridotto del 15% rispetto a 18px */
    }
    .bench-container {
        padding: 6px 3px !important;
    }
    .bench-title {
        font-size: 9px !important;
        margin-bottom: 4px !important;
    }
}

/* FLOATING WALLET BUTTON & BOTTOM SHEET SYSTEM */
.floating-wallet-btn {
    position: fixed;
    bottom: 25px;
    right: 20px;
    background: linear-gradient(135deg, var(--accent), #e2aa10);
    border: none;
    border-radius: 50px;
    padding: 12px 20px;
    box-shadow: 0 10px 25px rgba(212, 175, 55, 0.45);
    z-index: 999;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.2s ease;
}

.floating-wallet-btn:hover {
    transform: scale(1.06) translateY(-2px);
    box-shadow: 0 12px 30px rgba(212, 175, 55, 0.6);
}

.floating-wallet-btn:active {
    transform: scale(0.96) translateY(0);
}

.wallet-btn-text {
    font-size: 11.5px;
    font-weight: 800;
    color: #000;
    letter-spacing: 0.5px;
}

/* BOTTOM SHEET CARTE FEDELTÀ */
.bottom-sheet-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(5px);
    z-index: 10000;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.wallet-bottom-sheet {
    width: 100%;
    max-width: 480px;
    background: #0f121d;
    border-top: 2px solid var(--border-glass-glow);
    border-radius: 24px 24px 0 0;
    padding: 15px 20px 30px 20px;
    box-shadow: 0 -10px 40px rgba(0, 168, 255, 0.25);
    transform: translateY(0);
    animation: slideUpSheet 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.1) forwards;
}

.sheet-drag-handle {
    width: 45px;
    height: 5px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    margin: 0 auto 15px auto;
}

@keyframes slideUpSheet {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

/* NUOVA SEZIONE AFFILIAZIONI VERTICALE PREMIUM */
.affiliations-list-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 30px;
}

.affiliate-vertical-card {
    background: linear-gradient(135deg, rgba(10, 14, 23, 0.72) 0%, rgba(18, 28, 43, 0.62) 100%);
    border: 1px solid var(--border-glass);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-radius: 16px;
    padding: 22px 20px;
    box-shadow: var(--shadow-premium);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    text-align: center;
}

.affiliate-vertical-logo {
    height: 48px;
    max-width: 85%;
    object-fit: contain;
    filter: drop-shadow(0 4px 10px rgba(0,0,0,0.5));
}

.affiliate-bonus-box {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin: 5px 0;
}

.affiliate-bonus-label {
    font-size: 11px;
    font-weight: 800;
    color: var(--accent);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.affiliate-bonus-text {
    font-size: 16px;
    font-weight: 900;
    color: #ffffff;
    line-height: 1.3;
}

.affiliate-btn-premium {
    width: 100%;
    max-width: 280px;
    height: 46px;
    background: linear-gradient(180deg, #1f1f24 0%, #121214 40%, #08080a 100%);
    border: none;
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #ffffff;
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.7);
    position: relative;
    overflow: hidden;
    transition: all 0.22s ease-in-out;
}

/* Riflesso lucido in alto */
.affiliate-btn-premium::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.07) 0%, rgba(255, 255, 255, 0) 100%);
    pointer-events: none;
    z-index: 1;
}

/* Linea neon inferiore */
.affiliate-btn-premium::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary); /* Di base azzurro */
    z-index: 2;
    transition: background-color 0.2s ease;
}

.affiliate-btn-premium:hover {
    transform: translateY(-2px);
    background: linear-gradient(180deg, #2a2a30 0%, #18181b 40%, #0d0d0f 100%);
    box-shadow: 0 8px 24px rgba(0, 168, 255, 0.25);
}

.affiliate-btn-premium:active {
    transform: scale(0.96) translateY(0);
    box-shadow: 0 4px 12px rgba(0, 168, 255, 0.45);
}

/* FEEDBACK ATTIVO AL TOCCO (MOBILE) */
.home-game-btn:active, 
.leaderboard-btn:active, 
.cashier-action-btn:active, 
.btn-primary:active,
.btn-secondary:active,
.icon-btn:active {
    transform: scale(0.95) !important;
    filter: brightness(1.15) !important;
    transition: transform 0.08s ease-out, filter 0.08s ease-out;
}

/* SHIMMER LOADER SKELETON */
.shimmer-table-row {
    height: 38px;
    width: 100%;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.02) 25%, rgba(255, 255, 255, 0.07) 50%, rgba(255, 255, 255, 0.02) 75%);
    background-size: 200% 100%;
    animation: shimmerSwipe 1.4s infinite linear;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.03);
}

@keyframes shimmerSwipe {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* EVIDENZIAZIONE PREMIUM RIGHE BOMBER */
.bomber-row-selected {
    background: rgba(212, 175, 55, 0.15) !important;
    border-left: 4px solid var(--accent) !important;
    font-weight: 800 !important;
    box-shadow: inset 0 0 10px rgba(212, 175, 55, 0.1);
}

.bomber-badge-la-tua-scelta {
    background: var(--accent) !important;
    color: #07090e !important;
    font-size: 9px !important;
    padding: 3px 8px !important;
    border-radius: 4px !important;
    font-weight: 900 !important;
    margin-left: 8px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    box-shadow: 0 2px 6px rgba(212, 175, 55, 0.4);
    display: inline-block;
    vertical-align: middle;
}

