:root {
  /* Brand: deep purple (structure/navigation/links), gold (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 gold. */
  --sh-primary: #7c3aed;
  --sh-primary-dark: #4c1d95;
  --sh-primary-light: #a78bfa;
  --sh-accent: #ca8a04;
  --sh-accent-dark: #854d0e;
  --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: #f6f4fb;
  --sh-surface: #ffffff;
  --sh-text: #1f2430;
  --sh-text-muted: #6b7280;
  --sh-border: #e6e8f0;
  --sh-radius: 18px;
  --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(124, 58, 237, 0.07), transparent 45%),
    radial-gradient(900px circle at 0% 100%, rgba(202, 138, 4, 0.05), transparent 45%);
  background-attachment: fixed;
  color: var(--sh-text);
  font-family: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/*
 * Sticky footer for the public layout (public_header/public_footer): on
 * short pages (e.g. Activate with only one or two payment cards) the
 * footer would otherwise sit right under the content instead of at the
 * bottom of the viewport, leaving a big blank gap below it.
 */
body.sh-public-body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
body.sh-public-body > main {
  flex: 1 0 auto;
}

.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; }

/*
 * Member dashboard widget shell (scoped under body.sh-dash-body, same rule
 * as the sidebar above — admin never gets this). Every modifier keeps its
 * own gradient color exactly as defined above; only the card's shape, icon
 * treatment, shadow and texture change, so the color-coding stays intact
 * while the silhouette stops matching the admin/Ninosah template 1:1.
 */
.sh-dash-body .sh-card,
.sh-dash-body .sh-stat-card,
.sh-dash-body .sh-pl-card,
.sh-dash-body .sh-hero,
.sh-dash-body .sh-hero-dashboard,
.sh-dash-body .sh-task-tile,
.sh-dash-body .sh-task-tile-wide,
.sh-dash-body .sh-downline-badge,
.sh-dash-body .sh-copy-box {
  border-radius: 22px 22px 22px 4px;
}
.sh-dash-body .sh-task-earn-header {
  border-radius: 22px 22px 0 0;
}
.sh-dash-body .sh-stat-card {
  box-shadow: 0 14px 26px -12px color-mix(in srgb, var(--stat-to) 60%, transparent);
}
.sh-dash-body .sh-stat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 34px -10px color-mix(in srgb, var(--stat-to) 70%, transparent);
}
.sh-dash-body .sh-stat-card::after {
  /* Replaces the plain soft circle with a diagonal corner wedge, echoing
     the card's own notched bottom-left corner instead of a generic blob. */
  top: auto;
  bottom: -40px;
  right: -40px;
  left: auto;
  width: 140px;
  height: 140px;
  border-radius: 30%;
  background: rgba(255, 255, 255, 0.07);
  transform: rotate(20deg);
}
.sh-dash-body .sh-stat-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0 2px, transparent 2px 14px);
  pointer-events: none;
}
.sh-dash-body .sh-stat-card .sh-stat-icon {
  background: #fff;
  color: var(--stat-to);
  border-radius: 10px 10px 10px 3px;
  box-shadow: 0 4px 10px rgba(15, 8, 30, 0.2);
}
.sh-dash-body .sh-stat-card .sh-stat-value {
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}
.sh-dash-body .sh-card:hover {
  transform: translateY(-2px);
}
.sh-dash-body .sh-section-title .sh-section-icon {
  border-radius: 10px 10px 10px 3px;
  box-shadow: 0 4px 10px -2px color-mix(in srgb, var(--stat-to, var(--sh-primary-dark)) 55%, transparent);
}
.sh-dash-body .sh-hero-dashboard::after {
  border-radius: 30%;
}

/*
 * Dashboard home page (dashboard/index.php) — a distinct widget language
 * from the shared .sh-stat-card gradients used elsewhere (deposits,
 * investments, marketplace, admin): a single unified "net earnings" hero
 * instead of a separate welcome banner + P&L card, value-before-label
 * metric tiles with a white circle icon on a flat (non-gradient) color,
 * and its own color set (--dash-*) so it doesn't reuse the same hex
 * values as the shared brand tokens above.
 */
