/* Colori e variabili chiave */
:root {
    --primary-color: #ff3b30; /* Rosso Apple / Flamy */
    --secondary-color: #f7a9a4; /* Tonalità rossa chiara */
    --dark-text: #2c0806; /* Testo scuro per contrasto */
    --light-text: #ffffff; /* Testo chiaro */
    --glass-bg-start: rgba(255, 255, 255, 0.1); 
    --glass-bg-end: rgba(255, 255, 255, 0.05); 
    --glass-border: rgba(255, 255, 255, 0.2); 
    --card-radius: 20px;
    --red-bg-gradient: linear-gradient(135deg, rgba(255, 59, 48, 0.8), rgba(200, 40, 30, 0.7));
}

/* Reset base e Font */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
}

body {
    background: url(../img/background.png) no-repeat center center fixed;
    background-size: cover;
    color: var(--light-text);
    min-height: 100vh;
    display: flex
;
flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* Contenitore Sfondo */
.app-background {
    width: 90%;
    max-width: 1160px; /* Larghezza maggiore per desktop/tablet */
    background-image: url('nome_della_tua_immagine_di_sfondo_rossa.jpg'); /* INSERISCI QUI IL TUO SFONDO */
    background-size: cover;
    background-position: center;
    padding: 30px;
    border-radius: 40px;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.5); 
    overflow: hidden;
    position: relative;
    margin: 0 auto;
    margin-top: 80px;
    margin-bottom: 80px;
}

/* Stile Glassmorphism */
.glass-card {
    background: linear-gradient(135deg, var(--glass-bg-start), var(--glass-bg-end));
    backdrop-filter: blur(25px); /* Blur aumentato per l'effetto liquid glass */
    -webkit-backdrop-filter: blur(25px);
    border-radius: var(--card-radius);
    border: 1px solid var(--glass-border);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3); /* Ombra più pronunciata */
    padding: 20px;
}

/* ----------------------------------- */
/* 1. Header (barra di navigazione superiore) */
/* ----------------------------------- */
.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding: 10px 25px;
    border-radius: 50px;
    margin: 20px;
    margin-top: 0;
    width: 100%;
    margin: 0 auto;
    
}

.logo {
    font-size: 1.4em;
    font-weight: bold;
    letter-spacing: 1px;
    color: var(--light-text);
}

.nav-menu {
    display: flex;
    gap: 25px;
}

.nav-item {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 1em;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-item i {
    margin-right: 8px;
}

.nav-item.active {
    color: var(--light-text);
    padding-bottom: 5px;
}

.search-icon {
    font-size: 1.2em;
    cursor: pointer;
}

/* ----------------------------------- */
/* 2. Layout principale (CSS GRID) */
/* ----------------------------------- */
.dashboard-grid {
    display: grid;
    gap: 20px;
    /* Definisce la griglia per replicare il layout della grafica */
    grid-template-areas: 
        "A A E"
        "B C E"
        "B D E";
    /* Colonna 1: Categorie (stretta); Colonna 2: Offerte (media); Colonna 3: Blocco lato (largo) */
    grid-template-columns: 200px 1fr 1fr;
    grid-template-rows: 200px 1fr 1fr;
    height: calc(100% - 75px); /* Altezza meno l'header */
}

/* Assegnazione degli elementi alle aree della griglia */
.hot-offers-card {
    grid-area: A;
}

.categories-panel {
    grid-area: B;
}

.daily-offers {
    grid-area: C;
}

.exclusive-offers {
    grid-area: D;
}

/* Blocco decorativo laterale (area E) */
.side-illustration-block {
    grid-area: E;
    /* Rimuovi padding e glassmorphism se è solo decorativo */
    background: transparent;
    padding: 0;
    position: relative;
    /* Qui puoi inserire l'immagine o l'elemento grafico rosso e lucido */
}

/* ----------------------------------- */
/* 3. Stili Dettaglio Elementi */
/* ----------------------------------- */

/* Hot Offers Card (Area A) */
.hot-offers-card {
    background: var(--red-bg-gradient); 
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    position: relative;
    overflow: hidden;
    padding: 30px;
    height: 100%; /* Copre l'intera riga */
    box-shadow: 0 5px 20px rgba(255, 59, 48, 0.5); /* Ombra rossa per risalto */
}

.hot-offers-card h2 {
    font-size: 2.2em;
    font-weight: 900;
    margin-bottom: 10px;
    line-height: 1.1;
    z-index: 1;
}

.btn-discover {
    background-color: var(--light-text);
    color: var(--primary-color);
    border: none;
    padding: 10px 25px;
    border-radius: 30px;
    font-size: 1em;
    font-weight: 700;
    cursor: pointer;
    align-self: flex-start;
    z-index: 1;
}

.offer-image img {
    position: absolute;
    right: 0px;
    top: -20px;
    width: 200px; /* Adatta la dimensione */
    height: auto;
    transform: rotate(1deg);
    opacity: 0.9;
}

/* Categories Panel (Area B) */
.categories-panel {
    padding: 25px 15px;
}

.categories-panel h3 {
    margin-bottom: 15px;
    font-size: 1.1em;
    font-weight: 700;
}

.category-list {
    list-style: none;
}

.category-item {
    padding: 12px 10px;
    margin: 5px 0;
    border-radius: 12px;
    font-size: 1em;
    cursor: pointer;
    transition: background-color 0.3s;
}

.category-item i {
    margin-right: 10px;
    width: 18px;
    text-align: center;
}

.category-item.active {
    background: var(--primary-color);
    box-shadow: 0 5px 15px rgba(255, 59, 48, 0.4);
}

/* Sezioni Offerte (Area C e D) */
.daily-offers, .exclusive-offers {
    padding: 0;
}

.daily-offers h3, .exclusive-offers h3 {
    font-size: 1.1em;
    margin-bottom: 15px;
    padding-left: 5px; /* Allinea il titolo */
}

.offer-cards-container {
    display: flex;
    gap: 15px;
    /* Contenitore scrollabile orizzontalmente se necessario, ma qui restano affiancati */
}

.small-offer-card {
    flex: 1; /* Le card si dividono lo spazio equamente */
    min-width: 150px; 
    text-align: center;
    position: relative;
    padding: 15px;
}

.small-offer-card img {
    width: 80%;
    height: auto;
    margin-bottom: 8px;
}

.discount {
    top: 10px;
    right: 10px;
}

.banner-hero {
  margin: 0 auto;
  background: linear-gradient(
  135deg, 
  rgba(0, 83, 121, 0.8) 50%,  /* primo colore occupa 80% */
  rgba(255, 255, 255, 0.0) 100%  /* sfumatura finale */
), url(../img/main-hero.png) no-repeat center center!important;
  padding: 100px 0 60px 60px;
  color: #fff;;
  border-radius: 50px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
}

.banner-hero p{
  margin-bottom: 20px;
  color: #fefefe;
}

.banner-hero h2 {
  margin-bottom: 10px;
}

header.mobile-header {
  display: none;
}

.offerte-sponsorizzate {
  border-radius: 50px!important;
  padding: 30px;
}

h2 {
  color: #fff;
}

.offerta {
  margin: 10px;
}

/* Contenitore offerta */
.offerta.glass-card {
  position: relative;

  border-radius: 20px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  padding: 20px;
  text-align: center;
  transition: all 0.5s ease;
  overflow: hidden;
  cursor: pointer;
}

/* Effetto hover */
.offerta.glass-card:hover {
  transform: translateY(-10px) scale(1.05);
  box-shadow: 
    0 10px 40px rgba(5, 191, 158, 0.5), 
    0 10px 60px rgba(5, 191, 158, 0.3);
}

/* Glow liquido interno */
.offerta.glass-card::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;

  filter: blur(60px);
  opacity: 0;
  transition: opacity 0.5s ease;
  z-index: 0;
  pointer-events: none; /* ← aggiungi questa riga */
}


.offerta.glass-card:hover::before {
  opacity: 1;
}

/* Contenuto sopra il glow */
.offerta.glass-card img,
.offerta.glass-card h3,
.offerta.glass-card p,
.offerta.glass-card .button {
  position: relative;
  z-index: 1;
  transition: all 0.5s ease;
}

/* Immagine leggermente scale on hover */
.offerta.glass-card:hover img {
  transform: scale(1.05) rotate(1deg);
}

