/* === Success India - Cream+Green Premium • app.css v3.5 ===
   Focus: Mobile-first fixes, desktop polish, stacking/z-index cleanup, consistent grid,
   improved tables/forms, reduced duplicates, and accessible cream‑green palette.
   Drop-in replacement for v3.4 (same class names preserved).
============================================================= */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700;800&display=swap");

/* ---------- Design Tokens ---------- */
:root {
  /* Palette: warm cream + emerald green + slate text */
  --bg: #fff5dc; /* creamy background */
  --panel: linear-gradient(135deg, #fffef671 0%, #ece094b4 100%);
  --ink: #0f172a; /* primary text */
  --muted: #64748b; /* secondary text */

  --accent: #10b981; /* emerald */
  --accent-dark: #059669; /* darker emerald */
  --accent-soft: #e9faf2; /* soft emerald tint */
  --warn: #f59e0b; /* amber */

  --border: #e2e8f0; /* light border */
  --border-2: #e5e7eb; /* alt border */

  --header-h: 64px; /* header height */
  --sidebar-w: 300px; /* desktop pinned width */

  --radius: 14px;
  --radius-sm: 10px;
  --radius-xl: 16px;
  --shadow: 0 10px 26px rgba(2, 6, 23, 0.06);
  --shadow-sm: 0 6px 16px rgba(2, 6, 23, 0.06);

  --e: ease;
  --t: 0.18s;

  --text: #0f172a;
  --mute: #6b7280;
  --hover: #f6f7f9;
}

/* ---------- Base ---------- */
* {
  box-sizing: border-box;
}
html,
body {
  height: 100%;
}
body {
  margin: 0;
  font-family: "Inter", system-ui, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
h1,
h2,
h3 {
  line-height: 1.2;
  margin: 0 0 0.6rem;
}
h1 {
  font-size: clamp(20px, 2.4vw, 28px);
  font-weight: 800;
}
h2 {
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 800;
}

/* Links */
a {
  color: var(--accent);
  text-decoration: none;
  transition: opacity var(--t) var(--e), color var(--t) var(--e);
}
a:hover {
  opacity: 0.9;
  color: var(--accent-dark);
}
a:focus-visible {
  outline: 3px solid rgba(16, 185, 129, 0.25);
  border-radius: 8px;
}

/* ---------- Header ---------- */
/* Single, de-duplicated header rule with correct stacking */
.app-header {
  position: sticky;
  top: 0;
  z-index: 1200;
  -webkit-backdrop-filter: saturate(1.1) blur(8px);
  backdrop-filter: saturate(1.1) blur(8px);
  background: linear-gradient(135deg, #ffffff 0%, #ffeebc 100%);
  border-bottom: 1px solid var(--border);
  padding: 12px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: var(--shadow-sm);
  gap: 12px;
}
.app-header .brand {
  font-weight: 800;
  letter-spacing: 0.2px;
  font-size: 18px;
}
.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid var(--border);
  cursor: pointer;
  color: var(--text);
  box-shadow: 0 2px 6px rgba(2, 6, 23, 0.04);
  transition: transform var(--t) var(--e), box-shadow var(--t) var(--e),
    background var(--t) var(--e);
}
.icon-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(2, 6, 23, 0.1);
}
#menuToggle {
  position: relative;
  z-index: 4100;
}

/* Layout */
#referral-card .actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
#referral-card input {
  flex: 1;
  min-width: 0;
  height: 44px;
  padding: 10px 12px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #fff;
  font-weight: 600;
}

/* Copy button - isolate from global .btn rules */
#copyRefBtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 16px;
  border-radius: 10px;
  border: 1px solid var(--accent, #10b981);
  background: var(--accent, #10b981);
  color: #fff;
  font-weight: 700;
  line-height: 1.1;
  white-space: nowrap;
  flex: 0 0 auto; /* fixed size; don't stretch */
}

/* Mobile: stack neatly */
@media (max-width: 520px) {
  #referral-card .actions {
    flex-direction: column;
    align-items: stretch;
  }
  #copyRefBtn {
    width: 100%;
  }
}

/* Profile dropdown */
.profile-wrap {
  position: relative;
}
.profile-btn {
  all: unset;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  padding: 6px 10px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #fff;
  box-shadow: var(--shadow-sm);
  transition: transform var(--t) var(--e), box-shadow var(--t) var(--e);
}
.profile-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(2, 6, 23, 0.1);
}
.profile-btn .avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-weight: 800;
  border: 1px solid #d9efe6;
}
.profile-btn .name {
  max-width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.profile-wrap .dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 200px;
  padding: 8px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 14px 28px rgba(2, 6, 23, 0.12);
  list-style: none;
  margin: 0;
  display: none;
  z-index: 4200;
}
.profile-wrap.open .dropdown {
  display: block;
  animation: ddIn 0.16s var(--e) both;
}
@keyframes ddIn {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.profile-wrap .dropdown a {
  display: block;
  padding: 10px;
  border-radius: 10px;
  color: var(--ink);
}
.profile-wrap .dropdown a:hover {
  background: #f7fbf9;
}

/* ---------- App Layout ---------- */
.app-wrap {
  display: flex;
  min-height: calc(100vh - var(--header-h));
}
.app-content {
  flex: 1;
  padding: 20px;
  max-width: 1160px;
  margin: 0 auto;
}

/* Scrim (single definition) */
#scrim[hidden] {
  display: none;
}
#scrim {
  position: fixed;
  inset: 0;
  top: var(--header-h, 64px);
  background: rgba(15, 23, 42, 0.35);
  backdrop-filter: blur(1px);
  z-index: 1090;
  pointer-events: auto;
}

/* बटन का बॉक्स */
.icon-btn {
  width: 36px; /* 40px भी कर सकते हैं */
  height: 36px;
  display: inline-grid;
  place-items: center; /* icon को बिल्कुल बीच में */
  border-radius: 10px;
}

/* safety: अंदर का svg हमेशा दिखे */
.icon-btn svg {
  width: 22px;
  height: 22px;
} /* JS वाले ICON_SIZE से मैच रखें */

