/* === Smart Exchange Global - 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;
}

/* === 2026 mobile refresh layer === */
:root {
  --si-page: #f7f9f4;
  --si-card: #ffffff;
  --si-line: #dfe7dc;
  --si-green: #10845c;
  --si-green-2: #0b6f4e;
  --si-gold: #d19a21;
  --si-ink: #10201a;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 0;
  color: var(--si-ink);
  background:
    linear-gradient(180deg, rgba(16, 132, 92, 0.08), transparent 260px),
    var(--si-page);
}

.app-header {
  min-height: 60px;
  padding: 10px max(14px, env(safe-area-inset-left)) 10px max(14px, env(safe-area-inset-right));
  background: rgba(255, 255, 255, 0.94);
  border-bottom-color: rgba(16, 132, 92, 0.16);
}

.app-header .brand {
  color: var(--si-green-2) !important;
  font-size: 17px;
  letter-spacing: 0;
}

.app-content,
.page,
.dashboard,
.container {
  width: min(100%, 1180px);
}

.app-content {
  padding: 14px max(14px, env(safe-area-inset-left)) 90px max(14px, env(safe-area-inset-right));
  margin-top: 0;
}

.card,
.card-prem,
.stat-card,
.panel,
.box,
.qa-panels,
.p2p-card,
.fm-card {
  background: var(--si-card) !important;
  border: 1px solid var(--si-line) !important;
  border-radius: 12px !important;
  box-shadow: 0 10px 24px rgba(16, 32, 26, 0.07) !important;
}

.cards {
  gap: 12px;
}

.btn,
button,
input,
select,
textarea {
  font: inherit;
}

.btn,
button.btn,
a.btn {
  min-height: 42px;
  border-radius: 10px;
  letter-spacing: 0;
}

.btn-primary,
.btn.primary,
button[type="submit"]:not(.btn-ghost):not(.btn-link) {
  background: linear-gradient(180deg, var(--si-green), var(--si-green-2));
  color: #fff;
  border-color: transparent;
}

input,
select,
textarea,
.input,
.select {
  max-width: 100%;
  border-radius: 10px !important;
  border-color: var(--si-line) !important;
  background: #fff !important;
}

.x-scroll {
  margin-inline: -4px;
  padding-inline: 4px;
}

.table {
  border-collapse: separate;
  border-spacing: 0;
}

.table th,
.table td {
  white-space: nowrap;
  vertical-align: middle;
}

.table thead th {
  color: #52615b;
  background: #f7faf4;
  letter-spacing: 0;
}

#appSidebar {
  box-shadow: 20px 0 40px rgba(0, 0, 0, 0.14);
}

#scrim:not([hidden]) {
  position: fixed;
  inset: 0;
  z-index: 1190;
  display: block;
  background: rgba(12, 24, 19, 0.38);
  backdrop-filter: blur(2px);
}

.profile-wrap .dropdown {
  border-radius: 12px;
  border-color: var(--si-line);
}

.ad-top-banner,
.ad-footer-banner {
  max-width: 100%;
}

@media (max-width: 760px) {
  body {
    font-size: 14px;
  }

  .app-header {
    gap: 8px;
  }

  .header-left,
  .header-right {
    min-width: 44px;
  }

  .profile-btn .name,
  .hello,
  .desktop-only {
    display: none !important;
  }

  h1 {
    font-size: 22px;
  }

  h2 {
    font-size: 19px;
  }

  .app-content {
    padding-left: 12px;
    padding-right: 12px;
  }

  .card,
  .card-prem,
  .stat-card,
  .panel,
  .box {
    padding: 12px !important;
  }

  .cards,
  .grid,
  .grid.cols-2,
  .grid.cols-3 {
    grid-template-columns: 1fr !important;
  }

  .cards.wallets {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .btn,
  button.btn,
  a.btn {
    width: 100%;
  }

  .toolbar,
  .actions,
  .filters-row,
  .row {
    gap: 8px;
  }

  .table th,
  .table td {
    padding: 9px 10px;
    font-size: 13px;
  }
}

@media (max-width: 380px) {
  .app-content {
    padding-left: 10px;
    padding-right: 10px;
  }

  .cards.wallets .wallet-title {
    font-size: 11px;
  }

  .cards.wallets .wallet-val {
    font-size: 15px;
  }
}

/* Sidebar visibility fix */
#scrim:not([hidden]) {
  top: 0 !important;
  z-index: 1180 !important;
  background: rgba(12, 24, 19, 0.42) !important;
}

#appSidebar.app-sidebar {
  top: calc(var(--header-h, 68px) + 4px) !important;
  height: calc(100dvh - var(--header-h, 68px) - 8px) !important;
  max-height: calc(100dvh - var(--header-h, 68px) - 8px) !important;
  width: min(82vw, 320px) !important;
  max-width: calc(100vw - 56px) !important;
  z-index: 3000 !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  background: #fff !important;
  -webkit-overflow-scrolling: touch;
  transform: translateX(-105%) !important;
}

#appSidebar.app-sidebar.is-open,
body.show-sidebar #appSidebar.app-sidebar,
body.sidebar-open #appSidebar.app-sidebar,
html.sidebar-open #appSidebar.app-sidebar,
body[data-sidebar="open"] #appSidebar.app-sidebar {
  transform: translateX(0) !important;
}

body.sidebar-open,
body.show-sidebar {
  overflow: hidden;
}

#appSidebar .sb-user {
  min-height: 100%;
  padding: 14px 10px 22px !important;
}

#appSidebar .sb-nav {
  display: block;
  max-height: none !important;
  overflow: visible !important;
  padding: 0 !important;
}

#appSidebar .sb-link,
#appSidebar .sb-toggle,
#appSidebar .sb-sublink {
  max-width: 100%;
}

@media (max-width: 480px) {
  :root {
    --header-h: 68px;
  }

  #appSidebar.app-sidebar {
    width: min(78vw, 292px) !important;
    max-width: calc(100vw - 64px) !important;
  }

  #appSidebar .sb-link,
  #appSidebar .sb-toggle {
    min-height: 42px;
    padding: 9px 10px !important;
    font-size: 14px;
  }

  #appSidebar .sb-sub {
    padding-left: 22px !important;
  }
}

/* === SIDEBAR MOBILE LAYOUT FIX: stop old flex row overlap === */
#appSidebar .sb-user {
  display: block !important;
  flex-direction: initial !important;
  align-items: stretch !important;
  gap: 0 !important;
}

#appSidebar .sb-user > * {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

#appSidebar .seg-sidebar-brand,
#appSidebar .seg-sidebar-user {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 10px !important;
  min-width: 0 !important;
  white-space: normal !important;
}

#appSidebar .seg-sidebar-brand > div,
#appSidebar .seg-sidebar-user > div {
  min-width: 0 !important;
  flex: 1 1 auto !important;
}

#appSidebar .seg-sidebar-brand strong,
#appSidebar .seg-sidebar-user strong {
  display: block !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

#appSidebar .seg-sidebar-brand small,
#appSidebar .seg-sidebar-user small {
  display: block !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

#appSidebar .sb-nav,
#appSidebar .sb-nav > li,
#appSidebar .sb-group,
#appSidebar .sb-sub,
#appSidebar .sb-sub > li {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
}

#appSidebar .sb-link > span:not(.sb-ico),
#appSidebar .sb-toggle > span:not(.sb-ico) {
  min-width: 0 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

@media (max-width: 720px) {
  #appSidebar .seg-sidebar-brand {
    display: none !important;
  }

  #appSidebar .seg-sidebar-user {
    margin-top: 0 !important;
  }

  #appSidebar .sb-link,
  #appSidebar .sb-toggle {
    min-height: 46px !important;
    padding: 10px 11px !important;
  }
}

/* === VERY LAST: simple colored human header/sidebar === */
:root {
  --header-h: 62px;
  --simple-bg: #eef7f1;
  --simple-panel: #ffffff;
  --simple-ink: #15201a;
  --simple-muted: #6b756f;
  --simple-border: #dbe7df;
  --simple-green: #117a4d;
  --simple-green-soft: #e4f5ec;
  --simple-yellow: #fff2b8;
  --simple-yellow-line: #ead278;
}

html,
body {
  background: linear-gradient(180deg, #f4ffe9 0, #eef7f1 210px, #f7faf8 100%) !important;
  color: var(--simple-ink) !important;
}

.app-header {
  min-height: var(--header-h) !important;
  padding: 9px 14px !important;
  display: grid !important;
  grid-template-columns: 38px minmax(0, 1fr) 38px !important;
  align-items: center !important;
  gap: 12px !important;
  background: #f8fff8 !important;
  border-bottom: 1px solid var(--simple-border) !important;
  box-shadow: 0 4px 16px rgba(17, 122, 77, 0.08) !important;
}

.brand-logo-wrap {
  padding: 4px 10px 4px 5px !important;
  gap: 8px !important;
  max-width: min(520px, 62vw) !important;
  background: #fffdf5 !important;
  border: 1px solid var(--simple-border) !important;
  border-radius: 999px !important;
  box-shadow: none !important;
}

.brand-logo-wrap img {
  width: 30px !important;
  height: 30px !important;
  border-radius: 8px !important;
}

.brand-logo-wrap span {
  color: var(--simple-green) !important;
  font-size: 14px !important;
  font-weight: 750 !important;
}

.app-header .icon-btn,
.profile-btn {
  width: 36px !important;
  height: 36px !important;
  border: 1px solid var(--simple-border) !important;
  border-radius: 9px !important;
  background: #fffdf5 !important;
  color: var(--simple-green) !important;
  box-shadow: none !important;
}

.app-header .icon-btn:hover,
.profile-btn:hover {
  background: var(--simple-green-soft) !important;
}

#scrim:not([hidden]) {
  inset: var(--header-h) 0 0 0 !important;
  background: rgba(21, 32, 26, 0.34) !important;
  backdrop-filter: none !important;
}

#appSidebar.app-sidebar {
  top: calc(var(--header-h) + 8px) !important;
  left: 8px !important;
  width: min(86vw, 292px) !important;
  height: calc(100dvh - var(--header-h) - 16px) !important;
  max-height: calc(100dvh - var(--header-h) - 16px) !important;
  border: 1px solid var(--simple-border) !important;
  border-radius: 12px !important;
  background: #fffdf5 !important;
  box-shadow: 0 14px 34px rgba(21, 32, 26, 0.16) !important;
}

#appSidebar .sb-user {
  display: block !important;
  padding: 12px !important;
  height: 100% !important;
  overflow-y: auto !important;
}

#appSidebar .seg-sidebar-brand {
  display: flex !important;
  gap: 9px !important;
  padding: 4px 4px 11px !important;
  margin: 0 0 10px !important;
  border-bottom: 1px solid var(--simple-border) !important;
  background: transparent !important;
}

#appSidebar .seg-sidebar-brand img {
  width: 32px !important;
  height: 32px !important;
  border-radius: 8px !important;
  box-shadow: none !important;
}

#appSidebar .seg-sidebar-brand strong,
#appSidebar .seg-sidebar-user strong {
  color: var(--simple-ink) !important;
  font-size: 13px !important;
  font-weight: 750 !important;
}

#appSidebar .seg-sidebar-brand small,
#appSidebar .seg-sidebar-user small {
  color: var(--simple-muted) !important;
  font-size: 11px !important;
  font-weight: 500 !important;
}

#appSidebar .seg-sidebar-user {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  margin: 0 0 12px !important;
  padding: 10px !important;
  border: 1px solid var(--simple-yellow-line) !important;
  border-radius: 10px !important;
  background: var(--simple-yellow) !important;
  box-shadow: none !important;
}

#appSidebar .seg-sidebar-avatar {
  width: 34px !important;
  height: 34px !important;
  background: #fffdf5 !important;
  box-shadow: none !important;
}

#appSidebar .sb-nav {
  display: grid !important;
  gap: 5px !important;
  margin: 0 !important;
  padding: 0 0 8px !important;
}

#appSidebar .sb-nav > li,
#appSidebar .sb-group,
#appSidebar .sb-sub,
#appSidebar .sb-sub > li {
  width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
}

#appSidebar .sb-link,
#appSidebar .sb-toggle {
  min-height: 42px !important;
  width: 100% !important;
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  padding: 9px 10px !important;
  border: 0 !important;
  border-radius: 8px !important;
  background: transparent !important;
  color: #2f3b34 !important;
  font-size: 14px !important;
  font-weight: 650 !important;
  box-shadow: none !important;
}

#appSidebar .sb-ico {
  width: 26px !important;
  height: 26px !important;
  border-radius: 7px !important;
  background: #f4f6f5 !important;
  color: var(--simple-muted) !important;
}

#appSidebar .sb-link:hover,
#appSidebar .sb-toggle:hover {
  background: #f4f6f5 !important;
  color: var(--simple-ink) !important;
}

#appSidebar .sb-link.active,
#appSidebar .sb-group.is-open > .sb-toggle {
  background: var(--simple-green-soft) !important;
  color: var(--simple-green) !important;
}

#appSidebar .sb-link.active .sb-ico,
#appSidebar .sb-group.is-open > .sb-toggle .sb-ico {
  background: #fffdf5 !important;
  color: var(--simple-green) !important;
}

#appSidebar .sb-sub {
  display: none !important;
  margin: 3px 0 6px 13px !important;
  padding: 4px 0 4px 12px !important;
  border-left: 1px solid var(--simple-border) !important;
  background: transparent !important;
}

#appSidebar .sb-group.is-open > .sb-sub {
  display: grid !important;
  gap: 2px !important;
}

#appSidebar .sb-sublink {
  min-height: 34px !important;
  padding: 7px 9px !important;
  border-radius: 7px !important;
  color: #526058 !important;
  font-size: 13px !important;
  font-weight: 500 !important;
}

#appSidebar .sb-sublink:hover,
#appSidebar .sb-sublink.active {
  background: #f4f6f5 !important;
  color: var(--simple-green) !important;
}

.card,
.panel,
.box,
.offer-card,
.mobile-card,
.level-card,
.fm-tile,
.seg-actions,
.seg-income-card,
.seg-side-card,
.seg-referral-card {
  border: 1px solid var(--simple-border) !important;
  border-radius: 12px !important;
  background: #fffdf5 !important;
  box-shadow: 0 6px 18px rgba(21, 32, 26, 0.05) !important;
}

.seg-hero,
.offer-hero {
  border: 1px solid rgba(17, 122, 77, 0.22) !important;
  border-radius: 16px !important;
  background: linear-gradient(135deg, #117a4d, #1f9d68) !important;
}

.seg-balance-card {
  border-radius: 14px !important;
  background: linear-gradient(135deg, #117a4d, #1f9d68) !important;
}

.btn,
button.btn,
a.btn,
.btn-primary,
.seg-main-action,
.btn-pill {
  border: 1px solid var(--simple-green) !important;
  border-radius: 8px !important;
  background: var(--simple-green) !important;
  color: #ffffff !important;
  box-shadow: none !important;
}

.table th {
  background: #edf8f2 !important;
  color: #165b3c !important;
}

@media (max-width: 720px) {
  :root {
    --header-h: 60px;
  }

  .app-header {
    padding: 9px 10px !important;
  }

  .brand-logo-wrap {
    max-width: 60vw !important;
  }

  .brand-logo-wrap img {
    width: 28px !important;
    height: 28px !important;
  }

  .brand-logo-wrap span {
    font-size: 12px !important;
  }
}

/* === FINAL: flat simple sidebar menu, no dropdown boxes === */
#appSidebar .sb-nav {
  gap: 2px !important;
}

#appSidebar .sb-link,
#appSidebar .sb-toggle {
  min-height: 40px !important;
  padding: 8px 8px !important;
  border: 0 !important;
  outline: 0 !important;
  border-radius: 7px !important;
  background: transparent !important;
  box-shadow: none !important;
}

#appSidebar .sb-link:hover,
#appSidebar .sb-toggle:hover {
  background: #f4f7f5 !important;
  color: var(--simple-green) !important;
}

#appSidebar .sb-link.active,
#appSidebar .sb-group.is-open > .sb-toggle,
#appSidebar .sb-toggle[aria-expanded="true"] {
  border: 0 !important;
  outline: 0 !important;
  background: #e8f7ef !important;
  color: var(--simple-green) !important;
  box-shadow: none !important;
}

#appSidebar .sb-sub {
  display: none !important;
  margin: 2px 0 7px 18px !important;
  padding: 2px 0 2px 10px !important;
  border: 0 !important;
  border-left: 1px solid #dbe7df !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

#appSidebar .sb-group.is-open > .sb-sub {
  display: grid !important;
  gap: 1px !important;
}

#appSidebar .sb-sublink {
  min-height: 32px !important;
  padding: 6px 8px !important;
  border: 0 !important;
  border-radius: 6px !important;
  background: transparent !important;
  box-shadow: none !important;
  color: #5c6660 !important;
  font-size: 13px !important;
  font-weight: 500 !important;
}

#appSidebar .sb-sublink:hover,
#appSidebar .sb-sublink.active {
  background: transparent !important;
  color: var(--simple-green) !important;
}

#appSidebar .sb-ico {
  background: transparent !important;
  color: #87928b !important;
}

#appSidebar .sb-link.active .sb-ico,
#appSidebar .sb-group.is-open > .sb-toggle .sb-ico {
  background: transparent !important;
  color: var(--simple-green) !important;
}

/* === CLEAN HUMAN UI: simple header + sidebar final === */
:root {
  --header-h: 64px;
  --ui-bg: #f6f7f9;
  --ui-panel: #ffffff;
  --ui-text: #111827;
  --ui-muted: #6b7280;
  --ui-border: #e5e7eb;
  --ui-soft: #f3f4f6;
  --ui-green: #0f8f5f;
  --ui-green-soft: #e8f7ef;
  --ui-shadow: 0 10px 24px rgba(17, 24, 39, 0.08);
}

html,
body {
  background: var(--ui-bg) !important;
  color: var(--ui-text) !important;
}

.app-header {
  position: sticky !important;
  top: 0 !important;
  z-index: 3000 !important;
  min-height: var(--header-h) !important;
  padding: 10px 16px !important;
  display: grid !important;
  grid-template-columns: 40px minmax(0, 1fr) 40px !important;
  align-items: center !important;
  gap: 12px !important;
  background: #fffdf5 !important;
  border-bottom: 1px solid var(--ui-border) !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
}

.header-left,
.header-right {
  display: flex !important;
  align-items: center !important;
  min-width: 0 !important;
}

.header-right {
  justify-content: flex-end !important;
}

.brand-logo-wrap {
  justify-self: center !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 9px !important;
  max-width: min(520px, 62vw) !important;
  min-width: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.brand-logo-wrap img {
  width: 30px !important;
  height: 30px !important;
  object-fit: contain !important;
  border-radius: 8px !important;
  background: #111827 !important;
  flex: 0 0 auto !important;
}

.brand-logo-wrap span {
  display: block !important;
  overflow: hidden !important;
  color: var(--ui-text) !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  line-height: 1.1 !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  letter-spacing: 0 !important;
}

.app-header .icon-btn,
.profile-btn {
  width: 38px !important;
  height: 38px !important;
  padding: 0 !important;
  display: inline-grid !important;
  place-items: center !important;
  border: 1px solid var(--ui-border) !important;
  border-radius: 9px !important;
  background: #fffdf5 !important;
  color: var(--ui-text) !important;
  box-shadow: none !important;
}

.app-header .icon-btn:hover,
.profile-btn:hover {
  background: var(--ui-soft) !important;
  color: var(--ui-text) !important;
  transform: none !important;
}

.profile-wrap .dropdown {
  top: calc(100% + 8px) !important;
  border: 1px solid var(--ui-border) !important;
  border-radius: 10px !important;
  background: #fffdf5 !important;
  box-shadow: var(--ui-shadow) !important;
}

#scrim:not([hidden]) {
  position: fixed !important;
  inset: var(--header-h) 0 0 0 !important;
  z-index: 2600 !important;
  background: rgba(17, 24, 39, 0.32) !important;
  backdrop-filter: none !important;
}

