:root {
  color-scheme: dark;
  font-family: "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #040b16;
  color: #eaf7ff;
  --bg-1: #040b16;
  --bg-2: #071528;
  --panel: rgba(8, 20, 39, 0.86);
  --panel-2: rgba(11, 29, 56, 0.92);
  --line: rgba(89, 196, 255, 0.16);
  --line-strong: rgba(89, 196, 255, 0.34);
  --cyan: #60e6ff;
  --sky: #41b5ff;
  --blue: #1b6bff;
  --text-soft: #95b8da;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
}

/* sanex latam redesign */

:root {
  color-scheme: light;
  font-family: "Manrope", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #eef5dd;
  color: #1e2710;
  --bg-1: #eef5dd;
  --bg-2: #f8fbe9;
  --panel: rgba(252, 254, 247, 0.97);
  --panel-2: rgba(246, 250, 234, 0.98);
  --line: rgba(89, 118, 22, 0.14);
  --line-strong: rgba(163, 207, 34, 0.34);
  --cyan: #a3cf22;
  --sky: #b8df46;
  --blue: #40580f;
  --text-soft: #627149;
  --shadow: 0 24px 60px rgba(72, 93, 20, 0.12);
}

body {
  background:
    radial-gradient(circle at top left, rgba(184, 223, 70, 0.36), transparent 24rem),
    radial-gradient(circle at top right, rgba(64, 88, 15, 0.09), transparent 28rem),
    linear-gradient(180deg, #fbfef1 0%, #ebf3d8 100%);
  color: #1e2710;
}

button {
  border: 1px solid rgba(163, 207, 34, 0.18);
  background: linear-gradient(180deg, #a3cf22 0%, #86b117 100%);
  color: #f9ffe7;
  font-family: "Sora", "Manrope", ui-sans-serif, sans-serif;
  box-shadow: 0 16px 32px rgba(134, 177, 23, 0.2);
}

button:hover {
  box-shadow: 0 20px 36px rgba(134, 177, 23, 0.26);
}

button::before {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0));
}

button.secondary,
.secondary {
  background: #fffdfb;
  color: #628511;
  border-color: rgba(134, 177, 23, 0.18);
  box-shadow: none;
}

input,
select,
textarea {
  border: 1px solid rgba(94, 116, 34, 0.16);
  background: #fefff9;
  color: #273313;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

label {
  color: #485a28;
}

h1,
h2,
h3,
.sidebar-account-card strong,
.stat strong,
.topbar-title {
  font-family: "Sora", "Manrope", ui-sans-serif, sans-serif;
  color: #24140c;
}

.muted,
.tag {
  color: var(--text-soft);
}

.hero {
  border: 1px solid rgba(100, 128, 23, 0.12);
  background: linear-gradient(135deg, rgba(252, 254, 247, 0.96), rgba(240, 247, 222, 0.94));
  box-shadow: var(--shadow);
}

.brand-block {
  align-items: center;
  gap: 1.3rem;
}

.brand-hero-copy {
  display: grid;
  gap: 0.35rem;
}

.brand-hero-copy h1 {
  margin: 0;
}

.auth-showcase.card,
.auth-card,
.card,
.report-card,
.content-topbar {
  background: linear-gradient(180deg, rgba(255, 253, 250, 0.98), rgba(255, 248, 241, 0.98));
  border: 1px solid rgba(100, 128, 23, 0.12);
  box-shadow: 0 20px 52px rgba(72, 93, 20, 0.1);
  color: #24160f;
}

.auth-showcase {
  background:
    radial-gradient(circle at top right, rgba(184, 223, 70, 0.3), transparent 26rem),
    linear-gradient(180deg, rgba(252, 254, 247, 0.98), rgba(239, 247, 220, 0.98));
}

.sidebar {
  border: 0;
  background: linear-gradient(180deg, #1f260f 0%, #111608 100%);
  box-shadow: 0 24px 64px rgba(24, 31, 10, 0.28);
}

.sidebar-brand {
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

.sidebar-brand-copy strong,
.sidebar-brand-copy p,
.sidebar-account-card strong,
.sidebar-account-card span,
.sidebar-account-card small,
.nav-group-title,
.nav-pill {
  color: #f0f8d1;
}

.sidebar-account-card {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.08);
}

.content-topbar {
  position: sticky;
  top: 0.5rem;
}

.global-search input {
  background: #fbfef1;
}

.topbar-summary {
  background: #f4fadc;
  color: #587312;
  border: 1px solid rgba(163, 207, 34, 0.18);
}

.status-dot {
  background: #a3cf22;
}

.nav-pill {
  border-color: transparent;
  background: transparent;
  color: #f6d8c3;
  box-shadow: none;
}

.nav-pill:hover {
  background: rgba(255, 255, 255, 0.06);
  transform: none;
  filter: none;
  box-shadow: none;
}

.nav-pill.active,
.nav-pill.active:hover {
  background: rgba(163, 207, 34, 0.18);
  color: #f7fee1;
  border-color: rgba(184, 223, 70, 0.24);
  box-shadow: none;
}

.nav-pill.active .nav-pill-icon {
  color: #d3f16b;
}

.nav-pill-count {
  background: rgba(163, 207, 34, 0.18);
  color: #f7fee1;
}

.dashboard-section {
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.portal-overview {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(280px, 0.72fr);
  gap: 1rem;
}

.portal-main-column,
.portal-side-column {
  display: grid;
  gap: 1rem;
}

.portal-panel {
  padding: 1.2rem;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255, 253, 250, 0.98), rgba(255, 246, 237, 0.98));
  border: 1px solid rgba(100, 128, 23, 0.12);
  box-shadow: 0 20px 52px rgba(72, 93, 20, 0.1);
}

.portal-side-card {
  margin-bottom: 0;
  border-radius: 24px;
}

.portal-summary-stats {
  margin-top: 1rem;
}

.portal-reports-grid {
  margin-top: 1rem;
}

.account-action-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1rem;
}

.stats .stat,
.stat {
  padding: 1rem 1.1rem;
  border-radius: 20px;
  border: 1px solid rgba(100, 128, 23, 0.12);
  background: linear-gradient(180deg, rgba(252, 254, 247, 0.96), rgba(240, 246, 224, 0.94));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.86);
}

.stat span,
.stat small {
  color: #836a5b;
}

.report-card {
  background:
    radial-gradient(circle at top right, rgba(184, 223, 70, 0.18), transparent 28%),
    linear-gradient(180deg, rgba(252, 254, 247, 0.98), rgba(244, 249, 232, 0.98));
  border-color: rgba(100, 128, 23, 0.12);
}

.report-kicker {
  color: #86b117;
}

