/* ============================================================
   ChargeBD — Main Stylesheet
   Theme: Dark Fintech with Electric Green
   Fonts: Outfit (display) · DM Sans (body) · JetBrains Mono (code)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;1,9..40,400&family=JetBrains+Mono:wght@400;500;600&display=swap');

/* ============================================================
   CSS VARIABLES
   ============================================================ */
:root {
  /* Brand Colors */
  --g1:     #00ff87;
  --g2:     #00c96e;
  --g3:     #009950;
  --g-dark: #00552c;

  /* Backgrounds */
  --dark:   #060b14;
  --dark2:  #0c1524;
  --dark3:  #121e30;
  --dark4:  #1a2d45;
  --card:   #0f1d2e;

  /* Borders & Text */
  --border: #1e3350;
  --text:   #e8f4ff;
  --muted:  #6b8aaa;
  --muted2: #4a6580;

  /* Accent Colors */
  --red:    #ff4d6a;
  --red2:   #ff8fa3;
  --gold:   #ffd166;
  --gold2:  #ffe08a;
  --blue:   #4fc3f7;
  --blue2:  #90caf9;
  --purple: #b57bee;

  /* Sizing */
  --radius:    14px;
  --radius-sm: 8px;
  --radius-xs: 5px;
  --sidebar-w: 260px;

  /* Shadows & Effects */
  --shadow:      0 8px 32px rgba(0, 0, 0, .45);
  --shadow-lg:   0 24px 64px rgba(0, 0, 0, .55);
  --glow:        0 0 20px rgba(0, 255, 135, .15);
  --glow-strong: 0 0 40px rgba(0, 255, 135, .25);
  --red-glow:    0 0 20px rgba(255, 77, 106, .15);
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--dark);
  color: var(--text);
  font-size: 15px;
  line-height: 1.65;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; display: block; }
a  { text-decoration: none; }

h1, h2, h3, h4, h5, h6 {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  line-height: 1.2;
  color: var(--text);
}

p { margin: 0; }

/* Monospace */
.mono,
code,
pre {
  font-family: 'JetBrains Mono', monospace;
}

/* ============================================================
   CUSTOM SCROLLBAR
   ============================================================ */
::-webkit-scrollbar              { width: 6px; height: 6px; }
::-webkit-scrollbar-track        { background: var(--dark2); }
::-webkit-scrollbar-thumb        { background: var(--dark4); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover  { background: var(--g3); }

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes fadeLeft {
  from { opacity: 0; transform: translateX(-20px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: .3; }
}

@keyframes shimmer {
  0%   { background-position: -200% 0; }
  100% { background-position:  200% 0; }
}

@keyframes glow-pulse {
  0%, 100% { box-shadow: 0 0 10px rgba(0, 255, 135, .2); }
  50%       { box-shadow: 0 0 30px rgba(0, 255, 135, .5); }
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   LANDING PAGE — HERO
   ============================================================ */
.hero-bg {
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%,
      rgba(0, 255, 135, .08) 0%, transparent 70%),
    linear-gradient(180deg, var(--dark) 0%, var(--dark2) 100%);
  min-height: 100vh;
  position: relative;
  overflow: hidden;
}

/* Dot-grid background pattern */
.hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(
    circle,
    rgba(0, 255, 135, .04) 1px,
    transparent 1px
  );
  background-size: 40px 40px;
  pointer-events: none;
  animation: fadeIn 1.5s ease both;
}

/* ── Navbar ── */
.navbar-brand-logo {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--text) !important;
  letter-spacing: -0.5px;
}
.navbar-brand-logo span { color: var(--g1); }

.navbar-dark-custom {
  background: rgba(6, 11, 20, .85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: background .3s;
}

.navbar-dark-custom .nav-link {
  color: var(--muted) !important;
  font-weight: 500;
  font-size: 14.5px;
  transition: color .2s;
  padding: 8px 14px !important;
  border-radius: var(--radius-xs);
}
.navbar-dark-custom .nav-link:hover { color: var(--g1) !important; }

/* ── Hero Badge ── */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 255, 135, .08);
  border: 1px solid rgba(0, 255, 135, .2);
  color: var(--g1);
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 24px;
  animation: fadeUp .6s ease both;
}
.hero-badge::before {
  content: '●';
  font-size: 8px;
  animation: pulse 2s infinite;
}

