
/* ─── TOKENS ─────────────────────────────────────────────── */
:root {
  --navy:         #0C2461;
  --navy-dark:    #071A46;
  --navy-mid:     #1A4899;
  --navy-tint:    #EEF3FB;
  --blue-light:   #D6E4FF;
  --white:        #FFFFFF;
  --bg:           #EEF2F7;
  --text-primary: #0D1B3E;
  --text-body:    #374151;
  --text-muted:   #6B7A99;
  --border:       #DDE5F0;
  --success:      #059669;
  --success-bg:   #ECFDF5;
  --success-text: #065F46;
  --warn:         #D97706;
  --warn-bg:      #FFFBEB;
  --warn-text:    #92400E;
  --error:        #DC2626;
  --error-bg:     #FEF2F2;
  --error-text:   #7F1D1D;
  --info-bg:      #EFF6FF;
  --info-text:    #1D4ED8;
  --card-shadow:  0 2px 16px rgba(12,36,97,0.08);
  --card-shadow-hover: 0 6px 24px rgba(12,36,97,0.13);
  --r-card:       16px;
  --r-btn:        12px;
  --r-pill:       999px;
  --bottom-nav-h: 72px;
  --header-h:     56px;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; height: 100%; }
body {
  font-family: 'Inter', system-ui, sans-serif;
  background: #C5CBD8;
  color: var(--text-primary);
  height: 100%;
  display: flex;
  justify-content: center;
  -webkit-font-smoothing: antialiased;
}

/* ─── APP SHELL ──────────────────────────────────────────── */
#app {
  width: 100%;
  max-width: 430px;
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
  background: var(--bg);
  box-shadow: 0 0 60px rgba(0,0,0,0.18);
}

/* ─── SCREEN ─────────────────────────────────────────────── */
.screen {
  display: none;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}
.screen.active { display: flex; }
.screen-body {
  flex: 1;
  min-height: 0;
  padding: 16px;
  overflow-y: auto;
}
.screen-body.no-header { padding-top: 0; }
.screen-body.no-nav    { padding-bottom: 24px; }

/* ─── HEADER ─────────────────────────────────────────────── */
.app-header {
  flex-shrink: 0;
  height: var(--header-h);
  background: var(--white);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
}
.header-back {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: none;
  background: var(--navy-tint);
  color: var(--navy);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  transition: background .15s;
}
.header-back:hover { background: var(--blue-light); }
.header-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}
.header-action {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px;
  color: var(--navy);
  font-weight: 500;
  cursor: pointer;
  border: none;
  background: none;
}

/* ─── BOTTOM NAV ─────────────────────────────────────────── */
.bottom-nav {
  flex-shrink: 0;
  height: var(--bottom-nav-h);
  background: var(--white);
  border-top: 1px solid var(--border);
  display: flex;
}
.nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
  border: none;
  background: none;
  padding: 8px 0;
  transition: color .15s;
  color: var(--text-muted);
}
.nav-item.active { color: var(--navy); }
.nav-item svg { width: 22px; height: 22px; stroke-width: 1.8; }
.nav-label { font-size: 10px; font-weight: 500; letter-spacing: 0.01em; }

/* ─── CARDS ──────────────────────────────────────────────── */
.card {
  background: var(--white);
  border-radius: var(--r-card);
  box-shadow: var(--card-shadow);
  overflow: hidden;
}
.card + .card { margin-top: 12px; }
.card-pad { padding: 20px; }

/* ─── BUTTONS ────────────────────────────────────────────── */
.btn {
  display: flex; align-items: center; justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 15px 24px;
  border-radius: var(--r-btn);
  border: none;
  font-size: 15px;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  transition: all .18s;
  letter-spacing: -0.01em;
}
.btn-primary {
  background: var(--navy);
  color: var(--white);
}
.btn-primary:hover  { background: var(--navy-mid); }
.btn-primary:active { transform: scale(0.98); }
.btn-secondary {
  background: var(--navy-tint);
  color: var(--navy);
}
.btn-secondary:hover { background: var(--blue-light); }
.btn-outline {
  background: transparent;
  color: var(--navy);
  border: 1.5px solid var(--border);
}
.btn-outline:hover { border-color: var(--navy); }
.btn-danger {
  background: var(--error-bg);
  color: var(--error);
}
.btn-sm {
  padding: 10px 18px;
  font-size: 13px;
  width: auto;
}
.btn-ghost {
  background: none;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 400;
  padding: 10px;
}
.btn + .btn { margin-top: 10px; }