.chart-bar i {
  background: linear-gradient(180deg, #cce86d, #8eb81a);
  box-shadow: 0 10px 24px rgba(134, 177, 23, 0.18);
}

.chart-bar-value {
  color: #6b3b22;
}

.chart-label {
  color: #9a7e6f;
}

.operation-hero {
  display: grid;
  grid-template-columns: minmax(220px, 0.95fr) minmax(0, 1.05fr);
  gap: 1rem;
  align-items: center;
}

.operation-gauge {
  position: relative;
  min-height: 220px;
  display: grid;
  align-items: end;
  justify-items: center;
}

.operation-gauge-arc {
  position: absolute;
  inset: 0;
  border-radius: 999px 999px 0 0;
  background: conic-gradient(from 180deg at 50% 100%, #8eb81a calc(var(--operation-progress, 0) * 1%), #dde7c0 0);
  -webkit-mask: radial-gradient(circle at 50% 100%, transparent 54%, #000 55%, #000 69%, transparent 70%);
  mask: radial-gradient(circle at 50% 100%, transparent 54%, #000 55%, #000 69%, transparent 70%);
}

.operation-gauge-core {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 0.35rem;
  margin-bottom: 1.6rem;
  text-align: center;
}

.operation-gauge-core strong {
  font-size: 2rem;
}

.operation-gauge-core small {
  color: #8a7263;
}

.operation-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.operation-meta-grid article,
.operation-footer-stats div,
.side-card-split div,
.side-card-metrics article,
.referral-meta-card,
.referral-link-card {
  padding: 0.95rem 1rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(100, 128, 23, 0.12);
}

.operation-meta-grid span,
.operation-footer-stats small,
.side-card-split small,
.side-card-metrics small,
.referral-meta-card small,
.referral-link-card small {
  display: block;
  margin-bottom: 0.3rem;
  color: #8b7465;
  font-size: 0.78rem;
}

.operation-footer-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
}

.package-stack {
  display: grid;
  gap: 0.85rem;
}

.package-pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.95rem 1rem;
  border-radius: 18px;
  border: 1px solid rgba(100, 128, 23, 0.12);
  background: rgba(255, 255, 255, 0.7);
}

.package-pill.active {
  border-color: rgba(142, 184, 26, 0.26);
  background: linear-gradient(180deg, rgba(244, 250, 225, 0.98), rgba(252, 254, 247, 0.98));
}

.package-pill strong,
.package-pill span {
  color: #5b2814;
}

.package-pill small {
  display: block;
  margin-top: 0.2rem;
  color: #8c7464;
}

.side-card-kicker {
  display: inline-block;
  margin-bottom: 0.45rem;
  color: #86b117;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.side-card-value {
  margin: 0.25rem 0 0.8rem;
  font-family: "Sora", "Manrope", ui-sans-serif, sans-serif;
  font-size: 2rem;
  font-weight: 800;
  color: #30180d;
}

.side-card-split,
.side-card-metrics,
.referral-grid {
  display: grid;
  gap: 0.8rem;
}

.side-card-split {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.side-card-metrics {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.side-card-note {
  margin-top: 0.9rem;
  padding: 0.9rem 1rem;
  border-radius: 18px;
  background: #f8fce9;
  border: 1px solid rgba(100, 128, 23, 0.1);
  color: #7d6658;
  word-break: break-word;
}

.binary-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  width: fit-content;
  padding: 0.7rem 1rem;
  border-radius: 999px;
  font-weight: 700;
  color: #f7fee1;
  background: linear-gradient(180deg, #6d9611, #40580f);
}

.binary-pill.right,
.referral-meta-card.binary.right {
  background: linear-gradient(180deg, #b8df46, #7ca814);
  color: #f9ffe8;
}

.binary-pill.left,
.referral-meta-card.binary.left {
  background: linear-gradient(180deg, #7da61a, #4f6a11);
  color: #f4ffd9;
}

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

.referral-link-card {
  grid-column: 1 / -1;
}

.referral-link-card code,
.side-card-note,
.withdraw-summary-head code {
  font-size: 0.82rem;
}

.referral-link-card code {
  display: block;
  white-space: normal;
  word-break: break-all;
  color: #5d2d18;
}

.payment-box,
.payment-flow-card,
.payment-success-card,
.withdraw-summary-box,
.withdraw-metric,
.withdraw-rule-note,
.list .item,
.support-thread-card,
.support-message,
.network-level-card,
.network-tree-card,
.order-card,
.product-card,
.cart-summary-card {
  background: rgba(255, 255, 255, 0.78);
  border-color: rgba(117, 78, 53, 0.1);
  color: #24160f;
}

.support-thread-card.active,
.network-tree-card.expandable[aria-expanded="true"] {
  border-color: rgba(142, 184, 26, 0.28);
  box-shadow: 0 14px 28px rgba(142, 184, 26, 0.12);
}

.ring-metric {
  background:
    radial-gradient(circle at center, #fffaf5 48%, transparent 49%),
    conic-gradient(#8eb81a calc(var(--ring, 0) * 1%), #dde7c0 0);
}

.ring-warning {
  background:
    radial-gradient(circle at center, #fffaf5 48%, transparent 49%),
    conic-gradient(#a4481f calc(var(--ring, 0) * 1%), #f0ddd1 0);
}

.notification-dropdown {
  background: #fffdfb;
  border-color: rgba(117, 78, 53, 0.12);
}

@media (max-width: 1180px) {
  .portal-overview,
  .operation-hero,
  .account-action-grid {
    grid-template-columns: 1fr;
  }

  .portal-side-column {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 840px) {
  .portal-side-column,
  .side-card-metrics,
  .operation-footer-stats,
  .referral-grid,
  .operation-meta-grid {
    grid-template-columns: 1fr;
  }

  .portal-panel,
  .portal-side-card {
    padding: 1rem;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 15% 0%, rgba(22, 104, 255, 0.28), transparent 28rem),
    radial-gradient(circle at 85% 10%, rgba(96, 230, 255, 0.16), transparent 24rem),
    linear-gradient(180deg, #06111f 0%, #040b16 100%);
}

button,
input,
select {
  font: inherit;
}

button {
  border: 1px solid rgba(96, 230, 255, 0.24);
  border-radius: 18px;
  padding: 0.9rem 1.1rem;
  cursor: pointer;
  background:
    linear-gradient(135deg, rgba(8, 22, 42, 0.98), rgba(14, 61, 146, 0.98)),
    linear-gradient(135deg, rgba(96, 230, 255, 0.46), rgba(27, 107, 255, 0.14));
  color: #fff;
  font-family: "Plus Jakarta Sans", "Inter", ui-sans-serif, system-ui, sans-serif;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-transform: none;
  box-shadow:
    0 0 0 1px rgba(96, 230, 255, 0.1),
    0 0 24px rgba(65, 181, 255, 0.18),
    0 12px 34px rgba(12, 76, 190, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    inset 0 -8px 20px rgba(0, 0, 0, 0.28);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, filter 0.18s ease;
  position: relative;
  overflow: hidden;
}

button:hover {
  transform: translateY(-1px);
  filter: brightness(1.08);
  box-shadow:
    0 0 0 1px rgba(96, 230, 255, 0.16),
    0 0 30px rgba(96, 230, 255, 0.2),
    0 18px 42px rgba(12, 76, 190, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    inset 0 -10px 22px rgba(0, 0, 0, 0.32);
}

button::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0));
  pointer-events: none;
}

button.secondary {
  background:
    linear-gradient(135deg, rgba(7, 18, 34, 0.96), rgba(9, 30, 58, 0.96)),
    linear-gradient(135deg, rgba(96, 230, 255, 0.16), rgba(27, 107, 255, 0.06));
  border-color: rgba(96, 230, 255, 0.1);
  color: #dff7ff;
}

input,
select {
  width: 100%;
  margin-top: 0.4rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 0.85rem 1rem;
  background: rgba(255, 255, 255, 0.05);
  color: #eaf7ff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

label {
  display: block;
  color: #b7d7f4;
}

form {
  display: grid;
  gap: 1rem;
}

.toggle-line {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.toggle-line input {
  width: auto;
  margin: 0;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3,
.sidebar-account-card strong,
.stat strong,
.topbar-title {
  font-family: "Plus Jakarta Sans", "Inter", ui-sans-serif, system-ui, sans-serif;
  letter-spacing: -0.02em;
}

.page {
  width: min(1520px, calc(100% - 1rem));
  margin: 0 auto;
  padding: 0.5rem 0 1.5rem;
}

.app-shell {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 0;
  align-items: start;
  transition: grid-template-columns 0.24s ease;
}

.app-shell.sidebar-collapsed {
  grid-template-columns: 88px minmax(0, 1fr);
}

.app-content {
  min-width: 0;
  display: grid;
  gap: 0.9rem;
  padding-left: 1rem;
}

#accountSection,
#matrixSection,
#transactionsSection,
#userWithdrawSection,
#storeSection {
  border-radius: 24px;
}

.withdraw-grid {
  grid-template-columns: minmax(320px, 0.95fr) minmax(380px, 1fr) minmax(340px, 1.05fr);
  align-items: start;
}

.withdraw-wallet-card,
.withdraw-request-card,
.withdraw-history-card {
  min-height: 100%;
}

.withdraw-wallet-card,
.withdraw-request-card {
  display: grid;
  align-content: start;
}

.withdraw-summary-box {
  padding: 1rem;
  border-radius: 24px;
}

.withdraw-summary-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.withdraw-summary-head code {
  display: block;
  margin-top: 0.35rem;
}

.withdraw-summary-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.withdraw-metric {
  padding: 0.95rem;
  border-radius: 18px;
  border: 1px solid rgba(96, 230, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  display: grid;
  gap: 0.28rem;
}

.withdraw-metric span {
  color: var(--text-soft);
  font-size: 0.82rem;
}

.withdraw-metric strong {
  font-size: 1.02rem;
}

.withdraw-metric.primary {
  background: linear-gradient(180deg, rgba(10, 40, 79, 0.88), rgba(6, 18, 35, 0.95));
  border-color: rgba(96, 230, 255, 0.16);
}

.withdraw-rule-note {
  margin-top: 0.9rem;
  padding: 0.95rem 1rem;
  border-radius: 18px;
  border: 1px solid rgba(255, 184, 77, 0.18);
  background: rgba(255, 184, 77, 0.06);
  display: grid;
  gap: 0.3rem;
}

.withdraw-rule-note.success {
  border-color: rgba(92, 226, 167, 0.18);
  background: rgba(92, 226, 167, 0.07);
}

.withdraw-history-card {
  overflow: hidden;
}

.withdraw-history-list {
  gap: 0.9rem;
}

.withdraw-history-row {
  display: grid;
  gap: 0.9rem;
  padding: 1rem 1.05rem;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(255, 255, 255, 0.02);
}

.withdraw-history-top {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 0.9rem;
}

.withdraw-history-main {
  min-width: 0;
}

.withdraw-history-main strong {
  display: block;
  font-size: 1rem;
}

.withdraw-history-main p {
  margin-top: 0.3rem;
  word-break: break-word;
}

.withdraw-history-metric {
  display: grid;
  gap: 0.22rem;
}

.withdraw-history-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.withdraw-history-top .status-badge {
  flex-shrink: 0;
  text-transform: capitalize;
}

.hero,
.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.hero {
  margin-bottom: 1rem;
  padding: 0.9rem 1.2rem;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(10, 23, 45, 0.88), rgba(8, 19, 37, 0.68));
  box-shadow: var(--shadow);
  flex-wrap: wrap;
}

.sidebar {
  position: sticky;
  top: 0.5rem;
  display: grid;
  gap: 1rem;
  padding: 1.1rem 0.85rem;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  border-top: 1px solid rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid rgba(255, 255, 255, 0.02);
  border-left: 1px solid rgba(255, 255, 255, 0.02);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(4, 6, 11, 0.99), rgba(7, 10, 18, 0.98));
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.34);
  min-height: calc(100vh - 1rem);
  transition: padding 0.24s ease, border-radius 0.24s ease;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.15rem 0.25rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.sidebar-brand-copy {
  display: grid;
  gap: 0.15rem;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.sidebar-logo {
  width: 48px;
  height: 48px;
  object-fit: contain;
  filter: drop-shadow(0 8px 18px rgba(27, 107, 255, 0.24));
}

.sidebar-logo-large {
  width: 92px;
  height: 92px;
  margin-inline: auto;
  filter: drop-shadow(0 12px 26px rgba(27, 107, 255, 0.24));
}

.sidebar-context {
  display: grid;
  gap: 0.85rem;
}

.sidebar-account-card {
  display: grid;
  gap: 0.25rem;
  padding: 0.9rem 0.95rem;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.sidebar-account-card small {
  color: var(--text-soft);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.68rem;
}

.sidebar-account-card strong {
  font-size: 0.96rem;
}

.sidebar-account-card span {
  color: var(--text-soft);
  font-size: 0.8rem;
}

.sidebar-primary-action {
  width: 100%;
  justify-content: center;
  border-radius: 14px;
}

.sidebar-logout {
  margin-top: auto;
  border-radius: 14px;
}

.hero h1 {
  margin: 0;
  font-size: clamp(1.6rem, 2.8vw, 2.4rem);
  color: #eefcff;
}

.tag,
.muted {
  color: var(--text-soft);
}

.meta-line {
  margin-bottom: 0;
}

.brand-block {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.brand-logo {
  width: 104px;
  height: 104px;
  object-fit: contain;
  filter: drop-shadow(0 18px 36px rgba(27, 107, 255, 0.18));
}

.top-nav {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.nav-group {
  display: grid;
  gap: 0.55rem;
}

.nav-group-title {
  padding: 0 0.35rem;
  color: rgba(255, 255, 255, 0.42);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.nav-group-items {
  display: grid;
  gap: 0.5rem;
}

.content-topbar {
  position: sticky;
  top: 0.5rem;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0;
  padding: 0.95rem 1.1rem;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(17, 18, 26, 0.98), rgba(12, 13, 20, 0.98));
  border-color: rgba(255, 255, 255, 0.06);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.22);
}

.content-topbar-main,
.content-topbar-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.notification-center {
  position: relative;
}

.notification-bell {
  min-width: 56px;
  padding-inline: 0;
  position: relative;
}

.notification-bell-icon {
  font-size: 1rem;
}

.notification-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 24px;
  height: 24px;
  padding: 0 0.35rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #ff4d6d, #ff1f4d);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  box-shadow: 0 10px 24px rgba(255, 31, 77, 0.35);
}

.notification-dropdown {
  position: absolute;
  top: calc(100% + 0.8rem);
  right: 0;
  width: min(380px, 84vw);
  max-height: 460px;
  overflow: auto;
  padding: 1rem;
  border-radius: 22px;
  border: 1px solid rgba(96, 230, 255, 0.14);
  background: linear-gradient(180deg, rgba(10, 23, 45, 0.98), rgba(6, 16, 31, 0.98));
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.38);
}

.notification-dropdown-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.9rem;
}

.notification-list {
  display: grid;
  gap: 0.7rem;
}

.notification-item {
  padding: 0.9rem 1rem;
  border-radius: 18px;
  border: 1px solid rgba(96, 230, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.notification-item.unread {
  border-color: rgba(96, 230, 255, 0.24);
  box-shadow: inset 0 0 0 1px rgba(96, 230, 255, 0.08);
}

.notification-item p,
.notification-item small {
  margin-bottom: 0;
}

.live-activity-item {
  border-color: rgba(96, 230, 255, 0.2);
}

.topbar-title {
  margin-bottom: 0;
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  letter-spacing: -0.02em;
}

.global-search {
  position: relative;
  min-width: min(520px, 52vw);
  display: block;
}

.global-search input {
  margin-top: 0;
  padding-left: 2.8rem;
  background: rgba(0, 0, 0, 0.36);
  border-color: rgba(255, 255, 255, 0.08);
}

.search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-soft);
  pointer-events: none;
}

.topbar-summary {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: #e7f7ff;
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cyan), var(--sky));
  box-shadow: 0 0 18px rgba(96, 230, 255, 0.55);
}

.icon-toggle {
  min-width: 56px;
  padding-inline: 0;
  font-size: 1.1rem;
}

.nav-pill,
.auth-tab {
  min-width: 120px;
  padding-inline: 0.95rem;
}

.nav-pill {
  background: rgba(255, 255, 255, 0.01);
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.85rem;
  text-align: left;
  padding: 0.8rem 0.9rem;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  border-radius: 14px;
  border: 1px solid transparent;
  box-shadow: none;
  text-transform: none;
}

.nav-pill-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: var(--cyan);
  flex: 0 0 auto;
}

.nav-pill-label {
  white-space: nowrap;
  font-size: 0.9rem;
}

.nav-pill-count {
  margin-left: auto;
  min-width: 24px;
  padding: 0.18rem 0.42rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  font-size: 0.68rem;
  text-align: center;
}

.nav-pill.active,
.auth-tab.active {
  background: linear-gradient(135deg, rgba(24, 96, 255, 0.96), rgba(27, 107, 255, 0.92));
  color: #ffffff;
  border-color: rgba(98, 163, 255, 0.3);
  box-shadow: 0 12px 28px rgba(24, 96, 255, 0.22);
}

.nav-pill.active .nav-pill-icon {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.16);
  color: #fff;
}

.auth-shell {
  display: grid;
  grid-template-columns: minmax(320px, 1.15fr) minmax(360px, 0.95fr);
  gap: 1rem;
  align-items: stretch;
}

.auth-showcase,
.auth-card {
  min-height: 100%;
}

.auth-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.8rem;
  border: 1px solid rgba(96, 230, 255, 0.18);
  border-radius: 999px;
  background: rgba(96, 230, 255, 0.08);
  color: var(--cyan);
  font-size: 0.86rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.auth-showcase h1 {
  margin: 1rem 0 0.8rem;
  font-size: clamp(2.1rem, 4vw, 4rem);
  line-height: 1.02;
}

.showcase-grid {
  display: grid;
  gap: 0.85rem;
  margin-top: 1.6rem;
}

.app-download-card {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 1.25rem 0 0.35rem;
  padding: 16px 18px;
  border-radius: 20px;
  border: 1px solid rgba(101, 193, 255, 0.16);
  background:
    linear-gradient(180deg, rgba(8, 15, 28, 0.96), rgba(8, 16, 30, 0.9)),
    radial-gradient(circle at top left, rgba(43, 134, 255, 0.2), transparent 48%);
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.24);
}

.app-download-icon {
  width: 56px;
  height: 56px;
  min-width: 56px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  color: #65c8ff;
  background: linear-gradient(180deg, rgba(16, 35, 67, 0.98), rgba(7, 16, 32, 0.98));
  border: 1px solid rgba(101, 193, 255, 0.16);
}

.app-download-icon svg {
  width: 30px;
  height: 30px;
}

.app-download-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.app-download-copy strong {
  font-size: 1rem;
}

.app-download-copy span {
  color: var(--muted);
  font-size: 0.92rem;
}

.download-app-btn {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 168px;
  padding: 12px 18px;
  border-radius: 16px;
  color: #eff7ff;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.01em;
  background: linear-gradient(135deg, #1664ff, #45c3ff);
  border: 1px solid rgba(95, 199, 255, 0.32);
  box-shadow: 0 16px 38px rgba(22, 101, 255, 0.25);
}

.download-app-btn:hover {
  transform: translateY(-1px);
}

@media (max-width: 900px) {
  .app-download-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .download-app-btn {
    margin-left: 0;
    width: 100%;
  }
}

.showcase-chip {
  display: grid;
  gap: 0.35rem;
  padding: 1rem 1.05rem;
  border-radius: 22px;
  border: 1px solid rgba(96, 230, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
}

.auth-card {
  padding: 1.2rem;
}

.auth-tabs {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1.1rem;
}

.auth-pane {
  display: grid;
  gap: 1rem;
}

.auth-form {
  display: grid;
  gap: 1rem;
}

.recover-password-form {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(96, 230, 255, 0.08);
}

.section-head h2 {
  margin-bottom: 0;
}

.register-fee-box {
  display: grid;
  gap: 0.35rem;
  padding: 1rem 1.1rem;
  border-radius: 22px;
  border: 1px solid rgba(96, 230, 255, 0.18);
  background:
    linear-gradient(135deg, rgba(10, 28, 54, 0.86), rgba(7, 51, 112, 0.72)),
    rgba(255, 255, 255, 0.04);
}

.referral-card {
  margin-top: 1rem;
  display: grid;
  gap: 1rem;
}

.account-action-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(360px, 1.1fr);
  gap: 1rem;
  margin-top: 1rem;
  align-items: start;
}

.account-action-grid > .card,
.account-action-grid > .referral-card {
  margin-bottom: 0;
}

.account-register-card {
  display: grid;
  gap: 1rem;
  border-color: rgba(96, 230, 255, 0.12);
  background:
    radial-gradient(circle at top right, rgba(96, 230, 255, 0.09), transparent 30%),
    linear-gradient(180deg, rgba(13, 16, 24, 0.98), rgba(7, 9, 15, 0.98));
}

.account-register-card .toolbar h3,
.referral-card h3 {
  font-size: 1rem;
  margin-bottom: 0;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}

.card {
  margin-bottom: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 24px;
  padding: 1.2rem;
  background: linear-gradient(180deg, rgba(14, 16, 24, 0.98), rgba(8, 10, 16, 0.98));
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(14px);
}

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
}

.reports-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.report-card {
  grid-column: span 4;
  border: 1px solid rgba(96, 230, 255, 0.12);
  border-radius: 22px;
  padding: 1rem;
  background:
    radial-gradient(circle at top right, rgba(96, 230, 255, 0.14), transparent 28%),
    linear-gradient(180deg, rgba(12, 29, 56, 0.92), rgba(7, 16, 32, 0.96));
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.22);
  display: grid;
  gap: 1rem;
}

.report-card-wide {
  grid-column: span 8;
}

.report-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 1rem;
}

.report-head h3 {
  margin-bottom: 0;
  font-size: 1rem;
}

.report-kicker {
  display: inline-block;
  margin-bottom: 0.35rem;
  color: var(--cyan);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.68rem;
}

.chart-bars {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  align-items: end;
  gap: 0.7rem;
  min-height: 180px;
}

.labeled-bars {
  grid-template-columns: repeat(auto-fit, minmax(72px, 1fr));
}

.chart-bar {
  height: 100%;
  display: flex;
  align-items: end;
}

.chart-bar-group {
  display: grid;
  gap: 0.45rem;
  align-items: end;
}

.chart-bar i {
  width: 100%;
  display: block;
  border-radius: 16px 16px 8px 8px;
  background: linear-gradient(180deg, var(--cyan), var(--blue));
  box-shadow: 0 12px 24px rgba(27, 107, 255, 0.24);
}

.chart-bar-value,
.chart-label {
  display: block;
  text-align: center;
}

.chart-bar-value {
  color: #f4fbff;
  font-size: 0.72rem;
}

.chart-label {
  color: var(--text-soft);
  font-size: 0.7rem;
}

.sparkline {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  align-items: end;
  gap: 0.55rem;
  min-height: 110px;
}

.sparkline i {
  display: block;
  border-radius: 999px 999px 10px 10px;
  background: linear-gradient(180deg, rgba(96, 230, 255, 0.35), rgba(27, 107, 255, 0.98));
}

.timeline-chart {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(44px, 1fr));
  align-items: end;
  gap: 0.65rem;
  min-height: 180px;
}

.timeline-point {
  display: grid;
  gap: 0.45rem;
  align-items: end;
  justify-items: center;
}

.timeline-point span {
  width: 100%;
  display: block;
  border-radius: 14px 14px 8px 8px;
  background: linear-gradient(180deg, rgba(96, 230, 255, 0.42), rgba(27, 107, 255, 0.98));
  box-shadow: 0 10px 22px rgba(27, 107, 255, 0.2);
  min-height: 14px;
}

.timeline-point small,
.timeline-point strong {
  text-align: center;
}

.timeline-point small {
  color: var(--text-soft);
  font-size: 0.68rem;
}

.timeline-point strong {
  font-size: 0.72rem;
  color: #f4fbff;
}

.report-split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.report-split > div {
  display: grid;
  gap: 0.8rem;
}

.progress-report {
  display: grid;
  gap: 0.9rem;
}

.progress-report-row {
  display: grid;
  gap: 0.45rem;
}

.progress-report-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.progress-report-row small {
  color: var(--text-soft);
}

.data-table {
  display: grid;
  gap: 0.55rem;
}

.data-table-head,
.data-table-row {
  display: grid;
  grid-template-columns: minmax(70px, 0.8fr) repeat(3, minmax(90px, 1fr));
  gap: 0.75rem;
  align-items: center;
}

.data-table-head {
  padding: 0.75rem 0.9rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-soft);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.72rem;
}

.data-table-row {
  padding: 0.8rem 0.9rem;
  border-radius: 16px;
  border: 1px solid rgba(96, 230, 255, 0.08);
  background: rgba(255, 255, 255, 0.025);
}

.dual-metric {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.dual-metric > div {
  padding: 0.85rem 0.95rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(96, 230, 255, 0.1);
}

.dual-metric strong,
.ring-metric strong {
  display: block;
  font-size: 1.3rem;
  margin-top: 0.2rem;
}

.ring-metric {
  width: 158px;
  height: 158px;
  margin: 0 auto;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at center, rgba(6, 15, 29, 0.96) 0 56px, transparent 57px),
    conic-gradient(var(--cyan) calc(var(--ring, 0) * 1%), rgba(255, 255, 255, 0.08) 0);
  box-shadow: inset 0 0 0 1px rgba(96, 230, 255, 0.1);
}

.ring-warning {
  background:
    radial-gradient(circle at center, rgba(6, 15, 29, 0.96) 0 56px, transparent 57px),
    conic-gradient(#ffb347 calc(var(--ring, 0) * 1%), rgba(255, 255, 255, 0.08) 0);
}

.ring-metric > div {
  text-align: center;
}

.stat {
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 18px;
  padding: 0.95rem;
  background: rgba(255, 255, 255, 0.02);
}

.stat strong {
  display: block;
  margin-top: 0.35rem;
  font-size: 1.3rem;
}

.list {
  display: grid;
  gap: 0.75rem;
}

.loading-card {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.1rem;
  border-radius: 18px;
  border: 1px solid rgba(96, 230, 255, 0.12);
  background: rgba(255, 255, 255, 0.035);
  color: var(--text-soft);
}

.loading-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 14px rgba(96, 230, 255, 0.55);
  animation: pulseDot 1.1s ease-in-out infinite;
}

@keyframes pulseDot {
  0%, 100% { transform: scale(0.9); opacity: 0.65; }
  50% { transform: scale(1.15); opacity: 1; }
}

.admin-users-toolbar {
  margin-top: 0.6rem;
  align-items: end;
}

.admin-users-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.admin-users-controls input {
  min-width: 280px;
  margin-top: 0;
}

.item {
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 18px;
  padding: 0.95rem 1rem;
  background: rgba(255, 255, 255, 0.015);
  box-shadow: none;
}

.item-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 1.2rem;
  margin-top: 1rem;
}

.product-card {
  border: 1px solid rgba(96, 230, 255, 0.12);
  border-radius: 28px;
  padding: 1rem;
  background: linear-gradient(180deg, rgba(10, 25, 49, 0.96), rgba(6, 15, 30, 0.96));
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  display: grid;
  gap: 1rem;
  overflow: hidden;
}

.product-media {
  position: relative;
  min-height: 220px;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(96, 230, 255, 0.12);
  background: radial-gradient(circle at 20% 20%, rgba(65, 181, 255, 0.32), transparent 42%), radial-gradient(circle at 78% 18%, rgba(27, 107, 255, 0.24), transparent 34%), linear-gradient(135deg, rgba(8, 20, 39, 0.98), rgba(7, 36, 74, 0.98));
}

.product-media.placeholder {
  display: grid;
  place-items: center;
  color: rgba(230, 247, 255, 0.8);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.82rem;
}

.product-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.product-glow {
  position: absolute;
  inset: auto -10% -40% auto;
  width: 190px;
  height: 190px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(96, 230, 255, 0.28), transparent 70%);
  pointer-events: none;
}

.product-topline {
  position: absolute;
  inset: 0 0 auto 0;
  display: flex;
  justify-content: space-between;
  gap: 0.65rem;
  padding: 0.9rem;
}

.product-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.42rem 0.8rem;
  border-radius: 999px;
  border: 1px solid rgba(96, 230, 255, 0.16);
  background: rgba(6, 17, 33, 0.76);
  backdrop-filter: blur(10px);
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #eafcff;
}

