
/* ─────────────────────────────────────────────
   TOKENS
───────────────────────────────────────────── */
:root {
  --p:       #5C35B0;   /* primary violet       */
  --p-mid:   #7B52CC;   /* primary mid          */
  --p-pale:  #F3EEFF;   /* primary pale tint    */
  --p-glow:  rgba(92,53,176,.14);

  --gold:    #C8921E;
  --gold-bg: #FFF8EC;

  --ink:     #0F0A1E;
  --ink-2:   #3D3555;
  --ink-3:   #7A6F8F;
  --ink-4:   #B0A8C4;

  --bg:      #F7F5FB;
  --white:   #FFFFFF;
  --border:  #E8E2F4;
  --border-2:#D4CBE8;

  --ok:      #1A9E6A;
  --ok-bg:   #EDFBF4;
  --err:     #D63B3B;
  --err-bg:  #FFF0F0;

  --r:  16px;
  --rs: 10px;
  --rx: 7px;

  --shadow-card: 0 2px 12px rgba(92,53,176,.07), 0 0 0 1px var(--border);
  --shadow-float:0 8px 32px rgba(92,53,176,.13);
}

/* ─────────────────────────────────────────────
   RESET & BASE
───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

button { cursor: pointer; font-family: inherit; }
input, select, textarea { font-family: inherit; }

/* ─────────────────────────────────────────────
   TOP NAV
───────────────────────────────────────────── */
.nav {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  position: sticky;
  top: 0;
  z-index: 200;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
}
.nav-logo {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--p), var(--p-mid));
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.nav-name {
  
  font-size: 15px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -.2px;
}
.nav-right {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--ink-3);
  font-weight: 500;
}

/* ─────────────────────────────────────────────
   HERO STRIP
───────────────────────────────────────────── */
.hero {
  background:var(--color-grad);
  padding: 44px 24px 72px !important;
  text-align: center;
  position: relative;
  overflow: hidden;
}
/* .hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 80% at 80% 30%, rgba(200,146,30,.18) 0%, transparent 55%),
              radial-gradient(ellipse 50% 60% at 15% 75%, rgba(92,53,176,.3) 0%, transparent 55%);
} */
.hero-inner { position: relative; z-index: 1; }
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 100px;
  padding: 5px 14px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: rgba(255,255,255,.9);
  margin-bottom: 14px;
}
.hero-title {
  
  font-size: clamp(24px, 5vw, 44px);
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
  letter-spacing: -.4px;
  margin-bottom: 8px;
}
.hero-sub {
  font-size: 14px;
  color: rgba(255,255,255,.72);
  font-weight: 300;
}
.hero-sub b { color: rgba(255,255,255,.9); font-weight: 500; }

/* ─────────────────────────────────────────────
   LAYOUT
───────────────────────────────────────────── */
.page-wrap {
  max-width: 1160px;
  margin: -40px auto 80px;
  padding: 0 18px;
  position: relative;
  display: grid;
  grid-template-columns: 1fr 292px;
  gap: 20px;
  align-items: start;
}
@media (max-width: 820px) {
  .page-wrap { grid-template-columns: 1fr; }
  .aside-col {order: -1;}
}
@media (max-width: 520px) {
  .page-wrap { padding: 0 12px; margin-bottom: 60px; }
}

/* ─────────────────────────────────────────────
   PROGRESS INDICATOR
───────────────────────────────────────────── */
.progress-card {
  background: var(--white);
  border-radius: var(--r);
  box-shadow: var(--shadow-card);
  padding: 16px 20px;
  margin-bottom: 16px;
  max-width: 90vw;
  margin: auto;
  margin-bottom: 16px;
}
.prog-steps {
  display: flex;
  align-items: center;
}
.ps {
  display: flex;
  align-items: center;
  gap: 7px;
  flex: 1;
  cursor: default;
}
.ps.done { cursor: pointer; }
.ps-circle {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--border);
  color: var(--ink-3);
  
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all .3s;
}
.ps.active .ps-circle {
  background: var(--p);
  color: #fff;
  box-shadow: 0 3px 10px var(--p-glow);
}
.ps.done .ps-circle { background: var(--ok); color: #fff; }
.ps-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-4);
  white-space: nowrap;
  transition: color .3s;
}
.ps.active .ps-label { color: var(--p); }
.ps.done .ps-label { color: var(--ok); }
.ps-connector {
  flex: 1;
  height: 2px;
  background: var(--border);
  border-radius: 2px;
  margin: 0 8px;
  transition: background .4s;
  flex-shrink: 0;
  min-width: 16px;
}
.ps-connector.done { background: var(--ok); }
.prog-bar {
  height: 3px;
  background: var(--border);
  border-radius: 3px;
  overflow: hidden;
}
.prog-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--p), var(--p-mid));
  border-radius: 3px;
  transition: width .5s cubic-bezier(.4,0,.2,1);
}
@media (max-width: 480px) {
  .ps-label { display: none; }
  .ps-connector { margin: 0 4px; }
}

