/* ============================================
   Enzamilee — Premium Gifting UI
   ============================================ */

:root {
  --bg:          #faf8f5;
  --bg-alt:      #ffffff;
  --ink:         #1a1d29;
  --ink-soft:    #4b5062;
  --muted:       #8a8f9e;
  --line:        #ece8df;
  --primary:     #6c5ce7;
  --primary-600: #5a47e0;
  --accent:      #d4a574;       /* champagne gold */
  --accent-600:  #b8895a;
  --success:     #00b894;
  --danger:      #e17055;
  --warning:     #fdcb6e;
  --shadow-sm:   0 4px 12px rgba(26,29,41,.04);
  --shadow-md:   0 10px 30px rgba(26,29,41,.08);
  --shadow-lg:   0 20px 60px rgba(26,29,41,.12);
  --radius-sm:   12px;
  --radius-md:   18px;
  --radius-lg:   28px;
  --ease:        cubic-bezier(.4,.0,.2,1);
  /* Composed from core tokens (landing, section bands, etc.) */
  --primary-soft:     color-mix(in srgb, var(--primary) 10%, var(--bg-alt));
  --primary-soft-15:  color-mix(in srgb, var(--primary) 15%, var(--bg-alt));
  --primary-tint-8:   color-mix(in srgb, var(--primary) 8%, var(--bg));
  --primary-ring:     color-mix(in srgb, var(--primary) 20%, transparent);
  --primary-ring-12:  color-mix(in srgb, var(--primary) 12%, transparent);
  --gradient-hero-aside: linear-gradient(145deg, var(--bg-alt) 0%, var(--primary-tint-8) 100%);
  --gradient-section-warm: linear-gradient(180deg, color-mix(in srgb, var(--accent) 10%, var(--bg-alt)) 0%, var(--bg) 100%);
  --nav-hover-bg:   color-mix(in srgb, var(--accent) 12%, var(--bg));
  --ink-code-bg:    color-mix(in srgb, var(--ink) 5%, var(--bg-alt));
  --color-whatsapp: #25d366; /* official brand — floating chat */
}

* { box-sizing: border-box; }

/* Mobile-first: prevent horizontal bleed, respect notches / text zoom */
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  overflow-x: clip;
}
body {
  margin: 0;
  padding: 0;
  min-width: 0;
  overflow-x: clip;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  /* Fluid type: comfortable on small phones, caps on large / 4K */
  font-size: clamp(15px, 0.2rem + 1.1vw, 18px);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, video, canvas, svg {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}

h1, h2, h3, h4, h5 {
  font-family: 'Fraunces', Georgia, serif;
  color: var(--ink);
  font-weight: 600;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2rem, 4vw, 3.2rem); line-height: 1.15; }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); line-height: 1.2; }
h3 { font-size: clamp(1.15rem, 2.2vw, 1.4rem); line-height: 1.25; }
h4 { font-size: clamp(1.05rem, 2vw, 1.2rem); }
h5 { font-size: clamp(1rem, 1.6vw, 1.1rem); }

a { color: var(--primary); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--primary-600); }

/* Readable line length on ultra-wide / 4K without breaking Bootstrap grid */
.container {
  max-width: min(1200px, 100%);
}
@media (min-width: 1600px) {
  .container { max-width: 1320px; }
}
@media (min-width: 1920px) {
  .container { max-width: 1400px; }
}

/* ============================================
   HEADER
   ============================================ */
.site-header {
  background: rgba(255,255,255,.85);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--line);
  padding: .75rem 0;
  transition: all .3s var(--ease);
}
.site-header.scrolled { box-shadow: var(--shadow-sm); }

.brand { display: inline-flex; align-items: center; gap: .65rem; text-decoration: none; }
.brand-mark {
  width: 38px; height: 38px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--ink) 0%, #34384a 100%);
  color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: 'Fraunces', serif;
  font-weight: 700;
  font-size: 1.1rem;
  box-shadow: 0 6px 18px rgba(26,29,41,.25);
}
.brand-text {
  font-family: 'Fraunces', serif;
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--ink);
  letter-spacing: -.02em;
}
.brand-light .brand-text, .brand-light .brand-mark { color: #fff; }
.brand-light .brand-mark { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); }

.navbar .nav-link {
  color: var(--ink-soft);
  font-weight: 500;
  padding: .55rem 1rem !important;
  border-radius: 10px;
  transition: all .2s var(--ease);
}
.navbar .nav-link:hover { color: var(--ink); background: #f3f0ea; }

/* Touch-friendly nav (WCAG ~44px targets on small screens) */
.site-header .navbar-toggler {
  min-width: 44px;
  min-height: 44px;
  padding: 0.5rem 0.65rem;
}
@media (max-width: 991.98px) {
  .site-header .navbar-collapse {
    padding-top: 0.75rem;
    padding-bottom: 1rem;
  }
  .site-header .nav-link {
    padding: 0.65rem 1rem !important;
    border-radius: 12px;
    min-height: 44px;
    display: flex;
    align-items: center;
  }
  .site-header .navbar-nav .nav-item:last-child .btn {
    width: 100%;
    justify-content: center;
    margin-top: 0.5rem;
    min-height: 48px;
  }
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  font-weight: 600;
  border-radius: 999px;
  padding: .75rem 1.6rem;
  transition: all .25s var(--ease);
  border: none;
  font-size: .95rem;
  letter-spacing: .01em;
  touch-action: manipulation; /* snappier taps on mobile */
}

.btn-primary-cta {
  background: var(--ink);
  color: #fff !important;
  padding: .65rem 1.3rem;
  box-shadow: 0 6px 20px rgba(26,29,41,.18);
}
.btn-primary-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(26,29,41,.28);
  background: #000;
  color: #fff;
}

.btn-accent {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-600) 100%);
  color: #fff;
  box-shadow: 0 8px 20px rgba(212,165,116,.35);
}
.btn-accent:hover {
  transform: translateY(-2px);
  color: #fff;
  box-shadow: 0 14px 30px rgba(212,165,116,.5);
}

.btn-outline-dark-soft {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--line);
}
.btn-outline-dark-soft:hover {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}

.btn-lg { padding: .95rem 2.2rem; font-size: 1rem; }