#appSidebar.app-sidebar {
  position: fixed !important;
  top: calc(var(--header-h) + 10px) !important;
  left: 10px !important;
  z-index: 2700 !important;
  width: min(84vw, 288px) !important;
  max-width: calc(100vw - 20px) !important;
  height: calc(100dvh - var(--header-h) - 20px) !important;
  max-height: calc(100dvh - var(--header-h) - 20px) !important;
  overflow: hidden !important;
  transform: translateX(calc(-100% - 16px)) !important;
  border: 1px solid var(--ui-border) !important;
  border-radius: 12px !important;
  background: #fffdf5 !important;
  box-shadow: var(--ui-shadow) !important;
  transition: transform 0.2s ease !important;
}

#appSidebar.app-sidebar.is-open,
body.show-sidebar #appSidebar.app-sidebar,
body.sidebar-open #appSidebar.app-sidebar,
html.sidebar-open #appSidebar.app-sidebar,
body[data-sidebar="open"] #appSidebar.app-sidebar {
  transform: translateX(0) !important;
}

#appSidebar .sb-user {
  display: block !important;
  height: 100% !important;
  padding: 12px !important;
  overflow-y: auto !important;
  overscroll-behavior: contain !important;
}

#appSidebar .seg-sidebar-brand {
  display: flex !important;
  align-items: center !important;
  gap: 9px !important;
  margin: 0 0 10px !important;
  padding: 4px 4px 12px !important;
  border: 0 !important;
  border-bottom: 1px solid var(--ui-border) !important;
  background: transparent !important;
}

#appSidebar .seg-sidebar-brand img {
  width: 30px !important;
  height: 30px !important;
  border-radius: 8px !important;
  background: #111827 !important;
  box-shadow: none !important;
}

#appSidebar .seg-sidebar-brand strong,
#appSidebar .seg-sidebar-user strong {
  display: block !important;
  overflow: hidden !important;
  color: var(--ui-text) !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  line-height: 1.15 !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

#appSidebar .seg-sidebar-brand small,
#appSidebar .seg-sidebar-user small {
  display: block !important;
  margin-top: 2px !important;
  overflow: hidden !important;
  color: var(--ui-muted) !important;
  font-size: 11px !important;
  font-weight: 500 !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

#appSidebar .seg-sidebar-user {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  margin: 0 0 12px !important;
  padding: 10px !important;
  border: 1px solid var(--ui-border) !important;
  border-radius: 10px !important;
  background: #fafafa !important;
  box-shadow: none !important;
}

#appSidebar .seg-sidebar-avatar {
  width: 34px !important;
  height: 34px !important;
  display: grid !important;
  place-items: center !important;
  border-radius: 50% !important;
  background: var(--ui-green-soft) !important;
  border: 0 !important;
  box-shadow: none !important;
  flex: 0 0 auto !important;
}

#appSidebar .sb-nav {
  display: grid !important;
  gap: 5px !important;
  margin: 0 !important;
  padding: 0 0 8px !important;
}

#appSidebar .sb-nav,
#appSidebar .sb-nav > li,
#appSidebar .sb-group,
#appSidebar .sb-sub,
#appSidebar .sb-sub > li {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
}

#appSidebar .sb-link,
#appSidebar .sb-toggle {
  width: 100% !important;
  min-height: 42px !important;
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  padding: 9px 10px !important;
  border: 0 !important;
  border-radius: 8px !important;
  background: transparent !important;
  color: #374151 !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  text-align: left !important;
  box-shadow: none !important;
}

#appSidebar .sb-ico {
  width: 26px !important;
  height: 26px !important;
  display: grid !important;
  place-items: center !important;
  border-radius: 7px !important;
  background: var(--ui-soft) !important;
  color: var(--ui-muted) !important;
  flex: 0 0 auto !important;
}

#appSidebar .sb-ico svg {
  width: 16px !important;
  height: 16px !important;
}

#appSidebar .sb-chev {
  width: 16px !important;
  height: 16px !important;
  margin-left: auto !important;
  color: var(--ui-muted) !important;
}

#appSidebar .sb-group.is-open > .sb-toggle .sb-chev {
  transform: rotate(180deg) !important;
}

#appSidebar .sb-link:hover,
#appSidebar .sb-toggle:hover {
  background: var(--ui-soft) !important;
  color: var(--ui-text) !important;
}

#appSidebar .sb-link.active,
#appSidebar .sb-group.is-open > .sb-toggle {
  background: var(--ui-green-soft) !important;
  color: var(--ui-green) !important;
}

#appSidebar .sb-link.active .sb-ico,
#appSidebar .sb-group.is-open > .sb-toggle .sb-ico {
  background: #fffdf5 !important;
  color: var(--ui-green) !important;
}

#appSidebar .sb-sub {
  display: none !important;
  margin: 3px 0 6px 13px !important;
  padding: 4px 0 4px 12px !important;
  border-left: 1px solid var(--ui-border) !important;
  border-radius: 0 !important;
  background: transparent !important;
}

#appSidebar .sb-group.is-open > .sb-sub {
  display: grid !important;
  gap: 2px !important;
}

#appSidebar .sb-sublink {
  min-height: 34px !important;
  display: flex !important;
  align-items: center !important;
  padding: 7px 9px !important;
  border-radius: 7px !important;
  color: #4b5563 !important;
  font-size: 13px !important;
  font-weight: 500 !important;
}

#appSidebar .sb-sublink:hover,
#appSidebar .sb-sublink.active {
  background: var(--ui-soft) !important;
  color: var(--ui-green) !important;
}

.app-content {
  width: min(100%, 1120px) !important;
  margin: 0 auto !important;
  padding: clamp(16px, 2.4vw, 28px) !important;
}

.card,
.panel,
.box,
.offer-card,
.mobile-card,
.level-card,
.fm-tile,
.seg-actions,
.seg-income-card,
.seg-side-card,
.seg-referral-card {
  border: 1px solid var(--ui-border) !important;
  border-radius: 12px !important;
  background: #fffdf5 !important;
  box-shadow: none !important;
}

.btn,
button.btn,
a.btn,
.btn-primary,
.seg-main-action,
.btn-pill {
  border: 1px solid var(--ui-green) !important;
  border-radius: 8px !important;
  background: var(--ui-green) !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  box-shadow: none !important;
}

.btn:hover,
button.btn:hover,
a.btn:hover,
.btn-primary:hover,
.seg-main-action:hover,
.btn-pill:hover {
  background: #0b7a50 !important;
  color: #ffffff !important;
}

.table th {
  background: #f9fafb !important;
  color: #374151 !important;
  border-bottom: 1px solid var(--ui-border) !important;
}

.table td {
  background: #fffdf5 !important;
}

input,
select,
textarea {
  min-height: 40px !important;
  border: 1px solid var(--ui-border) !important;
  border-radius: 8px !important;
  background: #fffdf5 !important;
}

input:focus,
select:focus,
textarea:focus {
  outline: 3px solid rgba(15, 143, 95, 0.14) !important;
  border-color: var(--ui-green) !important;
}

@media (max-width: 720px) {
  :root {
    --header-h: 60px;
  }

  .app-header {
    grid-template-columns: 38px minmax(0, 1fr) 38px !important;
    padding: 9px 10px !important;
  }

  .brand-logo-wrap {
    max-width: 58vw !important;
  }

  .brand-logo-wrap img {
    width: 28px !important;
    height: 28px !important;
  }

  .brand-logo-wrap span {
    font-size: 13px !important;
  }

  .app-header .icon-btn,
  .profile-btn {
    width: 36px !important;
    height: 36px !important;
  }

  #appSidebar.app-sidebar {
    top: calc(var(--header-h) + 8px) !important;
    left: 8px !important;
    width: min(86vw, 286px) !important;
    height: calc(100dvh - var(--header-h) - 16px) !important;
    max-height: calc(100dvh - var(--header-h) - 16px) !important;
    border-radius: 10px !important;
  }
}

/* === ABSOLUTE LAST: SEG V2 priority skin === */
:root {
  --header-h: 70px;
  --seg-v2-red: #b91c1c;
  --seg-v2-red-dark: #7f1d1d;
  --seg-v2-yellow: #facc15;
  --seg-v2-yellow-soft: #fef3c7;
  --seg-v2-green: #16a34a;
  --seg-v2-green-soft: #dcfce7;
  --seg-v2-ink: #18181b;
}

body {
  background: linear-gradient(180deg, #fff4bc 0, #fffdf5 230px) !important;
  color: var(--seg-v2-ink) !important;
}

.app-header {
  min-height: var(--header-h) !important;
  background: linear-gradient(135deg, #b91c1c, #7f1d1d) !important;
  border: 0 !important;
  box-shadow: 0 16px 36px rgba(127, 29, 29, 0.26) !important;
}

.brand-logo-wrap {
  background: #fffdf5 !important;
  border: 2px solid var(--seg-v2-yellow) !important;
  box-shadow: 0 12px 26px rgba(69, 10, 10, 0.22) !important;
}

.brand-logo-wrap span {
  color: var(--seg-v2-red-dark) !important;
}

.app-header .icon-btn,
.profile-btn {
  background: #fffdf5 !important;
  color: var(--seg-v2-red) !important;
  border-color: rgba(255, 255, 255, 0.55) !important;
}

#appSidebar.app-sidebar {
  top: calc(var(--header-h) + 10px) !important;
  left: 10px !important;
  width: min(88vw, 316px) !important;
  height: calc(100dvh - var(--header-h) - 20px) !important;
  max-height: calc(100dvh - var(--header-h) - 20px) !important;
  border: 0 !important;
  border-radius: 24px !important;
  background: linear-gradient(180deg, #7f1d1d 0, #b91c1c 112px, #ffffff 113px, #ffffff 100%) !important;
  box-shadow: 0 30px 90px rgba(69, 10, 10, 0.34) !important;
}

#appSidebar .sb-user {
  display: block !important;
  height: 100% !important;
  padding: 14px !important;
  overflow-y: auto !important;
}

#appSidebar .seg-sidebar-brand {
  display: flex !important;
  margin-bottom: 12px !important;
  padding: 6px !important;
  border: 0 !important;
}

#appSidebar .seg-sidebar-brand strong,
#appSidebar .seg-sidebar-brand small {
  color: #ffffff !important;
}

#appSidebar .seg-sidebar-user {
  display: flex !important;
  margin: 0 0 14px !important;
  padding: 12px !important;
  border-radius: 18px !important;
  background: var(--seg-v2-yellow-soft) !important;
  border: 1px solid rgba(250, 204, 21, 0.6) !important;
}

#appSidebar .sb-nav {
  display: grid !important;
  gap: 10px !important;
  margin: 0 !important;
  padding: 0 0 14px !important;
}

#appSidebar .sb-nav > li,
#appSidebar .sb-group {
  width: 100% !important;
}

#appSidebar .sb-link,
#appSidebar .sb-toggle {
  min-height: 52px !important;
  width: 100% !important;
  display: flex !important;
  align-items: center !important;
  gap: 11px !important;
  padding: 12px 13px !important;
  border: 1px solid rgba(24, 24, 27, 0.1) !important;
  border-radius: 17px !important;
  background: #fffdf5 !important;
  color: var(--seg-v2-ink) !important;
  font-weight: 900 !important;
  box-shadow: 0 10px 24px rgba(24, 24, 27, 0.05) !important;
}

#appSidebar .sb-ico {
  width: 32px !important;
  height: 32px !important;
  border-radius: 12px !important;
  background: var(--seg-v2-yellow-soft) !important;
  color: var(--seg-v2-red) !important;
}

#appSidebar .sb-link.active,
#appSidebar .sb-link:hover,
#appSidebar .sb-toggle:hover,
#appSidebar .sb-group.is-open > .sb-toggle {
  background: linear-gradient(135deg, var(--seg-v2-red), #ef4444) !important;
  color: #ffffff !important;
  border-color: transparent !important;
}

#appSidebar .sb-link.active .sb-ico,
#appSidebar .sb-link:hover .sb-ico,
#appSidebar .sb-toggle:hover .sb-ico,
#appSidebar .sb-group.is-open > .sb-toggle .sb-ico {
  background: var(--seg-v2-yellow) !important;
  color: #7f1d1d !important;
}

#appSidebar .sb-sub {
  display: none !important;
  margin: 8px 0 2px 16px !important;
  padding: 10px 8px 10px 14px !important;
  border-left: 3px solid var(--seg-v2-yellow) !important;
  background: #fffdf5 !important;
}

#appSidebar .sb-group.is-open > .sb-sub {
  display: grid !important;
  gap: 5px !important;
}

#appSidebar .sb-sublink.active,
#appSidebar .sb-sublink:hover {
  background: var(--seg-v2-green-soft) !important;
  color: #14532d !important;
}

.app-content {
  width: min(100%, 1160px) !important;
  padding: clamp(18px, 3vw, 38px) !important;
}

.card,
.panel,
.box,
.offer-card,
.mobile-card,
.level-card,
.fm-tile,
.seg-actions,
.seg-income-card,
.seg-side-card,
.seg-referral-card {
  border: 1px solid rgba(24, 24, 27, 0.08) !important;
  border-radius: 22px !important;
  background: #fffdf5 !important;
  box-shadow: 0 18px 50px rgba(127, 29, 29, 0.12) !important;
}

.seg-hero,
.offer-hero {
  border: 0 !important;
  border-radius: 28px !important;
  background: linear-gradient(135deg, #b91c1c, #7f1d1d 48%, #166534) !important;
  color: #ffffff !important;
}

.seg-balance-card {
  border: 0 !important;
  border-radius: 24px !important;
  background: linear-gradient(135deg, #166534, #16a34a 54%, #b91c1c) !important;
}

.btn,
button.btn,
a.btn,
.btn-primary,
.seg-main-action,
.btn-pill {
  border: 0 !important;
  border-radius: 999px !important;
  background: linear-gradient(135deg, #b91c1c, #ef4444) !important;
  color: #ffffff !important;
  box-shadow: 0 14px 30px rgba(185, 28, 28, 0.22) !important;
}

.table th {
  background: #7f1d1d !important;
  color: #ffffff !important;
}

/* === SMART EXCHANGE GLOBAL V2 LOOK: full visual redesign === */
:root {
  --seg-v2-red: #b91c1c;
  --seg-v2-red-2: #ef4444;
  --seg-v2-yellow: #facc15;
  --seg-v2-yellow-2: #fef3c7;
  --seg-v2-green: #16a34a;
  --seg-v2-green-2: #dcfce7;
  --seg-v2-ink: #18181b;
  --seg-v2-muted: #71717a;
  --seg-v2-line: rgba(24, 24, 27, 0.1);
  --seg-v2-card: #ffffff;
  --seg-v2-bg: #fffdf5;
  --seg-v2-shadow: 0 18px 50px rgba(127, 29, 29, 0.12);
  --header-h: 76px;
}

body {
  background:
    linear-gradient(180deg, #fff7cc 0, #fffdf5 210px),
    #fffdf5 !important;
  color: var(--seg-v2-ink) !important;
}

.app-header {
  min-height: var(--header-h) !important;
  padding: 12px clamp(12px, 3vw, 28px) !important;
  background: linear-gradient(135deg, var(--seg-v2-red), #991b1b) !important;
  border: 0 !important;
  box-shadow: 0 14px 34px rgba(127, 29, 29, 0.24) !important;
}

.brand-logo-wrap {
  max-width: min(620px, 66vw) !important;
  padding: 7px 16px 7px 8px !important;
  background: rgba(255, 255, 255, 0.96) !important;
  border: 1px solid rgba(250, 204, 21, 0.75) !important;
  box-shadow: 0 12px 24px rgba(69, 10, 10, 0.2) !important;
}

.brand-logo-wrap img {
  width: 40px !important;
  height: 40px !important;
  border-radius: 14px !important;
  background: #09090b !important;
}

.brand-logo-wrap span {
  color: #991b1b !important;
  font-size: 17px !important;
  letter-spacing: 0 !important;
}

.app-header .icon-btn,
.profile-btn {
  width: 44px !important;
  height: 44px !important;
  border-radius: 14px !important;
  border: 1px solid rgba(255, 255, 255, 0.32) !important;
  background: rgba(255, 255, 255, 0.96) !important;
  color: var(--seg-v2-red) !important;
  box-shadow: 0 12px 24px rgba(69, 10, 10, 0.2) !important;
}

.app-header .icon-btn:hover,
.profile-btn:hover {
  background: var(--seg-v2-yellow) !important;
  color: #7f1d1d !important;
}

.profile-wrap .dropdown {
  border: 1px solid rgba(250, 204, 21, 0.7) !important;
  border-radius: 18px !important;
  box-shadow: 0 28px 70px rgba(69, 10, 10, 0.18) !important;
}

#scrim:not([hidden]) {
  inset: var(--header-h) 0 0 0 !important;
  background: rgba(24, 24, 27, 0.5) !important;
  backdrop-filter: blur(4px) !important;
}

#appSidebar.app-sidebar {
  top: calc(var(--header-h) + 14px) !important;
  left: 14px !important;
  width: min(88vw, 318px) !important;
  height: calc(100dvh - var(--header-h) - 28px) !important;
  max-height: calc(100dvh - var(--header-h) - 28px) !important;
  border-radius: 26px !important;
  border: 0 !important;
  background:
    linear-gradient(180deg, #7f1d1d 0, #b91c1c 116px, #ffffff 117px, #ffffff 100%) !important;
  box-shadow: 0 28px 90px rgba(69, 10, 10, 0.36) !important;
}

#appSidebar .sb-user {
  padding: 14px !important;
}

#appSidebar .seg-sidebar-brand {
  display: flex !important;
  min-height: 74px !important;
  padding: 6px 6px 14px !important;
  border: 0 !important;
}

#appSidebar .seg-sidebar-brand img {
  width: 46px !important;
  height: 46px !important;
  border-radius: 16px !important;
  border: 2px solid rgba(250, 204, 21, 0.8) !important;
}

#appSidebar .seg-sidebar-brand strong,
#appSidebar .seg-sidebar-brand small {
  color: #ffffff !important;
}

#appSidebar .seg-sidebar-user {
  margin: 2px 0 14px !important;
  padding: 12px !important;
  border: 1px solid rgba(250, 204, 21, 0.55) !important;
  border-radius: 18px !important;
  background: #fff8db !important;
  box-shadow: 0 12px 28px rgba(127, 29, 29, 0.12) !important;
}

#appSidebar .seg-sidebar-avatar {
  width: 42px !important;
  height: 42px !important;
  display: grid !important;
  place-items: center !important;
  border-radius: 50% !important;
  background: #fffdf5 !important;
  border: 2px solid #ffffff !important;
  box-shadow: 0 10px 22px rgba(22, 101, 52, 0.16) !important;
}

#appSidebar .sb-nav {
  gap: 10px !important;
  padding-bottom: 16px !important;
}

#appSidebar .sb-link,
#appSidebar .sb-toggle {
  min-height: 52px !important;
  padding: 12px 13px !important;
  border-radius: 17px !important;
  border: 1px solid var(--seg-v2-line) !important;
  background: #fffdf5 !important;
  color: var(--seg-v2-ink) !important;
  box-shadow: 0 10px 24px rgba(24, 24, 27, 0.05) !important;
}