/* ─── STATUS BADGES ──────────────────────────────────────── */
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 10px;
  border-radius: var(--r-pill);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.badge-success { background: var(--success-bg); color: var(--success-text); }
.badge-warn    { background: var(--warn-bg);    color: var(--warn-text); }
.badge-error   { background: var(--error-bg);   color: var(--error-text); }
.badge-navy    { background: var(--navy-tint);  color: var(--navy); }
.badge-muted   { background: #F1F5F9; color: var(--text-muted); }
.badge-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: currentColor;
}

/* ─── ALERT BANNER ───────────────────────────────────────── */
.alert {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 13px 16px;
  border-radius: 12px;
  font-size: 13px;
  line-height: 1.55;
  margin-bottom: 16px;
}
.alert-icon { font-size: 16px; flex-shrink: 0; margin-top: 1px; }
.alert-info    { background: var(--info-bg);    color: var(--info-text); }
.alert-warn    { background: var(--warn-bg);    color: var(--warn-text); }
.alert-error   { background: var(--error-bg);   color: var(--error-text); }
.alert-success { background: var(--success-bg); color: var(--success-text); }
.alert strong  { font-weight: 600; display: block; margin-bottom: 2px; }

/* ─── FORM ───────────────────────────────────────────────── */
.form-group { margin-bottom: 16px; }
.form-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 7px;
}
.form-input {
  width: 100%;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 13px 16px;
  font-size: 15px;
  font-family: 'Inter', sans-serif;
  color: var(--text-primary);
  outline: none;
  transition: border-color .18s;
}
.form-input:focus { border-color: var(--navy); }
.form-input::placeholder { color: var(--text-muted); }
.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236B7A99' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}
.form-hint {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 6px;
  line-height: 1.5;
}

/* ─── DIVIDER / LIST ROWS ────────────────────────────────── */
.info-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 13px 0;
  border-bottom: 1px solid var(--border);
  gap: 12px;
}
.info-row:last-child { border-bottom: none; }
.info-row-label { font-size: 13px; color: var(--text-muted); flex-shrink: 0; }
.info-row-value { font-size: 13px; font-weight: 500; color: var(--text-primary); text-align: right; }

/* ─── SERVICE CARD ───────────────────────────────────────── */
.service-card {
  background: var(--white);
  border-radius: var(--r-card);
  box-shadow: var(--card-shadow);
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  cursor: pointer;
  border: none;
  width: 100%;
  text-align: left;
  transition: box-shadow .2s, transform .15s;
  margin-bottom: 10px;
}
.service-card:hover {
  box-shadow: var(--card-shadow-hover);
  transform: translateY(-1px);
}
.service-icon {
  width: 48px; height: 48px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  font-size: 22px;
}
.service-info { flex: 1; }
.service-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 3px;
}
.service-desc { font-size: 12px; color: var(--text-muted); line-height: 1.45; }
.service-chevron { color: var(--text-muted); font-size: 18px; }

