/* Alphamint User Dashboard — Mint & Champagne Theme */

:root {
  --ink: #0f1c18;
  --ink-soft: #3d4f48;
  --muted: #6b7c74;
  --line: #dde5e1;
  --line-strong: #c5d0cb;
  --surface: #ffffff;
  --surface-2: #f4f7f5;
  --canvas: #eef2f0;

  /* Brand: fresh mint (Alphamint) */
  --brand: #00a67e;
  --brand-soft: #e8f8f2;
  --brand-deep: #0b6e56;
  --brand-mid: #12b886;
  --brand-bright: #2dd4a8;

  /* Money accent — soft champagne gold */
  --gold: #b8954f;
  --gold-soft: #fbf3e3;
  --gold-bright: #d4af37;

  --coral: #e76f51;
  --rose: #d64550;
  --rose-soft: #fff0ed;
  --sky: #2a9d8f;
  --sky-soft: #e4f5f2;
  --violet: #3d5a80;
  --violet-soft: #e8eef5;
  --copper: #c97b3a;
  --slate: #4a5d56;
  --slate-soft: #eef2f0;
  --up: #00a67e;
  --down: #e76f51;
  --pending: #c9a227;
  --shadow: 0 10px 28px rgba(15, 28, 24, 0.06);
  --shadow-lg: 0 22px 48px rgba(15, 28, 24, 0.1);
  --radius: 18px;
  --radius-sm: 12px;
  --sidebar-w: 280px;
  --font: "Poppins", sans-serif;
  --heading: "Syne", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  /* legacy aliases */
  --teal: var(--brand);
  --teal-soft: var(--brand-soft);
  --green: var(--up);

  /* Type scale */
  --fs-xs: 0.72rem;
  --fs-sm: 0.8125rem;
  --fs-base: 0.9rem;
  --fs-md: 0.95rem;
  --fs-lg: 1.05rem;
  --fs-xl: 1.25rem;
  --fs-2xl: 1.5rem;
  --fs-3xl: 1.85rem;
  --fs-hero: 2.25rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

/* ========== FONTS LOCK: Poppins everywhere, Syne only on headings ========== */
html,
body,
button,
input,
select,
textarea,
label,
a,
p,
span,
strong,
b,
em,
small,
li,
td,
th,
div,
section,
article,
aside,
nav,
header,
footer,
.btn,
.form-control,
.nav-link,
.nav-item {
  font-family: "Poppins", sans-serif !important;
}

h1, h2, h3, h4, h5, h6,
.page-title,
.brand-text,
.section-head h3,
.profile-card__brand h2,
.invite-ticket__header h4,
.pwd-panel h2,
.pwd-console__head h3,
.ep-identity__name-row h2,
.ep-rail__head h3,
.ep-hero__copy h2,
.ep-block__head h3,
.wl-brand strong,
.wl-banner h2,
.dep-panel h2,
.chk-card__head h2,
.pkg-card__head h2,
.sbi-hero__copy h2,
.wd-console__head h2,
.wd-guide h3,
.wd-tips h3,
.wd-history__head h2,
.wd-incomes__head h2 {
  font-family: "Syne", sans-serif !important;
}

body {
  margin: 0;
  font-family: "Poppins", sans-serif;
  font-size: var(--fs-base);
  color: var(--ink);
  background:
    radial-gradient(ellipse 58% 40% at 0% 0%, rgba(0, 166, 126, 0.11), transparent 55%),
    radial-gradient(ellipse 48% 34% at 100% 0%, rgba(184, 149, 79, 0.08), transparent 52%),
    linear-gradient(180deg, #f7faf8 0%, var(--canvas) 100%);
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Lucide icon defaults */
i[data-lucide] {
  width: 1.1rem;
  height: 1.1rem;
  stroke-width: 1.75;
  display: inline-block;
  vertical-align: middle;
}

/* ——— Shell ——— */
.app-shell {
  display: flex;
  min-height: 100vh;
}

/* ——— Sidebar ——— */
.sidebar {
  width: var(--sidebar-w);
  flex-shrink: 0;
  background:
    linear-gradient(180deg, #ffffff 0%, #f6faf8 50%, #eef5f1 100%);
  border-right: 1px solid var(--line);
  padding: 1rem 0.85rem 1.35rem;
  position: sticky;
  top: 0;
  height: 100vh;
  z-index: 1040;
  display: flex;
  flex-direction: column;
  transition: transform 0.35s var(--ease);
}

.sidebar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.2rem 0.45rem 0.95rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
}

.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, var(--brand), var(--brand-deep));
  color: #fff;
  box-shadow: 0 8px 18px rgba(0, 166, 126, 0.32);
}

.brand-mark i {
  width: 20px;
  height: 20px;
}

.brand-text {
  font-family: var(--heading);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.sidebar-close {
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  display: grid;
  place-items: center;
  color: var(--ink-soft);
}

.sidebar-user {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 0.8rem;
  margin: 0 0.1rem 1rem;
  border-radius: 16px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 6px 18px rgba(15, 28, 24, 0.04);
}

.sidebar-user__glow {
  display: none;
}

.sidebar-user__main,
.sidebar-user__row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
  flex: 1;
}

.sidebar-user-avatar {
  position: relative;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  background: var(--brand-soft);
  color: var(--brand-deep);
  border: 1px solid color-mix(in srgb, var(--brand) 22%, var(--line));
}

.sidebar-user-avatar i,
.sidebar-user-avatar svg {
  width: 20px !important;
  height: 20px !important;
}

.sidebar-user-avatar__status {
  position: absolute;
  right: 1px;
  bottom: 1px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--brand);
  border: 2px solid #fff;
}