.product-chip.soft {
  color: var(--cyan);
}

.product-body {
  display: grid;
  gap: 0.9rem;
}

.product-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: start;
}

.product-heading h3 {
  margin-bottom: 0.45rem;
  font-size: 1.18rem;
}

.product-price-badge {
  min-width: 124px;
  padding: 0.8rem 0.9rem;
  border-radius: 20px;
  border: 1px solid rgba(96, 230, 255, 0.14);
  background: linear-gradient(180deg, rgba(17, 49, 98, 0.7), rgba(7, 18, 35, 0.92));
  text-align: right;
}

.product-price-badge span,
.eyebrow,
.commerce-item-total span,
.order-metrics span,
.payment-callout span,
.payment-meta-card span {
  display: block;
  margin-bottom: 0.25rem;
  color: var(--text-soft);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.product-price-badge strong {
  font-size: 1.05rem;
  color: #f2fbff;
}

.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding-top: 0.35rem;
  border-top: 1px solid rgba(96, 230, 255, 0.08);
}

.product-qty {
  min-width: 118px;
}

.product-qty span {
  display: block;
  margin-bottom: 0.3rem;
  font-size: 0.78rem;
  color: var(--text-soft);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.btn-store-primary {
  min-width: 170px;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.75rem 0;
}

.pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.35rem 0.7rem;
  background: rgba(96, 230, 255, 0.1);
  border: 1px solid rgba(96, 230, 255, 0.08);
  font-size: 0.9rem;
}

