:root {
  /* Brand: blue (structure/navigation/links), red (calls-to-action/highlights),
     white (surfaces). --sh-success is kept separate from --sh-accent so
     "success" semantics (paid, active, profit) stay green even though the
     brand accent color is red. */
  --sh-primary: #2563eb;
  --sh-primary-dark: #1e3a8a;
  --sh-primary-light: #60a5fa;
  --sh-accent: #dc2626;
  --sh-accent-dark: #991b1b;
  --sh-success: #10b981;
  --sh-success-dark: #047857;
  --sh-warning: #f59e0b;
  --sh-warning-dark: #b45309;
  --sh-danger: #dc2626;
  --sh-danger-dark: #991b1b;
  --sh-info: #0ea5e9;
  --sh-info-dark: #0369a1;
  --sh-purple: #8b5cf6;
  --sh-purple-dark: #6d28d9;
  --sh-bg: #f3f5fa;
  --sh-surface: #ffffff;
  --sh-text: #1f2430;
  --sh-text-muted: #6b7280;
  --sh-border: #e6e8f0;
  --sh-radius: 14px;
  --sh-shadow: 0 4px 14px rgba(31, 36, 48, 0.06);
  --sh-shadow-hover: 0 10px 24px rgba(31, 36, 48, 0.10);
}

body {
  background-color: var(--sh-bg);
  background-image:
    radial-gradient(900px circle at 100% 0%, rgba(37, 99, 235, 0.07), transparent 45%),
    radial-gradient(900px circle at 0% 100%, rgba(220, 38, 38, 0.05), transparent 45%);
  background-attachment: fixed;
  color: var(--sh-text);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.sh-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}
.sh-brand-mark {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
}
.sh-auth-logo {
  width: 60px;
  height: 60px;
}

a {
  color: var(--sh-primary);
  text-decoration: none;
}
a:hover {
  color: var(--sh-primary-dark);
}

.navbar-brand {
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--sh-primary) !important;
}
.navbar.sticky-top {
  box-shadow: 0 2px 10px rgba(31, 36, 48, 0.05);
}

.btn-primary {
  background-color: var(--sh-primary);
  border-color: var(--sh-primary);
}
.btn-primary:hover, .btn-primary:focus {
  background-color: var(--sh-primary-dark);
  border-color: var(--sh-primary-dark);
}

.btn-accent {
  background-color: var(--sh-accent);
  border-color: var(--sh-accent);
  color: #fff;
}
.btn-accent:hover {
  background-color: var(--sh-accent-dark);
  border-color: var(--sh-accent-dark);
  color: #fff;
}

.bg-accent {
  background-color: var(--sh-accent) !important;
}

.sh-card {
  background: var(--sh-surface);
  border: 1px solid var(--sh-border);
  border-radius: var(--sh-radius);
  box-shadow: var(--sh-shadow);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.sh-card:hover {
  box-shadow: var(--sh-shadow-hover);
}

/*
 * Stat cards get an actual colored gradient body (not just a tinted icon
 * chip on a white card). Modifier classes map to meaning: accent=positive,
 * warning=pending/expense, info=neutral balance, purple=casino/bonus,
 * danger=negative, neutral=muted history. No modifier = brand gradient.
 */
.sh-stat-card {
  --stat-from: var(--sh-primary-light);
  --stat-to: var(--sh-primary-dark);
  background: linear-gradient(135deg, var(--stat-from) 0%, var(--stat-to) 100%);
  border: none;
  border-radius: var(--sh-radius);
  box-shadow: var(--sh-shadow);
  padding: 1.25rem 1.4rem;
  height: 100%;
  position: relative;
  overflow: hidden;
  color: #fff;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.sh-stat-card:hover {
  box-shadow: var(--sh-shadow-hover);
  transform: translateY(-2px);
}
.sh-stat-card::after {
  content: "";
  position: absolute;
  top: -30px;
  right: -30px;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
}
.sh-stat-card .sh-stat-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 600;
  margin-bottom: 0.35rem;
  position: relative;
  z-index: 1;
}
.sh-stat-card .sh-stat-value {
  font-size: 1.6rem;
  font-weight: 700;
  color: #fff;
  position: relative;
  z-index: 1;
}
.sh-stat-card .sh-stat-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  position: relative;
  z-index: 1;
}