.sidebar-user-info {
  min-width: 0;
  flex: 1;
}

.sidebar-user-info__top {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.15rem;
}

.sidebar-user-badge,
.sidebar-user-live {
  display: none;
}

.sidebar-user-info strong {
  display: block;
  font-size: 0.92rem;
  font-weight: 650;
  color: var(--ink);
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-user-id {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-user-id i,
.sidebar-user-id svg {
  display: none !important;
}

.sidebar-user-tools {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  flex-shrink: 0;
}

.sidebar-user-tools a {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  border: 1px solid transparent;
  background: var(--surface-2);
  color: var(--ink-soft);
  display: grid;
  place-items: center;
  transition: 0.18s ease;
}

.sidebar-user-tools a span {
  display: none;
}

.sidebar-user-tools a:hover {
  color: var(--brand-deep);
  background: var(--brand-soft);
  border-color: color-mix(in srgb, var(--brand) 25%, var(--line));
}

.sidebar-user-tools a.is-danger:hover {
  color: var(--coral);
  background: var(--rose-soft);
  border-color: color-mix(in srgb, var(--coral) 25%, var(--line));
}

.sidebar-user-tools i,
.sidebar-user-tools svg {
  width: 14px !important;
  height: 14px !important;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  overflow-y: auto;
  padding: 0 0.2rem 0.4rem;
  scrollbar-width: thin;
  scrollbar-color: color-mix(in srgb, var(--brand) 28%, #cbd5e1) transparent;
}

.sidebar-nav::-webkit-scrollbar {
  width: 5px;
}

.sidebar-nav::-webkit-scrollbar-thumb {
  background: color-mix(in srgb, var(--brand) 28%, #cbd5e1);
  border-radius: 999px;
}

.nav-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.72rem 0.85rem;
  border-radius: 12px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--ink-soft);
  font-size: 0.9rem;
  font-weight: 600;
  text-align: left;
  transition: 0.2s ease;
}

.nav-item i:first-child,
.nav-item svg:first-child {
  width: 17px !important;
  height: 17px !important;
  flex-shrink: 0;
}

.nav-item:hover {
  background: #fff;
  color: var(--ink);
  border-color: var(--line);
}

.nav-item.active {
  background: linear-gradient(90deg, var(--brand-soft), color-mix(in srgb, var(--brand-soft) 35%, #fff));
  border-color: color-mix(in srgb, var(--brand) 22%, var(--line));
  color: var(--brand);
  box-shadow: inset 3px 0 0 var(--brand);
}

/* Always-open section groups (no accordion click) */
.nav-group {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.nav-heading {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.35rem 0.7rem 0.45rem;
  font-family: var(--heading);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  user-select: none;
  pointer-events: none;
}

.nav-heading i,
.nav-heading svg {
  width: 13px !important;
  height: 13px !important;
  color: var(--brand);
  opacity: 0.85;
}

.nav-sub {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
  padding: 0 0.15rem 0.15rem;
  margin-left: 0.55rem;
  border-left: 1px solid color-mix(in srgb, var(--brand) 16%, var(--line));
}

.nav-sub a {
  position: relative;
  padding: 0.48rem 0.75rem 0.48rem 0.85rem;
  border-radius: 10px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--ink-soft);
  transition: 0.18s ease;
}

.nav-sub a:hover {
  background: #fff;
  color: var(--ink);
}

.nav-sub a.is-active {
  color: var(--brand);
  font-weight: 650;
  background: var(--brand-soft);
}

.nav-sub a.is-active::before {
  content: "";
  position: absolute;
  left: -1px;
  top: 20%;
  bottom: 20%;
  width: 2px;
  border-radius: 2px;
  background: var(--brand);
}

/* Legacy accordion leftovers (force open if any page still has them) */
.nav-accordion .collapse {
  display: block !important;
  height: auto !important;
  visibility: visible !important;
}

.nav-toggle {
  pointer-events: none;
  cursor: default;
}

.nav-chevron {
  display: none !important;
}

.sidebar-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(21, 32, 40, 0.35);
  backdrop-filter: blur(3px);
  z-index: 1035;
}

/* ——— Main ——— */
.main-wrap {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 1.35rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(255, 255, 255, 0.88) 100%);
  backdrop-filter: blur(16px) saturate(1.15);
  border-bottom: 1px solid color-mix(in srgb, var(--brand) 10%, var(--line));
  box-shadow: 0 10px 28px rgba(15, 28, 24, 0.04);
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.icon-btn {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
  display: grid;
  place-items: center;
  color: var(--ink-soft);
  transition: 0.2s ease;
}

.icon-btn:hover {
  color: var(--brand-deep);
  border-color: color-mix(in srgb, var(--brand) 28%, var(--line));
  background: var(--brand-soft);
}

.topbar-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--heading);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.topbar-brand i,
.topbar-brand svg {
  width: 18px !important;
  height: 18px !important;
  color: var(--brand);
}

.topbar-welcome {
  display: none;
  flex-direction: column;
  min-width: 0;
}

.topbar-welcome strong {
  font-family: var(--heading);
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1.2;
}

.topbar-welcome span {
  font-size: 0.75rem;
  color: var(--muted);
  font-weight: 500;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.topbar-actions {
  display: none;
  align-items: center;
  gap: 0.4rem;
}

.topbar-action {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
  display: grid;
  place-items: center;
  color: var(--ink-soft);
  transition: 0.2s ease;
}

.topbar-action:hover {
  color: var(--brand-deep);
  border-color: color-mix(in srgb, var(--brand) 28%, var(--line));
  background: var(--brand-soft);
}

.topbar-action i,
.topbar-action svg {
  width: 17px !important;
  height: 17px !important;
}

.topbar-action__dot {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--coral, #e76f51);
  border: 1.5px solid #fff;
}

.topbar-balance {
  display: none;
  flex-direction: column;
  justify-content: center;
  padding: 0.45rem 0.85rem;
  border-radius: 12px;
  background: var(--brand-soft);
  border: 1px solid color-mix(in srgb, var(--brand) 18%, var(--line));
  min-width: 108px;
}

.topbar-balance small {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brand-deep);
  line-height: 1.2;
}

.topbar-balance strong {
  font-family: var(--heading);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.topbar-profile {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.3rem 0.7rem 0.3rem 0.3rem;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: 0 6px 16px rgba(15, 28, 24, 0.04);
  transition: 0.2s ease;
}

.topbar-profile:hover {
  border-color: color-mix(in srgb, var(--brand) 25%, var(--line));
}

.topbar-avatar {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, var(--brand), var(--brand-deep));
  color: #fff;
  box-shadow: 0 8px 16px rgba(0, 166, 126, 0.22);
}

.topbar-avatar i,
.topbar-avatar svg {
  width: 18px !important;
  height: 18px !important;
}

.topbar-meta small {
  display: block;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--muted);
  line-height: 1.2;
  font-weight: 600;
}

.topbar-meta strong {
  font-size: 0.86rem;
  color: var(--ink);
  font-weight: 700;
  letter-spacing: -0.01em;
}

@media (min-width: 768px) {
  .topbar-welcome {
    display: flex;
  }

  .topbar-actions {
    display: flex;
  }
}

@media (min-width: 992px) {
  .topbar-balance {
    display: flex;
  }
}

/* ——— Ticker ——— */
.price-ticker {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  padding: 0.55rem 0;
}

.ticker-track {
  display: flex;
  gap: 2rem;
  width: max-content;
  padding-left: 1.25rem;
  animation: ticker 28s linear infinite;
}

.price-ticker:hover .ticker-track {
  animation-play-state: paused;
}

.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
  font-size: 0.82rem;
  color: var(--ink-soft);
}

