/* How It Works — single phone + synced step narrative */

.mcube-how-it-works {
  --hiw-bg: #F7F5F0;
  --hiw-divider-fill: #FFFFFF;
  --hiw-title: #0A1628;
  --hiw-subtitle: #6B7280;
  --hiw-heading: #0A1628;
  --hiw-body: #4B5563;
  --hiw-phone-frame: #0A1628;
  --hiw-phone-notch: rgba(255, 255, 255, 0.22);
  --hiw-screen-bg: #FFFFFF;
  --hiw-skeleton: rgba(10, 22, 40, 0.08);
  --hiw-skeleton-strong: rgba(10, 22, 40, 0.14);
  --hiw-card-bg: #FFFFFF;
  --hiw-card-shadow: rgba(10, 22, 40, 0.08);
  --hiw-input-bg: #FFFFFF;
  --hiw-option-icon-bg: rgba(0, 201, 167, 0.12);
  --hiw-step-bg: rgba(255, 255, 255, 0.85);
  --hiw-step-border: rgba(10, 22, 40, 0.06);
  --hiw-step-active-bg: #FFFFFF;
  --hiw-step-active-border: rgba(0, 201, 167, 0.45);
  --hiw-step-num: rgba(10, 22, 40, 0.1);
  --hiw-step-num-active: #00C9A7;
  --hiw-tag-bg: rgba(0, 201, 167, 0.1);
  --hiw-tag-color: #008F78;
  --hiw-highlight: #6B7280;
  --hiw-glow: rgba(0, 201, 167, 0.15);
  --hiw-panel-bg: #FFFFFF;
  --hiw-panel-border: rgba(10, 22, 40, 0.06);

  position: relative;
  padding: 100px var(--mcube-space-page-mobile, 16px) 0;
  background: var(--hiw-bg);
  transition: background 0.3s ease;
  overflow: hidden;
}

html[data-theme="dark"] .mcube-how-it-works {
  --hiw-bg: #0A1628;
  --hiw-divider-fill: #070E1A;
  --hiw-title: #F1F5F9;
  --hiw-subtitle: #94A3B8;
  --hiw-heading: #E6EDF3;
  --hiw-body: #9BAAB8;
  --hiw-phone-frame: #070E1A;
  --hiw-phone-notch: rgba(255, 255, 255, 0.15);
  --hiw-screen-bg: #111827;
  --hiw-skeleton: rgba(255, 255, 255, 0.08);
  --hiw-skeleton-strong: rgba(255, 255, 255, 0.14);
  --hiw-card-bg: #1E293B;
  --hiw-card-shadow: rgba(0, 0, 0, 0.35);
  --hiw-input-bg: #0F172A;
  --hiw-option-icon-bg: rgba(0, 201, 167, 0.18);
  --hiw-step-bg: rgba(255, 255, 255, 0.03);
  --hiw-step-border: rgba(255, 255, 255, 0.08);
  --hiw-step-active-bg: rgba(255, 255, 255, 0.06);
  --hiw-step-active-border: rgba(0, 201, 167, 0.5);
  --hiw-step-num: rgba(255, 255, 255, 0.1);
  --hiw-step-num-active: #00C9A7;
  --hiw-tag-bg: rgba(0, 201, 167, 0.15);
  --hiw-tag-color: #00C9A7;
  --hiw-highlight: #94A3B8;
  --hiw-glow: rgba(0, 201, 167, 0.12);
  --hiw-panel-bg: rgba(255, 255, 255, 0.04);
  --hiw-panel-border: rgba(255, 255, 255, 0.08);
}

/* Subtle texture — process section only */
.mcube-hiw-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 60% 50% at 20% 80%, rgba(0, 201, 167, 0.06) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 85% 20%, rgba(245, 184, 0, 0.05) 0%, transparent 55%);
}

.mcube-how-container {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* Header — journey / process identity */
.mcube-hiw-header {
  text-align: center;
  margin-bottom: 48px;
}

.mcube-hiw-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(0, 201, 167, 0.1);
  border: 1px solid rgba(0, 201, 167, 0.25);
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 700;
  color: #008F78;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 16px;
}