.payment-box {
  margin-top: 1rem;
  border: 1px solid rgba(96, 230, 255, 0.16);
  border-radius: 28px;
  padding: 1.2rem;
  background: linear-gradient(180deg, rgba(10, 31, 61, 0.86), rgba(6, 18, 35, 0.92));
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.2);
}

.payment-box code {
  word-break: break-all;
  font-size: 0.92rem;
  color: #ecf9ff;
}

.payment-qr {
  display: grid;
  place-items: center;
  margin: 1rem 0 0;
}

.payment-qr img {
  width: 220px;
  height: 220px;
  background: #fff;
  border-radius: 16px;
  padding: 0.5rem;
}

.payment-box-grid {
  display: grid;
  grid-template-columns: minmax(220px, 260px) minmax(0, 1fr);
  gap: 1.2rem;
  align-items: stretch;
}

.payment-qr-wrap,
.payment-details {
  border-radius: 22px;
  border: 1px solid rgba(96, 230, 255, 0.1);
  background: rgba(255, 255, 255, 0.035);
  padding: 1rem;
}

.payment-callout {
  margin-bottom: 1rem;
  padding: 1rem;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(17, 57, 113, 0.72), rgba(9, 23, 44, 0.9));
  border: 1px solid rgba(96, 230, 255, 0.14);
}