/* ── Hero Title ── */
.hero-section { padding: 120px 0 80px; }

.hero-title {
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 800;
  letter-spacing: -1.5px;
  animation: fadeUp .7s .1s ease both;
  opacity: 0;
  animation-fill-mode: forwards;
}

.hero-title .highlight {
  background: linear-gradient(135deg, var(--g1) 0%, var(--g2) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 520px;
  line-height: 1.75;
  animation: fadeUp .7s .2s ease both;
  opacity: 0;
  animation-fill-mode: forwards;
}

.hero-cta {
  animation: fadeUp .7s .35s ease both;
  opacity: 0;
  animation-fill-mode: forwards;
}

/* ── Stats Cards ── */
.stat-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  animation: fadeUp .7s .4s ease both;
  opacity: 0;
  animation-fill-mode: forwards;
  transition: transform .3s, box-shadow .3s;
}
.stat-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--glow);
  border-color: rgba(0, 255, 135, .2);
}
.stat-card .stat-value {
  font-family: 'Outfit', sans-serif;
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--g1);
  line-height: 1;
}
.stat-card .stat-label {
  font-size: 13px;
  color: var(--muted);
  margin-top: 6px;
}

/* ── Feature Cards ── */
.feature-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  height: 100%;
  transition: transform .3s, border-color .3s, box-shadow .3s;
}
.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 255, 135, .3);
  box-shadow: var(--glow);
}

.feature-icon {
  width: 52px;
  height: 52px;
  background: linear-gradient(
    135deg,
    rgba(0, 255, 135, .15),
    rgba(0, 201, 110, .08)
  );
  border: 1px solid rgba(0, 255, 135, .2);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 16px;
  transition: transform .3s;
}
.feature-card:hover .feature-icon {
  transform: scale(1.08);
  box-shadow: var(--glow);
}

/* ============================================================
   BUTTONS
   ============================================================ */

/* Primary green */
.btn-green {
  background: linear-gradient(135deg, var(--g1) 0%, var(--g2) 100%);
  color: #000;
  font-weight: 700;
  border: none;
  padding: 12px 28px;
  border-radius: var(--radius-sm);
  font-family: 'Outfit', sans-serif;
  font-size: 15px;
  transition: all .25s;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  display: inline-block;
  line-height: 1.4;
}
.btn-green::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0);
  transition: background .25s;
}
.btn-green:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 255, 135, .35);
  color: #000;
}
.btn-green:hover::before { background: rgba(255, 255, 255, .1); }
.btn-green:active         { transform: translateY(0); box-shadow: none; }
.btn-green:disabled       { opacity: .6; cursor: not-allowed; transform: none; }

/* Outline green */
.btn-outline-green {
  background: transparent;
  color: var(--g1);
  border: 1.5px solid var(--g1);
  padding: 11px 28px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-family: 'Outfit', sans-serif;
  font-size: 15px;
  transition: all .25s;
  cursor: pointer;
  display: inline-block;
  line-height: 1.4;
}
.btn-outline-green:hover {
  background: rgba(0, 255, 135, .1);
  color: var(--g1);
  box-shadow: var(--glow);
}

/* Ghost */
.btn-ghost {
  background: rgba(255, 255, 255, .05);
  color: var(--text);
  border: 1px solid var(--border);
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  transition: all .2s;
  cursor: pointer;
  display: inline-block;
  line-height: 1.4;
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, .1);
  color: var(--text);
  border-color: rgba(255, 255, 255, .2);
}

/* Red / Danger */
.btn-red {
  background: rgba(255, 77, 106, .15);
  color: var(--red);
  border: 1px solid rgba(255, 77, 106, .3);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  transition: all .2s;
  cursor: pointer;
  display: inline-block;
}
.btn-red:hover {
  background: rgba(255, 77, 106, .28);
  color: var(--red);
  box-shadow: var(--red-glow);
}

/* Small variants */
.btn-green.btn-sm,
.btn-outline-green.btn-sm,
.btn-ghost.btn-sm {
  padding: 8px 18px;
  font-size: 13px;
}