#appSidebar .sb-ico {
  width: 32px !important;
  height: 32px !important;
  border-radius: 12px !important;
  background: var(--seg-v2-yellow-2) !important;
  color: var(--seg-v2-red) !important;
}

#appSidebar .sb-link:hover,
#appSidebar .sb-toggle:hover,
#appSidebar .sb-link.active,
#appSidebar .sb-group.is-open > .sb-toggle {
  background: linear-gradient(135deg, var(--seg-v2-red), var(--seg-v2-red-2)) !important;
  color: #ffffff !important;
  border-color: transparent !important;
}

#appSidebar .sb-link:hover .sb-ico,
#appSidebar .sb-toggle:hover .sb-ico,
#appSidebar .sb-link.active .sb-ico,
#appSidebar .sb-group.is-open > .sb-toggle .sb-ico {
  background: var(--seg-v2-yellow) !important;
  color: #7f1d1d !important;
}

#appSidebar .sb-sub {
  margin: 8px 0 2px 16px !important;
  padding: 10px 8px 10px 14px !important;
  border-left: 3px solid var(--seg-v2-yellow) !important;
  background: #fffdf5 !important;
}

#appSidebar .sb-sublink {
  min-height: 40px !important;
  border-radius: 12px !important;
  color: #3f3f46 !important;
}

#appSidebar .sb-sublink:hover,
#appSidebar .sb-sublink.active {
  background: var(--seg-v2-green-2) !important;
  color: #14532d !important;
}

.app-content {
  width: min(100%, 1160px) !important;
  padding: clamp(18px, 3vw, 38px) !important;
}

.app-content > h1:first-child,
.app-content h1:first-child {
  color: #7f1d1d !important;
  font-size: clamp(24px, 3vw, 36px) !important;
}

.card,
.panel,
.box,
.offer-card,
.mobile-card,
.level-card,
.fm-tile,
.seg-actions,
.seg-income-card,
.seg-side-card,
.seg-referral-card {
  border: 1px solid rgba(24, 24, 27, 0.08) !important;
  border-radius: 22px !important;
  background: var(--seg-v2-card) !important;
  box-shadow: var(--seg-v2-shadow) !important;
}

.card h2,
.card h3,
.panel h2,
.panel h3,
.offer-card h3 {
  color: #7f1d1d !important;
}

.seg-hero,
.offer-hero {
  border: 0 !important;
  border-radius: 28px !important;
  background:
    linear-gradient(135deg, rgba(185, 28, 28, 0.98), rgba(127, 29, 29, 0.94) 48%, rgba(22, 101, 52, 0.96)) !important;
  box-shadow: 0 26px 70px rgba(127, 29, 29, 0.25) !important;
}

.seg-balance-card {
  border: 0 !important;
  border-radius: 24px !important;
  background:
    linear-gradient(135deg, #166534, #16a34a 54%, #b91c1c) !important;
  box-shadow: 0 24px 60px rgba(22, 101, 52, 0.2) !important;
}

.seg-action {
  border-radius: 18px !important;
  background: #fffdf5 !important;
  box-shadow: 0 12px 28px rgba(24, 24, 27, 0.06) !important;
}

.seg-action:hover {
  background: var(--seg-v2-yellow-2) !important;
  color: #7f1d1d !important;
}

.seg-action-icon {
  border-radius: 13px !important;
  background: linear-gradient(135deg, var(--seg-v2-red), var(--seg-v2-red-2)) !important;
}

.btn,
button.btn,
a.btn,
.btn-primary,
.seg-main-action,
.btn-pill {
  border: 0 !important;
  border-radius: 999px !important;
  background: linear-gradient(135deg, var(--seg-v2-red), var(--seg-v2-red-2)) !important;
  color: #ffffff !important;
  box-shadow: 0 14px 30px rgba(185, 28, 28, 0.22) !important;
}

.btn:hover,
button.btn:hover,
a.btn:hover,
.btn-primary:hover,
.seg-main-action:hover,
.btn-pill:hover {
  background: linear-gradient(135deg, var(--seg-v2-green), #22c55e) !important;
  color: #ffffff !important;
}

.table th {
  background: #7f1d1d !important;
  color: #ffffff !important;
}

.table td {
  background: #fffdf5 !important;
}

input,
select,
textarea {
  border-radius: 16px !important;
  border-color: rgba(24, 24, 27, 0.12) !important;
  background: #fffdf5 !important;
}

input:focus,
select:focus,
textarea:focus {
  outline: 4px solid rgba(250, 204, 21, 0.34) !important;
  border-color: var(--seg-v2-red) !important;
}

.badge,
.badge.success,
.offer-badge.is-approved {
  background: var(--seg-v2-green-2) !important;
  color: #14532d !important;
  border-color: rgba(22, 163, 74, 0.25) !important;
}

.badge.warn,
.offer-badge {
  background: var(--seg-v2-yellow-2) !important;
  color: #854d0e !important;
  border-color: rgba(250, 204, 21, 0.55) !important;
}

.app-footer {
  color: var(--seg-v2-muted) !important;
}

@media (max-width: 720px) {
  :root {
    --header-h: 70px;
  }

  .app-header {
    grid-template-columns: 42px minmax(0, 1fr) 42px !important;
    padding: 10px !important;
  }

  .brand-logo-wrap {
    max-width: 60vw !important;
    padding: 6px 10px 6px 6px !important;
  }

  .brand-logo-wrap img {
    width: 34px !important;
    height: 34px !important;
  }

  .brand-logo-wrap span {
    font-size: 12px !important;
  }

  #appSidebar.app-sidebar {
    top: calc(var(--header-h) + 10px) !important;
    left: 10px !important;
    width: min(88vw, 316px) !important;
    height: calc(100dvh - var(--header-h) - 20px) !important;
    max-height: calc(100dvh - var(--header-h) - 20px) !important;
    border-radius: 22px !important;
  }

  #appSidebar .seg-sidebar-brand {
    display: flex !important;
  }

  #appSidebar .sb-link,
  #appSidebar .sb-toggle {
    min-height: 50px !important;
  }

  .app-content {
    padding: 16px 12px 28px !important;
  }
}

/* === Smart Exchange Global final user-panel shell === */
:root {
  --seg-red: #dc2626;
  --seg-red-dark: #991b1b;
  --seg-yellow: #facc15;
  --seg-yellow-soft: #fff7cc;
  --seg-green: #16a34a;
  --seg-green-dark: #166534;
  --seg-white: #ffffff;
  --seg-ink: #171717;
  --seg-muted: #667085;
  --seg-line: rgba(23, 23, 23, 0.1);
  --seg-shadow: 0 18px 42px rgba(127, 29, 29, 0.1);
  --header-h: 74px;
  --sidebar-w: 310px;
}

html {
  min-height: 100%;
  background: #fff9e8;
}

body {
  min-height: 100%;
  color: var(--seg-ink) !important;
  background:
    linear-gradient(120deg, rgba(250, 204, 21, 0.18), rgba(22, 163, 74, 0.1) 44%, rgba(220, 38, 38, 0.08)),
    #fffaf0 !important;
}

.app-header {
  position: sticky !important;
  top: 0 !important;
  z-index: 3000 !important;
  min-height: var(--header-h) !important;
  padding: 12px clamp(12px, 2.4vw, 24px) !important;
  display: grid !important;
  grid-template-columns: 46px minmax(0, 1fr) 46px !important;
  align-items: center !important;
  gap: 12px !important;
  background: rgba(255, 255, 255, 0.94) !important;
  border-bottom: 1px solid rgba(220, 38, 38, 0.14) !important;
  box-shadow: 0 12px 30px rgba(153, 27, 27, 0.08) !important;
  backdrop-filter: blur(14px) saturate(1.2) !important;
}

.header-left,
.header-right {
  display: flex !important;
  align-items: center !important;
  min-width: 0 !important;
}

.header-left {
  justify-content: flex-start !important;
}

.header-right {
  justify-content: flex-end !important;
}

.brand-logo-wrap {
  justify-self: center !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 10px !important;
  min-width: 0 !important;
  max-width: min(580px, 64vw) !important;
  padding: 7px 15px 7px 8px !important;
  border-radius: 999px !important;
  background: linear-gradient(135deg, #ffffff, #fff7cc) !important;
  border: 1px solid rgba(250, 204, 21, 0.55) !important;
  box-shadow: 0 10px 24px rgba(202, 138, 4, 0.12) !important;
}

.brand-logo-wrap img {
  width: 38px !important;
  height: 38px !important;
  object-fit: contain !important;
  border-radius: 13px !important;
  background: #101010 !important;
  flex: 0 0 auto !important;
}

.brand-logo-wrap span {
  display: block !important;
  min-width: 0 !important;
  overflow: hidden !important;
  color: var(--seg-red-dark) !important;
  font-size: 16px !important;
  font-weight: 950 !important;
  line-height: 1.05 !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

.app-header .icon-btn,
.profile-btn {
  width: 42px !important;
  height: 42px !important;
  padding: 0 !important;
  display: inline-grid !important;
  place-items: center !important;
  border-radius: 14px !important;
  border: 1px solid rgba(220, 38, 38, 0.18) !important;
  background: #fffdf5 !important;
  color: var(--seg-red) !important;
  box-shadow: 0 10px 22px rgba(153, 27, 27, 0.1) !important;
}

.app-header .icon-btn:hover,
.profile-btn:hover {
  transform: translateY(-1px) !important;
  background: var(--seg-yellow-soft) !important;
}

.profile-btn .avatar,
.profile-btn .avatar > span {
  background: #ecfdf3 !important;
  color: var(--seg-green-dark) !important;
}

.profile-wrap .dropdown {
  right: 0 !important;
  top: calc(100% + 10px) !important;
  min-width: min(280px, calc(100vw - 28px)) !important;
  border: 1px solid rgba(250, 204, 21, 0.48) !important;
  background: #fffdf5 !important;
  box-shadow: 0 24px 54px rgba(127, 29, 29, 0.16) !important;
}

#scrim:not([hidden]) {
  position: fixed !important;
  inset: var(--header-h) 0 0 0 !important;
  z-index: 2600 !important;
  background: rgba(23, 23, 23, 0.44) !important;
  backdrop-filter: blur(3px) !important;
}

#appSidebar.app-sidebar {
  position: fixed !important;
  top: calc(var(--header-h) + 12px) !important;
  left: 12px !important;
  z-index: 2700 !important;
  width: min(86vw, var(--sidebar-w)) !important;
  max-width: calc(100vw - 24px) !important;
  height: calc(100dvh - var(--header-h) - 24px) !important;
  max-height: calc(100dvh - var(--header-h) - 24px) !important;
  overflow: hidden !important;
  transform: translateX(calc(-100% - 20px)) !important;
  border: 1px solid rgba(250, 204, 21, 0.5) !important;
  border-radius: 22px !important;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 247, 204, 0.96) 52%, rgba(236, 253, 243, 0.98)) !important;
  box-shadow: 0 28px 70px rgba(127, 29, 29, 0.24) !important;
  transition: transform 0.24s ease, box-shadow 0.24s ease !important;
}

#appSidebar.app-sidebar.is-open,
body.show-sidebar #appSidebar.app-sidebar,
body.sidebar-open #appSidebar.app-sidebar,
html.sidebar-open #appSidebar.app-sidebar,
body[data-sidebar="open"] #appSidebar.app-sidebar {
  transform: translateX(0) !important;
}

#appSidebar .sb-user {
  height: 100% !important;
  padding: 14px !important;
  overflow-y: auto !important;
  overscroll-behavior: contain !important;
}

.seg-sidebar-brand {
  padding: 6px 6px 14px !important;
  border-bottom: 1px dashed rgba(220, 38, 38, 0.2) !important;
}

.seg-sidebar-brand img {
  width: 44px !important;
  height: 44px !important;
  object-fit: contain !important;
  border-radius: 14px !important;
  background: #101010 !important;
}

.seg-sidebar-brand strong,
.seg-sidebar-user strong {
  color: var(--seg-ink) !important;
  font-weight: 950 !important;
}

.seg-sidebar-brand small,
.seg-sidebar-user small {
  color: var(--seg-muted) !important;
}

.seg-sidebar-user {
  margin: 14px 0 !important;
  padding: 11px !important;
  border: 1px solid rgba(22, 163, 74, 0.18) !important;
  border-radius: 16px !important;
  background: linear-gradient(135deg, #ecfdf3, #ffffff) !important;
}

#appSidebar .sb-nav {
  display: grid !important;
  gap: 8px !important;
  margin: 0 !important;
  padding: 0 0 10px !important;
}

#appSidebar .sb-link,
#appSidebar .sb-toggle {
  width: 100% !important;
  min-height: 48px !important;
  display: flex !important;
  align-items: center !important;
  gap: 11px !important;
  padding: 11px 12px !important;
  border-radius: 15px !important;
  border: 1px solid rgba(23, 23, 23, 0.08) !important;
  background: rgba(255, 255, 255, 0.92) !important;
  color: var(--seg-ink) !important;
  font-weight: 900 !important;
  text-align: left !important;
}

#appSidebar .sb-ico {
  width: 29px !important;
  height: 29px !important;
  display: grid !important;
  place-items: center !important;
  border-radius: 10px !important;
  background: var(--seg-yellow-soft) !important;
  color: var(--seg-red) !important;
  flex: 0 0 auto !important;
}

#appSidebar .sb-ico svg {
  width: 18px !important;
  height: 18px !important;
}

#appSidebar .sb-chev {
  width: 17px !important;
  height: 17px !important;
  margin-left: auto !important;
  transition: transform 0.18s ease !important;
}

#appSidebar .sb-group.is-open > .sb-toggle .sb-chev {
  transform: rotate(180deg) !important;
}

#appSidebar .sb-link:hover,
#appSidebar .sb-toggle:hover,
#appSidebar .sb-link.active,
#appSidebar .sb-group.is-open > .sb-toggle {
  background: linear-gradient(135deg, #fff7cc, #ffffff) !important;
  border-color: rgba(220, 38, 38, 0.22) !important;
  color: var(--seg-red-dark) !important;
}

#appSidebar .sb-link.active .sb-ico,
#appSidebar .sb-group.is-open > .sb-toggle .sb-ico {
  background: linear-gradient(135deg, var(--seg-red), var(--seg-yellow)) !important;
  color: #ffffff !important;
}

#appSidebar .sb-sub {
  display: none !important;
  margin: 7px 0 3px 16px !important;
  padding: 8px 8px 8px 14px !important;
  border-left: 2px solid rgba(250, 204, 21, 0.68) !important;
  border-radius: 0 14px 14px 0 !important;
  background: rgba(255, 255, 255, 0.45) !important;
}

#appSidebar .sb-group.is-open > .sb-sub {
  display: grid !important;
  gap: 5px !important;
}

#appSidebar .sb-sublink {
  min-height: 38px !important;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  padding: 9px 10px !important;
  border-radius: 11px !important;
  color: #3f3f46 !important;
  font-weight: 850 !important;
}

#appSidebar .sb-sublink:hover,
#appSidebar .sb-sublink.active {
  background: #dcfce7 !important;
  color: var(--seg-green-dark) !important;
}

.app-wrap {
  width: 100% !important;
  min-height: calc(100dvh - var(--header-h)) !important;
  display: block !important;
}

.app-content {
  width: min(100%, 1120px) !important;
  margin: 0 auto !important;
  padding: clamp(16px, 3vw, 34px) !important;
}

.app-content > h1:first-child,
.app-content h1:first-child {
  display: inline-flex !important;
  align-items: center !important;
  min-height: 42px !important;
  margin: 0 0 16px !important;
  padding: 6px 0 8px !important;
  color: var(--seg-red-dark) !important;
  font-size: clamp(22px, 3vw, 34px) !important;
  font-weight: 950 !important;
}

.card,
.panel,
.box,
.offer-card,
.mobile-card,
.level-card,
.fm-tile {
  border: 1px solid rgba(250, 204, 21, 0.38) !important;
  border-radius: 18px !important;
  background: rgba(255, 255, 255, 0.94) !important;
  box-shadow: var(--seg-shadow) !important;
}

.card:hover,
.offer-card:hover,
.level-card:hover {
  transform: none !important;
}

.card h2,
.card h3,
.panel h2,
.panel h3,
.offer-card h3 {
  color: var(--seg-ink) !important;
  font-weight: 950 !important;
}

.table,
table.table {
  width: 100% !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
  overflow: hidden !important;
  border-radius: 14px !important;
}

.table th,
.table td {
  border-bottom: 1px solid rgba(23, 23, 23, 0.08) !important;
  padding: 12px 14px !important;
}

.table th {
  background: #fff7cc !important;
  color: var(--seg-red-dark) !important;
  font-weight: 950 !important;
}

input,
select,
textarea {
  min-height: 44px !important;
  border: 1px solid rgba(23, 23, 23, 0.12) !important;
  border-radius: 13px !important;
  background: #fffdf5 !important;
  color: var(--seg-ink) !important;
}

input:focus,
select:focus,
textarea:focus {
  outline: 3px solid rgba(250, 204, 21, 0.32) !important;
  border-color: rgba(220, 38, 38, 0.38) !important;
}