/* ---------- Sidebar (off‑canvas mobile, pinned desktop) ---------- */
.app-sidebar {
  position: fixed;
  left: 0;
  top: var(--header-h, 64px);
  width: 86vw;
  max-width: 300px;
  height: calc(100vh - var(--header-h, 64px));
  background: #ffffffef;
  border-right: 1px solid var(--border);
  transform: translateX(-110%);
  transition: transform 0.25s ease;
  z-index: 1100;
  overflow: hidden;
}
.app-sidebar.is-open,
body.show-sidebar .app-sidebar,
body.sidebar-open .app-sidebar,
html.sidebar-open .app-sidebar,
[data-sidebar="open"] .app-sidebar {
  transform: translateX(0) !important;
}

/* Sidebar sections */
.app-sidebar .sidebar-top {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
}
.app-sidebar .sidebar-title {
  font: 700 14px/1.2 system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--muted);
}
.app-sidebar .nav-root {
  height: 100%;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 8px;
}
.app-sidebar .nav-item {
  margin: 8px 0;
}

.app-sidebar .nav-link,
.app-sidebar .sub-toggle {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 10px 12px;
  border-radius: 12px;
  background: #fff;
  color: var(--text);
  text-decoration: none;
  border: 1px solid #eee;
  cursor: pointer;
  font: inherit;
  line-height: 1.15;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  transition: background 0.15s ease, box-shadow 0.15s ease, color 0.15s ease;
}
.app-sidebar .nav-link:hover,
.app-sidebar .sub-toggle:hover {
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.app-sidebar .nav-link.active {
  background: var(--accent-soft);
  color: #065f46;
  font-weight: 700;
  position: relative;
}
.app-sidebar .nav-link.active::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 18px;
  border-radius: 999px;
  background: var(--accent);
}
.app-sidebar .ico {
  flex: 0 0 auto;
  opacity: 0.9;
}
.app-sidebar .chev {
  margin-left: auto;
  transition: transform 0.18s ease;
}
.app-sidebar .has-sub.is-open > .sub-toggle .chev {
  transform: rotate(180deg);
}

/* Sub list */
.app-sidebar .sub,
.app-sidebar .sub li {
  list-style: none;
  margin: 0;
  padding: 0;
}
.app-sidebar .has-sub > .sub {
  display: none;
  padding: 6px 0 10px 34px;
}
.app-sidebar .has-sub.is-open > .sub {
  display: block;
}
.app-sidebar .nav-sublink {
  display: block;
  padding: 8px 10px;
  border-radius: 8px;
  line-height: 1.2;
  color: #1f2937;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}
.app-sidebar .nav-sublink:hover {
  background: #f3f6f7;
}
.app-sidebar .nav-sublink.active {
  background: rgba(16, 185, 129, 0.14);
  color: #065f46;
  font-weight: 700;
}

/* Desktop pinned sidebar */
@media (min-width: 900px) {
  body.sidebar-pinned #scrim {
    display: none !important;
  }
  body.sidebar-pinned .app-sidebar {
    transform: translateX(0);
    left: 16px;
    width: var(--sidebar-w);
  }
  body.sidebar-pinned .app-content {
    margin-left: calc(var(--sidebar-w) + 36px);
    max-width: unset;
  }
}

/* Optional dark mode adjustments */
:root[data-theme="dark"] .app-sidebar {
  background: #0f172a;
  border-color: #1f2a44;
}
:root[data-theme="dark"] .sidebar-title {
  color: #94a3b8;
}
:root[data-theme="dark"] .nav-link,
:root[data-theme="dark"] .sub-toggle {
  color: #e5e7eb;
  background: #0f172a;
  border-color: #1f2336;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}
:root[data-theme="dark"] .nav-link:hover,
:root[data-theme="dark"] .sub-toggle:hover {
  background: #0b2330;
}
:root[data-theme="dark"] .nav-link.active {
  background: rgba(16, 185, 129, 0.18);
  color: #bbf7d0;
}
:root[data-theme="dark"] .nav-sublink {
  color: #d1d5db;
}
:root[data-theme="dark"] .nav-sublink:hover {
  background: #0b2330;
}
:root[data-theme="dark"] .nav-sublink.active {
  background: rgba(16, 185, 129, 0.18);
  color: #bbf7d0;
}

/* ---------- Cards & Grid ---------- */
.cards {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
  transition: transform var(--t) var(--e), box-shadow var(--t) var(--e);
}
.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(2, 6, 23, 0.09);
}
.card > .title {
  font-weight: 700;
  margin-bottom: 8px;
}
.card.metric {
  position: relative;
  overflow: hidden;
}
.card.metric .val {
  font-size: clamp(22px, 3.4vw, 32px);
  font-weight: 800;
}
.card.metric::after {
  content: "";
  position: absolute;
  right: -40px;
  top: -40px;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: radial-gradient(
    closest-side,
    rgba(16, 185, 129, 0.12),
    transparent 70%
  );
}