.payment-callout strong {
  font-size: 1.4rem;
}

.payment-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.payment-meta-card {
  padding: 0.95rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(96, 230, 255, 0.08);
}

.payment-status {
  margin-top: 1rem;
  border-radius: 18px;
  padding: 0.9rem 1rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(96, 230, 255, 0.14);
  display: grid;
  gap: 0.35rem;
}

.payment-status strong {
  font-size: 0.98rem;
}

.payment-status p {
  margin: 0;
  color: var(--text-soft);
}

.payment-status.pending {
  background: rgba(59, 130, 246, 0.12);
  border-color: rgba(96, 165, 250, 0.32);
}

.payment-status.warning {
  background: rgba(245, 158, 11, 0.12);
  border-color: rgba(245, 158, 11, 0.34);
}

.payment-status.expired {
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(248, 113, 113, 0.34);
}

.payment-status.success {
  background: rgba(52, 211, 153, 0.16);
  border: 1px solid rgba(52, 211, 153, 0.45);
}

.compact-card {
  margin-bottom: 0;
}

.step-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(120px, 1fr));
  gap: 0.75rem;
  margin-top: 1rem;
}

.admin-step-tabs {
  grid-template-columns: repeat(6, minmax(120px, 1fr));
  margin-bottom: 1.2rem;
}

.admin-step-tabs .step-tab,
.admin-subtabs .step-tab {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
}

.admin-nav-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 10px;
  background: rgba(96, 230, 255, 0.1);
  border: 1px solid rgba(96, 230, 255, 0.14);
  color: var(--cyan);
  font-size: 0.88rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.admin-step-tabs .step-tab small,
.admin-subtabs .step-tab small {
  min-width: 28px;
  padding: 0.2rem 0.45rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  font-size: 0.72rem;
  text-align: center;
}

#welcomeTitle,
#adminView h2,
#accountSection h2,
#matrixSection h2,
#transactionsSection h2,
#storeSection h2 {
  font-size: clamp(1rem, 1.45vw, 1.2rem);
  letter-spacing: -0.02em;
}

#userMeta,
#matrixMeta,
#contentEyebrow {
  font-size: 0.8rem;
}

#accountSection .toolbar,
#matrixSection .toolbar,
#storeSection .toolbar {
  align-items: center;
}

#balanceCards + .reports-grid {
  margin-top: 0.75rem;
}

.referral-card .payment-box {
  background: rgba(255, 255, 255, 0.03);
}

.payment-box p {
  margin-bottom: 0.45rem;
}

.payment-success-card {
  display: grid;
  gap: 0.9rem;
  padding: 1rem;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(10, 48, 32, 0.72), rgba(8, 25, 17, 0.92));
  border: 1px solid rgba(52, 211, 153, 0.24);
}

.payment-success-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-width: 118px;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  background: rgba(52, 211, 153, 0.18);
  border: 1px solid rgba(52, 211, 153, 0.35);
  color: #d9fff1;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.payment-success-card strong {
  font-size: 1.08rem;
}

.payment-success-card p {
  margin: 0;
  color: var(--text-soft);
}

.payment-flow-card {
  display: grid;
  gap: 0.95rem;
  padding: 1rem;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(96, 230, 255, 0.1);
}

.payment-flow-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.85rem;
}

.payment-flow-head strong {
  display: block;
  margin-top: 0.2rem;
  font-size: 1rem;
  word-break: break-word;
}

.payment-flow-state {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 96px;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  background: rgba(59, 130, 246, 0.16);
  border: 1px solid rgba(96, 165, 250, 0.32);
  color: #d9ebff;
  font-size: 0.8rem;
  font-weight: 700;
}

.payment-flow-state.warning {
  background: rgba(245, 158, 11, 0.16);
  border-color: rgba(245, 158, 11, 0.32);
  color: #ffe8bf;
}

.payment-progress {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.85rem;
  align-items: center;
  padding: 0.95rem 1rem;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(17, 57, 113, 0.72), rgba(9, 23, 44, 0.9));
  border: 1px solid rgba(96, 230, 255, 0.14);
}

.payment-progress strong {
  display: block;
  margin-bottom: 0.2rem;
}

.payment-progress p {
  margin: 0;
  color: var(--text-soft);
}

.payment-progress-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(96, 230, 255, 0.18);
  color: #eefbff;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.tx-confirm-form {
  display: grid;
  gap: 0.75rem;
  margin-top: 0.4rem;
  padding: 1rem;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(96, 230, 255, 0.1);
}

.tx-confirm-form label {
  display: grid;
  gap: 0.45rem;
  font-weight: 600;
  color: #eef8ff;
}

.tx-confirm-form input {
  width: 100%;
}

.tx-confirm-form button {
  width: 100%;
}

.tx-confirm-form small,
.payment-inline-note {
  color: var(--text-soft);
  line-height: 1.45;
}

.list .item strong {
  font-size: 0.98rem;
}

.treasury-history-item {
  display: grid;
  gap: 0.55rem;
}

.treasury-history-top,
.treasury-history-meta {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 0.75rem;
}

.treasury-history-meta {
  color: var(--text-soft);
  flex-wrap: wrap;
}

.finance-row {
  display: grid;
  grid-template-columns: minmax(200px, 1.4fr) repeat(3, minmax(120px, 1fr));
  gap: 1rem;
  align-items: center;
}

.finance-row small {
  display: block;
  color: var(--text-soft);
  margin-bottom: 0.25rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.68rem;
}

.sidebar-primary-action,
.content-topbar,
.nav-pill,
.stat,
.report-card,
.item {
  transition: all 0.18s ease;
}

.admin-subtabs {
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  margin-bottom: 1rem;
}

.admin-panel-section {
  display: grid;
  gap: 1rem;
}

.admin-subsection {
  display: grid;
  gap: 1rem;
}

.step-tab {
  background:
    linear-gradient(135deg, rgba(7, 18, 34, 0.96), rgba(9, 30, 58, 0.96)),
    linear-gradient(135deg, rgba(96, 230, 255, 0.14), rgba(27, 107, 255, 0.05));
  color: #d7e4ff;
}

.step-tab.active {
  background:
    linear-gradient(135deg, rgba(12, 51, 110, 0.98), rgba(96, 230, 255, 0.96)),
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
  color: #03101d;
  border-color: rgba(96, 230, 255, 0.45);
}

.store-step {
  margin-top: 1.25rem;
}

.store-step .toolbar h3 {
  margin-bottom: 0.2rem;
}

.step-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}

.commerce-item,
.admin-commerce-item,
.order-card {
  display: grid;
  gap: 1rem;
}

.commerce-item {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.commerce-item-main {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.commerce-item-icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  border: 1px solid rgba(96, 230, 255, 0.16);
  background: linear-gradient(135deg, rgba(14, 49, 104, 0.9), rgba(8, 23, 44, 0.95));
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: var(--cyan);
}

.commerce-item-side {
  display: grid;
  justify-items: end;
  gap: 0.7rem;
}

.commerce-item-total {
  text-align: right;
}

.commerce-item-total strong {
  font-size: 1.08rem;
}

.commerce-item-actions {
  justify-content: flex-end;
}

.cart-summary-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.cart-summary-pill {
  min-width: 88px;
  padding: 0.75rem 0.9rem;
  border-radius: 18px;
  background: rgba(96, 230, 255, 0.1);
  border: 1px solid rgba(96, 230, 255, 0.12);
  text-align: center;
  font-weight: 700;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(96, 230, 255, 0.14);
  background: rgba(96, 230, 255, 0.08);
  color: #dff8ff;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.74rem;
  font-weight: 700;
}

.status-badge.success {
  background: rgba(52, 211, 153, 0.12);
  border-color: rgba(52, 211, 153, 0.2);
  color: #adffe5;
}

.status-badge.danger,
.micro-btn.danger {
  background: rgba(248, 113, 113, 0.12);
  border-color: rgba(248, 113, 113, 0.2);
  color: #ffd0d0;
}

.order-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.order-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.75rem;
}

.order-metrics > div {
  padding: 0.9rem;
  border-radius: 16px;
  border: 1px solid rgba(96, 230, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.micro-btn {
  min-width: unset;
  padding: 0.7rem 0.9rem;
  border-radius: 16px;
  font-size: 0.78rem;
}

.level-ribbon {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(92px, 1fr));
  gap: 0.65rem;
  margin-top: 1rem;
}

.season-bonus-ribbon {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.85rem;
  margin-top: 1rem;
}

.season-metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
  margin: 1rem 0;
}

.season-metric-card {
  border: 1px solid rgba(96, 230, 255, 0.14);
  border-radius: 22px;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.04);
  display: grid;
  gap: 0.85rem;
}

.compact-stats {
  grid-template-columns: repeat(2, minmax(120px, 1fr));
}

.level-progress-list {
  display: grid;
  gap: 0.55rem;
}