/* ─────────────────────────────────────────────
   STEP PANELS
───────────────────────────────────────────── */
.step-panel {display: none;max-width: 90vw;margin: auto;}
.step-panel.active { display: block; animation: stepIn .28s ease both; }
@keyframes stepIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ─────────────────────────────────────────────
   SECTION CARDS
───────────────────────────────────────────── */
.section-block {
  background: var(--white);
  border-radius: var(--r);
  box-shadow: var(--shadow-card);
  margin-bottom: 14px;
  overflow: hidden;
  /* max-width: 90vw; */
  /* margin: auto; */
}
.sb-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--border);
}
.sb-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--p-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.sb-title {
  
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
}
.sb-desc { font-size: 12px; color: var(--ink-3); margin-top: 1px; }
.sb-body { padding: 22px; }

/* ─────────────────────────────────────────────
   WHO CARDS
───────────────────────────────────────────── */
.who-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 420px) { .who-grid { grid-template-columns: 1fr; } }

.who-card {
  border: 2px solid var(--border);
  border-radius: var(--rs);
  padding: 16px;
  background: var(--white);
  cursor: pointer;
  text-align: left;
  transition: all .18s;
  display: flex;
  align-items: center;
  gap: 13px;
  position: relative;
}
.who-card:hover { border-color: var(--p-mid); background: var(--p-pale); }
.who-card.sel {
  border-color: var(--p);
  background: var(--p-pale);
  box-shadow: 0 0 0 3px var(--p-glow);
}
.wc-icon {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  background: rgba(92,53,176,.07);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background .18s;
}
.who-card.sel .wc-icon { background: rgba(92,53,176,.14); }
.wc-text {}
.wc-title {
  
  font-weight: 700;
  font-size: 14px;
  color: var(--ink);
  line-height: 1.2;
}
.wc-sub { font-size: 12px; color: var(--ink-3); margin-top: 2px; }
.wc-radio {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid var(--border-2);
  transition: all .18s;
  flex-shrink: 0;
}
.who-card.sel .wc-radio {
  border-color: var(--p);
  background: var(--p);
}
.who-card.sel .wc-radio::after {
  content: '';
  display: block;
  width: 9px;
  height: 6px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg) translateY(-1px);
  margin: 4px auto 0;
}

/* ─────────────────────────────────────────────
   AMOUNT TILES
───────────────────────────────────────────── */
.amt-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  margin-bottom: 12px;
}
@media (max-width: 460px) { .amt-grid { grid-template-columns: repeat(3, 1fr); } }

.amt-tile {
  border: 2px solid var(--border);
  border-radius: var(--rs);
  padding: 14px 6px;
  text-align: center;
  cursor: pointer;
  background: var(--white);
  transition: all .18s;
}
.amt-tile:hover { border-color: var(--p-mid); background: var(--p-pale); }
.amt-tile.sel {
  border-color: var(--p);
  background: var(--p-pale);
  box-shadow: 0 0 0 3px var(--p-glow);
}
.at-val {
  display: block;
  
  font-size: 15px;
  font-weight: 700;
  color: var(--ink-2);
  line-height: 1;
}
.amt-tile.sel .at-val { color: var(--p); }
.at-cur {
  display: block;
  font-size: 10px;
  color: var(--ink-4);
  margin-top: 3px;
  font-weight: 500;
}

.custom-row {
  display: flex;
  align-items: center;
  border: 2px solid var(--border);
  border-radius: var(--rs);
  overflow: hidden;
  transition: border-color .18s;
}
.custom-row:focus-within { border-color: var(--p); }
.cr-pre {
  padding: 0 14px;
  height: 48px;
  display: flex;
  align-items: center;
  background: var(--p-pale);
  
  font-size: 13px;
  font-weight: 700;
  color: var(--p);
  border-right: 2px solid var(--border);
  flex-shrink: 0;
}
.custom-row input {
  flex: 1;
  border: none;
  outline: none;
  padding: 0 14px;
  height: 48px;
  font-size: 14px;
  color: var(--ink);
  background: transparent;
}
.custom-row input::placeholder { color: var(--ink-4); }
.amt-hint {
  font-size: 11px;
  color: var(--ink-4);
  margin-top: 7px;
}