/* ─── DEVICE CARD ────────────────────────────────────────── */
.device-card {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  border-radius: var(--r-card);
  padding: 20px;
  color: var(--white);
  margin-bottom: 16px;
  box-shadow: 0 4px 20px rgba(12,36,97,0.25);
}
.device-card-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.65;
  margin-bottom: 6px;
}
.device-card-name {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}
.device-card-imei {
  font-size: 12px;
  opacity: 0.55;
  font-family: monospace;
  margin-bottom: 16px;
}
.device-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ─── FEATURE LIST ───────────────────────────────────────── */
.feature-list { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.feature-item {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 14px;
  color: var(--text-body);
  line-height: 1.5;
}
.feature-check {
  width: 20px; height: 20px;
  background: var(--navy);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}
.feature-check::after {
  content: '✓';
  font-size: 11px;
  color: white;
  font-weight: 700;
}

/* ─── MODAL ──────────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  background: rgba(7,26,70,0.45);
  z-index: 200;
  display: flex;
  align-items: flex-end;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s;
  backdrop-filter: blur(3px);
}
.modal-overlay.open { opacity: 1; pointer-events: all; }
.modal {
  background: var(--white);
  border-radius: 24px 24px 0 0;
  padding: 24px 24px 40px;
  width: 100%;
  transform: translateY(24px);
  transition: transform .3s cubic-bezier(0.33,1,0.68,1);
}
.modal-overlay.open .modal { transform: translateY(0); }
.modal-handle {
  width: 36px; height: 4px;
  background: var(--border);
  border-radius: 2px;
  margin: 0 auto 20px;
}
.modal-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}
.modal-body {
  font-size: 14px;
  color: var(--text-body);
  line-height: 1.65;
  margin-bottom: 24px;
}
.modal-actions { display: flex; flex-direction: column; gap: 10px; }

/* ─── SECTION LABEL ──────────────────────────────────────── */
.section-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 20px 0 10px;
}

/* ─── POLICY CHECKBOX ────────────────────────────────────── */
.policy-row {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 14px 0;
}
.policy-check {
  width: 20px; height: 20px;
  border-radius: 6px;
  border: 2px solid var(--border);
  background: var(--white);
  flex-shrink: 0;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  margin-top: 1px;
  transition: all .15s;
}
.policy-check.checked {
  background: var(--navy);
  border-color: var(--navy);
}
.policy-check.checked::after { content: '✓'; font-size: 12px; color: white; font-weight: 700; }
.policy-text { font-size: 13px; color: var(--text-body); line-height: 1.55; }
.policy-text a { color: var(--navy); font-weight: 500; text-decoration: none; }

/* ─── LOGIN SPECIFIC ─────────────────────────────────────── */
.login-hero {
  position: relative;
  height: 240px;
  background: linear-gradient(135deg, #0C2461 0%, #1565C0 60%, #1A237E 100%);
  overflow: hidden;
  border-radius: 0 0 28px 28px;
}
.login-hero-img {
  position: absolute; inset: 0;
  background-image: url('https://images.unsplash.com/photo-1588776814546-1ffcf47267a5?w=860&q=80');
  background-size: cover;
  background-position: center top;
  opacity: 0.35;
}
.login-hero-content {
  position: absolute;
  bottom: 24px; left: 24px; right: 24px;
}
.login-hero-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,0.18);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: var(--r-pill);
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 500;
  color: rgba(255,255,255,0.9);
  margin-bottom: 10px;
}
.login-hero-badge::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #4CAF50;
}
.login-hero-title {
  font-size: 26px;
  font-weight: 700;
  color: white;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 4px;
}
.login-hero-sub {
  font-size: 14px;
  color: rgba(255,255,255,0.7);
}
.login-body {
  padding: 28px 24px 40px;
  flex: 1;
  background: var(--white);
}
.login-tab-group {
  display: flex;
  background: var(--bg);
  border-radius: 12px;
  padding: 4px;
  margin-bottom: 24px;
}
.login-tab {
  flex: 1;
  padding: 10px;
  border-radius: 9px;
  border: none;
  background: transparent;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  transition: all .2s;
  display: flex; align-items: center; justify-content: center; gap: 6px;
}
.login-tab.active {
  background: var(--white);
  color: var(--text-primary);
  box-shadow: 0 1px 6px rgba(0,0,0,0.10);
}
.phone-row {
  display: flex; gap: 8px;
}
.phone-cc {
  display: flex; align-items: center; gap: 6px;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 13px 14px;
  font-size: 14px; font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  color: var(--text-primary);
}
.phone-cc-flag { font-size: 18px; }
.phone-input-wrap { flex: 1; }
.or-divider {
  display: flex; align-items: center; gap: 12px;
  margin: 18px 0;
  color: var(--text-muted);
  font-size: 13px;
}
.or-divider::before, .or-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}
.otp-input {
  text-align: center;
  font-size: 22px;
  font-family: 'Courier New', monospace;
  letter-spacing: 0.18em;
  font-weight: 600;
}
.terms-row {
  display: flex; align-items: flex-start; gap: 10px;
  margin: 18px 0 20px;
}
.terms-check {
  width: 20px; height: 20px; flex-shrink: 0;
  border-radius: 50%;
  border: 2px solid var(--border);
  cursor: pointer;
  margin-top: 1px;
  display: flex; align-items: center; justify-content: center;
  transition: all .15s;
}
.terms-check.checked { border-color: var(--navy); background: var(--navy); }
.terms-check.checked::after { content: '✓'; font-size: 11px; color: white; font-weight: 700; }
.terms-text {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}
.terms-text a { color: var(--navy); font-weight: 500; text-decoration: none; }
.login-footer {
  text-align: center;
  padding: 16px 0;
  background: var(--bg);
  font-size: 13px;
  color: var(--text-muted);
}
.login-footer a { color: var(--navy); font-weight: 500; text-decoration: none; margin: 0 4px; }