.btn,
button.btn,
a.btn,
.btn-primary,
.seg-main-action {
  border-radius: 999px !important;
  border: 1px solid rgba(220, 38, 38, 0.2) !important;
  background: linear-gradient(135deg, var(--seg-red), #ef4444) !important;
  color: #ffffff !important;
  font-weight: 950 !important;
  box-shadow: 0 12px 24px rgba(220, 38, 38, 0.18) !important;
}

.btn:hover,
button.btn:hover,
a.btn:hover,
.btn-primary:hover,
.seg-main-action:hover {
  opacity: 1 !important;
  background: linear-gradient(135deg, var(--seg-green), #22c55e) !important;
  color: #ffffff !important;
}

.btn-ghost,
a.btn-ghost {
  background: #fffdf5 !important;
  color: var(--seg-red-dark) !important;
  box-shadow: none !important;
}

.badge,
.badge.success {
  border: 1px solid rgba(22, 163, 74, 0.24) !important;
  background: #dcfce7 !important;
  color: var(--seg-green-dark) !important;
}

.badge.warn,
.alert,
.notice {
  border-color: rgba(250, 204, 21, 0.5) !important;
  background: #fff7cc !important;
  color: #854d0e !important;
}

.offer-hero,
.seg-hero {
  border: 1px solid rgba(250, 204, 21, 0.45) !important;
  background:
    linear-gradient(135deg, rgba(220, 38, 38, 0.96), rgba(153, 27, 27, 0.92) 45%, rgba(22, 163, 74, 0.92)) !important;
  color: #ffffff !important;
  box-shadow: 0 22px 54px rgba(127, 29, 29, 0.2) !important;
}

.offer-hero h1,
.offer-hero p,
.seg-hero h1,
.seg-hero p,
.seg-eyebrow {
  color: #ffffff !important;
}

.seg-balance-card {
  background:
    linear-gradient(135deg, var(--seg-green), #15803d 52%, var(--seg-red-dark)) !important;
  border-color: rgba(250, 204, 21, 0.6) !important;
}

.seg-actions,
.seg-income-card,
.seg-side-card,
.seg-referral-card {
  background: rgba(255, 255, 255, 0.94) !important;
  border-color: rgba(250, 204, 21, 0.38) !important;
}

.seg-action {
  background: linear-gradient(135deg, #ffffff, #fff7cc) !important;
  border-color: rgba(250, 204, 21, 0.52) !important;
}

.seg-action-icon {
  background: linear-gradient(135deg, var(--seg-red), var(--seg-yellow)) !important;
  color: #ffffff !important;
}

.app-footer {
  width: min(100%, 1120px) !important;
  margin: 0 auto !important;
  padding: 14px 22px 24px !important;
  color: var(--seg-muted) !important;
  text-align: center !important;
}

@media (min-width: 1100px) {
  body.sidebar-open #scrim:not([hidden]),
  body.show-sidebar #scrim:not([hidden]) {
    display: block !important;
  }
}

@media (max-width: 720px) {
  :root {
    --header-h: 68px;
  }

  .app-header {
    grid-template-columns: 42px minmax(0, 1fr) 42px !important;
    padding: 10px !important;
  }

  .brand-logo-wrap {
    max-width: 58vw !important;
    gap: 7px !important;
    padding: 6px 10px 6px 6px !important;
  }

  .brand-logo-wrap img {
    width: 32px !important;
    height: 32px !important;
  }

  .brand-logo-wrap span {
    font-size: 12px !important;
  }

  .app-header .icon-btn,
  .profile-btn {
    width: 40px !important;
    height: 40px !important;
    border-radius: 13px !important;
  }

  #appSidebar.app-sidebar {
    top: calc(var(--header-h) + 8px) !important;
    left: 8px !important;
    width: min(88vw, 304px) !important;
    height: calc(100dvh - var(--header-h) - 16px) !important;
    max-height: calc(100dvh - var(--header-h) - 16px) !important;
    border-radius: 18px !important;
  }

  #appSidebar .sb-user {
    padding: 12px !important;
  }

  .app-content {
    padding: 16px 12px 26px !important;
  }

  .cards {
    grid-template-columns: 1fr !important;
  }

  .card,
  .panel,
  .box,
  .offer-card,
  .mobile-card {
    border-radius: 16px !important;
    padding: 14px !important;
  }

  .table th,
  .table td {
    padding: 10px 12px !important;
    font-size: 13px !important;
  }
}

/* === Smart Exchange Global final brand skin === */
:root {
  --bg: #eef6f3;
  --panel: #ffffff;
  --ink: #0c1f22;
  --muted: #617075;
  --text: #0c1f22;
  --accent: #00a878;
  --accent-dark: #007c63;
  --accent-soft: #e5fbf4;
  --border: #d8e7e2;
  --si-page: #eef6f3;
  --si-card: #ffffff;
  --si-line: #d8e7e2;
  --si-green: #00a878;
  --si-green-2: #007c63;
  --si-gold: #d7a742;
  --si-ink: #0c1f22;
}

body {
  background:
    radial-gradient(circle at top left, rgba(0, 168, 120, 0.16), transparent 280px),
    linear-gradient(180deg, #f4fbf8 0%, #eef6f3 42%, #f7faf9 100%) !important;
}

.app-header {
  background: rgba(255, 255, 255, 0.96) !important;
  border-bottom: 1px solid rgba(0, 124, 99, 0.16) !important;
  box-shadow: 0 8px 24px rgba(12, 31, 34, 0.08) !important;
}

.brand-logo-wrap {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 0;
  max-width: min(58vw, 420px);
  color: #007c63 !important;
  font-weight: 900 !important;
  letter-spacing: 0 !important;
  line-height: 1.05;
}

.brand-logo-wrap img {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  object-fit: contain;
  background: #06161c;
  box-shadow: 0 6px 16px rgba(0, 124, 99, 0.2);
  flex: 0 0 auto;
}

.brand-logo-wrap span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.icon-btn,
.profile-btn {
  border-color: rgba(0, 124, 99, 0.16) !important;
  background: #fffdf5 !important;
}

.profile-btn .avatar,
.sb-avatar-initial {
  background: linear-gradient(180deg, #e6fff7, #d6f8ef) !important;
  color: #007c63 !important;
}

#appSidebar.app-sidebar {
  background: linear-gradient(180deg, #ffffff 0%, #f6fbf9 100%) !important;
  border-right: 1px solid rgba(0, 124, 99, 0.16) !important;
}

#appSidebar .sb-link,
#appSidebar .sb-toggle {
  background: #fffdf5 !important;
  border: 1px solid rgba(0, 124, 99, 0.11) !important;
  color: #12262a !important;
}

#appSidebar .sb-link.active,
#appSidebar .sb-toggle[aria-expanded="true"],
#appSidebar .sb-group.is-open > .sb-toggle {
  background: linear-gradient(180deg, #e9fff7, #f5fffb) !important;
  color: #007c63 !important;
  border-color: rgba(0, 168, 120, 0.28) !important;
}

#appSidebar .sb-sub {
  background: linear-gradient(180deg, rgba(215, 167, 66, 0.08), rgba(0, 168, 120, 0.04)) !important;
  border-color: rgba(215, 167, 66, 0.18) !important;
}

#appSidebar .sb-sublink.active {
  background: #e6fff7 !important;
  color: #007c63 !important;
}

.card,
.card-prem,
.stat-card,
.panel,
.box,
.qa-panels,
.p2p-card,
.fm-card {
  border-color: rgba(0, 124, 99, 0.14) !important;
}

.btn-primary,
.btn.primary,
button[type="submit"]:not(.btn-ghost):not(.btn-link) {
  background: linear-gradient(180deg, #00b884, #007c63) !important;
  box-shadow: 0 8px 18px rgba(0, 124, 99, 0.2);
}

.btn-ghost {
  color: #007c63 !important;
  border-color: rgba(0, 124, 99, 0.18) !important;
}

@media (max-width: 520px) {
  .brand-logo-wrap {
    max-width: 52vw;
    gap: 6px;
    font-size: 13px !important;
  }

  .brand-logo-wrap img {
    width: 30px;
    height: 30px;
    border-radius: 9px;
  }
}

/* === Smart Exchange Global full user-panel redesign === */
.dashboard-wrap {
  display: grid !important;
  gap: 16px !important;
  max-width: 1180px !important;
  margin: 0 auto !important;
}

.top-grid,
.welcome-grid,
.dashboard-wrap > .grid {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  gap: 14px !important;
}

@media (min-width: 860px) {
  .top-grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(360px, 0.85fr) !important;
  }

  .welcome-grid {
    grid-template-columns: minmax(0, 1fr) minmax(300px, 0.72fr) !important;
  }
}

.dashboard-wrap .card,
.dashboard-wrap .card-prem,
.welcome-card,
.income-card,
.ref-card,
.rank-card {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(239, 250, 246, 0.94)) !important;
  border: 1px solid rgba(0, 124, 99, 0.18) !important;
  border-radius: 14px !important;
  box-shadow: 0 14px 32px rgba(12, 31, 34, 0.1) !important;
}

.dashboard-wrap .card::before,
.dashboard-wrap .card-prem::before,
.welcome-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(90deg, #00b884, #32d5c2, #d7a742);
}

.dashboard-wrap .card-prem:first-child {
  min-height: 138px;
  color: #fff !important;
  background:
    linear-gradient(135deg, rgba(0, 168, 120, 0.9), rgba(4, 45, 58, 0.96)),
    url("../smart-exchange-global-logo.png") right -38px center / 190px auto no-repeat !important;
  border-color: rgba(255, 255, 255, 0.16) !important;
  box-shadow: 0 18px 38px rgba(0, 84, 70, 0.26) !important;
}

.dashboard-wrap .card-prem:first-child .mute,
.dashboard-wrap .card-prem:first-child small {
  color: rgba(255, 255, 255, 0.78) !important;
}

.big-amount,
.welcome-amt,
.wallet-val,
.val,
.amount {
  font-variant-numeric: tabular-nums;
}

.big-amount {
  color: #fff !important;
  font-size: clamp(28px, 8vw, 44px) !important;
  line-height: 1.05 !important;
  font-weight: 900 !important;
  letter-spacing: 0 !important;
  margin: 6px 0 !important;
}