.sh-dash-body {
  --dash-violet-from: #5b21b6;
  --dash-violet-to: #2e1065;
  --dash-amber-from: #f59e0b;
  --dash-amber-to: #9a3412;
  --dash-green: #15803d;
  --dash-teal: #115e59;
  --dash-red: #b91c1c;
  --dash-purple: #7e22ce;
  --dash-amber: #b45309;
  --dash-sky: #0369a1;
}

.sh-net-card {
  background: linear-gradient(160deg, var(--dash-violet-from) 0%, var(--dash-violet-to) 100%);
  border-radius: 26px;
  padding: 1.6rem 1.75rem;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.sh-net-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 1;
}
.sh-net-brand-badge {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.16);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.05rem;
}
.sh-net-brand-name {
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.85rem;
  opacity: 0.9;
}
.sh-net-ghost {
  position: absolute;
  top: 1.1rem;
  right: 1.3rem;
  font-size: 2.6rem;
  opacity: 0.15;
}
.sh-net-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  opacity: 0.75;
  margin-bottom: 0.3rem;
  position: relative;
  z-index: 1;
}
.sh-net-value {
  font-size: clamp(1.9rem, 5vw, 2.5rem);
  font-weight: 800;
  line-height: 1;
  margin-bottom: 0.65rem;
  position: relative;
  z-index: 1;
  font-variant-numeric: tabular-nums;
}
.sh-net-sub {
  font-size: 0.82rem;
  opacity: 0.85;
  position: relative;
  z-index: 1;
}
.sh-net-divider {
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  margin: 1.15rem 0;
  position: relative;
  z-index: 1;
}
.sh-net-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  position: relative;
  z-index: 1;
}
.sh-net-holder-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0.7;
}
.sh-net-holder-name {
  font-weight: 700;
  font-size: 1.05rem;
}
.sh-net-tier-pill {
  background: #fff;
  color: var(--dash-violet-to);
  font-weight: 700;
  font-size: 0.82rem;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.sh-reward-card {
  background: linear-gradient(120deg, var(--dash-amber-from) 0%, var(--dash-amber-to) 100%);
  border-radius: 22px;
  padding: 1.4rem 1.6rem;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.sh-reward-card .sh-net-ghost {
  font-size: 2.3rem;
}
.sh-reward-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  opacity: 0.85;
  margin-bottom: 0.25rem;
  position: relative;
  z-index: 1;
}
.sh-reward-value {
  font-size: 1.9rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  position: relative;
  z-index: 1;
}
.sh-reward-desc {
  font-size: 0.85rem;
  opacity: 0.92;
  margin-bottom: 0.9rem;
  position: relative;
  z-index: 1;
  max-width: 34rem;
}
.sh-reward-pill {
  background: rgba(255, 255, 255, 0.22);
  border: none;
  color: #fff;
  font-weight: 700;
  font-size: 0.82rem;
  padding: 0.45rem 1rem;
  border-radius: 999px;
  position: relative;
  z-index: 1;
}
.sh-reward-pill.claimable {
  background: #fff;
  color: var(--dash-amber-to);
}

.sh-metric-card {
  border-radius: 22px;
  padding: 1.4rem 1.5rem;
  position: relative;
  overflow: hidden;
  color: #fff;
  min-height: 148px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.sh-metric-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.9rem;
  position: relative;
  z-index: 1;
  font-size: 1.1rem;
}
.sh-metric-value {
  font-size: 1.55rem;
  font-weight: 800;
  position: relative;
  z-index: 1;
  font-variant-numeric: tabular-nums;
}
.sh-metric-label {
  font-size: 0.82rem;
  opacity: 0.9;
  margin-top: 0.1rem;
  position: relative;
  z-index: 1;
}
.sh-metric-ghost {
  position: absolute;
  bottom: -14px;
  right: -10px;
  font-size: 4.5rem;
  opacity: 0.15;
}
.sh-metric-card.green  { background: var(--dash-green); }
.sh-metric-card.teal   { background: var(--dash-teal); }
.sh-metric-card.red    { background: var(--dash-red); }
.sh-metric-card.purple { background: var(--dash-purple); }
.sh-metric-card.amber  { background: var(--dash-amber); }
.sh-metric-card.sky    { background: var(--dash-sky); }
.sh-metric-card.green  .sh-metric-icon { color: var(--dash-green); }
.sh-metric-card.teal   .sh-metric-icon { color: var(--dash-teal); }
.sh-metric-card.red    .sh-metric-icon { color: var(--dash-red); }
.sh-metric-card.purple .sh-metric-icon { color: var(--dash-purple); }
.sh-metric-card.amber  .sh-metric-icon { color: var(--dash-amber); }
.sh-metric-card.sky    .sh-metric-icon { color: var(--dash-sky); }

.sh-dash-body .sh-plain-card {
  background: var(--sh-surface);
  border: 1px solid var(--sh-border);
  border-radius: 20px;
  padding: 1.4rem 1.5rem;
  box-shadow: var(--sh-shadow);
}
.sh-plain-card-title {
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 0.15rem;
}
.sh-plain-card-sub {
  color: var(--sh-text-muted);
  font-size: 0.82rem;
  margin-bottom: 1.1rem;
}

/* Referral link row: icon chip + text + inline copy button. */
.sh-grow-link-row {
  display: flex;
  align-items: stretch;
  gap: 0;
  border: 1px solid var(--sh-border);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 0.9rem;
}
.sh-grow-link-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  background: #f4f2fb;
  color: var(--sh-primary);
  flex-shrink: 0;
}
.sh-grow-link-text {
  flex: 1;
  min-width: 0;
  padding: 0.6rem 0.75rem;
  font-size: 0.82rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: flex;
  align-items: center;
}
.sh-grow-link-copy {
  border: none;
  background: var(--sh-primary);
  color: #fff;
  font-weight: 700;
  font-size: 0.82rem;
  padding: 0 1.1rem;
  flex-shrink: 0;
}
.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;
  flex-shrink: 0;
}