.status-pill--inactive {
  background: rgba(244, 63, 94, 0.15);
  color: #7f1d1d;
}
.status-pill--total {
  background: rgba(15, 23, 42, 0.1);
  color: #0f172a;
}
.table tfoot th,
.table tfoot td {
  padding: 12px 14px;
  border-top: 2px solid rgba(15, 23, 42, 0.12);
  background: var(--panel, #fff);
}

/* ---------- Badges ---------- */
.badge {
  display: inline-block;
  padding: 5px 10px;
  border-radius: 999px;
  background: #ecfff6;
  border: 1px solid #c6f1e0;
  color: #0f5a41;
  font-size: 12px;
  font-weight: 600;
}

/* ---------- Forms & Buttons ---------- */
label,
.label {
  display: block;
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 6px;
}
input,
select,
textarea {
  width: 100%;
  padding: 11px 12px;
  margin: 8px 0 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--ink);
  outline: none;
  transition: border var(--t) var(--e), box-shadow var(--t) var(--e),
    transform 0.08s var(--e);
}
input::placeholder {
  color: #8a97a3;
}
input:focus,
select:focus,
textarea:focus {
  border-color: #bfead8;
  box-shadow: 0 0 0 5px rgba(16, 185, 129, 0.12);
}
button {
  cursor: pointer;
  font-weight: 800;
  letter-spacing: 0.2px;
  color: #1e293b;
  border: 1px solid var(--border-2);
  background: linear-gradient(180deg, #ffffff, #fff5de);
  box-shadow: var(--shadow-sm);
  padding: 11px 14px;
  border-radius: 12px;
  width: 100%;
  transition: transform var(--t) var(--e), box-shadow var(--t) var(--e),
    filter var(--t) var(--e);
}
button:hover {
  filter: brightness(1.02);
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(2, 6, 23, 0.1);
}
button:active {
  transform: translateY(0);
}
button.primary {
  color: #fff;
  border: 0;
  background: linear-gradient(180deg, #27b07a, #1e9e6e);
  box-shadow: 0 12px 22px rgba(16, 185, 129, 0.2);
}
button.secondary {
  background: #f7f8fa;
}

/* Actions row */
.actions {
  display: flex;
  gap: 12px;
}
.actions > * {
  flex: 1;
  text-align: center;
}

/* ---------- Tables ---------- */
table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}
thead th {
  text-align: left;
  color: #1f2937;
  font-size: 13px;
  font-weight: 700;
  background: #f8fafc;
  border-bottom: 1px solid var(--border);
  padding: 12px;
}
tbody td {
  padding: 12px;
  border-bottom: 1px solid #eef2f6;
  color: #0f172a;
}
tbody tr:nth-child(odd) {
  background: #fff;
}
tbody tr:nth-child(even) {
  background: #fbfdff;
}
tbody tr:hover {
  background: #f8fbff;
}

/* ---------- Notices ---------- */
.error {
  color: #7c231d;
  background: #ffe8e5;
  border: 1px solid #ffc9c1;
  padding: 12px;
  border-radius: 12px;
  box-shadow: 0 8px 18px rgba(255, 112, 96, 0.12);
}
.success {
  color: #0f5a41;
  background: #e9fff6;
  border: 1px solid #bbf3df;
  padding: 12px;
  border-radius: 12px;
  box-shadow: 0 8px 18px rgba(16, 185, 129, 0.1);
}

/* ---------- Footer ---------- */
.app-footer {
  text-align: center;
  padding: 16px;
  color: #6e7b73;
}

/* ---------- Utilities ---------- */
.hr {
  height: 1px;
  background: var(--border);
  margin: 12px 0;
  border: 0;
}
.mute {
  color: var(--muted);
}
.round {
  border-radius: var(--radius);
}
.br {
  border: 1px solid var(--border);
}
.px {
  padding-left: 14px;
  padding-right: 14px;
}

/* ---------- Auth Pages ---------- */
body.auth-bg {
  background: linear-gradient(180deg, #fbf8f1 0%, #faf7ea 100%);
}
.auth-page {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 10px;
  align-items: center;
  max-width: 1100px;
  margin: 20px auto 48px;
  padding: 0 16px;
}
.auth-hero {
  padding: 8px 8px 8px 0;
}
.auth-hero h2 {
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 800;
  margin: 0.2rem 0 6px;
}
.auth-hero p {
  color: #475569;
  margin: 0 0 10px;
}
.auth-hero ul {
  margin: 8px 0 0 18px;
  color: #64748b;
}
.auth-hero li {
  margin: 6px 0;
}
.auth-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px;
  box-shadow: 0 18px 40px rgba(2, 6, 23, 0.08);
  width: 100%;
  max-width: 520px;
  margin-left: auto;
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(1, minmax(140px, 1fr));
  gap: 12px;
}
.form-grid .full {
  grid-column: 1/-1;
}
.auth-card label {
  display: block;
  font-size: 13px;
  color: #64748b;
  margin: 0 0 6px;
}
.auth-card input {
  margin: 6px 0 10px;
}
.auth-card input::placeholder {
  color: #94a3b8;
}
.auth-card input:focus {
  border-color: #cfeee1;
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.14);
}
.auth-actions {
  display: flex;
  gap: 12px;
  margin-top: 6px;
}
.auth-actions > * {
  flex: 1;
}

/* Password peek icon */
.input-wrap {
  position: relative;
}
.input-wrap input {
  width: 100%;
  padding-right: 42px;
}
.input-wrap .peek {
  position: absolute;
  right: 10px;
  top: 60%;
  transform: translateY(-40%);
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: 0;
  padding: 0;
  margin: 0;
  cursor: pointer;
  color: #666;
}
.peek .icon-eye {
  display: none;
}
.peek .icon-eye-off {
  display: block;
}
.peek.is-on .icon-eye {
  display: block;
}
.peek.is-on .icon-eye-off {
  display: none;
}

/* ---------- Reusable UI: pills, forms, callouts ---------- */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  background: rgba(100, 116, 139, 0.16);
  color: #475569;
}
.status-pill--success {
  background: rgba(16, 185, 129, 0.18);
  color: #047857;
}
.status-pill--pending {
  background: rgba(250, 204, 21, 0.18);
  color: #b45309;
}
.status-pill--danger {
  background: rgba(248, 113, 113, 0.18);
  color: #b91c1c;
}

.form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.form-field label {
  font-weight: 700;
  color: var(--text);
}
.form-field input,
.form-field select {
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--border-2);
  font: inherit;
  background: #fff;
}
.form-field input:focus,
.form-field select:focus {
  outline: 0;
  border-color: #10b981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.18);
}

.callout {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px 14px;
  border-radius: 14px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.16);
  font-weight: 700;
  color: #047857;
}

/* ---------- Team tree ---------- */
.tree-wrap {
  padding: 18px;
  border-radius: 22px;
  background: #fff;
  border: 1px solid rgba(226, 232, 240, 0.8);
  box-shadow: 0 22px 42px rgba(15, 23, 42, 0.08);
  overflow-x: auto;
}
.team-tree {
  list-style: none;
  margin: 0;
  padding-left: 24px;
  position: relative;
}
.team-tree::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: rgba(100, 116, 139, 0.25);
}
.team-tree > li {
  position: relative;
  margin: 0 0 16px;
  padding-left: 18px;
}
.team-tree > li::before {
  content: "";
  position: absolute;
  left: -10px;
  top: 14px;
  width: 18px;
  height: 1px;
  background: rgba(100, 116, 139, 0.25);
}
.tree-node {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 16px;
  border-radius: 16px;
  background: rgba(248, 250, 252, 0.9);
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.06);
}
.tree-node strong {
  font-size: 14px;
  letter-spacing: 0.4px;
}
.tree-node small {
  color: var(--muted);
}