html[data-theme="dark"] .mcube-hiw-eyebrow {
  color: #00C9A7;
  background: rgba(0, 201, 167, 0.12);
}

.mcube-hiw-eyebrow i {
  font-size: 11px;
}

.mcube-hiw-title {
  font-family: var(--mcube-font-display, 'Clash Display', sans-serif);
  font-size: clamp(28px, 4vw, 40px);
  color: var(--hiw-title) !important;
  margin: 0 0 12px;
  letter-spacing: -0.02em;
}

.mcube-hiw-subtitle {
  text-align: center;
  color: var(--hiw-subtitle) !important;
  font-size: 18px;
  line-height: 1.6;
  max-width: 560px;
  margin: 0 auto;
}

/* Legacy class aliases */
.mcube-how-it-works .mcube-section-title {
  font-family: var(--mcube-font-display, 'Clash Display', sans-serif);
  font-size: clamp(28px, 4vw, 40px);
  color: var(--hiw-title) !important;
  text-align: center;
  margin-bottom: 12px;
}

.mcube-how-it-works .mcube-section-subtitle {
  text-align: center;
  color: var(--hiw-subtitle) !important;
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 56px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Contained showcase panel */
.mcube-hiw-panel {
  background: var(--hiw-panel-bg);
  border: 1px solid var(--hiw-panel-border);
  border-radius: 28px;
  padding: 40px 24px;
  box-shadow:
    0 4px 32px rgba(10, 22, 40, 0.06),
    0 0 0 1px rgba(255, 255, 255, 0.5) inset;
  margin-bottom: 48px;
}

html[data-theme="dark"] .mcube-hiw-panel {
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.25);
}

/* Wave divider into Why section */
.mcube-hiw-divider {
  position: relative;
  z-index: 2;
  line-height: 0;
  margin-top: -1px;
}

.mcube-hiw-divider svg {
  display: block;
  width: 100%;
  height: 64px;
}

@media (min-width: 768px) {
  .mcube-hiw-divider svg {
    height: 80px;
  }

  .mcube-hiw-panel {
    padding: 48px 40px;
  }
}

/* ── Showcase layout ─────────────────────────────────────── */

.mcube-hiw-showcase {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
}

.mcube-hiw-phone-col {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.mcube-hiw-phone-glow {
  position: absolute;
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, var(--hiw-glow) 0%, transparent 70%);
  border-radius: 50%;
  z-index: 0;
  pointer-events: none;
}

/* ── Phone mockup ────────────────────────────────────────── */

.mcube-phone-mockup {
  width: 220px;
  height: 440px;
  background: var(--hiw-phone-frame);
  border-radius: 28px;
  padding: 12px;
  box-shadow:
    0 24px 64px rgba(0, 0, 0, 0.22),
    0 0 0 1px rgba(255, 255, 255, 0.06) inset;
  position: relative;
  z-index: 1;
}

.mcube-phone-mockup::before {
  content: '';
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: 64px;
  height: 5px;
  background: var(--hiw-phone-notch);
  border-radius: 3px;
  z-index: 2;
}

.mcube-phone-screen {
  width: 100%;
  height: 100%;
  background: var(--hiw-screen-bg);
  border-radius: 18px;
  overflow: hidden;
  position: relative;
  transition: background 0.3s ease;
}

.mcube-hiw-screen {
  position: absolute;
  inset: 0;
  padding: 28px 16px 16px;
  display: flex;
  flex-direction: column;
  opacity: 0;
  transform: translateY(12px) scale(0.97);
  transition: opacity 0.45s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}

.mcube-hiw-screen.is-active {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.mcube-hiw-app-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  min-height: 20px;
}

.mcube-hiw-app-logo {
  font-family: var(--mcube-font-display, 'Clash Display', sans-serif);
  font-size: 14px;
  font-weight: 700;
  color: var(--hiw-heading);
}