/*
 * 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(124, 58, 237, 0.08);
  color: var(--sh-primary);
}

/*
 * Member dashboard shell (dashboard_header.php only — scoped under
 * body.sh-dash-body so none of this touches the admin panel, which reuses
 * the same .sh-sidebar/.offcanvas base classes with the plain light look
 * above). Dark glass sidebar + grouped nav + profile card, distinct from
 * the admin template; the colored stat/task/badge widgets inside <main>
 * are untouched by design — only the surrounding chrome changes here.
 */
.sh-dash-body .sh-sidebar {
  background: linear-gradient(195deg, #2a1a42 0%, #170f28 75%);
  border-right: none;
  box-shadow: 2px 0 18px rgba(15, 8, 30, 0.12);
}
.sh-dash-body .sh-sidebar .sh-brand {
  color: #fff;
}
.sh-dash-profile {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 0.6rem 0.75rem;
}
.sh-dash-avatar {
  width: 36px;
  height: 36px;
  min-width: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--sh-accent), #f3b53a);
  color: #241708;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.sh-dash-profile-meta {
  min-width: 0;
  overflow: hidden;
}
.sh-dash-profile-meta strong {
  display: block;
  color: #fff;
  font-size: 0.85rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sh-dash-profile-meta span {
  display: block;
  font-size: 0.7rem;
  color: #a79bcc;
}
.sh-dash-group-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: #8578a8;
  font-weight: 600;
  margin: 1rem 0.6rem 0.4rem;
}
.sh-dash-body .sh-sidebar .nav-link {
  color: #cfc7e8;
}
.sh-dash-body .sh-sidebar .nav-link.active,
.sh-dash-body .sh-sidebar .nav-link:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  box-shadow: inset 3px 0 0 var(--sh-accent);
}
.sh-dash-body .sh-sidebar .nav-link.disabled {
  color: #6f6490;
}
.sh-dash-sidebar-foot {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.sh-dash-pagetitle {
  font-weight: 600;
  color: var(--sh-text);
  margin-left: 0.5rem;
}
/*
 * The mobile drawer (.offcanvas-start, below) is already a shared branded
 * purple gradient used by both admin and dashboard — .sh-dash-profile and
 * .sh-dash-group-label above already read fine on it as-is, so it's
 * intentionally left alone here rather than duplicated/overridden.
 */

.sh-hero {
  background: linear-gradient(135deg, #7c3aed 0%, #4c1d95 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, #5b21b6 0%, #7c3aed 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(202, 138, 4, 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(124, 58, 237, 0.16), transparent 42%),
    radial-gradient(1000px circle at 92% 92%, rgba(202, 138, 4, 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: #170a28;
  background-image:
    radial-gradient(1000px circle at 15% 10%, rgba(124, 58, 237, 0.38), transparent 45%),
    radial-gradient(900px circle at 90% 90%, rgba(202, 138, 4, 0.22), transparent 45%),
    linear-gradient(160deg, #1e1033 0%, #170a28 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(124, 58, 237, 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(124, 58, 237, 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, #7c3aed 0%, #5b21b6 55%, #1e1033 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, #2d1b4e 0%, #1e1033 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: #a78bfa; --stat-to: #4c1d95; }
.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: #a78bfa; --stat-to: #4c1d95; }
.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(124, 58, 237, 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, #1e1033 0%, #4c1d95 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, #4c1d95 0%, #7c3aed 55%, #5b21b6 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(202, 138, 4, 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(124, 58, 237, 0.25);
}
.sh-step-circle.rose {
  background: linear-gradient(135deg, #fb7185, var(--sh-accent-dark));
  box-shadow: 0 8px 20px rgba(251, 113, 133, 0.3);
}
.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, #a78bfa, #4c1d95); }

/* 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, #78350f 0%, #ca8a04 50%, #5b21b6 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, #4c1d95 0%, #7c3aed 55%, #ca8a04 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;
}

/*
 * Chat and Earn: a contact-list of scripted pen-pal personas that opens
 * into a real chat-window UI (bubbles, typing indicator, composer) —
 * built to feel like an actual messaging app rather than an outbound
 * "open this link" card like Ads/Videos.
 */
.sh-chat-contact {
  cursor: pointer;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.sh-chat-contact:hover {
  box-shadow: var(--sh-shadow-hover);
  transform: translateY(-2px);
}
.sh-chat-avatar {
  width: 46px;
  height: 46px;
  min-width: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--sh-primary-light) 0%, var(--sh-primary-dark) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}
.sh-chat-window {
  overflow: hidden;
  border-radius: var(--sh-radius);
}
.sh-chat-window-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1.1rem;
  color: #fff;
  background: linear-gradient(120deg, var(--sh-primary) 0%, var(--sh-primary-dark) 100%);
}
.sh-chat-thread {
  height: 340px;
  overflow-y: auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  background: var(--sh-bg);
}
.sh-chat-bubble-row {
  display: flex;
  margin-bottom: 0.6rem;
}
.sh-chat-bubble-row.them {
  justify-content: flex-start;
}
.sh-chat-bubble-row.me {
  justify-content: flex-end;
}
.sh-chat-bubble {
  max-width: 75%;
  padding: 0.55rem 0.9rem;
  border-radius: 16px;
  font-size: 0.92rem;
  line-height: 1.35;
}
.sh-chat-bubble-row.them .sh-chat-bubble {
  background: var(--sh-surface);
  border: 1px solid var(--sh-border);
  border-bottom-left-radius: 4px;
}
.sh-chat-bubble-row.me .sh-chat-bubble {
  background: linear-gradient(135deg, var(--sh-primary-light) 0%, var(--sh-primary-dark) 100%);
  color: #fff;
  border-bottom-right-radius: 4px;
}
.sh-chat-typing {
  display: flex;
  gap: 4px;
  align-items: center;
  padding: 0.7rem 0.9rem;
}
.sh-chat-typing span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--sh-text-muted);
  opacity: 0.6;
  animation: shChatTypingBounce 1s infinite ease-in-out;
}
.sh-chat-typing span:nth-child(2) { animation-delay: 0.15s; }
.sh-chat-typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes shChatTypingBounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.6; }
  30% { transform: translateY(-4px); opacity: 1; }
}
/*
 * Topic/question chips replace free typing: the user picks a topic, then
 * one of its preset questions, and the persona replies with the exact
 * pre-written answer for that question — never a mismatched canned line.
 */
.sh-chat-topics, .sh-chat-questions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0.85rem 1rem;
  border-top: 1px solid var(--sh-border);
  background: var(--sh-surface);
}
.sh-chat-chip {
  border: 1px solid var(--sh-primary-light);
  background: rgba(124, 58, 237, 0.06);
  color: var(--sh-primary-dark);
  border-radius: 999px;
  padding: 0.45rem 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  transition: background 0.15s ease;
}
.sh-chat-chip:hover:not(:disabled) {
  background: rgba(124, 58, 237, 0.14);
}
.sh-chat-chip:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.sh-chat-chip-back {
  border-color: var(--sh-border);
  background: var(--sh-bg);
  color: var(--sh-text-muted);
}
