:root {
  color-scheme: dark;
}

body {
  font-family: 'Inter', ui-sans-serif, system-ui;
}

.font-display { font-family: 'Sora', ui-sans-serif, system-ui; }

/* ---------- Card ---------- */
.auth-card {
  width: 100%;
  max-width: 408px;
  background: #1B1E33;
  border: 1px solid #2A2F4A;
  border-radius: 14px;
  padding: 28px 24px 26px;
}
@media (min-width: 640px) {
  .auth-card { padding: 34px 32px 30px; }
}

/* ---------- Fields ---------- */
.field-label {
  display: block;
  font-size: 13.5px;
  font-weight: 500;
  color: #F2F1FA;
  margin-bottom: 7px;
}

.field-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.field-icon {
  position: absolute;
  left: 13px;
  color: #8A8FB5;
  pointer-events: none;
  display: flex;
}

.field-input {
  width: 100%;
  background: #14172A;
  border: 1px solid #2A2F4A;
  border-radius: 10px;
  color: #F2F1FA;
  font-size: 14.5px;
  padding: 11px 13px 11px 40px;
  transition: border-color .15s ease, background .15s ease;
}

.field-input.no-icon { padding-left: 13px; }
.field-input.has-trailing { padding-right: 40px; }

.field-input::placeholder { color: #5C6291; }

.field-input:focus {
  outline: none;
  border-color: #17A2A2;
  background: #12142A;
}

.field-input.field-error {
  border-color: #F0554B;
}

.field-trailing-btn {
  position: absolute;
  right: 9px;
  color: #8A8FB5;
  display: flex;
  padding: 6px;
  border-radius: 7px;
  background: transparent;
  border: none;
  cursor: pointer;
}
.field-trailing-btn:hover { color: #F2F1FA; background: #23273F; }

.field-error-text {
  font-size: 12.5px;
  color: #F0554B;
  margin-top: 6px;
}

.field-hint {
  font-size: 12.5px;
  color: #8A8FB5;
  margin-top: 6px;
}

/* Kill Chrome's forced light autofill background */
.field-input:-webkit-autofill,
.field-input:-webkit-autofill:hover,
.field-input:-webkit-autofill:focus {
  -webkit-text-fill-color: #F2F1FA;
  -webkit-box-shadow: 0 0 0px 1000px #14172A inset;
  transition: background-color 9999s ease-in-out 0s;
}

/* ---------- Buttons ---------- */
.btn-primary {
  width: 100%;
  background: #17A2A2;
  color: #0C0E1C;
  font-weight: 600;
  font-size: 14.5px;
  border: none;
  border-radius: 10px;
  padding: 12px 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: background .15s ease, opacity .15s ease;
}
.btn-primary:hover:not(:disabled) { background: #14898F; }
.btn-primary:disabled { opacity: .6; cursor: not-allowed; }

.btn-ghost {
  width: 100%;
  background: transparent;
  color: #F2F1FA;
  font-weight: 500;
  font-size: 14.5px;
  border: 1px solid #2A2F4A;
  border-radius: 10px;
  padding: 11px 16px;
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease;
}
.btn-ghost:hover { border-color: #40456E; background: #1E2238; }

.link-accent {
  color: #17A2A2;
  font-weight: 500;
  cursor: pointer;
}
.link-accent:hover { color: #14898F; text-decoration: underline; }

/* ---------- Spinner ---------- */
.spinner {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid rgba(6, 17, 12, .35);
  border-top-color: #0C0E1C;
  animation: spin .65s linear infinite;
  flex-shrink: 0;
}
.spinner-muted {
  border: 2px solid rgba(237, 243, 240, .18);
  border-top-color: #F2F1FA;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Email chip (step-2 login) ---------- */
.email-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #14172A;
  border: 1px solid #2A2F4A;
  border-radius: 999px;
  padding: 4px 10px 4px 6px;
  font-size: 13.5px;
  color: #F2F1FA;
}
.email-chip .chip-avatar {
  width: 18px; height: 18px; border-radius: 999px;
  background: #17A2A2; color: #0C0E1C;
  display: grid; place-items: center;
  font-size: 10px; font-weight: 700;
  font-family: 'Sora', sans-serif;
}

/* ---------- Verification code boxes ---------- */
.code-input {
  width: 100%;
  aspect-ratio: 1 / 1;
  text-align: center;
  font-family: 'Sora', ui-sans-serif, system-ui;
  font-size: 20px;
  font-weight: 600;
  background: #14172A;
  border: 1px solid #2A2F4A;
  border-radius: 10px;
  color: #F2F1FA;
  caret-color: #17A2A2;
}
.code-input:focus {
  outline: none;
  border-color: #17A2A2;
  background: #12142A;
}
.code-input.field-error { border-color: #F0554B; }

/* ---------- Toast ---------- */
.toast {
  pointer-events: auto;
  max-width: 380px;
  width: 100%;
  background: #1B1E33;
  border: 1px solid #2A2F4A;
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13.5px;
  box-shadow: 0 8px 24px rgba(0,0,0,.35);
  animation: toast-in .18s ease;
}
.toast.toast-error { border-color: #4A2622; }
.toast.toast-success { border-color: #24284A; }
@keyframes toast-in {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Checkbox */
.chk {
  width: 17px; height: 17px;
  border-radius: 5px;
  border: 1px solid #40456E;
  background: #14172A;
  display: inline-grid;
  place-items: center;
  cursor: pointer;
  flex-shrink: 0;
}
.chk[data-checked="true"] {
  background: #17A2A2;
  border-color: #17A2A2;
}

/* Focus visibility for keyboard users on non-field controls */
a:focus-visible, button:focus-visible {
  outline: 2px solid #17A2A2;
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .spinner { animation-duration: 1.4s; }
  .toast { animation: none; }
}
/* ==================================================================
   Dashboard
   ================================================================== */

.dashboard-shell {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  overflow-x: hidden;
}

/* ---------- Header ---------- */
.dash-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.dash-greeting {
  font-size: 12.5px;
  color: #8A8FB5;
}

.dash-name {
  font-family: 'Sora', ui-sans-serif, system-ui;
  font-size: 17px;
  font-weight: 600;
  color: #F2F1FA;
  margin-top: 1px;
}

.icon-btn {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  background: #1B1E33;
  border: 1px solid #2A2F4A;
  border-radius: 10px;
  color: #F2F1FA;
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease;
}
.icon-btn:hover { border-color: #40456E; background: #1E2238; }

/* ---------- Balance card ---------- */
.balance-card {
  background: linear-gradient(155deg, #1B1F38 0%, #171A2E 60%, #14172A 100%);
  border: 1px solid #2A2F4A;
  border-radius: 14px;
  padding: 20px 20px 18px;
  margin-bottom: 22px;
}

.balance-label-row {
  display: flex;
  align-items: center;
  gap: 7px;
}

.balance-label {
  font-size: 12.5px;
  color: #8A8FB5;
}

.balance-eye {
  color: #8A8FB5;
  cursor: pointer;
  display: flex;
  padding: 2px;
}
.balance-eye:hover { color: #F2F1FA; }

.balance-amount {
  font-family: 'Sora', ui-sans-serif, system-ui;
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: #F2F1FA;
  margin-top: 6px;
  min-height: 38px;
  display: flex;
  align-items: center;
}

.balance-actions {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

.balance-actions .btn-primary,
.balance-actions .btn-ghost {
  padding: 10px 14px;
  font-size: 13.5px;
}

/* Fund-wallet account details, revealed under the balance card */
.fund-panel {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed #2A2F4A;
}

.fund-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 0;
}

.fund-row + .fund-row { border-top: 1px solid #23273F; }

.fund-row-label {
  font-size: 12px;
  color: #8A8FB5;
}

.fund-row-value {
  font-size: 14px;
  font-weight: 600;
  color: #F2F1FA;
  font-family: 'Sora', ui-sans-serif, system-ui;
}

.fund-copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: transparent;
  border: none;
  color: #17A2A2;
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
  padding: 4px 0;
}
.fund-copy-btn:hover { color: #14898F; }

.dva-pending-note {
  font-size: 12.5px;
  color: #8A8FB5;
  line-height: 1.5;
  margin-top: 4px;
}

/* ---------- Section headings ---------- */
.section-title {
  font-family: 'Sora', ui-sans-serif, system-ui;
  font-size: 14.5px;
  font-weight: 600;
  color: #F2F1FA;
  margin-bottom: 12px;
}

.section-block + .section-block { margin-top: 26px; }

/* ---------- Services grid (compact) ---------- */
.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
@media (max-width: 400px) {
  .service-grid { grid-template-columns: repeat(3, 1fr); }
}
.service-card {
  background: #1B1E33;
  border: 1px solid #2A2F4A;
  border-radius: 12px;
  padding: 16px 6px 13px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: border-color .15s ease, transform .1s ease, background .15s ease;
}
.service-card:hover { border-color: #33395C; background: #1E2238; }
.service-card:active { transform: scale(.97); }
/* Scoped so the green icon tiles on Profile/other pages stay untouched */
.service-card .service-icon {
  width: auto;
  height: auto;
  background: transparent;
  color: #F2F1FA;
}
.service-name {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: #F2F1FA;
  line-height: 1.25;
  text-align: center;
}

.service-desc {
  font-size: 11.5px;
  color: #8A8FB5;
  line-height: 1.4;
}

/* ---------- Activity list ---------- */
.activity-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
}
.activity-row + .activity-row { border-top: 1px solid #23273F; }

.activity-icon {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  background: #1E2238;
  border: 1px solid #2A2F4A;
  color: #8A8FB5;
}
.activity-icon.credit { color: #17A2A2; background: rgba(23,162,162,.1); border-color: transparent; }
.activity-icon.debit { color: #F0554B; background: rgba(240,85,75,.1); border-color: transparent; }

.activity-info { flex: 1; min-width: 0; }

.activity-title {
  font-size: 13.5px;
  font-weight: 500;
  color: #F2F1FA;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.activity-sub {
  font-size: 12px;
  color: #8A8FB5;
  margin-top: 1px;
}

.activity-amount {
  font-size: 13.5px;
  font-weight: 600;
  font-family: 'Sora', ui-sans-serif, system-ui;
  flex-shrink: 0;
}
.activity-amount.credit { color: #17A2A2; }
.activity-amount.debit { color: #F2F1FA; }

.empty-state {
  text-align: center;
  padding: 28px 10px;
  color: #8A8FB5;
  font-size: 13px;
}

/* Airtime page */
.network-btn {
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #2A2F4A;
  background: transparent;
  color: #F2F1FA;
  font-weight: 500;
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease;
  text-align: center;
}
.network-btn:hover { border-color: #40456E; background: #1E2238; }
.network-btn.selected { border-color: #17A2A2; background: rgba(23,162,162,0.12); }

.quick-amount {
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid #2A2F4A;
  background: transparent;
  color: #8A8FB5;
  font-size: 13px;
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease;
}
.quick-amount:hover { border-color: #40456E; background: #1E2238; color: #F2F1FA; }

/* Result overlay */
.result-overlay {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(10, 14, 13, 0.75);
  backdrop-filter: blur(6px);
  z-index: 100;
  padding: 20px;
  animation: overlay-in 0.2s ease;
}

.result-overlay .result-card {
  max-width: 340px;
  width: 100%;
  background: #1B1E33;
  border: 1px solid #2A2F4A;
  border-radius: 16px;
  padding: 32px 24px 24px;
  text-align: center;
  position: relative;
}

.result-overlay .result-icon {
  width: 56px;
  height: 56px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  margin: 0 auto 12px;
  font-size: 28px;
}

.result-overlay .result-icon.success {
  background: rgba(29, 184, 112, 0.15);
  color: #17A2A2;
  border: 1px solid #17A2A2;
}

.result-overlay .result-icon.error {
  background: rgba(240, 85, 75, 0.15);
  color: #F0554B;
  border: 1px solid #F0554B;
}

.result-overlay .result-title {
  font-family: 'Sora', sans-serif;
  font-size: 18px;
  font-weight: 600;
  color: #F2F1FA;
  margin-bottom: 6px;
}

.result-overlay .result-message {
  color: #8A8FB5;
  font-size: 14px;
  line-height: 1.5;
}

.result-overlay .close-btn {
  position: absolute;
  top: 10px;
  right: 14px;
  background: transparent;
  border: none;
  color: #8A8FB5;
  font-size: 20px;
  cursor: pointer;
  padding: 4px;
  transition: color 0.15s ease;
}

.result-overlay .close-btn:hover {
  color: #F2F1FA;
}

/* Data plans */
.plan-card {
  padding: 12px 10px;
  border-radius:0;
  border: 1px solid #2A2F4A;
  background: #14172A;
  text-align: left;
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease;
}
.plan-card:hover {
  border-color: #40456E;
  background: #1E2238;
}
.plan-card.selected {
  border-color: #17A2A2;
  background: rgba(23,162,162,0.08);
}

.plan-name {
  font-size: 13px;
  font-weight: 500;
  color: #F2F1FA;
  word-break: break-word;
}
.plan-amount {
  font-size: 14px;
  font-weight: 600;
  color: #17A2A2;
  margin-top: 4px;
}

/* Remove rounding from the data form controls */
#data-form .field-input,
#data-form .network-btn,
#data-form .btn-primary {
  border-radius: 0;
}

#data-form {
  border-radius: 0;
}

.auth-card {
  border-radius: 0;
}

/* ---------- electricity plans ---------- */
/* Meter type buttons */
.meter-type-btn {
  flex: 1;
  padding: 16px 12px;
  border-radius: 0;
  border: 1px solid #2A2F4A;
  background: #1B1E33;
  color: #F2F1FA;
  font-size: 16px;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease;
}
.meter-type-btn:hover { border-color: #40456E; background: #1E2238; }
.meter-type-btn.selected { border-color: #17A2A2; background: rgba(23,162,162,0.12); }
.provider-logo {
  width: 72px;
  height: 42px;
  display: block;
  object-fit: contain;
  margin: 0 auto 8px;
  border-radius: 0;
}
#provider-buttons .meter-type-btn {
  min-height: 92px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.activity-row {
  cursor: pointer;
}
.activity-row:hover {
  background: rgba(255,255,255,0.03);
}

/* ---------- Recharge PIN cards (transaction detail) ---------- */
.pin-card {
  background: #14172A;
  border: 1px solid #2A2F4A;
  border-radius: 10px;
  padding: 12px 13px;
}

.pin-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.pin-network-badge {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.4px;
  color: #17A2A2;
  background: rgba(29, 184, 112, 0.12);
  padding: 3px 8px;
  border-radius: 999px;
}

.pin-card-amount {
  font-size: 12.5px;
  font-weight: 600;
  color: #8A8FB5;
}

.pin-card-value {
  font-family: 'Sora', ui-sans-serif, system-ui;
  font-size: 15px;
  font-weight: 600;
  color: #F2F1FA;
  letter-spacing: 0.3px;
  word-break: break-all;
  margin-bottom: 8px;
}

.pin-card-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 8px;
  border-top: 1px dashed #2A2F4A;
}

.pin-card-serial {
  font-size: 11px;
  color: #5C6291;
  font-family: 'Sora', ui-sans-serif, system-ui;
}

.pin-copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: transparent;
  border: none;
  color: #17A2A2;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  padding: 3px 0;
}
.pin-copy-btn:hover { color: #14898F; }
.result-overlay .result-icon.pending {
  background: rgba(240, 180, 60, 0.15);
  color: #F4D35E;
  border: 1px solid #F4D35E;
}

/* ---------- Header action buttons ---------- */
.dash-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
/* ---------- Header user block ---------- */
.dash-user {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1;
}
.dash-user-text { min-width: 0; }
.dash-user-text .dash-greeting,
.dash-user-text .dash-name {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.profile-btn {
  border-radius: 999px;
  color: #17A2A2;
  background: rgba(29, 184, 112, 0.12);
  border-color: transparent;
}
.profile-btn:hover {
  background: rgba(29, 184, 112, 0.2);
  border-color: transparent;
}
@keyframes overlay-in {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}
.skeleton {
  background: linear-gradient(90deg, #1B1E33 25%, #1E2238 37%, #1B1E33 63%);
  background-size: 400% 100%;
  animation: skeleton-loading 1.4s ease infinite;
  border-radius: 8px;
}

/* ==================================================================
   Profile page
================================================================== */
.profile-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #1B1E33;
  border: 1px solid #2A2F4A;
  border-radius: 14px;
  padding: 18px 16px;
  margin-bottom: 22px;
}
.profile-avatar {
  width: 52px;
  height: 52px;
  border-radius: 999px;
  background: rgba(29, 184, 112, 0.12);
  color: #17A2A2;
  font-family: 'Sora', ui-sans-serif, system-ui;
  font-size: 17px;
  font-weight: 700;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.profile-name {
  font-family: 'Sora', ui-sans-serif, system-ui;
  font-size: 16px;
  font-weight: 600;
  color: #F2F1FA;
}
.profile-sub {
  font-size: 12.5px;
  color: #8A8FB5;
  margin-top: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.setting-row {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #1B1E33;
  border: 1px solid #2A2F4A;
  border-radius: 14px;
  padding: 14px 16px;
}
.setting-info { flex: 1; min-width: 0; }
.setting-title { font-size: 13.5px; font-weight: 600; color: #F2F1FA; }
.setting-sub { font-size: 12px; color: #8A8FB5; margin-top: 2px; }
.status-badge {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.4px;
  padding: 3px 8px;
  border-radius: 999px;
  flex-shrink: 0;
}
.status-badge.active { color: #17A2A2; background: rgba(29, 184, 112, 0.12); }
.status-badge.none { color: #F4D35E; background: rgba(240, 180, 60, 0.12); }
.pin-form {
  background: #1B1E33;
  border: 1px solid #2A2F4A;
  border-radius: 14px;
  padding: 16px;
  margin-top: 10px;
}
.btn-ghost.danger { color: #F0554B; border-color: #4A2622; }
.btn-ghost.danger:hover { background: rgba(240, 85, 75, 0.08); border-color: #F0554B; }

.profile-wallet-card {
  background: linear-gradient(155deg, #1B1F38 0%, #171A2E 60%, #14172A 100%);
  border: 1px solid #2A2F4A;
  border-radius: 14px;
  padding: 16px;
}
.profile-balance {
  font-family: 'Sora', ui-sans-serif, system-ui;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: #F2F1FA;
  margin-top: 4px;
}

/* ==================================================================
   Transactions page
================================================================== */
.tx-date-label {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: #8A8FB5;
  margin-bottom: 8px;
}
.tx-day-card {
  border: 1px solid #2A2F4A;
  border-radius: 0;
  padding: 4px 16px;
}
.tx-day-card .activity-row { cursor: pointer; }
.tx-pagination {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
}
.tx-pagination.hidden { display: none; }
.tx-page-indicator {
  font-size: 12.5px;
  color: #8A8FB5;
  flex-shrink: 0;
  font-family: 'Sora', ui-sans-serif, system-ui;
}


.activity-icon.success { color: #17A2A2; background: rgba(23,162,162,.1); border-color: transparent; }
.activity-icon.pending { color: #F4D35E; background: rgba(240,180,60,.1); border-color: transparent; }
.activity-icon.failed  { color: #F0554B; background: rgba(240,85,75,.1); border-color: transparent; }
.activity-amount.pending { color: #F4D35E; }
.activity-amount.failed  { color: #F0554B; }

/* Force the Transactions page to sit at the top of #view instead of being
   vertically centered when there are few rows (short content). #view uses
   items-center on wider screens, which otherwise pushes a short list down
   the page and leaves a big empty gap above it. */
.tx-shell-top {
  align-self: flex-start;
}

/* ---------- Transactions: search + status tabs ---------- */
.tx-search-row {
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
}
.tx-search-row .field-input {
  padding-top: 10px;
  padding-bottom: 10px;
  font-size: 13.5px;
}
.tx-status-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  margin-bottom: 18px;
  padding-bottom: 2px;
}
.tx-status-tabs::-webkit-scrollbar { display: none; }
.tx-status-tab {
  flex-shrink: 0;
  padding: 7px 15px;
  border-radius: 999px;
  border: 1px solid #2A2F4A;
  background: #1B1E33;
  color: #B4B8D8;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease, color .15s ease;
}
.tx-status-tab:hover { border-color: #40456E; color: #F2F1FA; }
.tx-status-tab.active {
  background: rgba(29, 184, 112, .12);
  border-color: #17A2A2;
  color: #17A2A2;
}

/* ==================================================================
   Data (Buy Data) page — flat, no-card layout matching Transactions
================================================================== */

/* Network picker: circular brand-colored avatars, 4 across */
.network-icon-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.network-icon-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 12px 6px;
  border: 1px solid #2A2F4A;
  border-radius: 0;
  background: #1B1E33;
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease;
}
.network-icon-btn:hover { border-color: #40456E; }
.network-icon-btn.selected { border-color: #17A2A2; background: rgba(23,162,162,0.08); }

.network-avatar {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-family: 'Sora', ui-sans-serif, system-ui;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.2px;
  flex-shrink: 0;
}
.network-avatar.mtn      { background: #F4D35E; color: #0C0E1C; }
.network-avatar.airtel   { background: #FCE4E6; color: #E4002B; }
.network-avatar.glo      { background: #E1F5F5; color: #1CA9A9; }
.network-avatar.n9mobile { background: rgba(23,162,162,0.14); color: #17A2A2; }
.network-avatar.disco    { background: #FAF0CA; color: #7A5A10; }

/* Preset amount chips (electricity "Choose an amount") — rectangular, not pills */
.amount-chip-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.amount-chip {
  padding: 14px 6px;
  border: 1px solid #2A2F4A;
  border-radius: 0;
  background: #1B1E33;
  color: #F2F1FA;
  font-size: 14.5px;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease;
}
.amount-chip:hover { border-color: #40456E; }
.amount-chip.selected { border-color: #17A2A2; background: rgba(23,162,162,0.1); color: #17A2A2; }

.network-name {
  font-size: 12px;
  font-weight: 600;
  color: #B4B8D8;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
.network-icon-btn.selected .network-name { color: #F2F1FA; }

/* Provider list (electricity discos) — long names don't fit a 4-col icon
   grid without wrapping unevenly, so use a vertical list of rows instead,
   same divider language as everything else on this page. */
.disco-list {
  border: 1px solid #2A2F4A;
}
.disco-list-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 14px;
  background: #1B1E33;
  border: none;
  cursor: pointer;
  text-align: left;
  transition: background .15s ease;
}
.disco-list-item + .disco-list-item { border-top: 1px solid #23273F; }
.disco-list-item:hover { background: #1E2238; }
.disco-list-item.selected { background: rgba(23,162,162,0.1); }
.disco-list-item .network-avatar {
  flex-shrink: 0;
}
.disco-list-item .disco-name {
  flex: 1;
  min-width: 0;
  font-size: 13.5px;
  font-weight: 600;
  color: #B4B8D8;
  line-height: 1.3;
}
.disco-list-item.selected .disco-name { color: #F2F1FA; }
.disco-list-item .disco-check {
  flex-shrink: 0;
  color: #17A2A2;
  opacity: 0;
  transition: opacity .15s ease;
}
.disco-list-item.selected .disco-check { opacity: 1; }

/* Field label row: label on the left, an optional action link on the right */
.field-label-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 7px;
}
.field-label-row .field-label { margin-bottom: 0; }
.field-label-row .link-accent { font-size: 12.5px; font-weight: 500; }

/* Package / plan trigger row — same visual language as a field, no left icon */
.package-row {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: #14172A;
  border: 1px solid #2A2F4A;
  border-radius: 0;
  color: #F2F1FA;
  font-size: 14.5px;
  padding: 12px 13px;
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease;
}
.package-row:hover { border-color: #40456E; }
.package-row .package-row-label { text-align: left; }
.package-row .field-icon { position: static; color: #8A8FB5; }

/* Amount field: currency prefix + big value, underline style */
.amount-field {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #14172A;
  border: 1px solid #2A2F4A;
  border-bottom: 2px solid #2A2F4A;
  padding: 12px 13px;
}
.amount-field.has-error { border-bottom-color: #F0554B; }
.amount-prefix {
  font-family: 'Sora', ui-sans-serif, system-ui;
  font-size: 20px;
  font-weight: 700;
  color: #5C6291;
  flex-shrink: 0;
}
.amount-input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: none;
  outline: none;
  font-family: 'Sora', ui-sans-serif, system-ui;
  font-size: 22px;
  font-weight: 700;
  color: #F2F1FA;
}
.amount-input::placeholder { color: #5C6291; }
.amount-balance {
  font-size: 12.5px;
  color: #8A8FB5;
}

/* ---------- Electricity: package (meter-type) cards + amount chips ---------- */
.package-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.package-option {
  padding: 16px;
  border: 1px solid #2A2F4A;
  background: #1B1E33;
  color: #F2F1FA;
  font-size: 15px;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease;
}
.package-option:hover { border-color: #40456E; }
.package-option.selected { border-color: #17A2A2; background: rgba(23,162,162,0.08); color: #17A2A2; }

.amount-chip-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.amount-chip {
  padding: 12px 8px;
  border: 1px solid #2A2F4A;
  background: #1B1E33;
  color: #F2F1FA;
  font-family: 'Sora', ui-sans-serif, system-ui;
  font-size: 13.5px;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease;
}
.amount-chip:hover { border-color: #40456E; }
.amount-chip.selected { border-color: #17A2A2; background: rgba(23,162,162,0.08); color: #17A2A2; }

.meter-status-text {
  font-size: 12.5px;
  margin-top: 8px;
}
.meter-status-text.ok { color: #17A2A2; }
.meter-status-text.checking { color: #8A8FB5; }

 — same visual language as
   Transactions' .tx-day-card: a thin outer border, no background fill,
   and a subtle divider line between each field block. */
.form-card {
  border: 1px solid #2A2F4A;
  padding: 4px 16px;
  margin-bottom: 18px;
}
.form-block { padding: 16px 0; }
.form-block + .form-block { border-top: 1px solid #23273F; }

/* Data-page fields flush with edges — no card, no rounding, matches Transactions */
#data-form .field-input,
#data-form .btn-primary,
#data-form .package-row,
#data-form .amount-field,
#data-form .network-icon-btn {
  border-radius: 0;
}

/* ==================================================================
   Bottom navigation
================================================================== */
.bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 90;
  display: flex;
  gap: 4px;
  background: rgba(15, 22, 20, 0.9);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-top: 1px solid #2A2F4A;
  padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
}
.bottom-nav.hidden { display: none; }
.bottom-nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 7px 0 5px;
  background: transparent;
  border: none;
  border-radius: 10px;
  color: #8A8FB5;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.2px;
  cursor: pointer;
  transition: color .15s ease;
}
.bottom-nav-item:hover { color: #F2F1FA; }
.bottom-nav-item.active { color: #17A2A2; }
/* Keep page content from hiding behind the nav */
body.has-bottom-nav #view {
  padding-bottom: calc(76px + env(safe-area-inset-bottom));
}
/* On desktop, shrink the nav into a small floating stack instead of
   spanning the full viewport width edge-to-edge. */
@media (min-width: 861px) {
  .bottom-nav {
    left: 50%;
    right: auto;
    bottom: 18px;
    transform: translateX(-50%);
    width: auto;
    gap: 4px;
    border: 1px solid #2A2F4A;
    border-radius: 16px;
    padding: 8px 8px;
    box-shadow: 0 16px 36px rgba(0,0,0,.4);
  }
  .bottom-nav-item {
    flex: none;
    width: 76px;
  }
  body.has-bottom-nav #view {
    padding-bottom: calc(96px + env(safe-area-inset-bottom));
  }
}

/* ==================================================================
   Transaction receipt page
================================================================== */
.tx-hero { text-align: center; padding: 2px 0 18px; }
.tx-hero-amount {
  font-family: 'Sora', ui-sans-serif, system-ui;
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: #F2F1FA;
}
.tx-hero-sub { font-size: 12.5px; color: #8A8FB5; margin: 4px 0 10px; }
.status-badge.failed { color: #F0554B; background: rgba(240,85,75,.12); }
.tx-timeline { margin-bottom: 18px; }
.tx-step { position: relative; display: flex; gap: 12px; padding-bottom: 18px; }
.tx-step::before {
  content: '';
  position: absolute;
  left: 13px;
  top: 30px;
  bottom: 2px;
  width: 2px;
  background: #2A2F4A;
}
.tx-step:last-child { padding-bottom: 0; }
.tx-step:last-child::before { display: none; }
.tx-step-icon {
  width: 28px; height: 28px;
  border-radius: 999px;
  display: grid; place-items: center;
  background: #1E2238;
  border: 2px solid #2A2F4A;
  color: #8A8FB5;
  flex-shrink: 0;
  z-index: 1;
}
.tx-step.done .tx-step-icon { color: #17A2A2; border-color: #17A2A2; background: rgba(23,162,162,.1); }
.tx-step.active .tx-step-icon { color: #F4D35E; border-color: #F4D35E; background: rgba(240,180,60,.1); }
.tx-step.failed .tx-step-icon { color: #F0554B; border-color: #F0554B; background: rgba(240,85,75,.1); }
.tx-step-title { font-size: 13.5px; font-weight: 600; color: #F2F1FA; }
.tx-step-time { font-size: 11.5px; font-weight: 400; color: #8A8FB5; margin-left: 6px; }
.tx-step-sub { font-size: 12px; color: #8A8FB5; margin-top: 2px; }
.tx-detail-card {
  background: #1B1E33;
  border: 1px solid #2A2F4A;
  border-radius: 14px;
  padding: 4px 16px 12px;
}
.tx-actions-card {
  background: #1B1E33;
  border: 1px solid #2A2F4A;
  border-radius: 14px;
  padding: 4px 16px;
}
.tx-action-row {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 0;
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
  text-decoration: none;
}
.tx-action-row + .tx-action-row { border-top: 1px solid #23273F; }
.tx-action-icon {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: #1E2238;
  border: 1px solid #2A2F4A;
  display: grid; place-items: center;
  color: #F2F1FA;
  flex-shrink: 0;
}
.tx-action-icon.danger { color: #F0554B; }
.tx-action-info { flex: 1; min-width: 0; }
.tx-action-title { display: block; font-size: 13.5px; font-weight: 600; color: #F2F1FA; }
.tx-action-title.danger { color: #F0554B; }
.tx-action-sub { display: block; font-size: 12px; color: #8A8FB5; margin-top: 1px; }
.tx-action-chevron { color: #5C6291; flex-shrink: 0; }

/* ==================================================================
   Support page
================================================================== */
.support-tabs { display: flex; gap: 8px; }
.support-tab {
  flex: 1;
  padding: 9px 8px;
  border-radius: 10px;
  border: 1px solid #2A2F4A;
  background: transparent;
  color: #8A8FB5;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease, color .15s ease;
}
.support-tab.selected { border-color: #17A2A2; background: rgba(23,162,162,.12); color: #17A2A2; }
.faq-item {
  background: #1B1E33;
  border: 1px solid #2A2F4A;
  border-radius: 12px;
  padding: 0 14px;
}
.faq-item + .faq-item { margin-top: 10px; }
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 13px 0;
  background: transparent;
  border: none;
  color: #F2F1FA;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
}
.faq-chev { color: #8A8FB5; flex-shrink: 0; transition: transform .15s ease; }
.faq-q.open .faq-chev { transform: rotate(180deg); }
.faq-a {
  font-size: 12.5px;
  color: #8A8FB5;
  line-height: 1.55;
  border-top: 1px solid #23273F;
  padding: 10px 0 13px;
}

/* ==================================================================
   Signup — split marketing layout (desktop) / centered card (mobile)
================================================================== */
.signup-layout {
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 16px;
}
.signup-aside { display: none; }
.signup-form-side {
  width: 100%;
  display: flex;
  justify-content: center;
}
@media (min-width: 1024px) {
  .signup-layout {
    max-width: 1240px;
    margin: 0 auto;
    justify-content: space-between;
    gap: 72px;
    padding: 56px 40px;
  }
  .signup-aside { display: block; flex: 1; max-width: 560px; }
  .signup-form-side { width: auto; flex-shrink: 0; }
  .signup-card { width: 500px; max-width: 500px; }
}
.signup-logo-row { display: flex; align-items: center; gap: 10px; margin-bottom: 44px; }
.signup-logo-mark {
  width: 40px; height: 40px;
  border-radius: 12px;
  background: rgba(29, 184, 112, 0.12);
  color: #17A2A2;
  display: grid; place-items: center;
}
.signup-logo-text {
  font-family: 'Sora', ui-sans-serif, system-ui;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.3px;
  color: #F2F1FA;
}
.signup-aside-title {
  font-family: 'Sora', ui-sans-serif, system-ui;
  font-size: 32px;
  font-weight: 700;
  line-height: 1.22;
  letter-spacing: -0.5px;
  color: #F2F1FA;
  margin-bottom: 14px;
}
.signup-aside-sub {
  color: #8A8FB5;
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 30px;
}
.signup-aside-strong {
  color: #F2F1FA;
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 18px;
}
.signup-points {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 44px;
}
.signup-points li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #B4B8D8;
  font-size: 14.5px;
}
.signup-points li :is(i, svg) { color: #17A2A2; flex-shrink: 0; }
.signup-aside-providers { color: #8A8FB5; font-size: 14px; margin-bottom: 14px; }
.signup-provider-row { display: flex; flex-wrap: wrap; gap: 10px; }
.signup-provider {
  padding: 8px 14px;
  background: #1B1E33;
  border: 1px solid #2A2F4A;
  border-radius: 10px;
  color: #F2F1FA;
  font-family: 'Sora', ui-sans-serif, system-ui;
  font-size: 13px;
  font-weight: 600;
}

/* ---------- Full-height shell so auth pages center vertically ---------- */
body {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}
  #view {
    flex: 1;
    display: flex;
    flex-direction: column;
  }
.auth-screen {
  flex: 1;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
}

/* ==================================================================
   Bottom sheet (package picker)
================================================================== */
.sheet-overlay {
  position: fixed;
  inset: 0;
  z-index: 120;
  background: rgba(10, 14, 13, 0.6);
  backdrop-filter: blur(4px);
  animation: sheet-fade .2s ease;
}
.sheet {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 121;
  /* background: #10161 4; */
  background: #171A2E;
  border: 1px solid #2A2F4A;
  border-bottom: none;
  border-radius: 20px 20px 0 0;
  max-height: 88vh;
  max-height: 88dvh;
  display: flex;
  flex-direction: column;
  padding: 10px 20px calc(16px + env(safe-area-inset-bottom));
  animation: sheet-up .25s ease;
}

.announcement-banner {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: #FAF0CA;
  border: 1px solid #F4D35E;
  color: #6B4E14;
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 16px;
  font-size: 13px;
  line-height: 1.5;
}
.announcement-banner i[data-lucide="megaphone"] {
  color: #C9A227;
  margin-top: 1px;
}
.announcement-banner-text strong { color: #C9A227; }
.announcement-banner-text a {
  color: #C9A227;
  font-weight: 600;
  text-decoration: underline;
  margin-left: 4px;
}
.announcement-banner-close {
  background: none;
  border: none;
  color: #8A6A24;
  cursor: pointer;
  padding: 2px;
  flex-shrink: 0;
}
.announcement-banner-close:hover { color: #6B4E14; }
@keyframes sheet-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes sheet-up {
  from { transform: translateY(48px); opacity: .4; }
  to   { transform: translateY(0);    opacity: 1; }
}
.sheet-handle {
  width: 44px; height: 5px;
  border-radius: 999px;
  background: #2E3350;
  margin: 2px auto 12px;
  flex-shrink: 0;
}
.sheet-close {
  position: absolute;
  top: 14px; right: 16px;
  width: 38px; height: 38px;
  border-radius: 999px;
  background: #22263F;
  border: 1px solid #2A2F4A;
  color: #F2F1FA;
  display: grid; place-items: center;
  cursor: pointer;
}
.sheet-close:hover { border-color: #40456E; }
.sheet-title {
  font-family: 'Sora', ui-sans-serif, system-ui;
  font-size: 17px;
  font-weight: 700;
  color: #F2F1FA;
  text-align: center;
  margin: 2px 0 18px;
}
.sheet-tabs-label { font-size: 13px; color: #F2F1FA; margin-bottom: 10px; }
.sheet-tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.sheet-tab {
  padding: 9px 16px;
  border-radius: 10px;
  border: 1px solid transparent;
  background: transparent;
  color: #F2F1FA;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease;
}
.sheet-tab.active { background: #2A2E4A; border-color: #34395A; }
.sheet-list {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;        /* Firefox */
  -ms-overflow-style: none;     /* old Edge */
  margin-top: 6px;
  padding-bottom: 8px;
}
.sheet-list::-webkit-scrollbar { display: none; }  /* Chrome, Safari, Opera */
.sheet-option {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: transparent;
  border: none;
  border-bottom: 1px solid #23273F;
  cursor: pointer;
  padding: 16px 2px;
  text-align: left;
  color: #F2F1FA;
  font-size: 15px;
  font-weight: 500;
}
.sheet-option:last-child { border-bottom: none; }
.sheet-option:active { background: rgba(255,255,255,.03); }
.sheet-option .opt-price {
  color: #F2F1FA;
  font-family: 'Sora', ui-sans-serif, system-ui;
  font-weight: 600;
  flex-shrink: 0;
}
.sheet-empty { text-align: center; color: #8A8FB5; padding: 26px 0; font-size: 13.5px; }

/* ==================================================================
   Login card — sharp / flat edit
================================================================== */
.login-card {
  border-radius: 0;                 /* kills the rounded corners */
  background: #171A2E;              /* slightly flatter, less "floaty" */
  border: 1px solid #2A2F4A;
  border-top: 2px solid #17A2A2;    /* thin accent line — delete if unwanted */
  box-shadow: 0 14px 34px rgba(0, 0, 0, .35);
}

/* ---------- Brand mark above auth card ---------- */
.auth-wrap {
  width: 100%;
  max-width: 408px;
}
.auth-logo {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  background: #17A2A2;
  color: #0C0E1C;
  display: grid;
  place-items: center;
  margin: 0 auto 16px;
  box-shadow: 0 6px 18px rgba(29, 184, 112, 0.25);
}
/* Make the inner controls sharp too, so everything matches */
.login-card .field-input,
.login-card .btn-primary,
.login-card .field-trailing-btn {
  border-radius: 0;
}

/* ==================================================================
   Signup steps (sliding panels)
================================================================== */
.signup-steps-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 18px 0 14px;
}
.signup-step-label {
  font-size: 12px;
  font-weight: 600;
  color: #8A8FB5;
  flex-shrink: 0;
  font-family: 'Sora', ui-sans-serif, system-ui;
}
.signup-progress {
  flex: 1;
  height: 4px;
  border-radius: 999px;
  background: #23273F;
  overflow: hidden;
}
.signup-progress-fill {
  height: 100%;
  border-radius: 999px;
  background: #17A2A2;
  transition: width .3s ease;
}
.steps-viewport { overflow: hidden; }
.steps-track {
  display: flex;
  transition: transform .35s ease;
}
.step-panel {
  flex: 0 0 100%;
  min-width: 100%;
}
@keyframes skeleton-loading {
  0% { background-position: 100% 50%; }
  100% { background-position: 0 50%; }
}

@media (prefers-reduced-motion: reduce) {
  .skeleton { animation-duration: 2.8s; }
}