*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
:root {
  --fire-red: #e22026;
  --fire-orange: #ff6a00;
  --fire-gold: #ffb800;
  --green: #22c55e;
  --blue: #3b82f6;
  --sidebar-w: 220px;
}

[data-theme="dark"],
:root {
  --dark-bg: #0d0d0d;
  --sidebar-bg: #111111;
  --card-bg: #1a1a1a;
  --input-bg: #242424;
  --topbar-bg: rgba(17, 17, 17, 0.92);
  --card-border: rgba(226, 32, 38, 0.18);
  --text-primary: #f0f0f0;
  --text-muted: #777;
  --text-muted-light: #e0dddd;
  --text-soft: #aaa;
  --text-main: #ffffff;
  --text-dim: rgba(255, 255, 255, 0.15);
  --row-odd: rgba(255, 255, 255, 0.015);
  --row-hover: rgba(226, 32, 38, 0.05);
  --line-color: rgba(226, 32, 38, 0.25);
  --border-sub: rgba(255, 255, 255, 0.05);
  --border-faint: rgba(255, 255, 255, 0.04);
  --border-input: rgba(255, 255, 255, 0.07);
  --nav-sub-bg: rgba(0, 0, 0, 0.2);
  --body-glow-1: rgba(226, 32, 38, 0.07);
  --body-glow-2: rgba(255, 106, 0, 0.05);
  --table-border: rgba(255, 255, 255, 0.03);
  --swal-bg: #111111;
  --swal-input-bg: #1e1e1e;
}
[data-theme="light"] {
  --dark-bg: #f0f2f5;
  --sidebar-bg: #1a1a1a;
  --card-bg: #ffffff;
  --input-bg: #f4f4f4;
  --topbar-bg: rgba(255, 255, 255, 0.95);
  --card-border: rgba(226, 32, 38, 0.15);
  --text-primary: #111111;
  --text-muted: #888888;
  --text-muted-light: #e0dddd;
  --text-soft: #555555;
  --text-main: #111111;
  --text-dim: rgba(0, 0, 0, 0.25);
  --row-odd: rgba(0, 0, 0, 0.02);
  --row-hover: rgba(226, 32, 38, 0.04);
  --line-color: rgba(226, 32, 38, 0.2);
  --border-sub: rgba(0, 0, 0, 0.06);
  --border-faint: rgba(0, 0, 0, 0.06);
  --border-input: rgba(0, 0, 0, 0.1);
  --nav-sub-bg: rgba(0, 0, 0, 0.15);
  --body-glow-1: rgba(226, 32, 38, 0.04);
  --body-glow-2: rgba(255, 106, 0, 0.03);
  --table-border: rgba(0, 0, 0, 0.04);
  --swal-bg: #ffffff;
  --swal-input-bg: #f4f4f4;
}

html,
body {
  height: 100%;
  font-family: "Outfit", sans-serif;
  background: var(--dark-bg);
  color: var(--text-primary);
  overflow-x: hidden;
  transition:
    background 0.3s ease,
    color 0.3s ease;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(
      ellipse 60% 50% at 70% 10%,
      var(--body-glow-1) 0%,
      transparent 60%
    ),
    radial-gradient(
      ellipse 40% 60% at 100% 80%,
      var(--body-glow-2) 0%,
      transparent 55%
    );
  pointer-events: none;
  z-index: 0;
}

/* ═══════════════════════════════════════════════
   SIDEBAR — always dark
═══════════════════════════════════════════════ */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: var(--sidebar-w);
  height: 100vh;
  background: var(--sidebar-bg);
  border-right: 1px solid rgba(226, 32, 38, 0.12);
  display: flex;
  flex-direction: column;
  z-index: 100;
  transition: background 0.3s ease;
}

.sidebar::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 1px;
  height: 100%;
  background: linear-gradient(
    180deg,
    transparent,
    rgba(226, 32, 38, 0.4) 40%,
    transparent
  );
}

.sidebar-logo {
  padding: 20px 18px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  display: flex;
  align-items: center;
  gap: 10px;
}

.sidebar-logo .logo-icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
}
.sidebar-logo .logo-icon img {
  width: 402%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 0 8px rgba(255, 106, 0, 0.6));
  animation: phoenixPulse 3s ease-in-out infinite alternate;
}

@keyframes phoenixPulse {
  0% {
    filter: drop-shadow(0 0 6px rgba(255, 106, 0, 0.4));
  }
  100% {
    filter: drop-shadow(0 0 14px rgba(255, 184, 0, 0.7));
  }
}

.logo-text {
  font-family: "Cinzel", serif;
  font-size: 13px;
  font-weight: 700;
  background: linear-gradient(135deg, #fff 30%, var(--fire-gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.logo-sub {
  font-size: 9px;
  color: #777;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.sidebar-nav {
  flex: 1;
  padding: 12px 0;
  overflow-y: auto;
}
.sidebar-nav::-webkit-scrollbar {
  width: 3px;
}
.sidebar-nav::-webkit-scrollbar-thumb {
  background: rgba(226, 32, 38, 0.3);
  border-radius: 2px;
}

.nav-section-label {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #555;
  padding: 14px 18px 6px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 18px;
  font-size: 13px;
  font-weight: 400;
  color: #aaa;
  text-decoration: none;
  cursor: pointer;
  position: relative;
  transition:
    color 0.2s,
    background 0.2s;
}

.nav-item:hover {
  color: #f0f0f0;
  background: rgba(255, 255, 255, 0.03);
}

.nav-item.active {
  color: var(--fire-gold);
  background: rgba(226, 32, 38, 0.08);
}

.nav-item.active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--fire-red), var(--fire-orange));
  border-radius: 0 2px 2px 0;
}

.nav-icon {
  width: 16px;
  text-align: center;
  font-size: 14px;
}

.sub-arrow {
  margin-left: auto;
  font-size: 16px;
  color: #555;
  transition: transform 0.25s ease;
  line-height: 1;
}
.has-sub.open .sub-arrow {
  transform: rotate(90deg);
  color: var(--fire-red);
}

.nav-sub {
  display: none;
  background: var(--nav-sub-bg);
  border-left: 2px solid rgba(226, 32, 38, 0.25);
  margin: 0 0 4px 28px;
  border-radius: 0 0 6px 6px;
}

.nav-sub-item {
  display: block;
  padding: 8px 14px;
  font-size: 12px;
  color: #666;
  text-decoration: none;
  transition:
    color 0.2s,
    padding-left 0.2s;
}
.nav-sub-item:hover {
  color: var(--fire-gold);
  padding-left: 18px;
}

/* If nav-sub contains active item → show it */
.nav-sub:has(.nav-sub-item.active) {
  display: block;
}

/* Active effect (same as hover) */
.nav-sub-item.active {
  color: var(--fire-gold);
  padding-left: 18px;
}

.sidebar-bottom {
  padding: 14px 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.sidebar-user {
  display: flex;
  align-items: center;
  gap: 10px;
}

.user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--fire-red), var(--fire-orange));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

.user-name {
  font-size: 12px;
  font-weight: 500;
  color: #f0f0f0;
}
.user-role {
  font-size: 10px;
  color: #777;
}

.logout-btn {
  margin-left: auto;
  color: #777;
  font-size: 14px;
  cursor: pointer;
  transition: color 0.2s;
}
.logout-btn:hover {
  color: var(--fire-red);
}

/* ═══════════════════════════════════════════════
   TOPBAR
═══════════════════════════════════════════════ */
.topbar {
  position: fixed;
  top: 0;
  left: var(--sidebar-w);
  right: 0;
  height: 56px;
  background: var(--topbar-bg);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(226, 32, 38, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  z-index: 90;
  transition: background 0.3s ease;
}

.topbar-title {
  font-family: "Cinzel", serif;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--text-primary);
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.topbar-date {
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

.topbar-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--input-bg);
  border: 1px solid var(--border-input);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 15px;
  color: var(--text-muted);
  transition: all 0.2s;
  position: relative;
}
.topbar-icon:hover {
  border-color: var(--fire-red);
  color: var(--fire-red);
}

/* ── THEME TOGGLE BUTTON ── */
#theme-toggle {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--input-bg);
  border: 1px solid var(--border-input);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 16px;
  color: var(--text-muted);
  transition: all 0.2s;
  flex-shrink: 0;
}
#theme-toggle:hover {
  border-color: var(--fire-gold);
}

.notif-dot {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 7px;
  height: 7px;
  background: var(--fire-red);
  border-radius: 50%;
  border: 1.5px solid var(--card-bg);
}

/* ═══════════════════════════════════════════════
   MAIN CONTENT
═══════════════════════════════════════════════ */
.main-content {
  margin-left: var(--sidebar-w);
  padding-top: 56px;
  min-height: 100vh;
  position: relative;
  z-index: 1;
}

.content-inner {
  padding: 26px 28px;
}

/* ── PAGE HEADER ── */
.page-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 24px;
  animation: fadeUp 0.4s ease both;
}

.page-header h1 {
  font-family: "Cinzel", serif;
  font-size: 20px;
  font-weight: 700;
  background: linear-gradient(
    135deg,
    var(--text-primary) 30%,
    var(--fire-gold) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.page-header p {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 3px;
}

/* ═══════════════════════════════════════════════
   REFERRAL BANNER
═══════════════════════════════════════════════ */
.referral-banner {
  background: var(--card-bg);
  border: 1px solid rgba(255, 184, 0, 0.2);
  border-radius: 14px;
  padding: 18px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
  position: relative;
  overflow: hidden;
  animation: fadeUp 0.4s ease 0.05s both;
}

.referral-banner::before {
  content: "";
  position: absolute;
  top: 0;
  left: 8%;
  width: 84%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--fire-gold),
    transparent
  );
}

.ref-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.ref-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: rgba(255, 184, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.ref-label {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 4px;
}
.ref-code {
  font-family: "Cinzel", serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--fire-gold);
  letter-spacing: 0.1em;
}

.ref-copy {
  padding: 8px 18px;
  border: 1px solid rgba(255, 184, 0, 0.35);
  border-radius: 8px;
  background: transparent;
  color: var(--fire-gold);
  font-family: "Outfit", sans-serif;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}
.ref-copy:hover {
  background: rgba(255, 184, 0, 0.08);
}

.ref-stats {
  display: flex;
  gap: 24px;
}
.ref-stat {
  text-align: center;
}
.ref-stat .rs-val {
  font-family: "Cinzel", serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
}
.ref-stat .rs-lbl {
  font-size: 10px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 2px;
}

/* ═══════════════════════════════════════════════
   STAT CARDS
═══════════════════════════════════════════════ */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 20px;
}

.stat-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 14px;
  padding: 18px 18px 16px;
  position: relative;
  overflow: hidden;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}
.stat-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}
.stat-card:nth-child(1) {
  animation-delay: 0.08s;
}
.stat-card:nth-child(2) {
  animation-delay: 0.13s;
}
.stat-card:nth-child(3) {
  animation-delay: 0.18s;
}
.stat-card:nth-child(4) {
  animation-delay: 0.23s;
}

.stat-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 10%;
  width: 80%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(226, 32, 38, 0.5),
    transparent
  );
}

.card-icon {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  margin-bottom: 12px;
}
.icon-red {
  background: rgba(226, 32, 38, 0.15);
}
.icon-gold {
  background: rgba(255, 184, 0, 0.12);
}
.icon-green {
  background: rgba(34, 197, 94, 0.12);
}
.icon-blue {
  background: rgba(59, 130, 246, 0.12);
}

.stat-label {
  font-size: 10px;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 5px;
}

.stat-value {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1;
  margin-bottom: 8px;
  font-family: "Cinzel", serif;
}

.stat-change {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 500;
  padding: 2px 8px;
  border-radius: 20px;
}
.change-up {
  background: rgba(34, 197, 94, 0.12);
  color: var(--green);
}
.change-down {
  background: rgba(226, 32, 38, 0.12);
  color: var(--fire-red);
}
.change-neu {
  background: rgba(255, 184, 0, 0.1);
  color: var(--fire-gold);
}