/* ---------- Data tables (pretty) ---------- */
.table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}
.table thead th {
  background: rgba(248, 250, 252, 0.9);
  color: var(--text);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  padding: 14px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.25);
}
.table tbody td {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  vertical-align: middle;
}
.table tbody tr:last-child td {
  border-bottom: none;
}
.table tbody tr:hover {
  background: rgba(248, 250, 252, 0.65);
}

/* ---------- Landing / Marketing Blocks (unchanged API, cream‑green tuned) ---------- */
.landing-body {
  background: radial-gradient(
      circle at top right,
      rgba(16, 185, 129, 0.08),
      transparent 55%
    ),
    var(--bg);
}
.landing-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 24px 96px;
  display: flex;
  flex-direction: column;
  gap: 72px;
}
.plan-hero {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 56px;
  align-items: center;
  padding: 48px;
  border-radius: 32px;
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.95),
    rgba(233, 250, 242, 0.9)
  );
  box-shadow: 0 24px 52px rgba(15, 23, 42, 0.12);
  overflow: hidden;
}
.plan-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse at right,
    rgba(59, 130, 246, 0.12),
    transparent 55%
  );
  opacity: 0.9;
  pointer-events: none;
}
.plan-hero .hero-copy {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.plan-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.2px;
  background: rgba(16, 185, 129, 0.12);
  color: #047857;
  box-shadow: 0 6px 18px rgba(16, 185, 129, 0.18);
  animation: floatTag 6s ease-in-out infinite;
}
.tag-icon {
  width: 22px;
  height: 22px;
}
@keyframes floatTag {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-4px);
  }
}
.hero-copy h1 {
  font-size: clamp(28px, 3.4vw, 38px);
  margin: 0;
}
.hero-copy p {
  margin: 0;
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.6;
}
.hero-points {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.hero-points li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px dashed rgba(15, 23, 42, 0.08);
  font-weight: 600;
  color: var(--text);
}
.hero-points li::before {
  content: "";
  width: 8px;
  height: 8px;
  margin-top: 6px;
  border-radius: 999px;
  background: linear-gradient(120deg, #10b981, #2563eb);
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.16);
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 24px;
}
.hero-svg {
  width: 100%;
  max-width: 320px;
  filter: drop-shadow(0 22px 44px rgba(2, 6, 23, 0.16));
  animation: floatHero 8s ease-in-out infinite;
}
@keyframes floatHero {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}
.hero-orbit {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  pointer-events: none;
  z-index: 1;
}
.pulse {
  position: absolute;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  border: 1px solid rgba(16, 185, 129, 0.25);
  animation: pulse 6s ease-in-out infinite;
}
.pulse-one {
  animation-delay: 0s;
}
.pulse-two {
  animation-delay: 1.3s;
  width: 190px;
  height: 190px;
}
.pulse-three {
  animation-delay: 2.6s;
  width: 240px;
  height: 240px;
}
@keyframes pulse {
  0% {
    transform: scale(0.8);
    opacity: 0.6;
  }
  50% {
    transform: scale(1);
    opacity: 0.25;
  }
  100% {
    transform: scale(1.2);
    opacity: 0;
  }
}

/* Content sections */
.plan-section {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.section-head {
  display: flex;
  align-items: flex-start;
  gap: 18px;
}
.icon-bubble {
  width: 60px;
  height: 60px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
  animation: floatIcon 7s ease-in-out infinite;
}
@keyframes floatIcon {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}
.section-head h2 {
  font-size: clamp(24px, 2.6vw, 30px);
  margin: 0;
}
.section-intro {
  margin-top: 6px;
  color: var(--muted);
  max-width: 640px;
}
.eyebrow {
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 2px;
  color: rgba(15, 23, 42, 0.55);
  margin: 0 0 4px;
  font-weight: 700;
}
.section-body {
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.highlight-card {
  padding: 24px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.highlight-card h3 {
  margin: 0;
}
.highlight-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}
.mini-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}
.mini-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--text);
}
.mini-list li::before {
  content: "•";
  color: var(--accent-dark);
  font-weight: 800;
}
.data-grid {
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.data-card {
  padding: 22px;
  border-radius: 24px;
  background: #fff;
  border: 1px solid rgba(226, 232, 240, 0.8);
  box-shadow: 0 18px 38px rgba(15, 23, 42, 0.08);
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.data-card.single {
  grid-column: span 1;
}
.data-card__title {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.data-card__title span {
  font-weight: 800;
  font-size: 16px;
}
.data-card__title small {
  color: var(--muted);
}
.data-table {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.data-table .row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(248, 250, 252, 0.8);
  font-weight: 600;
  color: var(--text);
}
.data-table .row span:last-child {
  text-align: right;
}
.data-table .row.head {
  background: rgba(16, 185, 129, 0.12);
  color: #047857;
  box-shadow: inset 0 0 0 1px rgba(16, 185, 129, 0.18);
}
.data-card.stretch {
  padding: 26px;
}
.data-table.table-wide .row {
  grid-template-columns: 1.2fr 1fr 1fr 1fr;
}
.plan-note {
  padding: 12px 16px;
  border-radius: 14px;
  background: rgba(15, 118, 110, 0.12);
  color: #0f766e;
  font-size: 14px;
  line-height: 1.5;
}
.plan-note strong {
  font-weight: 800;
}
.task-highlight {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 14px;
  border-radius: 16px;
  background: rgba(14, 165, 233, 0.12);
}
.task-highlight strong {
  font-size: 20px;
  display: block;
  margin-bottom: 4px;
}
.panel-grid {
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.panel-card {
  padding: 22px;
  border-radius: 20px;
  background: #fff;
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.08);
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform var(--t) var(--e), box-shadow var(--t) var(--e);
}
.panel-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 46px rgba(15, 23, 42, 0.14);
}
.panel-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}
.panel-card code {
  background: rgba(15, 23, 42, 0.06);
  padding: 2px 6px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
}
.panel-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: rgba(16, 185, 129, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 18px rgba(15, 23, 42, 0.12);
}
.panel-icon svg {
  width: 32px;
  height: 32px;
}
.withdraw-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}
.withdraw-card {
  padding: 20px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.08);
}
.withdraw-card h3 {
  margin: 0 0 6px;
}
.withdraw-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}
.admin-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.admin-card {
  padding: 22px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.08);
  font-weight: 600;
  color: var(--text);
  line-height: 1.6;
}
.admin-card h3 {
  margin: 0 0 6px;
  font-size: 17px;
}