/* ─────────────────────────────────────────────
   OCCASIONS
───────────────────────────────────────────── */
.occ-scroll {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(88px, 1fr));
  gap: 8px;
}
@media (max-width: 460px) { .occ-scroll { grid-template-columns: repeat(4, 1fr); } }

.occ-chip {
  border: 2px solid var(--border);
  border-radius: var(--rs);
  padding: 10px 6px;
  cursor: pointer;
  text-align: center;
  background: var(--white);
  transition: all .18s;
  position: relative;
}
.occ-chip:hover { border-color: var(--p-mid); background: var(--p-pale); }
.occ-chip.sel {
  border-color: var(--p);
  background: var(--p-pale);
}
.oc-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(92,53,176,.06);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 5px;
  transition: background .18s;
}
.occ-chip.sel .oc-icon { background: rgba(92,53,176,.14); }
.oc-label {
  font-size: 10px;
  font-weight: 600;
  color: var(--ink-2);
  line-height: 1.2;
}
.occ-chip.sel .oc-label { color: var(--p); }
.oc-tick {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--p);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2px;
}
.occ-chip.sel .oc-tick { display: flex; }

/* ─────────────────────────────────────────────
   GREETING CARD PICKER
───────────────────────────────────────────── */
.gc-row {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
}
@media (max-width: 460px) { .gc-row { grid-template-columns: repeat(4, 1fr); } }

.gc-thumb {
  border: 2.5px solid var(--border);
  border-radius: var(--rx);
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 3/2;
  position: relative;
  transition: all .22s;
  opacity: .38;
  filter: grayscale(.5);
}
/* card that matches the current occasion */
.gc-thumb.gc-matched {
  opacity: 1;
  filter: none;
  border-color: rgba(92,53,176,.35);
}

.gc-thumb:hover { opacity: 1; filter: none; border-color: rgba(92,53,176,.4); transform: scale(1.04); }
.gc-thumb.sel {
  opacity: 1;
  filter: none;
  border-color: var(--p);
  box-shadow: 0 0 0 3px var(--p-glow);
  transform: scale(1.04);
}
.gc-thumb.sel::after {
  content: '✓';
  position: absolute;
  top: 4px;
  right: 4px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--p);
  color: #fff;
  font-size: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

/* ─────────────────────────────────────────────
   MESSAGE TYPE SWITCHER
───────────────────────────────────────────── */
.msg-switcher {
  display: flex;
  background: var(--bg);
  border-radius: var(--rs);
  padding: 4px;
  gap: 3px;
  margin-bottom: 16px;
  border: 1px solid var(--border);
  flex-wrap: wrap;
}
.ms-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 9px 8px;
  border: none;
  border-radius: 8px;
  background: none;
  color: var(--ink-3);
  font-size: 12px;
  font-weight: 600;
  transition: all .18s;
  white-space: nowrap;
}
.ms-btn.active {
background: #79449c;
color: #fff;
  box-shadow: 0 1px 6px rgba(92,53,176,.1);
}
.ms-btn.active .ms-badge{
    color: #e9ecef !important;
}
.ms-badge {
  font-size: 9px;
  color: var(--gold);
  font-weight: 700;
}
.msg-pane { display: none; }
.msg-pane.active { display: block; }