.btn-yellow,
.dashboard-wrap .btn-yellow {
  background: linear-gradient(180deg, #ffd66b, #d7a742) !important;
  color: #10201a !important;
  border: 0 !important;
  box-shadow: 0 10px 22px rgba(215, 167, 66, 0.28) !important;
}

.qa-tabs {
  padding: 12px !important;
  background: #fffdf5 !important;
  box-shadow: 0 14px 32px rgba(12, 31, 34, 0.1) !important;
}

.qa-tabs .qa-tablist {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 9px !important;
}

.qa-tabs .qa-tab {
  min-width: 0 !important;
  height: 76px !important;
  padding: 10px 6px !important;
  border-radius: 13px !important;
  border: 1px solid rgba(0, 124, 99, 0.16) !important;
  color: #10201a !important;
  background: linear-gradient(180deg, #f9fffd, #e9fbf5) !important;
  box-shadow: none !important;
}

.qa-tabs .qa-tab:nth-child(1),
.qa-tabs .qa-tab:nth-child(2),
.qa-tabs .qa-tab:nth-child(3),
.qa-tabs .qa-tab:nth-child(4) {
  background: linear-gradient(180deg, #f9fffd, #e9fbf5) !important;
}

.qa-tabs .qa-tab:hover,
.qa-tabs .qa-tab.is-active {
  transform: translateY(-1px) !important;
  border-color: rgba(0, 168, 120, 0.42) !important;
  background: linear-gradient(180deg, #e7fff7, #d8f8ef) !important;
}

.qa-tabs .qa-tab .ico {
  display: grid !important;
  place-items: center !important;
  width: 30px !important;
  height: 30px !important;
  margin: 0 auto !important;
  border-radius: 10px !important;
  background: #07333a !important;
  color: #37e3c0 !important;
}

.qa-tabs .qa-tab .lbl {
  max-width: 100% !important;
  color: #203238 !important;
  font-size: 10px !important;
  font-weight: 900 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
}

.welcome-card {
  color: #10201a !important;
  padding: 18px !important;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(229, 251, 244, 0.95)) !important;
}

.welcome-title,
.welcome-rank {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 10px !important;
  flex-wrap: wrap !important;
}

.wc-kicker,
.wc-rank-label,
.mute.strong {
  color: #617075 !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  letter-spacing: 0 !important;
  text-transform: uppercase !important;
}

.wc-name,
.wc-rank {
  color: #007c63 !important;
  font-weight: 900 !important;
}

.welcome-sub {
  margin-top: 18px !important;
  color: #617075 !important;
  font-weight: 800 !important;
}

.welcome-amt {
  margin: 4px 0 6px !important;
  color: #042d3a !important;
  font-size: clamp(32px, 10vw, 52px) !important;
  font-weight: 950 !important;
  letter-spacing: 0 !important;
}

.wc-facts2,
.wc-row {
  background: rgba(255, 255, 255, 0.82) !important;
  border-color: rgba(0, 124, 99, 0.14) !important;
}

.cards.wallets {
  gap: 12px !important;
}

.cards.wallets .card.card-prem {
  min-height: 92px !important;
  background: #fffdf5 !important;
  border-radius: 14px !important;
}

.cards.wallets .wallet-title {
  background: #f6fbf9 !important;
  color: #617075 !important;
  border-bottom: 1px solid rgba(0, 124, 99, 0.12) !important;
  font-weight: 800 !important;
}

.cards.wallets .wallet-val {
  background: linear-gradient(180deg, #eafff7, #d8f8ef) !important;
  color: #007c63 !important;
  font-weight: 950 !important;
}

.table,
table {
  background: #fffdf5 !important;
  border-radius: 12px !important;
}

.table thead th,
table thead th {
  background: #ecfbf6 !important;
  color: #0b6f4e !important;
}

.table tbody tr:hover td,
table tbody tr:hover td {
  background: #f6fffb !important;
}

.alert,
.notice,
.empty {
  border-radius: 12px !important;
}

@media (max-width: 640px) {
  .dashboard-wrap {
    gap: 12px !important;
  }

  .dashboard-wrap .card,
  .dashboard-wrap .card-prem,
  .welcome-card {
    border-radius: 13px !important;
  }

  .dashboard-wrap .card-prem:first-child {
    min-height: 128px;
    background:
      linear-gradient(135deg, rgba(0, 168, 120, 0.92), rgba(4, 45, 58, 0.98)),
      url("../smart-exchange-global-logo.png") right -46px center / 160px auto no-repeat !important;
  }

  .qa-tabs .qa-tablist {
    gap: 7px !important;
  }

  .qa-tabs .qa-tab {
    height: 70px !important;
    border-radius: 12px !important;
  }

  .qa-tabs .qa-tab .ico {
    width: 28px !important;
    height: 28px !important;
  }

  .welcome-card {
    padding: 14px !important;
  }
}

/* === Dashboard page rebuild: Smart Exchange Global === */
.seg-shell {
  background:
    linear-gradient(180deg, rgba(4, 45, 58, 0.05), transparent 280px),
    #f4f8f7 !important;
}

.seg-content {
  width: min(100%, 1120px) !important;
  padding: 18px 14px 96px !important;
}

.seg-dashboard {
  display: grid;
  gap: 14px;
}

.seg-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 18px;
  border: 1px solid rgba(0, 124, 99, 0.16);
  border-radius: 16px;
  background:
    linear-gradient(135deg, #ffffff 0%, #eafbf5 100%);
  box-shadow: 0 14px 36px rgba(12, 31, 34, 0.08);
}

.seg-eyebrow,
.seg-label {
  display: block;
  color: #007c63;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.seg-hero h1 {
  margin: 5px 0 6px;
  color: #071c22;
  font-size: clamp(22px, 5vw, 36px);
  font-weight: 950;
  letter-spacing: 0;
}

.seg-hero p {
  max-width: 620px;
  margin: 0;
  color: #607078;
  font-size: 14px;
}

.seg-hero-logo {
  width: clamp(74px, 18vw, 128px);
  aspect-ratio: 1;
  object-fit: contain;
  border-radius: 22px;
  background: #06161c;
  box-shadow: 0 18px 34px rgba(0, 124, 99, 0.22);
}

.seg-overview {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
  gap: 14px;
}

.seg-balance-card {
  position: relative;
  overflow: hidden;
  min-height: 178px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  padding: 22px;
  border-radius: 18px;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(0, 168, 120, 0.95), rgba(4, 45, 58, 0.98)),
    url("../smart-exchange-global-logo.png") right -42px center / 230px auto no-repeat;
  box-shadow: 0 22px 44px rgba(4, 45, 58, 0.26);
}

.seg-balance-card .seg-label {
  color: rgba(255, 255, 255, 0.8);
}

.seg-balance-card strong {
  display: block;
  margin: 7px 0;
  color: #fff;
  font-size: clamp(34px, 7vw, 56px);
  line-height: 0.95;
  font-weight: 950;
  letter-spacing: 0;
}

.seg-balance-card small {
  display: block;
  color: rgba(255, 255, 255, 0.75);
  font-weight: 700;
}

.seg-main-action,
.seg-secondary-action,
.seg-rejoin a,
.seg-referral-actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(180deg, #ffd86f, #d7a742);
  color: #10201a;
  font-weight: 900;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 12px 24px rgba(215, 167, 66, 0.24);
}

.seg-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(0, 124, 99, 0.16);
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 14px 36px rgba(12, 31, 34, 0.08);
}

.seg-action {
  display: grid;
  min-height: 92px;
  place-items: center;
  gap: 8px;
  padding: 12px 8px;
  border: 1px solid rgba(0, 168, 120, 0.18);
  border-radius: 14px;
  background: linear-gradient(180deg, #f8fffc, #e8fbf4);
  color: #10201a;
  font-weight: 900;
  text-align: center;
  text-decoration: none;
}

.seg-action:hover {
  color: #007c63;
  border-color: rgba(0, 168, 120, 0.42);
  transform: translateY(-1px);
}

.seg-action-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 13px;
  background: #07333a;
  color: #39e4c0;
}

.seg-action svg {
  width: 21px;
  height: 21px;
}

.seg-main-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 14px;
}

.seg-income-card,
.seg-side-card,
.seg-referral-card {
  padding: 18px;
  border: 1px solid rgba(0, 124, 99, 0.16);
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 14px 36px rgba(12, 31, 34, 0.08);
}

.seg-card-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.seg-card-head h2 {
  margin: 6px 0 0;
  color: #071c22;
  font-size: clamp(34px, 7vw, 54px);
  font-weight: 950;
  letter-spacing: 0;
}

.seg-income-card p {
  margin: 8px 0 16px;
  color: #617075;
  font-weight: 700;
}

.seg-status {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.seg-status.is-active {
  color: #006b4f;
  background: #d9fff1;
  border: 1px solid #9ef1d4;
}

.seg-status.is-inactive {
  color: #9a3412;
  background: #fff2dc;
  border: 1px solid #ffd092;
}

.seg-profile-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.seg-profile-strip div,
.seg-fact {
  padding: 12px;
  border: 1px solid rgba(0, 124, 99, 0.12);
  border-radius: 14px;
  background: #f8fffc;
}

.seg-profile-strip span,
.seg-fact span {
  display: block;
  color: #617075;
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.seg-profile-strip strong,
.seg-fact strong {
  display: block;
  margin-top: 4px;
  color: #10201a;
  font-size: 15px;
  font-weight: 950;
  word-break: break-word;
}

.seg-facts {
  display: grid;
  gap: 10px;
}

.seg-fact small {
  display: block;
  margin-top: 4px;
  color: #617075;
}

.seg-progress {
  height: 10px;
  margin-top: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #e6eeeb;
}

.seg-progress i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #00b884, #d7a742);
}

.seg-rejoin {
  display: grid;
  gap: 8px;
  padding-top: 12px;
}

.seg-rejoin small {
  color: #617075;
  text-align: center;
}

.seg-secondary-action {
  width: 100%;
  margin-top: 14px;
  background: linear-gradient(180deg, #00b884, #007c63);
  color: #ffffff;
  box-shadow: 0 12px 24px rgba(0, 124, 99, 0.18);
}

.seg-side-card {
  display: grid;
  align-content: start;
  gap: 10px;
  background: linear-gradient(180deg, #ffffff, #f4fbf8);
}

.seg-side-card a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid rgba(0, 124, 99, 0.14);
  border-radius: 12px;
  background: #fff;
  color: #10201a;
  font-weight: 900;
  text-decoration: none;
}

.seg-wallet-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.seg-wallet-grid article {
  position: relative;
  overflow: hidden;
  min-height: 104px;
  padding: 14px;
  border: 1px solid rgba(0, 124, 99, 0.14);
  border-radius: 16px;
  background: linear-gradient(145deg, #ffffff, #edfbf6);
  box-shadow: 0 12px 28px rgba(12, 31, 34, 0.07);
}

.seg-wallet-grid article::after {
  content: "";
  position: absolute;
  right: -24px;
  top: -24px;
  width: 74px;
  height: 74px;
  border-radius: 50%;
  background: rgba(0, 168, 120, 0.1);
}

.seg-wallet-grid span {
  display: block;
  color: #617075;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.seg-wallet-grid strong {
  display: block;
  margin-top: 10px;
  color: #007c63;
  font-size: clamp(19px, 4vw, 26px);
  font-weight: 950;
  letter-spacing: 0;
}

.seg-referral-card {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 14px;
  align-items: center;
}

.seg-referral-card strong {
  display: block;
  margin-top: 4px;
  color: #10201a;
  font-size: 18px;
  font-weight: 950;
}

.seg-referral-actions {
  display: flex;
  gap: 10px;
  min-width: 0;
}

.seg-referral-actions input {
  min-width: 0;
  flex: 1;
  height: 44px;
  padding: 0 12px;
  border: 1px solid rgba(0, 124, 99, 0.16);
  border-radius: 12px;
  background: #f8fffc;
  color: #10201a;
  font-weight: 700;
}

.seg-referral-actions button {
  cursor: pointer;
  background: linear-gradient(180deg, #00b884, #007c63);
  color: #ffffff;
}

@media (max-width: 900px) {
  .seg-overview,
  .seg-main-grid,
  .seg-referral-card {
    grid-template-columns: 1fr;
  }

  .seg-wallet-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .seg-content {
    padding: 12px 10px 90px !important;
  }

  .seg-hero {
    grid-template-columns: 1fr;
    padding: 14px;
  }

  .seg-hero-logo {
    width: 76px;
    border-radius: 18px;
  }

  .seg-balance-card {
    min-height: 160px;
    align-items: stretch;
    flex-direction: column;
    padding: 18px;
    background:
      linear-gradient(135deg, rgba(0, 168, 120, 0.95), rgba(4, 45, 58, 0.98)),
      url("../smart-exchange-global-logo.png") right -54px top 8px / 175px auto no-repeat;
  }

  .seg-main-action {
    width: 100%;
  }

  .seg-actions {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 7px;
    padding: 10px;
  }

  .seg-action {
    min-height: 76px;
    padding: 8px 4px;
    font-size: 11px;
  }

  .seg-action-icon {
    width: 31px;
    height: 31px;
    border-radius: 10px;
  }

  .seg-action svg {
    width: 18px;
    height: 18px;
  }

  .seg-income-card,
  .seg-side-card,
  .seg-referral-card {
    padding: 14px;
  }

  .seg-profile-strip {
    grid-template-columns: 1fr;
  }

  .seg-wallet-grid {
    gap: 9px;
  }

  .seg-wallet-grid article {
    min-height: 92px;
    padding: 12px;
    border-radius: 14px;
  }

  .seg-wallet-grid span {
    font-size: 10px;
  }

  .seg-wallet-grid strong {
    font-size: 17px;
  }

  .seg-referral-actions {
    flex-direction: column;
  }

  .seg-referral-actions button {
    width: 100%;
  }
}

@media (max-width: 360px) {
  .seg-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* === Dashboard color refresh: red, yellow, green, white === */
.seg-shell {
  background:
    linear-gradient(180deg, #fff7df 0%, #fff 42%, #f2fff8 100%) !important;
}

.seg-hero {
  background: linear-gradient(135deg, #fff 0%, #fff7df 54%, #effff6 100%) !important;
  border-color: rgba(220, 38, 38, 0.16) !important;
  box-shadow: 0 16px 34px rgba(140, 40, 20, 0.08) !important;
}

.seg-eyebrow,
.seg-label {
  color: #dc2626 !important;
}

.seg-hero h1,
.seg-referral-card strong,
.seg-profile-strip strong,
.seg-fact strong {
  color: #17211b !important;
}

.seg-hero-logo,
.brand-logo-wrap img {
  background: linear-gradient(135deg, #111827, #3b1111) !important;
  box-shadow: 0 12px 24px rgba(220, 38, 38, 0.18) !important;
}

.seg-balance-card {
  background:
    linear-gradient(135deg, rgba(220, 38, 38, 0.96) 0%, rgba(245, 158, 11, 0.96) 54%, rgba(22, 163, 74, 0.96) 100%),
    url("../smart-exchange-global-logo.png") right -42px center / 230px auto no-repeat !important;
  box-shadow: 0 22px 44px rgba(220, 38, 38, 0.2) !important;
}

.seg-main-action,
.seg-referral-actions button {
  background: #fffdf5 !important;
  color: #dc2626 !important;
  border: 1px solid rgba(255, 255, 255, 0.7) !important;
  box-shadow: 0 12px 24px rgba(120, 35, 15, 0.18) !important;
}

.seg-actions,
.seg-income-card,
.seg-side-card,
.seg-referral-card {
  background: #fffdf5 !important;
  border-color: rgba(245, 158, 11, 0.28) !important;
  box-shadow: 0 14px 32px rgba(140, 40, 20, 0.08) !important;
}

.seg-action:nth-child(1) {
  background: linear-gradient(180deg, #fff7d6, #ffed9a) !important;
  border-color: rgba(245, 158, 11, 0.34) !important;
}

.seg-action:nth-child(2) {
  background: linear-gradient(180deg, #fff1f1, #ffd6d6) !important;
  border-color: rgba(220, 38, 38, 0.25) !important;
}

.seg-action:nth-child(3) {
  background: linear-gradient(180deg, #effff6, #cff7dc) !important;
  border-color: rgba(22, 163, 74, 0.28) !important;
}

.seg-action:nth-child(4) {
  background: linear-gradient(180deg, #ffffff, #fff7df) !important;
  border-color: rgba(245, 158, 11, 0.28) !important;
}

.seg-action-icon {
  background: #fffdf5 !important;
  color: #17211b !important;
  border: 1px solid rgba(23, 33, 27, 0.08);
  box-shadow: 0 8px 18px rgba(23, 33, 27, 0.08);
}

.seg-action:nth-child(1) .seg-action-icon {
  color: #ca8a04 !important;
}

.seg-action:nth-child(2) .seg-action-icon {
  color: #dc2626 !important;
}

.seg-action:nth-child(3) .seg-action-icon {
  color: #16a34a !important;
}

.seg-action:nth-child(4) .seg-action-icon {
  color: #dc2626 !important;
}

.seg-card-head h2,
.seg-wallet-grid strong,
.wc-name,
.wc-rank {
  color: #dc2626 !important;
}

.seg-status.is-active {
  color: #166534 !important;
  background: #dcfce7 !important;
  border-color: #86efac !important;
}

.seg-profile-strip div,
.seg-fact,
.seg-wallet-grid article {
  background: linear-gradient(145deg, #ffffff, #fffaf0) !important;
  border-color: rgba(245, 158, 11, 0.22) !important;
}

.seg-progress i {
  background: linear-gradient(90deg, #dc2626, #f59e0b, #16a34a) !important;
}

.seg-secondary-action,
.seg-rejoin a {
  background: linear-gradient(180deg, #16a34a, #15803d) !important;
  color: #ffffff !important;
}

.seg-side-card a {
  border-color: rgba(245, 158, 11, 0.24) !important;
  background: linear-gradient(180deg, #ffffff, #fff8e8) !important;
}

.seg-side-card a:hover {
  color: #dc2626 !important;
  border-color: rgba(220, 38, 38, 0.24) !important;
}

.seg-referral-actions input {
  background: #fffaf0 !important;
  border-color: rgba(245, 158, 11, 0.28) !important;
}

@media (max-width: 560px) {
  .seg-balance-card {
    background:
      linear-gradient(135deg, rgba(220, 38, 38, 0.96) 0%, rgba(245, 158, 11, 0.96) 54%, rgba(22, 163, 74, 0.96) 100%),
      url("../smart-exchange-global-logo.png") right -54px top 8px / 175px auto no-repeat !important;
  }
}

/* === Header + sidebar final fix === */
:root {
  --header-h: 72px;
}

.app-header {
  min-height: var(--header-h) !important;
  padding: 10px 14px !important;
  display: grid !important;
  grid-template-columns: 44px minmax(0, 1fr) 44px !important;
  align-items: center !important;
  gap: 10px !important;
  background:
    linear-gradient(90deg, #ffffff 0%, #fff7df 48%, #effff6 100%) !important;
  border-bottom: 1px solid rgba(245, 158, 11, 0.24) !important;
  box-shadow: 0 10px 28px rgba(120, 35, 15, 0.08) !important;
}

.header-left,
.header-right {
  display: flex !important;
  align-items: center !important;
  min-width: 0 !important;
}

.header-right {
  justify-content: flex-end !important;
}

.app-header .icon-btn,
.profile-btn {
  width: 40px !important;
  height: 40px !important;
  border-radius: 12px !important;
  border: 1px solid rgba(220, 38, 38, 0.14) !important;
  background: #fffdf5 !important;
  color: #dc2626 !important;
  box-shadow: 0 8px 18px rgba(120, 35, 15, 0.08) !important;
}

.brand-logo-wrap {
  justify-self: center !important;
  max-width: 100% !important;
  padding: 7px 12px 7px 8px !important;
  border-radius: 999px !important;
  background: #fffdf5 !important;
  border: 1px solid rgba(245, 158, 11, 0.26) !important;
  box-shadow: 0 8px 20px rgba(120, 35, 15, 0.07) !important;
}

.brand-logo-wrap img {
  width: 34px !important;
  height: 34px !important;
  border-radius: 12px !important;
  background: #111827 !important;
}

.brand-logo-wrap span {
  max-width: 44vw !important;
  color: #17211b !important;
  font-size: 15px !important;
  font-weight: 950 !important;
}

.profile-wrap .dropdown {
  right: 0 !important;
  border: 1px solid rgba(245, 158, 11, 0.24) !important;
  background: #fffdf5 !important;
  box-shadow: 0 18px 36px rgba(120, 35, 15, 0.14) !important;
}

#scrim:not([hidden]) {
  top: var(--header-h) !important;
  z-index: 2200 !important;
  background: rgba(23, 33, 27, 0.42) !important;
  backdrop-filter: blur(2px) !important;
}

#appSidebar.app-sidebar {
  top: calc(var(--header-h) + 8px) !important;
  left: 10px !important;
  height: calc(100dvh - var(--header-h) - 16px) !important;
  max-height: calc(100dvh - var(--header-h) - 16px) !important;
  width: min(82vw, 310px) !important;
  max-width: calc(100vw - 28px) !important;
  border: 1px solid rgba(245, 158, 11, 0.24) !important;
  border-radius: 18px !important;
  background:
    linear-gradient(180deg, #ffffff 0%, #fffaf0 52%, #f3fff8 100%) !important;
  box-shadow: 0 24px 48px rgba(23, 33, 27, 0.22) !important;
}

#appSidebar .sb-user {
  padding: 12px !important;
}

.seg-sidebar-brand,
.seg-sidebar-user {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.seg-sidebar-brand {
  padding: 4px 4px 12px;
  border-bottom: 1px dashed rgba(245, 158, 11, 0.32);
}

.seg-sidebar-brand img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  border-radius: 13px;
  background: #111827;
  box-shadow: 0 10px 20px rgba(220, 38, 38, 0.14);
  flex: 0 0 auto;
}

.seg-sidebar-brand strong,
.seg-sidebar-user strong {
  display: block;
  overflow: hidden;
  color: #17211b;
  font-size: 14px;
  font-weight: 950;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.seg-sidebar-brand small,
.seg-sidebar-user small {
  display: block;
  margin-top: 3px;
  color: #6d756d;
  font-size: 11px;
  font-weight: 800;
}

.seg-sidebar-user {
  margin: 12px 0;
  padding: 10px;
  border: 1px solid rgba(22, 163, 74, 0.16);
  border-radius: 14px;
  background: linear-gradient(135deg, #effff6, #ffffff);
}

.seg-sidebar-avatar {
  width: 38px;
  height: 38px;
  overflow: hidden;
  border-radius: 50%;
  border: 2px solid #ffffff;
  box-shadow: 0 8px 16px rgba(22, 163, 74, 0.14);
  flex: 0 0 auto;
}

#appSidebar .sb-nav {
  display: grid !important;
  gap: 7px !important;
}

#appSidebar .sb-nav li {
  list-style: none !important;
}

#appSidebar .sb-link,
#appSidebar .sb-toggle {
  min-height: 46px !important;
  padding: 10px 12px !important;
  border-radius: 13px !important;
  border: 1px solid rgba(245, 158, 11, 0.18) !important;
  background: rgba(255, 255, 255, 0.9) !important;
  color: #17211b !important;
  box-shadow: none !important;
}

#appSidebar .sb-ico {
  display: grid !important;
  place-items: center !important;
  width: 26px !important;
  height: 26px !important;
  border-radius: 9px !important;
  background: #fff7df !important;
  color: #dc2626 !important;
  flex: 0 0 auto !important;
}

#appSidebar .sb-link:hover,
#appSidebar .sb-toggle:hover,
#appSidebar .sb-link.active,
#appSidebar .sb-group.is-open > .sb-toggle {
  background: linear-gradient(135deg, #fff7df, #effff6) !important;
  color: #dc2626 !important;
  border-color: rgba(220, 38, 38, 0.2) !important;
}

#appSidebar .sb-link.active .sb-ico,
#appSidebar .sb-group.is-open > .sb-toggle .sb-ico {
  background: linear-gradient(135deg, #dc2626, #f59e0b) !important;
  color: #ffffff !important;
}

#appSidebar .sb-sub {
  margin: 6px 0 2px 13px !important;
  padding: 8px 8px 8px 14px !important;
  border-left: 2px solid rgba(245, 158, 11, 0.42) !important;
  border-radius: 0 12px 12px 0 !important;
  background: rgba(255, 250, 240, 0.72) !important;
}

#appSidebar .sb-sublink {
  min-height: 38px !important;
  padding: 9px 10px !important;
  border-radius: 10px !important;
  color: #303b34 !important;
  font-weight: 800 !important;
}

#appSidebar .sb-sublink:hover,
#appSidebar .sb-sublink.active {
  background: #dcfce7 !important;
  color: #15803d !important;
}

@media (max-width: 520px) {
  :root {
    --header-h: 66px;
  }

  .app-header {
    padding-left: 10px !important;
    padding-right: 10px !important;
    grid-template-columns: 40px minmax(0, 1fr) 40px !important;
  }

  .brand-logo-wrap {
    padding: 6px 9px 6px 6px !important;
  }

  .brand-logo-wrap img {
    width: 30px !important;
    height: 30px !important;
  }

  .brand-logo-wrap span {
    max-width: 48vw !important;
    font-size: 12px !important;
  }

  .app-header .icon-btn,
  .profile-btn {
    width: 38px !important;
    height: 38px !important;
  }

  #appSidebar.app-sidebar {
    left: 8px !important;
    width: min(82vw, 292px) !important;
  }
}

/* === FINAL OVERRIDE: Smart Exchange Global all user pages === */
:root {
  --header-h: 74px;
  --sidebar-w: 310px;
  --seg-red: #dc2626;
  --seg-red-dark: #991b1b;
  --seg-yellow: #facc15;
  --seg-yellow-soft: #fff7cc;
  --seg-green: #16a34a;
  --seg-green-dark: #166534;
  --seg-ink: #171717;
  --seg-muted: #667085;
}

html,
body {
  min-height: 100%;
  color: var(--seg-ink) !important;
  background:
    linear-gradient(120deg, rgba(250, 204, 21, 0.18), rgba(22, 163, 74, 0.1) 44%, rgba(220, 38, 38, 0.08)),
    #fffaf0 !important;
}

.app-header {
  position: sticky !important;
  top: 0 !important;
  z-index: 3000 !important;
  min-height: var(--header-h) !important;
  padding: 12px clamp(12px, 2.4vw, 24px) !important;
  display: grid !important;
  grid-template-columns: 46px minmax(0, 1fr) 46px !important;
  align-items: center !important;
  gap: 12px !important;
  background: rgba(255, 255, 255, 0.94) !important;
  border-bottom: 1px solid rgba(220, 38, 38, 0.14) !important;
  box-shadow: 0 12px 30px rgba(153, 27, 27, 0.08) !important;
  backdrop-filter: blur(14px) saturate(1.2) !important;
}

.header-left,
.header-right {
  display: flex !important;
  align-items: center !important;
  min-width: 0 !important;
}

.header-right {
  justify-content: flex-end !important;
}

.brand-logo-wrap {
  justify-self: center !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 10px !important;
  min-width: 0 !important;
  max-width: min(580px, 64vw) !important;
  padding: 7px 15px 7px 8px !important;
  border-radius: 999px !important;
  background: linear-gradient(135deg, #ffffff, #fff7cc) !important;
  border: 1px solid rgba(250, 204, 21, 0.55) !important;
  box-shadow: 0 10px 24px rgba(202, 138, 4, 0.12) !important;
}

.brand-logo-wrap img {
  width: 38px !important;
  height: 38px !important;
  object-fit: contain !important;
  border-radius: 13px !important;
  background: #101010 !important;
  flex: 0 0 auto !important;
}

.brand-logo-wrap span {
  display: block !important;
  overflow: hidden !important;
  color: var(--seg-red-dark) !important;
  font-size: 16px !important;
  font-weight: 950 !important;
  line-height: 1.05 !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

.app-header .icon-btn,
.profile-btn {
  width: 42px !important;
  height: 42px !important;
  padding: 0 !important;
  display: inline-grid !important;
  place-items: center !important;
  border-radius: 14px !important;
  border: 1px solid rgba(220, 38, 38, 0.18) !important;
  background: #fffdf5 !important;
  color: var(--seg-red) !important;
  box-shadow: 0 10px 22px rgba(153, 27, 27, 0.1) !important;
}

#scrim:not([hidden]) {
  position: fixed !important;
  inset: var(--header-h) 0 0 0 !important;
  z-index: 2600 !important;
  background: rgba(23, 23, 23, 0.44) !important;
  backdrop-filter: blur(3px) !important;
}

#appSidebar.app-sidebar {
  position: fixed !important;
  top: calc(var(--header-h) + 12px) !important;
  left: 12px !important;
  z-index: 2700 !important;
  width: min(86vw, var(--sidebar-w)) !important;
  max-width: calc(100vw - 24px) !important;
  height: calc(100dvh - var(--header-h) - 24px) !important;
  max-height: calc(100dvh - var(--header-h) - 24px) !important;
  overflow: hidden !important;
  transform: translateX(calc(-100% - 20px)) !important;
  border: 1px solid rgba(250, 204, 21, 0.5) !important;
  border-radius: 22px !important;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 247, 204, 0.96) 52%, rgba(236, 253, 243, 0.98)) !important;
  box-shadow: 0 28px 70px rgba(127, 29, 29, 0.24) !important;
  transition: transform 0.24s ease, box-shadow 0.24s ease !important;
}

#appSidebar.app-sidebar.is-open,
body.show-sidebar #appSidebar.app-sidebar,
body.sidebar-open #appSidebar.app-sidebar,
html.sidebar-open #appSidebar.app-sidebar,
body[data-sidebar="open"] #appSidebar.app-sidebar {
  transform: translateX(0) !important;
}

#appSidebar .sb-user {
  height: 100% !important;
  padding: 14px !important;
  overflow-y: auto !important;
  overscroll-behavior: contain !important;
}

.seg-sidebar-brand {
  padding: 6px 6px 14px !important;
  border-bottom: 1px dashed rgba(220, 38, 38, 0.2) !important;
}

.seg-sidebar-brand img {
  width: 44px !important;
  height: 44px !important;
  object-fit: contain !important;
  border-radius: 14px !important;
  background: #101010 !important;
}

.seg-sidebar-user {
  margin: 14px 0 !important;
  padding: 11px !important;
  border: 1px solid rgba(22, 163, 74, 0.18) !important;
  border-radius: 16px !important;
  background: linear-gradient(135deg, #ecfdf3, #ffffff) !important;
}

#appSidebar .sb-nav {
  display: grid !important;
  gap: 8px !important;
  margin: 0 !important;
  padding: 0 0 10px !important;
}

#appSidebar .sb-link,
#appSidebar .sb-toggle {
  width: 100% !important;
  min-height: 48px !important;
  display: flex !important;
  align-items: center !important;
  gap: 11px !important;
  padding: 11px 12px !important;
  border-radius: 15px !important;
  border: 1px solid rgba(23, 23, 23, 0.08) !important;
  background: rgba(255, 255, 255, 0.92) !important;
  color: var(--seg-ink) !important;
  font-weight: 900 !important;
  text-align: left !important;
}

#appSidebar .sb-ico {
  width: 29px !important;
  height: 29px !important;
  display: grid !important;
  place-items: center !important;
  border-radius: 10px !important;
  background: var(--seg-yellow-soft) !important;
  color: var(--seg-red) !important;
  flex: 0 0 auto !important;
}

#appSidebar .sb-chev {
  width: 17px !important;
  height: 17px !important;
  margin-left: auto !important;
  transition: transform 0.18s ease !important;
}

#appSidebar .sb-group.is-open > .sb-toggle .sb-chev {
  transform: rotate(180deg) !important;
}

#appSidebar .sb-link:hover,
#appSidebar .sb-toggle:hover,
#appSidebar .sb-link.active,
#appSidebar .sb-group.is-open > .sb-toggle {
  background: linear-gradient(135deg, #fff7cc, #ffffff) !important;
  border-color: rgba(220, 38, 38, 0.22) !important;
  color: var(--seg-red-dark) !important;
}

#appSidebar .sb-link.active .sb-ico,
#appSidebar .sb-group.is-open > .sb-toggle .sb-ico {
  background: linear-gradient(135deg, var(--seg-red), var(--seg-yellow)) !important;
  color: #ffffff !important;
}

#appSidebar .sb-sub {
  display: none !important;
  margin: 7px 0 3px 16px !important;
  padding: 8px 8px 8px 14px !important;
  border-left: 2px solid rgba(250, 204, 21, 0.68) !important;
  border-radius: 0 14px 14px 0 !important;
  background: rgba(255, 255, 255, 0.45) !important;
}