.ticker-item i {
  width: 15px;
  height: 15px;
  color: var(--teal);
}

.ticker-item strong {
  color: var(--ink);
  font-weight: 600;
}

.ticker-item em {
  font-style: normal;
  font-weight: 600;
  font-size: 0.78rem;
}

.ticker-item .up { color: var(--up); }
.ticker-item .down { color: var(--down); }

.ticker-credit {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  padding: 0 1.2rem 0 2.4rem;
  background: linear-gradient(90deg, transparent, #fff 38%);
  font-size: 0.7rem;
  color: var(--muted);
}

/* ——— Content ——— */
.page-content {
  padding: 1.5rem 1.75rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  animation: fadeUp 0.5s var(--ease) both;
}

.welcome-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.eyebrow {
  margin: 0 0 0.25rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
}

.page-title {
  margin: 0;
  font-family: var(--heading);
  font-size: clamp(1.65rem, 2.4vw, 2.1rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.15;
  color: var(--ink);
}

.member-chips {
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.member-chip {
  min-width: 136px;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.member-chip span {
  display: block;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 0.2rem;
  font-weight: 500;
}

.member-chip strong {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--ink);
}

.member-chip--accent {
  background: linear-gradient(145deg, #fff, var(--gold-soft));
  border-color: rgba(184, 137, 61, 0.28);
}

.member-chip--accent strong {
  color: var(--gold);
}

/* ——— Profile Card (below Welcome) ——— */
.profile-card {
  border-radius: 16px;
  background: #fff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.05);
  overflow: hidden;
}

.profile-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1.1rem 1.2rem;
  background: linear-gradient(90deg, var(--brand-soft) 0%, #fff 42%, var(--gold-soft) 100%);
  border-bottom: 1px solid #e2e8f0;
}

.profile-card__brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  min-width: 0;
}

.profile-card__logo {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  color: #fff;
  background: linear-gradient(145deg, var(--brand), var(--brand-deep));
  box-shadow: 0 8px 18px rgba(0, 166, 126, 0.32);
}

.profile-card__logo i,
.profile-card__logo svg {
  width: 22px !important;
  height: 22px !important;
}

.profile-card__brand h2 {
  margin: 0;
  font-family: var(--heading);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #0f172a;
  line-height: 1.15;
}

.profile-card__brand p {
  margin: 0.15rem 0 0;
  font-size: 0.8rem;
  font-weight: 500;
  color: #64748b;
  font-family: var(--font);
}

.profile-card__status-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.profile-card__status {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.7rem;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 600;
  background: #fff;
  border: 1px solid #e2e8f0;
  color: #334155;
}

.profile-card__status i,
.profile-card__status svg {
  width: 14px !important;
  height: 14px !important;
}

.profile-card__status.is-pending {
  color: #c2410c;
  background: #fff7ed;
  border-color: #fed7aa;
}

.profile-card__status.is-pending i,
.profile-card__status.is-pending svg {
  color: var(--gold);
}

.profile-card__status.is-rank {
  color: var(--brand-deep);
  background: var(--brand-soft);
  border-color: color-mix(in srgb, var(--brand) 28%, #fff);
}

.profile-card__status.is-rank i,
.profile-card__status.is-rank svg {
  color: var(--brand);
}

.profile-card__rate {
  padding: 0.65rem 1rem;
  border-radius: 12px;
  background: #fff;
  border: 1px solid color-mix(in srgb, var(--brand) 28%, #fff);
  box-shadow: 0 4px 12px rgba(0, 166, 126, 0.08);
  text-align: right;
  min-width: 170px;
}

.profile-card__rate span {
  display: block;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 0.15rem;
}

.profile-card__rate strong {
  display: block;
  font-family: var(--font);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #0f172a;
  line-height: 1.1;
}

.profile-card__meta {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: #f8fafc;
}

.profile-card__meta > div {
  padding: 0.85rem 1.1rem;
  border-right: 1px solid #e2e8f0;
}

.profile-card__meta > div:last-child {
  border-right: none;
}

.profile-card__meta span {
  display: block;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #94a3b8;
  margin-bottom: 0.25rem;
}

.profile-card__meta strong {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: #0f172a;
  word-break: break-word;
  line-height: 1.3;
}

@media (max-width: 991.98px) {
  .profile-card__meta {
    grid-template-columns: 1fr 1fr;
  }

  .profile-card__meta > div:nth-child(2) {
    border-right: none;
  }

  .profile-card__meta > div:nth-child(1),
  .profile-card__meta > div:nth-child(2) {
    border-bottom: 1px solid #e2e8f0;
  }
}

@media (max-width: 575.98px) {
  .profile-card__top {
    padding: 1rem;
  }

  .profile-card__rate {
    width: 100%;
    text-align: left;
  }

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

  .profile-card__meta > div {
    border-right: none;
    border-bottom: 1px solid #e2e8f0;
  }

  .profile-card__meta > div:last-child {
    border-bottom: none;
  }

  .profile-card__meta > div:nth-child(1),
  .profile-card__meta > div:nth-child(2) {
    border-bottom: 1px solid #e2e8f0;
  }
}

/* ——— Command Pad (compact) ——— */
.command-pad {
  position: relative;
  padding: 0.75rem 0.85rem 0.85rem;
  border-radius: 14px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.command-pad__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.65rem;
  padding: 0 0.1rem;
}

.command-pad__label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.command-pad__hint {
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--muted);
}

.cmd-tile {
  --c: var(--brand);
  --c-soft: var(--brand-soft);
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.2rem;
  min-height: 0;
  height: auto;
  padding: 0.75rem 0.75rem 0.7rem;
  border-radius: 12px;
  background: #fff;
  border: 1px solid #e2e8f0;
  color: var(--ink);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04);
  overflow: hidden;
  transition: transform 0.28s var(--ease), box-shadow 0.28s var(--ease), border-color 0.28s;
}

.cmd-tile::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 2px;
  background: var(--c);
  transform: scaleX(0.35);
  transform-origin: left center;
  transition: transform 0.3s var(--ease);
}

.cmd-tile:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--c) 35%, #e2e8f0);
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.08);
  color: var(--ink);
}