/* ---------- Header (public landing) ---------- */
.app-header--public {
  gap: 18px;
}
.header-left {
  display: flex;
  align-items: center;
  gap: 14px;
}
.header-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  font-weight: 600;
}
.header-nav a {
  color: rgba(15, 23, 42, 0.72);
  padding: 6px 0;
}
.header-nav a:hover,
.header-nav a:focus {
  color: var(--accent-dark);
}
.header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}
.header-link {
  font-weight: 700;
  color: var(--ink);
}
.header-link:hover {
  color: var(--accent-dark);
}
.header-cta {
  padding: 8px 14px;
  font-size: 14px;
  border-radius: 12px;
}

/* ---------- Responsive ---------- */
@media (max-width: 1200px) {
  .app-content {
    padding: 18px;
  }
}
@media (max-width: 1024px) {
  .plan-hero {
    grid-template-columns: 1fr;
    padding: 40px 32px;
  }
  .hero-visual {
    order: -1;
  }
  .hero-points li {
    border-bottom: none;
    background: rgba(248, 250, 252, 0.9);
    padding: 12px 14px;
    border-radius: 14px;
  }
}
@media (max-width: 900px) {
  .app-content {
    padding: 16px;
  }
  .auth-page {
    grid-template-columns: 1fr;
    gap: 18px;
    margin: 14px auto 36px;
  }
  .auth-card {
    margin: 0 auto;
    padding: 16px;
    max-width: 560px;
  }
}
@media (max-width: 768px) {
  .landing-main {
    padding: 24px 18px 72px;
    gap: 56px;
  }
  .plan-hero {
    padding: 32px 24px;
  }
  .section-head {
    flex-direction: column;
    align-items: flex-start;
  }
  .icon-bubble {
    width: 52px;
    height: 52px;
    border-radius: 16px;
  }
  .data-table.table-wide .row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .data-table.table-wide .row span:nth-child(odd) {
    font-weight: 700;
  }
  .data-table.table-wide .row span:nth-child(even) {
    text-align: left;
    color: var(--muted);
  }
  .header-nav {
    display: none;
  }
  .header-right {
    gap: 8px;
  }
  .header-link {
    display: none;
  }
  .header-cta {
    padding: 8px 12px;
    font-size: 13px;
  }
}

.scroll-x {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch; /* smooth iOS */
}
.table-wide {
  table-layout: auto;
}
.table-nowrap th,
.table-nowrap td {
  white-space: nowrap;
}

@media (max-width: 900px) {
  .table-wide {
    min-width: 980px;
  } /* force scroll on mobile */
}

@media (max-width: 720px) {
  .cards {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  html,
  body {
    overflow-x: hidden;
  }
}
@media (max-width: 600px) {
  .hero-cta {
    flex-direction: column;
  }
  .task-highlight {
    flex-direction: column;
    align-items: flex-start;
  }
  .plan-hero {
    border-radius: 24px;
  }
}
@media (max-width: 540px) {
  .card {
    padding: 14px;
    border-radius: 12px;
  }
  .card h3 {
    font-size: 16px;
  }
  .card.metric .val {
    font-size: 24px;
  }
}

/* ---------- Motion respect ---------- */
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}

/* Layout scaffolding */
.dashboard-wrap {
  max-width: 1200px;
  margin: 0 auto;
}
.grid {
  display: grid;
  gap: 12px;
  align-items: start;
}
.top-grid {
  grid-template-columns: 1fr;
}
@media (min-width: 992px) {
  .top-grid {
    grid-template-columns: 2fr 1fr;
  }
}
.welcome-grid {
  grid-template-columns: 1fr;
}