/* ─────────────────────────────────────────────
   FIELDS
───────────────────────────────────────────── */
.field { margin-bottom: 14px; }
.f-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-2);
  margin-bottom: 6px;
}
.f-input::placeholder{color:#1a103582 !important;}
.f-req { color: var(--err); }
.f-input,
.f-select,
.f-textarea {
  width: 100% !important;
  height: 46px !important;
  border: 2px solid var(--border) !important;
  border-radius: var(--rs) !important;
  padding: 0 13px !important;
  font-size: 14px !important;
  color: var(--ink) !important;
  background: var(--white) !important;
  outline: none !important;
  transition: border-color .18s, box-shadow .18s !important;
  -webkit-appearance: none !important;
}
.f-textarea { height: auto; padding: 12px 13px; resize: vertical; min-height: 90px; }
.f-input:focus, .f-select:focus, .f-textarea:focus {
  border-color: var(--p);
  box-shadow: 0 0 0 3px var(--p-glow);
}
.f-input::placeholder, .f-textarea::placeholder { color: var(--ink-4); }
.f-error { border-color: var(--err) !important; box-shadow: 0 0 0 3px rgba(214,59,59,.08) !important; }
.f-errmsg { line-height: 1.2rem; font-size: 11px; color: var(--err); margin-top: 4px; display: block; }
.f-hint {
    font-size: 12px;
    color: #000000;
    margin-top: 5px;
    line-height: 1.8rem;
}
.f-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.f-phone { display: grid; grid-template-columns: 170px 1fr; gap: 10px; }
@media (max-width: 480px) { .f-row, .f-phone { grid-template-columns: 1fr; } }

/* ─────────────────────────────────────────────
   AI REPHRASE
───────────────────────────────────────────── */
.ai-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 7px;
}
.ai-label { font-size: 12px; font-weight: 600; color: var(--ink-2); }
.ai-btn {
    width: auto !important;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  border: 1.5px solid var(--border-2);
  border-radius: 100px;
  background: var(--white);
  color: var(--p);
  font-size: 11px;
  font-weight: 700;
  transition: all .18s;
  /* display: none !important; */
}
.ai-btn:hover { border-color: var(--p); background: var(--p-pale); }

.ai-result {
  background: var(--p-pale);
  border: 1.5px solid rgba(92,53,176,.16);
  border-radius: var(--rs);
  padding: 12px;
  margin-top: 8px;
  display: none;
}
.ai-option {
    background: #ffffff;
    padding: 4px 10px;
    border-radius: 8px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: 0.2s;
    font-size: 14px;
    border: 1px solid transparent;
    color: #393546;
}

.ai-option:hover {
  border-color: #523593;
}
.air-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .7px;
  color: var(--p);
  margin-bottom: 6px;
}
.air-text { font-size: 13px; color: var(--ink-2); line-height: 1.6; }
.air-actions { display: flex; gap: 7px; margin-top: 9px; }
.air-use {
  padding: 6px 14px;
  border: none;
  border-radius: 100px;
  background: var(--p);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
}
.air-discard {
  padding: 6px 12px;
  border: 1.5px solid var(--border-2);
  border-radius: 100px;
  background: var(--white);
  color: var(--ink-2);
  font-size: 12px;
  font-weight: 600;
}
.ai-thinking {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 10px 0;
  font-size: 12px;
  color: var(--ink-3);
}
.ai-dots span {
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--p);
  animation: d 1s infinite;
  margin-right: 2px;
}
.ai-dots span:nth-child(2) { animation-delay: .16s; }
.ai-dots span:nth-child(3) { animation-delay: .32s; }
@keyframes d { 0%,80%,100%{transform:scale(0);opacity:.4} 40%{transform:scale(1);opacity:1} }
.char-count { text-align: right; font-size: 11px; color: var(--ink-4); margin-top: 4px; }
.char-count.warn { color: var(--gold); }
.char-count.over { color: var(--err); }

/* ─────────────────────────────────────────────
   TEMPLATE GRID
───────────────────────────────────────────── */
.tpl-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
@media (max-width: 440px) { .tpl-grid { grid-template-columns: 1fr; } }
.tpl-card {
  border: 2px solid var(--border);
  border-radius: var(--rx);
  padding: 11px 12px;
  cursor: pointer;
  background: var(--white);
  text-align: left;
  transition: all .18s;
}
.tpl-card:hover { border-color: var(--p-mid); background: var(--p-pale); }
.tpl-card.sel { border-color: var(--p); background: var(--p-pale); }
.tpl-occ {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .6px;
  color: var(--gold);
  margin-bottom: 3px;
}
.tpl-text { font-size: 12px; color: var(--ink-2); line-height: 1.45; }

/* ─────────────────────────────────────────────
   CHARGE TAG
───────────────────────────────────────────── */
.charge-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--gold-bg);
  border: 1px solid rgba(200,146,30,.25);
  color: var(--gold);
  padding: 4px 10px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 600;
  margin-bottom: 10px;
}