.level-progress-item {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.7rem 0.85rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(96, 230, 255, 0.08);
}

.season-bonus-card {
  border: 1px solid rgba(96, 230, 255, 0.14);
  border-radius: 18px;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.04);
  display: grid;
  gap: 0.65rem;
}

.season-bonus-card.locked {
  opacity: 0.62;
}

.season-bonus-card.unlocked {
  border-color: rgba(96, 230, 255, 0.36);
  box-shadow: 0 0 24px rgba(96, 230, 255, 0.12);
}

.season-bonus-head {
  display: grid;
  gap: 0.2rem;
}

.progress-track {
  width: 100%;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--sky), var(--cyan));
}

.season-bonus-meta {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  color: var(--text-soft);
}

.level-pill {
  border: 1px solid rgba(96, 230, 255, 0.12);
  border-radius: 14px;
  padding: 0.65rem;
  background: rgba(255, 255, 255, 0.04);
}

.level-pill span,
.level-pill strong,
.level-pill small {
  display: block;
}

.level-pill strong {
  margin: 0.2rem 0;
}

.level-pill.reached {
  border-color: rgba(52, 211, 153, 0.75);
  background: rgba(52, 211, 153, 0.14);
}

.level-pill.current {
  border-color: rgba(96, 230, 255, 0.55);
  background: rgba(65, 181, 255, 0.16);
}

.level-pill.locked {
  opacity: 0.52;
}

.matrix-tree {
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
  overflow-x: auto;
}

.network-levels {
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
}

.network-level-card {
  border: 1px solid rgba(96, 230, 255, 0.12);
  border-radius: 20px;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.03);
  display: grid;
  gap: 0.9rem;
}

.network-level-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 0.85rem;
}

.network-level-pill {
  border: 1px solid rgba(96, 230, 255, 0.1);
  border-radius: 18px;
  padding: 0.9rem;
  display: grid;
  gap: 0.2rem;
  background: linear-gradient(180deg, rgba(12, 24, 44, 0.84), rgba(8, 14, 26, 0.96));
}

.network-level-pill span,
.network-level-pill small {
  color: var(--text-soft);
}

.network-tree-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.network-tree-board {
  display: grid;
  gap: 1.2rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
}

.network-org-root {
  display: grid;
  justify-items: center;
  gap: 1rem;
  min-width: max-content;
}

.network-tree-name {
  font-weight: 700;
  color: var(--text);
}

.network-tree-email,
.network-tree-card small {
  color: var(--text-soft);
}

.network-org-children {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 1.4rem;
  position: relative;
  padding-top: 1.5rem;
  min-width: max-content;
}

.network-org-children::before {
  content: '';
  position: absolute;
  top: 0.75rem;
  left: 50%;
  width: 1px;
  height: 1.25rem;
  background: rgba(96, 230, 255, 0.22);
  transform: translateX(-50%);
}

.network-org-node {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 1rem;
}

.network-org-node::before {
  content: '';
  position: absolute;
  top: -1rem;
  left: 50%;
  width: 1px;
  height: 1rem;
  background: rgba(96, 230, 255, 0.18);
  transform: translateX(-50%);
}

.network-org-node::after {
  content: '';
  position: absolute;
  top: -1rem;
  left: calc(-0.7rem);
  right: calc(-0.7rem);
  height: 1px;
  background: rgba(96, 230, 255, 0.18);
}

.network-org-node:first-child::after {
  left: 50%;
}

.network-org-node:last-child::after {
  right: 50%;
}

.network-org-node:only-child::after {
  display: none;
}

.network-org-node.leaf > .network-tree-card {
  min-width: 124px;
}

.network-tree-card {
  border: 1px solid rgba(96, 230, 255, 0.12);
  border-radius: 18px;
  background:
    radial-gradient(circle at top left, rgba(96, 230, 255, 0.09), transparent 30%),
    linear-gradient(180deg, rgba(14, 28, 50, 0.96), rgba(9, 15, 25, 0.98));
  padding: 0.75rem 0.7rem;
  display: grid;
  justify-items: center;
  gap: 0.18rem;
  text-align: center;
  min-width: 138px;
  color: inherit;
  box-shadow: 0 16px 34px rgba(5, 13, 27, 0.26);
}

.network-tree-card.root {
  min-width: 165px;
}

.network-org-node > .network-tree-card {
  min-width: 132px;
}

.network-tree-card.expandable {
  cursor: pointer;
}

.network-tree-card.expandable[aria-expanded="true"] {
  border-color: rgba(71, 159, 255, 0.32);
  box-shadow: 0 18px 38px rgba(5, 13, 27, 0.3), 0 0 0 1px rgba(71, 159, 255, 0.16);
}

.network-tree-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  letter-spacing: 0.03em;
  font-size: 0.82rem;
  color: #fff;
  background: linear-gradient(135deg, #5f7dff, #9a5cff 55%, #ff6ba7);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.03);
}

.network-tree-name {
  font-size: 0.88rem;
  line-height: 1.15;
}

.network-tree-email,
.network-tree-card small {
  font-size: 0.72rem;
  line-height: 1.2;
}

.network-tree-badge {
  padding: 0.14rem 0.42rem;
  border-radius: 999px;
  font-size: 0.64rem;
  border: 1px solid rgba(96, 230, 255, 0.14);
}

.network-tree-badge.active {
  color: #9bf2c3;
  background: rgba(53, 171, 103, 0.14);
}

.network-tree-badge.inactive {
  color: #ffb4b4;
  background: rgba(170, 52, 52, 0.16);
}

.network-tree-toggle-text {
  font-style: normal;
  color: #8ccfff;
  font-size: 0.68rem;
}

.network-tree-empty {
  padding: 0.9rem 1rem;
  border-radius: 16px;
  border: 1px dashed rgba(96, 230, 255, 0.14);
  color: var(--text-soft);
}

.matrix-root {
  justify-self: center;
  min-width: 220px;
}

.matrix-branches {
  display: grid;
  grid-template-columns: repeat(2, minmax(240px, 1fr));
  gap: 1rem;
  position: relative;
}

.matrix-branch {
  display: grid;
  gap: 1rem;
  position: relative;
}

.matrix-branch > .matrix-node {
  justify-self: center;
  width: min(100%, 260px);
}

.matrix-child-slots {
  display: grid;
  grid-template-columns: repeat(2, minmax(140px, 1fr));
  gap: 1rem;
}

.matrix-node {
  border: 1px solid rgba(96, 230, 255, 0.12);
  border-radius: 18px;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.04);
}

.matrix-node strong,
.matrix-node span {
  display: block;
}

.matrix-node.occupied {
  border-color: rgba(65, 181, 255, 0.38);
  background: rgba(65, 181, 255, 0.1);
}

.matrix-node.empty {
  border-style: dashed;
  color: var(--text-soft);
}

.matrix-node.donation {
  border-color: rgba(96, 230, 255, 0.35);
  background: rgba(96, 230, 255, 0.08);
}

.toast {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  max-width: 360px;
  border-radius: 20px;
  padding: 1rem;
  background: linear-gradient(135deg, rgba(14, 42, 84, 0.98), rgba(9, 25, 46, 0.98));
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.46);
}

.search-hidden {
  display: none !important;
}

.app-shell.sidebar-collapsed .sidebar {
  padding-inline: 0.9rem;
}

.app-shell.sidebar-collapsed .sidebar-brand {
  justify-content: center;
}

.app-shell.sidebar-collapsed .sidebar-brand-copy,
.app-shell.sidebar-collapsed .nav-pill-label {
  display: none;
}

.app-shell.sidebar-collapsed .sidebar-context,
.app-shell.sidebar-collapsed .nav-group-title,
.app-shell.sidebar-collapsed .nav-pill-count {
  display: none;
}

.app-shell.sidebar-collapsed .nav-pill {
  justify-content: center;
  padding-inline: 0.75rem;
}

.app-shell.sidebar-collapsed .top-nav {
  align-items: center;
}

.app-shell.sidebar-collapsed .sidebar-logout {
  font-size: 0;
  min-width: 56px;
  padding-inline: 0;
}

.app-shell.sidebar-collapsed .sidebar-logout::after {
  content: "ÃƒÆ’Ã†â€™Ãƒâ€šÃ‚Â¢ÃƒÆ’Ã¢â‚¬Å¡Ãƒâ€šÃ‚ÂÃƒÆ’Ã¢â‚¬Å¡Ãƒâ€šÃ‚Â»";
  font-size: 1rem;
}

.hidden {
  display: none !important;
}

@media (max-width: 640px) {
  .auth-shell {
    grid-template-columns: 1fr;
  }

  .hero,
  .toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .app-shell {
    grid-template-columns: 1fr;
  }

  .content-topbar,
  .content-topbar-main,
  .content-topbar-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .sidebar {
    position: static;
    min-height: auto;
  }

  .brand-block {
    flex-direction: column;
    align-items: flex-start;
  }

  .top-nav,
  .auth-tabs {
    width: 100%;
  }

  .matrix-branches,
  .matrix-child-slots,
  .step-tabs,
  .reports-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .product-heading,
  .commerce-item,
  .cart-summary-card,
  .payment-box-grid {
    grid-template-columns: 1fr;
  }

  .commerce-item-side {
    justify-items: start;
  }

  .cart-summary-card {
    align-items: flex-start;
  }

  .payment-meta-grid {
    grid-template-columns: 1fr;
  }

  .admin-users-controls {
    width: 100%;
  }

  .admin-users-controls input {
    min-width: 100%;
  }

  .admin-step-tabs {
    grid-template-columns: 1fr;
  }

  .reports-grid {
    grid-template-columns: 1fr;
  }

  .report-card,
  .report-card-wide {
    grid-column: span 1;
  }

  .global-search {
    min-width: 100%;
  }
}