/* Wallets grid */
.cards.wallets {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (min-width: 768px) {
  .cards.wallets {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (min-width: 1200px) {
  .cards.wallets {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Reusable utilities */
.row {
  display: flex;
  gap: 16px;
}
.space-between {
  justify-content: space-between;
  align-items: center;
}
.wrap {
  flex-wrap: wrap;
}
.stack > * + * {
  margin-top: 4px;
}
.strong {
  font-weight: 700;
}
.big-amount {
  font-size: 28px;
  font-weight: 800;
  line-height: 1.2;
}
.actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}
.card-prem {
  padding: 16px;
} /* your theme card visuals already handle bg/border */

/* Buttons (use theme colors; only class hooks) */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 10px;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid var(--border, rgba(2, 6, 23, 0.08));
}
.btn-yellow {
  background: #fff7d6;
  border-color: #f2e4a8;
  color: #5b4200;
}
.btn-blue {
  background: #f4f8ff;
  border-color: #d8e6ff;
  color: #213d6a;
}
.btn-rose {
  background: #fff5f2;
  border-color: #ffd7ce;
  color: #7a2d1f;
}
.btn-sand {
  background: #fffaf0;
  border-color: #f4e4b9;
  color: #5b4200;
}

/* Default tokens (one बार app.css में रख लो) */
:root {
  --si-cream-1: #fff7e6; /* very light cream */
  --si-cream-2: #f7ebcb; /* peachy cream */
  --si-green: #10b981; /* brand accent */
}

/* Welcome box - Warm Cream */
/* --- Colorful typography for welcome card --- */
.welcome-card {
  text-align: center;
  padding: 18px;
  border-radius: 18px;
}

.welcome-title {
  display: flex;
  gap: 6px;
  justify-content: center;
  flex-wrap: wrap;
}
.wc-kicker {
  font-weight: 900;
  letter-spacing: 0.4px;
  background: linear-gradient(90deg, #f59e0b, #f97316); /* amber → orange */
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.wc-name {
  font-weight: 900;
  background: linear-gradient(90deg, #22c55e, #16a34a); /* light→brand green */
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.welcome-rank {
  margin-top: 4px;
  font-weight: 700;
}
.wc-rank-label {
  color: #475569;
  opacity: 0.9;
}
.wc-rank {
  background: linear-gradient(90deg, #06b6d4, #2563eb); /* cyan → indigo */
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 900;
}

.welcome-sub {
  margin-top: 6px;
  color: #475569;
  opacity: 0.9;
  font-weight: 600;
}

.welcome-amt {
  margin-top: 10px;
}
.wc-currency {
  font-weight: 900;
  color: #0f172a;
  margin-right: 4px;
}
.wc-value {
  font-size: 34px;
  font-weight: 900;
  color: #0f172a;
}

/* Status chips */
.welcome-chips {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
}
.welcome-chip {
  padding: 7px 14px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 12px;
  border: 1px solid transparent;
}
.welcome-chip.is-active {
  background: #dcfce7;
  color: #166534;
  border-color: #a7f3d0; /* green */
}
.welcome-chip.is-inactive {
  background: #fee2e2;
  color: #b91c1c;
  border-color: #fecaca; /* red */
}
.welcome-chip.ghost {
  background: #ffffff;
  color: #0f172a;
  border-color: #e5e7eb;
  text-decoration: none;
}
.welcome-chip.ghost:hover {
  border-color: #10b981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.12);
}

/* spacing below section */
.welcome-grid {
  margin-bottom: 18px;
}
@media (min-width: 720px) {
  .wc-value {
    font-size: 36px;
  }
}

/* Wallet typography */
.wallet-title {
  margin: 0 0 6px;
  font-weight: 800;
}
.wallet-val {
  font-weight: 800;
  font-size: 22px;
}

/* No horizontal scroll overall */
html,
body,
.app-wrap,
.app-content {
  overflow-x: hidden;
}

/* ===== Sidebar - Normal, clean, subtle ===== */

/* container */
.sb-neo {
  background: #fff; /* flat */
  border-right: 1px solid #f0e9d6; /* light beige to match theme */
  padding: 12px 14px;
  box-shadow: none;
}

/* user chip (very subtle) */
.sb-user {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 4px 0 10px;
  padding: 8px 10px;
  border: 1px solid #f2eddc;
  border-radius: 10px;
  background: #fff; /* no gradient */
  box-shadow: none;
}
.sb-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: #f2fbf6;
}
.sb-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.sb-avatar-initial {
  font-weight: 700;
  color: #137a52;
}
.sb-user-meta {
  min-width: 0;
}
.sb-user-name {
  font-weight: 800;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 140px;
}
.sb-user-id {
  font-size: 12px;
  color: #64748b;
}
.sb-user-cta {
  margin-left: auto;
  font-size: 12px;
  font-weight: 800;
  padding: 6px 10px;
  border-radius: 999px;
  text-decoration: none;
  border: 1px solid #dcefe5;
  color: #137a52;
  background: #f6fdf9;
}

/* quick actions (compact) */
.sb-quick {
  display: flex;
  gap: 8px;
  margin: 0 0 10px;
}
.sb-quick-btn {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 8px;
  font-weight: 800;
  text-decoration: none;
  background: #10b981;
  color: #fff;
  border: 1px solid #10b981;
}
.sb-quick-btn.outline {
  background: #fff;
  color: #137a52;
  border: 1px solid #dcefe5;
}

/* nav root */
.sb-nav {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sb-link,
.sb-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  text-decoration: none;
  background: transparent;
  border: 1px solid transparent;
  color: #0f172a;
  font-weight: 800;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.sb-toggle {
  cursor: pointer;
}

/* icons */
.sb-ico {
  width: 18px;
  height: 18px;
  color: #6b7280;
  flex: none;
  display: inline-block;
}
.sb-ico svg {
  width: 18px;
  height: 18px;
}
.sb-chev {
  margin-left: auto;
  width: 16px;
  height: 16px;
  opacity: 0.6;
  transition: transform 0.18s ease;
}

/* hover: very soft */
.sb-link:hover,
.sb-toggle:hover {
  background: #fff7e1;
} /* soft warm highlight */

/* active: light mint tint + left indicator */
.sb-link.active {
  position: relative;
  background: #f3fcf7;
  color: #137a52;
}
.sb-link.active .sb-ico {
  color: #137a52;
}
.sb-link.active::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 8px;
  bottom: 8px;
  width: 3px;
  border-radius: 3px;
  background: #10b981;
}

/* groups: simple divider */
.sb-group {
  padding: 4px 0 2px;
  border-bottom: 1px dashed #efe6cd;
}
.sb-group:last-child {
  border-bottom: 0;
}

/* submenu: smooth but compact */
.sb-sub {
  list-style: none;
  margin: 4px 0 2px;
  padding: 0 0 0 30px;
  display: block;
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height 0.22s ease, opacity 0.15s ease;
}
.sb-group.is-open .sb-sub {
  max-height: 520px;
  opacity: 1;
}
.sb-group.is-open .sb-chev {
  transform: rotate(180deg);
}

.sb-sublink {
  display: block;
  padding: 8px 8px;
  border-radius: 8px;
  color: #374151;
  text-decoration: none;
  font-weight: 700;
  transition: background 0.12s ease, color 0.12s ease;
}
.sb-sublink:hover {
  background: #f7fafc;
}
.sb-sublink.active {
  background: #f3fcf7;
  color: #137a52;
}

/* scrollbar slim (unchanged) */
.app-sidebar {
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #d9dde5 transparent;
}
.app-sidebar::-webkit-scrollbar {
  width: 8px;
}
.app-sidebar::-webkit-scrollbar-thumb {
  background: #e7e9ef;
  border-radius: 8px;
}

/* mobile: normal paddings */
@media (max-width: 480px) {
  .sb-user-name {
    max-width: 120px;
  }
  .sb-link,
  .sb-toggle {
    padding: 9px 10px;
  }
  .sb-sublink {
    padding: 8px 8px;
  } /* was too large before */
}

/* ===== Submenu - special open style (clean & classy) ===== */

/* 1) Open group header को हल्का highlight + subtle border */
.sb-group.is-open > .sb-toggle {
  background: #f6fdf9; /* mint tint */
  border: 1px solid #d6efe4;
  color: #137a52;
}
.sb-group.is-open > .sb-toggle .sb-ico {
  color: #137a52;
}

/* 2) Submenu container: soft card + left rail */
.sb-group.is-open .sb-sub {
  margin: 6px 0 10px;
  padding: 10px 12px 12px 18px; /* extra left for rail */
  background: linear-gradient(180deg, #fffdf3 0%, #fffaf0 100%);
  border: 1px solid #f0e6c9;
  border-radius: 12px;
  position: relative;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.7);
}

/* left guide rail */
.sb-group.is-open .sb-sub::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 10px;
  bottom: 10px;
  width: 2px;
  border-radius: 2px;
  background: linear-gradient(180deg, #e4eee8 0%, #d7dcdb 100%);
}

/* 3) Items: pill hover + tiny bullet */
.sb-sub li {
  margin: 4px 0;
}

.sb-sublink {
  position: relative;
  padding: 8px 10px 8px 26px; /* room for dot */
  border-radius: 10px;
  background: transparent;
  transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

/* bullet dot */
.sb-sublink::before {
  content: "";
  position: absolute;
  left: 10px;
  top: 50%;
  width: 6px;
  height: 6px;
  margin-top: -3px;
  border-radius: 50%;
  background: #cbd5e1; /* idle grey */
  transition: background 0.15s ease, transform 0.15s ease;
}

/* hover state */
.sb-sublink:hover {
  background: #fff6dc;
  box-shadow: inset 0 0 0 1px #f2e7c9;
}
.sb-sublink:hover::before {
  background: #9ad6ba; /* minty highlight */
  transform: scale(1.1);
}

/* active sub-item: green pill */
.sb-sublink.active {
  background: #f0fbf5;
  color: #137a52;
  font-weight: 800;
  box-shadow: inset 0 0 0 1px #cfeadc;
}
.sb-sublink.active::before {
  background: #10b981;
}

/* 4) subtle reveal animation (optional) */
.sb-group.is-open .sb-sub li {
  animation: sbSubFade 0.18s ease both;
}
.sb-group.is-open .sb-sub li:nth-child(2) {
  animation-delay: 0.02s;
}
.sb-group.is-open .sb-sub li:nth-child(3) {
  animation-delay: 0.04s;
}
.sb-group.is-open .sb-sub li:nth-child(4) {
  animation-delay: 0.06s;
}
@keyframes sbSubFade {
  from {
    opacity: 0;
    transform: translateY(2px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* wallet section ke baad referral card ke upar extra space */
#referral-card {
  margin-top: 24px; /* mobile */
}
@media (min-width: 768px) {
  #referral-card {
    margin-top: 32px;
  } /* desktop thoda zyada */
}

/* ===== Direct Rewards (10-Day) – external CSS (force-light safe) ===== */

/* Card shell */
#dr-card {
  border-radius: 16px;
  background: #fff7e6;
  padding: 14px 14px 12px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
  color-scheme: light; /* <- lock this component to light */
}

/* Header */
#dr-card .hdr {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
#dr-card .ttl {
  font-weight: 800;
  margin: 0;
}

/* Countdown pill */
#dr-card .timer {
  font-weight: 700;
  font-size: 0.8rem;
  padding: 6px 10px;
  border-radius: 999px;
  background: #f8ebe8; /* light pill */
  color: #ff0000; /* red text */
}

/* 3/7/10 stats */
#dr-card .grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 8px 0 10px;
}
#dr-card .stat {
  background: #fff;
  border: 1px dashed rgba(0, 0, 0, 0.08);
  border-radius: 10px;
  padding: 8px;
}
#dr-card .k {
  font-size: 0.75rem;
  color: #6b7280;
} /* label */
#dr-card .v {
  font-weight: 800;
} /* value */

/* Paid summary + progress */
#dr-card .paid {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 10px;
  padding: 8px;
  margin-bottom: 8px;
}
#dr-card .bar {
  height: 8px;
  background: #fde4b1; /* light amber track */
  border-radius: 999px;
  overflow: hidden;
  position: relative;
}
#dr-card .bar > i {
  display: block;
  height: 100%;
  width: 0; /* inline style sets actual width% */
  background: #f59e0b; /* amber fill */
}