/* ─── DASHBOARD SPECIFIC ─────────────────────────────────── */
.dash-header {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  padding: 60px 20px 24px;
  color: white;
}
.dash-greeting {
  font-size: 13px;
  opacity: 0.65;
  margin-bottom: 4px;
}
.dash-name {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* ─── PLAN CARD (Care+) ───────────────────────────────────── */
.plan-card {
  background: var(--white);
  border-radius: var(--r-card);
  border: 2px solid var(--border);
  padding: 20px;
  cursor: pointer;
  transition: border-color .2s, box-shadow .2s;
}
.plan-card.selected {
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(12,36,97,0.10);
}
.plan-price {
  font-size: 26px;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.03em;
}
.plan-price span { font-size: 14px; font-weight: 500; color: var(--text-muted); }
.plan-old-price {
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: line-through;
  margin-left: 6px;
}
.plan-badge-sale {
  display: inline-block;
  background: #FEE2E2;
  color: #B91C1C;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--r-pill);
  margin-left: 8px;
}

/* ─── CHECKOUT / PAYMENT ─────────────────────────────────── */
.summary-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.summary-row:last-child { border-bottom: none; }
.summary-label { font-size: 14px; color: var(--text-body); }
.summary-value { font-size: 14px; font-weight: 500; color: var(--text-primary); }
.summary-total .summary-label { font-size: 15px; font-weight: 600; color: var(--text-primary); }
.summary-total .summary-value { font-size: 18px; font-weight: 700; color: var(--navy); }

/* ─── SUCCESS SCREEN ─────────────────────────────────────── */
.success-icon {
  width: 80px; height: 80px;
  background: var(--success-bg);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 36px;
  margin: 0 auto 24px;
}
.screen-center {
  display: flex; flex-direction: column; align-items: center;
  text-align: center;
  padding: 40px 24px;
}
.screen-center h2 {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}
.screen-center p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.65;
  max-width: 300px;
  margin-bottom: 32px;
}