.cmd-tile:hover::before {
  transform: scaleX(1);
}

.cmd-tile__index {
  position: absolute;
  top: 0.55rem;
  right: 0.6rem;
  font-family: var(--font);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #94a3b8;
}

.cmd-tile__orb {
  width: 36px;
  height: 36px;
  margin: 0.05rem 0 0.35rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--c);
  background: var(--c-soft);
  border: 1px solid color-mix(in srgb, var(--c) 18%, transparent);
}

.cmd-tile__orb i,
.cmd-tile__orb svg {
  width: 16px !important;
  height: 16px !important;
}

.cmd-tile__title {
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.cmd-tile__sub {
  font-size: 0.68rem;
  font-weight: 500;
  color: var(--muted);
  margin-bottom: 0.15rem;
}

.cmd-tile__go {
  margin-top: 0.35rem;
  width: 26px;
  height: 26px;
  border-radius: 7px;
  display: grid;
  place-items: center;
  color: var(--c);
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  transition: background 0.2s, color 0.2s, transform 0.2s;
}

.cmd-tile__go i,
.cmd-tile__go svg {
  width: 13px !important;
  height: 13px !important;
}

.cmd-tile:hover .cmd-tile__go {
  background: var(--c);
  color: #fff;
  border-color: var(--c);
  transform: translate(1px, -1px);
}

.cmd-tile--deposit { --c: var(--brand); --c-soft: var(--brand-soft); }
.cmd-tile--activation { --c: var(--brand-mid); --c-soft: var(--brand-soft); }
.cmd-tile--withdraw { --c: var(--coral); --c-soft: var(--rose-soft); }
.cmd-tile--transfer { --c: var(--slate); --c-soft: var(--slate-soft); }
.cmd-tile--directs { --c: var(--brand-deep); --c-soft: var(--brand-soft); }
.cmd-tile--team { --c: var(--ink); --c-soft: var(--slate-soft); }

@media (max-width: 575.98px) {
  .command-pad {
    padding: 0.7rem 0.65rem 0.75rem;
  }
}

/* ——— Invite Tickets (unique vs portfolio cards) ——— */
.invite-section {
  position: relative;
}

.invite-ticket {
  --t-accent: var(--brand);
  --t-deep: var(--brand-deep);
  display: grid;
  grid-template-columns: 108px 1fr;
  min-height: 198px;
  height: 100%;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  box-shadow:
    0 2px 0 rgba(26, 31, 46, 0.04),
    0 18px 40px rgba(26, 31, 46, 0.08);
  border: 1px solid #dfe3ec;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.invite-ticket:hover {
  transform: translateY(-3px);
  box-shadow:
    0 2px 0 rgba(26, 31, 46, 0.04),
    0 26px 48px rgba(26, 31, 46, 0.12);
}

.invite-ticket--left {
  --t-accent: var(--brand);
  --t-deep: var(--brand-deep);
}

.invite-ticket--right {
  --t-accent: var(--brand-mid);
  --t-deep: var(--brand);
}

.invite-ticket__stub {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 1rem 0.5rem;
  background:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 8px,
      rgba(255, 255, 255, 0.04) 8px,
      rgba(255, 255, 255, 0.04) 9px
    ),
    linear-gradient(180deg, var(--t-deep), var(--t-accent));
  color: #fff;
}