/* ═══════════════════════════════════════════════
   PANEL / CARD
═══════════════════════════════════════════════ */
.panel {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 14px;
  overflow: hidden;
  position: relative;
  transition: background 0.3s ease;
}

.panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 10%;
  width: 80%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(226, 32, 38, 0.4),
    transparent
  );
}

.panel-header {
  padding: 14px 18px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-faint);
}

.panel-title {
  font-family: "Cinzel", serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text-primary);
}

.panel-action {
  font-size: 11px;
  color: var(--fire-red);
  cursor: pointer;
  transition: color 0.2s;
}
.panel-action:hover {
  color: var(--fire-orange);
}

.panel-body {
  padding: 14px 18px;
}

/* ── BOTTOM GRID ── */
.bottom-grid {
  grid-template-columns: 1fr 1fr 320px;
  gap: 16px;
  animation: fadeUp 0.5s ease 0.3s both;
}

/* ═══════════════════════════════════════════════
   CHART BARS
═══════════════════════════════════════════════ */
.chart-bars {
  display: flex;
  align-items: flex-end;
  gap: 5px;
  height: 110px;
}
.bar-group {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.bar {
  width: 100%;
  border-radius: 3px 3px 0 0;
  transition: opacity 0.2s;
  cursor: pointer;
}
.bar:hover {
  opacity: 0.8;
}
.bar-red {
  background: linear-gradient(180deg, var(--fire-red), rgba(226, 32, 38, 0.35));
}
.bar-gold {
  background: linear-gradient(
    180deg,
    var(--fire-gold),
    rgba(255, 184, 0, 0.25)
  );
}
.bar-label {
  font-size: 9px;
  color: var(--text-muted);
}

.chart-legend {
  display: flex;
  gap: 14px;
  margin-top: 12px;
}
.legend-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  color: var(--text-muted);
}
.legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 2px;
}

/* ═══════════════════════════════════════════════
   DATA TABLE
═══════════════════════════════════════════════ */
.data-table {
  width: 100%;
  border-collapse: collapse;
}

.data-table th {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  padding: 0 0 10px;
  text-align: left;
  border-bottom: 1px solid var(--border-sub);
}

.data-table td {
  font-size: 12px;
  padding: 9px 0;
  border-bottom: 1px solid var(--table-border);
  color: var(--text-soft);
}
.data-table tr:last-child td {
  border-bottom: none;
}
.data-table tr:hover td {
  color: var(--text-primary);
}

.td-bold {
  color: var(--text-primary) !important;
  font-weight: 500;
}

.status-badge {
  font-size: 10px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 20px;
  letter-spacing: 0.03em;
}
.badge-success {
  background: rgba(34, 197, 94, 0.12);
  color: var(--green);
}
.badge-pending {
  background: rgba(255, 184, 0, 0.12);
  color: var(--fire-gold);
}
.badge-fail {
  background: rgba(226, 32, 38, 0.12);
  color: var(--fire-red);
}

/* ═══════════════════════════════════════════════
   RIGHT COLUMN WIDGETS
═══════════════════════════════════════════════ */
.right-col {
  /* display: flex; */
  flex-direction: column;
  gap: 14px;
}

.clock-widget {
  text-align: center;
  padding: 18px 16px;
}
.clock-time {
  font-family: "Cinzel", serif;
  font-size: 32px;
  font-weight: 700;
  background: linear-gradient(135deg, var(--text-primary), var(--fire-gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 0.08em;
}
.clock-date {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 4px;
  letter-spacing: 0.06em;
}
.clock-zone {
  font-size: 10px;
  color: rgba(226, 32, 38, 0.7);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 3px;
}

/* Level card */
.level-card {
  padding: 16px 18px;
}
.level-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}
.level-badge {
  font-family: "Cinzel", serif;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  background: linear-gradient(
    135deg,
    rgba(255, 184, 0, 0.15),
    rgba(255, 106, 0, 0.1)
  );
  color: var(--fire-gold);
  border: 1px solid rgba(255, 184, 0, 0.25);
  letter-spacing: 0.06em;
}
.level-pts {
  font-size: 11px;
  color: var(--text-muted);
}
.level-pts span {
  color: var(--fire-gold);
  font-weight: 600;
}
.level-bar-wrap {
  height: 6px;
  background: var(--border-sub);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 8px;
}
.level-bar-fill {
  height: 100%;
  border-radius: 10px;
  background: linear-gradient(90deg, var(--fire-red), var(--fire-gold));
}
.level-note {
  font-size: 10px;
  color: var(--text-muted);
}
.level-note span {
  color: var(--fire-orange);
}

/* Quick Actions */
.quick-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 14px 18px;
}
.qa-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 14px 8px;
  border-radius: 10px;
  background: var(--input-bg);
  border: 1px solid var(--border-input);
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}
.qa-btn:hover {
  border-color: var(--fire-red);
  background: rgba(226, 32, 38, 0.06);
}
.qa-icon {
  font-size: 20px;
}
.qa-label {
  font-size: 11px;
  color: var(--text-soft);
  font-weight: 500;
  text-align: center;
}

/* Activity */
.activity-item {
  display: flex;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-faint);
  align-items: flex-start;
}
.activity-item:last-child {
  border-bottom: none;
}
.activity-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  margin-top: 4px;
  flex-shrink: 0;
}
.dot-red {
  background: var(--fire-red);
  box-shadow: 0 0 5px rgba(226, 32, 38, 0.5);
}
.dot-gold {
  background: var(--fire-gold);
  box-shadow: 0 0 5px rgba(255, 184, 0, 0.4);
}
.dot-green {
  background: var(--green);
  box-shadow: 0 0 5px rgba(34, 197, 94, 0.4);
}
.act-title {
  font-size: 12px;
  color: var(--text-primary);
}
.act-time {
  font-size: 10px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* ═══════════════════════════════════════════════
   PAGE LOADER
═══════════════════════════════════════════════ */
.page-loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 999999;
  transition: opacity 0.5s ease-out;
  flex-direction: column;
  gap: 16px;
}
.loader-spinner {
  width: 60px;
  height: 60px;
  border: 4px solid rgba(255, 255, 255, 0.3);
  border-top: 4px solid var(--fire-red);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}
.loader-text {
  color: #fff;
  font-size: 14px;
  font-family: "Outfit", sans-serif;
}
@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
body.loading {
  overflow: hidden;
}

/* ═══════════════════════════════════════════════
   SCROLLBAR
═══════════════════════════════════════════════ */
::-webkit-scrollbar {
  width: 4px;
}
::-webkit-scrollbar-thumb {
  background: rgba(226, 32, 38, 0.25);
  border-radius: 4px;
}

/* ═══════════════════════════════════════════════
   ANIMATIONS
═══════════════════════════════════════════════ */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ═══════════════════════════════════════════════
   MOBILE SIDEBAR TOGGLE
═══════════════════════════════════════════════ */
.sidebar-toggle {
  display: none;
  position: fixed;
  top: 10px;
  left: 12px;
  z-index: 200;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  color: var(--fire-gold);
  font-size: 18px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}
.sidebar-toggle:hover {
  border-color: var(--fire-red);
}

.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 98;
  backdrop-filter: blur(2px);
}
.sidebar-overlay.active {
  display: block;
}

.sidebar-close-btn {
  display: none;
}

/* ═══════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════ */
@media (max-width: 1200px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .bottom-grid {
    grid-template-columns: 1fr 1fr;
  }
  .right-col {
    grid-column: 1 / -1;
    flex-direction: row;
    flex-wrap: wrap;
  }
}

@media (max-width: 768px) {
  .sidebar-toggle {
    display: flex;
  }
  .sidebar-close-btn {
    display: flex;
    margin-left: auto;
    width: 30px;
    height: 30px;
    border-radius: 7px;
    background: rgba(226, 32, 38, 0.12);
    border: 1px solid rgba(226, 32, 38, 0.25);
    color: var(--fire-red);
    font-size: 14px;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.2s;
  }
  .sidebar-close-btn:hover {
    background: rgba(226, 32, 38, 0.2);
  }
  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: 99;
    width: 260px;
  }
  .sidebar.open {
    transform: translateX(0);
  }
  .topbar {
    left: 0;
    padding-left: 60px;
    padding-right: 16px;
  }
  .topbar-title {
    font-size: 13px;
  }
  .topbar-date {
    font-size: 10px;
    white-space: nowrap;
  }
  .main-content {
    margin-left: 0;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .bottom-grid {
    grid-template-columns: 1fr;
  }
  .referral-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
  .ref-stats {
    width: 100%;
    justify-content: space-around;
    padding: 10px 0;
    border-top: 1px solid var(--border-faint);
    border-bottom: 1px solid var(--border-faint);
  }
  .ref-copy {
    width: 100%;
    text-align: center;
  }
  .page-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}

@media (min-width: 769px) {
  .sidebar-close-btn {
    display: none;
  }
}

@media (max-width: 480px) {
  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }
  /* .content-inner {
    padding: 16px 14px;
  } */
  .stat-value {
    font-size: 20px;
  }
  .stat-card {
    padding: 14px;
  }
  .card-icon {
    width: 34px;
    height: 34px;
    font-size: 15px;
  }
}

/* ═══════════════════════════════════════════════
   LIGHT MODE — SPECIFIC OVERRIDES
   (elements that need more than just variable swap)
═══════════════════════════════════════════════ */
[data-theme="light"] body::before {
  background:
    radial-gradient(
      ellipse 60% 50% at 70% 10%,
      rgba(226, 32, 38, 0.04) 0%,
      transparent 60%
    ),
    radial-gradient(
      ellipse 40% 60% at 100% 80%,
      rgba(255, 106, 0, 0.03) 0%,
      transparent 55%
    );
}

