/* =========================================================
   PAGE-INDEX-GIFTS.CSS
   Xpress Vending – Partner Perks / Goodwill Section
   Compact, polished, responsive
   ========================================================= */

   .gifts-section {
    position: relative;
    padding: clamp(4.25rem, 7vw, 6.5rem) 0;
    background:
      radial-gradient(circle at 12% 14%, rgba(28, 163, 199, 0.06) 0%, transparent 24%),
      radial-gradient(circle at 88% 10%, rgba(15, 23, 42, 0.05) 0%, transparent 22%),
      linear-gradient(180deg, #ffffff 0%, #f8fbfd 52%, #ffffff 100%);
    overflow: hidden;
    isolation: isolate;
  }
  
  .gifts-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: clamp(18px, 6vw, 72px);
    right: clamp(18px, 6vw, 72px);
    height: 1px;
    background: linear-gradient(
      90deg,
      rgba(46, 58, 70, 0),
      rgba(46, 58, 70, 0.12),
      rgba(46, 58, 70, 0)
    );
    pointer-events: none;
  }
  
  .gifts-section::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
      linear-gradient(rgba(15, 23, 42, 0.02) 1px, transparent 1px),
      linear-gradient(90deg, rgba(15, 23, 42, 0.02) 1px, transparent 1px);
    background-size: 34px 34px;
    mask-image: radial-gradient(circle at center, rgba(0, 0, 0, 0.58), transparent 86%);
    opacity: 0.42;
  }
  
  .gifts-shell {
    position: relative;
    z-index: 1;
  }
  
  .gifts-header {
    max-width: 900px;
    margin: 0 auto;
  }
  
  .gifts-eyebrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0.55rem 1rem;
    margin-bottom: 0.95rem;
    border-radius: 999px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: rgba(255, 255, 255, 0.92);
    color: var(--color-primary-teal);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
  }
  
  .gifts-title {
    margin: 0;
    color: var(--color-primary-dark);
    font-size: clamp(2rem, 4vw, 3.2rem);
    line-height: 1.06;
    letter-spacing: -0.04em;
    text-wrap: balance;
  }
  
  .gifts-title::after {
    content: "";
    display: block;
    width: clamp(90px, 10vw, 130px);
    height: 1px;
    margin: 1.1rem auto 0;
    background: linear-gradient(
      90deg,
      rgba(0, 174, 239, 0),
      rgba(0, 174, 239, 0.8),
      rgba(28, 163, 199, 0.6),
      rgba(0, 174, 239, 0)
    );
  }
  
  .gifts-subtitle {
    max-width: 800px;
    margin: 1.45rem auto 0;
    color: var(--text-muted);
    font-size: 1.04rem;
    line-height: 1.8;
  }
  
  .gifts-feature-band {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.8fr);
    gap: clamp(1rem, 2vw, 1.5rem);
    align-items: stretch;
    max-width: 1120px;
    margin: clamp(1.9rem, 3vw, 2.6rem) auto 0;
  }
  
  .gifts-feature-copy,
  .gifts-note-card {
    position: relative;
    border-radius: 24px;
    border: 1px solid rgba(46, 58, 70, 0.08);
    background:
      linear-gradient(180deg, rgba(255,255,255,0.88), rgba(248,251,253,0.98));
    box-shadow:
      inset 0 1px 0 rgba(255,255,255,0.74),
      0 12px 30px rgba(15, 23, 42, 0.045);
  }
  
  .gifts-feature-copy {
    padding: clamp(1.25rem, 2vw, 1.75rem);
    text-align: left;
  }
  
  .gifts-lead {
    margin: 0 0 1rem;
    color: var(--color-primary-dark);
    font-size: 1.02rem;
    line-height: 1.82;
  }
  
  .gifts-points {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem 1rem;
  }
  
  .gifts-points li {
    position: relative;
    padding-left: 1.1rem;
    color: var(--text-muted);
    font-size: 0.96rem;
    line-height: 1.62;
  }
  
  .gifts-points li::before {
    content: "";
    position: absolute;
    top: 0.7rem;
    left: 0;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: linear-gradient(
      135deg,
      var(--color-primary-cyan),
      var(--color-primary-teal)
    );
    box-shadow: 0 0 0 4px rgba(0, 174, 239, 0.08);
  }
  
  .gifts-feature-note {
    display: flex;
  }
  
  .gifts-note-card {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(1.25rem, 2vw, 1.6rem);
    text-align: left;
  }
  
  .gifts-note-label {
    display: inline-block;
    margin-bottom: 0.8rem;
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--color-primary-teal);
  }
  
  .gifts-note-card p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.98rem;
    line-height: 1.74;
  }
  
  .gifts-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(1rem, 2vw, 1.35rem);
    max-width: 1120px;
    margin: clamp(1.25rem, 2vw, 1.5rem) auto 0;
  }
  
  .gift-card {
    position: relative;
    min-width: 0;
    border-radius: 24px;
    border: 1px solid rgba(46, 58, 70, 0.08);
    background:
      linear-gradient(180deg, rgba(255,255,255,0.88) 0%, rgba(247,250,252,0.98) 100%);
    overflow: hidden;
    box-shadow:
      inset 0 1px 0 rgba(255,255,255,0.74),
      0 12px 30px rgba(15, 23, 42, 0.05);
    transition:
      transform 0.35s ease,
      border-color 0.35s ease,
      box-shadow 0.35s ease;
    opacity: 0;
    transform: translateY(28px);
    will-change: transform, opacity;
  }
  
  .gift-card.is-visible {
    opacity: 1;
    transform: translateY(0);
  }
  
  .gift-card:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 174, 239, 0.18);
    box-shadow:
      inset 0 1px 0 rgba(255,255,255,0.8),
      0 18px 42px rgba(15, 23, 42, 0.09);
  }
  
  .gift-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 1px;
    background: linear-gradient(
      90deg,
      rgba(0,174,239,0),
      rgba(0,174,239,0.38),
      rgba(0,174,239,0)
    );
    pointer-events: none;
    z-index: 2;
  }
  
  .gift-media {
    margin: 0;
    padding: 1rem 1rem 0;
  }
  
  .gift-media img {
    width: 100%;
    display: block;
    aspect-ratio: 16 / 11;
    object-fit: cover;
    border-radius: 18px;
    border: 1px solid rgba(46, 58, 70, 0.06);
    background:
      linear-gradient(180deg, rgba(240,246,250,0.95), rgba(232,239,244,0.95));
    transition: transform 0.45s ease;
  }
  
  .gift-card:hover .gift-media img {
    transform: scale(1.035);
  }
  
  .gift-body {
    padding: 1.1rem 1.1rem 1.2rem;
    text-align: left;
  }
  
  .gift-kicker {
    display: inline-block;
    margin-bottom: 0.6rem;
    color: var(--color-primary-teal);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
  }
  
  .gift-body h3 {
    margin: 0 0 0.78rem;
    color: var(--color-primary-dark);
    font-size: 1.28rem;
    line-height: 1.18;
    letter-spacing: -0.02em;
  }
  
  .gift-body p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.97rem;
    line-height: 1.72;
  }
  
  .gifts-bottom-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    max-width: 1120px;
    margin: clamp(1.25rem, 2vw, 1.5rem) auto 0;
    padding: 1rem 1.1rem;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 24px;
    background:
      linear-gradient(180deg, rgba(255,255,255,0.96) 0%, rgba(248,250,252,0.98) 100%);
    box-shadow:
      0 18px 42px rgba(15, 23, 42, 0.06),
      inset 0 1px 0 rgba(255,255,255,0.92);
  }
  
  .gifts-mini-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
  }
  
  .gifts-mini-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0.56rem 0.9rem;
    border-radius: 999px;
    background: rgba(28, 163, 199, 0.08);
    border: 1px solid rgba(28, 163, 199, 0.12);
    color: var(--color-primary-dark);
    font-size: 0.79rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }
  
  .gifts-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
  }
  
  .gifts-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 0.92rem 1.25rem;
    border-radius: 999px;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 800;
    letter-spacing: 0.01em;
    transition:
      transform 0.22s ease,
      box-shadow 0.22s ease,
      border-color 0.22s ease,
      background 0.22s ease,
      color 0.22s ease;
  }
  
  .gifts-btn:hover {
    transform: translateY(-2px);
  }
  
  .gifts-btn-primary {
    color: #ffffff;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow:
      0 14px 28px rgba(15, 23, 42, 0.14),
      inset 0 1px 0 rgba(255,255,255,0.12);
  }
  
  .gifts-btn-primary:hover,
  .gifts-btn-primary:focus-visible {
    color: #ffffff;
    background: linear-gradient(135deg, #152033 0%, #253247 100%);
    box-shadow:
      0 18px 34px rgba(15, 23, 42, 0.18),
      inset 0 1px 0 rgba(255,255,255,0.14);
  }
  
  .gifts-btn:focus-visible {
    outline: 3px solid rgba(0, 174, 239, 0.22);
    outline-offset: 3px;
  }
  
  /* =========================================================
     RESPONSIVE
     ========================================================= */
  
  @media (max-width: 1100px) {
    .gifts-grid {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }
  
    .gift-card:last-child {
      grid-column: 1 / -1;
    }
  }
  
  @media (max-width: 992px) {
    .gifts-feature-band {
      grid-template-columns: 1fr;
    }
  
    .gifts-points {
      grid-template-columns: 1fr;
    }
  
    .gifts-bottom-bar {
      flex-direction: column;
      align-items: flex-start;
    }
  
    .gifts-actions {
      width: 100%;
    }
  }
  
  @media (max-width: 768px) {
    .gifts-section {
      padding: 4rem 0;
    }
  
    .gifts-subtitle {
      font-size: 1rem;
      line-height: 1.75;
    }
  
    .gifts-grid {
      grid-template-columns: 1fr;
    }
  
    .gift-card:last-child {
      grid-column: auto;
    }
  
    .gift-media {
      padding: 0.9rem 0.9rem 0;
    }
  
    .gift-body {
      padding: 1rem 1rem 1.15rem;
    }
  
    .gift-body h3 {
      font-size: 1.18rem;
    }
  
    .gift-body p,
    .gifts-lead,
    .gifts-note-card p {
      font-size: 0.95rem;
    }
  
    .gifts-mini-pills {
      width: 100%;
    }
  
    .gifts-actions,
    .gifts-btn {
      width: 100%;
    }
  }
  
  @media (prefers-reduced-motion: reduce) {
    .gift-card,
    .gift-media img,
    .gifts-btn {
      transition: none !important;
    }
  
    .gift-card {
      opacity: 1 !important;
      transform: none !important;
    }
  }