.invite-ticket__pos {
  font-family: var(--font);
  font-size: 2.6rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
}

.invite-ticket__leg {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.8;
}

.invite-ticket__dash {
  position: absolute;
  top: 12px;
  bottom: 12px;
  right: -1px;
  width: 0;
  border-right: 2px dashed rgba(255, 255, 255, 0.35);
}

.invite-ticket__dash::before,
.invite-ticket__dash::after {
  content: "";
  position: absolute;
  right: -7px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--canvas);
  border: 1px solid #dfe3ec;
}

.invite-ticket__dash::before { top: -18px; }
.invite-ticket__dash::after { bottom: -18px; }

.invite-ticket__main {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.1rem 1.15rem 1.15rem;
  background:
    linear-gradient(90deg, #fafbfd 0%, #fff 18%),
    #fff;
}

.invite-ticket__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.invite-ticket__kicker {
  margin: 0 0 0.15rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--t-accent);
}

.invite-ticket__header h4 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.01em;
  font-family: var(--heading);
}

.invite-ticket__code {
  flex-shrink: 0;
  padding: 0.28rem 0.55rem;
  border-radius: 4px;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--t-accent);
  background: color-mix(in srgb, var(--t-accent) 10%, #fff);
  border: 1px solid color-mix(in srgb, var(--t-accent) 22%, #e6e8ef);
}

.invite-ticket__url {
  padding: 0.7rem 0.8rem;
  border-radius: 6px;
  background: #f3f5f9;
  border: 1px dashed #cfd5e2;
}

.invite-ticket__url input {
  width: 100%;
  border: none;
  background: transparent;
  padding: 0;
  outline: none;
  font-family: var(--font);
  font-size: 0.74rem;
  color: #3e4658;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.invite-ticket__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1rem;
}

.invite-ticket__meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--muted);
}