/* Pulsante leggermente glow on hover */
.offerta.glass-card:hover .button {
  box-shadow: 0 0 15px rgba(0, 255, 136, 0.6), 0 0 30px rgba(0, 255, 136, 0.4);
  transform: translateY(-2px) scale(1.05);
}

.offerta.glass-card .cta {
  width: auto!important;
  z-index: 8000;
}


.offerta.glass-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  background-position: center;
  border-radius: 16px;
  margin-bottom: 20px;
}

.offerta.glass-card h3 {
  margin-bottom: 10px;
}

.offerta.glass-card a,
.offerta.glass-card h3,
.offerta.glass-card p {
  text-align: left;
  color: #fff;
  transition: .3s ease;
}

.offerta.glass-card a:hover {
  color: #05BF9E;
}

.prezzo-originale {
  text-decoration: line-through; /* barrato */
  color: rgba(255, 255, 255, 0.6); /* colore più chiaro */
  font-size: 0.9em;
}

.prezzo {
  font-size: 1.1rem;
  color: #fff;
  text-align: center;
  margin: 10px 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  font-weight: 500;
}

/* Prezzo originale */
.prezzo-originale {
  text-decoration: line-through;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.95rem;
}

/* Prezzo scontato */
.prezzo-scontato {
  position: relative;          /* importante per ::after */
  display: inline-block;       /* necessario per pseudo-elemento */
  color: #fff;
  font-weight: 700;
  font-size: 18px;
  transition: all 0.3s ease;
}

/* Glow liquido */
.prezzo-scontato::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 140%;
  height: 140%;
  background: linear-gradient(135deg, rgba(255,59,63,0.5), rgba(255,200,200,0.2));
  filter: blur(15px);
  transform: translate(-50%, -50%);
  z-index: -1;
  border-radius: 10px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

/* Hover sulla card per mostrare glow */
.offerta.glass-card:hover .prezzo-scontato::after {
  opacity: 1;
}

.offerte-sponsorizzate p {
  color: #fefefe;
  margin-bottom: 20px;
}

.offerta.glass-card p {
  font-size: 16px;
}

#scrollTopBtn
 {
  position: fixed;
  padding: 20px;
  bottom: 50px;
  right: 50px;
  background-color: #fff;
  color: #05BF9E;
  border-radius: 50px;
  transition: .3s ease;
  top: auto;
  z-index: 9900;
}

#scrollTopBtn:hover {
  background-color: #05BF9E;
  color: #fff;
}

.etichetta-sconto {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 6px 14px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.9rem;
  color: #fff;
  background: linear-gradient(135deg, rgba(5,191,158,0.95), rgba(5,191,158,0.9));
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 0 15px rgba(5,191,158,0.5);
  text-shadow: 0 0 6px rgba(255,255,255,0.3);
  z-index: 5;
  transition: all 0.3s ease;
  animation: pulseLiquid 3s ease-in-out infinite;
}

/* Effetto "liquido" pulsante */
@keyframes pulseLiquid {
  0% {
    box-shadow: 0 0 10px rgba(5,191,158,0.4);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 0 25px rgba(5,191,158,0.8);
    transform: scale(1.08);
  }
  100% {
    box-shadow: 0 0 10px rgba(5,191,158,0.4);
    transform: scale(1);
  }
}

/* Hover: effetto leggero di movimento */
.offerta.glass-card:hover .etichetta-sconto {
  transform: scale(1.1) rotate(2deg);
  box-shadow: 0 0 25px rgba(5,191,158,0.7);
}


.prezzo {
  justify-content: flex-start;
}

.filter-bar {
  margin-bottom: 40px;
  padding: 15px 20px;
  border-radius: 16px;
  backdrop-filter: blur(12px);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

.filter-bar h2 {
  margin-bottom: 20px;
}

.filter-bar input,
.filter-bar select {
  background: rgba(255,255,255,0.2);
  border: none;
  border-radius: 8px;
  padding: 10px 14px;
  color: #fff;
  font-size: 16px;
  outline: none;
  transition: background 0.3s ease, box-shadow 0.3s ease;

}

.filter-bar input::placeholder {
  color: rgba(255,255,255,0.7);
}

.filter-bar input:focus,
.filter-bar select:focus {
  background: rgba(255,255,255,0.3);
  box-shadow: 0 0 10px rgba(255,255,255,0.2);
}

/* Stile delle opzioni (funziona su Chrome, Edge, Opera, Firefox) */
.filter-bar select option {
  background-color: rgba(15, 15, 15, 0.9);
  color: #fff;
  border: none;
  padding: 10px;
  font-size: 15px;
  transition: background 0.2s ease;
}

/* Hover sull’opzione (solo alcuni browser lo supportano) */
.filter-bar select option:hover,
.filter-bar select option:checked {
  background-color: rgba(15, 15, 15, 0.9);
  color: #fff;
}

/* Opzioni disattivate */
.filter-bar select option:disabled {
  color: rgba(255, 255, 255, 0.4);
}

.filtro {
    display: flex;
    gap: 40px;
}

#filter-form {
  display: flex;
  gap: 40px;
  margin-bottom: 30px;
}

.post-type-archive-offerta_lampo .offerte-sponsorizzate {
  padding: 0;
  margin-bottom: 20px;
}

.flex.info-locale {
  justify-content: space-between!important;
  flex-direction: row!important;
}

img.evidenza {
  max-width: 500px;
}

article.offerta-dettaglio.glass-card {
  max-width: 500px!important;
}

.offerta-dettaglio h1 {
  text-align: left!important;
}

.offerta-dettaglio p {
  text-align: left;
  margin-bottom: 10px;
  color: #fefefe;
}

.single p.prezzo {
  text-align: center;
  display: initial;
}

.popup-content p {
  color: #fff;
}

.popup-content h3 {
  margin-bottom: 10px;
}