.mcube-hiw-app-back {
  width: 8px;
  height: 8px;
  border-left: 2px solid var(--hiw-skeleton-strong);
  border-bottom: 2px solid var(--hiw-skeleton-strong);
  transform: rotate(45deg);
  flex-shrink: 0;
}

.mcube-hiw-app-title {
  font-size: 11px;
  font-weight: 600;
  color: var(--hiw-heading);
  letter-spacing: 0.02em;
}

.mcube-hiw-success-amount {
  text-align: center;
  font-family: var(--mcube-font-display, 'Clash Display', sans-serif);
  font-size: 15px;
  font-weight: 700;
  color: var(--hiw-heading);
  margin-bottom: 12px;
}

/* ── Phone screen content ────────────────────────────────── */

.mcube-signup-animation,
.mcube-recipient-animation,
.mcube-delivery-animation,
.mcube-success-animation {
  width: 100%;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.mcube-form-field {
  background: var(--hiw-skeleton);
  border-radius: 8px;
  margin-bottom: 10px;
  padding: 8px;
}

.field-label {
  height: 7px;
  width: 55%;
  background: var(--hiw-skeleton-strong);
  border-radius: 4px;
  margin-bottom: 6px;
}

.field-input {
  height: 28px;
  background: var(--hiw-input-bg);
  border-radius: 6px;
  border: 1px solid var(--hiw-skeleton);
}

.mcube-cta-button {
  height: 36px;
  background: var(--mcube-gold, #F5B800);
  border-radius: 18px;
  margin-top: 12px;
}

.mcube-recipient-card {
  background: var(--hiw-card-bg);
  border-radius: 10px;
  padding: 12px;
  box-shadow: 0 4px 12px var(--hiw-card-shadow);
  border: 1px solid var(--hiw-skeleton);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.mcube-recipient-card--dim {
  opacity: 0.45;
}

.card-avatar {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, #0A1628, #00C9A7);
  border-radius: 50%;
  flex-shrink: 0;
}

.card-info {
  flex: 1;
}

.card-name {
  height: 10px;
  width: 75%;
  background: var(--hiw-skeleton-strong);
  border-radius: 4px;
  margin-bottom: 5px;
}

.card-phone {
  height: 7px;
  width: 55%;
  background: var(--hiw-skeleton);
  border-radius: 4px;
}

.mcube-delivery-option {
  background: var(--hiw-card-bg);
  border-radius: 8px;
  padding: 10px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--hiw-skeleton);
}

.mcube-delivery-option--selected {
  border-color: var(--mcube-teal, #00C9A7);
  background: var(--hiw-option-icon-bg);
}

.option-icon {
  width: 28px;
  height: 28px;
  background: var(--hiw-option-icon-bg);
  border-radius: 50%;
  flex-shrink: 0;
}

.option-text {
  flex: 1;
  height: 10px;
  background: var(--hiw-skeleton);
  border-radius: 4px;
}

.mcube-checkmark {
  width: 72px;
  height: 72px;
  margin: 0 auto 12px;
}

.mcube-checkmark-svg {
  width: 100%;
  height: 100%;
}

.mcube-checkmark-circle {
  stroke: var(--mcube-teal, #00C9A7);
  stroke-width: 2;
  stroke-dasharray: 166;
  stroke-dashoffset: 166;
  animation: mcube-hiw-stroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.mcube-checkmark-check {
  stroke: var(--mcube-teal, #00C9A7);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 48;
  stroke-dashoffset: 48;
  animation: mcube-hiw-stroke 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.6s forwards;
}

@keyframes mcube-hiw-stroke {
  100% { stroke-dashoffset: 0; }
}

.mcube-notification-badge {
  width: 100px;
  height: 32px;
  background: var(--mcube-gold, #F5B800);
  border-radius: 16px;
  margin: 0 auto;
}

/* ── Step narrative (right column) ───────────────────────── */

.mcube-hiw-steps {
  display: flex;
  flex-direction: column;
  gap: 4px;
  border-left: 1px solid var(--hiw-step-border);
  padding-left: 4px;
}

.mcube-hiw-step {
  position: relative;
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 16px;
  align-items: start;
  width: 100%;
  text-align: left;
  padding: 18px 20px 18px 16px;
  background: transparent;
  border: none;
  border-left: 3px solid transparent;
  border-radius: 0 12px 12px 0;
  cursor: pointer;
  transition: background 0.3s, border-color 0.3s, padding-left 0.3s;
  overflow: hidden;
}

.mcube-hiw-step:hover {
  background: var(--hiw-step-bg);
  border-left-color: rgba(0, 201, 167, 0.3);
  transform: none;
}

.mcube-hiw-step.is-active {
  background: var(--hiw-step-active-bg);
  border-left-color: var(--hiw-step-num-active);
  box-shadow: none;
  padding-left: 20px;
}

html[data-theme="dark"] .mcube-hiw-step.is-active {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.mcube-hiw-step-num {
  font-family: var(--mcube-font-display, 'Clash Display', sans-serif);
  font-size: 28px;
  font-weight: 700;
  line-height: 1;
  color: var(--hiw-step-num);
  transition: color 0.3s;
  padding-top: 2px;
}

.mcube-hiw-step.is-active .mcube-hiw-step-num {
  color: var(--hiw-step-num-active);
}

.mcube-hiw-step-body {
  min-width: 0;
}

.mcube-hiw-step-body h3 {
  font-family: var(--mcube-font-display, 'Clash Display', sans-serif);
  font-size: clamp(17px, 2.5vw, 20px);
  color: var(--hiw-heading) !important;
  margin: 0 0 6px;
  line-height: 1.3;
}

.mcube-hiw-step-body p {
  font-size: 14px;
  color: var(--hiw-body) !important;
  line-height: 1.65;
  margin: 0;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, opacity 0.35s ease, margin 0.35s ease;
}

.mcube-hiw-step.is-active .mcube-hiw-step-body p {
  max-height: 80px;
  opacity: 1;
  margin-bottom: 12px;
}

.mcube-hiw-step-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--hiw-tag-color);
  background: var(--hiw-tag-bg);
  padding: 3px 8px;
  border-radius: 9999px;
  margin-bottom: 8px;
}

.mcube-hiw-step-highlights {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, opacity 0.35s ease;
}

.mcube-hiw-step.is-active .mcube-hiw-step-highlights {
  max-height: 60px;
  opacity: 1;
}

.mcube-hiw-step-highlights li {
  font-size: 12px;
  color: var(--hiw-highlight);
  display: flex;
  align-items: center;
  gap: 6px;
}

.mcube-hiw-step-highlights li i {
  color: var(--mcube-teal, #00C9A7);
  font-size: 11px;
}

/* Auto-advance progress bar at bottom of active step */
.mcube-hiw-step-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  width: var(--hiw-progress, 0%);
  background: var(--mcube-gold, #F5B800);
  border-radius: 0 2px 2px 0;
  transition: width 0.05s linear;
  opacity: 0;
}

.mcube-hiw-step.is-active .mcube-hiw-step-progress {
  opacity: 1;
}

/* ── Animations ──────────────────────────────────────────── */

@keyframes mcube-hiw-slide-up {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes mcube-hiw-fade-in {
  from { opacity: 0; transform: scale(0.92); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes mcube-hiw-scale-in {
  from { opacity: 0; transform: scale(0); }
  to { opacity: 1; transform: scale(1); }
}

.mcube-how-it-works .animate-slide-up {
  animation: mcube-hiw-slide-up 0.55s cubic-bezier(0.4, 0, 0.2, 1) both;
}

.mcube-how-it-works .animate-fade-in {
  animation: mcube-hiw-fade-in 0.6s cubic-bezier(0.4, 0, 0.2, 1) both;
}

.mcube-how-it-works .animate-scale-in {
  animation: mcube-hiw-scale-in 0.55s cubic-bezier(0.4, 0, 0.2, 1) both;
}

/* ── Responsive ──────────────────────────────────────────── */

@media (min-width: 768px) {
  .mcube-how-it-works {
    padding: 100px var(--mcube-space-page-desktop, 80px);
  }

  .mcube-hiw-showcase {
    grid-template-columns: minmax(240px, 340px) 1fr;
    gap: 64px;
  }

  .mcube-phone-mockup {
    width: 260px;
    height: 520px;
  }

  .mcube-hiw-phone-glow {
    width: 340px;
    height: 340px;
  }
}

@media (min-width: 1024px) {
  .mcube-hiw-showcase {
    grid-template-columns: minmax(280px, 380px) 1fr;
    gap: 80px;
  }

  .mcube-phone-mockup {
    width: 280px;
    height: 560px;
  }
}

@media (max-width: 767px) {
  .mcube-hiw-step:not(.is-active) .mcube-hiw-step-body h3 {
    font-size: 15px;
  }

  .mcube-hiw-step:not(.is-active) {
    padding: 14px 16px 14px 12px;
  }
}

/* ============================================================
   RICH PHONE SCREEN CONTENT — replaces empty skeleton divs
   ============================================================ */

/* ── Shared screen primitives ─────────────────────────────── */
.hiw-screen-topbar {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 14px;
  min-height: 22px;
}

.hiw-screen-brand {
  font-family: var(--mcube-font-display, 'Clash Display', sans-serif);
  font-size: 13px;
  font-weight: 700;
  color: var(--hiw-heading);
  flex: 1;
}

.hiw-screen-pill {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 20px;
  background: rgba(0,201,167,.15);
  color: #00C9A7;
}

.hiw-back-btn {
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--hiw-skeleton);
  border-radius: 50%;
  font-size: 9px;
  color: var(--hiw-heading);
  flex-shrink: 0;
}

.hiw-screen-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--hiw-heading);
  flex: 1;
  text-align: center;
  margin-right: 22px; /* balance back btn */
}

.hiw-screen-greeting {
  font-family: var(--mcube-font-display, 'Clash Display', sans-serif);
  font-size: 14px;
  font-weight: 700;
  color: var(--hiw-heading);
  margin-bottom: 2px;
}

.hiw-screen-sub {
  font-size: 10px;
  color: var(--hiw-subtitle, #6B7280);
  margin-bottom: 12px;
}

/* ── Input fields (step 1) ────────────────────────────────── */
.hiw-input-field {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--hiw-input-bg, #fff);
  border: 1.5px solid var(--hiw-skeleton);
  border-radius: 8px;
  padding: 8px 10px;
  margin-bottom: 8px;
  font-size: 10px;
  color: var(--hiw-body);
}

.hiw-input-field i {
  color: #00C9A7;
  font-size: 11px;
  flex-shrink: 0;
}

.hiw-screen-btn {
  background: #F5B800;
  color: #0A1628;
  font-size: 11px;
  font-weight: 700;
  text-align: center;
  padding: 9px;
  border-radius: 20px;
  margin-top: 4px;
}

.hiw-screen-divider {
  font-size: 9px;
  color: var(--hiw-subtitle, #9CA3AF);
  text-align: center;
  margin: 8px 0 6px;
  position: relative;
}

.hiw-screen-divider::before,
.hiw-screen-divider::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 28%;
  height: 1px;
  background: var(--hiw-skeleton);
}
.hiw-screen-divider::before { left: 0; }
.hiw-screen-divider::after  { right: 0; }

.hiw-social-row {
  display: flex;
  gap: 8px;
}

.hiw-social-btn {
  flex: 1;
  padding: 7px;
  background: var(--hiw-card-bg, #fff);
  border: 1.5px solid var(--hiw-skeleton);
  border-radius: 8px;
  text-align: center;
  font-size: 12px;
  color: var(--hiw-heading);
}

/* ── Recipient screen (step 2) ───────────────────────────── */
.hiw-search-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  background: var(--hiw-skeleton);
  border-radius: 8px;
  padding: 7px 10px;
  margin-bottom: 10px;
  font-size: 10px;
  color: var(--hiw-subtitle, #9CA3AF);
}

.hiw-search-bar i { font-size: 10px; color: #9CA3AF; }

.hiw-section-label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--hiw-subtitle, #9CA3AF);
  margin-bottom: 6px;
}

.hiw-recipient-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  background: var(--hiw-card-bg, #fff);
  border: 1px solid var(--hiw-skeleton);
  border-radius: 10px;
  margin-bottom: 6px;
}

.hiw-recipient-row--dim { opacity: .4; }

.hiw-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

.hiw-avatar--teal  { background: linear-gradient(135deg, #00C9A7, #0A7A5E); }
.hiw-avatar--navy  { background: linear-gradient(135deg, #0A1628, #1E3A5F); }
.hiw-avatar--gold  { background: linear-gradient(135deg, #F5B800, #E07B00); }

.hiw-contact-info { flex: 1; min-width: 0; }

.hiw-contact-name {
  font-size: 10px;
  font-weight: 600;
  color: var(--hiw-heading);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hiw-contact-sub {
  font-size: 9px;
  color: var(--hiw-subtitle, #9CA3AF);
  margin-top: 1px;
}

.hiw-selected-check {
  font-size: 14px;
  color: #00C9A7;
  flex-shrink: 0;
}

/* ── Delivery screen (step 3) ────────────────────────────── */
.hiw-delivery-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 10px;
  background: var(--hiw-card-bg, #fff);
  border: 1.5px solid var(--hiw-skeleton);
  border-radius: 10px;
  margin-bottom: 7px;
  transition: all .2s;
}

.hiw-delivery-card--active {
  border-color: #00C9A7;
  background: rgba(0,201,167,.06);
  box-shadow: 0 2px 12px rgba(0,201,167,.15);
}

.hiw-delivery-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}

.hiw-delivery-icon--teal { background: rgba(0,201,167,.12); color: #00C9A7; }
.hiw-delivery-icon--navy { background: rgba(10,22,40,.1);   color: #0A1628; }
.hiw-delivery-icon--gold { background: rgba(245,184,0,.12); color: #C89400; }

html[data-theme="dark"] .hiw-delivery-icon--navy {
  background: rgba(255,255,255,.08);
  color: #CBD5E0;
}

.hiw-delivery-info { flex: 1; min-width: 0; }

.hiw-delivery-name {
  font-size: 10px;
  font-weight: 700;
  color: var(--hiw-heading);
}

.hiw-delivery-eta {
  font-size: 9px;
  color: var(--hiw-subtitle, #9CA3AF);
  margin-top: 1px;
}

.hiw-delivery-check {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #00C9A7;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  flex-shrink: 0;
}

/* ── Success screen (step 4) ─────────────────────────────── */
.hiw-notify-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--hiw-card-bg, #fff);
  border: 1px solid var(--hiw-skeleton);
  border-radius: 20px;
  padding: 6px 12px;
  font-size: 9px;
  font-weight: 600;
  color: var(--hiw-heading);
  box-shadow: 0 4px 12px rgba(0,0,0,.08);
  margin-top: 8px;
}

.hiw-notify-pill i { color: #F5B800; }

.hiw-receipt-btn {
  margin-top: 10px;
  background: #25D366;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 7px 14px;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

/* dark mode adjustments */
html[data-theme="dark"] .hiw-input-field {
  background: rgba(255,255,255,.04);
  border-color: rgba(255,255,255,.1);
  color: #94A3B8;
}

html[data-theme="dark"] .hiw-recipient-row,
html[data-theme="dark"] .hiw-delivery-card {
  background: rgba(255,255,255,.04);
  border-color: rgba(255,255,255,.08);
}

html[data-theme="dark"] .hiw-delivery-card--active {
  background: rgba(0,201,167,.1);
  border-color: rgba(0,201,167,.5);
}

html[data-theme="dark"] .hiw-social-btn {
  background: rgba(255,255,255,.04);
  border-color: rgba(255,255,255,.08);
  color: #E6EDF3;
}

html[data-theme="dark"] .hiw-notify-pill {
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.1);
  color: #E6EDF3;
}