#appSidebar .sb-group.is-open > .sb-sub {
  display: grid !important;
  gap: 5px !important;
}

#appSidebar .sb-sublink {
  min-height: 38px !important;
  display: flex !important;
  align-items: center !important;
  padding: 9px 10px !important;
  border-radius: 11px !important;
  color: #3f3f46 !important;
  font-weight: 850 !important;
}

#appSidebar .sb-sublink:hover,
#appSidebar .sb-sublink.active {
  background: #dcfce7 !important;
  color: var(--seg-green-dark) !important;
}

.app-wrap {
  width: 100% !important;
  min-height: calc(100dvh - var(--header-h)) !important;
  display: block !important;
}

.app-content {
  width: min(100%, 1120px) !important;
  margin: 0 auto !important;
  padding: clamp(16px, 3vw, 34px) !important;
}

.app-content > h1:first-child,
.app-content h1:first-child {
  margin: 0 0 16px !important;
  color: var(--seg-red-dark) !important;
  font-size: clamp(22px, 3vw, 34px) !important;
  font-weight: 950 !important;
}

.card,
.panel,
.box,
.offer-card,
.mobile-card,
.level-card,
.fm-tile {
  border: 1px solid rgba(250, 204, 21, 0.38) !important;
  border-radius: 18px !important;
  background: rgba(255, 255, 255, 0.94) !important;
  box-shadow: 0 18px 42px rgba(127, 29, 29, 0.1) !important;
}

.card:hover,
.offer-card:hover,
.level-card:hover {
  transform: none !important;
}

.table th,
.table td {
  border-bottom: 1px solid rgba(23, 23, 23, 0.08) !important;
  padding: 12px 14px !important;
}

.table th {
  background: #fff7cc !important;
  color: var(--seg-red-dark) !important;
}

input,
select,
textarea {
  min-height: 44px !important;
  border: 1px solid rgba(23, 23, 23, 0.12) !important;
  border-radius: 13px !important;
  background: #fffdf5 !important;
  color: var(--seg-ink) !important;
}

.btn,
button.btn,
a.btn,
.btn-primary,
.seg-main-action {
  border-radius: 999px !important;
  border: 1px solid rgba(220, 38, 38, 0.2) !important;
  background: linear-gradient(135deg, var(--seg-red), #ef4444) !important;
  color: #ffffff !important;
  font-weight: 950 !important;
  box-shadow: 0 12px 24px rgba(220, 38, 38, 0.18) !important;
}

.btn:hover,
button.btn:hover,
a.btn:hover,
.btn-primary:hover,
.seg-main-action:hover {
  background: linear-gradient(135deg, var(--seg-green), #22c55e) !important;
  color: #ffffff !important;
}

.offer-hero,
.seg-hero {
  border: 1px solid rgba(250, 204, 21, 0.45) !important;
  background: linear-gradient(135deg, rgba(220, 38, 38, 0.96), rgba(153, 27, 27, 0.92) 45%, rgba(22, 163, 74, 0.92)) !important;
  color: #ffffff !important;
}

.offer-hero h1,
.offer-hero p,
.seg-hero h1,
.seg-hero p,
.seg-eyebrow {
  color: #ffffff !important;
}

.seg-balance-card {
  background: linear-gradient(135deg, var(--seg-green), #15803d 52%, var(--seg-red-dark)) !important;
  border-color: rgba(250, 204, 21, 0.6) !important;
}

.seg-actions,
.seg-income-card,
.seg-side-card,
.seg-referral-card {
  background: rgba(255, 255, 255, 0.94) !important;
  border-color: rgba(250, 204, 21, 0.38) !important;
}

.seg-action {
  background: linear-gradient(135deg, #ffffff, #fff7cc) !important;
  border-color: rgba(250, 204, 21, 0.52) !important;
}

.seg-action-icon {
  background: linear-gradient(135deg, var(--seg-red), var(--seg-yellow)) !important;
  color: #ffffff !important;
}

@media (max-width: 720px) {
  :root {
    --header-h: 68px;
  }

  .app-header {
    grid-template-columns: 42px minmax(0, 1fr) 42px !important;
    padding: 10px !important;
  }

  .brand-logo-wrap {
    max-width: 58vw !important;
    gap: 7px !important;
    padding: 6px 10px 6px 6px !important;
  }

  .brand-logo-wrap img {
    width: 32px !important;
    height: 32px !important;
  }

  .brand-logo-wrap span {
    font-size: 12px !important;
  }

  .app-header .icon-btn,
  .profile-btn {
    width: 40px !important;
    height: 40px !important;
    border-radius: 13px !important;
  }

  #appSidebar.app-sidebar {
    top: calc(var(--header-h) + 8px) !important;
    left: 8px !important;
    width: min(88vw, 304px) !important;
    height: calc(100dvh - var(--header-h) - 16px) !important;
    max-height: calc(100dvh - var(--header-h) - 16px) !important;
    border-radius: 18px !important;
  }

  .app-content {
    padding: 16px 12px 26px !important;
  }

  .cards {
    grid-template-columns: 1fr !important;
  }

  .card,
  .panel,
  .box,
  .offer-card,
  .mobile-card {
    border-radius: 16px !important;
    padding: 14px !important;
  }
}

/* === LAST RULE: simple colored human header/sidebar === */
:root {
  --header-h: 62px;
  --simple-bg: #eef7f1;
  --simple-panel: #ffffff;
  --simple-ink: #15201a;
  --simple-muted: #6b756f;
  --simple-border: #dbe7df;
  --simple-green: #117a4d;
  --simple-green-soft: #e4f5ec;
  --simple-yellow: #fff2b8;
  --simple-yellow-line: #ead278;
}

html,
body {
  background: linear-gradient(180deg, #f4ffe9 0, #eef7f1 210px, #f7faf8 100%) !important;
  color: var(--simple-ink) !important;
}

.app-header {
  min-height: var(--header-h) !important;
  padding: 9px 14px !important;
  display: grid !important;
  grid-template-columns: 38px minmax(0, 1fr) 38px !important;
  align-items: center !important;
  gap: 12px !important;
  background: #f8fff8 !important;
  border-bottom: 1px solid var(--simple-border) !important;
  box-shadow: 0 4px 16px rgba(17, 122, 77, 0.08) !important;
  backdrop-filter: none !important;
}

.brand-logo-wrap {
  justify-self: center !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  max-width: min(520px, 62vw) !important;
  padding: 4px 10px 4px 5px !important;
  background: #fffdf5 !important;
  border: 1px solid var(--simple-border) !important;
  border-radius: 999px !important;
  box-shadow: none !important;
}

.brand-logo-wrap img {
  width: 30px !important;
  height: 30px !important;
  border-radius: 8px !important;
}

.brand-logo-wrap span {
  color: var(--simple-green) !important;
  font-size: 14px !important;
  font-weight: 750 !important;
  letter-spacing: 0 !important;
}

.app-header .icon-btn,
.profile-btn {
  width: 36px !important;
  height: 36px !important;
  border: 1px solid var(--simple-border) !important;
  border-radius: 9px !important;
  background: #fffdf5 !important;
  color: var(--simple-green) !important;
  box-shadow: none !important;
}

.app-header .icon-btn:hover,
.profile-btn:hover {
  background: var(--simple-green-soft) !important;
}

#scrim:not([hidden]) {
  inset: var(--header-h) 0 0 0 !important;
  background: rgba(21, 32, 26, 0.34) !important;
  backdrop-filter: none !important;
}

#appSidebar.app-sidebar {
  top: calc(var(--header-h) + 8px) !important;
  left: 8px !important;
  width: min(86vw, 292px) !important;
  height: calc(100dvh - var(--header-h) - 16px) !important;
  max-height: calc(100dvh - var(--header-h) - 16px) !important;
  border: 1px solid var(--simple-border) !important;
  border-radius: 12px !important;
  background: #fffdf5 !important;
  box-shadow: 0 14px 34px rgba(21, 32, 26, 0.16) !important;
}

#appSidebar .sb-user {
  display: block !important;
  height: 100% !important;
  padding: 12px !important;
  overflow-y: auto !important;
  overscroll-behavior: contain !important;
}

#appSidebar .seg-sidebar-brand {
  display: flex !important;
  align-items: center !important;
  gap: 9px !important;
  margin: 0 0 10px !important;
  padding: 4px 4px 11px !important;
  border: 0 !important;
  border-bottom: 1px solid var(--simple-border) !important;
  background: transparent !important;
}

#appSidebar .seg-sidebar-brand img {
  width: 32px !important;
  height: 32px !important;
  border-radius: 8px !important;
  box-shadow: none !important;
}

#appSidebar .seg-sidebar-brand strong,
#appSidebar .seg-sidebar-user strong {
  display: block !important;
  overflow: hidden !important;
  color: var(--simple-ink) !important;
  font-size: 13px !important;
  font-weight: 750 !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

#appSidebar .seg-sidebar-brand small,
#appSidebar .seg-sidebar-user small {
  display: block !important;
  overflow: hidden !important;
  color: var(--simple-muted) !important;
  font-size: 11px !important;
  font-weight: 500 !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

#appSidebar .seg-sidebar-user {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  margin: 0 0 12px !important;
  padding: 10px !important;
  border: 1px solid var(--simple-yellow-line) !important;
  border-radius: 10px !important;
  background: var(--simple-yellow) !important;
  box-shadow: none !important;
}

#appSidebar .seg-sidebar-avatar {
  width: 34px !important;
  height: 34px !important;
  background: #fffdf5 !important;
  box-shadow: none !important;
}

#appSidebar .sb-nav {
  display: grid !important;
  gap: 5px !important;
  margin: 0 !important;
  padding: 0 0 8px !important;
}

#appSidebar .sb-nav > li,
#appSidebar .sb-group,
#appSidebar .sb-sub,
#appSidebar .sb-sub > li {
  width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
}

#appSidebar .sb-link,
#appSidebar .sb-toggle {
  min-height: 42px !important;
  width: 100% !important;
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  padding: 9px 10px !important;
  border: 0 !important;
  border-radius: 8px !important;
  background: transparent !important;
  color: #2f3b34 !important;
  font-size: 14px !important;
  font-weight: 650 !important;
  box-shadow: none !important;
}

#appSidebar .sb-ico {
  width: 26px !important;
  height: 26px !important;
  border-radius: 7px !important;
  background: #f4f6f5 !important;
  color: var(--simple-muted) !important;
}

#appSidebar .sb-link:hover,
#appSidebar .sb-toggle:hover {
  background: #f4f6f5 !important;
  color: var(--simple-ink) !important;
}

#appSidebar .sb-link.active,
#appSidebar .sb-group.is-open > .sb-toggle {
  background: var(--simple-green-soft) !important;
  color: var(--simple-green) !important;
}

#appSidebar .sb-link.active .sb-ico,
#appSidebar .sb-group.is-open > .sb-toggle .sb-ico {
  background: #fffdf5 !important;
  color: var(--simple-green) !important;
}

#appSidebar .sb-sub {
  display: none !important;
  margin: 3px 0 6px 13px !important;
  padding: 4px 0 4px 12px !important;
  border-left: 1px solid var(--simple-border) !important;
  background: transparent !important;
}

#appSidebar .sb-group.is-open > .sb-sub {
  display: grid !important;
  gap: 2px !important;
}

#appSidebar .sb-sublink {
  min-height: 34px !important;
  padding: 7px 9px !important;
  border-radius: 7px !important;
  color: #526058 !important;
  font-size: 13px !important;
  font-weight: 500 !important;
}

#appSidebar .sb-sublink:hover,
#appSidebar .sb-sublink.active {
  background: #f4f6f5 !important;
  color: var(--simple-green) !important;
}

.card,
.panel,
.box,
.offer-card,
.mobile-card,
.level-card,
.fm-tile,
.seg-actions,
.seg-income-card,
.seg-side-card,
.seg-referral-card {
  border: 1px solid var(--simple-border) !important;
  border-radius: 12px !important;
  background: #fffdf5 !important;
  box-shadow: 0 6px 18px rgba(21, 32, 26, 0.05) !important;
}

.seg-hero,
.offer-hero,
.seg-balance-card {
  border: 1px solid rgba(17, 122, 77, 0.22) !important;
  border-radius: 16px !important;
  background: linear-gradient(135deg, #117a4d, #1f9d68) !important;
}

.btn,
button.btn,
a.btn,
.btn-primary,
.seg-main-action,
.btn-pill {
  border: 1px solid var(--simple-green) !important;
  border-radius: 8px !important;
  background: var(--simple-green) !important;
  color: #ffffff !important;
  box-shadow: none !important;
}

.table th {
  background: #edf8f2 !important;
  color: #165b3c !important;
}

@media (max-width: 720px) {
  :root {
    --header-h: 60px;
  }

  .app-header {
    padding: 9px 10px !important;
  }

  .brand-logo-wrap {
    max-width: 60vw !important;
  }

  .brand-logo-wrap img {
    width: 28px !important;
    height: 28px !important;
  }

  .brand-logo-wrap span {
    font-size: 12px !important;
  }
}

/* === TRUE LAST: sidebar dropdowns are flat, no boxes === */
#appSidebar .sb-nav {
  gap: 2px !important;
}

#appSidebar .sb-link,
#appSidebar .sb-toggle {
  min-height: 40px !important;
  padding: 8px 8px !important;
  border: 0 !important;
  outline: 0 !important;
  border-radius: 7px !important;
  background: transparent !important;
  box-shadow: none !important;
}

#appSidebar .sb-link:hover,
#appSidebar .sb-toggle:hover {
  background: #f4f7f5 !important;
  color: var(--simple-green) !important;
}

#appSidebar .sb-link.active,
#appSidebar .sb-group.is-open > .sb-toggle,
#appSidebar .sb-toggle[aria-expanded="true"] {
  border: 0 !important;
  outline: 0 !important;
  background: #e8f7ef !important;
  color: var(--simple-green) !important;
  box-shadow: none !important;
}

#appSidebar .sb-sub {
  display: none !important;
  margin: 2px 0 7px 18px !important;
  padding: 2px 0 2px 10px !important;
  border: 0 !important;
  border-left: 1px solid #dbe7df !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

#appSidebar .sb-group.is-open > .sb-sub {
  display: grid !important;
  gap: 1px !important;
}

#appSidebar .sb-sublink {
  min-height: 32px !important;
  padding: 6px 8px !important;
  border: 0 !important;
  border-radius: 6px !important;
  background: transparent !important;
  box-shadow: none !important;
  color: #5c6660 !important;
  font-size: 13px !important;
  font-weight: 500 !important;
}

#appSidebar .sb-sublink:hover,
#appSidebar .sb-sublink.active {
  background: transparent !important;
  color: var(--simple-green) !important;
}

#appSidebar .sb-ico,
#appSidebar .sb-link.active .sb-ico,
#appSidebar .sb-group.is-open > .sb-toggle .sb-ico {
  background: transparent !important;
  color: var(--simple-green) !important;
}

/* === EDGE ATTACHED HEADER/SIDEBAR === */
:root {
  --header-h: 58px;
}

html,
body {
  margin: 0 !important;
  padding: 0 !important;
}

.app-header {
  top: 0 !important;
  margin: 0 !important;
  min-height: var(--header-h) !important;
  border-radius: 0 !important;
}

#scrim:not([hidden]) {
  inset: var(--header-h) 0 0 0 !important;
}

#appSidebar.app-sidebar {
  top: var(--header-h) !important;
  left: 0 !important;
  height: calc(100dvh - var(--header-h)) !important;
  max-height: calc(100dvh - var(--header-h)) !important;
  border-radius: 0 !important;
  border-left: 0 !important;
  border-top: 0 !important;
  border-bottom: 0 !important;
  box-shadow: 8px 0 24px rgba(21, 32, 26, 0.14) !important;
}

#appSidebar.app-sidebar.is-open,
body.show-sidebar #appSidebar.app-sidebar,
body.sidebar-open #appSidebar.app-sidebar,
html.sidebar-open #appSidebar.app-sidebar,
body[data-sidebar="open"] #appSidebar.app-sidebar {
  transform: translateX(0) !important;
}

/* === TRUE LAST: requested simple header + no submenu dots === */
html,
body {
  margin: 0 !important;
  padding: 0 !important;
}

body::before,
.app-header::before {
  display: none !important;
  content: none !important;
}

.app-header {
  margin-top: 0 !important;
  top: 0 !important;
  min-height: 58px !important;
  padding-top: 8px !important;
  padding-bottom: 8px !important;
  grid-template-columns: 38px minmax(0, 1fr) 38px !important;
}

.header-page-title,
.brand-logo-wrap {
  max-width: 68vw !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.header-page-title img,
.brand-logo-wrap > img {
  display: none !important;
}

.header-page-title span,
.brand-logo-wrap span {
  color: var(--simple-green) !important;
  font-size: 15px !important;
  font-weight: 750 !important;
}

.header-right {
  justify-content: flex-end !important;
}

.header-spacer {
  display: block !important;
  width: 38px !important;
  height: 38px !important;
}

.profile-wrap,
.profile-btn {
  display: none !important;
}

#appSidebar .sb-sub,
#appSidebar .sb-sub li,
#appSidebar .sb-nav,
#appSidebar .sb-nav li {
  list-style: none !important;
}

#appSidebar .sb-sub {
  padding-left: 14px !important;
}

#appSidebar .sb-sub li::before,
#appSidebar .sb-sub li::marker,
#appSidebar .sb-sublink::before,
#appSidebar .sb-sublink::after {
  display: none !important;
  content: none !important;
}

#appSidebar .sbl-icon {
  display: none !important;
}

#appSidebar .sb-sublink {
  padding-left: 4px !important;
}

@media (max-width: 720px) {
  :root {
    --header-h: 58px;
  }

  .app-header {
    min-height: 58px !important;
  }

  .header-page-title span,
  .brand-logo-wrap span {
    font-size: 14px !important;
  }
}

