/* ─── Phone Input ─── */
.phone-input-wrap {
  display: flex;
  align-items: center;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  background: #fff;
  overflow: hidden;
  transition: border-color 0.2s;
}
.phone-input-wrap:focus-within {
  border-color: var(--green-primary);
  box-shadow: 0 0 0 3px rgba(10,92,74,0.1);
}
.phone-input-wrap input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 16px;
  font-family: var(--font-sans);
  padding: 14px 16px;
  background: transparent;
  color: var(--text-primary);
}
.phone-input-wrap input::placeholder { color: var(--text-muted); }
.flag-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 14px 14px 14px 16px;
  border-right: 1.5px solid var(--border);
  cursor: pointer;
  white-space: nowrap;
  font-size: 14px;
  color: var(--text-secondary);
  font-weight: 500;
  background: transparent;
  border-top: none;
  border-bottom: none;
  border-left: none;
}
.flag-btn:hover { background: #f9fafb; }

/* ─── Carrier Badges ─── */
.carrier-mtn    { background: var(--mtn-bg); color: var(--mtn-text); }
.carrier-orange { background: var(--carrier-orange-bg); color: var(--carrier-orange-text); }
.carrier-camtel { background: #0046E5; color: #fff; }

/* App store badges on home hero */
.app-store-badge { display: inline-block; transition: transform 0.15s; text-decoration: none; }
.app-store-badge:hover { transform: translateY(-2px); }
.carrier-badge  { font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: var(--radius-pill); display: inline-block; }

/* ─── Plan Card ─── */
.plan-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 16px 20px;
  border: 2px solid var(--border);
  cursor: pointer;
  transition: all 0.18s;
  display: flex;
  align-items: center;
  gap: 16px;
}
.plan-card:hover { border-color: var(--green-primary); box-shadow: var(--shadow-md); }
.plan-card.selected { border-color: var(--green-primary); background: var(--green-light); }
.plan-card-price { font-weight: 700; font-size: 18px; color: var(--green-primary); white-space: nowrap; }
.plan-card-label { font-weight: 600; color: var(--text-primary); font-size: 14px; }
.plan-card-meta  { font-size: 12px; color: var(--text-secondary); margin-top: 2px; }

/* ─── Buttons ─── */
.btn-orange {
  background: var(--orange-primary);
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  border: none;
  cursor: pointer;
  border-radius: var(--radius-md);
  padding: 15px 24px;
  width: 100%;
  transition: all 0.2s;
  box-shadow: var(--shadow-btn);
  letter-spacing: 0.01em;
}
.btn-orange:hover { background: var(--orange-dark); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(247,148,29,0.45); }
.btn-orange:disabled { background: #D1D5DB; box-shadow: none; transform: none; cursor: not-allowed; }

/* ─── Pay button — brand-adaptive ─── */
.pay-btn {
  width: 100%;
  border: none;
  cursor: pointer;
  border-radius: 9999px;             /* pill shape — matches Ding/Apple/PayPal pattern */
  padding: 16px 24px;
  font-weight: 600;
  font-size: 16px;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 0.01em;
  min-height: 54px;
}
.pay-btn:disabled { background: #D1D5DB !important; color: #fff !important; box-shadow: none !important; transform: none !important; cursor: not-allowed; }
.pay-btn:not(:disabled):hover { transform: translateY(-1px); }

/* Default + Card: brand orange */
.pay-btn-default {
  background: var(--orange-primary);
  color: #fff;
  box-shadow: var(--shadow-btn);
}
.pay-btn-default:not(:disabled):hover { background: var(--orange-dark); box-shadow: 0 6px 20px rgba(247,148,29,0.45); }

/* MTN MoMo — MTN yellow */
.pay-btn-momo-mtn {
  background: #FFCC00;
  color: #1A1A1A;
  box-shadow: 0 4px 14px rgba(255,204,0,0.45);
}
.pay-btn-momo-mtn:not(:disabled):hover { background: #E6B800; box-shadow: 0 6px 20px rgba(255,204,0,0.5); }

/* Orange Money — black background so the official Orange logo (orange square) stays readable */
.pay-btn-momo-orange {
  background: #000;
  color: #fff;
  box-shadow: 0 4px 14px rgba(0,0,0,0.25);
}
.pay-btn-momo-orange:not(:disabled):hover { background: #1a1a1a; box-shadow: 0 6px 20px rgba(0,0,0,0.35); }

/* Apple Pay — black, per Apple's HIG */
.pay-btn-apple {
  background: #000;
  color: #fff;
  box-shadow: 0 4px 14px rgba(0,0,0,0.25);
}
.pay-btn-apple:not(:disabled):hover { background: #1a1a1a; box-shadow: 0 6px 20px rgba(0,0,0,0.35); }

/* Google Pay — black per Google's brand guidelines */
.pay-btn-google {
  background: #000;
  color: #fff;
  box-shadow: 0 4px 14px rgba(0,0,0,0.25);
}
.pay-btn-google:not(:disabled):hover { background: #1a1a1a; box-shadow: 0 6px 20px rgba(0,0,0,0.35); }

/* PayPal — PayPal blue */
.pay-btn-paypal {
  background: #0070BA;
  color: #fff;
  box-shadow: 0 4px 14px rgba(0,112,186,0.4);
}
.pay-btn-paypal:not(:disabled):hover { background: #005ea6; box-shadow: 0 6px 20px rgba(0,112,186,0.5); }

.btn-green {
  background: var(--green-primary);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  border: none;
  cursor: pointer;
  border-radius: var(--radius-md);
  padding: 13px 24px;
  transition: all 0.2s;
}
.btn-green:hover { background: var(--green-dark); transform: translateY(-1px); }
.btn-green:disabled { background: #D1D5DB; cursor: not-allowed; transform: none; }

.btn-outline {
  background: transparent;
  color: var(--green-primary);
  font-weight: 600;
  font-size: 15px;
  border: 1.5px solid var(--green-primary);
  cursor: pointer;
  border-radius: var(--radius-md);
  padding: 12px 24px;
  transition: all 0.2s;
}
.btn-outline:hover { background: var(--green-light); }

/* ─── Service Tab ─── */
.service-tab { transition: all 0.2s; }
.service-tab.active { background: var(--green-primary); color: #fff; }
.service-tab:not(.active) { background: #f3f4f6; color: var(--text-secondary); }
.service-tab:not(.active):hover { background: var(--green-light); color: var(--green-primary); }

/* ─── Step Indicator ─── */
.step-indicator { display: flex; align-items: center; gap: 0; margin-bottom: 32px; }
.step-item { display: flex; align-items: center; gap: 10px; flex: 1; }
.step-item:last-child { flex: 0; }
.step-num {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: #E5E7EB;
  color: var(--text-secondary);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 14px;
  flex-shrink: 0;
  transition: all 0.2s;
}
.step-num.active { background: var(--green-primary); color: #fff; }
.step-num.done   { background: var(--green-light); color: var(--green-primary); }
.step-label { font-size: 13px; font-weight: 600; color: var(--text-secondary); }
.step-label.active { color: var(--green-primary); }
.step-line { flex: 1; height: 2px; background: #E5E7EB; margin: 0 8px; }
.step-line.done { background: var(--green-primary); }

/* ─── Order Summary Card ─── */
.order-summary-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-md);
  position: sticky;
  top: 80px;
}
.order-summary-card .total-price { font-size: 28px; font-weight: 800; color: var(--green-primary); }

/* ─── QR Display Box ─── */
.qr-display-box {
  background: #fff;
  border: 2px solid var(--green-light);
  border-radius: var(--radius-lg);
  padding: 24px;
  text-align: center;
}
.qr-display-box img { width: 200px; height: 200px; margin: 0 auto 16px; display: block; }

/* ─── eSIM Drawer ─── */
.esim-drawer {
  position: fixed;
  right: 0; top: 0; bottom: 0;
  width: 420px;
  max-width: 95vw;
  background: #fff;
  box-shadow: -8px 0 40px rgba(0,0,0,0.18);
  z-index: 100;
  overflow-y: auto;
  padding: 32px 28px;
  transition: transform 0.3s cubic-bezier(0.4,0,0.2,1);
}
.esim-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 99;
}

/* ─── Skeleton ─── */
.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e8e8e8 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.4s infinite;
  border-radius: var(--radius-sm);
}
.skeleton-card { height: 80px; border-radius: var(--radius-lg); margin-bottom: 12px; }
.skeleton-esim { height: 200px; border-radius: var(--radius-lg); }
.skeleton-text  { height: 14px; width: 60%; margin-bottom: 8px; }
.skeleton-text-sm { height: 10px; width: 40%; }

/* ─── Payment Method Card ─── */
.payment-card {
  background: #fff;
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px 20px;
  cursor: pointer;
  transition: all 0.18s;
  display: flex;
  align-items: center;
  gap: 14px;
}
.payment-card:hover { border-color: var(--green-primary); }
.payment-card.selected { border-color: var(--green-primary); background: var(--green-light); }
.payment-card-icon { width: 40px; height: 40px; border-radius: 10px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; }

/* ─── Status Stages ─── */
.status-ring {
  width: 80px; height: 80px;
  border-radius: 50%;
  border: 4px solid var(--green-light);
  border-top-color: var(--green-primary);
  animation: spin 1s linear infinite;
  margin: 0 auto;
}

/* ─── Trust / Service Cards ─── */
.trust-card { background: #fff; border-radius: var(--radius-lg); padding: 20px 24px; display: flex; align-items: center; gap: 14px; box-shadow: 0 2px 12px rgba(0,0,0,0.06); }
.svc-card { background: #fff; border-radius: 20px; padding: 28px 24px; cursor: pointer; transition: all 0.2s; border: 2px solid transparent; box-shadow: 0 2px 12px rgba(0,0,0,0.06); }
.svc-card:hover { box-shadow: 0 8px 32px rgba(0,0,0,0.12); transform: translateY(-2px); border-color: var(--green-light); }

/* ─── Region Pill ─── */
.region-pill { padding: 8px 18px; border-radius: var(--radius-pill); font-size: 14px; font-weight: 500; cursor: pointer; transition: all 0.18s; border: 1.5px solid var(--border); background: #fff; color: var(--text-secondary); }
.region-pill.active { background: var(--green-primary); color: #fff; border-color: var(--green-primary); }
.region-pill:not(.active):hover { border-color: var(--green-primary); color: var(--green-primary); }

/* ─── eSIM Filter Toolbar (floating dropdown bar) ─── */
.esim-filterbar {
  display: flex; align-items: center; gap: 2px;
  background: var(--green-dark);
  border-radius: var(--radius-pill);
  padding: 7px 10px;
  box-shadow: var(--shadow-lg);
  overflow-x: auto;
  scrollbar-width: none;
}
.esim-filterbar::-webkit-scrollbar { display: none; }
.esim-filter-item { position: relative; flex-shrink: 0; }
.esim-filter-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 15px; border-radius: var(--radius-pill);
  font-size: 14px; font-weight: 600; color: rgba(255,255,255,0.82);
  background: transparent; border: none; cursor: pointer; white-space: nowrap;
  transition: color 0.15s, background 0.15s;
}
.esim-filter-btn:hover { color: #fff; }
.esim-filter-btn.primary { background: var(--green-mid); color: #fff; }
.esim-filter-btn.primary:hover { background: var(--green-primary); }
.esim-filter-btn .esim-caret { opacity: 0.65; flex-shrink: 0; }
.esim-filter-divider { width: 1px; height: 20px; background: rgba(255,255,255,0.16); flex-shrink: 0; margin: 0 2px; }
.esim-filter-menu {
  position: absolute; top: calc(100% + 10px); left: 0; z-index: 50;
  background: #fff; border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg); border: 1px solid var(--border);
  padding: 6px; min-width: 190px;
}
.esim-filter-opt {
  display: block; width: 100%; text-align: left;
  padding: 9px 12px; border-radius: var(--radius-sm);
  font-size: 14px; font-weight: 500; color: var(--text-primary);
  background: transparent; border: none; cursor: pointer; white-space: nowrap;
  transition: background 0.12s;
}
.esim-filter-opt:hover { background: var(--green-light); }
.esim-filter-opt.active { background: var(--green-light); color: var(--green-primary); font-weight: 700; }

/* ─── eSIM Plan Card ─── */
.esim-plan-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 20px;
  border: 2px solid var(--border);
  transition: all 0.2s;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.esim-plan-card:hover { border-color: var(--green-primary); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.esim-data-big { font-size: 36px; font-weight: 800; color: var(--green-primary); line-height: 1; }
.esim-price-tag { font-size: 20px; font-weight: 700; color: var(--orange-primary); }

/* ─── Speed Chip ─── */
.speed-chip { font-size: 10px; font-weight: 700; padding: 2px 8px; border-radius: var(--radius-pill); background: var(--green-light); color: var(--green-primary); }

/* ─── Checkmark Animation ─── */
.checkmark-circle { fill: none; stroke: var(--green-primary); stroke-width: 3; stroke-dasharray: 166; stroke-dashoffset: 166; animation: checkmark-circle-draw 0.6s ease-out forwards; }
.checkmark-check  { fill: none; stroke: var(--green-primary); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 48; stroke-dashoffset: 48; animation: checkmark-check-draw 0.4s 0.5s ease-out forwards; }

/* ─── Alert / Status Boxes ─── */
.alert-error   { background: #FEF2F2; border: 1.5px solid #FECACA; border-radius: var(--radius-md); padding: 14px 18px; color: #DC2626; font-size: 14px; }
.alert-success { background: var(--green-light); border: 1.5px solid #A7F3D0; border-radius: var(--radius-md); padding: 14px 18px; color: var(--green-primary); font-size: 14px; }
.alert-info    { background: #EFF6FF; border: 1.5px solid #BFDBFE; border-radius: var(--radius-md); padding: 14px 18px; color: #1D4ED8; font-size: 14px; }

/* ─── Country Dropdown ─── */
.country-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 50;
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  width: 280px;
  max-height: 300px;
  overflow-y: auto;
  margin-top: 4px;
}
.country-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  cursor: pointer;
  font-size: 14px;
  transition: background 0.12s;
}
.country-item:hover { background: var(--green-light); }

/* ─── Country Flag (flag-icons CSS lib) ─── */
.flag-icon, .fi {
  display: inline-block;
  width: 1.4em;
  height: 1.05em;
  border-radius: 2px;
  background-size: cover;
  background-position: 50%;
  background-repeat: no-repeat;
  vertical-align: -3px;
  flex-shrink: 0;
}
.flag-btn .fi { width: 1.6em; height: 1.2em; }
.country-item .fi { width: 1.7em; height: 1.25em; }
.country-item-dial {
  font-family: 'JetBrains Mono', monospace;
  color: var(--text-muted);
  font-size: 13px;
  white-space: nowrap;
}
.country-search-input {
  width: 100%;
  border: none;
  border-bottom: 1.5px solid var(--border);
  padding: 10px 14px;
  font-size: 14px;
  outline: none;
  font-family: var(--font-sans);
}

/* ─── Sandbox Banner ─── */
.sandbox-banner {
  background: #FFF3CD;
  border-bottom: 2px solid #FFC107;
  padding: 8px 16px;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  color: #856404;
}

/* ─── Table ─── */
.data-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.data-table th { text-align: left; padding: 10px 16px; font-size: 12px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-secondary); border-bottom: 2px solid var(--border); }
.data-table td { padding: 14px 16px; border-bottom: 1px solid var(--border); color: var(--text-primary); }
.data-table tr:hover td { background: var(--green-light); }

/* ─── Status Pill ─── */
.status-pill { font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: var(--radius-pill); display: inline-block; }
.status-pill.done      { background: #D1FAE5; color: #065F46; }
.status-pill.pending   { background: #FEF3C7; color: #92400E; }
.status-pill.failed    { background: #FEE2E2; color: #991B1B; }
.status-pill.processing { background: var(--green-light); color: var(--green-primary); }

/* ─── FAQ Accordion ─── */
.faq-item { background: #fff; border-radius: var(--radius-md); margin-bottom: 10px; overflow: hidden; border: 1.5px solid var(--border); }
.faq-question { width: 100%; text-align: left; padding: 18px 20px; font-weight: 600; font-size: 15px; cursor: pointer; background: transparent; border: none; display: flex; justify-content: space-between; align-items: center; color: var(--text-primary); }
.faq-answer { padding: 0 20px 18px; color: var(--text-secondary); font-size: 14px; line-height: 1.7; }


/* ──────────────────────────────────────────────────────────
   Header user-menu dropdown (logged-in state)
   Lives in components.css so it's available on every page.
   ────────────────────────────────────────────────────────── */
.user-menu-wrap { position: relative; }
.user-menu-trigger {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.18);
  color: #fff;
  padding: 6px 10px 6px 6px;
  border-radius: 9999px;
  cursor: pointer;
  font-weight: 500;
  font-size: 13px;
  transition: background 0.15s, border-color 0.15s;
  font-family: inherit;
}
.user-menu-trigger:hover {
  background: rgba(255,255,255,0.14);
  border-color: rgba(255,255,255,0.35);
}
.user-menu-trigger .menu-avatar {
  width: 26px; height: 26px; border-radius: 50%;
  background: rgba(255,255,255,0.2);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 12px;
  overflow: hidden;
  flex-shrink: 0;
}
.user-menu-trigger .menu-avatar img { width: 100%; height: 100%; object-fit: cover; }
.user-menu-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  width: 220px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 12px 36px rgba(0,0,0,0.18);
  padding: 6px;
  z-index: 60;
}
.user-menu-panel a {
  display: block;
  padding: 10px 14px;
  color: #1F2937;
  font-size: 14px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 500;
}
.user-menu-panel a:hover { background: #F3F4F6; }
.user-menu-panel a.danger { color: #B91C1C; }
.user-menu-panel a.danger:hover { background: #FEF2F2; }
.user-menu-panel hr {
  border: none;
  border-top: 1px solid #F3F4F6;
  margin: 4px 6px;
}