[data-theme="light"] .stat-card:hover {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

[data-theme="light"] .topbar-title {
  color: #111;
}

[data-theme="light"] .panel-title {
  color: #111;
}

[data-theme="light"] .data-table td {
  color: #444;
}
[data-theme="light"] .data-table tr:hover td {
  color: #111;
}

[data-theme="light"] .qa-btn:hover {
  background: rgba(226, 32, 38, 0.04);
}

[data-theme="light"] .nav-sub-item {
  color: #aaa;
}
[data-theme="light"] .nav-sub-item:hover {
  color: var(--fire-gold);
}

.swal2-container {
  /* backdrop-filter: blur(6px) !important; */
  -webkit-backdrop-filter: blur(6px) !important;
  /* background: rgba(0, 0, 0, 0.72) !important; */
  z-index: 99999 !important;
}

.swal2-popup {
  background: var(--swal-bg) !important;
  border: 1px solid rgba(226, 32, 38, 0.25) !important;
  border-radius: 18px !important;
  box-shadow:
    0 0 0 1px rgba(226, 32, 38, 0.08),
    0 24px 60px rgba(0, 0, 0, 0.75),
    0 0 80px rgba(226, 32, 38, 0.07) !important;
  padding: 36px 32px 28px !important;
  position: relative !important;
  overflow: hidden !important;
  font-family: "Outfit", sans-serif !important;
  max-width: 440px !important;
  width: 100% !important;
}

.swal2-popup::before {
  content: "" !important;
  position: absolute !important;
  top: 0 !important;
  left: 10% !important;
  width: 80% !important;
  height: 1px !important;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(226, 32, 38, 0.6),
    transparent
  ) !important;
  pointer-events: none !important;
  z-index: 0 !important;
}
.swal2-popup::after {
  content: "" !important;
  position: absolute !important;
  inset: 0 !important;
  background-image:
    linear-gradient(rgba(226, 32, 38, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(226, 32, 38, 0.018) 1px, transparent 1px) !important;
  background-size: 32px 32px !important;
  pointer-events: none !important;
  z-index: 0 !important;
}
.swal2-popup > * {
  position: relative !important;
  z-index: 1 !important;
}

.swal2-title {
  font-family: "Cinzel", serif !important;
  font-size: 18px !important;
  font-weight: 700 !important;
  color: var(--text-primary) !important;
  letter-spacing: 0.06em !important;
  padding: 0 !important;
  margin-bottom: 8px !important;
  line-height: 1.4 !important;
}

.swal2-html-container,
.swal2-content {
  font-family: "Outfit", sans-serif !important;
  font-size: 13.5px !important;
  color: var(--text-muted) !important;
  line-height: 1.65 !important;
  margin: 4px 0 0 !important;
  padding: 0 !important;
}

.swal2-icon {
  border-width: 2px !important;
  margin: 0 auto 20px !important;
  width: 62px !important;
  height: 62px !important;
}
.swal2-icon.swal2-warning {
  border-color: rgba(255, 184, 0, 0.35) !important;
  color: #ffb800 !important;
  background: rgba(255, 184, 0, 0.06) !important;
}
.swal2-icon.swal2-warning .swal2-icon-content {
  color: #ffb800 !important;
  font-size: 30px !important;
}
.swal2-icon.swal2-success {
  border-color: rgba(34, 197, 94, 0.35) !important;
  background: rgba(34, 197, 94, 0.06) !important;
}
.swal2-icon.swal2-success .swal2-success-ring {
  border-color: rgba(34, 197, 94, 0.2) !important;
}
.swal2-icon.swal2-success [class^="swal2-success-line"] {
  background-color: #22c55e !important;
}
.swal2-icon.swal2-success::before,
.swal2-icon.swal2-success::after {
  background: transparent !important;
}
.swal2-icon.swal2-error {
  border-color: rgba(226, 32, 38, 0.35) !important;
  background: rgba(226, 32, 38, 0.06) !important;
}
.swal2-icon.swal2-error [class^="swal2-x-mark-line"] {
  background-color: #e22026 !important;
}
.swal2-icon.swal2-info {
  border-color: rgba(59, 130, 246, 0.35) !important;
  color: #60a5fa !important;
  background: rgba(59, 130, 246, 0.06) !important;
}
.swal2-icon.swal2-info .swal2-icon-content {
  color: #60a5fa !important;
}
.swal2-icon.swal2-question {
  border-color: rgba(255, 184, 0, 0.35) !important;
  color: #ffb800 !important;
  background: rgba(255, 184, 0, 0.06) !important;
}

.swal2-actions {
  gap: 10px !important;
  margin-top: 22px !important;
  padding: 0 !important;
  flex-wrap: wrap !important;
  justify-content: center !important;
}

.swal2-confirm.swal2-styled {
  background: linear-gradient(135deg, #e22026, #c41c21) !important;
  border: none !important;
  border-radius: 10px !important;
  font-family: "Outfit", sans-serif !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  letter-spacing: 0.04em !important;
  padding: 10px 28px !important;
  color: #fff !important;
  box-shadow: 0 4px 16px rgba(226, 32, 38, 0.35) !important;
  transition: all 0.2s ease !important;
  min-width: 110px !important;
  outline: none !important;
}
.swal2-confirm.swal2-styled:hover {
  background: linear-gradient(135deg, #f02428, #d41e23) !important;
  box-shadow: 0 6px 22px rgba(226, 32, 38, 0.5) !important;
  transform: translateY(-1px) !important;
}
.swal2-confirm.swal2-styled:focus {
  box-shadow: 0 0 0 3px rgba(226, 32, 38, 0.3) !important;
}

.swal2-cancel.swal2-styled {
  background: transparent !important;
  border: 1px solid var(--border-input) !important;
  border-radius: 10px !important;
  font-family: "Outfit", sans-serif !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  padding: 10px 24px !important;
  color: var(--text-muted) !important;
  transition: all 0.2s ease !important;
  min-width: 90px !important;
  outline: none !important;
}
.swal2-cancel.swal2-styled:hover {
  border-color: rgba(226, 32, 38, 0.35) !important;
  color: #e22026 !important;
  background: rgba(226, 32, 38, 0.06) !important;
}

.swal2-timer-progress-bar-container {
  border-radius: 0 0 18px 18px !important;
  overflow: hidden !important;
}
.swal2-timer-progress-bar {
  background: linear-gradient(90deg, #e22026, #ff6a00, #ffb800) !important;
  height: 3px !important;
}

.swal2-close {
  color: var(--text-muted) !important;
  font-size: 22px !important;
  width: 32px !important;
  height: 32px !important;
  top: 12px !important;
  right: 14px !important;
  transition: color 0.2s !important;
  background: transparent !important;
  border: none !important;
}
.swal2-close:hover {
  color: #e22026 !important;
  background: transparent !important;
  transform: none !important;
}

.swal2-input,
.swal2-textarea,
.swal2-select {
  background: var(--swal-input-bg) !important;
  border: 1px solid var(--border-input) !important;
  border-radius: 8px !important;
  color: var(--text-primary) !important;
  font-family: "Outfit", sans-serif !important;
  font-size: 13px !important;
  box-shadow: none !important;
  margin-top: 12px !important;
}
.swal2-input:focus,
.swal2-textarea:focus {
  border-color: rgba(226, 32, 38, 0.5) !important;
  box-shadow: 0 0 0 3px rgba(226, 32, 38, 0.1) !important;
  outline: none !important;
}

.swal2-loader {
  border-color: #e22026 transparent #e22026 transparent !important;
}

.swal2-show {
  animation: phoenixSwalIn 0.28s cubic-bezier(0.34, 1.5, 0.64, 1) both !important;
}
.swal2-hide {
  animation: phoenixSwalOut 0.18s ease-in both !important;
}
@keyframes phoenixSwalIn {
  from {
    opacity: 0;
    transform: scale(0.86) translateY(18px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}
@keyframes phoenixSwalOut {
  from {
    opacity: 1;
    transform: scale(1);
  }
  to {
    opacity: 0;
    transform: scale(0.9);
  }
}

.ml-page {
  padding: 28px;
  min-height: 100vh;
  background: var(--dark-bg, #0d0d0d);
}

.ml-header {
  margin-bottom: 28px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
}

.ml-header h2 {
  font-family: "Cinzel", serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary, #fff);
  letter-spacing: 0.07em;
  margin: 0 0 4px;
}

.ml-header p {
  font-family: "Outfit", sans-serif;
  font-size: 13px;
  color: var(--text-muted-light, #777);
  margin: 0;
}

/* export btn */
.ml-export-btn {
  padding: 9px 20px;
  border: none;
  border-radius: 9px;
  background: linear-gradient(135deg, #16a34a, #15803d);
  color: #fff;
  font-family: "Outfit", sans-serif;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 7px;
  box-shadow: 0 3px 12px rgba(22, 163, 74, 0.3);
  transition: all 0.2s;
  text-decoration: none;
}

.ml-export-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 5px 18px rgba(22, 163, 74, 0.45);
}

/* stats */
.ml-stats {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin-bottom: 22px;
}

@media (max-width: 900px) {
  .ml-stats {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 600px) {
  .ml-stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

.ml-sc {
  background: var(--card-bg, #1a1a1a);
  border: 1px solid var(--card-border, rgba(226, 32, 38, 0.18));
  border-radius: 12px;
  padding: 14px 16px;
  position: relative;
  overflow: hidden;
  animation: mlUp 0.4s ease both;
}

.ml-sc:nth-child(2) {
  animation-delay: 0.04s;
}

.ml-sc:nth-child(3) {
  animation-delay: 0.08s;
}

.ml-sc:nth-child(4) {
  animation-delay: 0.12s;
}

.ml-sc:nth-child(5) {
  animation-delay: 0.16s;
}

.ml-sc::before {
  content: "";
  position: absolute;
  top: 0;
  left: 10%;
  width: 80%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(226, 32, 38, 0.4),
    transparent
  );
}

.ml-sc-ico {
  font-size: 18px;
  margin-bottom: 7px;
}

.ml-sc-val {
  font-family: "Cinzel", serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary, #fff);
  margin-bottom: 2px;
}

.ml-sc-lbl {
  font-family: "Outfit", sans-serif;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted-light, #777);
}

/* filter card */
.ml-filter-card {
  background: var(--card-bg, #1a1a1a);
  border: 1px solid var(--card-border, rgba(226, 32, 38, 0.18));
  border-radius: 13px;
  padding: 16px 20px;
  margin-bottom: 20px;
  position: relative;
  overflow: hidden;
  animation: mlUp 0.4s ease 0.1s both;
}

.ml-filter-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 8%;
  width: 84%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(226, 32, 38, 0.4),
    transparent
  );
}

.ml-filter-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

/* inputs */
.ml-search-wrap {
  position: relative;
  flex: 1;
  min-width: 220px;
}

.ml-search-wrap i {
  position: absolute;
  left: 11px;
  top: 50%;
  transform: translateY(-50%);
  color: rgb(255 255 255 / 47%);
  font-size: 12px;
  pointer-events: none;
}

.ml-search {
  width: 100%;
  padding: 9px 12px 9px 32px;
  background: var(--input-bg, #242424);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 8px;
  color: var(--text-primary, #fff);
  font-family: "Outfit", sans-serif;
  font-size: 12px;
  outline: none;
  transition: border-color 0.2s;
}

.ml-search::placeholder {
  color: rgba(255, 255, 255, 0.2);
}

.ml-search:focus {
  border-color: rgba(226, 32, 38, 0.4);
  box-shadow: 0 0 0 3px rgba(226, 32, 38, 0.07);
}

.ml-select {
  padding: 9px 12px;
  background: var(--input-bg, #242424);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 8px;
  color: var(--text-primary, #fff);
  font-family: "Outfit", sans-serif;
  font-size: 12px;
  outline: none;
  min-width: 140px;
  cursor: pointer;
}

.ml-select option {
  background: #1a1a1a;
}

.ml-select:focus {
  border-color: rgba(226, 32, 38, 0.4);
}

.ml-date {
  padding: 9px 12px;
  background: var(--input-bg, #242424);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 8px;
  color: var(--text-primary, #fff);
  font-family: "Outfit", sans-serif;
  font-size: 12px;
  outline: none;
}

.ml-date::-webkit-calendar-picker-indicator {
  filter: invert(0.5);
}

.ml-apply {
  padding: 9px 20px;
  border: none;
  border-radius: 8px;
  background: linear-gradient(135deg, #e22026, #c41c21);
  color: #fff;
  font-family: "Outfit", sans-serif;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
}

.ml-apply:hover {
  opacity: 0.9;
}

.ml-reset {
  padding: 9px 14px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: transparent;
  color: rgb(255 255 255 / 67%);
  font-family: "Outfit", sans-serif;
  font-size: 12px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  transition: all 0.2s;
}

.ml-reset:hover {
  border-color: rgba(226, 32, 38, 0.3);
  color: #e22026;
}

/* chips */
.ml-chips {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}

.ml-chip {
  padding: 5px 14px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: transparent;
  color: rgb(255 255 255 / 67%);
  font-family: "Outfit", sans-serif;
  font-size: 11px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  display: inline-block;
}

.ml-chip:hover {
  border-color: rgb(255 255 255 / 47%);
  color: #fff;
}

.ml-chip.active {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgb(255 255 255 / 50%);
  color: #fff;
}

.ml-chip.c-active {
  border-color: rgba(34, 197, 94, 0.25);
  color: rgba(34, 197, 94, 0.7);
}

.ml-chip.c-active.active,
.ml-chip.c-active:hover {
  background: rgba(34, 197, 94, 0.12);
  border-color: rgba(34, 197, 94, 0.5);
  color: #22c55e;
}

.ml-chip.c-inactive {
  border-color: rgba(226, 32, 38, 0.25);
  color: rgba(226, 32, 38, 0.7);
}

.ml-chip.c-inactive.active,
.ml-chip.c-inactive:hover {
  background: rgba(226, 32, 38, 0.12);
  border-color: rgba(226, 32, 38, 0.5);
  color: #e22026;
}

/* table card */
.ml-table-card {
  background: var(--card-bg, #1a1a1a);
  border: 1px solid var(--card-border, rgba(226, 32, 38, 0.18));
  border-radius: 14px;
  overflow: hidden;
  position: relative;
  animation: mlUp 0.4s ease 0.15s both;
}

.ml-table-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 8%;
  width: 84%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(226, 32, 38, 0.5),
    transparent
  );
}

.ml-thead {
  padding: 14px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ml-ttitle {
  font-family: "Cinzel", serif;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary, #fff);
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.ml-tcount {
  padding: 3px 11px;
  background: rgba(226, 32, 38, 0.12);
  border: 1px solid rgba(226, 32, 38, 0.25);
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  color: #e22026;
  font-family: "Outfit", sans-serif;
}

.ml-scroll {
  overflow-x: auto;
}

.ml-scroll::-webkit-scrollbar {
  height: 4px;
}

.ml-scroll::-webkit-scrollbar-thumb {
  background: rgba(226, 32, 38, 0.3);
  border-radius: 4px;
}

table.ml-tbl {
  width: 100%;
  border-collapse: collapse;
  min-width: 1400px;
}

table.ml-tbl thead tr {
  background: rgba(255, 255, 255, 0.02);
}

table.ml-tbl thead th {
  padding: 11px 13px;
  font-family: "Outfit", sans-serif;
  font-size: 9.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted-light, #777);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  white-space: nowrap;
  text-align: left;
}

table.ml-tbl tbody tr {
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  transition: background 0.15s;
}

table.ml-tbl tbody tr:hover {
  background: rgba(226, 32, 38, 0.04);
}

table.ml-tbl tbody tr:last-child {
  border-bottom: none;
}

table.ml-tbl tbody td {
  padding: 12px 13px;
  font-family: "Outfit", sans-serif;
  font-size: 12px;
  color: rgb(255 255 255 / 93%);
  vertical-align: middle;
}

/* member cell */
.ml-member-cell {
  display: flex;
  align-items: center;
  gap: 9px;
}

.ml-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #e22026, #ff6a00);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Cinzel", serif;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

.ml-mname {
  font-weight: 600;
  color: var(--text-primary, #fff);
  font-size: 12.5px;
  white-space: nowrap;
}

.ml-mid {
  font-family: "Courier New", monospace;
  font-size: 10.5px;
  color: #ffb800;
}

/* badges */
.ml-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3px 9px;
  border-radius: 20px;
  font-size: 10px;
  font-weight: 600;
  white-space: nowrap;
}

.ml-badge.active {
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: #22c55e;
}

.ml-badge.inactive {
  background: rgba(226, 32, 38, 0.12);
  border: 1px solid rgba(226, 32, 38, 0.3);
  color: #e22026;
}

.ml-badge.verified {
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.25);
  color: #22c55e;
}

.ml-badge.pending {
  background: rgba(255, 184, 0, 0.12);
  border: 1px solid rgba(255, 184, 0, 0.25);
  color: #ffb800;
}

.ml-badge.rejected {
  background: rgba(226, 32, 38, 0.12);
  border: 1px solid rgba(226, 32, 38, 0.25);
  color: #e22026;
}

.ml-badge.no-kyc {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgb(255 255 255 / 50%);
}

/* wallet values */
.ml-wallet {
  font-family: "Cinzel", serif;
  font-size: 11.5px;
  font-weight: 700;
  white-space: nowrap;
}

.ml-wallet.fund {
  color: #ffb800;
}

.ml-wallet.main {
  color: #60a5fa;
}

.ml-wallet.income {
  color: #22c55e;
}

/* package badge */
.ml-pkg {
  display: inline-flex;
  padding: 2px 9px;
  border-radius: 5px;
  font-size: 10px;
  font-weight: 600;
  white-space: nowrap;
}

.ml-pkg.none {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: rgb(255 255 255 / 50%);
}

.ml-pkg.secure {
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.25);
  color: #60a5fa;
}

.ml-pkg.high {
  background: rgba(226, 32, 38, 0.1);
  border: 1px solid rgba(226, 32, 38, 0.25);
  color: #e22026;
}

/* team count */
.ml-team {
  display: flex;
  gap: 6px;
  align-items: center;
}

.ml-team-d {
  font-family: "Outfit", sans-serif;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 5px;
  background: rgba(59, 130, 246, 0.08);
  border: 1px solid rgba(59, 130, 246, 0.2);
  color: #60a5fa;
}

.ml-team-n {
  font-family: "Outfit", sans-serif;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 5px;
  background: rgba(168, 85, 247, 0.08);
  border: 1px solid rgba(168, 85, 247, 0.2);
  color: #c084fc;
}

/* action btns */
.ml-acts {
  display: flex;
  gap: 5px;
  align-items: center;
}

.ml-btn {
  padding: 5px 11px;
  border-radius: 6px;
  font-family: "Outfit", sans-serif;
  font-size: 10px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  border: 1px solid;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.ml-btn-activate {
  background: rgba(34, 197, 94, 0.08);
  border-color: rgba(34, 197, 94, 0.3);
  color: #22c55e;
}

.ml-btn-activate:hover {
  background: rgba(34, 197, 94, 0.18);
}

.ml-btn-deactivate {
  background: rgba(226, 32, 38, 0.08);
  border-color: rgba(226, 32, 38, 0.3);
  color: #e22026;
}

.ml-btn-deactivate:hover {
  background: rgba(226, 32, 38, 0.18);
}

/* pag */
.ml-pag {
  padding: 14px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.ml-pag-info {
  font-family: "Outfit", sans-serif;
  font-size: 12px;
  color: var(--text-muted-light, #777);
}

/* empty */
.ml-empty {
  text-align: center;
  padding: 60px 20px;
  font-family: "Outfit", sans-serif;
  color: rgba(255, 255, 255, 0.2);
}

.ml-empty-ico {
  font-size: 48px;
  opacity: 0.35;
  margin-bottom: 14px;
}

.ml-empty h5 {
  font-family: "Cinzel", serif;
  font-size: 14px;
  color: rgb(255 255 255 / 47%);
  margin-bottom: 6px;
}

@keyframes mlUp {
  from {
    opacity: 0;
    transform: translateY(14px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.upwd-page {
  padding: 28px;
  min-height: 100vh;
  background: var(--dark-bg, #0d0d0d);
}

.upwd-header {
  margin-bottom: 28px;
}

.upwd-header h2 {
  font-family: "Cinzel", serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary, #fff);
  letter-spacing: 0.07em;
  margin: 0 0 4px;
}

.upwd-header p {
  font-family: "Outfit", sans-serif;
  font-size: 13px;
  color: var(--text-muted-light, #777);
  margin: 0;
}

.upwd-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 24px;
  align-items: start;
  max-width: 900px;
}

@media (max-width: 860px) {
  .upwd-layout {
    grid-template-columns: 1fr;
  }
}

/* card */
.upwd-card {
  background: var(--card-bg, #1a1a1a);
  border: 1px solid var(--card-border, rgba(226, 32, 38, 0.18));
  border-radius: 16px;
  position: relative;
  overflow: hidden;
  animation: upwdUp 0.4s ease both;
}

.upwd-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 8%;
  width: 84%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(226, 32, 38, 0.5),
    transparent
  );
}

.upwd-card:nth-child(2) {
  animation-delay: 0.08s;
}

.upwd-card-head {
  padding: 18px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  display: flex;
  align-items: center;
  gap: 13px;
}

.upwd-card-ico {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(226, 32, 38, 0.1);
  border: 1px solid rgba(226, 32, 38, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.upwd-card-title {
  font-family: "Cinzel", serif;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary, #fff);
  letter-spacing: 0.07em;
  text-transform: uppercase;
  display: block;
}

.upwd-card-sub {
  font-family: "Outfit", sans-serif;
  font-size: 11px;
  color: var(--text-muted-light, #777);
  display: block;
  margin-top: 2px;
}

.upwd-card-body {
  padding: 24px;
}

/* fields */
.upwd-field {
  margin-bottom: 20px;
}

.upwd-label {
  font-family: "Outfit", sans-serif;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted-light, #777);
  margin-bottom: 7px;
  display: block;
}

.upwd-req {
  color: #e22026;
}

/* member lookup */
.upwd-lookup-row {
  display: flex;
  gap: 10px;
}

.upwd-input {
  flex: 1;
  padding: 11px 14px;
  background: var(--input-bg, #242424);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 10px;
  color: var(--text-primary, #fff);
  font-family: "Outfit", sans-serif;
  font-size: 13px;
  outline: none;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
  box-sizing: border-box;
  width: 100%;
}

.upwd-input::placeholder {
  color: rgba(255, 255, 255, 0.15);
}

.upwd-input:focus {
  border-color: rgba(226, 32, 38, 0.5);
  box-shadow: 0 0 0 3px rgba(226, 32, 38, 0.08);
}

.upwd-input.valid {
  border-color: rgba(34, 197, 94, 0.4) !important;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.06) !important;
}

.upwd-input.invalid {
  border-color: rgba(226, 32, 38, 0.5) !important;
}

.upwd-lookup-btn {
  padding: 11px 18px;
  border-radius: 10px;
  border: 1px solid rgba(59, 130, 246, 0.3);
  background: rgba(59, 130, 246, 0.08);
  color: #60a5fa;
  font-family: "Outfit", sans-serif;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 6px;
}

.upwd-lookup-btn:hover {
  background: rgba(59, 130, 246, 0.18);
}

/* member info box */
.upwd-member-box {
  display: none;
  margin-top: 10px;
  padding: 13px 15px;
  background: rgba(34, 197, 94, 0.06);
  border: 1px solid rgba(34, 197, 94, 0.2);
  border-radius: 10px;
  align-items: center;
  gap: 13px;
}

.upwd-member-box.show {
  display: flex;
}

.upwd-m-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, #e22026, #ff6a00);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Cinzel", serif;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

.upwd-m-name {
  font-family: "Outfit", sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: #22c55e;
}

.upwd-m-id {
  font-family: "Courier New", monospace;
  font-size: 11px;
  color: rgba(34, 197, 94, 0.6);
}

.upwd-m-email {
  font-family: "Outfit", sans-serif;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.35);
  margin-top: 1px;
}

/* password field with eye */
.upwd-pwd-wrap {
  position: relative;
}

.upwd-pwd-wrap .upwd-input {
  padding-right: 44px;
}

.upwd-eye {
  position: absolute;
  right: 13px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  color: rgb(255 255 255 / 50%);
  font-size: 16px;
  transition: color 0.2s;
  background: none;
  border: none;
  padding: 0;
}

.upwd-eye:hover {
  color: rgba(255, 255, 255, 0.7);
}

/* strength bar */
.upwd-strength {
  margin-top: 8px;
}

.upwd-strength-bar {
  height: 4px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 5px;
}

.upwd-strength-fill {
  height: 100%;
  border-radius: 4px;
  transition: all 0.3s ease;
  width: 0;
}

.upwd-strength-fill.s1 {
  width: 25%;
  background: #e22026;
}

.upwd-strength-fill.s2 {
  width: 50%;
  background: #ff6a00;
}

.upwd-strength-fill.s3 {
  width: 75%;
  background: #ffb800;
}

.upwd-strength-fill.s4 {
  width: 100%;
  background: #22c55e;
}

.upwd-strength-lbl {
  font-family: "Outfit", sans-serif;
  font-size: 11px;
  color: rgb(255 255 255 / 50%);
}

.upwd-strength-lbl.s1 {
  color: #e22026;
}

.upwd-strength-lbl.s2 {
  color: #ff6a00;
}

.upwd-strength-lbl.s3 {
  color: #ffb800;
}

.upwd-strength-lbl.s4 {
  color: #22c55e;
}

/* generate btn */
.upwd-generate-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 7px;
  padding: 4px 12px;
  border-radius: 6px;
  background: rgba(255, 184, 0, 0.08);
  border: 1px solid rgba(255, 184, 0, 0.2);
  color: #ffb800;
  font-family: "Outfit", sans-serif;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.upwd-generate-btn:hover {
  background: rgba(255, 184, 0, 0.15);
}

/* also update pin toggle */
.upwd-also-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  margin-bottom: 20px;
  cursor: pointer;
  transition: border-color 0.2s;
}

.upwd-also-row:hover {
  border-color: rgba(226, 32, 38, 0.2);
}

.upwd-sw {
  width: 36px;
  height: 20px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  position: relative;
  flex-shrink: 0;
  transition: background 0.2s;
}

.upwd-sw::after {
  content: "";
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  top: 3px;
  left: 3px;
  transition: left 0.2s;
}

.upwd-also-row.on .upwd-sw {
  background: #e22026;
}

.upwd-also-row.on .upwd-sw::after {
  left: 19px;
}

.upwd-also-lbl {
  font-family: "Outfit", sans-serif;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
}

.upwd-also-row.on .upwd-also-lbl {
  color: #fff;
}

/* confirm match */
.upwd-match-hint {
  font-family: "Outfit", sans-serif;
  font-size: 11px;
  margin-top: 6px;
}

.upwd-match-hint.ok {
  color: #22c55e;
}

.upwd-match-hint.no {
  color: #e22026;
}

/* reason */
.upwd-select {
  width: 100%;
  padding: 11px 14px;
  background: var(--input-bg, #242424);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 10px;
  color: var(--text-primary, #fff);
  font-family: "Outfit", sans-serif;
  font-size: 13px;
  outline: none;
  cursor: pointer;
  transition: border-color 0.2s;
}

.upwd-select:focus {
  border-color: rgba(226, 32, 38, 0.5);
}

.upwd-select option {
  background: #1a1a1a;
}

/* sep + submit */
.upwd-sep {
  height: 1px;
  background: rgba(255, 255, 255, 0.04);
  margin: 20px 0;
}

.upwd-submit {
  width: 100%;
  padding: 13px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(135deg, #e22026, #c41c21);
  color: #fff;
  font-family: "Outfit", sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.05em;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(226, 32, 38, 0.3);
  transition: all 0.25s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  position: relative;
  overflow: hidden;
}

.upwd-submit::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.07),
    transparent
  );
  transition: left 0.45s;
}

.upwd-submit:hover::after {
  left: 100%;
}

.upwd-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 26px rgba(226, 32, 38, 0.45);
}

.upwd-submit:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* right: recent log */
.upwd-log-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.upwd-log-item {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.upwd-log-item:last-child {
  border: none;
}

.upwd-log-ico {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: rgba(226, 32, 38, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  flex-shrink: 0;
  margin-top: 1px;
}

.upwd-log-name {
  font-family: "Outfit", sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-primary, #fff);
}

.upwd-log-uid {
  font-family: "Courier New", monospace;
  font-size: 10px;
  color: #ffb800;
}

.upwd-log-reason {
  font-family: "Outfit", sans-serif;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.35);
  margin-top: 2px;
}

.upwd-log-time {
  font-family: "Outfit", sans-serif;
  font-size: 10px;
  color: rgb(255 255 255 / 47%);
  margin-left: auto;
  white-space: nowrap;
  flex-shrink: 0;
}

/* tips */
.upwd-tips {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 4px;
}

.upwd-tip {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 9px 12px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 8px;
  font-family: "Outfit", sans-serif;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.35);
  line-height: 1.55;
}

.upwd-tip-ico {
  font-size: 13px;
  flex-shrink: 0;
  margin-top: 1px;
}

@keyframes upwdUp {
  from {
    opacity: 0;
    transform: translateY(14px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

:root {
  --swal2-background: #111111;
  --swal2-color: #f0f0f0;
  --swal2-border: rgba(226, 32, 38, 0.25);
  --swal2-toast-background: #111111;
  --swal2-toast-border: rgba(226, 32, 38, 0.25);
  --swal2-toast-box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
  --swal2-toast-color: #f0f0f0;
}

/* Force toast styling */
.swal2-toast {
  background: #111111 !important;
  border: 1px solid rgba(226, 32, 38, 0.25) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6) !important;
  color: #f0f0f0 !important;
}

.swal2-toast .swal2-title {
  font-family: "Outfit", sans-serif !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  color: #f0f0f0 !important;
}

.swal2-toast .swal2-html-container {
  font-family: "Outfit", sans-serif !important;
  font-size: 12px !important;
  color: rgba(255, 255, 255, 0.6) !important;
}

/* Toast icons */
.swal2-toast .swal2-icon.swal2-error {
  border-color: rgba(226, 32, 38, 0.5) !important;
  background: rgba(226, 32, 38, 0.08) !important;
}
.swal2-toast .swal2-icon.swal2-error [class^="swal2-x-mark-line"] {
  background-color: #e22026 !important;
}
.swal2-toast .swal2-icon.swal2-success {
  border-color: rgba(34, 197, 94, 0.5) !important;
  background: rgba(34, 197, 94, 0.08) !important;
}
.swal2-toast .swal2-icon.swal2-success [class^="swal2-success-line"] {
  background-color: #22c55e !important;
}
.swal2-toast .swal2-icon.swal2-warning {
  border-color: rgba(255, 184, 0, 0.5) !important;
  background: rgba(255, 184, 0, 0.08) !important;
  color: #ffb800 !important;
}
.swal2-toast .swal2-icon.swal2-info {
  border-color: rgba(59, 130, 246, 0.5) !important;
  background: rgba(59, 130, 246, 0.08) !important;
  color: #60a5fa !important;
}

/* Timer bar in toast */
.swal2-toast .swal2-timer-progress-bar {
  background: linear-gradient(90deg, #e22026, #ff6a00, #ffb800) !important;
}

/* Remove the white/light background that SweetAlert2 forces */
div:where(.swal2-container) div:where(.swal2-popup) {
  background: #111111 !important;
}
div:where(.swal2-container) div:where(.swal2-toast) {
  background: #111111 !important;
}
.asub-page {
  padding: 28px;
  min-height: 100vh;
  background: var(--dark-bg, #0d0d0d);
}

.asub-header {
  margin-bottom: 28px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
}

.asub-header h2 {
  font-family: "Cinzel", serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary, #fff);
  letter-spacing: 0.07em;
  margin: 0 0 4px;
}

.asub-header p {
  font-family: "Outfit", sans-serif;
  font-size: 13px;
  color: var(--text-muted-light, #777);
  margin: 0;
}

/* stats */
.asub-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 22px;
}

@media (max-width: 768px) {
  .asub-stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

.asub-sc {
  background: var(--card-bg, #1a1a1a);
  border: 1px solid var(--card-border, rgba(226, 32, 38, 0.18));
  border-radius: 12px;
  padding: 14px 16px;
  position: relative;
  overflow: hidden;
  animation: asubUp 0.4s ease both;
}

.asub-sc:nth-child(2) {
  animation-delay: 0.05s;
}

.asub-sc:nth-child(3) {
  animation-delay: 0.1s;
}

.asub-sc:nth-child(4) {
  animation-delay: 0.15s;
}

.asub-sc::before {
  content: "";
  position: absolute;
  top: 0;
  left: 10%;
  width: 80%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(226, 32, 38, 0.4),
    transparent
  );
}

.asub-sc-ico {
  font-size: 18px;
  margin-bottom: 7px;
}

.asub-sc-val {
  font-family: "Cinzel", serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary, #fff);
  margin-bottom: 2px;
}

.asub-sc-lbl {
  font-family: "Outfit", sans-serif;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted-light, #777);
}

/* layout */
.asub-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 24px;
  align-items: start;
}

@media (max-width: 980px) {
  .asub-layout {
    grid-template-columns: 1fr;
  }
}

/* card */
.asub-card {
  background: var(--card-bg, #1a1a1a);
  border: 1px solid var(--card-border, rgba(226, 32, 38, 0.18));
  border-radius: 16px;
  position: relative;
  overflow: hidden;
  animation: asubUp 0.4s ease both;
}

.asub-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 8%;
  width: 84%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(226, 32, 38, 0.5),
    transparent
  );
}

.asub-card:nth-child(2) {
  animation-delay: 0.08s;
}

.asub-card-head {
  padding: 15px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.asub-card-title {
  font-family: "Cinzel", serif;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary, #fff);
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

/* filter */
.asub-filter {
  padding: 14px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.asub-search {
  flex: 1;
  min-width: 200px;
  padding: 8px 12px 8px 32px;
  background: var(--input-bg, #242424);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 8px;
  color: var(--text-primary, #fff);
  font-family: "Outfit", sans-serif;
  font-size: 12px;
  outline: none;
  position: relative;
}

.asub-search::placeholder {
  color: rgba(255, 255, 255, 0.2);
}

.asub-search:focus {
  border-color: rgba(226, 32, 38, 0.4);
}

.asub-search-wrap {
  position: relative;
  flex: 1;
  min-width: 200px;
}

.asub-search-wrap i {
  position: absolute;
  left: 11px;
  top: 50%;
  transform: translateY(-50%);
  color: rgb(255 255 255 / 47%);
  font-size: 12px;
  pointer-events: none;
}

.asub-sel {
  padding: 8px 12px;
  background: var(--input-bg, #242424);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 8px;
  color: var(--text-primary, #fff);
  font-family: "Outfit", sans-serif;
  font-size: 12px;
  outline: none;
  min-width: 130px;
  cursor: pointer;
}

.asub-sel option {
  background: #1a1a1a;
}

.asub-apply {
  padding: 8px 18px;
  border: none;
  border-radius: 8px;
  background: linear-gradient(135deg, #e22026, #c41c21);
  color: #fff;
  font-family: "Outfit", sans-serif;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

.asub-reset {
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: transparent;
  color: rgb(255 255 255 / 67%);
  font-family: "Outfit", sans-serif;
  font-size: 12px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.asub-reset:hover {
  border-color: rgba(226, 32, 38, 0.3);
  color: #e22026;
}

/* table */
.asub-scroll {
  overflow-x: auto;
}

.asub-scroll::-webkit-scrollbar {
  height: 4px;
}

.asub-scroll::-webkit-scrollbar-thumb {
  background: rgba(226, 32, 38, 0.3);
  border-radius: 4px;
}

table.asub-tbl {
  width: 100%;
  border-collapse: collapse;
  min-width: 700px;
}

table.asub-tbl thead tr {
  background: rgba(255, 255, 255, 0.02);
}

table.asub-tbl thead th {
  padding: 11px 14px;
  font-family: "Outfit", sans-serif;
  font-size: 9.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted-light, #777);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  text-align: left;
  white-space: nowrap;
}

table.asub-tbl tbody tr {
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  transition: background 0.15s;
}

table.asub-tbl tbody tr:hover {
  background: rgba(226, 32, 38, 0.04);
}

table.asub-tbl tbody tr:last-child {
  border-bottom: none;
}

table.asub-tbl tbody td {
  padding: 12px 14px;
  font-family: "Outfit", sans-serif;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
  vertical-align: middle;
}

.asub-ucell {
  display: flex;
  align-items: center;
  gap: 9px;
}

.asub-uav {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, #e22026, #ff6a00);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Cinzel", serif;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

.asub-uname {
  font-weight: 600;
  color: var(--text-primary, #fff);
  font-size: 12px;
}

.asub-uid {
  font-family: "Courier New", monospace;
  font-size: 10px;
  color: #ffb800;
}

.asub-badge {
  display: inline-flex;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 10px;
  font-weight: 600;
  white-space: nowrap;
}

.asub-badge.paid {
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: #22c55e;
}

.asub-badge.waived {
  background: rgba(59, 130, 246, 0.12);
  border: 1px solid rgba(59, 130, 246, 0.3);
  color: #60a5fa;
}

.asub-badge.free {
  background: rgba(168, 85, 247, 0.12);
  border: 1px solid rgba(168, 85, 247, 0.3);
  color: #c084fc;
}

.asub-pag {
  padding: 12px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.asub-pag-info {
  font-family: "Outfit", sans-serif;
  font-size: 12px;
  color: var(--text-muted-light, #777);
}

.asub-empty {
  text-align: center;
  padding: 50px 20px;
  font-family: "Outfit", sans-serif;
  color: rgba(255, 255, 255, 0.2);
}

.asub-empty-ico {
  font-size: 44px;
  opacity: 0.35;
  margin-bottom: 12px;
}

.asub-empty h5 {
  font-family: "Cinzel", serif;
  font-size: 14px;
  color: rgb(255 255 255 / 47%);
  margin-bottom: 6px;
}

/* ── RIGHT: Activate form ── */
.asub-form-card {
  background: var(--card-bg, #1a1a1a);
  border: 1px solid var(--card-border, rgba(226, 32, 38, 0.18));
  border-radius: 16px;
  position: relative;
  overflow: hidden;
  animation: asubUp 0.4s ease 0.08s both;
}

.asub-form-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 8%;
  width: 84%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(226, 32, 38, 0.5),
    transparent
  );
}

.asub-form-head {
  padding: 16px 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  display: flex;
  align-items: center;
  gap: 12px;
}

.asub-form-ico {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(226, 32, 38, 0.1);
  border: 1px solid rgba(226, 32, 38, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  flex-shrink: 0;
}

.asub-form-title {
  font-family: "Cinzel", serif;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary, #fff);
  letter-spacing: 0.07em;
  text-transform: uppercase;
  display: block;
}

.asub-form-sub {
  font-family: "Outfit", sans-serif;
  font-size: 11px;
  color: var(--text-muted-light, #777);
  margin-top: 2px;
}

.asub-form-body {
  padding: 20px 22px;
}

.asub-field {
  margin-bottom: 17px;
}

.asub-label {
  font-family: "Outfit", sans-serif;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted-light, #777);
  margin-bottom: 7px;
  display: block;
}

.asub-req {
  color: #e22026;
}

.asub-input {
  width: 100%;
  padding: 10px 14px;
  background: var(--input-bg, #242424);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 10px;
  color: var(--text-primary, #fff);
  font-family: "Outfit", sans-serif;
  font-size: 13px;
  outline: none;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
  box-sizing: border-box;
}

.asub-input::placeholder {
  color: rgba(255, 255, 255, 0.15);
}

.asub-input:focus {
  border-color: rgba(226, 32, 38, 0.5);
  box-shadow: 0 0 0 3px rgba(226, 32, 38, 0.08);
}

.asub-input.valid {
  border-color: rgba(34, 197, 94, 0.4) !important;
}

/* member box */
.asub-member-box {
  display: none;
  margin-top: 8px;
  padding: 11px 13px;
  background: rgba(34, 197, 94, 0.06);
  border: 1px solid rgba(34, 197, 94, 0.2);
  border-radius: 9px;
  align-items: center;
  gap: 11px;
}

.asub-member-box.show {
  display: flex;
}

.asub-mb-av {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, #e22026, #ff6a00);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Cinzel", serif;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

.asub-mb-name {
  font-family: "Outfit", sans-serif;
  font-size: 12px;
  font-weight: 700;
  color: #22c55e;
}

.asub-mb-id {
  font-family: "Courier New", monospace;
  font-size: 10px;
  color: rgba(34, 197, 94, 0.6);
}

.asub-mb-status {
  font-family: "Outfit", sans-serif;
  font-size: 10px;
  color: rgb(255 255 255 / 50%);
  margin-top: 2px;
}

/* type toggle */
.asub-type-row {
  display: flex;
  gap: 8px;
}

.asub-type-btn {
  flex: 1;
  padding: 10px;
  border-radius: 9px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.02);
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
}

.asub-type-btn.sel-paid {
  border-color: rgba(34, 197, 94, 0.4);
  background: rgba(34, 197, 94, 0.07);
}

.asub-type-btn.sel-waived {
  border-color: rgba(59, 130, 246, 0.4);
  background: rgba(59, 130, 246, 0.07);
}

.asub-type-ico {
  font-size: 20px;
  display: block;
  margin-bottom: 5px;
}

.asub-type-lbl {
  font-family: "Outfit", sans-serif;
  font-size: 11px;
  font-weight: 600;
  color: rgb(255 255 255 / 67%);
}

.asub-type-btn.sel-paid .asub-type-lbl {
  color: #22c55e;
}

.asub-type-btn.sel-waived .asub-type-lbl {
  color: #60a5fa;
}

/* lookup btn */
.asub-lookup-row {
  display: flex;
  gap: 8px;
}

.asub-lookup-btn {
  padding: 10px 15px;
  border-radius: 10px;
  border: 1px solid rgba(59, 130, 246, 0.3);
  background: rgba(59, 130, 246, 0.08);
  color: #60a5fa;
  font-family: "Outfit", sans-serif;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 5px;
}

.asub-lookup-btn:hover {
  background: rgba(59, 130, 246, 0.18);
}

/* sep + submit */
.asub-sep {
  height: 1px;
  background: rgba(255, 255, 255, 0.04);
  margin: 16px 0;
}

.asub-submit {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(135deg, #e22026, #c41c21);
  color: #fff;
  font-family: "Outfit", sans-serif;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(226, 32, 38, 0.3);
  transition: all 0.25s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  position: relative;
  overflow: hidden;
}

.asub-submit::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.07),
    transparent
  );
  transition: left 0.45s;
}

.asub-submit:hover::after {
  left: 100%;
}

.asub-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 22px rgba(226, 32, 38, 0.45);
}

/* notice box */
.asub-notice {
  padding: 10px 13px;
  background: rgba(59, 130, 246, 0.06);
  border: 1px solid rgba(59, 130, 246, 0.18);
  border-radius: 8px;
  font-family: "Outfit", sans-serif;
  font-size: 11px;
  color: rgb(255 255 255 / 76%);
  line-height: 1.6;
  margin-bottom: 16px;
}

.asub-notice strong {
  color: #60a5fa;
}

@keyframes asubUp {
  from {
    opacity: 0;
    transform: translateY(14px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.ainv-page {
  padding: 28px;
  min-height: 100vh;
  background: var(--dark-bg, #0d0d0d);
}

.ainv-header {
  margin-bottom: 28px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
}

.ainv-header h2 {
  font-family: "Cinzel", serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary, #fff);
  letter-spacing: 0.07em;
  margin: 0 0 4px;
}

.ainv-header p {
  font-family: "Outfit", sans-serif;
  font-size: 13px;
  color: var(--text-muted-light, #777);
  margin: 0;
}

/* stats */
.ainv-stats {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin-bottom: 22px;
}

@media (max-width: 900px) {
  .ainv-stats {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 600px) {
  .ainv-stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

.ainv-sc {
  background: var(--card-bg, #1a1a1a);
  border: 1px solid var(--card-border, rgba(226, 32, 38, 0.18));
  border-radius: 12px;
  padding: 13px 15px;
  position: relative;
  overflow: hidden;
  animation: ainvUp 0.4s ease both;
}

.ainv-sc:nth-child(2) {
  animation-delay: 0.04s;
}

.ainv-sc:nth-child(3) {
  animation-delay: 0.08s;
}

.ainv-sc:nth-child(4) {
  animation-delay: 0.12s;
}

.ainv-sc:nth-child(5) {
  animation-delay: 0.16s;
}

.ainv-sc::before {
  content: "";
  position: absolute;
  top: 0;
  left: 10%;
  width: 80%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(226, 32, 38, 0.4),
    transparent
  );
}

.ainv-sc-ico {
  font-size: 17px;
  margin-bottom: 6px;
}

.ainv-sc-val {
  font-family: "Cinzel", serif;
  font-size: 19px;
  font-weight: 700;
  color: var(--text-primary, #fff);
  margin-bottom: 2px;
}

.ainv-sc-lbl {
  font-family: "Outfit", sans-serif;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted-light, #777);
}

/* tabs */
.ainv-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 20px;
  background: var(--card-bg, #1a1a1a);
  border: 1px solid var(--card-border, rgba(226, 32, 38, 0.18));
  border-radius: 12px;
  padding: 5px;
  animation: ainvUp 0.4s ease 0.1s both;
}

.ainv-tab {
  flex: 1;
  padding: 9px 16px;
  border-radius: 9px;
  border: none;
  background: transparent;
  font-family: "Outfit", sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: rgb(255 255 255 / 67%);
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
}

.ainv-tab.active {
  background: rgba(226, 32, 38, 0.1);
  color: #e22026;
  border: 1px solid rgba(226, 32, 38, 0.25);
}

.ainv-tab:hover:not(.active) {
  color: rgba(255, 255, 255, 0.7);
}

/* layout */
.ainv-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 22px;
  align-items: start;
}

@media (max-width: 1060px) {
  .ainv-layout {
    grid-template-columns: 1fr;
  }
}

/* card */
.ainv-card {
  background: var(--card-bg, #1a1a1a);
  border: 1px solid var(--card-border, rgba(226, 32, 38, 0.18));
  border-radius: 14px;
  position: relative;
  overflow: hidden;
  animation: ainvUp 0.4s ease both;
}

.ainv-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 8%;
  width: 84%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(226, 32, 38, 0.5),
    transparent
  );
}

.ainv-card:nth-child(2) {
  animation-delay: 0.08s;
}

.ainv-card-head {
  padding: 14px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ainv-card-title {
  font-family: "Cinzel", serif;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary, #fff);
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

/* filter */
.ainv-filter {
  padding: 12px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
  align-items: center;
}

.ainv-search-wrap {
  position: relative;
  flex: 1;
  min-width: 180px;
}

.ainv-search-wrap i {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: rgb(255 255 255 / 47%);
  font-size: 12px;
  pointer-events: none;
}

.ainv-search {
  width: 100%;
  padding: 8px 10px 8px 30px;
  background: var(--input-bg, #242424);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 8px;
  color: var(--text-primary, #fff);
  font-family: "Outfit", sans-serif;
  font-size: 12px;
  outline: none;
}

.ainv-search::placeholder {
  color: rgba(255, 255, 255, 0.2);
}

.ainv-search:focus {
  border-color: rgba(226, 32, 38, 0.4);
}

.ainv-sel {
  padding: 8px 10px;
  background: var(--input-bg, #242424);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 8px;
  color: var(--text-primary, #fff);
  font-family: "Outfit", sans-serif;
  font-size: 12px;
  outline: none;
  min-width: 120px;
  cursor: pointer;
}

.ainv-sel option {
  background: #1a1a1a;
}

.ainv-apply {
  padding: 8px 16px;
  border: none;
  border-radius: 8px;
  background: linear-gradient(135deg, #e22026, #c41c21);
  color: #fff;
  font-family: "Outfit", sans-serif;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

.ainv-reset {
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: transparent;
  color: rgb(255 255 255 / 67%);
  font-family: "Outfit", sans-serif;
  font-size: 12px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.ainv-reset:hover {
  border-color: rgba(226, 32, 38, 0.3);
  color: #e22026;
}

/* table */
.ainv-scroll {
  overflow-x: auto;
}

.ainv-scroll::-webkit-scrollbar {
  height: 4px;
}

.ainv-scroll::-webkit-scrollbar-thumb {
  background: rgba(226, 32, 38, 0.3);
  border-radius: 4px;
}

table.ainv-tbl {
  width: 100%;
  border-collapse: collapse;
  min-width: 820px;
}

table.ainv-tbl thead tr {
  background: rgba(255, 255, 255, 0.02);
}

table.ainv-tbl thead th {
  padding: 10px 13px;
  font-family: "Outfit", sans-serif;
  font-size: 9.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted-light, #777);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  text-align: left;
  white-space: nowrap;
}

table.ainv-tbl tbody tr {
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  transition: background 0.15s;
}

table.ainv-tbl tbody tr:hover {
  background: rgba(226, 32, 38, 0.04);
}

table.ainv-tbl tbody tr:last-child {
  border-bottom: none;
}

table.ainv-tbl tbody td {
  padding: 11px 13px;
  font-family: "Outfit", sans-serif;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
  vertical-align: middle;
}

.ainv-ucell {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ainv-uav {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, #e22026, #ff6a00);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Cinzel", serif;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

.ainv-uname {
  font-weight: 600;
  color: var(--text-primary, #fff);
  font-size: 12px;
}

.ainv-uid {
  font-family: "Courier New", monospace;
  font-size: 10px;
  color: #ffb800;
}

.ainv-plan-badge {
  display: inline-flex;
  padding: 2px 9px;
  border-radius: 5px;
  font-size: 10px;
  font-weight: 600;
  white-space: nowrap;
}

.ainv-plan-badge.secure {
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.25);
  color: #60a5fa;
}

.ainv-plan-badge.growth {
  background: rgba(226, 32, 38, 0.1);
  border: 1px solid rgba(226, 32, 38, 0.25);
  color: #e22026;
}

.ainv-status {
  display: inline-flex;
  padding: 3px 9px;
  border-radius: 20px;
  font-size: 10px;
  font-weight: 600;
}

.ainv-status.active {
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: #22c55e;
}

.ainv-status.exited {
  background: rgba(226, 32, 38, 0.12);
  border: 1px solid rgba(226, 32, 38, 0.3);
  color: #e22026;
}

.ainv-status.complete {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgb(255 255 255 / 67%);
}

.ainv-amt {
  font-family: "Cinzel", serif;
  font-size: 12px;
  font-weight: 700;
  color: #ffb800;
}

.ainv-roi {
  font-family: "Cinzel", serif;
  font-size: 12px;
  font-weight: 700;
  color: #22c55e;
}

/* action btns */
.ainv-acts {
  display: flex;
  gap: 5px;
}

.ainv-btn {
  padding: 4px 10px;
  border-radius: 6px;
  font-family: "Outfit", sans-serif;
  font-size: 10px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  border: 1px solid;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.ainv-btn-topup {
  background: rgba(34, 197, 94, 0.08);
  border-color: rgba(34, 197, 94, 0.3);
  color: #22c55e;
}

.ainv-btn-topup:hover {
  background: rgba(34, 197, 94, 0.18);
}

.ainv-btn-exit {
  background: rgba(226, 32, 38, 0.08);
  border-color: rgba(226, 32, 38, 0.3);
  color: #e22026;
}

.ainv-btn-exit:hover {
  background: rgba(226, 32, 38, 0.18);
}

/* pag */
.ainv-pag {
  padding: 12px 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.ainv-pag-info {
  font-family: "Outfit", sans-serif;
  font-size: 12px;
  color: var(--text-muted-light, #777);
}

.ainv-empty {
  text-align: center;
  padding: 50px;
  font-family: "Outfit", sans-serif;
  color: rgba(255, 255, 255, 0.2);
}

.ainv-empty-ico {
  font-size: 42px;
  opacity: 0.35;
  margin-bottom: 12px;
}

.ainv-empty h5 {
  font-family: "Cinzel", serif;
  font-size: 14px;
  color: rgb(255 255 255 / 47%);
  margin-bottom: 6px;
}

/* ── RIGHT PANEL ── */
.ainv-right {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.ainv-form-card {
  background: var(--card-bg, #1a1a1a);
  border: 1px solid var(--card-border, rgba(226, 32, 38, 0.18));
  border-radius: 14px;
  position: relative;
  overflow: hidden;
}

.ainv-form-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 8%;
  width: 84%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(226, 32, 38, 0.5),
    transparent
  );
}

.ainv-form-head {
  padding: 14px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  display: flex;
  align-items: center;
  gap: 11px;
}

.ainv-form-ico {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: rgba(226, 32, 38, 0.1);
  border: 1px solid rgba(226, 32, 38, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

.ainv-form-title {
  font-family: "Cinzel", serif;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-primary, #fff);
  letter-spacing: 0.07em;
  text-transform: uppercase;
  display: block;
}

.ainv-form-sub {
  font-family: "Outfit", sans-serif;
  font-size: 11px;
  color: var(--text-muted-light, #777);
  margin-top: 2px;
}

.ainv-form-body {
  padding: 18px 20px;
}

.ainv-field {
  margin-bottom: 15px;
}

.ainv-label {
  font-family: "Outfit", sans-serif;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted-light, #777);
  margin-bottom: 6px;
  display: block;
}

.ainv-req {
  color: #e22026;
}

.ainv-input {
  width: 100%;
  padding: 10px 13px;
  background: var(--input-bg, #242424);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 9px;
  color: var(--text-primary, #fff);
  font-family: "Outfit", sans-serif;
  font-size: 13px;
  outline: none;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
  box-sizing: border-box;
}

.ainv-input::placeholder {
  color: rgba(255, 255, 255, 0.15);
}

.ainv-input:focus {
  border-color: rgba(226, 32, 38, 0.5);
  box-shadow: 0 0 0 3px rgba(226, 32, 38, 0.08);
}

.ainv-input.valid {
  border-color: rgba(34, 197, 94, 0.4) !important;
}

.ainv-select {
  width: 100%;
  padding: 10px 13px;
  background: var(--input-bg, #242424);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 9px;
  color: var(--text-primary, #fff);
  font-family: "Outfit", sans-serif;
  font-size: 13px;
  outline: none;
  cursor: pointer;
}

.ainv-select option {
  background: #1a1a1a;
}

/* member box */
.ainv-member-box {
  display: none;
  margin-top: 7px;
  padding: 10px 13px;
  background: rgba(34, 197, 94, 0.06);
  border: 1px solid rgba(34, 197, 94, 0.2);
  border-radius: 9px;
  align-items: center;
  gap: 10px;
}

.ainv-member-box.show {
  display: flex;
}

.ainv-mb-av {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #e22026, #ff6a00);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Cinzel", serif;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

.ainv-mb-name {
  font-family: "Outfit", sans-serif;
  font-size: 12px;
  font-weight: 700;
  color: #22c55e;
}

.ainv-mb-sub {
  font-family: "Courier New", monospace;
  font-size: 10px;
  color: rgba(34, 197, 94, 0.6);
}

.ainv-lookup-row {
  display: flex;
  gap: 7px;
}

.ainv-lookup-btn {
  padding: 10px 14px;
  border-radius: 9px;
  border: 1px solid rgba(59, 130, 246, 0.3);
  background: rgba(59, 130, 246, 0.08);
  color: #60a5fa;
  font-family: "Outfit", sans-serif;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 5px;
}

.ainv-lookup-btn:hover {
  background: rgba(59, 130, 246, 0.18);
}

.ainv-notice {
  padding: 9px 12px;
  background: rgba(59, 130, 246, 0.06);
  border: 1px solid rgba(59, 130, 246, 0.18);
  border-radius: 8px;
  font-family: "Outfit", sans-serif;
  font-size: 11px;
  color: rgb(255 255 255 / 67%);
  line-height: 1.6;
  margin-bottom: 14px;
}

.ainv-notice strong {
  color: #60a5fa;
}

.ainv-sep {
  height: 1px;
  background: rgba(255, 255, 255, 0.04);
  margin: 14px 0;
}

.ainv-submit {
  width: 100%;
  padding: 11px;
  border: none;
  border-radius: 9px;
  background: linear-gradient(135deg, #e22026, #c41c21);
  color: #fff;
  font-family: "Outfit", sans-serif;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(226, 32, 38, 0.3);
  transition: all 0.25s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  position: relative;
  overflow: hidden;
}

.ainv-submit::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.07),
    transparent
  );
  transition: left 0.45s;
}

.ainv-submit:hover::after {
  left: 100%;
}

.ainv-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(226, 32, 38, 0.45);
}

.ainv-submit.green {
  background: linear-gradient(135deg, #16a34a, #15803d);
  box-shadow: 0 4px 14px rgba(22, 163, 74, 0.3);
}

.ainv-submit.green:hover {
  box-shadow: 0 6px 20px rgba(22, 163, 74, 0.45);
}

@keyframes ainvUp {
  from {
    opacity: 0;
    transform: translateY(14px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.rset-page {
  padding: 28px;
  min-height: 100vh;
  background: var(--dark-bg, #0d0d0d);
}

.rset-header {
  margin-bottom: 28px;
}

.rset-header h2 {
  font-family: "Cinzel", serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary, #fff);
  letter-spacing: 0.07em;
  margin: 0 0 4px;
}

.rset-header p {
  font-family: "Outfit", sans-serif;
  font-size: 13px;
  color: var(--text-muted-light, #777);
  margin: 0;
}

/* layout */
.rset-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  align-items: start;
}

@media (max-width: 900px) {
  .rset-layout {
    grid-template-columns: 1fr;
  }
}

/* section card */
.rset-card {
  background: var(--card-bg, #1a1a1a);
  border: 1px solid var(--card-border, rgba(226, 32, 38, 0.18));
  border-radius: 16px;
  position: relative;
  overflow: hidden;
  animation: rsetUp 0.4s ease both;
}

.rset-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 8%;
  width: 84%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(226, 32, 38, 0.5),
    transparent
  );
}

.rset-card:nth-child(2) {
  animation-delay: 0.07s;
}

.rset-card-head {
  padding: 18px 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  display: flex;
  align-items: center;
  gap: 13px;
}

.rset-card-ico {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.rset-card-ico.roi {
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.2);
}

.rset-card-ico.charge {
  background: rgba(226, 32, 38, 0.1);
  border: 1px solid rgba(226, 32, 38, 0.2);
}

.rset-card-title {
  font-family: "Cinzel", serif;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary, #fff);
  letter-spacing: 0.07em;
  text-transform: uppercase;
  display: block;
}

.rset-card-sub {
  font-family: "Outfit", sans-serif;
  font-size: 11px;
  color: var(--text-muted-light, #777);
  display: block;
  margin-top: 2px;
}

.rset-card-body {
  padding: 22px;
}

/* field */
.rset-field {
  margin-bottom: 20px;
}

.rset-field:last-of-type {
  margin-bottom: 0;
}

.rset-label {
  font-family: "Outfit", sans-serif;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted-light, #777);
  margin-bottom: 7px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.rset-label-badge {
  font-size: 9px;
  padding: 2px 8px;
  border-radius: 20px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.rset-label-badge.roi {
  background: rgba(34, 197, 94, 0.1);
  color: #22c55e;
  border: 1px solid rgba(34, 197, 94, 0.2);
}

.rset-label-badge.charge {
  background: rgba(226, 32, 38, 0.1);
  color: #e22026;
  border: 1px solid rgba(226, 32, 38, 0.2);
}

.rset-label-badge.info {
  background: rgba(59, 130, 246, 0.1);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.2);
}

/* input with suffix */
.rset-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.rset-input {
  flex: 1;
  padding: 11px 50px 11px 14px;
  background: var(--input-bg, #242424);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 10px;
  color: var(--text-primary, #fff);
  font-family: "Cinzel", serif;
  font-size: 16px;
  font-weight: 700;
  outline: none;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
  box-sizing: border-box;
  width: 100%;
}

.rset-input:focus {
  border-color: rgba(226, 32, 38, 0.5);
  box-shadow: 0 0 0 3px rgba(226, 32, 38, 0.08);
}

.rset-input.changed {
  border-color: rgba(255, 184, 0, 0.5) !important;
  box-shadow: 0 0 0 3px rgba(255, 184, 0, 0.07) !important;
}

.rset-suffix {
  position: absolute;
  right: 14px;
  font-family: "Outfit", sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: rgb(255 255 255 / 50%);
  pointer-events: none;
}

/* range row */
.rset-range-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

/* description */
.rset-desc {
  font-family: "Outfit", sans-serif;
  font-size: 11px;
  color: rgb(255 255 255 / 47%);
  margin-top: 6px;
  line-height: 1.55;
}

.rset-desc strong {
  color: rgb(255 255 255 / 76%);
}

/* divider */
.rset-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.05);
  margin: 20px 0;
  position: relative;
}

.rset-divider-label {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--card-bg, #1a1a1a);
  padding: 0 12px;
  font-family: "Outfit", sans-serif;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.2);
}

/* save button */
.rset-save-btn {
  width: 100%;
  padding: 13px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(135deg, #e22026, #c41c21);
  color: #fff;
  font-family: "Outfit", sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.05em;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(226, 32, 38, 0.3);
  transition: all 0.25s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 22px;
  position: relative;
  overflow: hidden;
}

.rset-save-btn::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.07),
    transparent
  );
  transition: left 0.45s;
}

.rset-save-btn:hover::after {
  left: 100%;
}

.rset-save-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 26px rgba(226, 32, 38, 0.45);
}

/* live preview strip */
.rset-preview {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  padding: 13px 16px;
  margin-top: 18px;
}

.rset-preview-title {
  font-family: "Outfit", sans-serif;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgb(255 255 255 / 47%);
  margin-bottom: 10px;
}

.rset-preview-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 5px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.rset-preview-row:last-child {
  border-bottom: none;
}

.rset-preview-key {
  font-family: "Outfit", sans-serif;
  font-size: 12px;
  color: rgb(255 255 255 / 67%);
}

.rset-preview-val {
  font-family: "Cinzel", serif;
  font-size: 13px;
  font-weight: 700;
  color: #ffb800;
}

/* change indicator dot */
.rset-change-dot {
  display: none;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ffb800;
  box-shadow: 0 0 6px rgba(255, 184, 0, 0.5);
  flex-shrink: 0;
}

.rset-change-dot.show {
  display: inline-block;
}

/* info notice */
.rset-notice {
  padding: 10px 14px;
  background: rgba(59, 130, 246, 0.06);
  border: 1px solid rgba(59, 130, 246, 0.15);
  border-radius: 9px;
  font-family: "Outfit", sans-serif;
  font-size: 12px;
  color: rgb(255 255 255 / 67%);
  line-height: 1.6;
  margin-bottom: 20px;
}

.rset-notice strong {
  color: #60a5fa;
}

@keyframes rsetUp {
  from {
    opacity: 0;
    transform: translateY(14px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.dash-page {
  padding: 28px;
  min-height: 100vh;
  background: var(--dark-bg, #0d0d0d);
}

/* ── WELCOME BANNER ── */
.dash-welcome {
  background: var(--card-bg, #1a1a1a);
  border: 1px solid var(--card-border, rgba(226, 32, 38, 0.18));
  border-radius: 16px;
  padding: 20px 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
  animation: dshUp 0.4s ease both;
}

.dash-welcome::before {
  content: "";
  position: absolute;
  top: 0;
  left: 8%;
  width: 84%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(226, 32, 38, 0.5),
    transparent
  );
}

.dash-welcome-left h1 {
  font-family: "Cinzel", serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary, #fff);
  margin: 0 0 4px;
}

.dash-welcome-left p {
  font-family: "Outfit", sans-serif;
  font-size: 12px;
  color: var(--text-muted-light, #777);
  margin: 0;
}

.dash-welcome-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.dash-live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.6);
  animation: livePulse 2s ease infinite;
}

.dash-live-txt {
  font-family: "Outfit", sans-serif;
  font-size: 12px;
  color: #22c55e;
  font-weight: 600;
}

/* ── SECTION LABEL ── */
.dash-section-lbl {
  font-family: "Outfit", sans-serif;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: rgba(255, 255, 255, 0.2);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.dash-section-lbl::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.05);
}

/* ── STAT GRID ── */
.dash-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 20px;
}

@media (max-width: 1200px) {
  .dash-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 860px) {
  .dash-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .dash-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.dash-grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 860px) {
  .dash-grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ── STAT CARD ── */
.dsc {
  background: var(--card-bg, #1a1a1a);
  border: 1px solid var(--card-border, rgba(226, 32, 38, 0.18));
  border-radius: 14px;
  padding: 18px 18px 16px;
  position: relative;
  overflow: hidden;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
  animation: dshUp 0.4s ease both;
  cursor: default;
  text-decoration: none;
  display: block;
}

.dsc:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.3);
}

.dsc::before {
  content: "";
  position: absolute;
  top: 0;
  left: 10%;
  width: 80%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(226, 32, 38, 0.5),
    transparent
  );
}

/* colour accent strip on left */
.dsc::after {
  content: "";
  position: absolute;
  left: 0;
  top: 15%;
  height: 70%;
  width: 3px;
  border-radius: 0 3px 3px 0;
}

.dsc.c-red ::after {
  background: linear-gradient(180deg, #e22026, rgba(226, 32, 38, 0.2));
}

.dsc.c-gold ::after {
  background: linear-gradient(180deg, #ffb800, rgba(255, 184, 0, 0.2));
}

.dsc.c-green ::after {
  background: linear-gradient(180deg, #22c55e, rgba(34, 197, 94, 0.2));
}

.dsc.c-blue ::after {
  background: linear-gradient(180deg, #3b82f6, rgba(59, 130, 246, 0.2));
}

.dsc.c-purple::after {
  background: linear-gradient(180deg, #a855f7, rgba(168, 85, 247, 0.2));
}

.dsc.c-teal ::after {
  background: linear-gradient(180deg, #14b8a6, rgba(20, 184, 166, 0.2));
}

.dsc-ico {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  margin-bottom: 13px;
  flex-shrink: 0;
}

.ic-red {
  background: rgba(226, 32, 38, 0.15);
}

.ic-gold {
  background: rgba(255, 184, 0, 0.12);
}

.ic-green {
  background: rgba(34, 197, 94, 0.12);
}

.ic-blue {
  background: rgba(59, 130, 246, 0.12);
}

.ic-purple {
  background: rgba(168, 85, 247, 0.12);
}

.ic-teal {
  background: rgba(20, 184, 166, 0.12);
}

.dsc-lbl {
  font-family: "Outfit", sans-serif;
  font-size: 10px;
  font-weight: 500;
  color: var(--text-muted-light, #777);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 5px;
}

.dsc-val {
  font-family: "Cinzel", serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary, #fff);
  line-height: 1;
  margin-bottom: 8px;
}

.dsc-sub {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 500;
  padding: 2px 9px;
  border-radius: 20px;
}

.sub-up {
  background: rgba(34, 197, 94, 0.12);
  color: #22c55e;
}

.sub-down {
  background: rgba(226, 32, 38, 0.12);
  color: #e22026;
}

.sub-neu {
  background: rgba(255, 184, 0, 0.1);
  color: #ffb800;
}

.sub-blue {
  background: rgba(59, 130, 246, 0.1);
  color: #60a5fa;
}

/* big value for dollar stats */
.dsc-val.sm {
  font-size: 17px;
}

.dsc-val.xs {
  font-size: 14px;
}

/* ── BOTTOM ROW — CLOCK + ACTIVITY ── */
.dash-bottom {
  display: grid;
  grid-template-columns: 280px 1fr 1fr;
  gap: 16px;
  margin-top: 4px;
}

@media (max-width: 1100px) {
  .dash-bottom {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 700px) {
  .dash-bottom {
    grid-template-columns: 1fr;
  }
}

/* clock */
.dash-clock {
  background: var(--card-bg, #1a1a1a);
  border: 1px solid var(--card-border, rgba(226, 32, 38, 0.18));
  border-radius: 14px;
  padding: 28px 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
  animation: dshUp 0.4s ease 0.3s both;
}

.dash-clock::before {
  content: "";
  position: absolute;
  top: 0;
  left: 10%;
  width: 80%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(226, 32, 38, 0.4),
    transparent
  );
}

.clock-time {
  font-family: "Cinzel", serif;
  font-size: 34px;
  font-weight: 700;
  background: linear-gradient(135deg, var(--text-primary, #fff), #ffb800);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 0.08em;
}

.clock-date {
  font-size: 12px;
  color: var(--text-muted-light, #777);
  margin-top: 5px;
  letter-spacing: 0.06em;
}

.clock-zone {
  font-size: 10px;
  color: rgba(226, 32, 38, 0.7);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 3px;
}

/* quick links panel */
.dash-quick {
  background: var(--card-bg, #1a1a1a);
  border: 1px solid var(--card-border, rgba(226, 32, 38, 0.18));
  border-radius: 14px;
  position: relative;
  overflow: hidden;
  animation: dshUp 0.4s ease 0.35s both;
}

.dash-quick::before {
  content: "";
  position: absolute;
  top: 0;
  left: 10%;
  width: 80%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(226, 32, 38, 0.4),
    transparent
  );
}

.dash-quick-head {
  padding: 14px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  font-family: "Cinzel", serif;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-primary, #fff);
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.dash-quick-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

.dq-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 18px 10px;
  border-radius: 0;
  border: none;
  border-right: 1px solid rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  background: transparent;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}

.dq-btn:hover {
  background: rgba(226, 32, 38, 0.05);
}

.dq-btn:nth-child(even) {
  border-right: none;
}

.dq-btn:nth-last-child(-n + 2) {
  border-bottom: none;
}

.dq-ico {
  font-size: 22px;
}

.dq-lbl {
  font-family: "Outfit", sans-serif;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 500;
  text-align: center;
}

/* recent activity */
.dash-act {
  background: var(--card-bg, #1a1a1a);
  border: 1px solid var(--card-border, rgba(226, 32, 38, 0.18));
  border-radius: 14px;
  position: relative;
  overflow: hidden;
  animation: dshUp 0.4s ease 0.4s both;
}

.dash-act::before {
  content: "";
  position: absolute;
  top: 0;
  left: 10%;
  width: 80%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(226, 32, 38, 0.4),
    transparent
  );
}

.dash-act-head {
  padding: 14px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.dash-act-title {
  font-family: "Cinzel", serif;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-primary, #fff);
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.dash-act-body {
  padding: 6px 18px 14px;
}

.dash-act-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.dash-act-item:last-child {
  border-bottom: none;
}

.dac-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  margin-top: 4px;
  flex-shrink: 0;
}

.dac-title {
  font-family: "Outfit", sans-serif;
  font-size: 12px;
  color: var(--text-primary, #fff);
}

.dac-time {
  font-family: "Outfit", sans-serif;
  font-size: 10px;
  color: var(--text-muted-light, #777);
  margin-top: 2px;
}

.dac-amt {
  margin-left: auto;
  font-family: "Cinzel", serif;
  font-size: 12px;
  font-weight: 700;
  color: #ffb800;
  white-space: nowrap;
  padding-left: 8px;
}

@keyframes dshUp {
  from {
    opacity: 0;
    transform: translateY(14px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes livePulse {
  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.4;
  }
}
.rank-action {
  margin-top: 14px;
  display: flex;
  gap: 8px;
  justify-content: center;
}

.btn-claim {
  background: #22c55e;
  color: #fff;
  border: none;
  padding: 6px 9px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.3px;
  transition: background 0.2s;
}

.btn-claim:hover {
  background: #16a34a;
}

.btn-skip {
  background: #ef4444;
  color: #fff;
  border: none;
  padding: 6px 9px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.3px;
  transition: background 0.2s;
}

.btn-skip:hover {
  background: #dc2626;
}

.badge {
  padding: 5px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.success {
  background: #16a34a;
  color: #fff;
}

.danger {
  background: #dc2626;
  color: #fff;
}

.lock {
  background: #6b7280;
  color: #fff;
}