/* Milestone marks (5,10,15) */
#dr-card .marks {
  position: relative;
  height: 10px;
  margin-top: 6px;
}
#dr-card .marks span {
  position: absolute;
  top: -2px;
  transform: translateX(-50%);
  font-size: 0.72rem;
  color: #6b7280;
}
#dr-card .marks b {
  display: inline-block;
  margin-left: 4px;
  font-size: 0.8rem;
}

/* Chips (₹400 / +₹300 / +₹400) */
#dr-card .chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}
#dr-card .chip {
  font-weight: 700;
  font-size: 0.78rem;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid #e5e7eb;
  background: #fff;
}
#dr-card .ok {
  background: #e8f8ee;
  border-color: #b7f0cf;
} /* reached/processing */
#dr-card .lock {
  opacity: 0.75;
} /* locked */

/* Mobile tweaks */
@media (max-width: 600px) {
  #dr-card .grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ===== Neutralize auto-dark: keep the same light palette ===== */
@media (prefers-color-scheme: dark) {
  #dr-card {
    background: #fff7e6;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
  }
  #dr-card .stat,
  #dr-card .paid {
    background: #fff;
    border-color: rgba(0, 0, 0, 0.06);
  }
  #dr-card .k,
  #dr-card .marks span {
    color: #6b7280;
  }
  #dr-card .chip {
    background: #fff;
    border-color: #e5e7eb;
    color: inherit;
  }
  #dr-card .ok {
    background: #e8f8ee;
    border-color: #b7f0cf;
  }
  #dr-card .bar {
    background: #fde4b1;
  }
  #dr-card .bar > i {
    background: #f59e0b;
  }
}

/* ==== Milestone markers (clean dots) ==== */
#dr-card .marks {
  position: relative;
  height: 22px; /* dots + number below */
  margin-top: 8px;
}
#dr-card .marks .mk {
  position: absolute;
  top: -6px; /* dot sits a bit above the bar */
  transform: translateX(-50%);
  text-align: center;
}
#dr-card .marks .mk i {
  display: block;
  width: 12px; /* dot size */
  height: 12px;
  border-radius: 50%;
  border: 2px solid #d1d5db; /* gray ring */
  background: #fff; /* hollow by default */
  box-shadow: 0 0 0 3px #fff; /* white halo so it "floats" */
}
#dr-card .marks .mk.ok i {
  background: #16a34a; /* green fill for achieved */
  border-color: #16a34a;
}
#dr-card .marks .mk.off i {
  background: #fff; /* hollow for pending */
  border-color: #d1d5db;
}
#dr-card .marks .mk em {
  display: block;
  margin-top: 6px; /* gap below the dot */
  font-style: normal;
  font-size: 0.72rem;
  color: #6b7280;
  font-weight: 700;
}