/* Full width */
.btn-block { width: 100%; text-align: center; }

/* Loading state */
.btn-loading {
  pointer-events: none;
  opacity: .75;
}
.btn-loading::after {
  content: '';
  display: inline-block;
  width: 14px;
  height: 14px;
  margin-left: 10px;
  border: 2px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin .7s linear infinite;
  vertical-align: middle;
}

/* ============================================================
   AUTH PAGES  (login / signup / forgot-password)
   ============================================================ */
.auth-page {
  min-height: 100vh;
  background:
    radial-gradient(ellipse 60% 80% at 20% 50%,
      rgba(0, 255, 135, .06) 0%, transparent 60%),
    var(--dark);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 16px;
}

.auth-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 48px 40px;
  width: 100%;
  max-width: 460px;
  box-shadow: var(--shadow-lg);
  animation: fadeUp .5s ease both;
}

.auth-logo {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 1.8rem;
  text-align: center;
  margin-bottom: 8px;
  color: var(--text);
}
.auth-logo span { color: var(--g1); }

.auth-subtitle {
  text-align: center;
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 32px;
  line-height: 1.5;
}

/* Form labels */
.form-label-custom {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: .6px;
  text-transform: uppercase;
  margin-bottom: 7px;
  display: block;
}

/* Input fields */
.form-control-dark {
  background: var(--dark3);
  border: 1.5px solid var(--border);
  color: var(--text);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: 15px;
  font-family: 'DM Sans', sans-serif;
  transition: border-color .2s, box-shadow .2s, background .2s;
  width: 100%;
  outline: none;
}
.form-control-dark:focus {
  border-color: var(--g1);
  box-shadow: 0 0 0 3px rgba(0, 255, 135, .12);
  background: var(--dark3);
  color: var(--text);
}
.form-control-dark::placeholder { color: var(--muted2); }
.form-control-dark.is-invalid   { border-color: var(--red); }
.form-control-dark.is-invalid:focus {
  box-shadow: 0 0 0 3px rgba(255, 77, 106, .12);
}
.form-control-dark:disabled {
  opacity: .6;
  cursor: not-allowed;
}

/* Password toggle group */
.input-group-dark {
  display: flex;
  align-items: stretch;
}
.input-group-dark .form-control-dark {
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
  border-right: none;
}
.input-group-dark .btn-toggle-pass {
  background: var(--dark3);
  border: 1.5px solid var(--border);
  border-left: none;
  color: var(--muted);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 0 14px;
  cursor: pointer;
  transition: color .2s, background .2s;
  display: flex;
  align-items: center;
  font-size: 16px;
}
.input-group-dark .btn-toggle-pass:hover {
  color: var(--g1);
  background: rgba(0, 255, 135, .06);
}

/* Auth divider */
.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 13px;
  margin: 20px 0;
}
.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* API credentials revealed after signup */
.api-reveal-card {
  background: linear-gradient(
    135deg,
    rgba(0, 255, 135, .08),
    rgba(0, 201, 110, .04)
  );
  border: 1px solid rgba(0, 255, 135, .25);
  border-radius: var(--radius);
  padding: 24px;
  animation: fadeUp .5s ease both;
}
.api-reveal-card .api-reveal-title {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: var(--g1);
  margin-bottom: 16px;
}
.api-reveal-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--dark3);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  margin-bottom: 10px;
}
.api-reveal-row .label {
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .5px;
  min-width: 100px;
}
.api-reveal-row .value {
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  color: var(--g1);
  flex: 1;
  padding: 0 12px;
  word-break: break-all;
}

/* ============================================================
   DASHBOARD LAYOUT
   ============================================================ */
.dash-wrapper {
  display: flex;
  min-height: 100vh;
}

/* ── Sidebar ── */
.sidebar {
  width: var(--sidebar-w);
  min-height: 100vh;
  background: var(--dark2);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  position: fixed;
  left: 0;
  top: 0;
  z-index: 200;
  transition: transform .3s cubic-bezier(.4, 0, .2, 1);
  overflow-y: auto;
}

.sidebar-logo {
  padding: 22px 24px 18px;
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 1.4rem;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  flex-shrink: 0;
  letter-spacing: -.5px;
}
.sidebar-logo span { color: var(--g1); }