.invite-ticket__meta i,
.invite-ticket__meta svg {
  width: 13px !important;
  height: 13px !important;
  color: var(--t-accent);
}

.invite-ticket__btn {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  width: 100%;
  border: none;
  border-radius: 6px;
  padding: 0.7rem 1rem;
  background: var(--ink);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: background 0.2s, transform 0.2s;
}

.invite-ticket--left .invite-ticket__btn:hover {
  background: var(--t-deep);
  transform: translateY(-1px);
}

.invite-ticket--right .invite-ticket__btn {
  background: var(--t-deep);
}

.invite-ticket--right .invite-ticket__btn:hover {
  background: #92400e;
  transform: translateY(-1px);
}

.invite-ticket__btn i,
.invite-ticket__btn svg {
  width: 15px !important;
  height: 15px !important;
}

@media (max-width: 575.98px) {
  .invite-ticket {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
  }

  .invite-ticket__stub {
    flex-direction: row;
    justify-content: flex-start;
    gap: 0.85rem;
    padding: 0.85rem 1rem;
  }

  .invite-ticket__pos {
    font-size: 1.8rem;
  }

  .invite-ticket__leg {
    writing-mode: horizontal-tb;
    transform: none;
    letter-spacing: 0.12em;
  }

  .invite-ticket__dash {
    display: none;
  }
}