/* ─── CARE+ ACTIVE STATE ─────────────────────────────────── */
.care-hero {
  background: linear-gradient(135deg, #0C2461, #1565C0);
  border-radius: var(--r-card);
  padding: 24px;
  color: white;
  margin-bottom: 16px;
  position: relative;
  overflow: hidden;
}
.care-hero::after {
  content: '🛡';
  position: absolute;
  right: -8px; bottom: -12px;
  font-size: 80px;
  opacity: 0.12;
}
.care-hero-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.65;
  margin-bottom: 6px;
}
.care-hero-name {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

/* ─── EMPTY / NO DEVICE ──────────────────────────────────── */
.empty-state {
  display: flex; flex-direction: column; align-items: center;
  text-align: center;
  padding: 56px 24px;
}
.empty-icon {
  width: 72px; height: 72px;
  border-radius: 20px;
  background: var(--navy-tint);
  display: flex; align-items: center; justify-content: center;
  font-size: 32px;
  margin-bottom: 20px;
}
.empty-title { font-size: 17px; font-weight: 600; color: var(--text-primary); margin-bottom: 8px; }
.empty-desc  { font-size: 14px; color: var(--text-muted); line-height: 1.6; max-width: 240px; margin-bottom: 24px; }

/* ─── UTIL ───────────────────────────────────────────────── */
.mt-8  { margin-top: 8px; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mb-16 { margin-bottom: 16px; }
.text-center { text-align: center; }
.text-sm { font-size: 13px; color: var(--text-muted); line-height: 1.55; }

/* ─── DATA USAGE BAR ────────────────────────────────────── */
.usage-bar-wrap { margin: 10px 0 4px; }
.usage-bar-labels {
  display: flex; justify-content: space-between;
  font-size: 12px; color: var(--text-muted);
  margin-bottom: 6px;
}
.usage-bar-track {
  height: 8px; background: var(--bg);
  border-radius: 4px; overflow: hidden;
}
.usage-bar-fill {
  height: 100%; border-radius: 4px;
  background: var(--navy);
  transition: width .5s ease;
}
.usage-bar-fill.warn  { background: var(--warn); }
.usage-bar-fill.error { background: var(--error); }

/* ─── PLAN CARD (wireless) ──────────────────────────────── */
.w-plan-card {
  background: var(--white);
  border-radius: var(--r-card);
  box-shadow: var(--card-shadow);
  overflow: hidden;
  margin-bottom: 12px;
}
.w-plan-header {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  padding: 20px;
  color: white;
}
.w-plan-name {
  font-size: 18px; font-weight: 700;
  letter-spacing: -0.01em; margin-bottom: 4px;
}
.w-plan-price {
  font-size: 14px; opacity: 0.7;
}
.w-plan-body { padding: 16px 20px; }
.w-plan-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 0 20px 20px;
}
.w-action-btn {
  display: flex; flex-direction: column;
  align-items: center; gap: 5px;
  background: var(--navy-tint);
  border: none; border-radius: 12px;
  padding: 12px 8px;
  font-size: 11px; font-weight: 600;
  color: var(--navy);
  cursor: pointer;
  transition: background .15s;
  font-family: 'Inter', sans-serif;
  text-align: center;
  line-height: 1.3;
}
.w-action-btn:hover { background: var(--blue-light); }
.w-action-btn svg { width: 18px; height: 18px; stroke: var(--navy); }

/* ─── ERROR-STATE ACTION GRID (muted) ──────────────────────── */
.w-plan-actions.w-actions-muted .w-action-btn {
  background: #F1F5F9;
  color: var(--text-muted);
}
.w-plan-actions.w-actions-muted .w-action-btn svg { stroke: var(--text-muted); }
.w-plan-actions.w-actions-muted .w-action-btn:hover { background: #E2E8F0; color: var(--text-body); }

/* ─── PRIMARY CTA WELL (below action grid on error cards) ───── */
.w-plan-cta {
  padding: 16px 20px 22px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.w-plan-cta .btn {
  min-height: 50px;
  font-size: 15px;
  font-weight: 700;
}

/* ─── RADIO SELECT ──────────────────────────────────────── */
.radio-option {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 14px 16px;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  cursor: pointer;
  transition: border-color .15s;
  margin-bottom: 10px;
}
.radio-option.selected { border-color: var(--navy); background: var(--navy-tint); }
.radio-dot {
  width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid var(--border);
  flex-shrink: 0; margin-top: 2px;
  display: flex; align-items: center; justify-content: center;
  transition: all .15s;
}
.radio-option.selected .radio-dot {
  border-color: var(--navy);
  background: var(--navy);
}
.radio-option.selected .radio-dot::after {
  content: ''; width: 6px; height: 6px;
  background: white; border-radius: 50%;
}
.radio-label { font-size: 14px; font-weight: 600; color: var(--text-primary); }
.radio-sub   { font-size: 12px; color: var(--text-muted); margin-top: 2px; line-height: 1.45; }

/* ─── CANCEL REASON CHECKBOX ────────────────────────────── */
.reason-option {
  display: flex; align-items: center; gap: 12px;
  padding: 13px 0;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
}
.reason-option:last-child { border-bottom: none; }
.reason-box {
  width: 20px; height: 20px; border-radius: 6px;
  border: 2px solid var(--border); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  transition: all .15s;
}
.reason-box.checked { background: var(--navy); border-color: var(--navy); }
.reason-box.checked::after { content: '✓'; font-size: 11px; color: white; font-weight: 700; }
.reason-text { font-size: 14px; color: var(--text-body); }

/* ─── STEP PROGRESS ─────────────────────────────────────── */
.step-bar {
  display: flex; align-items: center; gap: 0;
  margin-bottom: 20px;
}
.step-seg {
  flex: 1; height: 3px;
  background: var(--border); border-radius: 2px;
}
.step-seg.done { background: var(--navy); }
.step-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--border); flex-shrink: 0;
  margin: 0 4px;
}
.step-dot.done { background: var(--navy); }

/* ─── ESIM PROFILE ROW ──────────────────────────────────── */
.esim-row {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 0; border-bottom: 1px solid var(--border);
}
.esim-row:last-child { border-bottom: none; }
.esim-icon {
  width: 40px; height: 40px; border-radius: 12px;
  background: var(--navy-tint);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; flex-shrink: 0;
}
.esim-info { flex: 1; }
.esim-carrier { font-size: 14px; font-weight: 600; color: var(--text-primary); }
.esim-detail  { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.esim-actions { display: flex; align-items: center; gap: 8px; }
.esim-toggle {
  width: 38px; height: 22px; border-radius: 11px;
  background: var(--success); border: none;
  position: relative; cursor: pointer; flex-shrink: 0;
  transition: background .2s;
}
.esim-toggle.off { background: var(--border); }
.esim-toggle::after {
  content: ''; position: absolute;
  width: 16px; height: 16px; border-radius: 50%;
  background: white; top: 3px; right: 3px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.15);
  transition: right .2s;
}
.esim-toggle.off::after { right: auto; left: 3px; }
.esim-delete {
  background: none; border: none;
  color: var(--text-muted); cursor: pointer;
  font-size: 18px; padding: 4px;
  border-radius: 8px; transition: all .15s;
}
.esim-delete:hover { color: var(--error); background: var(--error-bg); }

/* ─── RETURN & REPLACEMENT ───────────────────────────────── */
.rr-section-tabs { display:flex; background:var(--bg); border-radius:12px; padding:4px; margin-bottom:20px; }
.rr-section-tab { flex:1; padding:10px; border-radius:9px; border:none; background:transparent; font-size:13px; font-weight:600; color:var(--text-muted); cursor:pointer; transition:all .2s; font-family:'Inter',sans-serif; }
.rr-section-tab.active { background:var(--white); color:var(--navy); box-shadow:0 1px 6px rgba(0,0,0,.10); }
.rr-shipment-bar { background:var(--bg); padding:10px 16px; display:flex; justify-content:space-between; align-items:center; border-bottom:1px solid var(--border); }
.rr-shipment-label { font-size:11px; font-weight:700; text-transform:uppercase; letter-spacing:.06em; color:var(--text-muted); }
.rr-product-row { padding:16px 20px; }
.rr-product-row + .rr-product-row { border-top:1px solid var(--border); }
.rr-product-name { font-size:15px; font-weight:700; color:var(--text-primary); line-height:1.3; }
.rr-product-meta { font-size:12px; color:var(--text-muted); margin-top:2px; line-height:1.4; }
.rr-action-row { display:flex; gap:8px; margin-top:14px; }
.rr-action-btn { flex:1; padding:9px 4px; border-radius:10px; font-size:12px; font-weight:600; cursor:pointer; border:none; transition:all .15s; text-align:center; font-family:'Inter',sans-serif; letter-spacing:-.01em; }
.rr-action-btn.enabled { background:var(--navy-tint); color:var(--navy); }
.rr-action-btn.enabled:hover { background:var(--blue-light); }
.rr-action-btn.disabled { background:#F5F5F7; color:#B0B8CC; cursor:default; }
.rr-chip { display:flex; align-items:flex-start; gap:12px; background:var(--bg); border-radius:14px; padding:14px 16px; margin-bottom:12px; }
.rr-chip-info { flex:1; }
.rr-chip-name { font-size:14px; font-weight:600; color:var(--text-primary); }
.rr-chip-meta { font-size:12px; color:var(--text-muted); margin-top:2px; }
.rr-chip-remove { width:28px; height:28px; border-radius:50%; background:var(--white); border:1.5px solid var(--border); display:flex; align-items:center; justify-content:center; cursor:pointer; flex-shrink:0; font-size:14px; color:var(--text-muted); line-height:1; }
.rr-chip-remove:hover { background:var(--error-bg); color:var(--error); border-color:var(--error); }
.rr-detail-expand { margin-top:12px; padding-top:12px; border-top:1px solid var(--border); }
.rr-timeline { display:flex; flex-direction:column; }
.rr-tl-row { display:flex; gap:14px; padding-bottom:20px; position:relative; }
.rr-tl-row:last-child { padding-bottom:0; }
.rr-tl-left { display:flex; flex-direction:column; align-items:center; width:28px; flex-shrink:0; }
.rr-tl-dot { width:28px; height:28px; border-radius:50%; display:flex; align-items:center; justify-content:center; font-size:11px; font-weight:700; flex-shrink:0; }
.rr-tl-dot.done { background:var(--navy); color:white; }
.rr-tl-dot.active { background:var(--navy-tint); color:var(--navy); border:2px solid var(--navy); }
.rr-tl-dot.pending { background:var(--bg); color:var(--text-muted); border:2px solid var(--border); }
.rr-tl-line { flex:1; width:2px; background:var(--border); margin-top:4px; }
.rr-tl-content { flex:1; padding-top:4px; }
.rr-tl-label { font-size:14px; font-weight:600; color:var(--text-primary); }
.rr-tl-sub { font-size:12px; color:var(--text-muted); margin-top:2px; }
.gift-tag { display:inline-flex; align-items:center; gap:4px; background:#FFF7ED; color:#C2410C; border:1px solid #FED7AA; border-radius:6px; padding:2px 8px; font-size:11px; font-weight:700; }
.rr-order-list-card { background:var(--white); border-radius:var(--r-card); box-shadow:var(--card-shadow); margin-bottom:12px; overflow:hidden; }
.rr-empty { display:flex; flex-direction:column; align-items:center; justify-content:center; padding:48px 24px; text-align:center; }
.rr-empty-icon { font-size:48px; margin-bottom:16px; }
.rr-empty-title { font-size:16px; font-weight:700; color:var(--text-primary); margin-bottom:6px; }
.rr-empty-sub { font-size:13px; color:var(--text-muted); line-height:1.55; }
.rr-preview-item { background:var(--bg); border-radius:14px; padding:16px; margin-bottom:12px; }
.rr-preview-item-header { display:flex; justify-content:space-between; align-items:flex-start; }
.rr-preview-item-name { font-size:14px; font-weight:700; color:var(--text-primary); }
.rr-preview-item-issue { font-size:13px; color:var(--text-muted); margin-top:4px; }
.rr-preview-remove { background:none; border:none; cursor:pointer; font-size:18px; color:var(--text-muted); line-height:1; padding:2px; }
.rr-preview-remove:hover { color:var(--error); }
.rr-steps { display:flex; flex-direction:column; gap:10px; }
.rr-step { display:flex; align-items:flex-start; gap:12px; }
.rr-step-num { width:24px; height:24px; border-radius:50%; background:var(--navy); color:white; font-size:12px; font-weight:700; display:flex; align-items:center; justify-content:center; flex-shrink:0; margin-top:1px; }
.rr-step-text { font-size:13px; color:var(--text-body); line-height:1.5; flex:1; }