/* ─────────────────────────────────────────────
   VOICE RECORDER
───────────────────────────────────────────── */
.vr-box {
  border: 2px solid var(--border);
  border-radius: var(--rs);
  padding: 16px;
  background: var(--bg);
  transition: all .2s;
}
.vr-box.recording { border-color: var(--err); background: var(--err-bg); }
.vr-box.done { border-color: var(--ok); background: var(--ok-bg); }
.vr-row { display: flex; align-items: center; gap: 12px; }
.vr-wave {
  flex: 1;
  height: 40px;
  background: rgba(92,53,176,.05);
  border-radius: 7px;
  display: flex;
  align-items: center;
  padding: 0 9px;
  gap: 2.5px;
  overflow: hidden;
}
.vr-bar {
  width: 2.5px;
  border-radius: 100px;
  background: rgba(92,53,176,.2);
  flex-shrink: 0;
}
.vr-wave.live .vr-bar { animation: vw .6s ease infinite alternate; }
.vr-wave.live .vr-bar:nth-child(2n) { animation-delay: .1s; }
.vr-wave.live .vr-bar:nth-child(3n) { animation-delay: .2s; }
@keyframes vw { from { height: 4px; } to { height: 22px; } }
.vr-timer {
  
  font-size: 17px;
  font-weight: 700;
  color: var(--ink-2);
  min-width: 38px;
  text-align: center;
}
.vr-timer.r { color: var(--err); }
.vr-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid var(--border-2);
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(0,0,0,.07);
  transition: all .18s;
}
.vr-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--err);
  transition: all .18s;
}
.vr-btn.live { border-color: var(--err); }
.vr-btn.live .vr-dot { border-radius: 3px; width: 12px; height: 12px; }
.vr-hint { font-size: 11px; color: var(--ink-4); margin-top: 7px; }
.vr-playback { margin-top: 10px; display: none; }
.vr-playback audio { width: 100%; border-radius: 7px; }
.vr-actions { display: flex; gap: 7px; margin-top: 8px; justify-content: flex-end; }

/* ─────────────────────────────────────────────
   VIDEO RECORDER
───────────────────────────────────────────── */
.vid-box {
  border: 2px dashed var(--border-2);
  border-radius: var(--rs);
  padding: 22px;
  text-align: center;
  transition: all .2s;
  background: var(--bg);
}
.vid-box.recording { border-color: var(--err); border-style: solid; background: var(--err-bg); }
.vid-box.done { border-color: var(--ok); border-style: solid; background: var(--ok-bg); }
.vid-icon { margin-bottom: 7px; }
.vid-title {  font-weight: 700; font-size: 14px; margin-bottom: 3px; }
.vid-sub { font-size: 12px; color: var(--ink-3); margin-bottom: 12px; }
.vid-timer { font-size: 20px; font-weight: 700; color: var(--err);  margin: 6px 0; }
.rec-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--err); animation: blink 1s infinite; margin-right: 4px; }
@keyframes blink { 0%,100%{opacity:1}50%{opacity:.2} }
video {     width: 80%;
    height: 650px !important;
    border-radius: 8px;
    max-height: 300px;
    object-fit: cover;
}

/* media buttons */
.mbtn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    width: 170px;
    padding: 7px 15px;
    border-radius: 100px;
    font-size: 13px;
    font-weight: 600;
    border: none;
    transition: all .18s;
    justify-content: center;
}
.mbtn-rec { background: var(--p); color: #fff; }
.mbtn-stop { background: var(--err); color: #fff; width: auto !important;}
.mbtn-re { background: rgba(92,53,176,.08); color: var(--p); }
.mbtn-rm { background: rgba(214,59,59,.08); color: var(--err); }

/* ─────────────────────────────────────────────
   DELIVERY TOGGLE
───────────────────────────────────────────── */
.del-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 18px; }
@media (max-width: 440px) { .del-grid { grid-template-columns: 1fr; } }
.del-card {
  border: 2px solid var(--border);
  border-radius: var(--rs);
  padding: 14px;
  background: var(--white);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all .18s;
  position: relative;
  text-align: left;
}
.del-card:hover { border-color: var(--p-mid); background: var(--p-pale); }
.del-card.sel { border-color: var(--p); background: var(--p-pale); }
.dc-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(92,53,176,.07);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background .18s;
}
.del-card.sel .dc-icon { background: rgba(92,53,176,.15); }
.dc-title { font-weight: 700; font-size: 13px; color: var(--ink); }
.dc-sub { font-size: 11px; color: var(--ink-3); margin-top: 1px; }
.dc-check {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid var(--border-2);
  transition: all .18s;
}
.del-card.sel .dc-check { border-color: var(--p); background: var(--p); }
.del-card.sel .dc-check::after {
  content: '';
  display: block;
  width: 9px;
  height: 6px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg) translateY(-1px);
  margin: 3px auto 0;
}