/* Dense “small” buttons — pair with Bootstrap .btn-sm in admin / tables */
.btn.btn-sm,
.btn-sm {
  padding: 0.35rem 0.85rem;
  font-size: 0.8125rem;
  line-height: 1.25;
  min-height: 0;
  border-radius: 999px;
}
.btn.btn-sm.btn-primary-cta,
.btn-sm.btn-primary-cta {
  padding: 0.32rem 0.95rem;
  font-size: 0.8125rem;
  box-shadow: 0 2px 8px rgba(26, 29, 41, 0.12);
}
.btn.btn-sm.btn-primary-cta:hover,
.btn-sm.btn-primary-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(26, 29, 41, 0.18);
}

/* ============================================
   HERO
   ============================================ */
.hero {
  padding: 4rem 0 2rem;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -100px; right: -100px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(212,165,116,.18), transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -150px; left: -150px;
  width: 450px; height: 450px;
  background: radial-gradient(circle, rgba(108,92,231,.12), transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.hero-content { position: relative; z-index: 1; }
.hero .eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .4rem 1rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: .8rem;
  font-weight: 600;
  color: var(--ink-soft);
  box-shadow: var(--shadow-sm);
  margin-bottom: 1.2rem;
}
.hero .eyebrow .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 4px rgba(0,184,148,.15);
}
.hero h1 { margin-bottom: 1rem; }
.hero h1 em { font-style: italic; color: var(--accent-600); font-weight: 600; }
.hero .hero-sub {
  font-size: 1.1rem;
  color: var(--ink-soft);
  max-width: 560px;
  margin-bottom: 1.8rem;
}
.hero-stats { display: flex; gap: 2.5rem; margin-top: 2.5rem; flex-wrap: wrap; }
.hero-stats .stat strong {
  display: block;
  font-family: 'Fraunces', serif;
  font-size: 1.8rem;
  color: var(--ink);
}
.hero-stats .stat span { color: var(--muted); font-size: .9rem; }

/* ============================================
   SEARCH & FILTER BAR
   ============================================ */
.toolbar {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--line);
  margin-bottom: 2.5rem;
}
.toolbar .search-input {
  border: none;
  box-shadow: none;
  padding-left: 2.75rem;
  background: #f7f5ef;
  border-radius: 12px;
  height: 48px;
  font-weight: 500;
}
.toolbar .search-input:focus { background: #f1ede3; box-shadow: none; }
.search-wrap { position: relative; }
.search-wrap i {
  position: absolute;
  left: 0.9rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  pointer-events: none;
  z-index: 1;
  width: 1.25rem;
  text-align: center;
  font-size: 0.95rem;
}
/* Clearance for the icon (toolbar + track/surface; was missing outside .toolbar) */
.search-wrap .form-control,
.search-wrap .form-control.search-input {
  padding-left: 2.75rem;
  min-height: 48px;
}
.search-wrap .form-control::placeholder {
  opacity: 0.85;
}
.filter-select {
  background: #f7f5ef;
  border: none;
  height: 48px;
  border-radius: 12px;
  font-weight: 500;
  padding: 0 2.5rem 0 1.1rem;
  cursor: pointer;
}
.filter-select:focus { background: #f1ede3; box-shadow: none; }

/* ============================================
   GIFT CARDS
   ============================================ */
.gift-card {
  background: #fff;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--line);
  transition: all .4s var(--ease);
  height: 100%;
  display: flex; flex-direction: column;
  position: relative;
}
.gift-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.gift-card .img-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, #f5f0e6, #ede5d5);
}

/* Home catalog: video + image carousel in card */
.gift-card-carousel {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 0;
  --gcc-n: 1;
}
.gift-card-carousel__viewport {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  touch-action: manipulation;
}
.gift-card-carousel__track {
  display: flex;
  flex-direction: row;
  width: calc(100% * var(--gcc-n, 1));
  height: 100%;
  transition: transform 0.38s cubic-bezier(0.25, 0.1, 0.25, 1);
  will-change: transform;
}
.gift-card-carousel__slide {
  position: relative;
  flex: 0 0 calc(100% / var(--gcc-n, 1));
  min-width: 0;
  height: 100%;
}
.gift-card-carousel__slide img,
.gift-card-carousel__slide video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  vertical-align: middle;
  pointer-events: none;
  transition: transform 0.8s var(--ease);
}
.gift-card:hover .gift-card-carousel__slide img {
  transform: scale(1.05);
}
.gift-card-carousel__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
  font-size: 0.7rem;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}
.gift-card-carousel__btn:hover {
  background: #fff;
  transform: translateY(-50%) scale(1.05);
}
.gift-card-carousel__btn--prev { left: 8px; }
.gift-card-carousel__btn--next { right: 8px; }
.gift-card-carousel__dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 8px;
  z-index: 3;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px;
  pointer-events: none;
}
.gift-card-carousel__dots .gift-card-carousel__dot {
  pointer-events: auto;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  border: none;
  padding: 0;
  background: rgba(26, 29, 41, 0.25);
  cursor: pointer;
  transition: transform 0.2s, background 0.2s, width 0.2s;
}
.gift-card-carousel__dot.is-active {
  background: var(--ink);
  width: 16px;
  border-radius: 4px;
}