.sidebar-nav {
  flex: 1;
  padding: 16px 12px;
  overflow-y: auto;
}

.sidebar-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.8px;
  color: var(--muted2);
  text-transform: uppercase;
  padding: 14px 12px 6px;
  user-select: none;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 13px;
  border-radius: 10px;
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
  transition: background .2s, color .2s, border-color .2s;
  margin-bottom: 2px;
  position: relative;
  border: 1px solid transparent;
}
.sidebar-link .nav-icon {
  width: 20px;
  text-align: center;
  font-size: 15px;
  flex-shrink: 0;
  opacity: .8;
}
.sidebar-link:hover {
  background: rgba(255, 255, 255, .05);
  color: var(--text);
  border-color: transparent;
}
.sidebar-link:hover .nav-icon { opacity: 1; }

/* Active state */
.sidebar-link.active {
  background: linear-gradient(
    135deg,
    rgba(0, 255, 135, .14),
    rgba(0, 201, 110, .07)
  );
  color: var(--g1);
  border-color: rgba(0, 255, 135, .18);
}
.sidebar-link.active .nav-icon { opacity: 1; }
.sidebar-link.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 20px;
  background: var(--g1);
  border-radius: 0 3px 3px 0;
}

/* User info at bottom of sidebar */
.sidebar-user {
  padding: 14px 16px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 11px;
  flex-shrink: 0;
}
.user-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--g1), var(--g2));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 15px;
  color: #000;
  flex-shrink: 0;
  font-family: 'Outfit', sans-serif;
}
.user-info-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 150px;
}
.user-info-role {
  font-size: 11px;
  color: var(--g1);
  font-weight: 500;
}

/* ── Main Content ── */
.main-content {
  margin-left: var(--sidebar-w);
  flex: 1;
  min-height: 100vh;
  background: var(--dark);
  transition: margin-left .3s cubic-bezier(.4, 0, .2, 1);
}

/* ── Topbar ── */
.topbar {
  height: 64px;
  background: rgba(6, 11, 20, .95);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.topbar-title {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text);
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.balance-chip {
  background: rgba(0, 255, 135, .1);
  border: 1px solid rgba(0, 255, 135, .22);
  color: var(--g1);
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 700;
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: .5px;
  white-space: nowrap;
}

.topbar-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--g1), var(--g2));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: #000;
  font-size: 13px;
  cursor: pointer;
  text-decoration: none;
  font-family: 'Outfit', sans-serif;
  flex-shrink: 0;
  transition: box-shadow .2s;
}
.topbar-avatar:hover {
  box-shadow: 0 0 0 3px rgba(0, 255, 135, .25);
}

/* Page content wrapper */
.page-content { padding: 28px; }

/* Mobile sidebar toggle */
.sidebar-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 22px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: var(--radius-xs);
  transition: background .2s;
}
.sidebar-toggle:hover { background: rgba(255,255,255,.08); }

/* Sidebar overlay (mobile) */
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .65);
  z-index: 190;
  backdrop-filter: blur(2px);
}

/* ============================================================
   DASHBOARD STAT CARDS
   ============================================================ */
.stat-dash-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 24px;
  position: relative;
  overflow: hidden;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.stat-dash-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: rgba(255, 255, 255, .1);
}

/* Top accent line */
.stat-dash-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--g1), var(--g2));
  border-radius: 2px 2px 0 0;
}
.stat-dash-card.red::after    { background: linear-gradient(90deg, var(--red),  var(--red2)); }
.stat-dash-card.blue::after   { background: linear-gradient(90deg, var(--blue), var(--blue2)); }
.stat-dash-card.gold::after   { background: linear-gradient(90deg, var(--gold), var(--gold2)); }
.stat-dash-card.purple::after { background: linear-gradient(90deg, var(--purple), #d8a7ff); }

/* Decorative bg circle */
.stat-dash-card::before {
  content: '';
  position: absolute;
  right: -20px; top: -20px;
  width: 90px; height: 90px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .02);
  pointer-events: none;
}

/* Icon wrapper */
.card-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
  margin-bottom: 14px;
  flex-shrink: 0;
}
.icon-green  { background: rgba(0,   255, 135, .12); color: var(--g1);    }
.icon-red    { background: rgba(255,  77, 106, .12); color: var(--red);   }
.icon-blue   { background: rgba( 79, 195, 247, .12); color: var(--blue);  }
.icon-gold   { background: rgba(255, 209, 102, .12); color: var(--gold);  }
.icon-purple { background: rgba(181, 123, 238, .12); color: var(--purple);}