/* ─────────────────────────────────────────────
   RECIPIENTS
───────────────────────────────────────────── */
.recip-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 8px; }
.recip-row {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  background: var(--bg);
  padding: 10px 12px;
  border-radius: var(--rs);
  border: 1.5px solid var(--border);
}
.rn-badge {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--p);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 12px;
}
.rn-fields { flex: 1; display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
@media (max-width: 600px) { .rn-fields { grid-template-columns: 1fr 1fr; } }
@media (max-width: 420px) { .rn-fields { grid-template-columns: 1fr; } }
.rn-remove {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: none;
  background: rgba(214,59,59,.09);
  color: var(--err);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 12px;
  transition: all .18s;
}
.rn-remove:hover { background: var(--err); color: #fff; }
.add-recip-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 15px;
  border: 1.5px dashed rgba(92,53,176,.25);
  border-radius: var(--rx);
  background: rgba(92,53,176,.03);
  color: var(--p);
  font-size: 13px;
  font-weight: 600;
  transition: all .18s;
}
.add-recip-btn:hover { border-color: var(--p); background: var(--p-pale); }

/* ─────────────────────────────────────────────
   SCHEDULE TOGGLE
───────────────────────────────────────────── */
.sched-row { display: flex; align-items: center; gap: 10px; }
.tgl-sw {
  width: 38px;
  height: 22px;
  background: var(--border-2);
  border-radius: 100px;
  cursor: pointer;
  position: relative;
  transition: background .2s;
  flex-shrink: 0;
}
.tgl-sw::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  transition: left .2s;
  box-shadow: 0 1px 3px rgba(0,0,0,.18);
}
.tgl-sw.on { background: var(--p); }
.tgl-sw.on::after { left: 19px; }
.sched-fields { display: none; margin-top: 12px; }
.sched-fields.show { display: block; }

/* ─────────────────────────────────────────────
   PACKAGING
───────────────────────────────────────────── */
.pkg-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 440px) { .pkg-grid { grid-template-columns: 1fr; } }
.pkg-card {
  border: 2px solid var(--border);
  border-radius: var(--rs);
  padding: 13px;
  cursor: pointer;
  background: var(--white);
  text-align: center;
  transition: all .18s;
  position: relative;
}
.pkg-card:hover { border-color: var(--p-mid); background: var(--p-pale); }
.pkg-card.sel { border-color: var(--p); background: var(--p-pale); }
.pkg-vis {
  border-radius: 7px;
  background: rgba(92,53,176,.04);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
}
.pkg-name { font-weight: 700; font-size: 13px; color: var(--ink); }
.pkg-price { font-size: 12px; color: var(--p); font-weight: 600; margin-top: 1px; }
.pkg-desc { font-size: 10px; color: var(--ink-3); margin-top: 3px; line-height: 1.35; }
.pkg-ck {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid var(--border-2);
  transition: all .18s;
}
.pkg-card.sel .pkg-ck { border-color: var(--p); background: var(--p); }
.pkg-card.sel .pkg-ck::after {
  content: '';
  display: block;
  width: 9px;
  height: 6px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg) translateY(-1px);
  margin: 3px auto 0;
}

/* ─────────────────────────────────────────────
   ORDER REVIEW
───────────────────────────────────────────── */
.review-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 0;
  border-bottom: 1px solid var(--border);
  gap: 8px;
}
.review-row:last-child { border-bottom: none; }
.rv-label { font-size: 12px; color: var(--ink-3); flex-shrink: 0; width: 100px; }
.rv-right { display: flex; align-items: center; gap: 8px; flex: 1; justify-content: flex-end; }
.rv-value { font-size: 13px; font-weight: 600; color: var(--ink); text-align: right; }
.rv-edit { font-size: 11px; color: var(--p); cursor: pointer; text-decoration: underline; flex-shrink: 0; }