@media (max-width: 980px) {
  .account-action-grid {
    grid-template-columns: 1fr;
  }
}

.search-icon,
.notification-bell-icon,
.nav-pill-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 30px;
  height: 30px;
  border-radius: 10px;
  border: 1px solid rgba(96, 230, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  color: var(--cyan);
  font-family: \"Plus Jakarta Sans\", \"Inter\", ui-sans-serif, system-ui, sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: none;
}

.search-icon {
  min-width: 58px;
  padding: 0 0.55rem;
}

#dashboardRegisterCard.hidden {
  display: none !important;
}

#dashboardRegisterCard:not(.hidden) {
  display: grid;
}
.icon-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.icon-toggle svg,
.search-icon svg,
.notification-bell-icon svg,
.nav-pill-icon svg {
  width: 18px;
  height: 18px;
  display: block;
}

.global-search {
  display: flex;
  align-items: center;
}

.search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  min-width: 18px;
  padding: 0;
  border: none;
  background: transparent;
  color: var(--text-soft);
}

.notification-bell-icon,
.nav-pill-icon {
  padding: 0;
}

.notification-bell-icon {
  min-width: 18px;
  width: 18px;
  height: 18px;
  border: none;
  background: transparent;
}

.nav-pill-icon {
  width: 34px;
  height: 34px;
}

#userRegisterSection .account-register-card {
  margin-bottom: 0;
}
.activation-history-card .item {
  border-color: rgba(96, 230, 255, 0.08);
  background: rgba(255, 255, 255, 0.025);
}

.activation-item {
  display: grid;
  gap: 0.8rem;
}

#userRegisterSection {
  display: grid;
  gap: 1rem;
}

#userRegisterSection h2,
#matrixSection h2,
#storeSection h2 {
  font-size: 1.08rem;
}

.matrix-tree {
  display: grid;
  gap: 1.25rem;
  margin-top: 1rem;
}

.matrix-branches {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.matrix-branch {
  display: grid;
  gap: 0.85rem;
  position: relative;
}

.matrix-branch::before {
  content: '';
  position: absolute;
  top: -18px;
  left: 50%;
  width: 1px;
  height: 18px;
  background: rgba(96, 230, 255, 0.18);
}

.matrix-child-slots {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.matrix-node {
  min-height: 108px;
  padding: 1rem;
  border-radius: 20px;
  border: 1px solid rgba(96, 230, 255, 0.12);
  background: linear-gradient(180deg, rgba(14, 18, 28, 0.96), rgba(8, 10, 16, 0.98));
  display: grid;
  gap: 0.35rem;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.18);
}

.matrix-root {
  justify-self: center;
  width: min(420px, 100%);
  text-align: center;
  background: radial-gradient(circle at top, rgba(96, 230, 255, 0.12), transparent 55%), linear-gradient(180deg, rgba(17, 28, 48, 0.98), rgba(8, 11, 18, 0.98));
}

.matrix-node.occupied strong {
  color: #eefbff;
}

.matrix-node.empty,
.matrix-node.donation {
  border-style: dashed;
}

.matrix-node.donation {
  background: linear-gradient(180deg, rgba(16, 35, 58, 0.96), rgba(8, 12, 20, 0.98));
}

.product-card {
  border-radius: 24px;
  border: 1px solid rgba(96, 230, 255, 0.12);
  background: linear-gradient(180deg, rgba(12, 16, 24, 0.98), rgba(6, 8, 14, 0.98));
  box-shadow: 0 22px 44px rgba(0, 0, 0, 0.24);
  overflow: hidden;
}

.product-media {
  position: relative;
  min-height: 210px;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at top right, rgba(96, 230, 255, 0.12), transparent 28%), linear-gradient(180deg, rgba(11, 22, 40, 0.98), rgba(8, 12, 18, 0.98));
}