.sh-stat-card.accent { --stat-from: #34d399; --stat-to: var(--sh-success-dark); }
.sh-stat-card.warning { --stat-from: #fbbf24; --stat-to: var(--sh-warning-dark); }
.sh-stat-card.info { --stat-from: #38bdf8; --stat-to: var(--sh-info-dark); }
.sh-stat-card.purple { --stat-from: #a78bfa; --stat-to: var(--sh-purple-dark); }
.sh-stat-card.danger { --stat-from: #fb7185; --stat-to: var(--sh-danger-dark); }
.sh-stat-card.neutral { --stat-from: #94a3b8; --stat-to: #475569; }

.sh-badge-pill {
  border-radius: 999px;
  padding: 0.3rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
}

.sh-sidebar {
  background: var(--sh-surface);
  border-right: 1px solid var(--sh-border);
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}

/*
 * Flexbox items default to min-width:auto, so a wide child (like a
 * table) refuses to shrink and drags the whole layout wider instead of
 * scrolling internally. min-width:0 lets this column actually shrink
 * to the available space so .table-responsive can do its job.
 */
.sh-main-content {
  min-width: 0;
}
.sh-sidebar .nav-link {
  color: var(--sh-text-muted);
  border-radius: 10px;
  padding: 0.55rem 0.9rem;
  font-weight: 500;
}
.sh-sidebar .nav-link.active,
.sh-sidebar .nav-link:hover {
  background: rgba(37, 99, 235, 0.08);
  color: var(--sh-primary);
}

.sh-hero {
  background: linear-gradient(135deg, #2563eb 0%, #1e3a8a 100%);
  color: #fff;
  border-radius: 24px;
}

/* Dashboard welcome banner — a richer multi-stop blue gradient with a red
   accent glow blob, distinct from the plain 2-color .sh-hero used elsewhere. */
.sh-hero-dashboard {
  background: linear-gradient(120deg, #1d4ed8 0%, #2563eb 45%, #0ea5e9 100%);
  position: relative;
  overflow: hidden;
}
.sh-hero-dashboard::before {
  content: "";
  position: absolute;
  top: -60px; right: -40px;
  width: 220px; height: 220px;
  border-radius: 50%;
  background: rgba(220, 38, 38, 0.25);
}
.sh-hero-dashboard::after {
  content: "";
  position: absolute;
  bottom: -70px; left: 15%;
  width: 180px; height: 180px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
}
.sh-hero-dashboard > * {
  position: relative;
  z-index: 1;
}

/* Task Earnings breakdown card: a colored gradient header ("All activity
   income") over a grid of individual per-task wallet tiles, so task money
   is never just one lump sum — every task's own balance is visible. */
.sh-task-earn-header {
  background: linear-gradient(120deg, #1e293b 0%, #0ea5e9 100%);
  border-radius: 18px 18px 0 0;
  padding: 1.1rem 1.4rem;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}
.sh-task-earn-header .sh-task-earn-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}
.sh-task-tile {
  background: var(--sh-surface);
  border: 1px solid var(--sh-border);
  border-radius: 14px;
  padding: 0.85rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  height: 100%;
}
.sh-task-tile .sh-task-tile-icon,
.sh-task-tile-wide .sh-task-tile-icon {
  width: 40px;
  height: 40px;
  min-width: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  color: #fff;
}
.sh-task-tile .sh-task-tile-label,
.sh-task-tile-wide .sh-task-tile-label {
  font-size: 0.8rem;
  color: var(--sh-text-muted);
  font-weight: 600;
}
.sh-task-tile .sh-task-tile-value,
.sh-task-tile-wide .sh-task-tile-value {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--sh-text);
}
.sh-task-tile-icon.sky    { background: linear-gradient(135deg, #38bdf8, #0369a1); }
.sh-task-tile-icon.teal   { background: linear-gradient(135deg, #34d399, #047857); }
.sh-task-tile-icon.rose   { background: linear-gradient(135deg, #fb7185, #be123c); }
.sh-task-tile-icon.violet { background: linear-gradient(135deg, #a78bfa, #6d28d9); }
.sh-task-tile-icon.amber  { background: linear-gradient(135deg, #fbbf24, #b45309); }
.sh-task-tile-wide {
  background: linear-gradient(120deg, #eef2ff 0%, #eef6ff 100%);
  border: 1px solid var(--sh-border);
  border-radius: 14px;
  padding: 0.9rem 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.sh-auth-card {
  max-width: 460px;
  width: 100%;
  margin: 0 auto;
}

/*
 * Auth page backgrounds: soft brand-tinted gradient with faint glow blobs
 * on <body>, so the auth card doesn't float on plain white. Dark variant
 * is used for the admin login/2FA pages.
 */
body.sh-auth-bg {
  min-height: 100vh;
  background-color: var(--sh-bg);
  background-image:
    radial-gradient(1100px circle at 8% 8%, rgba(37, 99, 235, 0.16), transparent 42%),
    radial-gradient(1000px circle at 92% 92%, rgba(220, 38, 38, 0.12), transparent 42%),
    linear-gradient(160deg, #eef4fd 0%, #f6f7fb 55%, #fdeeee 100%);
  background-attachment: fixed;
}
body.sh-auth-bg-dark {
  min-height: 100vh;
  background-color: #0b1120;
  background-image:
    radial-gradient(1000px circle at 15% 10%, rgba(37, 99, 235, 0.38), transparent 45%),
    radial-gradient(900px circle at 90% 90%, rgba(220, 38, 38, 0.22), transparent 45%),
    linear-gradient(160deg, #0f172a 0%, #0b1120 100%);
  background-attachment: fixed;
}
body.sh-auth-bg-dark .text-muted {
  color: #9ca3af !important;
}
body.sh-auth-bg-dark .sh-auth-card .sh-card {
  border: 1px solid rgba(255, 255, 255, 0.06);
}

@media (max-width: 767.98px) {
  .sh-stat-card .sh-stat-value {
    font-size: 1.3rem;
  }
}

.form-control:focus, .form-select:focus {
  border-color: var(--sh-primary);
  box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.15);
}

.sh-copy-box {
  background: #f0f1fb;
  border: 1px dashed var(--sh-primary);
  border-radius: 10px;
  padding: 0.5rem 0.9rem;
  font-family: monospace;
  word-break: break-all;
}

/*
 * intl-tel-input defaults to display:inline-block, which doesn't stretch
 * to fill its container — on narrow mobile widths this leaves the input
 * squeezed/misaligned next to the flag dropdown instead of using the
 * full row width like every other .form-control on the page.
 */
.iti {
  display: block;
  width: 100%;
}
.iti input.form-control,
.iti input[type="tel"].form-control {
  width: 100%;
}
.iti__country-list {
  max-width: 90vw;
  z-index: 1056;
}

/*
 * Mobile off-canvas nav (dashboard + admin) shares the same nav-link
 * markup as the desktop sidebar but lives outside .sh-sidebar, so it was
 * falling back to unstyled Bootstrap defaults — no color, no active
 * state. Mirror the desktop sidebar's look here too.
 */
.offcanvas-header {
  border-bottom: 1px solid var(--sh-border);
}
.offcanvas .nav-link {
  color: var(--sh-text-muted);
  border-radius: 10px;
  padding: 0.65rem 0.9rem;
  font-weight: 500;
}
.offcanvas .nav-link.active,
.offcanvas .nav-link:hover {
  background: rgba(37, 99, 235, 0.08);
  color: var(--sh-primary);
}

/*
 * Mobile nav drawer: Bootstrap's offcanvas-start defaults to 400px wide,
 * which is wider than most phone screens (i.e. it looks full-screen).
 * Narrow it so the dimmed backdrop stays visible, and give it a branded
 * gradient instead of plain white to match the rest of the theme.
 */
.offcanvas-start {
  width: min(82vw, 300px) !important;
  background: linear-gradient(165deg, #2563eb 0%, #1e40af 55%, #0f172a 100%);
  color: #fff;
}
.offcanvas-start .offcanvas-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}
.offcanvas-start .offcanvas-title,
.offcanvas-start .navbar-brand {
  color: #fff !important;
}
.offcanvas-start .btn-close {
  filter: invert(1) grayscale(100%) brightness(200%);
}
.offcanvas-start .nav-link {
  color: rgba(255, 255, 255, 0.75);
}
.offcanvas-start .nav-link.active,
.offcanvas-start .nav-link:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}
.offcanvas-start .text-muted {
  color: rgba(255, 255, 255, 0.55) !important;
}

/*
 * Profit & Loss card: a single distinctive KPI card (net figure up top,
 * profit/expense breakdown below) instead of two separate plain stat
 * cards for numbers that are really one story.
 */
.sh-pl-card {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  color: #fff;
  border: none;
  border-radius: var(--sh-radius);
  box-shadow: var(--sh-shadow);
  padding: 1.25rem 1.4rem;
  height: 100%;
}
.sh-pl-card .sh-pl-net-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 600;
}
.sh-pl-card .sh-pl-net-value {
  font-size: 1.7rem;
  font-weight: 700;
}
.sh-pl-card .sh-pl-breakdown {
  display: flex;
  gap: 1rem;
  margin-top: 0.9rem;
  padding-top: 0.9rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}
.sh-pl-card .sh-pl-item {
  flex: 1;
}
.sh-pl-card .sh-pl-item-label {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.55);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.sh-pl-card .sh-pl-item-value {
  font-size: 1.05rem;
  font-weight: 600;
}
.sh-pl-card .sh-pl-item-value.profit { color: #34d399; }
.sh-pl-card .sh-pl-item-value.expense { color: #fb7185; }

/* Downline level badges: colored notification-style pills instead of
   plain text counts, so the level breakdown is scannable at a glance. */
.sh-downline-badge {
  --stat-from: var(--sh-primary-light);
  --stat-to: var(--sh-primary-dark);
  background: linear-gradient(135deg, var(--stat-from) 0%, var(--stat-to) 100%);
  border-radius: 16px;
  padding: 1rem 0.6rem;
  text-align: center;
  color: #fff;
  height: 100%;
}
.sh-downline-badge .sh-downline-count {
  font-size: 1.9rem;
  font-weight: 800;
  line-height: 1;
}
.sh-downline-badge .sh-downline-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.75);
  font-weight: 600;
  margin-top: 0.3rem;
}
.sh-downline-badge .sh-downline-split {
  font-size: 0.72rem;
  margin-top: 0.6rem;
  padding-top: 0.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}
.sh-downline-badge .sh-downline-split .active-count { color: #d1fae5; font-weight: 600; }
.sh-downline-badge .sh-downline-split .inactive-count { color: rgba(255, 255, 255, 0.65); }
.sh-downline-badge.level1 { --stat-from: #60a5fa; --stat-to: #1e3a8a; }
.sh-downline-badge.level2 { --stat-from: #38bdf8; --stat-to: #0369a1; }
.sh-downline-badge.level3 { --stat-from: #f87171; --stat-to: #991b1b; }

/*
 * Bootstrap's default alert variants (and .text-muted / .form-text) render
 * as flat grey almost everywhere on the site — instructions boxes, help
 * text, "no data yet" messages. Re-skin them as soft-tinted cards with a
 * colored left accent + icon slot instead, so every page picks up color
 * automatically without having to touch each PHP file individually.
 */
.alert {
  border: none;
  border-left: 4px solid transparent;
  border-radius: 12px;
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
}
.alert i.bi:first-child {
  font-size: 1.05rem;
  line-height: 1.4;
}
.alert-secondary {
  background: #f1f2fb;
  border-left-color: var(--sh-primary-light);
  color: #3f3d63;
}
.alert-info {
  background: #e8f7fd;
  border-left-color: var(--sh-info);
  color: #0c5a7a;
}
.alert-success {
  background: #e8f9f1;
  border-left-color: var(--sh-success);
  color: #0a5c3f;
}
.alert-warning {
  background: #fef6e7;
  border-left-color: var(--sh-warning);
  color: #7a4d06;
}
.alert-danger {
  background: #fdedec;
  border-left-color: var(--sh-danger);
  color: #8a1f1f;
}

/*
 * Reusable colored section header for the many "sub-form" blocks stacked
 * on one card (payment methods, settings groups, etc.) — an icon chip in a
 * tinted circle plus a colored accent bar, instead of a plain <h5>.
 */
.sh-section-title {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.9rem;
  padding-bottom: 0.6rem;
  border-bottom: 2px solid var(--sh-border);
}
.sh-section-title .sh-section-icon {
  width: 38px;
  height: 38px;
  min-width: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  color: #fff;
  background: linear-gradient(135deg, var(--stat-from, var(--sh-primary-light)) 0%, var(--stat-to, var(--sh-primary-dark)) 100%);
}
.sh-section-title h5, .sh-section-title h6 {
  margin: 0;
  font-weight: 700;
}
.sh-section-title.indigo { --stat-from: #60a5fa; --stat-to: #1e3a8a; }
.sh-section-title.teal   { --stat-from: #34d399; --stat-to: #047857; }
.sh-section-title.sky    { --stat-from: #38bdf8; --stat-to: #0369a1; }
.sh-section-title.violet { --stat-from: #a78bfa; --stat-to: #6d28d9; }
.sh-section-title.amber  { --stat-from: #fbbf24; --stat-to: #b45309; }

/* Softens .form-text (Bootstrap help text) from flat grey to a readable
   ink-tinted grey that doesn't disappear against the page background. */
.form-text {
  color: #5b6178;
}

/* Centered gradient icon badge above auth-card headings (login, register,
   forgot/reset password, verify OTP) — a small colored focal point instead
   of the card opening straight into plain black text. */
.sh-auth-icon {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: #fff;
  margin: 0 auto 1.1rem;
  background: linear-gradient(135deg, var(--stat-from, var(--sh-primary-light)) 0%, var(--stat-to, var(--sh-primary-dark)) 100%);
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.25);
}
.sh-auth-icon.teal   { --stat-from: #34d399; --stat-to: #047857; box-shadow: 0 8px 20px rgba(4, 120, 87, 0.25); }
.sh-auth-icon.amber  { --stat-from: #fbbf24; --stat-to: #b45309; box-shadow: 0 8px 20px rgba(180, 83, 9, 0.25); }
.sh-auth-icon.violet { --stat-from: #a78bfa; --stat-to: #6d28d9; box-shadow: 0 8px 20px rgba(109, 40, 217, 0.25); }
.sh-auth-icon.sky    { --stat-from: #38bdf8; --stat-to: #0369a1; box-shadow: 0 8px 20px rgba(3, 105, 161, 0.25); }

/*
 * Structured mobile-money payment flow (provider picker → step-by-step
 * card → confirm-payment card) used on the Activate Account page.
 */
.sh-provider-row {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 1rem 1.25rem;
  border-radius: 14px;
  border: none;
  width: 100%;
  text-align: left;
  color: #fff;
  background: linear-gradient(135deg, var(--pr-from, var(--sh-primary-light)) 0%, var(--pr-to, var(--sh-primary-dark)) 100%);
  box-shadow: var(--sh-shadow);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
  margin-bottom: 0.9rem;
}
.sh-provider-row:hover {
  box-shadow: var(--sh-shadow-hover);
  transform: translateY(-1px);
  color: #fff;
}
.sh-provider-row .sh-provider-icon {
  width: 42px;
  height: 42px;
  min-width: 42px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}
.sh-provider-row .sh-provider-title {
  font-weight: 700;
  font-size: 1.02rem;
}
.sh-provider-row .sh-provider-sub {
  font-size: 0.8rem;
  opacity: 0.85;
}
.sh-provider-row .bi-chevron-right {
  margin-left: auto;
  font-size: 1.3rem;
  opacity: 0.85;
}

.sh-step-card {
  border-radius: var(--sh-radius);
  overflow: hidden;
  box-shadow: var(--sh-shadow);
  background: var(--sh-surface);
  margin-bottom: 1.25rem;
}
.sh-step-card-header {
  padding: 1rem 1.25rem;
  color: #fff;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(100deg, var(--pr-from, var(--sh-primary-light)) 0%, var(--pr-to, var(--sh-primary-dark)) 100%);
}
.sh-step-row {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 0.85rem 1.25rem;
  border-bottom: 1px solid var(--sh-border);
}
.sh-step-row:last-child {
  border-bottom: none;
}
.sh-step-number {
  width: 26px;
  height: 26px;
  min-width: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.8rem;
  color: #fff;
  background: linear-gradient(135deg, var(--pr-from, var(--sh-primary-light)) 0%, var(--pr-to, var(--sh-primary-dark)) 100%);
}
.sh-step-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--sh-text-muted);
  font-weight: 700;
}
.sh-step-value {
  font-weight: 600;
}

/*
 * Admin per-country config lists (payment instructions, mobile money
 * providers) — a colored collapsible summary bar per country instead of a
 * fully-expanded plain-bordered box. With 15+ countries stacked, leaving
 * everything expanded read as one undifferentiated grey wall.
 */
.sh-country-details {
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 0.75rem;
  border: 1px solid var(--sh-border);
}
.sh-country-toggle {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.75rem 1rem;
  cursor: pointer;
  list-style: none;
  color: #fff;
  background: linear-gradient(100deg, var(--stat-from, var(--sh-primary-light)) 0%, var(--stat-to, var(--sh-primary-dark)) 100%);
}
.sh-country-toggle::-webkit-details-marker {
  display: none;
}
.sh-country-toggle .sh-country-flag {
  width: 34px;
  height: 34px;
  min-width: 34px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
}
.sh-country-toggle .sh-country-name {
  font-weight: 700;
  flex-grow: 1;
}
.sh-country-toggle .bi-chevron-right {
  transition: transform 0.2s ease;
}
details[open] > .sh-country-toggle .bi-chevron-right {
  transform: rotate(90deg);
}
.sh-country-details-body {
  padding: 1rem;
  background: var(--sh-surface);
}

/*
 * Mobile-money payment picker — a segmented pill toggle (not a telco-brand
 * colored menu) switching a persistent "ticket" instructions panel next to
 * an always-visible confirm form, instead of a full-screen swap-and-back
 * flow. Deliberately uses Ninosah's own indigo/teal palette rather than
 * each provider's own brand color, so it reads as one product.
 */
.sh-pay-toggle {
  display: inline-flex;
  padding: 0.3rem;
  background: var(--sh-bg);
  border-radius: 999px;
  gap: 0.3rem;
  margin-bottom: 1.25rem;
}
.sh-pay-toggle button {
  border: none;
  background: transparent;
  padding: 0.5rem 1.25rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--sh-text-muted);
  transition: background 0.15s ease, color 0.15s ease;
}
.sh-pay-toggle button.active {
  background: linear-gradient(135deg, var(--sh-primary-light) 0%, var(--sh-primary-dark) 100%);
  color: #fff;
  box-shadow: var(--sh-shadow);
}

.sh-ticket-card {
  background: var(--sh-surface);
  border-radius: var(--sh-radius);
  box-shadow: var(--sh-shadow);
  position: relative;
  overflow: hidden;
}
.sh-ticket-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 6px;
  height: 100%;
  background: linear-gradient(180deg, var(--sh-accent) 0%, var(--sh-accent-dark) 100%);
}
.sh-ticket-header {
  padding: 1rem 1.25rem 1rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  border-bottom: 1px dashed var(--sh-border);
}
.sh-ticket-header .sh-ticket-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--sh-primary-light) 0%, var(--sh-primary-dark) 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}
.sh-ticket-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.7rem 1.25rem 0.7rem 1.5rem;
  border-bottom: 1px dashed var(--sh-border);
  font-size: 0.9rem;
}
.sh-ticket-row:last-child {
  border-bottom: none;
}
.sh-ticket-row .sh-ticket-label {
  color: var(--sh-text-muted);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.sh-ticket-row .sh-ticket-value {
  font-weight: 700;
  font-family: "SFMono-Regular", Consolas, Menlo, monospace;
}

.sh-confirm-panel {
  background: linear-gradient(160deg, #0f172a 0%, #1e3a8a 100%);
  border-radius: var(--sh-radius);
  box-shadow: var(--sh-shadow);
  color: #fff;
  padding: 1.15rem;
  height: 100%;
}
.sh-confirm-panel .form-label {
  color: rgba(255, 255, 255, 0.9);
}
.sh-confirm-panel .form-text {
  color: rgba(255, 255, 255, 0.6) !important;
}

/*
 * Text inputs/textareas embedded inside admin tables (edit-in-place rate
 * tables, reject-reason fields, etc.) must not shrink below a usable width
 * just because their table cell or flex row is narrow — that makes typed
 * text invisible. Better to let .table-responsive scroll horizontally than
 * to squeeze the input itself.
 */
.table input[type="text"].form-control {
  min-width: 180px;
}
.table input[type="number"].form-control {
  min-width: 90px;
}
.table textarea.form-control {
  min-width: 220px;
}

/* Printing a page inside the dashboard (e.g. a withdrawal receipt)
   shouldn't include the sidebar/navbar/mobile drawer in the printout. */
@media print {
  .sh-sidebar, .navbar, .offcanvas, .no-print {
    display: none !important;
  }
  .sh-main-content {
    width: 100% !important;
  }
}

/* ---------------- Landing page ---------------- */

/* Hero: richer multi-stop gradient with red + white glow blobs, and a faint
   dot-grid overlay for texture — same glow-blob technique as .sh-hero-dashboard
   but built for a wider, taller marketing hero. */
.sh-hero-landing {
  background: linear-gradient(125deg, #1e3a8a 0%, #2563eb 55%, #1d4ed8 100%);
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  color: #fff;
}
.sh-hero-landing::before {
  content: "";
  position: absolute;
  top: -90px; right: -60px;
  width: 320px; height: 320px;
  border-radius: 50%;
  background: rgba(220, 38, 38, 0.28);
}
.sh-hero-landing::after {
  content: "";
  position: absolute;
  bottom: -110px; left: 8%;
  width: 260px; height: 260px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
}
.sh-hero-landing .sh-hero-dots {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.12) 1.5px, transparent 1.5px);
  background-size: 22px 22px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,0.5), transparent 70%);
}
.sh-hero-landing > * {
  position: relative;
  z-index: 1;
}

.sh-trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.6rem;
}
.sh-trust-row .sh-trust-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  opacity: 0.95;
}
.sh-trust-row .sh-trust-item i {
  font-size: 1.05rem;
}

/* "How it works" numbered steps */
.sh-step {
  text-align: center;
  padding: 0 0.5rem;
}
.sh-step-circle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
  margin: 0 auto 1rem;
  background: linear-gradient(135deg, var(--sh-primary-light), var(--sh-primary-dark));
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.25);
}
.sh-step-circle.rose {
  background: linear-gradient(135deg, #fb7185, var(--sh-accent-dark));
  box-shadow: 0 8px 20px rgba(220, 38, 38, 0.22);
}
.sh-step-circle.teal {
  background: linear-gradient(135deg, #34d399, var(--sh-success-dark));
  box-shadow: 0 8px 20px rgba(16, 185, 129, 0.22);
}
.sh-step-connector {
  display: none;
}
@media (min-width: 768px) {
  .sh-step-connector {
    display: block;
    height: 2px;
    background: linear-gradient(90deg, var(--sh-border), var(--sh-primary-light), var(--sh-border));
    margin-top: 28px;
  }
}

/* Feature icon chips — same gradient-chip technique as .sh-task-tile-icon,
   reused here so the landing page and dashboard share one visual language. */
.sh-feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: #fff;
}
.sh-feature-icon.sky    { background: linear-gradient(135deg, #38bdf8, #0369a1); }
.sh-feature-icon.teal   { background: linear-gradient(135deg, #34d399, #047857); }
.sh-feature-icon.rose   { background: linear-gradient(135deg, #fb7185, #be123c); }
.sh-feature-icon.violet { background: linear-gradient(135deg, #a78bfa, #6d28d9); }
.sh-feature-icon.amber  { background: linear-gradient(135deg, #fbbf24, #b45309); }
.sh-feature-icon.indigo { background: linear-gradient(135deg, #60a5fa, #1e3a8a); }

/* Per-country pricing transparency cards */
.sh-pricing-card {
  border-radius: var(--sh-radius);
  border: 1px solid var(--sh-border);
  background: var(--sh-surface);
  overflow: hidden;
  height: 100%;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.sh-pricing-card:hover {
  box-shadow: var(--sh-shadow-hover);
  transform: translateY(-2px);
}
.sh-pricing-card-header {
  padding: 1rem 1.25rem;
  color: #fff;
  background: linear-gradient(120deg, var(--sh-primary) 0%, var(--sh-primary-dark) 100%);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.sh-pricing-card-body {
  padding: 1.1rem 1.25rem;
}
.sh-pricing-row {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
  border-bottom: 1px dashed var(--sh-border);
  font-size: 0.92rem;
}
.sh-pricing-row:last-child {
  border-bottom: none;
}
.sh-pricing-row .label {
  color: var(--sh-text-muted);
}
.sh-pricing-row .value {
  font-weight: 700;
}

/* Why-choose-us trust bullets */
.sh-trust-card {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.sh-trust-card .sh-feature-icon {
  flex-shrink: 0;
}

.sh-cta-banner {
  background: linear-gradient(120deg, #7f1d1d 0%, #dc2626 50%, #1d4ed8 100%);
  border-radius: 24px;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.sh-cta-banner::before {
  content: "";
  position: absolute;
  top: -80px; left: -40px;
  width: 240px; height: 240px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
}
.sh-cta-banner > * {
  position: relative;
  z-index: 1;
}

/* Live withdrawal fee/tax breakdown shown under the amount field */
.sh-fee-breakdown {
  background: var(--sh-bg);
  border: 1px solid var(--sh-border);
  border-radius: 12px;
  padding: 0.75rem 1rem;
}
.sh-fee-breakdown .sh-fee-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.88rem;
  padding: 0.25rem 0;
}
.sh-fee-breakdown .sh-fee-row .label {
  color: var(--sh-text-muted);
}
.sh-fee-breakdown .sh-fee-row .value {
  font-weight: 600;
}
.sh-fee-breakdown .sh-fee-row.total {
  border-top: 1px dashed var(--sh-border);
  margin-top: 0.25rem;
  padding-top: 0.5rem;
  font-size: 0.95rem;
}
.sh-fee-breakdown .sh-fee-row.total .value {
  font-weight: 700;
}

/* Shareable withdrawal card — designed to be screenshotted/downloaded and
   posted by users as social proof, so it needs to look good standalone
   (no surrounding chrome) at a fixed, portrait-ish aspect ratio. */
.sh-share-card {
  background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 55%, #dc2626 130%);
  border-radius: 20px;
  padding: 2rem 1.75rem;
  color: #fff;
  position: relative;
  overflow: hidden;
  text-align: center;
}
.sh-share-card .sh-share-dots {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.12) 1.5px, transparent 1.5px);
  background-size: 22px 22px;
}
.sh-share-card > * {
  position: relative;
  z-index: 1;
}
.sh-share-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 1.25rem;
}
.sh-share-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  padding: 0.35rem 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1rem;
}
.sh-share-amount {
  font-size: 2.75rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 0.5rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}
.sh-share-user {
  opacity: 0.9;
  margin-bottom: 1.5rem;
}
.sh-share-footer {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  opacity: 0.75;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 0.85rem;
}