/* ─────────────────────────────────────────────
   NAVIGATION BUTTONS
───────────────────────────────────────────── */
.step-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 20px;
  padding-bottom: 30px;
}
.btn-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 11px 20px;
  border: 2px solid var(--border);
  border-radius: var(--rs);
  background: var(--white);
  color: var(--ink-2);
  font-size: 14px;
  font-weight: 600;
  transition: all .18s;
  justify-content: center;
}
.btn-back:hover { border-color: var(--p); color: var(--p); }
.btn-next {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 26px;
  border: none;
  border-radius: var(--rs);
  background: linear-gradient(135deg, var(--p), var(--p-mid));
  color: #fff;
  
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 4px 16px var(--p-glow);
  transition: all .18s;
  margin-left: auto;
  justify-content: center;
}
.btn-next:hover { transform: translateY(-1px); box-shadow: 0 7px 22px var(--p-glow); }
.btn-next:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.btn-submit {
  background: linear-gradient(135deg, #1A9E6A, #22C587);
  box-shadow: 0 4px 16px rgba(26,158,106,.22);
}
.btn-submit:hover { box-shadow: 0 7px 22px rgba(26,158,106,.3); }

/* section divider */
.s-divider { height: 1px; background: var(--border); margin: 18px 0; }

/* ─────────────────────────────────────────────
   SIDEBAR — SUMMARY CARD
───────────────────────────────────────────── */
.summary-wrap {
  background: var(--white);
  border-radius: var(--r);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  position: sticky;
  top: 72px;
  max-width: 90vw;
  margin: auto;
}
.sum-preview {
  /* background: var(--color-grad); */
  padding: 22px;
  position: relative;
  overflow: hidden;
}
.sum-preview::before {
  content: '';
  position: absolute;
  inset: 0;
  /* background: radial-gradient(ellipse at 85% 30%, rgba(200,146,30,.2) 0%, transparent 55%); */
}
.sum-preview::after {
  content: '◆';
  position: absolute;
  right: -6px;
  top: -6px;
  font-size: 72px;
  opacity: .07;
  color: #fff;
}
.sp-inner { position: relative; z-index: 1; }
.sp-brand { font-size: 9px; letter-spacing: 1.4px; text-transform: uppercase; color: rgba(255,255,255,.5); margin-bottom: 7px; }
.sp-amount {
  
  font-size: 32px;
  font-weight: 800;
  color: #fff;
  line-height: 1;
}
.sp-amount-sub { font-size: 11px; color: rgba(255,255,255,.5); margin-top: 3px; }
.sp-occ {
  display: inline-block;
  margin-top: 10px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 100px;
  padding: 4px 12px;
  font-size: 11px;
  color: rgba(255,255,255,.8);
}
.sp-bars { display: flex; gap: 3px; margin-top: 12px; }
.sp-bar { height: 2px; border-radius: 2px; flex: 1; background: rgba(255,255,255,.1); }
.sp-bar:first-child { background: rgba(200,146,30,.45); }
.sp-bar:nth-child(2) { background: rgba(255,255,255,.22); }

.sum-body { padding: 18px; }
.sum-ttl {
  /*  */
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  /* margin-bottom: 12px; */
}
.sum-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 7px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}
.sum-line:last-child { border-bottom: none; }
.sum-lbl { color: var(--ink-3); }
.sum-val { font-weight: 600; color: var(--ink); }
.sum-val.addon { color: var(--gold); }
.sum-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0 0;
  border-top: 2px solid var(--border);
  margin-top: 2px;
}
.sum-total-lbl {
  
  font-weight: 700;
  font-size: 13px;
  color: var(--ink);
  line-height: 2rem;
}
.sum-total-val {
  
  font-size: 14px;
  font-weight: 800;
  color: var(--p);
}
.sum-secure {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  color: var(--ink-4);
  justify-content: center;
  padding-top: 10px;
}

/* section heading inside card body */
.inner-heading {
  
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 7px;
}
.inner-heading::after { content: ''; flex: 1; height: 1px; background: var(--border); }

/* small inline input for recipient rows */
.ri::placeholder{color:#1a103582 !important;}
.ri {
  width: 100% !important;
  border: 1.5px solid var(--border) !important;
  border-radius: var(--rx) !important;
  height: 42px !important;
  padding: 0 11px !important;
  font-size: 13px !important;
  color: var(--ink) !important;
  background: var(--white) !important;
  outline: none !important;
  transition: border-color .18s !important;
}
.ri:focus { border-color: var(--p); }
.ri::placeholder { color: var(--ink-4); }

.sum-gkpoints,.sum-promocode{
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
}
.sum-gkpoints input,.sum-promocode input{
    /* width: 185px !important;     */
}
.sum-gkpoints .input-field,.sum-promocode .input-field{
    display: grid;
    border: 1px solid var(--border) !important;
    border-radius: 8px;
    gap: 0;
    margin: 0;
    grid-template-columns: 2fr 1fr;
}
.sum-gkpoints .input-field input,.sum-promocode .input-field input{
    border: none !important;
    outline: none !important;
    padding: 0px 10px !important;
    /* height: 34px !important; */
    font-size: 12px;
}
.sum-gkpoints .input-field input::placeholder,.sum-promocode .input-field input::placeholder{
    color: var(--ink-4) !important;
}
.sum-gkpoints .input-field button,.sum-promocode .input-field button{
    padding: 6px 14px;
    border: none;
    border-radius: 0 8px 8px 0;
    background: var(--p);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    margin-left: 8px;
}

/* For Chrome, Safari, Edge, and Opera */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* For Firefox */
input[type=number] {
  -moz-appearance: textfield;
}
.buystep-card {
    background: #f3eeff;
    padding: 15px;
    border-radius: 12px;
    margin: 15px 0;
}
.summary-wrap input[type=checkbox] {
    opacity: 1;
    width: 12px;
    height: 12px;
    margin: 5px;
}
.swal-btn-lg{
    padding: 10px 24px !important;
    font-size: 16px !important;
    background: rgb(105, 61, 151) !important;
}
.swal2-html-container{
  font-size: 16px !important;
}
.swal2-title{
  font-size: 20px !important;
}
.select2-container--default .select2-selection--single .select2-selection__rendered{
  font-size: 14px !important;
}

/* Info rows */
.gk-info-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 11px 0;
    border-bottom: 1px solid #f0f0f0;
}