/* === EOF LOCK: attached drawer/header no gaps === */
:root {
  --header-h: 58px;
}

html,
body {
  margin: 0 !important;
  padding: 0 !important;
}

.app-header {
  top: 0 !important;
  margin: 0 !important;
  min-height: var(--header-h) !important;
  border-radius: 0 !important;
}

#scrim:not([hidden]) {
  inset: var(--header-h) 0 0 0 !important;
}

#appSidebar.app-sidebar {
  top: var(--header-h) !important;
  left: 0 !important;
  height: calc(100dvh - var(--header-h)) !important;
  max-height: calc(100dvh - var(--header-h)) !important;
  border-radius: 0 !important;
  border-left: 0 !important;
  border-top: 0 !important;
  border-bottom: 0 !important;
  box-shadow: 8px 0 24px rgba(21, 32, 26, 0.14) !important;
}

#appSidebar.app-sidebar.is-open,
body.show-sidebar #appSidebar.app-sidebar,
body.sidebar-open #appSidebar.app-sidebar,
html.sidebar-open #appSidebar.app-sidebar,
body[data-sidebar="open"] #appSidebar.app-sidebar {
  transform: translateX(0) !important;
}

/* === EOF DASHBOARD CLEANUP: no welcome card, no sidebar top cards === */
#appSidebar .sb-user {
  padding-top: 10px !important;
}

#appSidebar .sb-nav {
  margin-top: 0 !important;
}

.seg-dashboard {
  gap: 14px !important;
}

.seg-overview {
  margin-top: 0 !important;
}

.seg-member-name {
  display: block !important;
  margin-bottom: 6px !important;
  color: #dff7ea !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  letter-spacing: 0 !important;
}

.seg-rank-line {
  margin: 0 0 12px !important;
  color: #526058 !important;
  font-size: 13px !important;
}

.seg-rank-line strong {
  color: #15201a !important;
}

.seg-action svg,
.seg-action-icon,
.seg-action-icon svg {
  color: #111827 !important;
  stroke: #111827 !important;
}

.seg-action-icon {
  background: #fff2b8 !important;
}

.seg-action {
  color: #111827 !important;
}

@media (max-width: 720px) {
  .seg-overview {
    margin-top: 0 !important;
  }
}

/* === EOF: remove sidebar animation === */
#appSidebar.app-sidebar {
  transition: none !important;
  animation: none !important;
}

#appSidebar.app-sidebar *,
#scrim {
  animation: none !important;
}

/* === EOF: warm yellow dashboard welcome card === */
.seg-overview {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.9fr) !important;
  gap: 14px !important;
  align-items: stretch !important;
  padding: 14px !important;
  border: 1px solid #f3d98a !important;
  border-radius: 16px !important;
  background: linear-gradient(180deg, #fff7d7, #fffaf0) !important;
  box-shadow: 0 10px 24px rgba(120, 87, 12, 0.08) !important;
}

