
  :root{
    --accent1: #ff6a00;
    --accent2: #ee0979;
    --bg-shadow: rgba(0,0,0,0.22);
  }

  /* modal base */
  #offers-modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    font-family: "Poppins", system-ui, Arial;
    -webkit-font-smoothing:antialiased;
    -moz-osx-font-smoothing:grayscale;
  }

  /* backdrop — subtle blur + fade */
  #offers-modal::before {
    content: "";
    position: absolute;
    inset: 0;
    backdrop-filter: blur(6px) saturate(110%);
    background: linear-gradient(180deg, rgba(6,10,15,0.35), rgba(6,10,15,0.45));
    opacity: 0;
    animation: fadeInBg 420ms ease forwards;
  }
  @keyframes fadeInBg { to { opacity: 1; } }

  /* card container with spring pop */
  #offers-modal .card {
    position: relative;
    z-index: 2;
    width: 92%;
    max-width: 560px;
    background: linear-gradient(180deg, rgba(255,255,255,0.95), rgba(250,250,250,0.95));
    border-radius: 18px;
    padding: 22px 22px 26px;
    box-shadow: 0 18px 50px var(--bg-shadow);
    text-align: center;
    transform: translateY(28px) scale(0.96);
    opacity: 0;
    animation: cardEnter 640ms cubic-bezier(.16,.88,.37,1) 200ms forwards;
    overflow: visible;
  }
  @keyframes cardEnter {
    to { transform: translateY(0) scale(1); opacity: 1; }
  }

  /* floating subtle motion to make it lively */
  #offers-modal .card.floating {
    animation: cardEnter 640ms cubic-bezier(.16,.88,.37,1) 200ms forwards,
               floaty 6s ease-in-out 1s infinite;
  }
  @keyframes floaty {
    0% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-6px) scale(1.002); }
    100% { transform: translateY(0) scale(1); }
  }

  /* header layout - center title and leave space for floating close button */
  .offer-header {
    position: relative;
    display:flex;
    align-items:center;
    justify-content:center;
    gap:10px;
    margin-bottom:14px;
    padding-top:6px;
  }

  .offer-header h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #0f1720;
    margin: 0;
    padding-right: 6px; /* safe space */
    display:flex;
    align-items:center;
    gap:10px;
  }

  .offer-emoji {
    display:inline-block;
    transform-origin:50% 50%;
    animation: emojiPop 900ms cubic-bezier(.2,.9,.3,1) forwards;
    font-size:1.05rem;
  }
  @keyframes emojiPop { from { transform: scale(.8) translateY(-4px); opacity:0; } to { transform: scale(1) translateY(0); opacity:1; } }

  /* floating close button placed outside top-right corner */
  .close-offers {
    position: absolute;
    right: -14px;
    top: -14px;
    background: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 18px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    color: #ff3b3b;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(0,0,0,0.18);
    transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
  }
  .close-offers:hover { transform: translateY(-3px) rotate(-8deg); box-shadow:0 10px 26px rgba(0,0,0,0.22); background:#fff; }
  .close-offers:focus { outline: 3px solid rgba(255,90,90,0.14); }

  /* offers list - each item enters with a stagger */
  .offers-grid {
    display: grid;
    gap: 12px;
    margin: 6px 0 18px;
    align-items: start;
  }

  .offer {
    background: linear-gradient(180deg, #ffffff 0%, #fbfbfb 100%);
    border-radius: 12px;
    padding: 12px 14px;
    font-weight: 600;
    color: #242424;
    transition: transform 240ms cubic-bezier(.2,.9,.3,1), box-shadow 240ms ease;
    transform-origin: center;
    box-shadow: 0 6px 18px rgba(10,12,14,0.04);
    opacity: 0;
    transform: translateY(14px) scale(.985);
    /* default small shimmer background that animates on hover */
    background-image: linear-gradient(90deg, rgba(255,255,255,0.0) 0%, rgba(255,255,255,0.12) 50%, rgba(255,255,255,0.0) 100%);
    background-size: 200% 100%;
    background-position: 100% 0;
    will-change: transform, box-shadow;
  }
  .offer:hover {
    transform: translateY(-6px) scale(1.01);
    box-shadow: 0 12px 30px rgba(10,12,14,0.08);
    background-position: 0 0;
  }

  /* staggered entrance using nth-child delays */
  .offer:nth-child(1){ animation: itemEnter 420ms cubic-bezier(.2,.9,.3,1) 420ms forwards; }
  .offer:nth-child(2){ animation: itemEnter 420ms cubic-bezier(.2,.9,.3,1) 520ms forwards; }
  .offer:nth-child(3){ animation: itemEnter 420ms cubic-bezier(.2,.9,.3,1) 620ms forwards; }
  .offer:nth-child(4){ animation: itemEnter 420ms cubic-bezier(.2,.9,.3,1) 720ms forwards; }

  @keyframes itemEnter {
    to { opacity: 1; transform: translateY(0) scale(1); }
  }

  /* subtle dividing line */
  .divider {
    height: 1px;
    width: 56%;
    margin: 6px auto 14px;
    background: linear-gradient(90deg, rgba(0,0,0,0.06), rgba(0,0,0,0.02));
    border-radius: 2px;
  }

  /* Book Seat button with pulse + shine */
  .book-seat-btn {
    appearance: none;
    border: none;
    cursor: pointer;
    display:inline-block;
    padding: 12px 24px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 1rem;
    color: #fff;
    background: linear-gradient(90deg, var(--accent1), var(--accent2));
    box-shadow: 0 10px 30px rgba(238,9,121,0.18), 0 4px 12px rgba(0,0,0,0.08);
    transform-origin: center;
    transition: transform 180ms ease, box-shadow 220ms ease;
    position: relative;
    overflow: hidden;
  }

  .book-seat-btn::after{
    content: "";
    position: absolute;
    left: -60%;
    top: -20%;
    width: 60%;
    height: 220%;
    background: linear-gradient(120deg, rgba(255,255,255,0.18), rgba(255,255,255,0.05), rgba(255,255,255,0.18));
    transform: rotate(22deg) translateX(0);
    filter: blur(8px);
    transition: transform 650ms cubic-bezier(.2,.9,.3,1);
    opacity: 0.9;
  }

  .book-seat-btn:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 18px 40px rgba(238,9,121,0.22);
  }
  .book-seat-btn:hover::after { transform: translateX(200%) rotate(22deg); }

  /* gentle pulse for attention (not too aggressive) */
  .book-seat-btn.pulse {
    animation: pulseGlow 2500ms ease-in-out 1s infinite;
  }
  @keyframes pulseGlow {
    0% { box-shadow: 0 10px 30px rgba(238,9,121,0.14); }
    50% { box-shadow: 0 18px 40px rgba(238,9,121,0.20); transform: translateY(-3px) scale(1.01); }
    100% { box-shadow: 0 10px 30px rgba(238,9,121,0.14); transform: translateY(0) scale(1); }
  }

  /* focus style for accessibility */
  .book-seat-btn:focus { outline: 3px solid rgba(255,106,0,0.16); }

  /* responsive tweaks */
  @media (max-width:460px){
    #offers-modal .card { padding: 18px 14px 20px; border-radius: 14px; }
    .offer-header h3 { font-size: 1.08rem; }
    .close-offers { width:36px; height:36px; right:-12px; top:-12px; font-size:16px; }
    .offers-grid { gap:10px; }
    .offer { padding:10px 12px; border-radius:10px; font-size:0.95rem; }
    .book-seat-btn { padding: 10px 18px; font-size:0.96rem; }
  }