.gk-info-label {
    font-size: 13px;
    color: #888;
    min-width: 110px;
    flex-shrink: 0;
}

.gk-info-value {
    font-size: 13px;
    font-weight: 600;
    color: #1a1a2e;
    word-break: break-word;
}


/* Pricing box */
.gk-pricing-box {
    background: #f9f7ff;
    border-radius: 12px;
    padding: 16px;
    margin-top: 14px;
}

.gk-pricing-title {
    font-size: 12px;
    font-weight: 700;
    color: #5C35B0;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 10px;
}

.gk-pricing-row {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: #555;
    margin-bottom: 7px;
}

.gk-pricing-value {
    font-weight: 600;
}


/* Total row */
.gk-pricing-total {
    border-top: 1.5px solid #e0d9f7;
    margin-top: 10px;
    padding-top: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.gk-total-label {
    font-size: 14px;
    font-weight: 700;
    color: #1a1a2e;
}

.gk-total-value {
    font-size: 20px;
    font-weight: 800;
    color: #5C35B0;
}
.phone-field {
    position: relative;
    display: flex;
    align-items: center;
}

.phone-prefix {
    position: absolute;
    left: 10px;
    color: var(--ink) !important;
    font-size: 13px;
    pointer-events: none;
}

.phone-field input {
    padding-left: 40px !important; /* space for +92 */
}

/* ─────────────────────────────────────────────
   RESUME INCOMPLETE ORDER BANNER
───────────────────────────────────────────── */
.resume-banner {
    background: light-dark(rgba(246, 238, 223, 1), rgba(72, 58, 15, 1));
    border: 1px solid light-dark(rgba(128, 92, 31, 1), rgba(168, 120, 41, 1));
    border-radius: 10px;
    padding: 1rem 1.25rem;
    display: flex;
    gap: 12px;
    max-width: 90vw;
    margin: auto;
    margin-bottom: 16px;
}

.resume-banner .icon-wrap {
    background: #FAEEDA;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.resume-banner .icon-wrap i {
    font-size: 18px;
    color: #BA7517;
}

.resume-banner-body {
    flex: 1;
}

.resume-banner-body .banner-label {
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: #BA7517;
    margin-bottom: 2px;
}

.resume-banner-body .banner-title {
    font-size: 16px;
    font-weight: bolder;
    color: light-dark(rgba(20, 20, 19, 1), rgba(250, 249, 245, 1));
    margin-bottom: 0;
}

.resume-banner-body .banner-meta {
    font-size: 12px;
    color: light-dark(rgba(61, 61, 58, 1), rgba(194, 192, 182, 1));
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.resume-banner-body .banner-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.banner-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    width: 40%;
}

.btn-resume {
    background: #BA7517;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 7px 16px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: opacity .15s;
}

.btn-resume:hover {
    opacity: .88;
}

.btn-discard {
    background: transparent;
    color: light-dark(rgba(61, 61, 58, 1), rgba(194, 192, 182, 1));
    border: 0.5px solid light-dark(rgba(31, 30, 29, 0.3), rgba(222, 220, 209, 0.3));
    border-radius: 8px;
    padding: 7px 14px;
    font-size: 13px;
    cursor: pointer;
    transition: background .15s;
}

.btn-discard:hover {
    background: light-dark(rgba(245, 244, 237, 1), rgba(38, 38, 36, 1));
}

@media (max-width: 480px) {
    .resume-banner {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
    }

    .resume-banner>* {
        width: calc(50% - 5px);
    }

    .resume-banner>*:nth-child(3) {
        width: 100%;
    }
}