.seg-balance-card {
  min-height: 160px !important;
  padding: 22px !important;
  border: 0 !important;
  border-radius: 14px !important;
  background: linear-gradient(135deg, #0f7a4d, #1ca96e) !important;
  box-shadow: none !important;
}

.seg-balance-card > div::before {
  content: "Welcome";
  display: block;
  margin-bottom: 7px;
  color: #fff2b8;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.seg-member-name {
  margin-bottom: 5px !important;
  color: #ffffff !important;
  font-size: 14px !important;
  font-weight: 850 !important;
}

.seg-balance-card .seg-label {
  color: #ffe082 !important;
  font-size: 12px !important;
  font-weight: 850 !important;
}

.seg-balance-card strong {
  margin-top: 2px !important;
  color: #ffffff !important;
  font-size: clamp(34px, 4vw, 48px) !important;
  line-height: 1 !important;
}

.seg-balance-card small {
  color: rgba(255,255,255,0.86) !important;
  font-weight: 700 !important;
}

.seg-main-action {
  background: rgba(6, 95, 70, 0.55) !important;
  border: 1px solid rgba(255,255,255,0.18) !important;
  border-radius: 8px !important;
  box-shadow: none !important;
}

.seg-actions {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 10px !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.seg-action {
  min-height: 76px !important;
  border: 1px solid #efc96c !important;
  border-radius: 13px !important;
  background: linear-gradient(180deg, #fff3ba, #ffe98f) !important;
  color: #111827 !important;
  box-shadow: none !important;
}

.seg-action:nth-child(2) {
  background: linear-gradient(180deg, #ffe7e7, #ffd7d7) !important;
  border-color: #f1a8a8 !important;
}

.seg-action:nth-child(3) {
  background: linear-gradient(180deg, #e4f5ec, #caeddc) !important;
  border-color: #9ed8b8 !important;
}

.seg-action:nth-child(4) {
  background: linear-gradient(180deg, #f4f6f5, #ecefeb) !important;
  border-color: #d8ded9 !important;
}

.seg-action-icon {
  width: 34px !important;
  height: 34px !important;
  border-radius: 10px !important;
  background: rgba(255,255,255,0.45) !important;
}

@media (max-width: 760px) {
  .seg-overview {
    grid-template-columns: 1fr !important;
    padding: 12px !important;
  }

  .seg-balance-card {
    min-height: 150px !important;
    padding: 20px !important;
  }
}

/* === EOF: dashboard account tools removed + referral fixed === */
.seg-main-grid {
  grid-template-columns: 1fr !important;
}

.seg-side-card {
  display: none !important;
}

.seg-referral-card {
  display: grid !important;
  grid-template-columns: minmax(0, 0.8fr) minmax(260px, 1.2fr) !important;
  gap: 14px !important;
  align-items: center !important;
  padding: 16px !important;
  border: 1px solid #dbe7df !important;
  border-radius: 12px !important;
  background: #fffdf5 !important;
  box-shadow: 0 6px 18px rgba(21, 32, 26, 0.05) !important;
}

.seg-referral-card .seg-label {
  display: block !important;
  margin-bottom: 4px !important;
  color: #117a4d !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  text-transform: uppercase !important;
}

.seg-referral-card strong {
  display: block !important;
  color: #15201a !important;
  font-size: 15px !important;
}

.seg-referral-actions {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  gap: 8px !important;
  align-items: center !important;
}

.seg-referral-actions input,
#refLink {
  width: 100% !important;
  min-width: 0 !important;
  height: 42px !important;
  padding: 0 12px !important;
  border: 1px solid #dbe7df !important;
  border-radius: 8px !important;
  background: #f8fbf9 !important;
  color: #374151 !important;
  font-size: 13px !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

.seg-referral-actions button,
#copyRefBtn {
  height: 42px !important;
  min-width: 82px !important;
  padding: 0 14px !important;
  border-radius: 8px !important;
  border: 1px solid #117a4d !important;
  background: #117a4d !important;
  color: #ffffff !important;
  font-size: 13px !important;
  font-weight: 750 !important;
  box-shadow: none !important;
}

@media (max-width: 720px) {
  .seg-referral-card {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
    padding: 14px !important;
  }

  .seg-referral-actions {
    grid-template-columns: 1fr !important;
  }

  .seg-referral-actions button,
  #copyRefBtn {
    width: 100% !important;
  }
}

/* === EOF: five sidebar pages match dashboard index style === */
.seg-shell .seg-content,
.app-content.seg-content,
.bank-wrap.seg-content {
  width: min(100%, 1120px) !important;
  margin: 0 auto !important;
  padding: clamp(14px, 2.4vw, 26px) !important;
}

.seg-content > h1:first-child,
.bank-wrap > h1:first-child {
  display: flex !important;
  align-items: center !important;
  min-height: 44px !important;
  margin: 0 0 14px !important;
  padding: 10px 14px !important;
  border: 1px solid #f3d98a !important;
  border-radius: 12px !important;
  background: linear-gradient(180deg, #fff7d7, #fffaf0) !important;
  color: #117a4d !important;
  font-size: 18px !important;
  font-weight: 800 !important;
  box-shadow: 0 6px 18px rgba(120, 87, 12, 0.05) !important;
}

.seg-content .cards,
.bank-wrap .cards {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)) !important;
  gap: 14px !important;
}

.seg-content .card,
.bank-wrap .card,
.seg-content .account-card {
  border: 1px solid #dbe7df !important;
  border-radius: 12px !important;
  background: #fffdf5 !important;
  box-shadow: 0 6px 18px rgba(21, 32, 26, 0.05) !important;
}

.seg-content .card h2,
.seg-content .card h3,
.bank-wrap .card h2,
.bank-wrap .card h3 {
  margin-top: 0 !important;
  color: #15201a !important;
  font-size: 16px !important;
  font-weight: 800 !important;
}

.seg-content label,
.bank-wrap label,
.seg-content .form-label,
.bank-wrap .form-label {
  color: #526058 !important;
  font-size: 12px !important;
  font-weight: 700 !important;
}

.seg-content input,
.seg-content select,
.seg-content textarea,
.bank-wrap input,
.bank-wrap select,
.bank-wrap textarea,
.bank-wrap .form-input {
  width: 100% !important;
  min-height: 42px !important;
  border: 1px solid #dbe7df !important;
  border-radius: 8px !important;
  background: #f8fbf9 !important;
}

.seg-content .table,
.bank-wrap .table {
  border-collapse: separate !important;
  border-spacing: 0 !important;
  overflow: hidden !important;
}

.seg-content .table th,
.bank-wrap .table th {
  background: #edf8f2 !important;
  color: #165b3c !important;
  font-weight: 800 !important;
}

.seg-content .table td,
.bank-wrap .table td {
  background: #fffdf5 !important;
}

.seg-content .badge,
.bank-wrap .badge,
.seg-content .status-pill,
.bank-wrap .status-pill {
  border-radius: 999px !important;
  border: 1px solid #bde8cf !important;
  background: #e4f5ec !important;
  color: #117a4d !important;
  font-weight: 750 !important;
}

.bank-wrap {
  max-width: none !important;
}

.bank-wrap .form-row {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)) !important;
  gap: 12px !important;
}

.bank-wrap .account-card {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  gap: 12px !important;
  align-items: start !important;
}

@media (max-width: 720px) {
  .seg-shell .seg-content,
  .app-content.seg-content,
  .bank-wrap.seg-content {
    padding: 12px !important;
  }

  .seg-content > h1:first-child,
  .bank-wrap > h1:first-child {
    font-size: 16px !important;
    min-height: 40px !important;
    padding: 9px 12px !important;
  }

  .bank-wrap .account-card {
    grid-template-columns: 1fr !important;
  }

  .bank-wrap .account-card form {
    margin-left: 0 !important;
  }
}

/* === EOF: login/register clean mobile design === */
body.auth-bg {
  min-height: 100dvh !important;
  background: linear-gradient(180deg, #f4ffe9 0, #eef7f1 230px, #f8fbf9 100%) !important;
}

.auth-shell {
  min-height: calc(100dvh - var(--header-h, 58px)) !important;
  display: block !important;
}

.auth-content {
  width: min(100%, 980px) !important;
  margin: 0 auto !important;
  padding: clamp(18px, 4vw, 42px) 14px !important;
}

.auth-page {
  display: grid !important;
  grid-template-columns: minmax(260px, 0.82fr) minmax(320px, 1fr) !important;
  gap: 16px !important;
  align-items: stretch !important;
}

.auth-page-register {
  grid-template-columns: minmax(260px, 0.72fr) minmax(360px, 1.18fr) !important;
}

.auth-hero,
.auth-card {
  border: 1px solid #dbe7df !important;
  border-radius: 16px !important;
  box-shadow: 0 10px 26px rgba(21, 32, 26, 0.08) !important;
}

.auth-hero {
  min-height: 100% !important;
  padding: clamp(20px, 4vw, 34px) !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  background: linear-gradient(135deg, #117a4d, #1f9d68) !important;
  color: #ffffff !important;
}

.auth-hero::before {
  content: "Smart Exchange Global";
  display: inline-flex;
  width: fit-content;
  margin-bottom: 14px;
  padding: 7px 10px;
  border: 1px solid rgba(255,255,255,0.26);
  border-radius: 999px;
  background: rgba(255,255,255,0.12);
  color: #fff2b8;
  font-size: 12px;
  font-weight: 800;
}

.auth-hero h2 {
  margin: 0 !important;
  color: #ffffff !important;
  font-size: clamp(26px, 4vw, 42px) !important;
  font-weight: 850 !important;
  line-height: 1.08 !important;
}

.auth-hero h2::after {
  content: "Secure member access with a clean mobile experience.";
  display: block;
  margin-top: 12px;
  color: rgba(255,255,255,0.82);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.45;
}

.auth-card {
  padding: clamp(18px, 3.5vw, 30px) !important;
  background: #fffdf5 !important;
}

.auth-card h1 {
  margin: 0 0 16px !important;
  color: #15201a !important;
  font-size: clamp(22px, 3vw, 30px) !important;
  font-weight: 850 !important;
}

.auth-card form {
  display: grid !important;
  gap: 13px !important;
}

.form-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 13px !important;
}

.form-grid .full {
  grid-column: 1 / -1 !important;
}

.auth-card label {
  display: block !important;
  margin-bottom: 6px !important;
  color: #526058 !important;
  font-size: 12px !important;
  font-weight: 750 !important;
}

.auth-card input {
  width: 100% !important;
  min-height: 44px !important;
  padding: 0 12px !important;
  border: 1px solid #dbe7df !important;
  border-radius: 9px !important;
  background: #f8fbf9 !important;
  color: #15201a !important;
  font-size: 14px !important;
}

.auth-card input:focus {
  outline: 3px solid rgba(17, 122, 77, 0.14) !important;
  border-color: #117a4d !important;
  background: #fffdf5 !important;
}

.input-wrap {
  position: relative !important;
}

.input-wrap .peek {
  position: absolute !important;
  right: 7px !important;
  top: 29px !important;
  width: 34px !important;
  height: 34px !important;
  display: grid !important;
  place-items: center !important;
  border: 0 !important;
  border-radius: 8px !important;
  background: transparent !important;
  color: #6b756f !important;
  box-shadow: none !important;
}

.input-wrap .peek:hover {
  background: #e4f5ec !important;
  color: #117a4d !important;
}

.peek .icon-eye-off {
  display: none !important;
}

.peek.is-on .icon-eye {
  display: none !important;
}

.peek.is-on .icon-eye-off {
  display: inline !important;
}

.auth-actions {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 10px !important;
  margin-top: 4px !important;
}

.auth-actions .btn,
.auth-actions a.btn,
.auth-actions button.btn {
  min-height: 44px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 9px !important;
  font-size: 14px !important;
  text-align: center !important;
}

.auth-actions .btn-ghost,
.auth-actions a.btn-ghost {
  border: 1px solid #ead278 !important;
  background: #fff2b8 !important;
  color: #15201a !important;
}

.auth-meta {
  margin-top: 14px !important;
  text-align: center !important;
}

.auth-meta .text-link {
  color: #117a4d !important;
  font-weight: 650 !important;
}

.auth-card .error,
.auth-card .alert {
  padding: 11px 12px !important;
  border: 1px solid #fecaca !important;
  border-radius: 10px !important;
  background: #fff1f2 !important;
  color: #991b1b !important;
  font-size: 13px !important;
  white-space: pre-line !important;
}

@media (max-width: 760px) {
  .auth-content {
    padding: 14px 12px 28px !important;
  }

  .auth-page,
  .auth-page-register {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  .auth-hero {
    min-height: auto !important;
    padding: 18px !important;
  }

  .auth-hero h2 {
    font-size: 24px !important;
  }

  .auth-card {
    padding: 16px !important;
  }

  .form-grid {
    grid-template-columns: 1fr !important;
  }

  .auth-actions {
    grid-template-columns: 1fr !important;
  }
}

/* === EOF: auth header simple centered === */
body.auth-bg .app-header {
  min-height: 56px !important;
  padding: 8px 12px !important;
  background: #f8fff8 !important;
  border-bottom: 1px solid #eadfb9 !important;
  box-shadow: 0 2px 10px rgba(17, 122, 77, 0.06) !important;
}

body.auth-bg .header-page-title,
body.auth-bg .brand-logo-wrap {
  max-width: 70vw !important;
}

body.auth-bg .header-page-title span,
body.auth-bg .brand-logo-wrap span {
  color: #117a4d !important;
  font-size: 14px !important;
  font-weight: 800 !important;
}

body.auth-bg .header-cta,
body.auth-bg .header-link {
  display: none !important;
}

/* === EOF: register OTP controls === */
.otp-panel {
  margin-top: 10px !important;
  padding: 10px !important;
  border: 1px solid #d9eadf !important;
  border-radius: 12px !important;
  background: #f8fff8 !important;
}

.otp-row {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  align-items: center !important;
  gap: 8px !important;
}

.otp-row + .otp-row {
  margin-top: 8px !important;
}

.otp-panel input {
  min-height: 42px !important;
  border-radius: 9px !important;
}

.otp-panel .btn {
  min-height: 42px !important;
  border-radius: 9px !important;
  padding: 0 14px !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  white-space: nowrap !important;
}

.otp-send {
  border: 1px solid #117a4d !important;
  background: #117a4d !important;
  color: #fff !important;
}

.otp-verify {
  border: 1px solid #ead278 !important;
  background: #fff2b8 !important;
  color: #15201a !important;
}

.otp-status {
  color: #65746d !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  line-height: 1.35 !important;
}

.otp-status.is-ok {
  color: #117a4d !important;
}

.otp-status.is-error {
  color: #b91c1c !important;
}

.otp-status.is-wait,
.otp-status.is-sent {
  color: #946200 !important;
}

#registerSubmit:disabled {
  cursor: not-allowed !important;
  opacity: 0.55 !important;
}

@media (max-width: 520px) {
  .otp-row {
    grid-template-columns: 1fr !important;
  }

  .otp-panel .btn {
    width: 100% !important;
  }
}

/* === EOF: premium register OTP redesign === */
.otp-panel {
  margin-top: 12px !important;
  padding: 14px !important;
  border: 1px solid rgba(234, 210, 120, 0.75) !important;
  border-radius: 14px !important;
  background: linear-gradient(135deg, #fff8d9 0%, #f7fff8 58%, #ffffff 100%) !important;
  box-shadow: 0 14px 30px rgba(17, 122, 77, 0.08) !important;
}

.otp-head {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 10px !important;
  margin-bottom: 10px !important;
}

.otp-head span {
  color: #13231b !important;
  font-size: 12px !important;
  font-weight: 900 !important;
}

.otp-head small,
.otp-status {
  max-width: 160px !important;
  color: #65746d !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  line-height: 1.3 !important;
  text-align: right !important;
}

.otp-row {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 112px !important;
  align-items: center !important;
  gap: 10px !important;
}

.otp-code {
  display: grid !important;
  grid-template-columns: repeat(6, minmax(30px, 1fr)) !important;
  gap: 7px !important;
}

.otp-panel .otp-digit,
.otp-code .otp-digit {
  width: 100% !important;
  min-width: 0 !important;
  height: 44px !important;
  min-height: 44px !important;
  padding: 0 !important;
  border: 1px solid #d8e7dc !important;
  border-radius: 10px !important;
  background: #fffdf5 !important;
  color: #13231b !important;
  font-size: 18px !important;
  font-weight: 900 !important;
  text-align: center !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.9), 0 6px 14px rgba(15, 40, 28, 0.06) !important;
}

.otp-panel .otp-digit:focus {
  border-color: #0f8f5b !important;
  box-shadow: 0 0 0 3px rgba(17, 122, 77, 0.14), 0 6px 14px rgba(15, 40, 28, 0.08) !important;
  outline: none !important;
}

.otp-panel .btn,
.otp-send {
  width: 100% !important;
  min-height: 44px !important;
  border: 1px solid #0d6f47 !important;
  border-radius: 10px !important;
  background: linear-gradient(180deg, #159c68 0%, #087347 100%) !important;
  color: #ffffff !important;
  padding: 0 12px !important;
  font-size: 12px !important;
  font-weight: 900 !important;
  white-space: nowrap !important;
  box-shadow: 0 10px 18px rgba(8, 115, 71, 0.2) !important;
}

.otp-send[data-mode="verify"] {
  border-color: #e2b63b !important;
  background: linear-gradient(180deg, #ffe887 0%, #f1bf3d 100%) !important;
  color: #15201a !important;
  box-shadow: 0 10px 18px rgba(226, 182, 59, 0.22) !important;
}

.otp-send.is-verified,
.otp-send[data-mode="verified"] {
  border-color: #0f8f5b !important;
  background: #e7f9ee !important;
  color: #087347 !important;
  box-shadow: none !important;
}

.otp-status.is-ok {
  color: #087347 !important;
}

.otp-status.is-error {
  color: #b91c1c !important;
}

.otp-status.is-wait,
.otp-status.is-sent {
  color: #a46400 !important;
}

@media (max-width: 760px) {
  .otp-panel {
    padding: 12px !important;
  }

  .otp-row {
    grid-template-columns: 1fr !important;
  }

  .otp-code {
    grid-template-columns: repeat(6, 1fr) !important;
    gap: 6px !important;
  }

  .otp-panel .otp-digit,
  .otp-code .otp-digit {
    height: 42px !important;
    min-height: 42px !important;
    font-size: 17px !important;
  }

  .otp-head small,
  .otp-status {
    max-width: 150px !important;
  }
}

/* === EOF: register OTP popup flow === */
.phone-verify-line {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 10px !important;
  margin-top: 10px !important;
}

.phone-verify-btn {
  min-height: 40px !important;
  border: 1px solid #0d7a4c !important;
  border-radius: 10px !important;
  background: linear-gradient(180deg, #149b65 0%, #087347 100%) !important;
  color: #ffffff !important;
  padding: 0 14px !important;
  font-size: 12px !important;
  font-weight: 900 !important;
  box-shadow: 0 10px 20px rgba(8, 115, 71, 0.18) !important;
  white-space: nowrap !important;
}

.phone-verify-btn.is-verified {
  border-color: #11945e !important;
  background: #e7f8ee !important;
  color: #087347 !important;
  box-shadow: none !important;
}

.phone-verify-line .otp-status {
  flex: 1 1 auto !important;
  max-width: none !important;
  text-align: right !important;
  font-size: 11px !important;
}

.otp-modal {
  position: fixed !important;
  inset: 0 !important;
  z-index: 9999 !important;
  display: none !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 18px !important;
}

.otp-modal.is-open {
  display: flex !important;
}

.otp-modal-backdrop {
  position: absolute !important;
  inset: 0 !important;
  background: rgba(8, 24, 18, 0.52) !important;
  backdrop-filter: blur(4px) !important;
}

.otp-modal-card {
  position: relative !important;
  z-index: 1 !important;
  width: min(430px, 100%) !important;
  border: 1px solid rgba(234, 210, 120, 0.9) !important;
  border-radius: 18px !important;
  background: linear-gradient(145deg, #ffffff 0%, #fff7d6 45%, #f4fff7 100%) !important;
  box-shadow: 0 26px 70px rgba(6, 35, 22, 0.3) !important;
  padding: 24px !important;
  text-align: center !important;
}

.otp-close {
  position: absolute !important;
  top: 12px !important;
  right: 12px !important;
  width: 32px !important;
  height: 32px !important;
  border: 1px solid #d8e7dc !important;
  border-radius: 9px !important;
  background: #fffdf5 !important;
  color: #0d6f47 !important;
  font-size: 18px !important;
  line-height: 1 !important;
  font-weight: 800 !important;
}

.otp-badge {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 28px !important;
  border: 1px solid rgba(17, 122, 77, 0.25) !important;
  border-radius: 999px !important;
  background: #e8f8ef !important;
  color: #087347 !important;
  padding: 0 12px !important;
  font-size: 11px !important;
  font-weight: 900 !important;
}

.otp-modal-card h2 {
  margin: 12px 0 6px !important;
  color: #13231b !important;
  font-size: 25px !important;
  font-weight: 900 !important;
  letter-spacing: 0 !important;
}

.otp-modal-card p {
  margin: 0 auto 18px !important;
  max-width: 320px !important;
  color: #62736b !important;
  font-size: 13px !important;
  line-height: 1.5 !important;
  font-weight: 650 !important;
}

.otp-modal-card .otp-code {
  display: grid !important;
  grid-template-columns: repeat(6, 1fr) !important;
  gap: 9px !important;
  margin: 0 0 16px !important;
}

.otp-modal-card .otp-digit {
  width: 100% !important;
  height: 52px !important;
  min-height: 52px !important;
  padding: 0 !important;
  border: 1px solid #d7e5dc !important;
  border-radius: 12px !important;
  background: #fffdf5 !important;
  color: #10221a !important;
  font-size: 21px !important;
  font-weight: 900 !important;
  text-align: center !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.95), 0 10px 18px rgba(11, 54, 35, 0.07) !important;
}

.otp-modal-card .otp-digit:focus {
  border-color: #0f8f5b !important;
  box-shadow: 0 0 0 4px rgba(17, 122, 77, 0.14), 0 10px 18px rgba(11, 54, 35, 0.08) !important;
  outline: none !important;
}

.otp-modal-action {
  width: 100% !important;
  min-height: 48px !important;
  border: 1px solid #0d7549 !important;
  border-radius: 12px !important;
  background: linear-gradient(180deg, #169f69 0%, #087347 100%) !important;
  color: #ffffff !important;
  font-size: 14px !important;
  font-weight: 900 !important;
  box-shadow: 0 14px 24px rgba(8, 115, 71, 0.22) !important;
}

.otp-resend {
  margin-top: 12px !important;
  border: 0 !important;
  background: transparent !important;
  color: #946200 !important;
  font-size: 12px !important;
  font-weight: 850 !important;
}

.otp-resend:disabled {
  color: #7b8a83 !important;
  cursor: not-allowed !important;
}

body.otp-modal-open {
  overflow: hidden !important;
}

@media (max-width: 520px) {
  .phone-verify-line {
    align-items: stretch !important;
    flex-direction: column !important;
  }

  .phone-verify-line .otp-status {
    text-align: left !important;
  }

  .phone-verify-btn {
    width: 100% !important;
  }

  .otp-modal-card {
    padding: 20px 16px !important;
    border-radius: 16px !important;
  }

  .otp-modal-card .otp-code {
    gap: 6px !important;
  }

  .otp-modal-card .otp-digit {
    height: 46px !important;
    min-height: 46px !important;
    border-radius: 10px !important;
    font-size: 18px !important;
  }
}

/* === EOF: verified phone state === */
.phone-verified-box {
  margin-top: 10px !important;
  min-height: 44px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  border: 1px solid #17a56a !important;
  border-radius: 11px !important;
  background: #e8f9ef !important;
  color: #087347 !important;
  font-size: 13px !important;
  font-weight: 900 !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.85) !important;
}

.phone-verified-box[hidden] {
  display: none !important;
}

.phone-verified-box span::before {
  content: "?" !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 22px !important;
  height: 22px !important;
  margin-right: 8px !important;
  border-radius: 999px !important;
  background: #087347 !important;
  color: #ffffff !important;
  font-size: 13px !important;
}

.otp-status.is-ok {
  color: #087347 !important;
}

.otp-status.is-error {
  color: #b91c1c !important;
}

.otp-modal-card .otp-status.is-error,
.otp-status.is-error {
  color: #b91c1c !important;
}

.otp-modal-card .otp-status.is-ok,
.otp-status.is-ok {
  color: #087347 !important;
}

/* === EOF: verified mobile number display === */
.phone-verified-box {
  justify-content: flex-start !important;
  padding: 0 14px !important;
}

.phone-verified-box span {
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

.phone-verified-box span::before {
  content: "?" !important;
  flex: 0 0 auto !important;
}

/* === EOF: compact register form spacing === */
.auth-page-register .form-grid {
  gap: 10px 12px !important;
}

.auth-page-register label {
  margin-bottom: 5px !important;
  font-size: 11px !important;
  line-height: 1.2 !important;
}

.auth-page-register input,
.auth-page-register select,
.auth-page-register textarea {
  min-height: 40px !important;
  padding-top: 9px !important;
  padding-bottom: 9px !important;
}

.auth-page-register .phone-verify-line {
  margin-top: 7px !important;
  gap: 6px !important;
}

.auth-page-register .phone-verify-btn {
  min-height: 38px !important;
  border-radius: 9px !important;
}

.auth-page-register .phone-verify-line .otp-status {
  margin-top: 0 !important;
  font-size: 11px !important;
  line-height: 1.2 !important;
}

.auth-page-register .input-wrap .peek {
  top: 28px !important;
  transform: none !important;
}

@media (max-width: 760px) {
  .auth-page-register .auth-card {
    padding: 15px !important;
  }

  .auth-page-register .auth-card h1 {
    margin-bottom: 12px !important;
  }

  .auth-page-register .form-grid {
    gap: 9px !important;
  }

  .auth-page-register label {
    margin-bottom: 4px !important;
  }

  .auth-page-register .phone-verify-line {
    margin-top: 6px !important;
  }

  .auth-page-register .auth-actions {
    margin-top: 4px !important;
    gap: 8px !important;
  }
}

/* === EOF: OTP send errors stay inline === */
.phone-verify-line .otp-status.is-error {
  color: #b91c1c !important;
  font-weight: 900 !important;
}

.phone-verify-line .otp-status.is-wait {
  color: #946200 !important;
}

.phone-verify-line .otp-status.is-sent,
.phone-verify-line .otp-status.is-ok {
  color: #087347 !important;
}

/* === EOF: register password live guide === */
.password-guide {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 6px !important;
  margin-top: 7px !important;
}

.password-guide span {
  display: inline-flex !important;
  align-items: center !important;
  min-height: 24px !important;
  border: 1px solid #fecaca !important;
  border-radius: 999px !important;
  background: #fff1f2 !important;
  color: #b91c1c !important;
  padding: 0 9px !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  line-height: 1 !important;
}

.password-guide span::before,
.password-match::before {
  content: "!" !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 14px !important;
  height: 14px !important;
  margin-right: 5px !important;
  border-radius: 999px !important;
  background: #b91c1c !important;
  color: #ffffff !important;
  font-size: 9px !important;
  font-weight: 900 !important;
}

.password-guide span.is-ok {
  border-color: #9fe0bb !important;
  background: #e8f9ef !important;
  color: #087347 !important;
}

.password-guide span.is-ok::before,
.password-match.is-ok::before {
  content: "?" !important;
  background: #087347 !important;
}

.password-match {
  display: flex !important;
  align-items: center !important;
  margin-top: 7px !important;
  color: #6b7a72 !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  line-height: 1.25 !important;
}

.password-match.is-ok {
  color: #087347 !important;
}

.password-match.is-bad {
  color: #b91c1c !important;
}

@media (max-width: 520px) {
  .password-guide {
    gap: 5px !important;
  }

  .password-guide span {
    min-height: 22px !important;
    padding: 0 8px !important;
    font-size: 10.5px !important;
  }
}

/* === EOF: thin simple password hints === */
.password-guide {
  display: block !important;
  margin-top: 5px !important;
  color: #8a9a92 !important;
  font-size: 11px !important;
  font-weight: 400 !important;
  line-height: 1.45 !important;
}

.password-guide span {
  display: inline !important;
  min-height: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: #b91c1c !important;
  padding: 0 !important;
  font-size: 11px !important;
  font-weight: 400 !important;
  line-height: 1.45 !important;
  box-shadow: none !important;
}

.password-guide span + span::before {
  content: " ? " !important;
  display: inline !important;
  width: auto !important;
  height: auto !important;
  margin: 0 3px !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: #9aa8a1 !important;
  font-size: 11px !important;
  font-weight: 400 !important;
}

.password-guide span::before {
  content: "" !important;
  display: none !important;
}

.password-guide span.is-ok {
  border: 0 !important;
  background: transparent !important;
  color: #087347 !important;
}

.password-guide span.is-ok::before {
  content: "" !important;
  display: none !important;
}

.password-match {
  display: block !important;
  margin-top: 5px !important;
  color: #8a9a92 !important;
  font-size: 11px !important;
  font-weight: 400 !important;
  line-height: 1.35 !important;
}

.password-match::before,
.password-match.is-ok::before,
.password-match.is-bad::before {
  content: "" !important;
  display: none !important;
}

.password-match.is-ok {
  color: #087347 !important;
  font-weight: 400 !important;
}

.password-match.is-bad {
  color: #b91c1c !important;
  font-weight: 400 !important;
}

/* === EOF: visible password eye icons === */
.auth-page-register .input-wrap {
  position: relative !important;
}

.auth-page-register .input-wrap input[type="password"],
.auth-page-register .input-wrap input[type="text"] {
  padding-right: 48px !important;
}

.auth-page-register .input-wrap .peek {
  position: absolute !important;
  right: 10px !important;
  top: 31px !important;
  transform: none !important;
  width: 32px !important;
  height: 32px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border: 0 !important;
  border-radius: 8px !important;
  background: transparent !important;
  color: #117a4d !important;
  opacity: 1 !important;
  z-index: 3 !important;
}

.auth-page-register .input-wrap .peek svg {
  display: block !important;
  width: 19px !important;
  height: 19px !important;
  color: #117a4d !important;
  stroke: currentColor !important;
  opacity: 1 !important;
}

.auth-page-register .input-wrap .peek .icon-eye {
  display: inline-flex !important;
}

.auth-page-register .input-wrap .peek .icon-eye-off {
  display: none !important;
}

.auth-page-register .input-wrap .peek.is-on .icon-eye {
  display: none !important;
}

.auth-page-register .input-wrap .peek.is-on .icon-eye-off {
  display: inline-flex !important;
}

/* === EOF: visible login password eye icon === */
.auth-page:not(.auth-page-register) .input-wrap {
  position: relative !important;
}

.auth-page:not(.auth-page-register) .input-wrap input[type="password"],
.auth-page:not(.auth-page-register) .input-wrap input[type="text"] {
  padding-right: 48px !important;
}

.auth-page:not(.auth-page-register) .input-wrap .peek {
  position: absolute !important;
  right: 10px !important;
  top: 31px !important;
  transform: none !important;
  width: 32px !important;
  height: 32px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border: 0 !important;
  border-radius: 8px !important;
  background: transparent !important;
  color: #117a4d !important;
  opacity: 1 !important;
  z-index: 3 !important;
}

.auth-page:not(.auth-page-register) .input-wrap .peek svg {
  display: block !important;
  width: 19px !important;
  height: 19px !important;
  color: #117a4d !important;
  stroke: currentColor !important;
  opacity: 1 !important;
}

.auth-page:not(.auth-page-register) .input-wrap .peek .icon-eye {
  display: inline-flex !important;
}

.auth-page:not(.auth-page-register) .input-wrap .peek .icon-eye-off {
  display: none !important;
}

.auth-page:not(.auth-page-register) .input-wrap .peek.is-on .icon-eye {
  display: none !important;
}

.auth-page:not(.auth-page-register) .input-wrap .peek.is-on .icon-eye-off {
  display: inline-flex !important;
}

/* === FINAL GLOBAL USER PANEL BACKGROUND FIX === */
html:not(.auth-html),
body:not(.auth-bg) {
  background: #fff8e6 !important;
  color: #15201a !important;
}

body:not(.auth-bg)::before,
body:not(.auth-bg)::after {
  display: none !important;
  content: none !important;
}

.app-wrap,
.seg-shell,
.fund-move-page,
.seg-fi-page {
  background: #fff8e6 !important;
}

.app-content,
.app-content.seg-content,
.app-content.seg-fi-page,
.seg-shell .seg-content,
.bank-page,
.wd-page,
.dashboard-wrap,
.seg-dashboard {
  background: transparent !important;
}

.app-header {
  background: #fffdf5 !important;
  border-bottom: 1px solid #eadfb9 !important;
  box-shadow: 0 4px 14px rgba(21, 32, 26, 0.06) !important;
}

.card,
.card-prem,
.wd-panel,
.bank-panel,
.income-stat,
.mobile-card,
.recent-item,
.wd-recent-item {
  background: #fffdf5 !important;
}

/* Keep auth pages separate */
body.auth-bg {
  background: linear-gradient(180deg, #f4ffe9 0, #eef7f1 230px, #f8fbf9 100%) !important;
}

/* === FINAL GLOBAL RED ACTION BUTTONS === */
:root {
  --seg-action-red: #8a1f17;
  --seg-action-red-dark: #65130f;
  --seg-action-red-soft: #fff1ed;
}

.btn-primary,
.btn.primary,
.btn:not(.btn-ghost):not(.btn-link):not(.btn-yellow):not(.btn-sand):not(.btn-lite):not(.btn-secondary),
button.btn:not(.btn-ghost):not(.btn-link):not(.btn-yellow):not(.btn-sand):not(.btn-lite):not(.btn-secondary),
a.btn:not(.btn-ghost):not(.btn-link):not(.btn-yellow):not(.btn-sand):not(.btn-lite):not(.btn-secondary),
button[type="submit"]:not(.btn-ghost):not(.btn-link):not(.btn-yellow):not(.btn-sand):not(.btn-lite):not(.btn-secondary),
.auth-actions .btn:not(.btn-ghost),
.otp-panel .btn,
.ok-btn-primary,
.profile-btn,
.wd-submit,
.bank-submit,
.package-activate-page .btn.primary {
  background: linear-gradient(180deg, var(--seg-action-red), var(--seg-action-red-dark)) !important;
  border-color: var(--seg-action-red-dark) !important;
  color: #ffffff !important;
  box-shadow: 0 10px 22px rgba(138, 31, 23, 0.18) !important;
}

.btn-primary:hover,
.btn.primary:hover,
.btn:not(.btn-ghost):not(.btn-link):not(.btn-yellow):not(.btn-sand):not(.btn-lite):not(.btn-secondary):hover,
button.btn:not(.btn-ghost):not(.btn-link):not(.btn-yellow):not(.btn-sand):not(.btn-lite):not(.btn-secondary):hover,
a.btn:not(.btn-ghost):not(.btn-link):not(.btn-yellow):not(.btn-sand):not(.btn-lite):not(.btn-secondary):hover,
button[type="submit"]:not(.btn-ghost):not(.btn-link):not(.btn-yellow):not(.btn-sand):not(.btn-lite):not(.btn-secondary):hover,
.auth-actions .btn:not(.btn-ghost):hover,
.otp-panel .btn:hover,
.ok-btn-primary:hover,
.profile-btn:hover,
.wd-submit:hover,
.bank-submit:hover,
.package-activate-page .btn.primary:hover {
  background: linear-gradient(180deg, #9f2a20, var(--seg-action-red-dark)) !important;
  border-color: var(--seg-action-red-dark) !important;
  color: #ffffff !important;
}

.btn-primary:disabled,
.btn.primary:disabled,
button[type="submit"]:disabled {
  background: #d7b6b1 !important;
  border-color: #d7b6b1 !important;
  color: #fff8f6 !important;
  box-shadow: none !important;
}