.card-val {
  font-family: 'Outfit', sans-serif;
  font-size: 1.85rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.5px;
}
.card-lbl {
  font-size: 13px;
  color: var(--muted);
  margin-top: 4px;
  font-weight: 400;
}
.card-trend {
  font-size: 12px;
  margin-top: 10px;
  display: flex;
  align-items: center;
  gap: 4px;
}
.trend-up   { color: var(--g1); }
.trend-down { color: var(--red); }

/* ============================================================
   PANEL CARDS  (generic content containers)
   ============================================================ */
.panel-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.panel-card-header {
  padding: 18px 24px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.panel-card-header h5 {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: .95rem;
  margin: 0;
  color: var(--text);
}

.panel-card-body    { padding: 24px; }
.panel-card-footer  {
  padding: 14px 24px;
  border-top: 1px solid var(--border);
  background: rgba(255,255,255,.01);
}

/* ============================================================
   DATA TABLES
   ============================================================ */
.table-dark-custom {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.table-dark-custom thead th {
  background: var(--dark3);
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.table-dark-custom thead th:first-child { border-radius: var(--radius-sm) 0 0 0; }
.table-dark-custom thead th:last-child  { border-radius: 0 var(--radius-sm) 0 0; }

.table-dark-custom tbody tr {
  border-bottom: 1px solid rgba(255, 255, 255, .04);
  transition: background .15s;
}
.table-dark-custom tbody tr:hover    { background: rgba(255, 255, 255, .03); }
.table-dark-custom tbody tr:last-child { border-bottom: none; }
.table-dark-custom tbody td          { padding: 13px 16px; color: var(--text); vertical-align: middle; }

/* Responsive table wrapper */
.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* ============================================================
   STATUS BADGES
   ============================================================ */
.badge-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  font-family: 'DM Sans', sans-serif;
}
.badge-status::before {
  content: '●';
  font-size: 7px;
}

.bs-success,
.bs-completed,
.bs-active    { background: rgba(0,   255, 135, .12); color: var(--g1);    }
.bs-pending   { background: rgba(255, 209, 102, .12); color: var(--gold);  }
.bs-failed,
.bs-cancelled,
.bs-banned    { background: rgba(255,  77, 106, .12); color: var(--red);   }
.bs-info      { background: rgba( 79, 195, 247, .12); color: var(--blue);  }

/* ============================================================
   DASHBOARD FORM GROUPS
   ============================================================ */
.form-group-dark { margin-bottom: 20px; }

.form-group-dark label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: .6px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.form-group-dark select,
.form-group-dark input,
.form-group-dark textarea {
  width: 100%;
  background: var(--dark3);
  border: 1.5px solid var(--border);
  color: var(--text);
  border-radius: var(--radius-sm);
  padding: 11px 14px;
  font-size: 14.5px;
  font-family: 'DM Sans', sans-serif;
  transition: border-color .2s, box-shadow .2s;
  appearance: none;
  outline: none;
}
.form-group-dark select:focus,
.form-group-dark input:focus,
.form-group-dark textarea:focus {
  border-color: var(--g1);
  box-shadow: 0 0 0 3px rgba(0, 255, 135, .1);
}
.form-group-dark select option,
.form-group-dark datalist option { background: var(--dark3); color: var(--text); }
.form-group-dark textarea        { resize: vertical; min-height: 90px; }
.form-group-dark input:disabled,
.form-group-dark select:disabled { opacity: .55; cursor: not-allowed; }

/* Select arrow */
.select-wrapper { position: relative; }
.select-wrapper::after {
  content: '▾';
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  pointer-events: none;
  font-size: 12px;
}

/* Error text */
.field-error {
  font-size: 12px;
  color: var(--red);
  margin-top: 5px;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ============================================================
   API CREDENTIALS CARD
   ============================================================ */
.api-cred-card {
  background: linear-gradient(
    135deg,
    rgba(0, 255, 135, .05),
    rgba(0, 153, 80,  .03)
  );
  border: 1px solid rgba(0, 255, 135, .2);
  border-radius: var(--radius);
  padding: 24px;
}
.api-cred-title {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: var(--text);
  margin-bottom: 4px;
}
.api-cred-subtitle {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 20px;
}

.api-field-wrap {
  background: var(--dark3);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 11px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  transition: border-color .2s;
}
.api-field-wrap:hover { border-color: rgba(0, 255, 135, .2); }

.api-field-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .5px;
  min-width: 90px;
  flex-shrink: 0;
}
.api-field-val {
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  color: var(--g1);
  flex: 1;
  word-break: break-all;
}
.api-field-val.hidden { color: var(--muted); letter-spacing: 3px; }

.api-field-actions {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}
.btn-api-action {
  background: rgba(255, 255, 255, .05);
  border: 1px solid var(--border);
  color: var(--muted);
  width: 32px;
  height: 32px;
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 14px;
  transition: all .2s;
  flex-shrink: 0;
}
.btn-api-action:hover {
  background: rgba(0, 255, 135, .1);
  color: var(--g1);
  border-color: rgba(0, 255, 135, .25);
}
.btn-api-action.copied {
  background: rgba(0, 255, 135, .15);
  color: var(--g1);
  border-color: rgba(0, 255, 135, .3);
}

/* ============================================================
   DRIVE OFFER CARDS
   ============================================================ */
.offer-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: transform .25s, border-color .25s, box-shadow .25s;
  position: relative;
  overflow: hidden;
}
.offer-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--g1), var(--g2));
  opacity: 0;
  transition: opacity .25s;
}
.offer-card:hover {
  transform: translateY(-3px);
  border-color: rgba(0, 255, 135, .25);
  box-shadow: var(--glow);
}
.offer-card:hover::before { opacity: 1; }