.product-media.placeholder span {
  font-family: "Plus Jakarta Sans", "Inter", ui-sans-serif, system-ui, sans-serif;
  color: rgba(234, 247, 255, 0.82);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.product-topline {
  position: absolute;
  inset: 1rem 1rem auto 1rem;
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
}

.product-body,
.product-footer {
  padding: 1rem 1.05rem;
}

.product-heading {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: start;
}

.product-heading h3 {
  font-size: 1.05rem;
  margin-bottom: 0.35rem;
}

.product-price-badge {
  min-width: 126px;
  padding: 0.85rem 0.9rem;
  border-radius: 18px;
  border: 1px solid rgba(96, 230, 255, 0.14);
  background: rgba(255, 255, 255, 0.03);
  text-align: right;
}

.product-footer {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.product-qty {
  max-width: 130px;
}

.btn-store-primary {
  min-width: 190px;
}

.order-card,
.commerce-item,
.cart-summary-card {
  border-radius: 20px;
  border: 1px solid rgba(96, 230, 255, 0.08);
  background: linear-gradient(180deg, rgba(11, 15, 23, 0.98), rgba(7, 9, 15, 0.98));
}

.support-layout {
  display: grid;
  grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}

.support-sidebar,
.support-chat {
  display: grid;
  gap: 1rem;
}

.support-create-form textarea,
.support-reply-form textarea {
  min-height: 110px;
}

.support-messages {
  display: grid;
  gap: 0.85rem;
  max-height: 520px;
  overflow-y: auto;
  padding-right: 0.2rem;
}

.support-message {
  border-radius: 18px;
  border: 1px solid rgba(96, 230, 255, 0.1);
  background: rgba(11, 16, 24, 0.96);
  padding: 0.95rem 1rem;
}

.support-message.admin {
  border-color: rgba(71, 159, 255, 0.28);
  background: linear-gradient(180deg, rgba(14, 31, 58, 0.98), rgba(10, 18, 31, 0.98));
}

.support-message.user {
  border-color: rgba(104, 228, 171, 0.18);
}

.support-message-head {
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  align-items: center;
  margin-bottom: 0.45rem;
}

.support-message p {
  margin: 0;
  color: #dbe7ff;
  line-height: 1.6;
}

.support-thread-card {
  width: 100%;
  text-align: left;
  border-radius: 18px;
  border: 1px solid rgba(96, 230, 255, 0.09);
  background: rgba(8, 12, 20, 0.95);
  padding: 0.95rem 1rem;
  display: grid;
  gap: 0.35rem;
  color: inherit;
}

.support-thread-card.active {
  border-color: rgba(71, 159, 255, 0.4);
  box-shadow: 0 0 0 1px rgba(71, 159, 255, 0.22), 0 14px 32px rgba(7, 20, 38, 0.28);
}

.support-thread-head {
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  align-items: center;
}

.support-reply-form {
  display: grid;
  gap: 0.85rem;
  margin-top: 0.8rem;
}

@media (max-width: 980px) {
  .matrix-branches,
  .matrix-child-slots,
  .product-footer,
  .product-heading {
    grid-template-columns: 1fr;
    display: grid;
  }

  .product-footer {
    align-items: stretch;
  }

  .btn-store-primary,
  .product-qty {
    min-width: 100%;
    max-width: none;
  }
}

@media (max-width: 980px) {
  .page {
    padding: 0.45rem;
  }

  .app-shell,
  .app-shell.sidebar-collapsed {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    top: auto;
    min-height: auto;
    border-radius: 26px;
    padding: 1rem;
    margin-bottom: 0.75rem;
  }

  .sidebar-brand {
    justify-content: center;
  }

  .sidebar-context {
    margin-top: 0.2rem;
  }

  .top-nav {
    gap: 0.8rem;
  }

  .nav-group-items {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.7rem;
  }

  .nav-pill {
    min-height: 58px;
  }

  .app-content {
    padding: 0 0.15rem 1rem;
  }

  .content-topbar {
    position: static;
    padding: 0.95rem 1rem;
  }

  .content-topbar-main,
  .content-topbar-actions {
    width: 100%;
  }

  .content-topbar-actions {
    display: grid;
    grid-template-columns: 1fr auto auto;
    align-items: center;
  }

  .global-search {
    min-width: 0;
    width: 100%;
  }

  .global-search input {
    min-height: 52px;
    font-size: 16px;
  }

  .topbar-summary {
    width: 100%;
    justify-content: center;
  }

  .stats,
  .grid,
  .reports-grid,
  .account-action-grid,
  .support-layout {
    grid-template-columns: 1fr;
  }

  .withdraw-grid,
  .withdraw-summary-metrics {
    grid-template-columns: 1fr;
  }

  .withdraw-history-top,
  .withdraw-history-meta,
  .treasury-history-top,
  .treasury-history-meta {
    display: grid;
    grid-template-columns: 1fr;
  }

  .toolbar {
    gap: 0.8rem;
  }

  .toolbar > * {
    width: 100%;
  }

  .toolbar button,
  .toolbar .secondary,
  #refreshBtn,
  #adminRefreshBtn {
    width: 100%;
  }

  .card,
  .auth-card,
  .auth-showcase {
    border-radius: 22px;
  }

  .payment-box,
  .payment-status,
  .order-card,
  .commerce-item,
  .cart-summary-card {
    padding: 1rem;
  }
}

@media (max-width: 640px) {
  body {
    padding-bottom: env(safe-area-inset-bottom);
  }

  .page {
    padding: 0.3rem;
  }

  .hero {
    margin-bottom: 0.5rem;
  }

  .brand-logo,
  .sidebar-logo-large {
    width: 78px;
    height: 78px;
  }

  .nav-group-items {
    grid-template-columns: 1fr;
  }

  .content-topbar-actions {
    grid-template-columns: 1fr;
  }

  .notification-center,
  .topbar-summary {
    justify-self: stretch;
  }

  .notification-bell,
  .secondary,
  button,
  .btn-store-primary {
    min-height: 48px;
  }

  .auth-form input,
  .auth-form select,
  .auth-form textarea,
  input,
  select,
  textarea {
    font-size: 16px;
  }

  .section-head h2,
  #welcomeTitle,
  .topbar-title {
    font-size: 1.45rem;
  }

  .matrix-node {
    min-height: 94px;
    padding: 0.85rem;
  }

  .product-media {
    min-height: 170px;
  }

  .notification-dropdown {
    width: min(92vw, 340px);
    right: 0;
  }
}

/* sanex latam final overrides */

body {
  background:
    radial-gradient(circle at top left, rgba(184, 223, 70, 0.36), transparent 24rem),
    radial-gradient(circle at top right, rgba(64, 88, 15, 0.09), transparent 28rem),
    linear-gradient(180deg, #fbfef1 0%, #ebf3d8 100%);
  color: #1e2710;
}

.hero,
.auth-showcase.card,
.auth-card,
.card,
.report-card,
.content-topbar,
.portal-panel {
  border-color: rgba(100, 128, 23, 0.12);
  box-shadow: 0 20px 52px rgba(72, 93, 20, 0.1);
}

.hero,
.portal-panel,
.auth-showcase.card {
  background:
    radial-gradient(circle at top right, rgba(184, 223, 70, 0.22), transparent 26rem),
    linear-gradient(180deg, rgba(252, 254, 247, 0.98), rgba(241, 247, 223, 0.97));
}

button {
  border-color: rgba(163, 207, 34, 0.18);
  background: linear-gradient(180deg, #a3cf22 0%, #86b117 100%);
  color: #f9ffe7;
  box-shadow: 0 16px 32px rgba(134, 177, 23, 0.2);
}

button.secondary,
.secondary {
  color: #628511;
  border-color: rgba(134, 177, 23, 0.18);
}

.sidebar {
  background: linear-gradient(180deg, #1f260f 0%, #111608 100%);
}

.sidebar-brand-copy strong,
.sidebar-brand-copy p,
.sidebar-account-card strong,
.sidebar-account-card span,
.sidebar-account-card small,
.nav-group-title,
.nav-pill,
.nav-pill-count {
  color: #f0f8d1;
}

.nav-pill.active,
.nav-pill.active:hover {
  background: rgba(163, 207, 34, 0.18);
  border-color: rgba(184, 223, 70, 0.24);
}

.nav-pill.active .nav-pill-icon {
  color: #d3f16b;
}

.report-kicker,
.side-card-kicker {
  color: #86b117;
}

.chart-bar i,
.binary-pill,
.status-dot {
  background: linear-gradient(180deg, #b8df46, #7ca814);
}

.binary-pill {
  color: #f9ffe8;
}

.operation-gauge-arc {
  background: conic-gradient(from 180deg at 50% 100%, #8eb81a calc(var(--operation-progress, 0) * 1%), #dde7c0 0);
}

.ring-metric {
  background:
    radial-gradient(circle at center, #fbfef1 48%, transparent 49%),
    conic-gradient(#8eb81a calc(var(--ring, 0) * 1%), #dde7c0 0);
}

.brand-logo {
  width: min(340px, 42vw);
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 16px 32px rgba(88, 116, 17, 0.16));
}

/* sanex latam portal layout: closer to the commercial reference */

body {
  background:
    radial-gradient(circle at top left, rgba(184, 223, 70, 0.26), transparent 18rem),
    linear-gradient(180deg, #fbfdf5 0%, #eef4de 100%);
}

.page {
  width: min(1720px, calc(100% - 1rem));
  padding: 0.75rem 0 1.5rem;
}

.app-shell {
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}

.app-shell.sidebar-collapsed {
  grid-template-columns: 92px minmax(0, 1fr);
}

.app-content {
  gap: 1rem;
  padding-left: 0;
}

.sidebar {
  background: linear-gradient(180deg, #35180f 0%, #221109 100%);
  border: 0;
  border-radius: 26px;
  box-shadow: 0 18px 40px rgba(53, 24, 15, 0.22);
}

.sidebar-brand {
  align-items: flex-start;
}

.sidebar-logo {
  width: 110px;
  max-width: 100%;
}

.sidebar-account-card,
.nav-pill {
  border-color: rgba(255, 255, 255, 0.08);
}

.nav-pill {
  background: rgba(255, 255, 255, 0.04);
  border-radius: 16px;
}

.nav-pill.active,
.nav-pill.active:hover {
  background: rgba(163, 207, 34, 0.2);
}

.content-topbar,
.card,
.portal-panel,
.portal-side-card,
.report-card,
.item,
.payment-box,
.payment-status,
.support-message,
.support-thread-card,
.network-level-card,
.network-tree-card,
.product-card,
.cart-summary-card,
.matrix-node,
.matrix-root,
.level-pill {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(249, 251, 242, 0.98));
  border: 1px solid rgba(126, 156, 43, 0.12);
  box-shadow: 0 14px 34px rgba(91, 111, 29, 0.08);
  color: #24160f;
}

.content-topbar {
  position: sticky;
  top: 0.5rem;
  border-radius: 24px;
  padding: 0.9rem 1.1rem;
}

.topbar-title,
.content-topbar .muted,
.global-search input,
.global-search input::placeholder {
  color: #3f321f;
}

.global-search {
  background: #ffffff;
  border: 1px solid rgba(126, 156, 43, 0.12);
  border-radius: 18px;
}

.global-search input {
  background: transparent;
}

.icon-toggle,
.notification-bell,
.topbar-summary,
button.secondary,
.secondary {
  background: #ffffff;
  border: 1px solid rgba(126, 156, 43, 0.12);
  color: #6a861b;
  box-shadow: none;
}

.topbar-summary {
  min-height: 52px;
}

.dashboard-section {
  padding: 0;
}

.portal-overview {
  grid-template-columns: minmax(0, 1.75fr) 320px;
  gap: 1rem;
}

.portal-panel,
.portal-side-card {
  border-radius: 22px;
}

.stats .stat,
.stat,
.operation-meta-grid article,
.operation-footer-stats div,
.side-card-split div,
.side-card-metrics article,
.package-pill,
.data-table-head,
.data-table-row,
.referral-meta-card,
.referral-link-card {
  background: #ffffff;
  border: 1px solid rgba(126, 156, 43, 0.12);
  box-shadow: none;
}

.report-card {
  gap: 1.1rem;
}

.report-head strong,
.operation-gauge-core strong,
.side-card-value,
.stat strong,
.matrix-node strong,
.network-tree-name {
  color: #1f1a14;
}

.report-kicker,
.side-card-kicker {
  color: #7ca814;
}

.operation-gauge-core small,
.stat span,
.stat small,
.chart-label,
.season-bonus-meta,
.network-tree-email,
.network-tree-card small,
.support-message p,
.muted {
  color: #77675c;
}

.chart-bar-value,
.timeline-point strong {
  color: #4c3729;
}

.data-table-head {
  background: #f6f9ea;
}

.data-table-row {
  background: #ffffff;
}

.ring-metric {
  background:
    radial-gradient(circle at center, #ffffff 48%, transparent 49%),
    conic-gradient(#8eb81a calc(var(--ring, 0) * 1%), #e4edd0 0);
  box-shadow: inset 0 0 0 1px rgba(126, 156, 43, 0.1);
}

.matrix-root {
  width: min(420px, 100%);
  background:
    radial-gradient(circle at top, rgba(163, 207, 34, 0.12), transparent 58%),
    linear-gradient(180deg, #edf6d4, #ffffff);
}

.matrix-node.occupied {
  background: linear-gradient(180deg, rgba(232, 244, 198, 0.98), rgba(255, 255, 255, 0.98));
  border-color: rgba(142, 184, 26, 0.22);
}

.matrix-node.empty,
.matrix-node.donation,
.network-tree-empty {
  background: #fbfcf6;
  border-color: rgba(126, 156, 43, 0.16);
  color: #736458;
}

.network-tree-card {
  background:
    radial-gradient(circle at top left, rgba(184, 223, 70, 0.12), transparent 32%),
    linear-gradient(180deg, #ffffff, #f8fbef);
}

.network-tree-card.expandable[aria-expanded="true"],
.support-thread-card.active {
  border-color: rgba(142, 184, 26, 0.3);
  box-shadow: 0 12px 26px rgba(142, 184, 26, 0.14);
}

.network-org-children::before,
.network-org-node::before,
.network-org-node::after,
.matrix-branch::before {
  background: rgba(126, 156, 43, 0.2);
}

.product-card {
  overflow: hidden;
}

@media (max-width: 1180px) {
  .portal-overview {
    grid-template-columns: 1fr;
  }

  .portal-side-column {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 840px) {
  .portal-side-column {
    grid-template-columns: 1fr;
  }
}

.sidebar-logo {
  width: 124px;
  height: auto;
  filter: none;
}