/* ——— Stats (Premium) ——— */
.stats-section {
  margin-top: 0.25rem;
}

.stats-shell {
  position: relative;
  overflow: hidden;
  padding: 1.35rem 1.25rem 1.4rem;
  border-radius: 20px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 14px 36px rgba(21, 32, 40, 0.05);
}

.stats-shell::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--teal), #2aa89a 42%, var(--gold) 80%, transparent);
}

.stats-shell__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.2rem;
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 0.45rem;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  background: var(--teal-soft);
  color: var(--teal);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section-badge i {
  width: 12px;
  height: 12px;
}

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

.section-head h3 {
  margin: 0 0 0.2rem;
  font-family: var(--heading);
  font-size: clamp(1.45rem, 2vw, 1.75rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.section-head p {
  margin: 0;
  color: var(--muted);
  font-size: var(--fs-sm);
  line-height: 1.45;
}

.stats-shell__aside {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: var(--fs-xs);
  font-weight: 500;
}

.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--up);
  box-shadow: 0 0 0 0 rgba(31, 157, 106, 0.55);
  animation: livePulse 1.8s ease-out infinite;
}

/* Featured metrics — light premium tiles */
.stats-featured {
  margin-bottom: 1.15rem;
}

.stat-feature {
  --accent: var(--teal);
  --accent-soft: var(--teal-soft);
  position: relative;
  overflow: hidden;
  height: 100%;
  min-height: 168px;
  padding: 1.15rem 1.15rem 1.1rem;
  border-radius: 16px;
  background: linear-gradient(165deg, #ffffff 0%, var(--accent-soft) 140%);
  border: 1px solid color-mix(in srgb, var(--accent) 22%, #e4e9ee);
  box-shadow: 0 10px 28px rgba(21, 32, 40, 0.05);
  transition: transform 0.28s var(--ease), box-shadow 0.28s;
}

.stat-feature:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 34px rgba(21, 32, 40, 0.08);
}

.stat-feature.accent-teal {
  --accent: var(--teal);
  --accent-soft: #e8f7f5;
}

.stat-feature.accent-gold {
  --accent: var(--gold);
  --accent-soft: #faf3e6;
}

.stat-feature.accent-ink {
  --accent: #2b4650;
  --accent-soft: #eef3f5;
}

.stat-feature__icon {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: #fff;
  color: var(--accent);
  border: 1px solid color-mix(in srgb, var(--accent) 18%, #e4e9ee);
  box-shadow: 0 6px 14px rgba(21, 32, 40, 0.05);
}

.stat-feature__icon i {
  width: 18px;
  height: 18px;
}

.stat-feature__tag {
  display: inline-block;
  margin-bottom: 0.7rem;
  font-size: var(--fs-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--accent);
}

.stat-feature__value {
  display: block;
  margin-bottom: 0.3rem;
  font-family: var(--font);
  font-size: clamp(1.55rem, 2.2vw, 1.85rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  color: var(--ink);
  line-height: 1.1;
}

.stat-feature__label {
  display: block;
  margin-bottom: 0.85rem;
  font-size: var(--fs-sm);
  color: var(--muted);
  font-weight: 500;
  padding-right: 2.5rem;
}

.stat-feature__bar {
  height: 5px;
  border-radius: 999px;
  background: rgba(21, 32, 40, 0.06);
  overflow: hidden;
}

.stat-feature__bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), color-mix(in srgb, var(--accent) 55%, #fff));
}

/* Groups */
.stats-group + .stats-group {
  margin-top: 1.15rem;
  padding-top: 1.05rem;
  border-top: 1px dashed var(--line);
}

.stats-group__title {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.8rem;
  color: var(--ink-soft);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.stats-group__title i {
  width: 14px;
  height: 14px;
  color: var(--teal);
}

/* Regular cards — stacked premium layout */
.stat-card {
  --accent: var(--teal);
  --accent-soft: var(--teal-soft);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.85rem;
  min-height: 118px;
  padding: 1rem 1.05rem 1.05rem;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 6px 18px rgba(21, 32, 40, 0.035);
  height: 100%;
  transition: transform 0.28s var(--ease), border-color 0.28s, box-shadow 0.28s;
}

.stat-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 14px;
  bottom: 14px;
  width: 3px;
  border-radius: 0 4px 4px 0;
  background: var(--accent);
}

.stat-card.accent-teal { --accent: var(--teal); --accent-soft: var(--teal-soft); }
.stat-card.accent-gold { --accent: var(--gold); --accent-soft: var(--gold-soft); }
.stat-card.accent-sky { --accent: var(--sky); --accent-soft: #e8f2f8; }
.stat-card.accent-green { --accent: var(--green); --accent-soft: #e8f6ef; }
.stat-card.accent-violet { --accent: var(--violet); --accent-soft: #efedf8; }
.stat-card.accent-coral { --accent: var(--coral); --accent-soft: #fcecea; }

.stat-card:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--accent) 30%, #e4e9ee);
  box-shadow: 0 14px 28px rgba(21, 32, 40, 0.07);
}

.stat-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  padding-left: 0.55rem;
}

.stat-card__head span {
  font-size: var(--fs-sm);
  color: var(--muted);
  font-weight: 500;
  line-height: 1.35;
  padding-top: 0.15rem;
}

.stat-card__icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  background: var(--accent-soft);
  color: var(--accent);
}

.stat-card__icon i {
  width: 16px;
  height: 16px;
}

.stat-card__value {
  display: block;
  padding-left: 0.55rem;
  font-family: var(--font);
  font-size: clamp(1.25rem, 1.8vw, 1.45rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
  line-height: 1.15;
}

.stat-card__hint {
  display: block;
  margin-top: -0.35rem;
  padding-left: 0.55rem;
  font-style: normal;
  font-size: var(--fs-xs);
  color: var(--muted);
  font-weight: 500;
}

@keyframes livePulse {
  0% { box-shadow: 0 0 0 0 rgba(31, 157, 106, 0.5); }
  70% { box-shadow: 0 0 0 8px rgba(31, 157, 106, 0); }
  100% { box-shadow: 0 0 0 0 rgba(31, 157, 106, 0); }
}

@media (max-width: 767.98px) {
  .stats-shell {
    padding: 1.1rem 0.9rem 1.15rem;
  }

  .stat-feature {
    min-height: 150px;
  }

  .stat-feature__value {
    font-size: 1.45rem;
  }

  .stat-card {
    min-height: 108px;
  }

  .stat-card__value {
    font-size: 1.25rem;
  }
}

/* ——— Footer / Toast ——— */
.page-footer {
  margin-top: 0.35rem;
  padding-top: 1.15rem;
  border-top: 1px solid var(--line);
  text-align: center;
  color: var(--muted);
  font-size: 0.84rem;
}

.page-footer p {
  margin: 0;
}

.app-toast {
  position: fixed;
  left: 50%;
  bottom: 1.5rem;
  transform: translateX(-50%) translateY(120%);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.15rem;
  border-radius: 12px;
  background: var(--ink);
  color: #fff;
  font-size: 0.86rem;
  font-weight: 500;
  z-index: 2000;
  opacity: 0;
  transition: 0.35s var(--ease);
  pointer-events: none;
  box-shadow: var(--shadow-lg);
}

.app-toast i {
  width: 16px;
  height: 16px;
  color: #7de0c3;
}

.app-toast.is-visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* ——— Animations ——— */
@keyframes ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes softPulse {
  0%, 100% { opacity: 0.85; }
  50% { opacity: 1; }
}

/* ——— Responsive ——— */
@media (max-width: 991.98px) {
  .sidebar {
    position: fixed;
    left: 0;
    top: 0;
    transform: translateX(-105%);
  }

  .sidebar.is-open {
    transform: translateX(0);
  }

  .sidebar-backdrop.is-visible {
    display: block;
  }
}

@media (max-width: 767.98px) {
  .page-content {
    padding: 1.1rem 1rem 1.5rem;
  }

  .topbar {
    padding: 0.75rem 1rem;
  }

  .invite-ticket {
    min-height: auto;
  }

  .ticker-credit {
    display: none;
  }
}