.offer-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(0, 255, 135, .1);
  border: 1px solid rgba(0, 255, 135, .2);
  color: var(--g1);
  padding: 4px 10px;
  border-radius: 50px;
  font-size: 11px;
  font-weight: 600;
  margin-bottom: 12px;
  align-self: flex-start;
}
.offer-price {
  font-family: 'Outfit', sans-serif;
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--g1);
  line-height: 1;
  margin-bottom: 4px;
}
.offer-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}
.offer-detail {
  font-size: 13px;
  color: var(--muted);
  flex: 1;
  margin-bottom: 16px;
  line-height: 1.5;
}
.offer-card .btn-green { margin-top: auto; }

/* ============================================================
   OPERATOR BADGES
   ============================================================ */
.op-badge {
  display: inline-block;
  padding: 3px 9px;
  border-radius: var(--radius-xs);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .5px;
}
.op-gp  { background: rgba(  0, 156,  57, .2); color: #4caf7e; }
.op-bl  { background: rgba(255, 165,   0, .15); color: #ffa53e; }
.op-rb  { background: rgba(220,  38,  38, .15); color: #ff6b6b; }
.op-air { background: rgba(239,  68,  68, .15); color: #f87171; }
.op-tt  { background: rgba( 37,  99, 235, .15); color: #60a5fa; }

/* ============================================================
   DEPOSIT — AMOUNT PRESETS
   ============================================================ */
.amount-preset {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}
.amount-btn {
  background: var(--dark3);
  border: 1.5px solid var(--border);
  color: var(--muted);
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  font-family: 'DM Sans', sans-serif;
  transition: all .2s;
  white-space: nowrap;
}
.amount-btn:hover,
.amount-btn.active {
  border-color: var(--g1);
  color: var(--g1);
  background: rgba(0, 255, 135, .08);
}

/* ============================================================
   PAYMENT GATEWAY CARD
   ============================================================ */
.gateway-card {
  background: var(--dark3);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  transition: all .2s;
}
.gateway-card:hover,
.gateway-card.selected {
  border-color: var(--g1);
  background: rgba(0, 255, 135, .06);
}
.gateway-card .gateway-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  background: rgba(255, 255, 255, .06);
}

/* ============================================================
   LOADING SPINNER / OVERLAY
   ============================================================ */
.loader-overlay {
  position: fixed;
  inset: 0;
  background: rgba(6, 11, 20, .88);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  backdrop-filter: blur(4px);
  animation: fadeIn .2s ease;
}
.spinner-ring {
  width: 48px;
  height: 48px;
  border: 4px solid var(--border);
  border-top-color: var(--g1);
  border-radius: 50%;
  animation: spin .75s linear infinite;
}
.loader-text {
  color: var(--muted);
  font-size: 14px;
  margin-top: 14px;
  font-weight: 500;
}

/* Inline spinner */
.spinner-sm {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255,255,255,.3);
  border-top-color: currentColor;
  border-radius: 50%;
  animation: spin .7s linear infinite;
  vertical-align: middle;
}

/* Skeleton loader */
.skeleton {
  background: linear-gradient(
    90deg,
    var(--dark3) 25%,
    var(--dark4) 50%,
    var(--dark3) 75%
  );
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
  border-radius: var(--radius-sm);
}

/* ============================================================
   BOOTSTRAP ALERT OVERRIDES
   ============================================================ */
.alert {
  border-radius: var(--radius-sm);
  font-size: 14px;
  border: 1px solid transparent;
  padding: 14px 16px;
  animation: slideDown .3s ease;
}
.alert-success {
  background: rgba(  0, 255, 135, .1)  !important;
  border-color:  rgba(  0, 255, 135, .25) !important;
  color: var(--g1) !important;
}
.alert-danger {
  background: rgba(255,  77, 106, .1)  !important;
  border-color:  rgba(255,  77, 106, .25) !important;
  color: var(--red) !important;
}
.alert-warning {
  background: rgba(255, 209, 102, .1)  !important;
  border-color:  rgba(255, 209, 102, .25) !important;
  color: var(--gold) !important;
}
.alert-info {
  background: rgba( 79, 195, 247, .1)  !important;
  border-color:  rgba( 79, 195, 247, .25) !important;
  color: var(--blue) !important;
}
.btn-close { filter: invert(1) brightness(1.5); }

/* ============================================================
   ADMIN PANEL EXTRAS
   ============================================================ */
.admin-sidebar { background: #070d18; }

.admin-sidebar .sidebar-link.active {
  background: rgba(79, 195, 247, .1);
  color: var(--blue);
  border-color: rgba(79, 195, 247, .2);
}
.admin-sidebar .sidebar-link.active::before { background: var(--blue); }
.admin-sidebar .sidebar-link:hover { color: var(--blue); }

/* Revenue card admin */
.revenue-number {
  font-family: 'Outfit', sans-serif;
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--g1);
  letter-spacing: -1px;
}

/* Admin action buttons */
.btn-approve {
  background: rgba(0, 255, 135, .12);
  color: var(--g1);
  border: 1px solid rgba(0, 255, 135, .25);
  padding: 5px 12px;
  border-radius: var(--radius-xs);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s;
}
.btn-approve:hover { background: rgba(0,255,135,.22); }

.btn-ban {
  background: rgba(255, 77, 106, .12);
  color: var(--red);
  border: 1px solid rgba(255, 77, 106, .25);
  padding: 5px 12px;
  border-radius: var(--radius-xs);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s;
}
.btn-ban:hover { background: rgba(255,77,106,.22); }

/* ============================================================
   PROFILE PAGE
   ============================================================ */
.profile-avatar-wrap {
  position: relative;
  display: inline-block;
}
.profile-avatar {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--g1), var(--g2));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 2rem;
  color: #000;
  border: 3px solid rgba(0, 255, 135, .25);
}
.profile-info-name {
  font-family: 'Outfit', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
}
.profile-info-email { font-size: 14px; color: var(--muted); }
.profile-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(0, 255, 135, .1);
  border: 1px solid rgba(0, 255, 135, .2);
  color: var(--g1);
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 600;
  margin-top: 8px;
}