/* Adattamento Glass Card allo stile Glassmorphism Vellum (Blu/Verde Acqua) */
.glass-card {
    background: rgba(255, 255, 255, 0.05); /* Più trasparente */
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 24px;
    backdrop-filter: blur(20px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    color: #fff;
    transition: none; /* Rimuovi hover superfluo per il container principale */
}

/* Stile per i popup */
.popup-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}
.popup-content {
    padding: 30px;
    max-width: 400px;
    text-align: center;
}
.popup-title { color: #00c8b4; }
.popup-actions { display: flex; justify-content: space-around; }
.cta-button-popup {
    background: linear-gradient(135deg, #FF4B2B 0%, #FF416C 100%);
    color: white;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 700;
    transition: 0.2s;
    margin: 20px;
}
.cta-button-popup:hover { background: linear-gradient(135deg, #FF6F4E 0%, #FF5A80 100%); }
.cta-button-secondary-popup {
    background: rgba(255,255,255,0.1);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.3);
    margin: 20px;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 700;
    transition: 0.2s;
}
.cta-button-secondary-popup:hover { background: rgba(255,255,255,0.2); }


/* ================================================= */
/* LAYOUT A DUE COLONNE (Il cuore del nuovo design) */
/* ================================================= */

.container-offerta-moderno {
    display: grid;
    grid-template-columns: 1fr 1.2fr; /* L'area contenuto è leggermente più larga dell'immagine */
    max-width: 1000px;
    margin: 0 auto;
    padding: 0; /* Rimuovi il padding dal container per applicarlo alle sezioni interne */
    position: relative;
    gap: 0; /* Nessuno spazio tra le colonne */
}
.image-section-moderno {
    position: relative;
    overflow: hidden;
    background: rgba(0,0,0,0.1);
    border-radius: 24px 0 0 24px; /* Arrotondamento solo a sinistra */
}
.image-section-moderno img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.content-section-moderno {
    padding: 40px 50px; /* Padding per il contenuto */
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 15px;
}

/* Back Link Moderno */
.back-link-moderno {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 10;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    color: #fff;
    padding: 8px 15px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: background 0.2s;
    border: 1px solid #fff;
}
.back-link-moderno:hover { background: rgba(255, 255, 255, 0.2); }


/* ================================================= */
/* STILI TESTO E DETTAGLI */
/* ================================================= */

.restaurant-info-moderno {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 10px;
}
.restaurant-icon-moderno {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #00A99D 0%, #0077B6 100%); /* Gradiente Vellum */
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 20px;
}
.restaurant-name-moderno {
    font-size: 18px;
    font-weight: 700;
    color: #00A99D; /* Verde acqua */
    text-align: left;
}
.restaurant-location-moderno {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    gap: 5px;
}
.content-section-moderno h1 {
    font-size: 36px;
    font-weight: 800;
    color: #fff;
text-align: left;
}
.content-section-moderno p:nth-child(1) {
    text-align: left;
    color: #fefefe;
}
.description-moderno {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    margin-bottom: 20px;
}


/* ================================================= */
/* BADGE SCONTO E TIMER */
/* ================================================= */

.discount-badge-moderno {
    position: absolute;
    top: 20px;
    left: 20px;
    background: linear-gradient(135deg, #FF4B2B 0%, #FF416C 100%); /* Rosso acceso */
    color: white;
    padding: 8px 16px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 18px;
    box-shadow: 0 4px 15px rgba(255, 75, 43, 0.5);
    z-index: 5;
    animation: pulse 1.5s infinite;
}
@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.timer-badge-moderno {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    padding: 15px;
    color: white;
    text-align: center;
    border-radius: 0 0 0 24px;
}
.timer-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
    opacity: 0.8;
}
.timer-display-moderno {
    display: flex;
    justify-content: center;
    gap: 10px;
    font-weight: 700;
    font-size: 24px;
}
.timer-display-moderno .value {
    color: #00A99D; /* Colore Vellum per il timer */
}
.timer-display-moderno .text {
    font-size: 12px;
    opacity: 0.7;
    margin-top: 5px;
}


/* ================================================= */
/* SEZIONE PREZZO E CTA */
/* ================================================= */

.price-section-moderno {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 16px;
    margin: 10px 0 25px 0;
}
.price-label-moderno {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 8px;
    font-weight: 600;
}
.price-display-moderno {
    display: flex;
    align-items: baseline;
    gap: 15px;
    justify-content: center;
}
.original-price-moderno {
    font-size: 24px;
    color: rgba(255, 255, 255, 0.5);
    text-decoration: line-through;
    font-weight: 600;
}
.current-price-moderno {
    font-size: 48px;
    font-weight: 800;
    color: #05BF9E; /* Rosso CTA */
}

/* Pulsante CTA Principale (Rosso) */
.cta-button-moderno {
    background: linear-gradient(135deg, #FF4B2B 0%, #FF416C 100%);
    color: white;
    border: none;
    width: 100%;
    padding: 18px;
    border-radius: 50px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(255, 75, 43, 0.4);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0 auto 50px auto;
}
.cta-button-moderno:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(255, 75, 43, 0.5);
}
.cta-disabled { opacity: 0.6; cursor: not-allowed; }


/* QR CODE ATTIVATO */
.qr-activated-box {
    text-align: center;
    background: rgba(0, 169, 153, 0.1); /* Sfondo verde acqua tenue */
    padding: 20px;
    border-radius: 16px;
    border: 1px solid rgba(0, 169, 153, 0.4);
}
.qr-status-text {
    font-size: 16px;
    font-weight: bold;
    color: #00A99D;
    margin-bottom: 15px;
}
.qr-timer-display {
    font-size: 20px;
    font-weight: 700;
    color: #00A99D;
    margin-bottom: 15px;
    padding: 5px 0;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.3);
}
.qr-timer-value { color: #fff; }

/* Stile per il tempo che scade (meno di 2 minuti) */
.qr-activated-box.low-time {
    animation: blink-border 1s infinite;
    border-color: #ff4444;
}
@keyframes blink-border {
    0%, 50% { border-color: #ff4444; }
    51%, 100% { border-color: rgba(255, 68, 68, 0.5); }
}


/* ================================================= */
/* SEZIONE CORRELATI (Aggiunta) */
/* ================================================= */

.sezione-correlati h2 {

    color: #fff;
    font-weight: 700;
    margin-bottom: 20px;
    text-align: center;
}

.glass-card-small {
    min-width: 200px; /* Larghezza minima per le card */
    max-width: 200px;
    padding: 15px;
    border-radius: 16px;
    /* Eredita il glass-card style */
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(15px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}


/* ================================================= */
/* MEDIA QUERY (Adattamento per Mobile) */
/* ================================================= */
.torna-alle-offerte a {
  display: none;
}

@media (max-width: 800px) {
    /* Contenitore principale */
    .container-offerta-moderno {
        display: grid;
        grid-template-columns: 1fr; /* Una colonna su mobile */
        max-width: calc(100% - 100px)!important;
        margin: 0 auto !important;
        gap: 20px;
    }

    /* Sezione immagine */
    .image-section-moderno {
        height: 300px; /* Altezza fissa per mobile */
        border-radius: 24px 24px 0 0;
        overflow: hidden;
    }

    .image-section-moderno img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 24px 24px 0 0;
    }

    /* Sezione contenuti */
    .content-section-moderno {
        padding: 30px;
    }

    .content-section-moderno h1 {
        font-size: 30px;
    }

    .current-price-moderno {
        font-size: 40px;
    }

    /* Timer */
    .timer-badge-moderno {
        border-radius: 0 0 24px 24px;
        bottom: 0;
        left: 0;
        width: 100%;
        text-align: center;
        font-size: 14px;
        padding: 8px 0;
    }

    /* Back link nascosto di default */
    .back-link-moderno {
        display: none;
    }

    /* Link “torna alle offerte” fisso per mobile */
    .single-offerta_lampo .torna-alle-offerte a {
        display: block;
        position: fixed;
        top: 60px;
        left: 20px;
        right: auto;
        bottom: auto;
        padding: 20px 40px;
        max-width: 200px;
        min-width: 150px;
        background-color: #05BF9E;
        color: #fff;
        text-align: center;
        border-radius: 8px;
        z-index: 999;
        text-decoration: none;
        font-weight: bold;
    }
}


/* --- Sezione offerte correlate --- */
.sezione-correlati {
  margin-top: 60px;
  padding: 20px 0;
  position: relative;
}


/* --- Contenitore scrollabile --- */


.correlati-scroll-wrapper::-webkit-scrollbar {
  height: 6px;
}

.correlati-scroll-wrapper::-webkit-scrollbar-thumb {
  background: rgba(5, 191, 158, 0.5);
  border-radius: 10px;
}

.correlati-scroll-wrapper::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
}

/* --- Card singola --- */
.prodotto-correlato.glass-card-small {
  flex: 0 0 180px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(5, 191, 158, 0.2);
  border-radius: 16px;
  padding: 12px;
  text-decoration: none;
  color: #fff;
  transition: all 0.25s ease;
  box-shadow: 0 10px 25px rgba(5, 191, 158, 0.15);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
}

/* --- Hover --- */
.prodotto-correlato.glass-card-small:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 10px 35px rgba(5, 191, 158, 0.4);
  border-color: rgba(5, 191, 158, 0.5);
}

/* --- Immagine --- */
.prodotto-correlato.glass-card-small img {
  border-radius: 10px;
  width: 100%;
  height: 100px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.prodotto-correlato.glass-card-small:hover img {
  transform: scale(1.05);
}

/* --- Titolo --- */
.corr-title {
  font-size: 0.95rem !important;
  font-weight: 700;
  text-align: center;
  color: #fff !important;
  margin-bottom: 6px;
  line-height: 1.3em;
}

/* --- Prezzo --- */
.corr-price {
  font-size: 1.2rem !important;
  font-weight: 800;
  color: #05BF9E !important;
  text-align: center;
  text-shadow: 0 0 10px rgba(5, 191, 158, 0.3);
}

/* --- Icona alternativa (senza immagine) --- */
.prodotto-correlato.glass-card-small i.fa-solid {
  font-size: 36px;
  color: #05BF9E;
  opacity: 0.8;
  transition: transform 0.3s ease;
}

.prodotto-correlato.glass-card-small:hover i.fa-solid {
  transform: rotate(10deg) scale(1.1);
}

.sezione-correlati {
  margin-top: 50px;
  padding: 20px 0;
}


/* Scroll orizzontale */
.correlati-scroll-wrapper {
  display: flex;
  gap: 18px;
  justify-content: space-evenly;
}
.correlati-scroll-wrapper::-webkit-scrollbar {
  height: 6px;
}
.correlati-scroll-wrapper::-webkit-scrollbar-thumb {
  background: rgba(5, 191, 158, 0.5);
  border-radius: 10px;
}

/* Card */
.prodotto-correlato.glass-card-small {
  flex: 0 0 180px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(5, 191, 158, 0.25);
  backdrop-filter: blur(12px);
  border-radius: 16px;
  padding: 12px;
  text-decoration: none;
  color: #fff;
  transition: all 0.3s ease;
  box-shadow: 0 8px 20px rgba(5, 191, 158, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  position: relative;
}
.prodotto-correlato.glass-card-small:hover {
  transform: translateY(-5px) scale(1.03);
  box-shadow: 0 10px 35px rgba(5, 191, 158, 0.35);
}

/* Immagine */
.image-wrapper {
  position: relative;
  width: 100%;
  height: 110px;
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.1);
  margin-bottom: 10px;
}
.image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.prodotto-correlato.glass-card-small:hover img {
  transform: scale(1.05);
}

/* Etichetta sconto */
.discount-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: linear-gradient(135deg, #05BF9E, #008DCE);
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  padding: 4px 9px;
  border-radius: 8px;
  box-shadow: 0 3px 10px rgba(5, 191, 158, 0.4);
}

/* Titolo */
.corr-title {
  font-size: 0.95rem;
  font-weight: 700;
  text-align: center;
  color: #fff;
  margin-bottom: 6px;
  line-height: 1.3em;
}

/* Prezzi */
.price-box {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.old-price {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.5);
  text-decoration: line-through;
}
.corr-price {
  font-size: 1.2rem;
  font-weight: 800;
  color: #05BF9E;
  text-shadow: 0 0 10px rgba(5, 191, 158, 0.3);
}

/* Icona fallback */
.image-wrapper i.fa-solid {
  font-size: 36px;
  color: #05BF9E;
  opacity: 0.8;
}

/* Bottone Attiva */
.cta-mini {
  display: inline-block;
  margin-top: 10px;
  background: linear-gradient(135deg, #05BF9E, #008DCE);
  color: #fff;
  font-weight: 700;
  padding: 8px 20px;
  border-radius: 30px;
  font-size: 14px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 0 15px rgba(5, 191, 158, 0.3);
}
.cta-mini:hover {
  background: linear-gradient(135deg, #04a88a, #007bb5);
  box-shadow: 0 0 25px rgba(5, 191, 158, 0.5);
  transform: scale(1.05);
}

/* Icona fallback */
.image-wrapper i.fa-solid {
  font-size: 36px;
  color: #05BF9E;
  opacity: 0.8;
}
.correlati-scroll-wrapper {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 10px 5px 20px;
  -webkit-overflow-scrolling: touch;
}

.correlati-scroll-wrapper::-webkit-scrollbar {
  height: 8px;
}

.correlati-scroll-wrapper::-webkit-scrollbar-thumb {
  background: rgba(5, 191, 158, 0.5);
  border-radius: 10px;
}

.correlati-scroll-wrapper::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
}

/* Ogni card rimane in orizzontale */
.prodotto-correlato {
  flex: 0 0 200px; /* puoi aumentare per card più larghe */
}

/* Header Moderno Vellum */
    .vellum-header {
      position: fixed;
      top: 20px;
      left: 50%;
      transform: translateX(-50%);
      z-index: 1000;
      width: calc(100% - 40px);
      max-width: 1200px;
      background: rgba(255, 255, 255, 0.08);
      backdrop-filter: blur(20px) saturate(180%);
      border: 1px solid rgba(255, 255, 255, 0.15);
      border-radius: 20px;
      padding: 1rem 2rem;
      box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
      animation: slideDown 0.6s ease-out;
    }

    @keyframes slideDown {
      from {
        opacity: 0;
        transform: translate(-50%, -30px);
      }
      to {
        opacity: 1;
        transform: translate(-50%, 0);
      }
    }

    .vellum-header-content {
      display: flex;
      justify-content: space-between;
      align-items: center;
    }

    .vellum-logo {
      display: flex;
      align-items: center;
      gap: 12px;
      text-decoration: none;
      z-index: 1001;
    }

    .vellum-logo-icon {
      width: 45px;
      height: 45px;
      background: linear-gradient(135deg, #00a99d, #05bf9e);
      border-radius: 12px;
      display: flex;
      align-items: center;
      justify-content: center;
      box-shadow: 0 4px 15px rgba(0, 169, 157, 0.4);
      overflow: hidden;
    }

    .vellum-logo-icon img {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }

    .vellum-logo-text {
      font-size: 1.5rem;
      font-weight: bold;
      color: white;
    }

    /* Navigation */
    .vellum-nav {
      display: flex;
      gap: 2.5rem;
      align-items: center;
    }

    .vellum-nav .menu {
      display: flex;
      gap: 2.5rem;
      list-style: none;
      margin: 0;
      padding: 0;
    }

    .vellum-nav .menu li {
      margin: 0;
    }

    .vellum-nav .menu a {
      color: rgba(255, 255, 255, 0.85);
      text-decoration: none;
      transition: all 0.3s;
      font-weight: 500;
      display: flex;
      align-items: center;
      gap: 8px;
      position: relative;
      padding: 0.5rem 0;
    }

    .vellum-nav .menu a::after {
      content: '';
      position: absolute;
      bottom: 0;
      left: 0;
      width: 0;
      height: 2px;
      background: linear-gradient(90deg, #00a99d, #05bf9e);
      transition: width 0.3s;
    }

    .vellum-nav .menu a:hover {
      color: #00a99d;
    }

    .vellum-nav .menu a:hover::after,
    .vellum-nav .menu .current-menu-item a::after,
    .vellum-nav .menu .current_page_item a::after {
      width: 100%;
    }

    .vellum-nav .menu .current-menu-item a,
    .vellum-nav .menu .current_page_item a {
      color: #00a99d;
    }

    /* Account Button */
    .vellum-account-btn {
      background: linear-gradient(135deg, #00a99d, #05bf9e);
      color: white;
      padding: 0.8rem 1.8rem;
      border-radius: 50px;
      text-decoration: none;
      font-weight: bold;
      transition: all 0.3s;
      box-shadow: 0 4px 15px rgba(0, 169, 157, 0.3);
      display: flex;
      align-items: center;
      gap: 8px;
    }

    .vellum-header .vellum-account-btn:hover {
      transform: translateY(-2px);
      box-shadow: 0 8px 25px rgba(0, 169, 157, 0.5);
    }

    .vellum-mobile-menu .vellum-account-btn:hover {
  transform: none !important; /* annulla completamente translate/scale/rotate */
  box-shadow: none !important;
}

    .vellum-nav .menu a.vellum-account-btn::after {
            background-color: transparent!  important;
            height: 0;
    }

    /* Mobile Menu Toggle */
    .vellum-menu-toggle {
      display: none;
      background: rgba(255, 255, 255, 0.1);
      border: 2px solid rgba(255, 255, 255, 0.2);
      border-radius: 12px;
      width: 45px;
      height: 45px;
      cursor: pointer;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      gap: 5px;
      padding: 0;
      transition: all 0.3s;
    }

    .vellum-menu-toggle:hover {
      background: rgba(255, 255, 255, 0.15);
      border-color: #00a99d;
    }

    .vellum-menu-toggle span {
      display: block;
      width: 22px;
      height: 2px;
      background: white;
      border-radius: 2px;
      transition: all 0.3s;
    }

    .vellum-menu-toggle.active span:nth-child(1) {
      transform: rotate(45deg) translate(5px, 5px);
    }

    .vellum-menu-toggle.active span:nth-child(2) {
      opacity: 0;
    }

    .vellum-menu-toggle.active span:nth-child(3) {
      transform: rotate(-45deg) translate(6px, -6px);
    }


    /* Skip Link */
    .skip-link {
      position: absolute;
      top: -40px;
      left: 0;
      background: #00a99d;
      color: white;
      padding: 8px 16px;
      text-decoration: none;
      z-index: 100000;
    }

    .skip-link:focus {
      top: 0;
    }

    /* Body padding per header fisso */
    body {
      padding-top: 0;
    }

     body {
      background: linear-gradient(135deg, #0a1628 0%, #1a3a52 30%, #0d4d4d 70%, #1a5f5a 100%);
      min-height: 100vh;
      position: relative;
      overflow-x: hidden;
    }

    .app-background {
      position: relative;
      min-height: 100vh;
    }

    /* Bolle animate di sfondo */
    .bubble {
      position: fixed;
      border-radius: 50%;
      background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.2), transparent);
      backdrop-filter: blur(60px);
      animation: float 25s infinite ease-in-out;
      pointer-events: none;
    }

    .bubble:nth-child(1) {
      width: 600px;
      height: 600px;
      top: -100px;
      left: -100px;
      background: radial-gradient(circle at 30% 30%, rgba(0, 169, 157, 0.15), transparent);
      animation-delay: 0s;
    }

    .bubble:nth-child(2) {
      width: 500px;
      height: 500px;
      top: 20%;
      right: -150px;
      background: radial-gradient(circle at 30% 30%, rgba(102, 126, 234, 0.15), transparent);
      animation-delay: 7s;
    }

    .bubble:nth-child(3) {
      width: 700px;
      height: 700px;
      bottom: -200px;
      left: 10%;
      background: radial-gradient(circle at 30% 30%, rgba(0, 200, 180, 0.12), transparent);
      animation-delay: 14s;
    }

    .bubble:nth-child(4) {
      width: 400px;
      height: 400px;
      top: 60%;
      right: 20%;
      background: radial-gradient(circle at 30% 30%, rgba(94, 53, 177, 0.1), transparent);
      animation-delay: 21s;
    }

    @keyframes float {
      0%, 100% {
        transform: translate(0, 0) scale(1) rotate(0deg);
      }
      25% {
        transform: translate(80px, -50px) scale(1.15) rotate(90deg);
      }
      50% {
        transform: translate(-50px, 80px) scale(0.9) rotate(180deg);
      }
      75% {
        transform: translate(60px, 40px) scale(1.08) rotate(270deg);
      }
    }

    /* Parallax effect sulle bolle */
    .bubble.parallax {
      transition: transform 0.1s ease-out;
    }

    .skip-link {
      display: none;
    }

    .offer-card .offer-location {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #777;
  font-size: 0.9rem;
  margin-top: 5px;
}

.offer-card .offer-location i {
  color: #05BF9E;
}

.offer-card .offer-locale {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #444;
  font-weight: 600;
  font-size: 0.95rem;
  margin-top: 4px;
}

.offer-card .offer-locale i {
  color: #00A99D;
}

    /* Offers Section */
    .offers-section {
        max-width: 1400px;
        margin: 0 auto 3rem;
        padding: 0 20px;
        animation: fadeInUp 0.8s ease-out 0.4s both;
        position: relative;
        z-index: 10;
    }

    @keyframes fadeInUp {
        from {
            opacity: 0;
            transform: translateY(30px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .section-header {
        margin-bottom: 2rem;
    }

    .section-header h2 {
        font-size: 2.5rem;
        color: white;
        margin-bottom: 0.5rem;
        font-weight: 800;
    }

    .section-header p {
        font-size: 1.1rem;
        color: rgba(255, 255, 255, 0.7);
    }

    .offers-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 2rem;
    }

    .offer-card {
        background: rgba(255, 255, 255, 0.06);
        backdrop-filter: blur(25px) saturate(180%);
        border: 1px solid rgba(255, 255, 255, 0.12);
        border-radius: 25px;
        overflow: hidden;
        transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        position: relative;
        cursor: pointer;
    }

    .offer-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(135deg, rgba(0, 169, 157, 0.1), transparent);
        opacity: 0;
        transition: opacity 0.4s;
        z-index: 1;
    }

    .offer-card:hover::before {
        opacity: 1;
    }

    .offer-card:hover {
        transform: translateY(-10px) scale(1.02);
        box-shadow: 0 25px 60px rgba(0, 169, 157, 0.3);
        border-color: rgba(0, 169, 157, 0.4);
    }

    .discount-badge {
        position: absolute;
        top: 15px;
        left: 15px;
        background: linear-gradient(135deg, #FF4756, #FF6B7A);
        color: white;
        padding: 0.5rem 1rem;
        border-radius: 50px;
        font-weight: bold;
        font-size: 1rem;
        z-index: 10;
        box-shadow: 0 4px 15px rgba(255, 71, 86, 0.5);
    }

    .offer-image {
        width: 100%;
        height: 220px;
        overflow: hidden;
        position: relative;
    }

    .offer-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.5s;
    }

    .offer-card:hover .offer-image img {
        transform: translateY(-10px) scale(1.02);
    }

    .offer-content {
        padding: 1.5rem;
        position: relative;
        z-index: 2;
    }

    .offer-title {
        font-size: 1.4rem;
        color: white;
        margin-bottom: 0.8rem;
        font-weight: 700;
    }

    .offer-price {
        display: flex;
        align-items: center;
        gap: 0.8rem;
        margin-bottom: 1rem;
        flex-wrap: wrap;
    }

    .price-label {
        color: rgba(255, 255, 255, 0.6);
        font-size: 0.9rem;
    }

    .price-old {
        color: rgba(255, 255, 255, 0.4);
        text-decoration: line-through;
        font-size: 1.1rem;
    }

    .price-new {
        color: #00ff88;
        font-size: 1.8rem;
        font-weight: bold;
    }

    .offer-btn {
        width: 100%;
        background: linear-gradient(135deg, #FF4756, #FF6B7A);
        color: white;
        padding: 1rem;
        border: none;
        border-radius: 15px;
        font-weight: bold;
        font-size: 1.1rem;
        cursor: pointer;
        transition: all 0.3s;
        box-shadow: 0 4px 15px rgba(255, 71, 86, 0.3);
        text-decoration: none;
        display: block;
        text-align: center;
    }

    .offer-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(255, 71, 86, 0.5);
    }

    .no-offers {
        text-align: center;
        padding: 4rem 2rem;
        color: rgba(255, 255, 255, 0.7);
    }

    /* Responsive */
    @media (max-width: 1024px) {
        .offers-grid {
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        }
    }

    @media (max-width: 768px) {
        .offers-grid {
            grid-template-columns: 1fr;
        }

        .section-header h2 {
            font-size: 2rem;
        }

        .offer-price {
            font-size: 0.9rem;
        }

        .price-new {
            font-size: 1.5rem;
        }
    }

    /* Offers Section */
    .offers-section {
        max-width: 1400px;
        margin: 0 auto 3rem;
        padding: 0 20px;
        animation: fadeInUp 0.8s ease-out 0.4s both;
        position: relative;
        z-index: 10;
    }

    @keyframes fadeInUp {
        from {
            opacity: 0;
            transform: translateY(30px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .section-header {
        margin-bottom: 2rem;
    }

    .section-header h2 {
        font-size: 2.5rem;
        color: white;
        margin-bottom: 0.5rem;
        font-weight: 800;
    }

    .section-header p {
        font-size: 1.1rem;
        color: rgba(255, 255, 255, 0.7);
    }

    .offers-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 2rem;
    }

    .offer-card {
        background: rgba(255, 255, 255, 0.06);
        backdrop-filter: blur(25px) saturate(180%);
        border: 1px solid rgba(255, 255, 255, 0.12);
        border-radius: 25px;
        overflow: hidden;
        transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        position: relative;
        cursor: pointer;
    }

    .offer-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(135deg, rgba(0, 169, 157, 0.1), transparent);
        opacity: 0;
        transition: opacity 0.4s;
        z-index: 1;
        pointer-events: none;
    }

    .offer-card:hover::before {
        opacity: 1;
    }

    .offer-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 25px 60px rgba(0, 169, 157, 0.3);
        border-color: rgba(0, 169, 157, 0.4);
    }

    .discount-badge {
        position: absolute;
        top: 15px;
        left: 15px;
        background: linear-gradient(135deg, #FF4756, #FF6B7A);
        color: white;
        padding: 0.5rem 1rem;
        border-radius: 50px;
        font-weight: bold;
        font-size: 1rem;
        z-index: 10;
        box-shadow: 0 4px 15px rgba(255, 71, 86, 0.5);
    }

    .offer-image {
        width: 100%;
        height: 220px;
        overflow: hidden;
        position: relative;
    }

    .offer-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.5s ease;
    }

    .offer-card:hover .offer-image img {
        transform: scale(1.1);
    }

    .offer-content {
        padding: 1.5rem;
        position: relative;
        z-index: 2;
    }

    .offer-title {
        font-size: 1.4rem;
        color: white;
        margin-bottom: 0.8rem;
        font-weight: 700;
    }

    .offer-price {
        display: flex;
        align-items: center;
        gap: 0.8rem;
        margin-bottom: 1rem;
        flex-wrap: wrap;
    }

    .price-label {
        color: rgba(255, 255, 255, 0.6);
        font-size: 0.9rem;
    }

    .price-old {
        color: rgba(255, 255, 255, 0.4);
        text-decoration: line-through;
        font-size: 1.1rem;
    }

    .price-new {
        color: #00ff88;
        font-size: 1.8rem;
        font-weight: bold;
    }

    .offer-btn {
        width: 100%;
        background: linear-gradient(135deg, #FF4756, #FF6B7A);
        color: white;
        padding: 1rem;
        border: none;
        border-radius: 15px;
        font-weight: bold;
        font-size: 1.1rem;
        cursor: pointer;
        transition: all 0.3s;
        box-shadow: 0 4px 15px rgba(255, 71, 86, 0.3);
        text-decoration: none;
        display: block;
        text-align: center;
    }

    .offer-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(255, 71, 86, 0.5);
    }

    .no-offers {
        text-align: center;
        padding: 4rem 2rem;
        color: rgba(255, 255, 255, 0.7);
    }

    /* Responsive */
    @media (max-width: 1024px) {
        .offers-grid {
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        }
    }

    @media (max-width: 768px) {
        .offers-grid {
            grid-template-columns: 1fr;
        }

        .section-header h2 {
            font-size: 2rem;
        }

        .offer-price {
            font-size: 0.9rem;
        }

        .price-new {
            font-size: 1.5rem;
        }
    }

    span.nome-locale {
      color: #05BF9E;
      font-size: 17px;
    }

    span.citta {
      color: #fff;
      font-size: 17px;
    }

    
/* ======= Mobile App Navigation - Ultimate Glassmorphism ======= */
.vellum-mobile-nav {
  position: fixed;
  bottom: 12px; /* leggermente staccato dal bordo per eleganza */
  left: 12px;
  right: 12px;
  background: rgba(255, 255, 255, 0.15); /* vetro traslucido chiaro */
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-radius: 30px; /* super arrotondato */
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  z-index: 9999;
  opacity: 1;
  transition: all 0.3s ease-in-out;
  opacity: 0;
}

/* Menu flex centrale */
.vellum-mobile-nav .menu {
  display: flex;
  justify-content: space-around;
  align-items: center;
  margin: 0;
  padding: 12px 0;
  list-style: none;
}

/* Singolo item */
.vellum-mobile-nav .menu li {
  flex: 1;
  text-align: center;
  position: relative;
}

/* Link con effetto glassy glow */
.vellum-mobile-nav .menu a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  transition: all 0.25s ease;
  position: relative;
  z-index: 1;
}

.vellum-mobile-nav .menu a i {
  font-size: 1.6rem;
  margin-bottom: 5px;
  color: #fff; /* giallo McDonald's */
  text-shadow: 0 0 8px rgba(255, 204, 0, 0.7);
  transition: all 0.25s ease;
}

/* Hover effetto glow animato */
.vellum-mobile-nav .menu a:hover i,
.vellum-mobile-nav .menu a:focus i {
  transform: scale(1.15);
  color: #05BF9E;
}

.vellum-mobile-nav .menu a:hover i {
  text-shadow: 0 0 12px #ffcc00, 0 0 24px #db0007;
}

/* Stato attivo con rosso McDonald's glow */
.vellum-mobile-nav .menu a.active i {
  color: #db0007;
  text-shadow: 0 0 12px #db0007, 0 0 24px rgba(219, 0, 7, 0.5);
}

.vellum-mobile-nav .menu a.active span {
  color: #db0007;
  text-shadow: 0 0 6px rgba(219, 0, 7, 0.7);
}

/* Animazione di comparsa all’apertura */
.vellum-mobile-nav.show {
  animation: slideUp 0.5s ease forwards;
}

@keyframes slideUp {
  0% { transform: translateY(100px); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}

.vellum-mobile-nav a.vellum-account-btn {
  background: transparent!important;
  box-shadow: none;
}

.vellum-mobile-nav a.vellum-account-btn span {
  display: none;
}

#offers-grid.offers-grid-container {
    display: flex !important;
    flex-wrap: wrap !important;
    width: 100% !important;
    min-height: 300px !important;
    justify-content: flex-start !important;
    flex-direction: row !important;
    gap: 20px !important;
}

/* Mantiene le info-locale con il loro stile */
.offerta .flex.info-locale {
    justify-content: space-between !important;
    flex-direction: row !important;
}

article {
    width: 92%!important;
}

* {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            background: linear-gradient(135deg, #0a1628 0%, #1a3a52 30%, #0d4d4d 70%, #1a5f5a 100%);
            min-height: 100vh;
            overflow-x: hidden;
        }

        /* Sidebar */
        .sidebar {
            position: fixed;
            left: 0;
            top: 0;
            width: 280px;
            height: 100vh;
            background: rgba(255, 255, 255, 0.05);
            backdrop-filter: blur(20px);
            border-right: 1px solid rgba(255, 255, 255, 0.1);
            padding: 2rem 0;
            z-index: 1000;
            transition: transform 0.3s;
        }

        .logo-sidebar {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 0 2rem;
            margin-bottom: 3rem;
            color: white;
            text-decoration: none;
        }

        .logo-icon {
            width: 45px;
            height: 45px;
            background: linear-gradient(135deg, #00a99d, #05bf9e);
            border-radius: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.3rem;
        }

        .logo-text {
            font-size: 1.5rem;
            font-weight: bold;
        }

        .sidebar-menu {
            list-style: none;
        }

        .menu-item {
            margin-bottom: 0.5rem;
        }

        .menu-link {
            display: flex;
            align-items: center;
            gap: 1rem;
            padding: 1rem 2rem;
            color: rgba(255, 255, 255, 0.7);
            text-decoration: none;
            transition: all 0.3s;
            position: relative;
        }

        .menu-link::before {
            content: '';
            position: absolute;
            left: 0;
            top: 0;
            bottom: 0;
            width: 4px;
            background: linear-gradient(180deg, #00a99d, #05bf9e);
            transform: scaleY(0);
            transition: transform 0.3s;
        }

        .menu-link:hover,
        .menu-link.active {
            color: white;
            background: rgba(0, 169, 157, 0.1);
        }

        .menu-link.active::before {
            transform: scaleY(1);
        }

        .menu-icon {
            width: 24px;
            text-align: center;
            font-size: 1.2rem;
        }

        /* Main Content */
        .main-content {
            margin-left: 280px;
            padding: 2rem;
            min-height: 100vh;
        }

        /* Top Bar */
        .top-bar {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 3rem;
            background: rgba(255, 255, 255, 0.05);
            backdrop-filter: blur(20px);
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 20px;
            padding: 1.5rem 2rem;
        }

        .welcome-text h1 {
            font-size: 2rem;
            color: white;
            margin-bottom: 0.3rem;
        }

        .welcome-text p {
            color: rgba(255, 255, 255, 0.6);
        }

        .top-actions {
            display: flex;
            gap: 1rem;
            align-items: center;
        }

        .notification-btn {
            position: relative;
            width: 45px;
            height: 45px;
            background: rgba(255, 255, 255, 0.1);
            border: 1px solid rgba(255, 255, 255, 0.2);
            border-radius: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            cursor: pointer;
            transition: all 0.3s;
            text-decoration: none;
        }

        .notification-btn:hover {
            background: rgba(255, 255, 255, 0.15);
            transform: translateY(-2px);
        }

        .notification-badge {
            position: absolute;
            top: -5px;
            right: -5px;
            width: 20px;
            height: 20px;
            background: #FF4756;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 0.7rem;
            font-weight: bold;
        }

        .create-offer-btn {
            background: linear-gradient(135deg, #00a99d, #05bf9e);
            color: white;
            padding: 1rem 2rem;
            border-radius: 15px;
            border: none;
            font-weight: bold;
            cursor: pointer;
            transition: all 0.3s;
            box-shadow: 0 4px 15px rgba(0, 169, 157, 0.3);
            display: flex;
            align-items: center;
            gap: 0.5rem;
            text-decoration: none;
        }

        .create-offer-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 25px rgba(0, 169, 157, 0.5);
        }

        /* Stats Grid */
        .stats-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 2rem;
            margin-bottom: 3rem;
        }

        .stat-card {
            background: rgba(255, 255, 255, 0.05);
            backdrop-filter: blur(20px);
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 20px;
            padding: 2rem;
            transition: all 0.3s;
            position: relative;
            overflow: hidden;
        }

        .stat-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 4px;
            background: linear-gradient(90deg, #00a99d, #05bf9e);
            transform: scaleX(0);
            transition: transform 0.3s;
        }

        .stat-card:hover::before {
            transform: scaleX(1);
        }

        .stat-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 20px 40px rgba(0, 169, 157, 0.2);
        }

        .stat-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 1rem;
        }

        .stat-title {
            color: rgba(255, 255, 255, 0.7);
            font-size: 0.9rem;
            text-transform: uppercase;
            letter-spacing: 1px;
        }

        .stat-icon {
            width: 45px;
            height: 45px;
            border-radius: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.3rem;
        }

        .stat-icon.primary {
            background: rgba(0, 169, 157, 0.2);
            color: #00a99d;
        }

        .stat-icon.success {
            background: rgba(0, 255, 136, 0.2);
            color: #00ff88;
        }

        .stat-icon.warning {
            background: rgba(255, 193, 7, 0.2);
            color: #ffc107;
        }

        .stat-icon.danger {
            background: rgba(255, 71, 86, 0.2);
            color: #FF4756;
        }

        .stat-value {
            font-size: 2.5rem;
            color: white;
            font-weight: bold;
            margin-bottom: 0.5rem;
        }

        .stat-change {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            font-size: 0.9rem;
        }

        .stat-change.positive {
            color: #00ff88;
        }

        .stat-change.negative {
            color: #FF4756;
        }

        /* Content Grid */
        .content-grid {
            display: grid;
            grid-template-columns: 2fr 1fr;
            gap: 2rem;
            margin-bottom: 2rem;
        }

        .card {
            background: rgba(255, 255, 255, 0.05);
            backdrop-filter: blur(20px);
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 20px;
            padding: 2rem;
        }

        .card-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 2rem;
        }

        .card-title {
            font-size: 1.5rem;
            color: white;
            font-weight: bold;
        }

        .card-action {
            color: #00a99d;
            text-decoration: none;
            font-size: 0.9rem;
            transition: color 0.3s;
        }

        .card-action:hover {
            color: #05bf9e;
        }

        /* Offers Table */
        .offers-table {
            width: 100%;
            border-collapse: collapse;
        }

        .offers-table th {
            text-align: left;
            padding: 1rem;
            color: rgba(255, 255, 255, 0.7);
            font-size: 0.9rem;
            text-transform: uppercase;
            letter-spacing: 1px;
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        }

        .offers-table td {
            padding: 1rem;
            color: white;
            border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        }

        .offers-table tr:hover {
            background: rgba(255, 255, 255, 0.03);
        }

        .offer-name {
            display: flex;
            align-items: center;
            gap: 1rem;
        }

        .offer-thumb {
            width: 50px;
            height: 50px;
            border-radius: 10px;
            object-fit: cover;
        }

        .status-badge {
            padding: 0.4rem 1rem;
            border-radius: 50px;
            font-size: 0.85rem;
            font-weight: bold;
        }

        .status-badge.active {
            background: rgba(0, 255, 136, 0.2);
            color: #00ff88;
        }

        .status-badge.inactive {
            background: rgba(255, 71, 86, 0.2);
            color: #FF4756;
        }

        .status-badge.pending {
            background: rgba(255, 193, 7, 0.2);
            color: #ffc107;
        }

        .action-buttons {
            display: flex;
            gap: 0.5rem;
        }

        .action-btn {
            width: 35px;
            height: 35px;
            border-radius: 8px;
            border: none;
            cursor: pointer;
            transition: all 0.3s;
            display: flex;
            align-items: center;
            justify-content: center;
            text-decoration: none;
        }

        .action-btn.edit {
            background: rgba(0, 169, 157, 0.2);
            color: #00a99d;
        }

        .action-btn.delete {
            background: rgba(255, 71, 86, 0.2);
            color: #FF4756;
        }

        .action-btn:hover {
            transform: scale(1.1);
        }

        /* Recent Activity */
        .activity-list {
            list-style: none;
        }

        .activity-item {
            display: flex;
            gap: 1rem;
            padding: 1rem 0;
            border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        }

        .activity-item:last-child {
            border-bottom: none;
        }

        .activity-icon {
            width: 45px;
            height: 45px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
        }

        .activity-icon.success {
            background: rgba(0, 255, 136, 0.2);
            color: #00ff88;
        }

        .activity-icon.info {
            background: rgba(0, 169, 157, 0.2);
            color: #00a99d;
        }

        .activity-icon.warning {
            background: rgba(255, 193, 7, 0.2);
            color: #ffc107;
        }

        .activity-content {
            flex: 1;
        }

        .activity-title {
            color: white;
            margin-bottom: 0.3rem;
            font-weight: 500;
        }

        .activity-time {
            color: rgba(255, 255, 255, 0.5);
            font-size: 0.85rem;
        }

        /* Chart Container */
        .chart-container {
            height: 300px;
            margin-top: 1rem;
            display: flex;
            align-items: flex-end;
            justify-content: space-around;
            gap: 1rem;
            padding: 1rem;
            background: rgba(0, 0, 0, 0.2);
            border-radius: 15px;
        }

        .chart-bar {
            flex: 1;
            background: linear-gradient(180deg, #00a99d, #05bf9e);
            border-radius: 10px 10px 0 0;
            position: relative;
            transition: all 0.3s;
            cursor: pointer;
        }

        .chart-bar:hover {
            opacity: 0.8;
            transform: translateY(-5px);
        }

        .chart-label {
            position: absolute;
            bottom: -30px;
            left: 50%;
            transform: translateX(-50%);
            color: rgba(255, 255, 255, 0.6);
            font-size: 0.85rem;
            white-space: nowrap;
        }

        .chart-value {
            position: absolute;
            top: -25px;
            left: 50%;
            transform: translateX(-50%);
            color: white;
            font-weight: bold;
            font-size: 0.9rem;
        }

        /* Modal */
        .modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0, 0, 0, 0.7);
            backdrop-filter: blur(10px);
            z-index: 2000;
            align-items: center;
            justify-content: center;
            padding: 2rem;
        }

        .modal.active {
            display: flex;
        }

        .modal-content {
            background: rgba(26, 58, 82, 0.95);
            backdrop-filter: blur(20px);
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 25px;
            padding: 3rem;
            max-width: 600px;
            width: 100%;
            max-height: 90vh;
            overflow-y: auto;
        }

        .modal-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 2rem;
        }

        .modal-title {
            font-size: 1.8rem;
            color: white;
            font-weight: bold;
        }

        .close-btn {
            width: 40px;
            height: 40px;
            background: rgba(255, 255, 255, 0.1);
            border: none;
            border-radius: 10px;
            color: white;
            cursor: pointer;
            transition: all 0.3s;
        }

        .close-btn:hover {
            background: rgba(255, 71, 86, 0.3);
            transform: scale(1.1);
        }

        .form-group {
            margin-bottom: 1.5rem;
        }

        .form-label {
            display: block;
            color: rgba(255, 255, 255, 0.8);
            margin-bottom: 0.5rem;
            font-weight: 500;
        }

        .form-input {
            width: 100%;
            padding: 1rem;
            background: rgba(255, 255, 255, 0.08);
            border: 2px solid rgba(255, 255, 255, 0.1);
            border-radius: 12px;
            color: white;
            font-size: 1rem;
            transition: all 0.3s;
        }

        .form-input:focus {
            outline: none;
            border-color: #00a99d;
            box-shadow: 0 0 20px rgba(0, 169, 157, 0.3);
        }

        .form-input::placeholder {
            color: rgba(255, 255, 255, 0.4);
        }

        textarea.form-input {
            resize: vertical;
            min-height: 100px;
        }

        .form-actions {
            display: flex;
            gap: 1rem;
            margin-top: 2rem;
        }

        .btn {
            flex: 1;
            padding: 1rem;
            border-radius: 12px;
            border: none;
            font-weight: bold;
            cursor: pointer;
            transition: all 0.3s;
        }

        .btn-primary {
            background: linear-gradient(135deg, #00a99d, #05bf9e);
            color: white;
        }

        .btn-primary:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 25px rgba(0, 169, 157, 0.5);
        }

        .btn-secondary {
            background: rgba(255, 255, 255, 0.1);
            color: white;
        }

        .btn-secondary:hover {
            background: rgba(255, 255, 255, 0.15);
        }

        .page-content {
            display: none;
        }

        .page-content.active {
            display: block;
        }

        .success-message {
            background: rgba(0, 255, 136, 0.2);
            color: #00ff88;
            padding: 1rem 1.5rem;
            border-radius: 12px;
            margin-bottom: 2rem;
            border: 1px solid rgba(0, 255, 136, 0.3);
        }

        /* Responsive */
        @media (max-width: 1024px) {
            .content-grid {
                grid-template-columns: 1fr;
            }
        }

        @media (max-width: 768px) {
            .sidebar {
                transform: translateX(-100%);
            }

            .sidebar.active {
                transform: translateX(0);
            }

            .main-content {
                margin-left: 0;
            }

            .stats-grid {
                grid-template-columns: 1fr;
            }

            .top-bar {
                flex-direction: column;
                gap: 1rem;
                align-items: flex-start;
            }

            .chart-container {
                height: 200px;
            }
        }

        .scanner-section {
            text-align: center;
            margin-bottom: 2rem;
        }

        .scanner-title {
            font-size: 1.8rem;
            color: white;
            margin-bottom: 1rem;
            font-weight: bold;
        }

        .scanner-subtitle {
            color: rgba(255, 255, 255, 0.7);
            margin-bottom: 2rem;
            font-size: 1.1rem;
        }

        .scanner-icon-container {
            position: relative;
            width: 200px;
            height: 200px;
            margin: 0 auto 2rem;
        }

        .scanner-icon {
            width: 200px;
            height: 200px;
            background: rgba(255, 255, 255, 0.05);
            border: 3px dashed rgba(0, 169, 157, 0.5);
            border-radius: 20px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 5rem;
            color: #00a99d;
            position: relative;
            overflow: hidden;
        }

        .scanner-line {
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 3px;
            background: linear-gradient(90deg, transparent, #00a99d, transparent);
            animation: scan 2s linear infinite;
        }

        @keyframes scan {
            0% { top: 0; }
            100% { top: 100%; }
        }

        .scanner-corners {
            position: absolute;
            inset: -10px;
        }

        .corner {
            position: absolute;
            width: 30px;
            height: 30px;
            border: 3px solid #00a99d;
        }

        .corner.top-left {
            top: 0;
            left: 0;
            border-right: none;
            border-bottom: none;
            border-radius: 20px 0 0 0;
        }

        .corner.top-right {
            top: 0;
            right: 0;
            border-left: none;
            border-bottom: none;
            border-radius: 0 20px 0 0;
        }

        .corner.bottom-left {
            bottom: 0;
            left: 0;
            border-right: none;
            border-top: none;
            border-radius: 0 0 0 20px;
        }

        .corner.bottom-right {
            bottom: 0;
            right: 0;
            border-left: none;
            border-top: none;
            border-radius: 0 0 20px 0;
        }

        .scan-btn {
            width: 100%;
            background: linear-gradient(135deg, #00a99d, #05bf9e);
            color: white;
            padding: 1.3rem;
            border: none;
            border-radius: 20px;
            font-size: 1.2rem;
            font-weight: bold;
            cursor: pointer;
            transition: all 0.3s;
            box-shadow: 0 8px 30px rgba(0, 169, 157, 0.4);
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 0.8rem;
        }

        .scan-btn:hover {
            transform: translateY(-3px);
            box-shadow: 0 12px 40px rgba(0, 169, 157, 0.6);
        }

        .divider {
            display: flex;
            align-items: center;
            margin: 2rem 0;
            color: rgba(255, 255, 255, 0.5);
            font-size: 0.9rem;
        }

        .divider::before,
        .divider::after {
            content: '';
            flex: 1;
            height: 1px;
            background: rgba(255, 255, 255, 0.1);
        }

        .divider span {
            padding: 0 1rem;
        }

        .manual-input-section {
            margin-top: 2rem;
        }

        .input-label {
            color: rgba(255, 255, 255, 0.8);
            margin-bottom: 0.8rem;
            display: block;
            font-weight: 500;
        }

        .code-input {
            width: 100%;
            padding: 1.2rem;
            background: rgba(255, 255, 255, 0.08);
            border: 2px solid rgba(255, 255, 255, 0.15);
            border-radius: 15px;
            color: white;
            font-size: 1.1rem;
            text-align: center;
            letter-spacing: 3px;
            font-weight: bold;
            transition: all 0.3s;
            margin-bottom: 1rem;
        }

        .code-input:focus {
            outline: none;
            border-color: #00a99d;
            box-shadow: 0 0 30px rgba(0, 169, 157, 0.3);
            background: rgba(255, 255, 255, 0.12);
        }

        .validate-btn {
            width: 100%;
            background: rgba(255, 255, 255, 0.1);
            color: white;
            padding: 1.2rem;
            border: 2px solid rgba(255, 255, 255, 0.2);
            border-radius: 15px;
            font-size: 1.1rem;
            font-weight: bold;
            cursor: pointer;
            transition: all 0.3s;
        }

        .validate-btn:hover {
            background: rgba(255, 255, 255, 0.15);
            border-color: #00a99d;
            transform: translateY(-2px);
        }

        .result-section {
            display: none;
            text-align: center;
            animation: fadeInScale 0.5s ease-out;
        }

        .result-section.active {
            display: block;
        }

        @keyframes fadeInScale {
            from {
                opacity: 0;
                transform: scale(0.9);
            }
            to {
                opacity: 1;
                transform: scale(1);
            }
        }

        .result-icon {
            width: 120px;
            height: 120px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0 auto 1.5rem;
            font-size: 3.5rem;
            position: relative;
        }

        .result-icon.success {
            background: rgba(0, 255, 136, 0.2);
            color: #00ff88;
            animation: successPulse 2s ease-in-out infinite;
        }

        .result-icon.error {
            background: rgba(255, 71, 86, 0.2);
            color: #FF4756;
            animation: shake 0.5s ease-in-out;
        }

        @keyframes successPulse {
            0%, 100% {
                box-shadow: 0 0 0 0 rgba(0, 255, 136, 0.4);
            }
            50% {
                box-shadow: 0 0 0 20px rgba(0, 255, 136, 0);
            }
        }

        @keyframes shake {
            0%, 100% { transform: translateX(0); }
            25% { transform: translateX(-10px); }
            75% { transform: translateX(10px); }
        }

        .result-title {
            font-size: 2rem;
            color: white;
            margin-bottom: 1rem;
            font-weight: bold;
        }

        .result-message {
            color: rgba(255, 255, 255, 0.7);
            font-size: 1.1rem;
            margin-bottom: 2rem;
        }

        .offer-details {
            background: rgba(255, 255, 255, 0.05);
            border-radius: 15px;
            padding: 1.5rem;
            margin-bottom: 1.5rem;
            text-align: left;
        }

        .detail-row {
            display: flex;
            justify-content: space-between;
            padding: 0.8rem 0;
            border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        }

        .detail-row:last-child {
            border-bottom: none;
        }

        .detail-label {
            color: rgba(255, 255, 255, 0.6);
        }

        .detail-value {
            color: white;
            font-weight: bold;
        }

        .detail-value.highlight {
            color: #00ff88;
            font-size: 1.2rem;
        }

        .btn-success {
            background: linear-gradient(135deg, #00ff88, #00d46e);
            color: #0a1628;
        }

        .btn-success:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 25px rgba(0, 255, 136, 0.4);
        }

        .btn-danger {
            background: linear-gradient(135deg, #FF4756, #FF6B7A);
            color: white;
        }

        .btn-danger:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 25px rgba(255, 71, 86, 0.4);
        }

        .timer-container {
            background: rgba(255, 193, 7, 0.1);
            border: 2px solid rgba(255, 193, 7, 0.3);
            border-radius: 15px;
            padding: 1rem;
            margin-bottom: 1.5rem;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 0.5rem;
        }

        .timer-icon {
            color: #ffc107;
            font-size: 1.5rem;
        }

        .timer-text {
            color: #ffc107;
            font-weight: bold;
            font-size: 1.1rem;
        }

        .loading-spinner {
            display: none;
            width: 50px;
            height: 50px;
            border: 5px solid rgba(255, 255, 255, 0.1);
            border-top-color: #00a99d;
            border-radius: 50%;
            animation: spin 1s linear infinite;
            margin: 2rem auto;
        }

        .loading-spinner.active {
            display: block;
        }

        @keyframes spin {
            to { transform: rotate(360deg); }
        }


        .bubble {
            z-index: -9999;
        }