.gift-card .img-wrap > img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .8s var(--ease);
}
.gift-card:hover .img-wrap > img { transform: scale(1.08); }
.gift-card .card-body {
  padding: 1.3rem 1.3rem 1.5rem;
  display: flex; flex-direction: column;
  flex-grow: 1;
}
.gift-card .card-title {
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: 1.2rem;
  color: var(--ink);
  margin-bottom: .4rem;
  line-height: 1.3;
}
.gift-card .card-desc {
  color: var(--ink-soft);
  font-size: .9rem;
  margin-bottom: 1.2rem;
  flex-grow: 1;
}
.gift-card .claim-btn {
  margin-top: auto;
  width: 100%;
  background: var(--ink);
  color: #fff;
  padding: .8rem;
  border-radius: 12px;
  font-weight: 600;
  border: none;
  text-align: center;
  text-decoration: none;
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  transition: all .25s var(--ease);
}
.gift-card .claim-btn:hover { background: var(--accent-600); color: #fff; }
.gift-card .claim-btn i { transition: transform .25s var(--ease); }
.gift-card .claim-btn:hover i { transform: translateX(3px); }

/* Placeholder when no image */
.img-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Fraunces', serif;
  font-size: 3rem;
  color: rgba(26,29,41,.2);
  background: linear-gradient(135deg, #f5f0e6, #ede5d5);
}

/* ============================================
   GIFT DETAIL
   ============================================ */
.detail-img {
  display: grid;
  place-items: stretch;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: linear-gradient(135deg, #f5f0e6, #ede5d5);
  aspect-ratio: 1/1;
  box-shadow: var(--shadow-md);
}
/* Stack media in one cell so aspect-ratio + carousel (same as home) layout reliably */
.detail-img > * {
  grid-area: 1 / 1;
  min-width: 0;
  min-height: 0;
  width: 100%;
  height: 100%;
}
.detail-img > img { object-fit: cover; display: block; }
.detail-img .gift-card-carousel {
  min-height: 0;
}
.detail-img .gift-card-carousel__slide img,
.detail-img .gift-card-carousel__slide video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.detail-info .eyebrow {
  color: var(--accent-600);
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  font-size: .75rem;
  margin-bottom: .5rem;
}
.detail-info h1 { margin-bottom: 1rem; }
.detail-info .desc {
  color: var(--ink-soft);
  font-size: 1.05rem;
  margin-bottom: 1.5rem;
}
.feature-list { list-style: none; padding: 0; margin: 2rem 0; }
.feature-list li {
  display: flex; align-items: flex-start;
  padding: .7rem 0;
  border-bottom: 1px dashed var(--line);
  font-size: .95rem;
  color: var(--ink-soft);
}
.feature-list li i {
  color: var(--success);
  margin-right: .9rem;
  margin-top: 3px;
}
.feature-list li:last-child { border: none; }

/* ============================================
   PROGRESS BAR
   ============================================ */
.progress-wrapper {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 1.3rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
  margin-bottom: 2.5rem;
}
/* Allow horizontal pan on small viewports so 5 steps never crush */
@media (max-width: 991.98px) {
  .progress-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
  }
  .progress-steps {
    min-width: 520px;
  }
}
.progress-steps { display: flex; align-items: center; }
.p-step { display: flex; flex-direction: column; align-items: center; text-align: center; flex-shrink: 0; }
.p-circle {
  width: 38px; height: 38px; border-radius: 50%;
  background: #f3f0ea;
  color: var(--muted);
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: .9rem;
  transition: all .3s var(--ease);
}
.p-label { margin-top: .5rem; font-size: .78rem; color: var(--muted); font-weight: 500; }
.p-step.active .p-circle { background: var(--ink); color: #fff; box-shadow: 0 0 0 5px rgba(26,29,41,.1); }
.p-step.active .p-label { color: var(--ink); font-weight: 600; }
.p-step.done .p-circle { background: var(--success); color: #fff; }
.p-step.done .p-label { color: var(--ink-soft); }
.p-line { flex: 1; height: 2px; background: var(--line); margin: 0 .6rem; position: relative; top: -18px; transition: background .3s; }
.p-line.done { background: var(--success); }

@media (max-width: 640px) {
  .p-label { font-size: .65rem; }
  .p-circle { width: 32px; height: 32px; font-size: .8rem; }
}

/* ============================================
   GENERIC CARD / SECTION
   ============================================ */
.surface {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--line);
}
@media (max-width: 640px) { .surface { padding: 1.6rem; } }

.section-title {
  text-align: center;
  margin-bottom: 3rem;
}
.section-title .eyebrow {
  color: var(--accent-600);
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  font-size: .75rem;
  margin-bottom: .5rem;
  display: block;
}

/* ============================================
   FEEDBACK CHOICE
   ============================================ */
.choice-card {
  padding: 2.2rem 1.5rem;
  border-radius: var(--radius-md);
  background: #fff;
  border: 2px solid var(--line);
  text-align: center;
  cursor: pointer;
  transition: all .3s var(--ease);
  text-decoration: none;
  color: inherit;
  display: block;
  height: 100%;
}
.choice-card:hover { border-color: var(--ink); transform: translateY(-6px); box-shadow: var(--shadow-lg); color: inherit; }
.choice-card .icon-circle {
  width: 72px; height: 72px;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.9rem;
  margin-bottom: 1rem;
}
.choice-card.yes .icon-circle { background: #e3f9f0; color: var(--success); }
.choice-card.no  .icon-circle { background: #fff1ec; color: var(--danger); }
.choice-card h3 { margin: .3rem 0 .4rem; }
.choice-card p { color: var(--ink-soft); font-size: .95rem; margin: 0; }

/* ============================================
   UPLOAD FIELDS
   ============================================ */
.upload-drop {
  border: 2px dashed var(--line);
  border-radius: var(--radius-md);
  padding: 2rem 1rem;
  text-align: center;
  transition: all .3s var(--ease);
  background: #fafaf7;
  cursor: pointer;
  position: relative;
}
.upload-drop:hover, .upload-drop.dragover { border-color: var(--accent); background: #fff9f0; }
.upload-drop input[type=file] {
  position: absolute; inset: 0; width: 100%; height: 100%;
  opacity: 0; cursor: pointer;
}
.upload-drop .icon-big {
  font-size: 2.2rem; color: var(--accent-600);
  margin-bottom: .5rem;
}
.upload-drop .main-text {
  font-weight: 600; color: var(--ink); margin: 0;
}
.upload-drop .sub-text { color: var(--muted); font-size: .85rem; margin-top: .3rem; }
/* "Check example" modal — text below example image */
.upload-modal-desc {
  font-size: 0.9rem;
  color: var(--ink-soft);
  line-height: 1.55;
  white-space: pre-wrap;
  word-wrap: break-word;
}
.upload-preview {
  margin-top: 1rem;
  border-radius: 12px;
  overflow: hidden;
  display: none;
  position: relative;
}
.upload-preview.active { display: block; }
.upload-preview img { width: 100%; max-height: 200px; object-fit: cover; display: block; }
.upload-preview .file-info {
  padding: .6rem .9rem;
  background: #f7f5ef;
  display: flex; align-items: center; justify-content: space-between;
  font-size: .85rem;
}
.upload-preview .remove-btn {
  background: none; border: none; color: var(--danger); cursor: pointer; font-weight: 600;
}
.btn-link.upload-check-example {
  color: var(--accent-600);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.btn-link.upload-check-example:hover {
  color: var(--primary);
}
.btn-link.upload-review-steps-btn {
  font-size: 1.05rem;
}

/* ============================================
   FLOATING LABELS
   ============================================ */
.form-floating > .form-control,
.form-floating > .form-select {
  border-radius: 12px;
  border: 1.5px solid var(--line);
  background: #fafaf7;
  height: 58px;
  padding-top: 1.3rem !important;
  transition: all .2s var(--ease);
}
.form-floating > .form-control:focus,
.form-floating > .form-select:focus {
  border-color: var(--ink);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(26,29,41,.05);
}
.form-floating > label { color: var(--muted); font-weight: 500; padding-left: 1rem; }

/* ============================================
   SUCCESS / THANK YOU
   ============================================ */
.success-wrap { text-align: center; padding: 2rem 1rem; }
.success-badge {
  width: 110px; height: 110px;
  margin: 0 auto 1.5rem;
  border-radius: 50%;
  background: linear-gradient(135deg, #e3f9f0, #c6f0dc);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 3rem;
  color: var(--success);
  box-shadow: 0 12px 40px rgba(0,184,148,.25);
  animation: pop .5s var(--ease) both;
}
.success-badge.warn { background: linear-gradient(135deg, #fff3d6, #ffe3a8); color: #b8860b; box-shadow: 0 12px 40px rgba(253,203,110,.35); }
@keyframes pop {
  0% { transform: scale(.5); opacity: 0; }
  60% { transform: scale(1.15); opacity: 1; }
  100% { transform: scale(1); }
}
.tracking-chip {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: .5rem .75rem;
  padding: 1rem 1.6rem;
  background: #fff7e8;
  border: 2px dashed var(--accent);
  border-radius: 14px;
  font-family: 'Fraunces', serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--ink);
  margin: 1rem auto;
  max-width: 100%;
}
.tracking-chip .label { font-family: 'Plus Jakarta Sans', sans-serif; font-size: .75rem; font-weight: 600; color: var(--accent-600); text-transform: uppercase; letter-spacing: .1em; }
.tracking-chip > span:not(.label) { word-break: break-word; text-align: center; }

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  background: linear-gradient(180deg, #1a1d29 0%, #0f1118 100%);
  color: #c9ccd6;
  padding: 4rem 0 2rem;
  margin-top: 6rem;
}
.site-footer h6 {
  color: #fff; font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
  font-size: .8rem; margin-bottom: 1rem;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer ul li a { color: #c9ccd6; text-decoration: none; font-size: .9rem; line-height: 2; transition: color .2s var(--ease); }
.site-footer ul li a:hover { color: var(--accent); }
.site-footer .footer-about { color: #8a8f9e; margin-top: 1rem; font-size: .92rem; max-width: 320px; }
.social-icons { display: flex; gap: .6rem; margin-top: 1rem; }
.social-icons a {
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  color: #fff; display: inline-flex; align-items: center; justify-content: center;
  transition: all .2s var(--ease);
}
.social-icons a:hover { background: var(--accent); border-color: var(--accent); transform: translateY(-3px); color: #fff; }
.footer-divider { border-color: rgba(255,255,255,.08); margin: 2.5rem 0 1.5rem; }
.footer-bottom { color: #6b7080; font-size: .85rem; }
.footer-bottom a { color: #c9ccd6; text-decoration: none; }
.footer-bottom a:hover { color: var(--accent); }

/* ============================================
   FAQ PAGE
   ============================================ */
.faq-hero {
  background: linear-gradient(180deg, #1a1d29 0%, #0f1118 100%);
  color: #c9ccd6;
}
.faq-hero .container {
  max-width: min(720px, 100%);
}
.faq-hero-eyebrow {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  margin: 0 0 0.75rem;
}
.faq-hero-title {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-weight: 800;
  font-size: clamp(1.75rem, 5vw, 2.35rem);
  line-height: 1.15;
  color: var(--accent);
  margin: 0 0 1rem;
  letter-spacing: -0.02em;
}
.faq-hero-lead {
  font-size: 1rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.78);
  margin: 0;
  max-width: 36rem;
}
@media (min-width: 992px) {
  .py-lg-6 { padding-top: 4rem !important; padding-bottom: 4rem !important; }
  .pb-lg-6 { padding-bottom: 4rem !important; }
}

.faq-body {
  padding-top: 2rem;
}
.faq-body .container {
  max-width: min(720px, 100%);
}
.faq-search-block {
  margin-bottom: 2rem;
}
.faq-search-field {
  position: relative;
  display: flex;
  align-items: center;
}
.faq-search-field > i {
  position: absolute;
  left: 1rem;
  color: var(--accent-600);
  font-size: 0.95rem;
  pointer-events: none;
  z-index: 1;
}
.faq-search-input {
  padding: 0.85rem 1rem 0.85rem 2.75rem;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--line);
  background: var(--bg-alt);
  font-size: 1rem;
  min-height: 48px;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.faq-search-input:hover {
  border-color: rgba(212, 165, 116, 0.45);
}
.faq-search-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(212, 165, 116, 0.22);
  outline: none;
}
.faq-search-hint {
  margin: 0.65rem 0 0;
  font-size: 0.85rem;
  color: var(--muted);
}
.faq-search-hint span {
  color: var(--ink-soft);
  font-weight: 500;
}

.faq-accordion {
  --faq-radius: var(--radius-md);
  border-radius: var(--faq-radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--line);
  background: var(--bg-alt);
}
.faq-accordion .accordion-item {
  border: none;
  border-bottom: 1px solid var(--line);
  background: transparent;
}
.faq-accordion .accordion-item:last-child {
  border-bottom: none;
}
.faq-accordion .accordion-button {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-weight: 600;
  font-size: clamp(0.95rem, 2.5vw, 1.05rem);
  line-height: 1.45;
  padding: 1.15rem 1.25rem 1.15rem 1.25rem;
  padding-right: 3rem;
  color: var(--ink);
  background: var(--bg-alt);
  box-shadow: none !important;
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}
.faq-accordion .accordion-button:not(.collapsed) {
  color: var(--accent-600);
  background: rgba(212, 165, 116, 0.09);
}
.faq-accordion .accordion-button::after {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23b8895a'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
  width: 1rem;
  height: 1rem;
  background-size: 1rem;
  transition: transform 0.3s var(--ease);
}
.faq-accordion .accordion-button.collapsed::after {
  transform: rotate(-90deg);
  opacity: 0.65;
}
.faq-accordion .accordion-button:focus {
  box-shadow: inset 0 0 0 2px rgba(212, 165, 116, 0.35) !important;
  border-color: transparent;
  z-index: 1;
}
.faq-accordion .accordion-body {
  padding: 0 1.25rem 1.2rem;
  color: var(--ink-soft);
  font-size: 0.98rem;
  line-height: 1.65;
}
.faq-accordion .accordion-collapse {
  transition: height 0.35s var(--ease);
}
.faq-empty {
  margin-top: 2rem;
  padding: 2rem 1rem;
  color: var(--muted);
  font-size: 0.95rem;
}
.faq-empty a {
  color: var(--accent-600);
  font-weight: 600;
}
.faq-empty a:hover {
  color: var(--ink);
}
@media (prefers-reduced-motion: reduce) {
  .faq-accordion .accordion-collapse,
  .faq-accordion .accordion-button::after {
    transition: none;
  }
}

/* Contact page */
.contact-page .contact-channel {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  height: 100%;
}
.contact-channel-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(212, 165, 116, 0.15);
  color: var(--accent-600);
  font-size: 1.25rem;
  margin-bottom: 1.1rem;
}
.contact-channel-icon--wa {
  background: rgba(37, 211, 102, 0.12);
  color: #128c7e;
}
.contact-channel-title {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--ink);
  margin: 0 0 0.65rem;
}
.contact-channel-text {
  color: var(--ink-soft);
  font-size: 0.98rem;
  line-height: 1.6;
  margin: 0 0 1.35rem;
  flex: 1;
}
.contact-page-foot {
  font-size: 0.95rem;
  color: var(--muted);
}
.contact-page-foot a {
  color: var(--accent-600);
  font-weight: 600;
}
.contact-page-foot a:hover {
  color: var(--ink);
}
.contact-page-dot {
  margin: 0 0.35rem;
  opacity: 0.45;
}

/* Public About page */
.about-public .container {
  max-width: min(800px, 100%);
}
.about-public .about-page-body {
  margin-left: auto;
  margin-right: auto;
  max-width: 100%;
}
.about-page-prose {
  color: var(--ink-soft);
  line-height: 1.75;
  font-size: 1.02rem;
}
.about-page-prose a {
  color: var(--accent-600);
  font-weight: 600;
}
.about-page-prose a:hover {
  color: var(--ink);
}
.about-page-meta {
  border-top: 1px solid var(--line);
  padding-top: 1rem;
}

/* ============================================
   MISC
   ============================================ */
.pill {
  display: inline-block;
  padding: .3rem .85rem;
  border-radius: 999px;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .04em;
}
.pill-soft { background: #f3f0ea; color: var(--ink-soft); }
.pill-success { background: #e3f9f0; color: #00916b; }
.pill-warn { background: #fff3d6; color: #b8860b; }
.pill-danger { background: #fff1ec; color: #d6562d; }
.pill-info { background: #efeaff; color: #5a47e0; }

.empty-state { text-align: center; padding: 4rem 1rem; }
.empty-state i { font-size: 3rem; color: var(--muted); margin-bottom: 1rem; }
.empty-state h4 { color: var(--ink); }
.empty-state p { color: var(--muted); }

/* Animations on scroll */
.fade-up { opacity: 0; transform: translateY(16px); transition: all .6s var(--ease); }
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* ============================================
   ADMIN PANEL
   ============================================ */
.admin-body { background: #f4f6fa; }
.admin-shell { display: flex; min-height: 100vh; }
.admin-sidebar {
  width: 260px;
  background: #11141d;
  color: #cbd0dc;
  padding: 1.5rem 1rem;
  flex-shrink: 0;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}
.admin-sidebar .brand { padding: .5rem 1rem 1.5rem; }
.admin-sidebar .brand-text { color: #fff; }
.admin-sidebar a.menu-link {
  display: flex; align-items: center; gap: .8rem;
  padding: .8rem 1rem;
  border-radius: 12px;
  color: #8a92a3;
  text-decoration: none;
  font-weight: 500;
  transition: all .2s var(--ease);
  margin-bottom: .2rem;
  font-size: .92rem;
}
.admin-sidebar a.menu-link i { width: 20px; }
.admin-sidebar a.menu-link:hover { background: rgba(255,255,255,.04); color: #fff; }
.admin-sidebar a.menu-link.active { background: var(--primary); color: #fff; box-shadow: 0 8px 20px rgba(108,92,231,.3); }
.admin-sidebar .section-label {
  color: #555a68; font-size: .7rem; text-transform: uppercase; letter-spacing: .1em;
  padding: 1.2rem 1rem .5rem; font-weight: 700;
}
.admin-main { flex: 1; padding: 2rem; }
.admin-topbar {
  display: flex; justify-content: space-between; align-items: center;
  background: #fff;
  padding: 1rem 1.5rem;
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 1.5rem;
}
.admin-topbar h1 { font-size: 1.4rem; margin: 0; }

.stat-card {
  background: #fff;
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
  position: relative;
  overflow: hidden;
  transition: transform .3s var(--ease);
}
.stat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.stat-card .stat-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 1rem;
}
.stat-card .stat-num { font-family: 'Fraunces', serif; font-size: 2.1rem; font-weight: 700; color: var(--ink); line-height: 1; }
.stat-card .stat-label { color: var(--muted); font-size: .85rem; margin-top: .3rem; }
.stat-card.purple .stat-icon { background: #efeaff; color: var(--primary); }
.stat-card.gold   .stat-icon { background: #fff4e5; color: var(--accent-600); }
.stat-card.green  .stat-icon { background: #e3f9f0; color: var(--success); }
.stat-card.red    .stat-icon { background: #fff1ec; color: var(--danger); }
.stat-card.slate  .stat-icon { background: #e8edf5; color: #4a6fa5; }
.stat-card .stat-subline { color: var(--muted); font-size: .86rem; margin-top: .5rem; line-height: 1.45; }

/* Admin dashboard — rejected claim reason */
.rejected-reason-box {
  font-size: 0.88rem;
  line-height: 1.45;
  padding: 0.6rem 0.75rem;
  border-radius: 10px;
  border-left: 3px solid #d6562d;
  background: #fff8f4;
  color: #3d2918;
  white-space: pre-wrap;
  word-break: break-word;
}

.admin-panel {
  background: #fff;
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
  overflow: hidden;
}
.admin-panel .panel-header {
  padding: 1.2rem 1.5rem;
  border-bottom: 1px solid var(--line);
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 1rem;
}
.admin-panel h5 { margin: 0; font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 700; color: var(--ink); }
.admin-panel .table { margin: 0; }
.admin-panel .table thead th {
  background: #f7f8fb;
  color: var(--ink-soft);
  font-size: .78rem; text-transform: uppercase; letter-spacing: .05em;
  border: none;
  padding: .9rem 1rem;
  font-weight: 700;
}
.admin-panel .table tbody td {
  vertical-align: middle;
  padding: 1rem;
  border-color: var(--line);
  font-size: .92rem;
}
.admin-panel .table tbody tr:hover { background: #fafbfd; }
.admin-panel .table tbody tr.user-row-clickable { cursor: pointer; }
.admin-panel .table tbody tr.user-row-clickable a { position: relative; z-index: 1; }

.admin-login-bg {
  min-height: 100vh;
  background: linear-gradient(135deg, #1a1d29 0%, #34384a 100%);
  display: flex; align-items: center; justify-content: center;
  padding: 2rem 1rem;
  position: relative;
  overflow: hidden;
}
.admin-login-bg::before, .admin-login-bg::after {
  content: ''; position: absolute; border-radius: 50%;
  filter: blur(80px); opacity: .4;
}
.admin-login-bg::before { width:400px; height:400px; background: var(--primary); top: -100px; right: -100px; }
.admin-login-bg::after  { width:350px; height:350px; background: var(--accent); bottom: -100px; left: -100px; }
.login-card {
  background: #fff;
  border-radius: 24px;
  padding: 3rem 2.5rem;
  box-shadow: var(--shadow-lg);
  max-width: 440px; width: 100%;
  position: relative; z-index: 1;
}
.login-card h2 { margin-bottom: .5rem; }
.login-card .sub { color: var(--muted); margin-bottom: 2rem; }

/* ============================================
   RESPONSIVE (mobile-first — small → large)
   ============================================ */

/* Forms: easier to tap on phones / tablets (public site only — admin uses compact controls) */
@media (max-width: 991.98px) {
  body:not(.admin-body) .btn {
    min-height: 44px;
    padding-left: 1.25rem;
    padding-right: 1.25rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  body:not(.admin-body) .btn-sm {
    min-height: 40px;
  }
  body:not(.admin-body) .form-control:not(textarea),
  body:not(.admin-body) .form-select {
    min-height: 48px;
  }
  .toolbar .search-input,
  .toolbar .filter-select {
    min-height: 48px;
  }
  .tracking-chip {
    font-size: clamp(1rem, 4vw, 1.25rem);
    padding: 0.85rem 1.1rem;
    max-width: 100%;
    word-break: break-word;
  }
  .detail-info h1 {
    font-size: clamp(1.75rem, 6vw, 2.5rem);
  }
  .hero .hero-sub {
    font-size: clamp(1rem, 3.2vw, 1.1rem);
  }
  .wa-link,
  .phone-link {
    white-space: normal;
    word-break: break-all;
  }
}

/* Admin & sub-panels: smooth horizontal table scroll on narrow viewports */
.table-responsive {
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
}

@media (max-width: 991px) {
  .admin-sidebar { position: fixed; left: -280px; transition: left .3s var(--ease); z-index: 100; }
  .admin-sidebar.open { left: 0; }
  .admin-main { padding: 1rem; min-width: 0; }
  .admin-topbar { flex-wrap: wrap; gap: 0.75rem; }
  .admin-topbar h1 { font-size: clamp(1.1rem, 4vw, 1.4rem); }
  .stat-card .stat-num { font-size: clamp(1.5rem, 5vw, 2.1rem); }
}

@media (max-width: 640px) {
  .hero { padding: 2rem 0 1rem; }
  .hero-stats { gap: 1.5rem; }
  .hero-stats .stat strong { font-size: 1.4rem; }
  .surface { padding: 1.5rem 1rem; }
  .site-footer { padding: 2.5rem 0 1.5rem; margin-top: 3rem; }
  .section-title { margin-bottom: 2rem; }
  .toolbar { padding: 0.85rem 1rem; }
  .choice-card { padding: 1.5rem 1.1rem; }
  .progress-wrapper { padding: 1rem; }
}

/* Large screens: comfortable reading width for prose-heavy pages */
@media (min-width: 1920px) {
  .detail-info .desc,
  .success-wrap p {
    max-width: 60ch;
    margin-left: auto;
    margin-right: auto;
  }
}

/* ------------------------------------------------------------------
   Contact / WhatsApp click-to-chat links (admin + sub-admin panels)
------------------------------------------------------------------- */
.wa-link, .phone-link {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px dashed transparent;
  transition: color .15s, border-color .15s;
  white-space: nowrap;
}
.wa-link:hover   { color: #128C7E; border-bottom-color: #128C7E; }
.phone-link:hover { color: var(--primary); border-bottom-color: var(--primary); }

/* Floating WhatsApp chat button (public pages, referral-aware) */
.wa-float {
  position: fixed;
  right: calc(22px + env(safe-area-inset-right, 0px));
  bottom: calc(22px + env(safe-area-inset-bottom, 0px));
  z-index: 1040;
  display: inline-flex;
  align-items: center;
  gap: 0;
  background: #25D366;
  color: #fff !important;
  border-radius: 999px;
  padding: 14px 16px;
  font-weight: 700;
  text-decoration: none !important;
  box-shadow: 0 12px 30px rgba(37,211,102,.45), 0 4px 10px rgba(0,0,0,.1);
  transition: transform .2s, box-shadow .2s, gap .25s, padding .25s;
  animation: wa-pulse 2.4s infinite;
}
.wa-float i { font-size: 1.6rem; line-height: 1; }
.wa-float-label {
  max-width: 0;
  overflow: hidden;
  white-space: nowrap;
  font-size: .92rem;
  transition: max-width .25s ease, margin-left .25s ease;
}
.wa-float:hover {
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 18px 40px rgba(37,211,102,.55), 0 6px 14px rgba(0,0,0,.12);
  animation: none;
  gap: .6rem;
  padding-right: 20px;
}
.wa-float:hover .wa-float-label { max-width: 260px; margin-left: .25rem; }
@keyframes wa-pulse {
  0%   { box-shadow: 0 12px 30px rgba(37,211,102,.45), 0 0 0 0 rgba(37,211,102,.55); }
  70%  { box-shadow: 0 12px 30px rgba(37,211,102,.45), 0 0 0 18px rgba(37,211,102,0); }
  100% { box-shadow: 0 12px 30px rgba(37,211,102,.45), 0 0 0 0 rgba(37,211,102,0); }
}
@media (max-width: 576px) {
  .wa-float {
    right: calc(14px + env(safe-area-inset-right, 0px));
    bottom: calc(14px + env(safe-area-inset-bottom, 0px));
    padding: 12px;
  }
  .wa-float i { font-size: 1.5rem; }
  .wa-float:hover .wa-float-label { max-width: 0; margin-left: 0; }
}

/* ======================================================
   Testimonials Glimpses — reels-style horizontal scroller
   ====================================================== */
.reel-nav {
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,.06);
  transition: transform .2s, box-shadow .2s, background .2s, color .2s;
}
.reel-nav:hover {
  transform: translateY(-2px);
  background: var(--accent-600, #6c5ce7);
  color: #fff;
  box-shadow: 0 8px 20px rgba(108,92,231,.25);
}
.reel-nav:disabled {
  opacity: .4; cursor: not-allowed; transform: none;
  background: #fff; color: var(--ink);
}

.reels-scroller {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: .5rem .25rem 1.25rem;
  margin: 0 -.25rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(0,0,0,.15) transparent;
}
.reels-scroller::-webkit-scrollbar       { height: 8px; }
.reels-scroller::-webkit-scrollbar-track { background: transparent; }
.reels-scroller::-webkit-scrollbar-thumb { background: rgba(0,0,0,.12); border-radius: 999px; }

.reel-card {
  flex: 0 0 auto;
  width: 220px;
  aspect-ratio: 9 / 16;
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  background: #0d0d10;
  border: 0;
  padding: 0;
  cursor: pointer;
  scroll-snap-align: start;
  box-shadow: 0 10px 28px rgba(0,0,0,.14);
  transition: transform .25s ease, box-shadow .25s ease;
}
.reel-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(0,0,0,.22);
}
.reel-card:focus-visible {
  outline: 3px solid var(--accent-600, #6c5ce7);
  outline-offset: 3px;
}
.reel-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #000;
  display: block;
}
.reel-view-badge {
  position: absolute;
  top: 12px; left: 12px;
  display: inline-flex; align-items: center; gap: .35rem;
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: #fff;
  font-weight: 700;
  font-size: .78rem;
  padding: .3rem .65rem;
  border-radius: 999px;
  z-index: 2;
  pointer-events: none;
}
.reel-caption {
  position: absolute;
  left: 12px; right: 12px; bottom: 12px;
  color: #fff;
  font-weight: 700;
  font-family: 'Fraunces', serif;
  font-size: .95rem;
  line-height: 1.2;
  text-shadow: 0 2px 8px rgba(0,0,0,.6);
  z-index: 2;
  pointer-events: none;
}
.reel-play-hint {
  position: absolute;
  inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 2.2rem;
  color: #fff;
  background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,.25) 100%);
  opacity: .9;
  transition: opacity .25s;
  pointer-events: none;
  z-index: 1;
}
.reel-play-hint i {
  width: 62px; height: 62px;
  border-radius: 50%;
  background: rgba(255,255,255,.18);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  padding-left: 4px;
  border: 1px solid rgba(255,255,255,.35);
}
.reel-card.is-playing .reel-play-hint { opacity: 0; }

@media (max-width: 576px) {
  .reel-card { width: 170px; border-radius: 18px; }
  .reel-caption { font-size: .85rem; }
  .reel-play-hint i { width: 52px; height: 52px; font-size: 1.2rem; }
}

/* ---------- Reel modal ---------- */
#reelModal .modal-dialog {
  max-width: min(420px, 92vw);
}
.reel-modal-content {
  background: #0a0a0c;
  border: none;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,.6);
  position: relative;
}
.reel-modal-body {
  aspect-ratio: 9 / 16;
  max-height: 85vh;
  background: #000;
  display: flex; align-items: center; justify-content: center;
}
#reelModalVideo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
  display: block;
}
.reel-modal-close {
  position: absolute;
  top: 12px; right: 12px;
  width: 40px; height: 40px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,.15);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #fff;
  font-size: 1.1rem;
  z-index: 10;
  cursor: pointer;
  transition: background .2s, transform .2s;
}
.reel-modal-close:hover {
  background: rgba(255,255,255,.28);
  transform: scale(1.06);
}
.reel-modal-meta {
  color: #fff;
  padding: .9rem 1.1rem;
  font-family: 'Fraunces', serif;
  font-size: 1rem;
  font-weight: 600;
  background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,.6) 100%);
  min-height: 42px;
}
.reel-modal-meta:empty { display: none; }

/* ============================================================
   Flow pages (catalog → success) — shared typography & tiles
   ============================================================ */
.flow-eyebrow {
  color: var(--accent-600);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.75rem;
  display: inline-block;
}
.flow-lead {
  color: var(--ink-soft);
  font-size: clamp(0.95rem, 2.8vw, 1.05rem);
  max-width: 40rem;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.65;
}
.track-page-title {
  color: var(--accent-600);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.75rem;
}
.info-tile {
  background: #f7f5ef;
  padding: 1rem 1.2rem;
  border-radius: 14px;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 0.9rem;
  min-width: 0;
  height: 100%;
}
.info-tile__icon {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--success);
}
.info-tile__meta { font-size: 0.75rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; }
.info-tile__title { font-weight: 600; font-size: 0.9rem; color: var(--ink); }
.info-tile--stack {
  flex-direction: column;
  text-align: center;
  padding: 1.2rem 1rem;
}
.info-tile--stack .info-tile__icon { margin: 0 auto; }

/* Gift detail: massive placeholder icon scales down on narrow screens */
.img-placeholder--detail {
  font-size: clamp(4rem, 18vw, 7rem) !important;
}
.img-placeholder--detail i { line-height: 1; }

/* Proof / admin preview images */
.proof-preview-img {
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: 320px;
  object-fit: contain;
  border-radius: 12px;
  border: 1px solid var(--line);
  display: block;
}
@media (min-width: 768px) {
  .proof-preview-img--admin {
    max-height: 200px;
    object-fit: cover;
  }
}

/* Admin: filter bars & headers stack cleanly on phones */
@media (max-width: 767.98px) {
  .admin-panel .panel-header {
    flex-direction: column;
    align-items: stretch !important;
  }
  .admin-panel .panel-header > h5 { margin-bottom: 0.25rem; }
  .admin-filter-bar:not(.admin-filter-bar--inline) {
    width: 100% !important;
    flex-direction: column !important;
    align-items: stretch !important;
  }
  .admin-filter-bar:not(.admin-filter-bar--inline) .form-control,
  .admin-filter-bar:not(.admin-filter-bar--inline) .form-select,
  .admin-filter-bar:not(.admin-filter-bar--inline) .btn {
    width: 100% !important;
    max-width: 100% !important;
  }
  /* Single-row search (gifts): keep input + search on one line */
  .admin-filter-bar--inline {
    flex-direction: row !important;
    flex-wrap: wrap;
    width: 100% !important;
  }
  .admin-filter-bar--inline .form-control {
    flex: 1 1 140px !important;
    min-width: 0 !important;
    width: auto !important;
  }
  .admin-filter-bar--inline .btn {
    flex: 0 0 auto !important;
    width: auto !important;
  }
  .panel-header-toolbar {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: 0.5rem;
  }
  .panel-header-toolbar .btn-sm.btn-primary-cta {
    width: auto;
  }
}
/* Desktop / tablet: title + tools on one line, small controls */
.panel-header-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
  min-width: 0;
  flex: 1 1 auto;
}
@media (min-width: 768px) {
  .admin-panel .panel-header {
    align-items: center;
  }
}
.admin-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  min-width: 0;
  margin: 0;
}
.admin-filter-bar--inline {
  flex: 1 1 280px;
  max-width: 100%;
}
.admin-filter-bar--inline .form-control-sm {
  height: 34px;
  min-height: 34px;
  padding: 0.2rem 0.7rem;
  font-size: 0.875rem;
}
.admin-filter-bar .form-control,
.admin-filter-bar .form-select {
  min-width: 0;
  flex: 1 1 200px;
}
.sub-claims-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  border-bottom: 1px solid var(--line);
}
.sub-claims-filter .form-select {
  min-width: 0;
  flex: 0 1 200px;
}
.sub-claims-filter .form-control {
  min-width: 0;
  flex: 1 1 180px;
}
@media (max-width: 575.98px) {
  .sub-claims-filter .form-select,
  .sub-claims-filter .form-control,
  .sub-claims-filter .btn {
    flex: 1 1 100%;
    width: 100%;
    max-width: 100%;
  }
}

/* Referral / hero chips: don’t overflow narrow screens */
.referral-banner-text {
  word-break: break-word;
  overflow-wrap: anywhere;
}

/* Track page: result progress row scrolls with global .progress-wrapper rules */
.track-result-image {
  max-width: 100%;
}
.track-form-btn {
  min-height: 48px;
}

/* Admin dashboard: 7-day bar chart scrolls on narrow screens */
.admin-chart-7d {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  margin: 0 -0.25rem;
  padding: 0 0.25rem 0.5rem;
}
.admin-chart-7d-inner {
  display: flex;
  align-items: stretch;
  gap: 0.65rem;
  height: 220px;
  min-width: 300px;
}
/* Each day column: full height so bar heights (px) render; label at bottom */
.admin-chart-7d-col {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  text-align: center;
}
.admin-chart-7d-bar {
  width: 100%;
  max-width: 52px;
  border-radius: 10px 10px 4px 4px;
  position: relative;
  transition: height 0.3s ease;
  flex-shrink: 0;
}
.admin-chart-7d-value {
  position: absolute;
  top: -24px;
  left: 50%;
  transform: translateX(-50%);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--ink, #1a1d29);
  white-space: nowrap;
}
.admin-chart-7d-day {
  margin-top: 0.5rem;
  font-size: 0.75rem;
  color: var(--muted);
  font-weight: 600;
  word-break: break-all;
  line-height: 1.2;
}
.admin-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6c5ce7, #8e7ae8);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  flex-shrink: 0;
}
.admin-avatar--gold {
  background: linear-gradient(135deg, #d4a574, #b8895a);
}
.referral-link-box {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  align-items: center;
  background: #fff8ea;
  border: 2px dashed var(--accent);
  border-radius: 14px;
  padding: 0.9rem 1.1rem;
}
.referral-link-box code {
  font-size: 0.95rem;
  flex: 1 1 200px;
  min-width: 0;
  word-break: break-all;
}
@media (max-width: 575.98px) {
  .sub-link-actions { width: 100%; }
  .sub-link-actions .btn { flex: 1 1 auto; min-width: 0; justify-content: center; }
}

/* Sub-admin gift selection: sticky save */
.sub-gifts-sticky-bar {
  position: sticky;
  bottom: 0;
  z-index: 5;
  background: #fff;
  border-top: 1px solid var(--line);
  padding: 1rem;
  padding-bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
  margin-top: 1rem;
  text-align: center;
  border-radius: 12px 12px 0 0;
  box-shadow: 0 -10px 30px rgba(0,0,0,.05);
}
.sub-gifts-save-btn { width: 100%; }
@media (min-width: 576px) {
  .sub-gifts-sticky-bar { text-align: right; }
  .sub-gifts-save-btn { width: auto; }
}