/* ============================================================
   PAGINATION
   ============================================================ */
.pagination-dark {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}
.page-btn {
  background: var(--dark3);
  border: 1px solid var(--border);
  color: var(--muted);
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  cursor: pointer;
  transition: all .2s;
  text-decoration: none;
}
.page-btn:hover { border-color: var(--g1); color: var(--g1); background: rgba(0,255,135,.06); }
.page-btn.active { background: var(--g2); border-color: var(--g2); color: #000; font-weight: 700; }

/* ============================================================
   DIVIDER
   ============================================================ */
.divider {
  height: 1px;
  background: var(--border);
  margin: 20px 0;
}
.divider-text {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 13px;
  margin: 20px 0;
}
.divider-text::before,
.divider-text::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* ============================================================
   EMPTY STATE
   ============================================================ */
.empty-state {
  text-align: center;
  padding: 56px 24px;
  color: var(--muted);
}
.empty-state .empty-icon {
  font-size: 3.5rem;
  margin-bottom: 14px;
  opacity: .35;
  display: block;
}
.empty-state h5 {
  font-size: 1rem;
  color: var(--text);
  margin-bottom: 8px;
}
.empty-state p {
  font-size: 14px;
  color: var(--muted);
  max-width: 320px;
  margin: 0 auto 20px;
}

/* ============================================================
   TOOLTIP (custom)
   ============================================================ */
[data-tooltip] {
  position: relative;
  cursor: help;
}
[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--dark4);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 12px;
  padding: 5px 10px;
  border-radius: var(--radius-xs);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s;
  z-index: 999;
}
[data-tooltip]:hover::after { opacity: 1; }

