/* ==================== GLOBAL STYLES ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: linear-gradient(135deg, #764ba2 0%, #ea66d2 100%);
    min-height: 100vh;
    color: #333;
    /* Disabilita selezione/copia del testo dell'interfaccia (header, titoli, ecc.)
       e il menu long-press su iOS. Come un'app nativa. */
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
}

/* Eccezione: i campi di input restano selezionabili per digitare/incollare
   (es. gate password, form). */
input, textarea {
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
}

.container {
    max-width: 100%;
    margin: 0 auto;
    padding: 8px;
}

/* ==================== HEADER ==================== */
.header {
    text-align: center;
    margin-bottom: 15px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.header h1 {
    color: white;
    font-size: 20px;
    margin-bottom: 6px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.header p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 11px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

/* ==================== CATEGORIES ==================== */
.categories {
    display: grid;
    gap: 12px;
}

.category {
    background: linear-gradient(100deg, #4e8dec 0%, #eb29c4 70%);
    border-radius: 25px;
    padding: 12px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.35);
    border: 1px solid rgb(255, 255, 255);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 100;
    margin-bottom: 12px;
}
/* Spazio per non far passare i prodotti fisicamente fuori dalla sticky */
.products-grid { position: relative; z-index: 1; }

.framed-title {
    border: 3px double white;
    padding: 8px 14px;
    border-radius: 20px;
    display: inline-block;
    background: linear-gradient(135deg, rgba(78,141,236,0.8), rgba(78,141,236,0.8));
    box-shadow: 2px 3px 12px rgba(0,0,0,0.9), inset 0 1px 0 rgba(255,255,255,0.3);
    margin-bottom: 6px;
    font-size: 16px;
}

.category h2 {
    color: white;
    font-size: 24px;
    margin-bottom: 10px;
    text-align: center;
    padding-bottom: 8px;
    text-shadow: 3px 2px 3px rgba(0, 0, 0, 0.9);
    cursor: pointer;
    user-select: none;
    position: relative;
}

.category h2::after {
    content: '';
    display: block;
    width: 90%;
    height: 8px;
    background: linear-gradient(100deg,#eb29c4 0%, #4e8dec 100%);
    border-radius: 6px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3), 0 2px 4px rgba(0,0,0,0.2),
                inset 0 1px 2px rgba(255,255,255,0.3), inset 0 -1px 2px rgba(0,0,0,0.2);
    border: 1px solid rgb(0, 0, 0);
    backdrop-filter: blur(10px);
    margin: 8px auto 0;
}

/* ==================== PRODUCTS ==================== */
.products {
    display: none; /* Nascosto di default */
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, opacity 0.3s ease;
    opacity: 0;
}

.products.expanded {
    display: grid;
    max-height: 5000px;
    opacity: 1;
}

.product {
    background: linear-gradient(150deg, #dce3ee 10%, #d4b2ce 60%);
    border-radius: 20px;
    padding: 8px;
    border: 2px solid #ffffff;
    transition: box-shadow 0.3s, transform 0.3s, opacity 0.3s;
    cursor: pointer;
    position: relative;
    will-change: transform, box-shadow, opacity;
}

.product:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.product.expanded {
    grid-column: 1 / -1;
    z-index: 10;
    box-shadow: 0 12px 25px rgba(0,0,0,0.3) !important;
    will-change: transform, box-shadow, opacity;
}

.price-btn {
    transition: background 0.2s, color 0.2s, box-shadow 0.2s, transform 0.2s;
    will-change: background, color, box-shadow, transform;
}

.price-btn.selected {
    /* Colori e ombre vengono comunque forzati inline per compatibilità, ma la classe aiuta la transizione */
}

.product-name {
    font-weight: 800;
    color: hsl(0, 0%, 5%);
    margin-bottom: 3px;
    margin-left: 0;
    text-align: center;
    background-color: #ffffff;
    font-size: 15px;
    letter-spacing: 0.2px;
    text-shadow: 0 1px 4px rgba(0,0,0,0.35);
}

.product-frame-5 {
    border: 2px solid #000000;
    padding: 4px 12px;
    border-radius: 20px;
    display: inline-block;
    background: #eb29c4;
    box-shadow: 2px 2px 3px rgba(0, 0, 0, 0.6);
}

.product-frame-6 {
    border: 2px solid #000000;
    padding: 4px 12px;
    border-radius: 20px;
    display: inline-block;
    background: linear-gradient(135deg, #ffd700, #ff8c00);
    box-shadow: 2px 2px 3px rgba(0, 0, 0, 0.6);
}

.product-description {
    padding-top: 6px;
    color: #000000;
    font-size: 10px;
    margin-bottom: 6px;
    line-height: 1.5;
    font-weight: bold;
}

/* ==================== BADGES ==================== */
.frozen-badge {
    display: inline-block;
    background: linear-gradient(135deg, #e3d10e, #dd1515);
    color: rgb(0, 0, 0);
    border-radius: 10px;
    padding: 4px 10px;
    font-size: 8px;
    font-weight: 700;
    text-transform: none;
    text-decoration: underline;
    text-decoration-color: #000000;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
    letter-spacing: 0.3px;
    margin-top: 10px;
    margin-bottom: 1px;
    box-shadow: 2px 2px 3px rgba(0, 0, 0, 0.6);
}

.points-badge {
    display: inline-block;
    background: linear-gradient(135deg, #ffd700, #ffb347);
    color: #000000;
    border-radius: 10px;
    padding: 4px 10px;
    font-size: 8px;
    font-weight: 700;
    text-transform: none;
    text-decoration: underline;
    text-decoration-color: #000000;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
    letter-spacing: 0.3px;
    margin-top: 10px;
    margin-bottom: 1px;
    box-shadow: 2px 2px 3px rgba(0, 0, 0, 0.6);
}

/* ==================== ANIMATIONS ==================== */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

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

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

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

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* ==================== BOTTOM NAVIGATION ==================== */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    min-height: 60px;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.3);
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    border-top: 2px solid rgba(255,255,255,0.2);
    border-left: 2px solid rgba(255,255,255,0.2);
    border-right: 2px solid rgba(255,255,255,0.2);
    z-index: 999;
}

.nav-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    user-select: none;
    position: relative;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.2);
}

.nav-btn:hover {
    background: rgba(255,255,255,0.28);
    transform: translateY(-2px);
}

.nav-btn:active {
    transform: translateY(0);
}

.nav-btn svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: white;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.nav-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: linear-gradient(135deg, #ff3b3b, #cc0000);
    color: white;
    font-size: 12px;
    font-weight: 800;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(255,0,0,0.5);
    z-index: 10;
    animation: cartBadgePop 0.25s ease;
    border: 1.5px solid white;
}

/* Stile icona profilo nella bottom nav */
.nav-icon-profile {
    /* Reset stili button */
    border: none;
    outline: none;
    margin: 0;

    /* Stili visuali */
    font-size: 26px;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 10px 14px;
    border-radius: 12px;
    background: rgba(255,255,255,0.25);

    /* Layout */
    display: flex;
    align-items: center;
    justify-content: center;

    /* Touch ottimizzato */
    -webkit-tap-highlight-color: rgba(255,255,255,0.3);
    touch-action: manipulation;
    user-select: none;
    -webkit-touch-callout: none;

    /* Dimensioni minime per touch */
    min-width: 48px;
    min-height: 48px;
}

.nav-icon-profile:hover {
    background: rgba(255,255,255,0.4);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.nav-icon-profile:active {
    transform: translateY(0);
}

/* Aggiungi padding al body per non nascondere contenuto sotto la nav */
body {
    padding-bottom: 70px;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 500px) {
    .product.expanded {
        min-height: 250px !important;
        padding: 12px !important;
    }
}

/* ==================== CATEGORY TABS ==================== */
.category-tabs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 10px 4px 4px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.category-tabs::-webkit-scrollbar { display: none; }

.cat-tab {
    flex-shrink: 0;
    padding: 8px 16px;
    border-radius: 20px;
    background: rgba(255,255,255,0.15);
    color: white;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid rgba(255,255,255,0.2);
    transition: all 0.3s;
    white-space: nowrap;
    user-select: none;
}
.cat-tab.active {
    background: rgba(255,255,255,0.35);
    border-color: rgba(255,255,255,0.5);
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.cat-tab:hover { background: rgba(255,255,255,0.25); }

/* Tab speciale PROMO — evidenziato oro/arancione */
.cat-tab.cat-tab-promo {
    background: linear-gradient(135deg, #ffd700 0%, #ffb84d 50%, #ff8c00 100%);
    border-color: rgba(255,255,255,0.5);
    color: #3d2416;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-shadow: 0 1px 0 rgba(255,255,255,0.35);
    box-shadow: 0 2px 10px rgba(255,140,0,0.5);
    animation: promoPulse 2s ease-in-out infinite;
}
.cat-tab.cat-tab-promo.active {
    background: linear-gradient(135deg, #ffea00 0%, #ffaa33 50%, #ff7c00 100%);
    box-shadow: 0 4px 16px rgba(255,140,0,0.7);
}
.cat-tab.cat-tab-promo:hover {
    background: linear-gradient(135deg, #ffea00 0%, #ffaa33 50%, #ff7c00 100%);
}
@keyframes promoPulse {
    0%, 100% { box-shadow: 0 2px 10px rgba(255,140,0,0.5); }
    50%      { box-shadow: 0 2px 20px rgba(255,180,77,0.85); }
}

/* ==================== PRODUCT CARDS ==================== */
.product-cards-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 10px;
}

.product-card {
    background: linear-gradient(150deg, #dce3ee 10%, #d4b2ce 60%);
    border-radius: 16px;
    border: 2px solid #ffffff;
    overflow: hidden;
    cursor: pointer;
    transition: box-shadow 0.3s, transform 0.3s;
    position: relative;
    animation: fadeIn 0.4s ease forwards;
    display: flex;
    flex-direction: column;
}
.product-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.card-thumb {
    width: 100%;
    height: 150px;
    background-size: cover;
    background-position: center;
    background-color: rgba(0,0,0,0.05);
    flex-shrink: 0;
}
.card-thumb-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    background: linear-gradient(135deg, rgba(78,141,236,0.25), rgba(235,41,196,0.25));
}
.card-thumb-video {
    position: relative;
    overflow: hidden;
    background: #000;
}
.card-thumb-video video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    pointer-events: none;
}
.card-thumb-video .card-thumb-play {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 44px; height: 44px;
    border-radius: 50%;
    background: rgba(0,0,0,0.55);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    padding-left: 3px;
    pointer-events: none;
}

.card-cart-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    min-width: 26px;
    height: 26px;
    padding: 0 7px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #ff3b3b, #cc0000);
    color: #fff;
    border: 2px solid #fff;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 800;
    box-shadow: 0 3px 10px rgba(255,0,0,0.5), 0 0 0 1px rgba(0,0,0,0.15);
    z-index: 3;
    animation: cartBadgePop 0.25s ease;
    font-family: -apple-system, BlinkMacSystemFont, sans-serif;
}
@keyframes cartBadgePop {
    0% { transform: scale(0); }
    60% { transform: scale(1.2); }
    100% { transform: scale(1); }
}
.product-card.in-cart {
    border-color: #ff3b3b;
    box-shadow: 0 0 0 1px rgba(255,59,59,0.3), 0 4px 12px rgba(255,59,59,0.2);
}

.card-promo-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: linear-gradient(135deg, #ff4444, #ff6600);
    color: white;
    padding: 3px 8px;
    border-radius: 10px;
    font-size: 10px;
    font-weight: 700;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
    z-index: 2;
}

/* ===== BANNER PROMO VIOLA (PROMO WEEK + PROMO BUNDLE) ===== */
.card-promo-banner {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #764ba2 0%, #9f7aea 50%, #b794f4 100%);
    color: #ffffff;
    padding: 4px 0;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-align: center;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
    box-shadow: 0 2px 6px rgba(118,75,162,0.35);
    z-index: 3;
}

.product-card-promo-week {
    border: 2px solid #9f7aea !important;
    box-shadow: 0 0 0 1px rgba(159,122,234,0.4), 0 4px 14px rgba(118,75,162,0.25) !important;
}

/* ===== BADGE NEW (nuovo prodotto) ===== */
.card-new-badge {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #ff3b3b, #cc0000);
    color: #ffffff;
    padding: 4px 0;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    text-align: center;
    text-shadow: 0 1px 2px rgba(0,0,0,0.4);
    box-shadow: 0 2px 6px rgba(255,0,0,0.5);
    z-index: 3;
}
.product-card-new {
    border: 2px solid #cc0000 !important;
    box-shadow: 0 0 0 1px rgba(204,0,0,0.4), 0 4px 14px rgba(255,0,0,0.25) !important;
}
.product-card-promo-week .card-name {
    color: #4a1a8a !important;
    font-size: 14px !important;
    font-weight: 900 !important;
    text-shadow: 0 1px 3px rgba(118,75,162,0.25);
}
.product-card-promo-week .card-desc {
    color: #5b2d8a !important;
    font-weight: 700 !important;
    background: rgba(159,122,234,0.15) !important;
    border-radius: 6px;
    padding: 2px 5px;
}

/* ===== CARD BUNDLE ===== */
.product-card-bundle {
    border: 2px solid #ffb84d !important;
    background: linear-gradient(135deg, #fff8e7 0%, #ffe8a8 100%) !important;
    box-shadow: 0 4px 14px rgba(255,140,0,0.25) !important;
    overflow: hidden;
}
.product-card-bundle .card-thumb-bundle {
    background: linear-gradient(135deg, #ffd700 0%, #ffb84d 50%, #ff8c00 100%);
    color: #3d2416;
    font-size: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 80px;
    margin-top: 22px; /* fa spazio al banner viola */
}
.product-card-bundle .card-name {
    color: #3d2416 !important;
    font-size: 14px !important;
    font-weight: 900 !important;
    letter-spacing: 0.3px;
    background: linear-gradient(90deg, #fff3cc 0%, #ffe57a 100%);
    border-radius: 8px;
    padding: 3px 6px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.18);
    display: block;
}
.product-card-bundle .card-desc {
    color: #3d2416 !important;
    font-style: normal !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    background: rgba(255,200,50,0.35);
    border-radius: 6px;
    padding: 2px 5px;
    letter-spacing: 0.2px;
}
.card-price-bundle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    flex-wrap: wrap;
    margin-top: 4px;
}
.card-price-bundle .bundle-old {
    font-size: 10px;
    color: #888;
    text-decoration: line-through;
}
.card-price-bundle .bundle-new {
    font-size: 14px;
    font-weight: 800;
    color: #ff6b00;
}
.card-price-bundle .bundle-pct {
    background: #3d2416;
    color: #ffd700;
    font-size: 9px;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 6px;
}

/* Sposta thumb di promo week per fare spazio al banner viola */
.product-card-promo-week .card-thumb {
    margin-top: 22px;
}

.card-body {
    padding: 7px 8px 8px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.card-name { font-weight: 900; color: #111; font-size: 14px; margin-bottom: 2px; text-align: center; line-height: 1.25; letter-spacing: 0.2px; text-shadow: 0 1px 3px rgba(0,0,0,0.18); }
.card-desc { color: #222; font-size: 11px; font-weight: 700; margin-bottom: 5px; line-height: 1.35; text-align: center; background: rgba(0,0,0,0.05); border-radius: 6px; padding: 2px 5px; }
.card-price { text-align: center; font-weight: 700; color: #764ba2; font-size: 11px; display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; }
.card-pv-row { display: none; }
.card-pv-badge {
    display: inline-flex; flex-direction: column; align-items: center; gap: 0;
    background: rgba(118,75,162,0.09);
    border: 1px solid rgba(118,75,162,0.22);
    border-radius: 8px; overflow: hidden;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.6);
    min-width: 36px;
}
.card-pv-badge .card-pv-gb {
    font-size: 10px; font-weight: 800; color: #5a189a;
    background: rgba(118,75,162,0.13);
    padding: 2px 5px; white-space: nowrap; width: 100%; text-align: center;
}
.card-pv-badge .card-pv-sep {
    height: 1px; width: 100%;
    background: rgba(118,75,162,0.2);
}
.card-pv-badge .card-pv-price {
    font-size: 10px; font-weight: 700; color: #4a1a8a;
    padding: 2px 5px; white-space: nowrap; width: 100%; text-align: center;
}
.card-pv-badge.soldout {
    border-color: rgba(239,68,68,0.3);
    opacity: 0.7;
}
.card-pv-badge.soldout .card-pv-gb {
    color: #b91c1c; background: rgba(239,68,68,0.1);
    text-decoration: line-through;
}
.card-pv-badge.soldout .card-pv-sep { background: rgba(239,68,68,0.2); }
.card-pv-badge.soldout .card-pv-price {
    color: #b91c1c; text-decoration: line-through;
}
.card-price-tag { display: none; }
.card-price-var { display: none; }

/* ==================== LOADING ==================== */
.loading-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    color: white;
    gap: 12px;
}
.spinner {
    width: 32px;
    height: 32px;
    border: 3px solid rgba(255,255,255,0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ==================== DETAIL MODAL (prodotto) ==================== */
.detail-overlay {
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.8);
    display: flex; justify-content: center; align-items: center;
    z-index: 2000; padding: 20px;
}
.detail-modal {
    width: 100%; max-width: 340px;
    height: auto; max-height: 92vh;
    background: white; border-radius: 25px; border: 2px solid #fff;
    position: relative; overflow-y: auto; overflow-x: hidden;
    scroll-behavior: smooth; scrollbar-width: none; -ms-overflow-style: none;
    box-shadow: 0 15px 35px rgba(0,0,0,0.5);
}
.detail-modal::-webkit-scrollbar { display: none; }
.detail-header {
    background: linear-gradient(135deg, #764ba2 0%, #ea66d2 100%);
    margin-bottom: -20px;
    height: 200px;
    display: flex; align-items: center; justify-content: center;
}
.detail-media-frame {
    background: white; width: 280px; height: 150px;
    border-radius: 15px; position: relative; overflow: hidden;
}
.detail-media-frame > div {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    position: relative;
}
.detail-media-placeholder { font-size: 14px; color: #666; }
.detail-media-frame img,
.detail-media-frame video {
    width: 100%; height: 100%;
    object-fit: cover; border-radius: 15px;
}
.detail-body { padding: 20px; }
.detail-title { font-size: 18px; margin: 8px 0; }
.detail-desc {
    color: #000; margin: 10px 0 20px 0;
    font-weight: bold; line-height: 1.4; font-size: 12px;
}
.detail-prices-wrap {
    background: transparent; padding: 0;
    margin-bottom: 14px;
}
.detail-prices-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    justify-content: space-between;
}
.detail-prices-row.gadget { justify-content: center; grid-template-columns: 1fr; }

/* ==========================================================================
   PRICE BUTTONS — V5 Glass
   Stati: default | selected | out(soldout)
   ========================================================================== */
.price-btn-base {
    min-width: 0;
    display: grid;
    grid-template-rows: 14px auto 16px;
    align-items: center;
    justify-items: center;
    padding: 7px 5px 6px;
    border-radius: 12px;
    background: rgba(255,255,255,0.62);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(157,78,221,0.2);
    box-shadow: 0 6px 14px -8px rgba(90,24,154,0.15), inset 0 1px 0 rgba(255,255,255,0.8);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: transform 0.18s ease, box-shadow 0.22s ease, background 0.22s ease;
    font-variant-numeric: tabular-nums;
    -webkit-tap-highlight-color: transparent;
    text-align: center;
    row-gap: 2px;
}
.price-btn-base:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -8px rgba(90,24,154,0.22), inset 0 1px 0 rgba(255,255,255,0.8);
}
.price-btn-base:active { transform: translateY(0); }

/* Chip taglio — default: viola su bianco */
.price-btn-base .quantita-label {
    background: #5a189a;
    color: #ffffff;
    font-weight: 800;
    font-size: 10px;
    letter-spacing: 0.2px;
    padding: 2px 7px;
    border-radius: 999px;
    box-shadow: 0 4px 10px -4px rgba(90,24,154,0.4);
    line-height: 1;
    text-transform: uppercase;
    display: inline-block;
}

/* Wrapper prezzi */
.v5-prices {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
}
.price-btn-base.promo .v5-prices {
    gap: 4px;
}

/* Prezzo originale barrato con barra diagonale (non text-decoration) */
.price-original {
    position: relative;
    display: inline-block;
    color: #9c6f9e;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.5px;
    line-height: 1;
}
.po-bar {
    position: absolute;
    left: -2px; right: -2px;
    top: 50%;
    height: 2px;
    background: #ff4d6d;
    transform: translateY(-50%) rotate(-12deg);
    border-radius: 2px;
    display: block;
}
.price-original-empty { visibility: hidden; min-height: 14px; display: block; }

/* Prezzo finale — viola scuro grande */
.price-btn-base .prezzo-valore {
    color: #5a189a;
    font-weight: 900;
    font-size: 14px;
    letter-spacing: -0.2px;
}

/* Mini CTA */
.v5-cta {
    font-size: 7px;
    font-weight: 800;
    letter-spacing: 1.2px;
    color: #9d4edd;
    text-transform: uppercase;
    line-height: 1;
    margin-top: 1px;
    align-self: end;
}

/* --- Promo week --- */
.price-btn-base.promo .prezzo-valore.promo-price {
    color: #ff4d6d !important;
    font-size: 14px;
    font-weight: 900;
}
.price-btn-base.promo .price-original {
    font-size: 12px;
    margin-top: 3px;
}

/* --- Esaurito --- */
.price-btn-base.out {
    cursor: not-allowed;
    filter: saturate(0.5);
    opacity: 0.8;
}
.price-btn-base.out:hover { transform: none; }
.price-btn-base.out::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    display: grid;
    place-items: center;
    overflow: hidden;
    border-radius: inherit;
}
.price-btn-base.out::before {
    content: "";
    position: absolute;
    width: 150%;
    height: 8px;
    background: #ff5a6a;
    box-shadow: 0 0 0 2px rgba(255,255,255,0.7);
    transform: rotate(-18deg);
    border-radius: 4px;
    opacity: 0.9;
    pointer-events: none;
    z-index: 1;
}

/* --- Selezionato --- */
.price-btn-base.selected {
    background: linear-gradient(150deg, #9d4edd 0%, #5a189a 100%) !important;
    border-color: rgba(255,255,255,0.3) !important;
    box-shadow: 0 20px 40px -14px rgba(90,24,154,0.55), inset 0 1px 0 rgba(255,255,255,0.3) !important;
    transform: translateY(-2px);
}
.price-btn-base.selected .quantita-label {
    background: rgba(255,255,255,0.95) !important;
    color: #5a189a !important;
}
.price-btn-base.selected .prezzo-valore {
    color: #ffffff !important;
}
.price-btn-base.selected .price-original {
    color: rgba(255,255,255,0.6) !important;
}
.price-btn-base.selected .prezzo-valore.promo-price {
    color: #ff4d6d !important;
}
.price-btn-base.selected .v5-cta {
    color: rgba(255,255,255,0.85) !important;
}

/* --- Gadget (FYFE Points) — dark gold --- */
.price-btn-base.gadget {
    flex: 0 0 auto;
    grid-template-rows: auto;
    padding: 14px 22px;
    background: linear-gradient(180deg, #1e1a0f 0%, #15120a 100%);
    box-shadow: 0 0 0 1px rgba(255,184,77,0.4), 0 6px 18px rgba(0,0,0,0.55);
}
.price-btn-base.gadget .quantita-label {
    background: rgba(255,184,77,0.22);
    color: #ffd700;
    letter-spacing: 1px;
}
.price-btn-base.gadget .prezzo-valore {
    color: #ffd700;
    font-size: 15px;
    font-weight: 800;
    text-shadow: 0 0 12px rgba(255,215,0,0.4);
}
.price-btn-base.gadget.selected {
    background: linear-gradient(135deg, #ffd700 0%, #ff8c00 100%) !important;
    box-shadow: 0 0 0 1px rgba(255,140,0,0.5), 0 6px 18px rgba(255,140,0,0.45) !important;
}

.price-old { font-size: 9px; text-decoration: line-through; color: #999; }
.detail-order-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white; border: none; padding: 12px;
    width: 100%; border-radius: 20px;
    font-size: 14px; font-weight: bold;
    opacity: 0.5; cursor: not-allowed;
    transition: all 0.3s ease;
}
.detail-order-btn.active {
    opacity: 1; cursor: pointer;
}

/* ==================== BUNDLE MODAL ==================== */
.bundle-modal {
    width: 100%; max-width: 360px; max-height: 88vh;
    background: white; border-radius: 22px;
    border: 3px solid #ffd700;
    position: relative; overflow-y: auto; overflow-x: hidden;
    box-shadow: 0 15px 40px rgba(0,0,0,0.5);
    scrollbar-width: none;
}
.bundle-modal::-webkit-scrollbar { display: none; }
.bundle-header {
    background: linear-gradient(135deg, #ffd700 0%, #ffb84d 50%, #ff8c00 100%);
    padding: 20px 16px 16px; text-align: center; position: relative;
}
.bundle-badge {
    position: absolute; top: 8px; left: 16px;
    font-size: 10px; font-weight: 800; letter-spacing: 1.5px;
    color: #3d2416; background: rgba(255,255,255,0.6);
    padding: 3px 9px; border-radius: 5px;
}
.bundle-title {
    margin: 18px 0 4px;
    font-size: 20px; color: #3d2416; font-weight: 800;
}
.bundle-subtitle { font-size: 11px; color: #5d3a20; opacity: 0.9; }
.bundle-body { padding: 16px; }
.bundle-section-label {
    font-size: 11px; font-weight: 700; color: #666;
    text-transform: uppercase; letter-spacing: 0.5px;
    margin-bottom: 8px;
}
.bundle-item {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 12px;
    background: #fff8e7; border-radius: 10px; margin-bottom: 6px;
    border: 1px solid rgba(255,184,77,0.4);
}
.bundle-item-tag {
    background: linear-gradient(135deg,#ffd700,#ff8c00);
    color: #3d2416; font-weight: 800; font-size: 11px;
    padding: 4px 9px; border-radius: 6px;
}
.bundle-item-name {
    flex: 1; text-align: left;
    font-weight: 600; font-size: 13px; color: #3d2416;
}
.bundle-item-price {
    font-size: 12px; color: #888; text-decoration: line-through;
    font-variant-numeric: tabular-nums;
}
.bundle-summary {
    background: linear-gradient(135deg, #fff4d6, #ffe8a8);
    border: 2px dashed #ff8c00; border-radius: 12px;
    padding: 12px 14px; margin-top: 12px;
}
.bundle-summary-row {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 4px;
}
.bundle-summary-row.lg { margin-bottom: 8px; }
.bundle-summary-label { font-size: 11px; color: #666; }
.bundle-summary-label.strong { font-size: 12px; color: #3d2416; font-weight: 700; }
.bundle-summary-old {
    font-size: 13px; color: #999;
    text-decoration: line-through; font-variant-numeric: tabular-nums;
}
.bundle-summary-new {
    font-size: 22px; color: #ff6b00; font-weight: 800;
    font-variant-numeric: tabular-nums;
}
.bundle-discount {
    background: #3d2416; color: #ffd700;
    padding: 6px 12px; border-radius: 8px;
    font-weight: 800; font-size: 13px;
    text-align: center; letter-spacing: 0.5px;
}
.bundle-order-btn {
    background: linear-gradient(135deg, #ff8c00 0%, #ff6b00 100%);
    color: white; border: none; padding: 14px;
    width: 100%; border-radius: 18px;
    font-size: 15px; font-weight: 800; margin-top: 14px;
    cursor: pointer; letter-spacing: 0.3px;
    box-shadow: 0 4px 14px rgba(255,107,0,0.4);
    transition: transform 0.15s ease;
}
.bundle-disclaimer {
    text-align: center; margin-top: 10px;
    font-size: 10px; color: #888;
}

/* ==================== CART TOASTS ==================== */
.cart-toast {
    position: fixed; top: 15px; left: 50%;
    transform: translateX(-50%);
    color: white; padding: 10px 20px; border-radius: 20px;
    font-weight: bold; z-index: 3000;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    display: flex; flex-direction: column; align-items: center;
    animation: slideIn 0.3s ease; font-size: 12px;
}
.cart-toast.out { animation: slideOut 0.3s ease forwards; }
.cart-toast--ok {
    background: linear-gradient(135deg, #48bb78 0%, #46d1a1 100%);
}
.cart-toast--gadget {
    background: linear-gradient(135deg, #ffd700 0%, #ffb347 100%);
    color: #000;
}
.cart-toast-title { margin-bottom: 6px; }
.cart-toast-name { font-size: 14px; }
.cart-toast-price { font-size: 16px; margin-top: 3px; }
.cart-toast-points { font-size: 11px; margin-top: 4px; opacity: 0.9; }

/* Toast bundle (centrato, animato in scala) */
.bundle-toast {
    position: fixed; top: 50%; left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    background: linear-gradient(135deg, #ffd700 0%, #ffb84d 50%, #ff8c00 100%);
    color: #3d2416; padding: 18px 26px; border-radius: 16px;
    font-weight: 800; z-index: 3000; text-align: center;
    box-shadow: 0 10px 35px rgba(255,140,0,0.5);
    border: 3px solid #fff;
    opacity: 0; transition: all 0.3s ease;
    min-width: 240px;
}
.bundle-toast.show {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}
.bundle-toast-icon { font-size: 26px; margin-bottom: 4px; }
.bundle-toast-title { font-size: 15px; margin-bottom: 6px; }
.bundle-toast-name {
    font-size: 12px; font-weight: 600;
    opacity: 0.85; margin-bottom: 8px;
}
.bundle-toast-discount {
    background: #3d2416; color: #ffd700;
    padding: 6px 12px; border-radius: 8px;
    font-size: 13px; font-weight: 800; letter-spacing: 0.5px;
}


/* ==================== ACCESS GATE (password) ==================== */
body.access-gate-active { overflow: hidden; }
body.access-gate-active > .container,
body.access-gate-active > nav.bottom-nav { visibility: hidden; }

.access-gate {
    position: fixed; inset: 0; z-index: 99999;
    display: flex; align-items: center; justify-content: center;
    padding: 20px; box-sizing: border-box;
    overflow: hidden;
}
.access-gate-bg {
    position: absolute; inset: 0;
    background:
      radial-gradient(circle at 20% 20%, rgba(255,255,255,0.18) 0%, transparent 35%),
      radial-gradient(circle at 80% 80%, rgba(255,255,255,0.12) 0%, transparent 40%),
      linear-gradient(135deg, #ff2d92 0%, #ea66d2 45%, #b14de8 100%);
    z-index: 0;
    animation: ag-bg-pan 18s ease-in-out infinite alternate;
}
@keyframes ag-bg-pan {
    0%   { background-position: 0% 0%, 100% 100%, 0% 0%; }
    100% { background-position: 20% 30%, 80% 70%, 100% 100%; }
}
.access-gate-card {
    position: relative; z-index: 1;
    width: 100%; max-width: 380px;
    background: rgba(255,255,255,0.10);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1.5px solid rgba(255,255,255,0.30);
    border-radius: 24px;
    padding: 32px 26px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0,0,0,0.30);
    animation: ag-card-in 0.4s ease-out;
}
@keyframes ag-card-in {
    from { opacity: 0; transform: translateY(12px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0)    scale(1); }
}
.access-gate-logo {
    width: 240px; height: 240px;
    margin: 0 auto 18px;
    border-radius: 32px;
    background: rgba(255,255,255,0.18);
    border: 2px solid rgba(255,255,255,0.5);
    display: flex; align-items: center; justify-content: center;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0,0,0,0.18);
}
.access-gate-logo img {
    width: 100%; height: 100%; object-fit: contain;
}
.access-gate-logo-fallback {
    font-size: 52px;
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
}
.access-gate-title {
    color: #fff;
    font-size: 28px;
    font-weight: 800;
    margin: 0 0 6px;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.18);
}
.access-gate-subtitle {
    color: rgba(255,255,255,0.92);
    font-size: 14px;
    margin: 0 0 24px;
    line-height: 1.4;
}
.access-gate-form {
    display: flex; flex-direction: column; gap: 12px;
}
.access-gate-input {
    width: 100%; box-sizing: border-box;
    padding: 16px 18px;
    border-radius: 14px;
    border: 2px solid rgba(255,255,255,0.4);
    background: rgba(255,255,255,0.95);
    color: #2a1438;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 3px;
    text-align: center;
    text-transform: uppercase;
    font-family: 'SF Mono', Menlo, monospace;
    outline: none;
    transition: all 0.2s ease;
}
.access-gate-input:focus {
    border-color: #fff;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(255,255,255,0.25);
}
.access-gate-input::placeholder {
    color: #c98ec0;
    font-weight: 600;
    letter-spacing: 2px;
}
.access-gate-btn {
    width: 100%;
    padding: 16px;
    border-radius: 14px;
    border: none;
    background: linear-gradient(135deg, #fff 0%, #ffe8f5 100%);
    color: #d6118e;
    font-size: 17px;
    font-weight: 800;
    letter-spacing: 0.6px;
    cursor: pointer;
    transition: all 0.18s ease;
    box-shadow: 0 6px 18px rgba(0,0,0,0.18);
    display: flex; align-items: center; justify-content: center; gap: 10px;
}
.access-gate-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(0,0,0,0.25);
}
.access-gate-btn:active:not(:disabled) {
    transform: translateY(0);
}
.access-gate-btn:disabled {
    opacity: 0.7; cursor: wait;
}
.access-gate-btn-spinner {
    width: 18px; height: 18px;
    border: 2.5px solid rgba(214,17,142,0.25);
    border-top-color: #d6118e;
    border-radius: 50%;
    animation: ag-spin 0.7s linear infinite;
}
@keyframes ag-spin { to { transform: rotate(360deg); } }
.access-gate-error {
    margin: 4px 0 0;
    color: #fff;
    background: rgba(220,30,80,0.55);
    border: 1px solid rgba(255,255,255,0.4);
    border-radius: 10px;
    padding: 10px 12px;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    animation: ag-shake 0.4s ease;
}
@keyframes ag-shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-6px); }
    75% { transform: translateX(6px); }
}

/* ==========================================================================
   MEDIA LIGHTBOX — fullscreen image/video viewer
   ========================================================================== */
.media-lightbox {
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.92);
    z-index: 9999;
    display: flex; align-items: center; justify-content: center;
    padding: 16px;
    opacity: 0;
    transition: opacity 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}
.media-lightbox.show { opacity: 1; }
.media-lightbox.out { opacity: 0; }
.media-lightbox img,
.media-lightbox video {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.6);
    background: #000;
}
.media-lightbox-close {
    position: absolute;
    top: 18px; right: 18px;
    width: 44px; height: 44px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.15);
    color: #fff;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex; align-items: center; justify-content: center;
    transition: background 0.18s ease, transform 0.18s ease;
}
.media-lightbox-close:hover {
    background: rgba(255,255,255,0.28);
    transform: scale(1.05);
}

/* ==========================================================================
   MEDIA CAROUSEL — Modal prodotto (multi-media con frecce)
   ========================================================================== */
.media-carousel {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: inherit;
}
.media-carousel-track {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.32s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.media-carousel-slide {
    flex: 0 0 100%;
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    background: #000;
}
.media-carousel-slide img,
.media-carousel-slide video {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
}
.media-carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px; height: 36px;
    border-radius: 50%;
    border: none;
    background: rgba(0,0,0,0.55);
    color: #fff;
    font-size: 28px; line-height: 1;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    z-index: 5;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    transition: background 0.18s ease, transform 0.18s ease;
    -webkit-tap-highlight-color: transparent;
}
.media-carousel-arrow:hover {
    background: rgba(0,0,0,0.78);
}
.media-carousel-arrow:active {
    transform: translateY(-50%) scale(0.95);
}
.media-carousel-arrow-prev { left: 8px; }
.media-carousel-arrow-next { right: 8px; }
.media-carousel-dots {
    position: absolute;
    bottom: 8px; left: 50%;
    transform: translateX(-50%);
    display: flex; gap: 6px;
    z-index: 5;
}
.media-carousel-counter {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 6;
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    background: rgba(0,0,0,0.5);
    border-radius: 999px;
    padding: 3px 8px;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}
.media-carousel-dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: rgba(255,255,255,0.45);
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}
.media-carousel-dot.active {
    background: #fff;
    transform: scale(1.25);
}

/* ==========================================================================
   LIGHTBOX — frecce navigazione
   ========================================================================== */
.media-lightbox-stage {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
}
.media-lightbox-stage img,
.media-lightbox-stage video {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 12px;
    background: #000;
}
.media-lightbox-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px; height: 48px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.15);
    color: #fff;
    font-size: 36px; line-height: 1;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: background 0.18s ease;
    z-index: 10;
}
.media-lightbox-arrow:hover { background: rgba(255,255,255,0.28); }
.media-lightbox-arrow-prev { left: 16px; }
.media-lightbox-arrow-next { right: 16px; }
.media-lightbox-counter {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 11;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.2px;
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(0,0,0,0.45);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

/* ==================== NOTIFICHE (campanello) ==================== */
.notif-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    background: rgba(0,0,0,0.55);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}
.notif-sheet {
    width: 100%;
    max-width: 520px;
    max-height: 78vh;
    display: flex;
    flex-direction: column;
    background: linear-gradient(135deg, #6d5bb5 0%, #7a4fa0 100%);
    border-top-left-radius: 22px;
    border-top-right-radius: 22px;
    border: 1px solid rgba(255,255,255,0.18);
    border-bottom: none;
    box-shadow: 0 -8px 32px rgba(0,0,0,0.45);
    animation: notifSlideUp .22s ease-out;
}
@keyframes notifSlideUp {
    from { transform: translateY(30px); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
}
.notif-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 18px 10px;
    flex-shrink: 0;
}
.notif-head h3 {
    color: #fff;
    font-size: 17px;
    font-weight: 700;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.25);
}
.notif-close {
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.2);
    color: #fff;
    font-size: 14px;
    line-height: 1;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
}
.notif-list {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 4px 14px 22px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.notif-card {
    display: flex;
    gap: 11px;
    background: rgba(255,255,255,0.10);
    border: 1px solid rgba(255,255,255,0.16);
    border-radius: 14px;
    padding: 12px 13px;
}
/* Avviso fissato in alto dall'admin */
.notif-card.is-pinned {
    background: rgba(246,195,67,0.13);
    border-color: rgba(246,195,67,0.38);
}
.notif-card.is-pinned .notif-time {
    color: #f6c343;
}
.notif-icon {
    font-size: 20px;
    line-height: 1.2;
    flex-shrink: 0;
}
.notif-body { flex: 1; min-width: 0; }
.notif-title-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 3px;
}
.notif-title {
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    word-break: break-word;
}
.notif-time {
    color: rgba(255,255,255,0.6);
    font-size: 11px;
    white-space: nowrap;
    flex-shrink: 0;
}
.notif-text {
    color: rgba(255,255,255,0.88);
    font-size: 13px;
    line-height: 1.55;
    white-space: pre-wrap;
    word-break: break-word;
}
.notif-empty {
    color: rgba(255,255,255,0.7);
    font-size: 13px;
    text-align: center;
    padding: 34px 16px;
}

/* ==================== PROMO x2 PUNTI ==================== */
/* Badge nuvoletta sospeso nel menu */
.x2-badge {
    position: absolute;
    top: -14px;
    right: 10px;
    z-index: 6;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #ffffff;
    border: 2px solid #000000;
    color: #000;
    font-size: 15px;
    font-weight: 800;
    line-height: 1;
    padding: 7px 12px;
    border-radius: 16px;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    animation: x2Float 2.4s ease-in-out infinite;
}
/* Coda della nuvoletta (triangolo con bordo nero) */
.x2-badge::after {
    content: "";
    position: absolute;
    bottom: -8px;
    left: 16px;
    width: 12px;
    height: 12px;
    background: #ffffff;
    border-right: 2px solid #000;
    border-bottom: 2px solid #000;
    transform: rotate(45deg);
    border-bottom-right-radius: 3px;
}
.x2-badge-x2 {
    color: #ff2ec4;
    font-weight: 900;
    letter-spacing: 0.5px;
    text-shadow: 0 0 6px rgba(255,46,196,0.8), 0 0 12px rgba(255,46,196,0.5);
}
@keyframes x2Float {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-4px); }
}

/* Modale info promo */
.x2-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}
.x2-modal-card {
    position: relative;
    max-width: 340px;
    width: 100%;
    background: #ffffff;
    border: 2px solid #000;
    border-radius: 20px;
    padding: 28px 22px 24px;
    text-align: center;
    color: #1a1a1a;
    box-shadow: 0 12px 40px rgba(0,0,0,0.4);
}
.x2-modal-close {
    position: absolute;
    top: 10px;
    right: 12px;
    background: none;
    border: none;
    font-size: 18px;
    line-height: 1;
    color: #888;
    cursor: pointer;
    padding: 4px;
}
.x2-modal-badge {
    position: static;
    margin: 0 auto 14px;
    font-size: 22px;
    padding: 10px 16px;
    animation: none;
}
.x2-modal-badge::after { display: none; }
.x2-modal-title {
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 10px;
    color: #1a1a1a;
}
.x2-modal-text {
    font-size: 14px;
    line-height: 1.6;
    color: #444;
}