/* ==== Payout chips (clean look) ==== */
#dr-card .payouts {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 10px;
}
#dr-card .p-item {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 8px 10px;
  font-weight: 700;
}
#dr-card .p-item .p-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex: 0 0 10px;
  border: 2px solid #d1d5db;
  background: #fff;
}
#dr-card .p-item .p-amt {
  font-weight: 800;
}
#dr-card .p-item .p-label {
  color: #6b7280;
  font-weight: 600;
}
#dr-card .p-item .p-sep {
  color: #cbd5e1;
  font-weight: 800;
}
#dr-card .p-item .p-pill {
  margin-left: auto;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 4px 8px;
  border-radius: 999px;
  letter-spacing: 0.2px;
  border: 1px solid #e5e7eb;
  background: #f8fafc;
  color: #64748b;
}

/* States */
#dr-card .p-item.paid .p-dot {
  background: #16a34a;
  border-color: #16a34a;
}
#dr-card .p-item.paid .p-pill {
  background: #e7f7ee;
  border-color: #b7f0cf;
  color: #0f7a42;
}

#dr-card .p-item.processing .p-dot {
  background: #f59e0b;
  border-color: #f59e0b;
}
#dr-card .p-item.processing .p-pill {
  background: #fff7e6;
  border-color: #f5d48a;
  color: #a16207;
}

#dr-card .p-item.locked .p-dot {
  background: #fff;
  border-color: #d1d5db;
}
#dr-card .p-item.locked {
  opacity: 0.9;
}
#dr-card .p-item.locked .p-pill {
  background: #f3f4f6;
  border-color: #e5e7eb;
  color: #6b7280;
}

#dr-card {
  margin-bottom: 20px;
}

/* === Quick Action Tabs (compact, same design) === */
.qa-tabs {
  padding: 14px;
}
.qa-tablist {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 10px;
}
.qa-tab {
  height: 64px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: #1f2937;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  user-select: none;
  transition: transform 0.12s, box-shadow 0.12s, background 0.12s,
    border-color 0.12s;
}
.qa-tab:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}
.qa-tab:active {
  transform: translateY(1px);
}
.qa-tab.is-active {
  background: linear-gradient(#fff, #f7f3e9);
  border-color: rgba(0, 0, 0, 0.12);
}
.qa-tab .ico svg {
  width: 20px;
  height: 20px;
  display: block;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.qa-tab .lbl {
  font-size: 0.78rem;
  letter-spacing: 0.2px;
  line-height: 1;
  white-space: nowrap;
  word-break: keep-all;
}

#tab-topup .ico {
  color: #1361ff;
}
#tab-withdraw .ico {
  color: #e2575e;
}
#tab-fund .ico {
  color: #1361ff;
}
#shareBtn .ico {
  color: #b88a2a;
}

/* panels */
.qa-panels {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 12px;
  padding: 12px;
}
.qa-panel {
  display: none;
}
.qa-panel.is-active {
  display: block;
}

/* small phones */
@media (max-width: 420px) {
  .qa-tablist {
    gap: 8px;
  }
  .qa-tab {
    border-radius: 12px;
  }
}

/* === Fund Move page layout (same visuals) === */
.fm-wrap {
  max-width: 520px;
  margin: 0 auto;
  padding: 0 14px;
}
.fm-wrap .card {
  margin: 10px 0 14px;
  border-radius: 16px;
  overflow: hidden;
}
@media (max-width: 420px) {
  .fm-wrap {
    padding-left: 12px;
    padding-right: 12px;
  }
  .fm-wrap .card {
    border-radius: 14px;
  }
}
@media (max-width: 340px) {
  .fm-wrap {
    padding-left: 10px;
    padding-right: 10px;
  }
}

/* Page gutters + centered layout only for Fund Move page */
.fm-wrap {
  max-width: 520px; /* desktop/tablet pe card center */
  margin: 0 auto; /* center horizontally */
  padding: 0 14px; /* default horizontal gutters */
}

.fm-wrap .card {
  margin: 10px 0 14px; /* top/bottom spacing */
  border-radius: 16px;
  overflow: hidden; /* tidy shadow/edges */
}

/* Tighter phones */
@media (max-width: 420px) {
  .fm-wrap {
    padding-left: 12px;
    padding-right: 12px;
  }
  .fm-wrap .card {
    border-radius: 14px;
  }
}

/* Very small phones */
@media (max-width: 320px) {
  .fm-wrap {
    padding-left: 10px;
    padding-right: 10px;
  }
}

/* ==== P2P History card (same look as form box) ==== */
.p2p-card {
  background: #fff5dc;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 16px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  padding: 14px;
  margin-top: 12px;
}

/* ==== Fund Move History card (same look as top box) ==== */
.fm-card {
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 16px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  padding: 14px;
  margin-top: 12px;
}

.app-content > .card + .card {
  margin-top: 16px;
}

/* horizontal scroll utility */
.x-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 6px;
  cursor: grab;
}
.x-scroll:active {
  cursor: grabbing;
}
.table-nowrap th,
.table-nowrap td {
  white-space: nowrap;
}
.min-980 {
  min-width: 980px;
} /* need scroll on mobile */

/* Wallet grid: always 2 per row (mobile included) */
.cards.wallets {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 10px;
}

/* Wallet card (compact for small screens too) */
.cards.wallets .card.card-prem {
  padding: 0;
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  border: 1px solid #f3ead3;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
  min-height: 72px;
}

.cards.wallets .wallet-title {
  margin: 0;
  padding: 8px 10px;
  background: linear-gradient(180deg, #fff7e6, #fff3d9);
  color: #0f172a;
  font-weight: 700;
  font-size: clamp(12px, 3.2vw, 14px); /* small screens में auto shrink */
  border-bottom: 1px dashed #f1e6c9;
}

.cards.wallets .wallet-val {
  padding: 10px 12px;
  background: linear-gradient(180deg, #eafff6, #dffbf0);
  color: #064e3b;
  font-weight: 800;
  font-size: clamp(16px, 4.2vw, 18px); /* digits responsive */
  font-variant-numeric: tabular-nums;
}

/* Footer banner ad */
.ad-footer-banner {
  text-align: center;
  padding: 12px 0 18px;
  overflow: hidden;
}

.ad-footer-banner iframe {
  max-width: 100% !important;
}