/* ============================================================
   UTILITY CLASSES
   ============================================================ */
.text-green       { color: var(--g1)   !important; }
.text-muted-c     { color: var(--muted)!important; }
.text-red         { color: var(--red)  !important; }
.text-gold        { color: var(--gold) !important; }
.text-blue        { color: var(--blue) !important; }
.text-purple       { color: var(--purple) !important; }
.bg-card          { background: var(--card)  !important; }
.bg-dark2         { background: var(--dark2) !important; }
.bg-dark3         { background: var(--dark3) !important; }
.border-green     { border-color: rgba(0,255,135,.25) !important; }
.rounded-custom   { border-radius: var(--radius) !important; }
.rounded-sm       { border-radius: var(--radius-sm) !important; }
.font-outfit      { font-family: 'Outfit', sans-serif !important; }
.font-mono        { font-family: 'JetBrains Mono', monospace !important; }
.fw-800           { font-weight: 800 !important; }
.letter-wide      { letter-spacing: .5px; }
.opacity-60       { opacity: .6; }
.transition       { transition: all .25s; }
.no-select        { user-select: none; }
.cursor-pointer   { cursor: pointer; }
.w-full           { width: 100% !important; }
.gap-custom       { gap: 12px; }

/* ============================================================
   RESPONSIVE — TABLET (≤ 992px)
   ============================================================ */
@media (max-width: 992px) {
  .sidebar           { transform: translateX(-100%); }
  .sidebar.open      { transform: translateX(0); box-shadow: 8px 0 40px rgba(0,0,0,.5); }
  .sidebar-overlay.show { display: block; }
  .main-content      { margin-left: 0; }
  .sidebar-toggle    { display: block; }
  .page-content      { padding: 18px; }
  .auth-card         { padding: 32px 24px; }
  .topbar            { padding: 0 18px; }
}

/* ============================================================
   RESPONSIVE — MOBILE (≤ 576px)
   ============================================================ */
@media (max-width: 576px) {
  .topbar                { padding: 0 14px; }
  .balance-chip          { font-size: 12px; padding: 5px 10px; }
  .card-val              { font-size: 1.5rem; }
  .hero-title            { letter-spacing: -.5px; }
  .auth-card             { padding: 28px 18px; }
  .panel-card-body       { padding: 16px; }
  .panel-card-header     { padding: 14px 16px; }
  .page-content          { padding: 14px; }
  .table-dark-custom tbody td,
  .table-dark-custom thead th { padding: 10px 12px; font-size: 13px; }
  .stat-dash-card        { padding: 18px; }
  .api-field-wrap        { flex-direction: column; align-items: flex-start; }
  .api-field-actions     { align-self: flex-end; }
}