
/* ==== variables.css ==== */
/* =============================================================================
   NEON GLASS DESIGN SYSTEM — variables.css
   Premium Dark Neon Glassmorphism theme for the whole website.
   This file only defines design tokens. Loaded last so it wins over legacy
   themes (assunnah-skin.css / design-system.css) without touching backend.
   ============================================================================= */

:root {
  /* ---- Core palette (requested) ---- */
  --bg-primary: #050816;
  --bg-secondary: #080D20;
  --bg-tertiary: #0C1530;

  --card-bg: rgba(12, 22, 48, 0.82);
  --card-bg-hover: rgba(18, 32, 65, 0.95);

  --sidebar-bg: #070D1D;
  --navbar-bg: rgba(5, 10, 25, 0.94);

  --border-color: rgba(90, 130, 255, 0.22);
  --border-hover: rgba(0, 200, 255, 0.65);

  --primary: #1685FF;
  --secondary: #693BFF;
  --cyan: #00D9FF;
  --purple: #A855F7;

  --gradient-primary: linear-gradient(135deg, #00C6FF, #1677FF, #783BFF);
  --gradient-purple: linear-gradient(135deg, #7928CA, #FF0080);
  --gradient-success: linear-gradient(135deg, #00D68F, #00A86B);
  --gradient-danger: linear-gradient(135deg, #FF416C, #FF4B2B);

  --text-primary: #F4F7FF;
  --text-secondary: #AAB7D4;
  --text-muted: #71809F;

  --success: #00D68F;
  --warning: #FFB547;
  --danger: #FF5470;
  --info: #20BFFF;

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --radius-xl: 28px;

  --shadow-card: 0 10px 35px rgba(0, 0, 0, 0.30);

  --glow-blue: 0 0 20px rgba(0, 132, 255, 0.25);
  --glow-purple: 0 0 20px rgba(145, 50, 255, 0.25);
  --glow-cyan: 0 0 20px rgba(0, 220, 255, 0.20);

  /* ---- Layout tokens ---- */
  --sidebar-w: 256px;
  --topbar-h: 68px;
  --content-max: 1500px;

  /* ---- Extended glass tokens ---- */
  --glass-blur: blur(18px) saturate(1.35);
  --glass-highlight: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  --glass-border: 1px solid rgba(90, 130, 255, 0.22);

  --gradient-cyan: linear-gradient(135deg, #00D9FF, #1685FF);
  --gradient-warm: linear-gradient(135deg, #FFB547, #FF7A18);
  --gradient-dark: linear-gradient(145deg, #0C1630, #0A1226);

  /* ---- Legacy variable bridge -------------------------------------------------
     The old skin files consume these names. Mapping them here re-colours the
     entire existing markup (header/sidebar/cards/forms/tables) automatically. */
  --ds-bg: #050816;
  --ds-bg-2: #080D20;
  --ds-sidebar: #070D1D;
  --ds-card: #0C1630;
  --ds-card-2: #101E3D;
  --ds-border: rgba(90, 130, 255, 0.28);
  --ds-border-soft: rgba(90, 130, 255, 0.14);

  --ds-cyan: #00D9FF;
  --ds-blue: #1685FF;
  --ds-blue-2: #3B9BFF;
  --ds-purple: #A855F7;
  --ds-magenta: #E83EFF;

  --ds-success: #00D68F;
  --ds-warning: #FFB547;
  --ds-danger: #FF5470;
  --ds-text: #F4F7FF;
  --ds-text-2: #AAB7D4;
  --ds-muted: #71809F;

  --primary-dark: #3B9BFF;
  --primary-deep: #101E3D;
  --primary-light: rgba(22, 133, 255, 0.18);
  --primary-soft: rgba(22, 133, 255, 0.10);
  --accent: #00D9FF;
  --teal: #00D9FF;
  --ink: #F4F7FF;
  --ink-2: #AAB7D4;
  --muted: #71809F;
  --muted-light: #8FA1C2;
  --bg: #050816;
  --card: #0C1630;
  --border: rgba(90, 130, 255, 0.28);
  --info-legacy: #20BFFF;
  --dark: #080D20;

  --ds-grad: var(--gradient-primary);
  --ds-grad-soft: linear-gradient(135deg, rgba(22, 133, 255, .20), rgba(0, 217, 255, .10));
  --ds-grad-cyan: var(--gradient-cyan);
  --ds-grad-purple: var(--gradient-purple);
  --ds-grad-danger: var(--gradient-danger);
  --ds-grad-success: var(--gradient-success);
  --ds-grad-warn: var(--gradient-warm);
  --ds-grad-hero: linear-gradient(118deg, #0A1330 0%, #131F4D 52%, #2A1458 100%);

  --shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 26px 70px rgba(0, 0, 0, 0.50);
  --shadow-glow: 0 12px 40px rgba(22, 133, 255, 0.35);
  --ds-glow-cyan: 0 0 0 1px rgba(0, 217, 255, 0.35), 0 12px 40px rgba(0, 217, 255, 0.18);

  --radius: 18px;
  --radius-pill: 999px;

  color-scheme: dark;
}

/* ==== reset.css ==== */
/* =============================================================================
   reset.css — safe, non-destructive normalisation for the neon theme
   (does NOT remove legacy Bootstrap behaviour, only visual defaults)
   ============================================================================= */

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg, video, canvas { max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
a { text-decoration: none; }
ul, ol { margin: 0; padding: 0; }
figure { margin: 0; }
table { border-collapse: separate; border-spacing: 0; }

::selection { background: rgba(0, 217, 255, .30); color: #fff; }

::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-track { background: rgba(5, 8, 22, .65); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #1685FF, #00D9FF);
  border-radius: 99px;
}
::-webkit-scrollbar-thumb:hover { background: linear-gradient(180deg, #00D9FF, #A855F7); }

:focus-visible {
  outline: 2px solid rgba(0, 217, 255, .65);
  outline-offset: 2px;
  border-radius: 8px;
}

/* ==== typography.css ==== */
/* =============================================================================
   typography.css — Hind Siliguri + Poppins, neon headings, readable body
   ============================================================================= */

html, body {
  font-family: 'Hind Siliguri', 'Poppins', 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif !important;
  color: var(--text-primary);
  font-size: 15px;
  line-height: 1.7;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Poppins', 'Hind Siliguri', sans-serif;
  color: var(--text-primary);
  font-weight: 700;
  letter-spacing: -0.3px;
  line-height: 1.3;
  margin-top: 0;
}

h1 { font-size: clamp(1.35rem, 2.6vw, 1.9rem); }
h2 { font-size: clamp(1.2rem, 2.2vw, 1.6rem); }
h3 { font-size: clamp(1.1rem, 1.8vw, 1.35rem); }
h4 { font-size: 1.15rem; }
h5 { font-size: 1.02rem; }
h6 { font-size: .92rem; }

p { margin: 0 0 .9rem; }

a {
  color: var(--cyan);
  text-decoration: none;
  transition: color .2s ease, opacity .2s ease;
}
a:hover { color: #7FE9FF; }

small, .small { font-size: 12.5px; color: var(--text-secondary); }

.text-muted, .text-secondary { color: var(--text-muted) !important; }
.text-primary { color: var(--cyan) !important; }
.text-success { color: var(--success) !important; }
.text-danger { color: var(--danger) !important; }
.text-warning { color: var(--warning) !important; }
.text-info { color: var(--info) !important; }
.text-dark, .text-body { color: var(--text-primary) !important; }
.text-white { color: #fff !important; }

.fw-bold, .fw-semibold, strong, b { font-weight: 700; }

.gradient-text {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

code, pre, kbd, samp {
  font-family: 'JetBrains Mono', 'Fira Code', 'SFMono-Regular', Consolas, monospace;
  font-size: .88em;
}
code {
  color: #7FE9FF;
  background: rgba(6, 16, 32, .9);
  border: 1px solid var(--border-color);
  border-radius: 7px;
  padding: 2px 6px;
}
pre {
  background: rgba(5, 10, 24, .92);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px;
  overflow-x: auto;
  color: #D9E6FF;
}
pre code { border: 0; background: none; padding: 0; }

hr { border: 0; border-top: 1px solid var(--border-color); opacity: .8; }

::placeholder { color: #5F7294 !important; opacity: 1; }

/* ==== background.css ==== */
/* =============================================================================
   background.css — deep navy + blue/purple neon aura + subtle grid
   ============================================================================= */

html { background: var(--bg-primary); }

body {
  background:
    radial-gradient(circle at 10% 8%, rgba(0, 110, 255, .16), transparent 36%),
    radial-gradient(circle at 92% 14%, rgba(125, 40, 255, .14), transparent 38%),
    radial-gradient(circle at 50% 110%, rgba(0, 217, 255, .08), transparent 46%),
    var(--bg-primary) !important;
  background-attachment: fixed !important;
  color: var(--text-primary) !important;
}

/* Soft neon orbs behind the app shell */
body::before,
body::after {
  content: "";
  position: fixed;
  z-index: 0;
  pointer-events: none;
  border-radius: 50%;
  filter: blur(120px);
  opacity: .85;
}
body::before {
  width: 640px;
  height: 640px;
  top: -260px;
  left: -180px;
  background: radial-gradient(circle, rgba(22, 133, 255, .34), transparent 68%);
}
body::after {
  width: 720px;
  height: 720px;
  right: -240px;
  bottom: -300px;
  background:
    radial-gradient(circle at 35% 35%, rgba(0, 217, 255, .18), transparent 55%),
    radial-gradient(circle at 65% 65%, rgba(168, 85, 247, .22), transparent 62%);
}

/* Very subtle grid so glass panels feel layered (purely decorative) */
.app-shell::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: .16;
  background-image:
    linear-gradient(rgba(120, 160, 255, .07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120, 160, 255, .07) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(circle at 50% 20%, #000 0%, transparent 72%);
  -webkit-mask-image: radial-gradient(circle at 50% 20%, #000 0%, transparent 72%);
}

.app-shell,
.app-main,
.app-topbar,
.app-sidebar,
.as-mnav,
.as-top,
.wa-fab { position: relative; }

/* Keep the shell itself out of a stacking context so the fixed overlay can
   cover the mobile bottom navigation reliably. */
.app-shell { z-index: auto; }
.app-main { z-index: 1; }
.app-topbar { z-index: 800; }
.app-sidebar { z-index: 860; }
.side-overlay { z-index: 855; }

/* ==== animations.css ==== */
/* =============================================================================
   animations.css — lightweight neon motion
   ============================================================================= */

@keyframes neonRise {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: none; }
}
@keyframes neonFade {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes neonPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(0, 217, 255, .40); }
  50%      { box-shadow: 0 0 0 7px rgba(0, 217, 255, 0); }
}
@keyframes neonSpin {
  to { transform: rotate(360deg); }
}
@keyframes neonShine {
  from { transform: translateX(-120%) skewX(-18deg); }
  to   { transform: translateX(320%) skewX(-18deg); }
}
@keyframes neonFloat {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-5px); }
}

/* Page entrance */
.content-wrapper > * {
  animation: neonRise .45s cubic-bezier(.22, .8, .32, 1) both;
}
.content-wrapper > *:nth-child(2) { animation-delay: .04s; }
.content-wrapper > *:nth-child(3) { animation-delay: .08s; }
.content-wrapper > *:nth-child(4) { animation-delay: .12s; }
.content-wrapper > *:nth-child(n+5) { animation-delay: .16s; }

/* Card hover lift */
.card,
.stat-card,
.cat-card,
.asx-tile,
.stat-tile,
.panel {
  transition: transform .28s cubic-bezier(.22, .8, .32, 1),
              border-color .28s ease,
              box-shadow .28s ease,
              background .28s ease;
}

/* Gradient button sheen */
.btn,
.btn-solid,
.btn-ghost {
  position: relative;
  overflow: hidden;
}
.btn::after {
  content: "";
  position: absolute;
  top: -40%;
  left: -30%;
  width: 34%;
  height: 180%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .22), transparent);
  transform: translateX(-160%) skewX(-18deg);
  pointer-events: none;
}
.btn:hover::after { animation: neonShine .75s ease; }

/* Loading spinner used by legacy overlays */
.srv-spinner,
.neon-spinner {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 4px solid rgba(0, 217, 255, .18);
  border-top-color: var(--cyan);
  animation: neonSpin .85s linear infinite;
  box-shadow: 0 0 26px rgba(0, 217, 255, .25);
}

/* Floating badge dot */
.neon-pulse { animation: neonPulse 2.2s infinite; }
.neon-float { animation: neonFloat 4s ease-in-out infinite; }

/* Reveal-on-scroll hooks (footer.php adds .as-reveal) */
.as-reveal { opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .5s cubic-bezier(.22, .8, .32, 1); }
.as-reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ==== layout.css ==== */
/* =============================================================================
   layout.css — app shell, content rhythm, page headers
   ============================================================================= */

.app-shell { min-height: 100vh; }

.app-main {
  margin-left: var(--sidebar-w);
  padding: calc(var(--topbar-h) + 26px) 28px 130px;
  min-width: 0;
  position: relative;
  z-index: 1;
}

.content-wrapper {
  width: 100%;
  max-width: var(--content-max);
  margin: 0 auto;
}
.content-wrapper.pt-0 { padding-top: 0 !important; }

.app-shell.sidebar-hidden .app-topbar { left: 0 !important; }
.app-shell.sidebar-hidden .app-main { margin-left: 0 !important; }

/* ---- Page heading ---- */
.page-head {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 14px;
  margin: 2px 0 22px;
  padding: 20px 22px;
  border-radius: var(--radius-lg);
  background:
    linear-gradient(135deg, rgba(22, 133, 255, .14), rgba(168, 85, 247, .10)),
    rgba(12, 22, 48, .55);
  border: 1px solid var(--border-color);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  box-shadow: var(--shadow-card), var(--glass-highlight);
  position: relative;
  overflow: hidden;
}
/* The legacy shell injects a back button as the first child. The title block
   must take the remaining width so page actions stay on the right. */
.page-head > div:first-of-type { flex: 1 1 auto; min-width: 0; }
.page-head::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(420px 160px at 0% 0%, rgba(0, 217, 255, .16), transparent 70%);
}
.page-head > * { position: relative; z-index: 1; }
.page-head h1 {
  margin: 0;
  font-size: clamp(1.2rem, 2.2vw, 1.6rem);
  font-weight: 800;
  color: var(--text-primary) !important;
}
.page-head .ph-crumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 5px;
  font-size: 12.5px;
  color: var(--text-muted) !important;
}
.page-head .ph-crumb a { color: var(--text-secondary) !important; }
.page-head .ph-crumb a:hover { color: var(--cyan) !important; }
.page-head .ph-crumb i { font-size: 8px; opacity: .65; }

/* Section headings used inside pages */
.asx-sect {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 24px 0 14px;
  font-weight: 800;
  color: var(--text-primary);
}
.asx-sect .sx-ic {
  width: 34px;
  height: 34px;
  border-radius: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: var(--gradient-primary);
  box-shadow: var(--glow-blue);
}

/* Generic spacing helpers kept Bootstrap-compatible */
.row { --bs-gutter-x: 1.5rem; }
.container, .container-fluid { width: 100%; }

/* Empty state */
.asx-empty {
  padding: 38px 20px;
  text-align: center;
  color: var(--text-muted);
  border: 1px dashed var(--border-color);
  border-radius: var(--radius-lg);
  background: rgba(10, 20, 42, .45);
}
.asx-empty i { font-size: 34px; color: rgba(0, 217, 255, .55); display: block; margin-bottom: 10px; }

/* ==== header.css ==== */
/* =============================================================================
   header.css — premium sticky glass topbar
   ============================================================================= */

.app-topbar {
  position: fixed;
  top: 0;
  left: var(--sidebar-w);
  right: 0;
  z-index: 800;
  height: var(--topbar-h);
  padding: 0 22px;
  display: flex;
  align-items: center;
  gap: 14px;
  background:
    linear-gradient(180deg, rgba(7, 13, 29, .96), rgba(5, 10, 25, .90)) !important;
  backdrop-filter: blur(22px) saturate(1.6);
  -webkit-backdrop-filter: blur(22px) saturate(1.6);
  border-bottom: 1px solid var(--border-color) !important;
  box-shadow: 0 14px 44px rgba(0, 0, 0, .38) !important;
}
.app-topbar::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 217, 255, .55), rgba(168, 85, 247, .55), transparent);
  opacity: .75;
}

.tb-left, .tb-right { display: flex; align-items: center; gap: 10px; min-width: 0; }
.tb-left { flex: 1 1 auto; min-width: 0; }
.tb-right { flex: 0 0 auto; gap: 9px; }

/* Burger */
.app-topbar .tb-burger {
  width: 44px;
  height: 44px;
  border-radius: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(22, 133, 255, .12) !important;
  border: 1px solid var(--border-color) !important;
  color: var(--cyan) !important;
  transition: all .22s ease;
  flex-shrink: 0;
}
.app-topbar .tb-burger:hover {
  background: var(--gradient-primary) !important;
  border-color: transparent !important;
  color: #fff !important;
  box-shadow: var(--glow-blue);
  transform: translateY(-2px);
}

/* Brand (mobile / sidebar-hidden pages) */
.app-topbar .tb-brand { display: flex; align-items: center; gap: 11px; min-width: 0; }
.app-topbar .tb-brand img {
  width: 42px;
  height: 42px;
  border-radius: 13px;
  object-fit: cover;
  border: 1px solid var(--border-color);
  box-shadow: 0 0 0 1px rgba(0, 217, 255, .18), 0 8px 22px rgba(0, 0, 0, .45);
  transition: transform .3s ease;
}
.app-topbar .tb-brand:hover img { transform: scale(1.05); }
.app-topbar .tb-brand .btxt { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.app-topbar .tb-brand .btxt b {
  font-size: 16px;
  font-weight: 800;
  color: var(--text-primary) !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.app-topbar .tb-brand .btxt small { color: var(--text-muted) !important; font-weight: 600; font-size: 11.5px; }

/* Search */
.tb-search {
  flex: 1 1 auto;
  max-width: 430px;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 16px;
  border-radius: var(--radius-pill);
  background: rgba(12, 22, 48, .72) !important;
  border: 1px solid var(--border-color) !important;
  transition: border-color .22s, box-shadow .22s, background .22s;
}
.tb-search:focus-within {
  border-color: var(--border-hover) !important;
  background: rgba(16, 30, 61, .92) !important;
  box-shadow: 0 0 0 3px rgba(0, 217, 255, .12), var(--glow-cyan);
}
.tb-search i { color: var(--text-muted) !important; font-size: 13px; flex-shrink: 0; }
.tb-search input {
  flex: 1 1 auto;
  min-width: 0;
  border: 0 !important;
  background: transparent !important;
  color: var(--text-primary) !important;
  -webkit-text-fill-color: var(--text-primary);
  font-size: 13.5px;
  outline: none;
  box-shadow: none !important;
  padding: 0 !important;
  height: auto !important;
}
.tb-search input::placeholder { color: var(--text-muted) !important; }

/* Icon buttons */
.tb-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(12, 22, 48, .72) !important;
  border: 1px solid var(--border-color) !important;
  color: var(--text-secondary) !important;
  cursor: pointer;
  position: relative;
  font-size: 15px;
  transition: all .2s ease;
}
.tb-icon:hover {
  color: var(--cyan) !important;
  border-color: var(--border-hover) !important;
  transform: translateY(-2px);
  box-shadow: var(--glow-cyan);
}
.tb-icon .tb-cnt {
  position: absolute;
  top: -5px;
  right: -5px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 99px;
  background: var(--gradient-danger);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(255, 84, 112, .55);
}

/* Wallet pill */
.balance-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: linear-gradient(135deg, rgba(0, 214, 143, .16), rgba(0, 168, 107, .08)) !important;
  border: 1px solid rgba(0, 214, 143, .45) !important;
  color: #5CF5C0 !important;
  border-radius: var(--radius-pill);
  padding: 8px 16px;
  font-weight: 800;
  font-size: 13.5px;
  white-space: nowrap;
  box-shadow: 0 0 18px rgba(0, 214, 143, .16), inset 0 1px 0 rgba(255, 255, 255, .06);
  transition: transform .2s, box-shadow .2s;
}
.balance-pill:hover { transform: translateY(-2px); box-shadow: 0 0 26px rgba(0, 214, 143, .28); }
.balance-pill i { color: var(--success) !important; }
.balance-pill #balance-display { letter-spacing: .2px; }

/* User chip */
.tb-user {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 11px 4px 4px;
  border-radius: var(--radius-pill);
  background: rgba(12, 22, 48, .72) !important;
  border: 1px solid var(--border-color) !important;
  color: var(--text-primary) !important;
  cursor: pointer;
  transition: all .2s ease;
}
.tb-user:hover { border-color: var(--border-hover) !important; box-shadow: var(--glow-cyan); }
.tb-user .tu-av {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-primary) !important;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  box-shadow: 0 0 0 2px rgba(0, 217, 255, .22);
}
.tb-user .tu-tx { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; text-align: left; }
.tb-user .tu-tx b { font-size: 12.5px; font-weight: 700; color: var(--text-primary) !important; white-space: nowrap; }
.tb-user .tu-tx small { font-size: 10px; color: var(--text-muted) !important; }
.tb-user .tu-caret { font-size: 10px; color: var(--text-muted) !important; margin-left: 2px; }

@media (min-width: 992px) {
  .app-topbar .tb-burger,
  .app-topbar .tb-brand { display: none !important; }
}
@media (max-width: 575.98px) {
  .tb-user .tu-tx { display: none; }
  .app-topbar { padding: 0 12px; }
  .balance-pill { padding: 7px 11px; font-size: 12px; }
}

/* ==== sidebar.css ==== */
/* =============================================================================
   sidebar.css — glass sidebar with neon gradient active state
   ============================================================================= */

.app-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  bottom: auto;
  height: 100vh;
  height: 100dvh;
  max-height: 100dvh;
  width: var(--sidebar-w);
  z-index: 860;
  display: flex;
  flex-direction: column;
  background:
    linear-gradient(180deg, rgba(10, 18, 40, .96) 0%, rgba(7, 13, 29, .98) 55%, rgba(5, 8, 22, .99) 100%) !important;
  backdrop-filter: blur(24px) saturate(1.4);
  -webkit-backdrop-filter: blur(24px) saturate(1.4);
  border-right: 1px solid var(--border-color) !important;
  box-shadow: 18px 0 50px rgba(0, 0, 0, .45);
  transition: transform .32s cubic-bezier(.22, .8, .32, 1);
  overflow: hidden;
}
.app-sidebar::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(340px 240px at 0% 105%, rgba(168, 85, 247, .24), transparent 70%),
    radial-gradient(300px 220px at 100% 0%, rgba(22, 133, 255, .20), transparent 72%);
}
.app-sidebar::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--cyan), var(--primary) 40%, var(--purple) 85%, transparent);
  opacity: .5;
}

/* Brand */
.side-brand {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 17px 16px 15px;
  border-bottom: 1px solid var(--border-color);
  flex-shrink: 0;
  background: rgba(7, 13, 29, .92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.side-brand .sb-logo {
  width: 40px;
  height: 40px;
  border-radius: 13px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-primary) !important;
  color: #fff;
  font-size: 17px;
  box-shadow: 0 8px 24px rgba(22, 133, 255, .45), inset 0 1px 0 rgba(255, 255, 255, .25);
}
.side-brand .sb-logo img { width: 100%; height: 100%; border-radius: 13px; object-fit: cover; }
.side-brand .sb-tx { min-width: 0; }
.side-brand .sb-tx b {
  display: block;
  font-size: 14px;
  font-weight: 800;
  color: var(--text-primary) !important;
  letter-spacing: -.2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.side-brand .sb-tx small {
  display: block;
  font-size: 9.5px;
  font-weight: 600;
  color: var(--text-muted) !important;
  letter-spacing: .6px;
  text-transform: uppercase;
}

/* Scroll area */
.app-sidebar .side-scroll {
  position: relative;
  z-index: 1;
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
  padding: 10px 0 calc(20px + env(safe-area-inset-bottom));
  scrollbar-width: thin;
}
.app-sidebar .side-scroll::-webkit-scrollbar { width: 5px; }
.app-sidebar .side-scroll::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(22, 133, 255, .55), rgba(168, 85, 247, .55));
  border-radius: 99px;
}

/* User card */
.side-pro {
  display: flex;
  align-items: center;
  gap: 11px;
  margin: 10px 12px 8px;
  padding: 11px 12px;
  background: linear-gradient(135deg, rgba(22, 133, 255, .14), rgba(168, 85, 247, .08));
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05);
}
.side-pro .sp-av {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 800;
  color: #fff;
  background: var(--gradient-primary) !important;
  box-shadow: 0 0 0 2px rgba(0, 217, 255, .18), 0 6px 18px rgba(0, 0, 0, .45);
}
.side-pro .sp-tx { min-width: 0; }
.side-pro .sp-tx b {
  display: block;
  color: var(--text-primary) !important;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.side-pro .sp-tx span {
  display: block;
  color: var(--text-muted) !important;
  font-size: 11px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.side-pro .sp-role {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: .4px;
  color: var(--success) !important;
}
.side-pro .sp-role::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 8px var(--success);
}
.side-pro .sp-role.sp-role-blue { color: #7FB6FF !important; }
.side-pro .sp-role.sp-role-blue::before { background: var(--primary); box-shadow: 0 0 8px var(--primary); }
.side-pro .sp-bal { color: var(--success) !important; font-weight: 800; }

/* Section titles */
.side-section-title {
  margin: 0;
  padding: 16px 20px 7px;
  color: var(--text-muted) !important;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  opacity: .9;
}

/* Menu links */
.side-link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 11px;
  margin: 2px 10px;
  padding: 10px 12px;
  border-radius: 11px;
  color: var(--text-secondary) !important;
  font-size: 13.5px;
  font-weight: 600;
  border: 1px solid transparent;
  transition: background .2s, color .2s, transform .2s, border-color .2s, box-shadow .2s;
}
.side-link span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-link > i {
  width: 18px;
  flex-shrink: 0;
  font-size: 14.5px;
  text-align: center;
  color: #7B93B8 !important;
  transition: color .2s;
}
.side-link:hover {
  background: rgba(22, 133, 255, .12) !important;
  border-color: rgba(0, 200, 255, .22);
  color: var(--text-primary) !important;
  transform: translateX(4px);
}
.side-link:hover > i { color: var(--cyan) !important; }

.side-link.active {
  background: linear-gradient(100deg, rgba(0, 198, 255, .95), rgba(22, 119, 255, .95) 45%, rgba(120, 59, 255, .95)) !important;
  color: #fff !important;
  font-weight: 700;
  border-color: rgba(0, 217, 255, .35);
  box-shadow: 0 10px 26px rgba(22, 133, 255, .38), inset 0 1px 0 rgba(255, 255, 255, .18);
}
.side-link.active::before {
  content: "";
  position: absolute;
  left: -10px;
  top: 20%;
  bottom: 20%;
  width: 3px;
  border-radius: 0 4px 4px 0;
  background: var(--cyan);
  box-shadow: 0 0 12px var(--cyan);
}
.side-link.active > i { color: #fff !important; }

/* Sidebar footer */
.side-foot {
  position: relative;
  z-index: 1;
  padding: 10px 12px 14px;
  border-top: 1px solid var(--border-color);
  background: rgba(5, 8, 22, .65);
  backdrop-filter: blur(12px);
  flex-shrink: 0;
}
.side-foot .sf-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 13px;
  background: rgba(12, 22, 48, .8);
  border: 1px solid var(--border-color);
}
.side-foot .sf-av {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-purple);
  color: #fff;
  font-weight: 800;
  font-size: 13px;
  flex-shrink: 0;
}
.side-foot .sf-tx { min-width: 0; flex: 1 1 auto; }
.side-foot .sf-tx b {
  display: block;
  font-size: 12px;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.side-foot .sf-tx small { display: block; font-size: 10px; color: var(--text-muted); }
.side-foot .sf-out {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #FFA8C4 !important;
  background: rgba(255, 84, 112, .10);
  border: 1px solid rgba(255, 84, 112, .22);
  transition: all .2s;
}
.side-foot .sf-out:hover { background: var(--gradient-danger); color: #fff !important; border-color: transparent; }

/* Badges in sidebar */
.side-link .pend-badge,
.admin-badge,
.tb-menu .pend-badge {
  margin-left: auto;
  border-radius: 99px;
  font-size: 10.5px;
  font-weight: 800;
  padding: 3px 9px;
  color: #fff;
  white-space: nowrap;
  background: var(--gradient-danger) !important;
  box-shadow: 0 4px 12px rgba(255, 84, 112, .35);
}
.admin-badge { background: var(--gradient-primary) !important; box-shadow: 0 4px 12px rgba(22, 133, 255, .35); }
.pend-badge.pb-auto {
  background: var(--gradient-warm) !important;
  box-shadow: 0 4px 12px rgba(255, 181, 71, .35);
  font-size: 9px;
  letter-spacing: .3px;
}
.pend-badge.pb-blue { background: var(--gradient-cyan) !important; }

/* Mobile drawer */
.side-overlay {
  position: fixed;
  inset: 0;
  z-index: 850;
  background: rgba(2, 5, 15, .68);
  backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s, visibility .3s;
}
.side-overlay.open { opacity: 1; visibility: visible; }
body.sidebar-open { overflow: hidden; }

@media (max-width: 991.98px) {
  .app-sidebar {
    height: 100vh;
    height: 100dvh;
    max-height: 100dvh;
    transform: translateX(-104%);
    box-shadow: 24px 0 70px rgba(0, 0, 0, .6);
  }
  .app-sidebar.open { transform: none; }
  .app-main { margin-left: 0; }
  .app-sidebar .side-scroll { padding-bottom: calc(26px + env(safe-area-inset-bottom)); }
}

/* ==== dropdown.css ==== */
/* =============================================================================
   dropdown.css — glass user menu + bootstrap dropdowns
   ============================================================================= */

.tb-menu {
  position: fixed;
  top: calc(var(--topbar-h) - 2px);
  right: 16px;
  z-index: 900;
  min-width: 244px;
  padding: 9px;
  background:
    linear-gradient(160deg, rgba(16, 30, 61, .98), rgba(8, 13, 32, .98)) !important;
  border: 1px solid var(--border-color) !important;
  border-radius: var(--radius-md);
  box-shadow: 0 28px 70px rgba(0, 0, 0, .65), var(--glow-blue);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: opacity .2s, transform .2s, visibility .2s;
}
.tb-menu.open { opacity: 1; visibility: visible; transform: none; }
.tb-menu .tm-head {
  padding: 9px 12px 12px;
  margin-bottom: 6px;
  border-bottom: 1px solid var(--border-color);
}
.tb-menu .tm-head b { display: block; font-size: 13.5px; font-weight: 800; color: var(--text-primary); }
.tb-menu .tm-head span { display: block; font-size: 11.5px; color: var(--text-muted); word-break: break-all; }
.tb-menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--text-secondary) !important;
  font-size: 13.5px;
  font-weight: 600;
  transition: all .18s;
}
.tb-menu a:hover {
  background: linear-gradient(90deg, rgba(22, 133, 255, .18), rgba(168, 85, 247, .10)) !important;
  color: var(--text-primary) !important;
  transform: translateX(3px);
}
.tb-menu a i { width: 17px; text-align: center; color: var(--text-muted) !important; }
.tb-menu a:hover i { color: var(--cyan) !important; }
.tb-menu a.tm-danger { color: #FFA8C4 !important; }
.tb-menu a.tm-danger i { color: var(--danger) !important; }

/* Bootstrap dropdowns (admin / legacy pages) */
.dropdown-menu {
  background: linear-gradient(160deg, rgba(16, 30, 61, .98), rgba(8, 13, 32, .98)) !important;
  border: 1px solid var(--border-color) !important;
  border-radius: var(--radius-md) !important;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .6) !important;
  padding: 8px !important;
  backdrop-filter: blur(20px);
}
.dropdown-item {
  color: var(--text-secondary) !important;
  border-radius: 9px;
  font-size: 13.5px;
  font-weight: 600;
  padding: 9px 12px;
}
.dropdown-item:hover,
.dropdown-item:focus {
  background: rgba(22, 133, 255, .16) !important;
  color: var(--text-primary) !important;
}
.dropdown-divider { border-color: var(--border-color) !important; }

/* ==== footer.css ==== */
/* =============================================================================
   footer.css — footer, mobile bottom nav, WhatsApp FAB, back-to-top
   ============================================================================= */

/* In-page footer if a page renders one */
.site-footer,
.footer {
  margin-top: 26px;
  padding: 22px;
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, rgba(12, 22, 48, .82), rgba(5, 8, 22, .9));
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-card);
  color: var(--text-muted);
  font-size: 12.5px;
}
.site-footer a, .footer a { color: var(--cyan); }
.site-footer .f-brand { display: flex; align-items: center; gap: 10px; color: var(--text-primary); font-weight: 800; }
.site-footer .f-links { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 8px; }
.site-footer .f-copy { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--border-color); }

/* ---- Mobile bottom navigation ---- */
.as-mnav {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 820;
  display: none;
  align-items: center;
  justify-content: space-around;
  gap: 4px;
  padding: 8px 10px;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(12, 22, 48, .97), rgba(6, 12, 28, .99));
  border: 1px solid var(--border-color);
  box-shadow: 0 18px 46px rgba(0, 0, 0, .6), var(--glow-blue);
  backdrop-filter: blur(22px) saturate(1.5);
  -webkit-backdrop-filter: blur(22px) saturate(1.5);
}
.as-mnav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  flex: 1 1 0;
  min-width: 0;
  padding: 6px 4px;
  border-radius: 12px;
  color: var(--text-muted) !important;
  font-size: 9.5px;
  font-weight: 700;
  transition: all .2s;
}
.as-mnav a i { font-size: 16px; }
.as-mnav a:hover { color: var(--text-primary) !important; background: rgba(22, 133, 255, .10); }
.as-mnav a.active { color: var(--cyan) !important; }
.as-mnav a.active i { filter: drop-shadow(0 0 8px rgba(0, 217, 255, .65)); }
.as-mnav a.fab {
  flex: 0 0 auto;
  width: 50px;
  height: 50px;
  margin-top: -24px;
  border-radius: 16px;
  background: var(--gradient-primary);
  color: #fff !important;
  box-shadow: 0 12px 30px rgba(22, 133, 255, .48);
  border: 2px solid rgba(5, 10, 25, .9);
}
.as-mnav a.fab i { font-size: 19px; }
.as-mnav a.fab span { display: none; }

@media (max-width: 991.98px) {
  .as-mnav { display: flex; }
  .app-main { padding-bottom: 112px; }
}

/* ---- Floating WhatsApp ---- */
.wa-fab {
  position: fixed;
  right: 18px;
  bottom: 92px;
  z-index: 810;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: #fff !important;
  background: linear-gradient(135deg, #25D366, #128C7E);
  box-shadow: 0 14px 34px rgba(18, 140, 126, .45);
  transition: transform .2s, box-shadow .2s;
}
.wa-fab:hover { transform: translateY(-3px) scale(1.04); box-shadow: 0 18px 42px rgba(37, 211, 102, .55); }
@media (min-width: 992px) { .wa-fab { bottom: 24px; } }

/* ---- Back to top ---- */
.as-top {
  position: fixed;
  right: 18px;
  bottom: 152px;
  z-index: 810;
  width: 42px;
  height: 42px;
  border-radius: 13px;
  border: 1px solid var(--border-color);
  background: rgba(12, 22, 48, .9);
  color: var(--cyan);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all .25s;
  backdrop-filter: blur(14px);
}
.as-top.show { opacity: 1; visibility: visible; transform: none; }
.as-top:hover { background: var(--gradient-primary); color: #fff; border-color: transparent; box-shadow: var(--glow-blue); }
@media (min-width: 992px) { .as-top { bottom: 84px; } }

/* ==== dashboard.css ==== */
/* =============================================================================
   dashboard.css — user dashboard hero, welcome, quick actions
   ============================================================================= */

/* Welcome strip */
.neon-welcome {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 20px 22px;
  margin-bottom: 18px;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(420px 180px at 100% 0%, rgba(168, 85, 247, .18), transparent 65%),
    linear-gradient(125deg, rgba(10, 24, 58, .92), rgba(16, 30, 68, .82));
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-card), var(--glass-highlight);
  backdrop-filter: var(--glass-blur);
  position: relative;
  overflow: hidden;
}
.neon-welcome::before {
  content: "";
  position: absolute;
  left: 0;
  top: 18%;
  bottom: 18%;
  width: 3px;
  border-radius: 0 4px 4px 0;
  background: linear-gradient(180deg, var(--cyan), var(--purple));
  box-shadow: 0 0 14px var(--cyan);
}
.neon-welcome .nw-tx { min-width: 0; }
.neon-welcome .nw-hi { font-size: 12px; font-weight: 700; color: var(--cyan); letter-spacing: .6px; text-transform: uppercase; }
.neon-welcome .nw-name { font-size: clamp(1.2rem, 2.4vw, 1.55rem); font-weight: 800; color: var(--text-primary); margin: 2px 0 4px; }
.neon-welcome .nw-sub { font-size: 12.5px; color: var(--text-muted); }
.neon-welcome .nw-actions { display: flex; flex-wrap: wrap; gap: 9px; }

/* Quick action grid */
.neon-quick {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 11px;
  margin-bottom: 18px;
}
.neon-quick a {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 15px;
  border-radius: var(--radius-md);
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  color: var(--text-secondary) !important;
  font-size: 12.5px;
  font-weight: 700;
  transition: all .24s;
  box-shadow: var(--shadow-card);
  backdrop-filter: var(--glass-blur);
}
.neon-quick a:hover {
  background: var(--card-bg-hover);
  border-color: var(--border-hover);
  color: var(--text-primary) !important;
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, .35), var(--glow-cyan);
}
.neon-quick a i {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: #fff;
  background: var(--gradient-primary);
  box-shadow: var(--glow-blue);
}
.neon-quick a:nth-child(2n) i { background: var(--gradient-cyan); }
.neon-quick a:nth-child(3n) i { background: var(--gradient-purple); }
.neon-quick a:nth-child(4n) i { background: var(--gradient-success); }

/* Dashboard section title row */
.neon-sec-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin: 24px 0 13px;
}
.neon-sec-head h2,
.neon-sec-head h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 9px;
}
.neon-sec-head h2 i,
.neon-sec-head h3 i { color: var(--cyan); }

/* Stat mini-card used in admin dashboards */
.neon-stat {
  padding: 18px;
  border-radius: var(--radius-md);
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-card);
  backdrop-filter: var(--glass-blur);
  transition: all .26s;
}
.neon-stat:hover { transform: translateY(-3px); border-color: var(--border-hover); box-shadow: 0 18px 44px rgba(0, 0, 0, .35), var(--glow-blue); }
.neon-stat .ns-ic {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 17px;
  margin-bottom: 11px;
  background: var(--gradient-primary);
  box-shadow: var(--glow-blue);
}
.neon-stat .ns-val { font-family: 'Poppins', sans-serif; font-size: 24px; font-weight: 800; color: var(--text-primary); line-height: 1.15; }
.neon-stat .ns-lbl { font-size: 12px; color: var(--text-muted); font-weight: 600; margin-top: 2px; }

/* ==== cards.css ==== */
/* =============================================================================
   cards.css — glassmorphism cards, stats, dashboard widgets
   ============================================================================= */

.card,
.panel,
.stat-card,
.stat-tile,
.cat-card,
.cat-kpi,
.asx-tile,
.asx-bal,
.asx-item,
.asx-svc,
.asx-list,
.srv-page,
.srv-form-card,
.tbl-card {
  background: var(--card-bg) !important;
  border: 1px solid var(--border-color) !important;
  border-radius: var(--radius-lg) !important;
  box-shadow: var(--shadow-card), var(--glass-highlight);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  position: relative;
  color: var(--text-primary);
}

.card:hover,
.panel:hover,
.stat-card:hover,
.stat-tile:hover,
.cat-card:hover,
.cat-kpi:hover,
.asx-tile:hover,
.asx-svc:hover {
  background: var(--card-bg-hover) !important;
  border-color: var(--border-hover) !important;
  box-shadow: 0 18px 46px rgba(0, 0, 0, .38), var(--glow-blue);
  transform: translateY(-3px);
}

/* Subtle top light line on every card */
.card::before,
.stat-card::before,
.stat-tile::before,
.cat-card::before,
.asx-tile::before {
  content: "";
  position: absolute;
  top: 0;
  left: 14px;
  right: 14px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 217, 255, .45), rgba(168, 85, 247, .35), transparent);
  opacity: .7;
  pointer-events: none;
}

.card > *,
.stat-card > *,
.stat-tile > *,
.cat-card > *,
.asx-tile > * { position: relative; z-index: 1; }

.card { padding: 20px; }
.card.p-0 { padding: 0 !important; }
.card-header {
  background: rgba(10, 20, 42, .55) !important;
  border-bottom: 1px solid var(--border-color) !important;
  color: var(--text-primary) !important;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0 !important;
  padding: 16px 20px !important;
  font-weight: 700;
}
.card-body { padding: 20px; }
.card-footer {
  background: rgba(10, 20, 42, .45) !important;
  border-top: 1px solid var(--border-color) !important;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg) !important;
}

/* ---- Balance hero ---- */
.asx-bal {
  padding: 24px 22px !important;
  border-radius: var(--radius-xl) !important;
  background:
    radial-gradient(420px 220px at 100% 0%, rgba(0, 217, 255, .20), transparent 62%),
    linear-gradient(125deg, #0B1B45 0%, #12275C 45%, #3B1E72 100%) !important;
  border: 1px solid rgba(0, 217, 255, .35) !important;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(255, 255, 255, .12);
  overflow: hidden;
  margin-bottom: 18px;
}
.asx-bal::after {
  content: "";
  position: absolute;
  width: 260px;
  height: 260px;
  right: -80px;
  top: -110px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 217, 255, .35), transparent 66%);
  filter: blur(10px);
  pointer-events: none;
}
.asx-bal .bl-lbl { color: #DCEBFF !important; font-weight: 700; }
.asx-bal .bl-lbl i {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, .14);
  color: var(--cyan);
}
.asx-bal .bl-amt {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(2rem, 5vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -1px;
  color: #fff !important;
  text-shadow: 0 0 26px rgba(0, 217, 255, .35);
}
.asx-bal .bl-sub { color: rgba(231, 243, 255, .82) !important; }
.asx-bal .bl-act .btn-solid {
  background: #fff !important;
  color: #0B2C6B !important;
  border: none !important;
  box-shadow: 0 10px 26px rgba(3, 20, 60, .35);
}
.asx-bal .bl-act .btn-ghost {
  background: rgba(255, 255, 255, .14) !important;
  border: 1px solid rgba(255, 255, 255, .38) !important;
  color: #fff !important;
}
.asx-bal .bl-eye { color: #DCEBFF; }

/* ---- Stat tiles ---- */
.asx-tiles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}
@media (min-width: 992px) {
  .asx-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
}
.asx-tile {
  padding: 16px 15px !important;
  border-radius: var(--radius-md) !important;
  overflow: hidden;
}
.asx-tile .tl-ic {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 16px;
  margin-bottom: 10px;
  background: var(--gradient-primary);
  box-shadow: var(--glow-blue);
}
.asx-tile .tl-val {
  font-family: 'Poppins', sans-serif;
  font-size: 25px;
  font-weight: 800;
  letter-spacing: -.5px;
  color: var(--text-primary);
  line-height: 1.1;
}
.asx-tile .tl-lbl { font-size: 12px; font-weight: 600; color: var(--text-muted); margin-top: 3px; }

.asx-tile.t-blue   { background: linear-gradient(150deg, rgba(22, 133, 255, .22), rgba(12, 22, 48, .55)) !important; border-color: rgba(22, 133, 255, .42) !important; }
.asx-tile.t-blue   .tl-ic { background: linear-gradient(135deg, #1685FF, #00D9FF); }
.asx-tile.t-amber  { background: linear-gradient(150deg, rgba(255, 181, 71, .18), rgba(12, 22, 48, .55)) !important; border-color: rgba(255, 181, 71, .38) !important; }
.asx-tile.t-amber  .tl-ic { background: var(--gradient-warm); }
.asx-tile.t-green  { background: linear-gradient(150deg, rgba(0, 214, 143, .18), rgba(12, 22, 48, .55)) !important; border-color: rgba(0, 214, 143, .38) !important; }
.asx-tile.t-green  .tl-ic { background: var(--gradient-success); }
.asx-tile.t-pink   { background: linear-gradient(150deg, rgba(255, 84, 112, .18), rgba(12, 22, 48, .55)) !important; border-color: rgba(255, 84, 112, .38) !important; }
.asx-tile.t-pink   .tl-ic { background: var(--gradient-danger); }
.asx-tile.t-purple { background: linear-gradient(150deg, rgba(168, 85, 247, .20), rgba(12, 22, 48, .55)) !important; border-color: rgba(168, 85, 247, .40) !important; }
.asx-tile.t-purple .tl-ic { background: var(--gradient-purple); }
.asx-tile.t-cyan   { background: linear-gradient(150deg, rgba(0, 217, 255, .18), rgba(12, 22, 48, .55)) !important; border-color: rgba(0, 217, 255, .38) !important; }
.asx-tile.t-cyan   .tl-ic { background: var(--gradient-cyan); }

/* ---- Service grid ---- */
.asx-svcs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 13px;
}
.asx-svc {
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 16px !important;
  border-radius: var(--radius-md) !important;
  overflow: hidden;
}
.asx-svc::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(220px 120px at 100% 0%, rgba(0, 217, 255, .10), transparent 70%);
  opacity: 0;
  transition: opacity .3s;
  pointer-events: none;
}
.asx-svc:hover::after { opacity: 1; }
.asx-svc .sv-ic {
  width: 42px;
  height: 42px;
  border-radius: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  color: #fff;
  background: var(--gradient-primary);
  box-shadow: var(--glow-blue);
}
.asx-svc .sv-name { font-weight: 700; font-size: 14px; color: var(--text-primary); }
.asx-svc .sv-sub { display: flex; flex-wrap: wrap; gap: 5px; min-height: 20px; }
.asx-svc .sv-go {
  margin-top: auto;
  font-size: 12px;
  font-weight: 700;
  color: var(--cyan);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.asx-svc:hover .sv-go { color: #7FE9FF; }
.asx-svc .sv-go i { transition: transform .2s; }
.asx-svc:hover .sv-go i { transform: translateX(4px); }

/* ---- Recent list ---- */
.asx-list {
  border-radius: var(--radius-lg) !important;
  overflow: hidden;
  padding: 4px !important;
}
.asx-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 14px !important;
  border-radius: 14px !important;
  background: transparent !important;
  border: 1px solid transparent !important;
  box-shadow: none !important;
  transition: background .2s, border-color .2s;
}
.asx-item:hover { background: rgba(22, 133, 255, .10) !important; border-color: rgba(0, 217, 255, .20) !important; }
.asx-item + .asx-item { border-top: 1px solid rgba(90, 130, 255, .10) !important; }
.asx-item .li-ic {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: rgba(22, 133, 255, .14);
  color: var(--cyan);
}
.asx-item .li-b { min-width: 0; flex: 1 1 auto; }
.asx-item .li-t { display: block; font-size: 13px; font-weight: 700; color: var(--text-primary); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.asx-item .li-s { display: block; font-size: 11.5px; color: var(--text-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---- Legacy stat-card / cat-card ---- */
.stat-card, .stat-tile, .cat-kpi { padding: 18px !important; border-radius: var(--radius-md) !important; }
.stat-card .st-ic,
.stat-tile .st-ic,
.cat-kpi .kpi-ic {
  width: 44px;
  height: 44px;
  border-radius: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: var(--gradient-primary);
  box-shadow: var(--glow-blue);
}
.stat-card .st-value, .stat-tile .st-value { color: var(--text-primary) !important; font-weight: 800; }
.stat-card .st-label, .stat-tile .st-label { color: var(--text-muted) !important; }

.cat-card { padding: 18px !important; border-radius: var(--radius-md) !important; }
.cat-card .cc-ic {
  width: 44px;
  height: 44px;
  border-radius: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(22, 133, 255, .14);
  color: var(--cyan);
}
.cat-card:hover .cc-ic { background: var(--gradient-primary) !important; color: #fff !important; }
.cat-card .cc-go {
  border: 1px solid var(--border-color);
  border-radius: 99px;
  color: var(--text-secondary);
  background: rgba(12, 22, 48, .6);
}
.cat-card:hover .cc-go { background: var(--gradient-primary) !important; color: #fff !important; border-color: transparent; }

/* ---- Alert (Bootstrap) ---- */
.alert {
  border-radius: var(--radius-md) !important;
  border: 1px solid var(--border-color) !important;
  background: rgba(12, 22, 48, .8) !important;
  color: var(--text-secondary) !important;
  backdrop-filter: blur(14px);
}
.alert-success { border-color: rgba(0, 214, 143, .38) !important; background: linear-gradient(135deg, rgba(0, 214, 143, .12), rgba(12, 22, 48, .7)) !important; color: #8CF5D3 !important; }
.alert-danger  { border-color: rgba(255, 84, 112, .38) !important; background: linear-gradient(135deg, rgba(255, 84, 112, .12), rgba(12, 22, 48, .7)) !important; color: #FFB3C2 !important; }
.alert-warning { border-color: rgba(255, 181, 71, .38) !important; background: linear-gradient(135deg, rgba(255, 181, 71, .12), rgba(12, 22, 48, .7)) !important; color: #FFD79A !important; }
.alert-info    { border-color: rgba(32, 191, 255, .38) !important; background: linear-gradient(135deg, rgba(32, 191, 255, .12), rgba(12, 22, 48, .7)) !important; color: #A8E5FF !important; }

/* ==== tables.css ==== */
/* =============================================================================
   tables.css — modern neon tables (all pages) + DataTables + mobile cards
   ============================================================================= */

.table-container,
.table-responsive {
  width: 100%;
  border-radius: var(--radius-md);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--border-color);
  background: rgba(10, 20, 45, .55);
  box-shadow: var(--shadow-card);
}

table,
.table,
table.dataTable {
  width: 100% !important;
  margin: 0 !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
  color: var(--text-primary) !important;
  background: transparent !important;
}

.table thead,
table.dataTable thead,
thead {
  background: linear-gradient(135deg, #102A65 0%, #183D91 52%, #5428A8 100%) !important;
}
.table thead th,
table.dataTable thead th,
thead th,
th {
  padding: 15px 16px !important;
  color: #FFFFFF !important;
  font-weight: 700 !important;
  font-size: 13px !important;
  letter-spacing: .2px;
  white-space: nowrap;
  border: 0 !important;
  border-bottom: 1px solid rgba(0, 217, 255, .25) !important;
  background: transparent !important;
  text-align: left;
  vertical-align: middle;
}
.table thead th:first-child, thead th:first-child { border-radius: 0; }

.table tbody td,
table.dataTable tbody td,
tbody td,
td {
  padding: 14px 16px !important;
  color: #E0E9FF !important;
  font-size: 13.5px;
  border-bottom: 1px solid rgba(100, 130, 200, .12) !important;
  border-top: 0 !important;
  background: transparent !important;
  vertical-align: middle;
}

.table tbody tr,
table.dataTable tbody tr,
tbody tr {
  background: rgba(8, 17, 38, .80) !important;
  transition: background .22s ease, box-shadow .22s ease;
}
.table tbody tr:nth-child(even),
table.dataTable tbody tr:nth-child(even),
tbody tr:nth-child(even) { background: rgba(12, 23, 49, .85) !important; }

.table tbody tr:hover,
table.dataTable tbody tr:hover,
tbody tr:hover {
  background: rgba(25, 65, 125, .38) !important;
  box-shadow: inset 0 0 22px rgba(0, 140, 255, .14);
}
.table tbody tr:last-child td, tbody tr:last-child td { border-bottom: 0 !important; }

/* Kill legacy striped/hover light backgrounds */
.table-striped > tbody > tr:nth-of-type(odd) > *,
.table-striped tbody tr:nth-of-type(odd),
.table-hover > tbody > tr:hover > * { background: transparent !important; color: #E0E9FF !important; }
.table-striped > tbody > tr:nth-of-type(odd) { background: rgba(12, 23, 49, .85) !important; }
.table-hover > tbody > tr:hover { background: rgba(25, 65, 125, .38) !important; }

.table td, .table th { white-space: nowrap; }
.table td.wrap, .table th.wrap { white-space: normal; }

/* Links inside tables */
.table a { color: var(--cyan) !important; }
.table a:hover { color: #7FE9FF !important; }

/* DataTables wrapper */
.dataTables_wrapper {
  color: var(--text-secondary) !important;
  padding: 4px;
}
.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter,
.dataTables_wrapper .dataTables_info,
.dataTables_wrapper .dataTables_processing { color: var(--text-secondary) !important; font-size: 13px; }
.dataTables_wrapper .dataTables_filter input,
.dataTables_wrapper .dataTables_length select {
  background: rgba(8, 20, 38, .92) !important;
  border: 1px solid var(--border-color) !important;
  border-radius: 10px !important;
  color: var(--text-primary) !important;
  padding: 7px 11px !important;
  outline: none;
  margin-left: 6px;
}
.dataTables_wrapper .dataTables_filter input:focus,
.dataTables_wrapper .dataTables_length select:focus {
  border-color: var(--border-hover) !important;
  box-shadow: 0 0 0 3px rgba(0, 217, 255, .12) !important;
}
.dataTables_wrapper .dataTables_length select option { background: #0C1630; color: #F4F7FF; }

/* DataTables pagination */
.dataTables_wrapper .dataTables_paginate { padding-top: 12px; }
.dataTables_wrapper .dataTables_paginate .paginate_button {
  border-radius: 9px !important;
  border: 1px solid transparent !important;
  color: var(--text-secondary) !important;
  background: rgba(12, 22, 48, .7) !important;
  margin: 0 2px;
  padding: 6px 12px !important;
  font-size: 13px;
  transition: all .18s;
}
.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
  background: rgba(22, 133, 255, .18) !important;
  border-color: var(--border-hover) !important;
  color: #fff !important;
}
.dataTables_wrapper .dataTables_paginate .paginate_button.current,
.dataTables_wrapper .dataTables_paginate .paginate_button.current:hover {
  background: var(--gradient-primary) !important;
  border-color: transparent !important;
  color: #fff !important;
  box-shadow: var(--glow-blue);
}
.dataTables_wrapper .dataTables_paginate .paginate_button.disabled,
.dataTables_wrapper .dataTables_paginate .paginate_button.disabled:hover {
  opacity: .4;
  color: var(--text-muted) !important;
  background: transparent !important;
}
.dataTables_wrapper .dt-buttons .dt-button {
  background: rgba(12, 22, 48, .8) !important;
  border: 1px solid var(--border-color) !important;
  color: var(--text-secondary) !important;
  border-radius: 9px !important;
}
.dataTables_wrapper .dt-buttons .dt-button:hover {
  background: var(--gradient-primary) !important;
  color: #fff !important;
  border-color: transparent !important;
}

/* Empty / no-data cell */
.dataTables_empty {
  color: var(--text-muted) !important;
  padding: 30px 16px !important;
  text-align: center;
}

/* Action button groups inside tables */
.dl-btns { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.dl-btns .btn { border-radius: 10px !important; font-weight: 700; }

/* ---- Mobile: convert tables to stacked cards ---- */
@media (max-width: 767.98px) {
  .table-responsive,
  .table-container { border: 0; background: transparent; box-shadow: none; overflow: visible; }

  .tbl-cards table,
  .table.tbl-cards,
  table.responsive-table {
    border: 0 !important;
  }
  .tbl-cards thead,
  .responsive-table thead { display: none !important; }
  .tbl-cards tbody tr,
  .responsive-table tbody tr {
    display: block;
    margin-bottom: 12px;
    border: 1px solid var(--border-color) !important;
    border-radius: var(--radius-md) !important;
    background: var(--card-bg) !important;
    box-shadow: var(--shadow-card);
    overflow: hidden;
  }
  .tbl-cards tbody td,
  .responsive-table tbody td {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    padding: 11px 14px !important;
    border-bottom: 1px solid rgba(100, 130, 200, .10) !important;
    white-space: normal !important;
    text-align: right !important;
  }
  .tbl-cards tbody td:last-child,
  .responsive-table tbody td:last-child { border-bottom: 0 !important; }
  .tbl-cards tbody td::before,
  .responsive-table tbody td::before {
    content: attr(data-label);
    flex: 0 0 42%;
    text-align: left;
    font-weight: 700;
    color: var(--text-muted);
    font-size: 11.5px;
    text-transform: uppercase;
    letter-spacing: .4px;
  }
  .tbl-cards tbody td[data-label=""]::before,
  .tbl-cards tbody td:not([data-label])::before { display: none; }
  .tbl-cards tbody td.dataTables_empty {
    justify-content: center !important;
    text-align: center !important;
  }
  .tbl-cards tbody td.dataTables_empty::before { display: none !important; }
}

/* Horizontal scroll fallback for non-card tables on mobile */
@media (max-width: 767.98px) {
  .table-responsive > .table:not(.tbl-cards),
  .table-responsive > table.dataTable:not(.tbl-cards) { min-width: 640px; }
}

/* ==== buttons.css ==== */
/* =============================================================================
   buttons.css — gradient neon buttons (Bootstrap compatible)
   ============================================================================= */

.btn,
.btn-solid,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border-radius: var(--radius-sm) !important;
  padding: 10px 20px;
  font-family: 'Hind Siliguri', 'Poppins', sans-serif;
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.4;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none !important;
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease, background .2s ease;
  white-space: nowrap;
  vertical-align: middle;
}

.btn:hover, .btn-solid:hover, .btn-ghost:hover { transform: translateY(-2px); }
.btn:active, .btn-solid:active, .btn-ghost:active { transform: translateY(0) scale(.98); }

.btn-primary {
  background: var(--gradient-primary) !important;
  border-color: transparent !important;
  color: #fff !important;
  box-shadow: 0 8px 24px rgba(22, 133, 255, .35);
}
.btn-primary:hover { box-shadow: 0 12px 32px rgba(0, 217, 255, .38); filter: brightness(1.06); }

.btn-secondary,
.btn-light,
.btn-dark {
  background: rgba(18, 32, 65, .9) !important;
  border-color: var(--border-color) !important;
  color: var(--text-primary) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05);
}
.btn-secondary:hover,
.btn-light:hover,
.btn-dark:hover {
  border-color: var(--border-hover) !important;
  background: rgba(25, 45, 85, .95) !important;
  box-shadow: var(--glow-cyan);
}

.btn-success {
  background: var(--gradient-success) !important;
  border-color: transparent !important;
  color: #fff !important;
  box-shadow: 0 8px 24px rgba(0, 214, 143, .30);
}
.btn-success:hover { box-shadow: 0 12px 32px rgba(0, 214, 143, .42); filter: brightness(1.05); }

.btn-danger {
  background: var(--gradient-danger) !important;
  border-color: transparent !important;
  color: #fff !important;
  box-shadow: 0 8px 24px rgba(255, 84, 112, .30);
}
.btn-danger:hover { box-shadow: 0 12px 32px rgba(255, 84, 112, .42); filter: brightness(1.05); }

.btn-warning {
  background: var(--gradient-warm) !important;
  border-color: transparent !important;
  color: #201200 !important;
  box-shadow: 0 8px 24px rgba(255, 181, 71, .28);
}
.btn-warning:hover { filter: brightness(1.05); box-shadow: 0 12px 32px rgba(255, 181, 71, .40); }

.btn-info {
  background: var(--gradient-cyan) !important;
  border-color: transparent !important;
  color: #03121f !important;
  box-shadow: 0 8px 24px rgba(0, 217, 255, .28);
}
.btn-info:hover { filter: brightness(1.05); }

.btn-outline-primary {
  background: rgba(22, 133, 255, .10) !important;
  border-color: rgba(22, 133, 255, .55) !important;
  color: #8FC4FF !important;
}
.btn-outline-primary:hover { background: var(--gradient-primary) !important; color: #fff !important; border-color: transparent !important; }

.btn-outline-light {
  background: transparent !important;
  border-color: rgba(255, 255, 255, .35) !important;
  color: #fff !important;
}
.btn-outline-light:hover { background: rgba(255, 255, 255, .14) !important; }

.btn-outline-danger {
  background: rgba(255, 84, 112, .08) !important;
  border-color: rgba(255, 84, 112, .50) !important;
  color: #FF9BB0 !important;
}
.btn-outline-danger:hover { background: var(--gradient-danger) !important; color: #fff !important; border-color: transparent !important; }

.btn-outline-secondary {
  background: rgba(18, 32, 65, .55) !important;
  border-color: var(--border-color) !important;
  color: var(--text-secondary) !important;
}
.btn-outline-secondary:hover { border-color: var(--border-hover) !important; color: var(--text-primary) !important; }

/* Sizes */
.btn-sm { padding: 6px 13px !important; font-size: 12px !important; border-radius: 9px !important; }
.btn-lg { padding: 13px 28px !important; font-size: 15px !important; border-radius: 13px !important; }
.btn-xs { padding: 4px 9px !important; font-size: 11px !important; border-radius: 8px !important; }

.btn-block, .btn.w-100 { width: 100%; }

.btn:disabled, .btn.disabled, fieldset:disabled .btn {
  opacity: .45 !important;
  cursor: not-allowed !important;
  filter: grayscale(.35);
  box-shadow: none !important;
  transform: none !important;
}

/* Solid / ghost aliases used by dashboard hero */
.btn-solid { background: #fff !important; color: #0B2C6B !important; border: none !important; }
.btn-ghost { background: rgba(255, 255, 255, .14) !important; color: #fff !important; border: 1px solid rgba(255, 255, 255, .38) !important; }

/* Icon-only */
.btn-icon {
  width: 38px;
  height: 38px;
  padding: 0;
  border-radius: 50%;
}

/* Ripple-ish focus */
.btn:focus-visible { outline: 2px solid rgba(0, 217, 255, .7); outline-offset: 2px; }

/* ==== forms.css ==== */
/* =============================================================================
   forms.css — dark glass inputs, selects, checkboxes, textareas
   -----------------------------------------------------------------------------
   CRITICAL FIX: the NID / Date of Birth inputs on serverCopy*.php used a white
   background from the legacy skin while the text colour was light, making the
   typed value invisible. Every field below is forced to a dark surface with a
   bright foreground (plus autofill / number-input / color-scheme overrides).
   ============================================================================= */

.form-group { margin-bottom: 16px; }
.form-label,
.form-group > label,
label {
  color: var(--text-secondary) !important;
  font-weight: 600;
  font-size: 13px;
  margin-bottom: 6px;
}

.form-control,
.form-select,
.input-group-text,
select,
textarea,
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="tel"],
input[type="date"],
input[type="datetime-local"],
input[type="search"],
input[type="url"],
input[type="file"] {
  background: rgba(8, 20, 38, .90) !important;
  background-color: rgba(8, 20, 38, .90) !important;
  border: 1.5px solid var(--border-color) !important;
  border-radius: var(--radius-sm) !important;
  color: var(--text-primary) !important;
  -webkit-text-fill-color: var(--text-primary) !important;
  caret-color: var(--cyan) !important;
  font-family: 'Hind Siliguri', 'Poppins', sans-serif;
  font-size: 14.5px;
  padding: 11px 14px;
  outline: none;
  box-shadow: none;
  transition: border-color .2s, box-shadow .2s, background .2s;
  color-scheme: dark;
}

.form-control:hover,
.form-select:hover,
select:hover,
textarea:hover,
input:hover:not([type="checkbox"]):not([type="radio"]):not([type="file"]) {
  border-color: rgba(0, 200, 255, .42) !important;
}

.form-control:focus,
.form-select:focus,
select:focus,
textarea:focus,
input:focus:not([type="checkbox"]):not([type="radio"]):not([type="file"]) {
  background: #0A1B35 !important;
  border-color: var(--border-hover) !important;
  box-shadow: 0 0 0 4px rgba(0, 217, 255, .14), var(--glow-cyan) !important;
  color: var(--text-primary) !important;
  -webkit-text-fill-color: var(--text-primary) !important;
}

.form-control::placeholder,
input::placeholder,
textarea::placeholder {
  color: #5F7294 !important;
  -webkit-text-fill-color: #5F7294 !important;
  opacity: 1;
}

textarea.form-control { resize: vertical; min-height: 96px; }

/* Selects: custom neon chevron, dark closed box, readable option list */
select,
.form-select,
.srv-wrap select,
.ci-wrap select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%2300D9FF' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 13px center !important;
  background-size: 15px 15px !important;
  padding-right: 40px !important;
  color-scheme: dark;
}
select option,
.form-select option,
.srv-wrap select option,
.ci-wrap select option {
  background-color: #0C1630 !important;
  color: #F4F7FF !important;
}
select option:checked,
.form-select option:checked {
  background-color: #1B3A7A !important;
  color: #fff !important;
}

/* ================= NID / DOB explicit contrast fix ================= */
#nidNumber,
#DateOfBirth,
input[name="nid"],
input[name="dob"],
.srv-wrap input#nidNumber,
.srv-wrap input#DateOfBirth {
  background: #0A1B35 !important;
  background-color: #0A1B35 !important;
  color: #F4F7FF !important;
  -webkit-text-fill-color: #F4F7FF !important;
  font-weight: 700 !important;
  letter-spacing: .4px;
  border: 1.5px solid rgba(0, 217, 255, .45) !important;
}
#nidNumber:focus,
#DateOfBirth:focus,
input[name="nid"]:focus,
input[name="dob"]:focus {
  background: #0C2142 !important;
  border-color: #00D9FF !important;
  box-shadow: 0 0 0 4px rgba(0, 217, 255, .18), 0 0 24px rgba(0, 217, 255, .20) !important;
  color: #FFFFFF !important;
  -webkit-text-fill-color: #FFFFFF !important;
}

/* Chrome / Edge autofill — keep dark surface and light text */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active,
textarea:-webkit-autofill,
select:-webkit-autofill {
  -webkit-text-fill-color: var(--text-primary) !important;
  -webkit-box-shadow: 0 0 0 1000px #0A1B35 inset !important;
  box-shadow: 0 0 0 1000px #0A1B35 inset !important;
  caret-color: var(--cyan) !important;
  transition: background-color 9999s ease-in-out 0s;
}

/* Firefox number spinner + date picker icons */
input[type="number"] { -moz-appearance: textfield; }
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
input[type="date"]::-webkit-calendar-picker-indicator,
input[type="datetime-local"]::-webkit-calendar-picker-indicator {
  filter: invert(1) sepia(1) saturate(5) hue-rotate(155deg);
  cursor: pointer;
  opacity: .8;
}

/* ---- Wrapped icon inputs (.srv-wrap / .ci-wrap) ---- */
.srv-wrap,
.ci-wrap { position: relative; }
.srv-wrap > i,
.ci-wrap > i {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--cyan) !important;
  font-size: 15px;
  z-index: 2;
  pointer-events: none;
}
.srv-wrap input,
.srv-wrap select,
.ci-wrap input,
.ci-wrap select,
.ci-wrap .form-control,
.ci-wrap .form-select {
  width: 100%;
  padding-left: 46px !important;
  min-height: 46px;
}
.srv-field > label {
  color: var(--text-primary) !important;
  font-weight: 700 !important;
  font-size: 13px !important;
  letter-spacing: .2px;
}
.srv-field { margin-bottom: 16px; }

/* Server-copy form: centre the single-column search card instead of leaving
   a large empty gutter on desktop. */
.srv-form-card {
  width: 100% !important;
  max-width: 760px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* File inputs */
input[type="file"] {
  padding: 9px 12px !important;
  color: var(--text-secondary) !important;
}
input[type="file"]::file-selector-button {
  background: var(--gradient-primary);
  border: 0;
  color: #fff;
  font-weight: 700;
  border-radius: 8px;
  padding: 7px 14px;
  margin-right: 12px;
  cursor: pointer;
}
.srv-wrap-file input[type="file"] {
  background: rgba(8, 20, 38, .7) !important;
  border: 1.5px dashed var(--border-color) !important;
  color: var(--text-secondary) !important;
}
.srv-wrap-file > i { color: var(--cyan) !important; }

/* Input groups */
.input-group { display: flex; align-items: stretch; width: 100%; }
.input-group .form-control { flex: 1 1 auto; border-radius: var(--radius-sm) 0 0 var(--radius-sm) !important; }
.input-group .input-group-append { display: flex; }
.input-group .input-group-append .btn,
.input-group .input-group-text { border-radius: 0 var(--radius-sm) var(--radius-sm) 0 !important; }
.input-group-text {
  background: rgba(16, 30, 61, .9) !important;
  border-color: var(--border-color) !important;
  color: var(--text-secondary) !important;
}

/* Checkboxes / radios — neon accent */
input[type="checkbox"],
input[type="radio"] {
  accent-color: var(--cyan);
  width: 17px;
  height: 17px;
  cursor: pointer;
  vertical-align: middle;
}
.form-check-input {
  background-color: rgba(8, 20, 38, .9) !important;
  border: 1.5px solid var(--border-color) !important;
}
.form-check-input:checked {
  background-color: var(--primary) !important;
  border-color: var(--cyan) !important;
  box-shadow: 0 0 12px rgba(0, 217, 255, .35);
}
.form-check-input:focus { box-shadow: 0 0 0 3px rgba(0, 217, 255, .18) !important; border-color: var(--cyan) !important; }
.form-check-label { color: var(--text-secondary) !important; }

/* Validation */
.is-invalid,
.form-control.is-invalid {
  border-color: rgba(255, 84, 112, .75) !important;
  box-shadow: 0 0 0 3px rgba(255, 84, 112, .12) !important;
}
.invalid-feedback, .error, .text-error { color: var(--danger) !important; font-size: 12px; }
.is-valid, .form-control.is-valid { border-color: rgba(0, 214, 143, .7) !important; }

/* Legacy field wrappers */
.form-outline .form-control:focus ~ .form-notch .form-notch-leading,
.form-outline .form-control:focus ~ .form-notch .form-notch-middle,
.form-outline .form-control:focus ~ .form-notch .form-notch-trailing { border-color: var(--cyan) !important; }

/* ==== badges.css ==== */
/* =============================================================================
   badges.css — neon status badges
   ============================================================================= */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 11px;
  border-radius: 99px;
  font-size: 11.5px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: .2px;
  border: 1px solid transparent;
  white-space: nowrap;
}

.badge-success,
.badge.bg-success,
.badge.text-bg-success {
  background: rgba(0, 214, 143, .14) !important;
  color: #5CF5C0 !important;
  border-color: rgba(0, 214, 143, .40) !important;
  box-shadow: 0 0 14px rgba(0, 214, 143, .12);
}
.badge-danger,
.badge.bg-danger,
.badge.text-bg-danger {
  background: rgba(255, 84, 112, .14) !important;
  color: #FF9BB0 !important;
  border-color: rgba(255, 84, 112, .40) !important;
  box-shadow: 0 0 14px rgba(255, 84, 112, .12);
}
.badge-warning,
.badge.bg-warning,
.badge.text-bg-warning {
  background: rgba(255, 181, 71, .14) !important;
  color: #FFD79A !important;
  border-color: rgba(255, 181, 71, .40) !important;
  box-shadow: 0 0 14px rgba(255, 181, 71, .12);
}
.badge-info,
.badge.bg-info,
.badge.text-bg-info {
  background: rgba(32, 191, 255, .14) !important;
  color: #A8E5FF !important;
  border-color: rgba(32, 191, 255, .40) !important;
  box-shadow: 0 0 14px rgba(32, 191, 255, .12);
}
.badge-primary,
.badge.bg-primary,
.badge.text-bg-primary {
  background: rgba(22, 133, 255, .16) !important;
  color: #8FC4FF !important;
  border-color: rgba(22, 133, 255, .42) !important;
  box-shadow: 0 0 14px rgba(22, 133, 255, .14);
}
.badge-secondary,
.badge.bg-secondary,
.badge.text-bg-secondary {
  background: rgba(113, 128, 159, .16) !important;
  color: #B8C6E0 !important;
  border-color: rgba(113, 128, 159, .34) !important;
}
.badge-light,
.badge.text-bg-light,
.badge.bg-light {
  background: rgba(255, 255, 255, .12) !important;
  color: #fff !important;
  border-color: rgba(255, 255, 255, .22) !important;
}
.badge-dark,
.badge.text-bg-dark,
.badge.bg-dark {
  background: rgba(5, 8, 22, .8) !important;
  color: var(--text-secondary) !important;
  border-color: var(--border-color) !important;
}
.text-bg-light { background: rgba(255, 255, 255, .12) !important; color: #fff !important; }
.text-bg-dark { background: rgba(5, 8, 22, .8) !important; color: var(--text-primary) !important; }
.bg-white { background: var(--card-bg) !important; color: var(--text-primary) !important; }
.bg-light { background: rgba(255, 255, 255, .06) !important; color: var(--text-primary) !important; }

/* Status dots */
.badge-dot::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 8px currentColor;
}

/* Legacy pend badges already handled in sidebar.css */
.badge.pulse { animation: neonPulse 2s infinite; }

/* Tiny chips */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 99px;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-secondary);
  background: rgba(12, 22, 48, .8);
  border: 1px solid var(--border-color);
}

/* ==== pagination.css ==== */
/* =============================================================================
   pagination.css — page + DataTables pagination, record counters
   ============================================================================= */

.pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0;
  margin: 16px 0 0;
  list-style: none;
}
.page-item .page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 12px;
  border-radius: 10px !important;
  background: rgba(12, 22, 48, .78) !important;
  border: 1px solid var(--border-color) !important;
  color: var(--text-secondary) !important;
  font-size: 13px;
  font-weight: 600;
  transition: all .18s;
}
.page-item .page-link:hover {
  background: rgba(22, 133, 255, .18) !important;
  border-color: var(--border-hover) !important;
  color: #fff !important;
  box-shadow: var(--glow-cyan);
}
.page-item.active .page-link {
  background: var(--gradient-primary) !important;
  border-color: transparent !important;
  color: #fff !important;
  box-shadow: 0 8px 22px rgba(22, 133, 255, .35);
}
.page-item.disabled .page-link {
  opacity: .4;
  background: transparent !important;
  color: var(--text-muted) !important;
  box-shadow: none;
}

/* Record count / info line */
.records-info,
.pagination-info {
  color: var(--text-muted);
  font-size: 12.5px;
}

/* ==== charts.css ==== */
/* =============================================================================
   charts.css — Chart.js canvases, chart cards, legends
   ============================================================================= */

.chart-card,
.chart-box {
  position: relative;
  padding: 18px;
  border-radius: var(--radius-lg);
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-card);
  backdrop-filter: var(--glass-blur);
  overflow: hidden;
}
.chart-card canvas,
.chart-box canvas {
  max-width: 100% !important;
  height: auto !important;
  filter: drop-shadow(0 6px 18px rgba(0, 0, 0, .25));
}
.chart-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
  font-size: 14px;
  font-weight: 800;
  color: var(--text-primary);
}
.chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 10px;
  font-size: 12px;
  color: var(--text-secondary);
}
.chart-legend .lg-item { display: inline-flex; align-items: center; gap: 6px; }
.chart-legend .lg-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 8px currentColor;
}

/* Usage bars (CSS-only fallback) */
.usage-bar {
  height: 8px;
  border-radius: 99px;
  background: rgba(90, 130, 255, .14);
  overflow: hidden;
}
.usage-bar > span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--gradient-primary);
  box-shadow: 0 0 14px rgba(0, 217, 255, .45);
}

/* ==== modals.css ==== */
/* =============================================================================
   modals.css — glass modals + SweetAlert2 neon skin + toasts
   ============================================================================= */

/* Bootstrap modal */
.modal-content {
  background: linear-gradient(160deg, rgba(16, 30, 61, .98), rgba(8, 13, 32, .99)) !important;
  border: 1px solid var(--border-color) !important;
  border-radius: var(--radius-lg) !important;
  box-shadow: 0 30px 90px rgba(0, 0, 0, .7), var(--glow-blue) !important;
  color: var(--text-primary) !important;
  backdrop-filter: blur(24px);
  overflow: hidden;
}
.modal-header {
  border-bottom: 1px solid var(--border-color) !important;
  padding: 18px 22px !important;
  background: rgba(22, 133, 255, .08) !important;
}
.modal-title { color: var(--text-primary) !important; font-weight: 800; }
.modal-body { padding: 22px !important; color: var(--text-secondary) !important; }
.modal-footer {
  border-top: 1px solid var(--border-color) !important;
  padding: 16px 22px !important;
  background: rgba(5, 8, 22, .35) !important;
}
.modal-backdrop.show { opacity: .72 !important; background: #02050f; }
.btn-close {
  filter: invert(1) grayscale(1) brightness(2);
  opacity: .7;
}
.btn-close:hover { opacity: 1; }

/* SweetAlert2 */
.swal2-popup {
  background: linear-gradient(160deg, rgba(16, 30, 61, .99), rgba(8, 13, 32, .99)) !important;
  border: 1px solid var(--border-color) !important;
  border-radius: var(--radius-lg) !important;
  box-shadow: 0 30px 90px rgba(0, 0, 0, .75), var(--glow-blue) !important;
  color: var(--text-primary) !important;
  font-family: 'Hind Siliguri', 'Poppins', sans-serif !important;
  padding: 26px 22px !important;
}
.swal2-title { color: var(--text-primary) !important; font-weight: 800 !important; font-size: 21px !important; }
.swal2-html-container { color: var(--text-secondary) !important; font-size: 14px !important; line-height: 1.75 !important; }
.swal2-icon.swal2-success { border-color: var(--success) !important; color: var(--success) !important; }
.swal2-icon.swal2-error { border-color: var(--danger) !important; color: var(--danger) !important; }
.swal2-icon.swal2-warning { border-color: var(--warning) !important; color: var(--warning) !important; }
.swal2-icon.swal2-info { border-color: var(--info) !important; color: var(--info) !important; }
.swal2-icon.swal2-question { border-color: var(--cyan) !important; color: var(--cyan) !important; }
.swal2-success-ring { border-color: rgba(0, 214, 143, .35) !important; }
.swal2-success-line-tip, .swal2-success-line-long { background-color: var(--success) !important; }
.swal2-styled.swal2-confirm {
  background: var(--gradient-primary) !important;
  border: 0 !important;
  border-radius: 11px !important;
  font-weight: 700 !important;
  padding: 11px 26px !important;
  box-shadow: 0 10px 28px rgba(22, 133, 255, .35) !important;
}
.swal2-styled.swal2-cancel {
  background: rgba(18, 32, 65, .9) !important;
  border: 1px solid var(--border-color) !important;
  border-radius: 11px !important;
  color: var(--text-primary) !important;
  font-weight: 700 !important;
}
.swal2-styled:focus { box-shadow: 0 0 0 3px rgba(0, 217, 255, .25) !important; }
.swal2-input,
.swal2-select,
.swal2-textarea {
  background: rgba(8, 20, 38, .92) !important;
  border: 1.5px solid var(--border-color) !important;
  border-radius: 10px !important;
  color: var(--text-primary) !important;
  -webkit-text-fill-color: var(--text-primary) !important;
  font-family: inherit !important;
}
.swal2-input:focus,
.swal2-select:focus,
.swal2-textarea:focus {
  border-color: var(--cyan) !important;
  box-shadow: 0 0 0 4px rgba(0, 217, 255, .14) !important;
}
.swal2-validation-message {
  background: rgba(255, 84, 112, .12) !important;
  color: #FF9BB0 !important;
  border-radius: 9px;
}
.swal2-timer-progress-bar { background: var(--gradient-primary) !important; }
.swal2-toast {
  background: linear-gradient(160deg, rgba(16, 30, 61, .99), rgba(8, 13, 32, .99)) !important;
  border: 1px solid var(--border-color) !important;
  box-shadow: 0 20px 50px rgba(0, 0, 0, .6) !important;
  border-radius: var(--radius-md) !important;
}
.swal2-toast .swal2-title { font-size: 14px !important; }

/* Custom toast stack (assets/js/toast.js) */
.neon-toast-wrap {
  position: fixed;
  top: 86px;
  right: 18px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: min(360px, calc(100vw - 32px));
  pointer-events: none;
}
.neon-toast {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 13px 15px;
  border-radius: 14px;
  background: linear-gradient(160deg, rgba(16, 30, 61, .98), rgba(8, 13, 32, .99));
  border: 1px solid var(--border-color);
  box-shadow: 0 18px 46px rgba(0, 0, 0, .55), var(--glow-blue);
  color: var(--text-primary);
  font-size: 13px;
  line-height: 1.6;
  pointer-events: auto;
  animation: neonRise .3s ease both;
}
.neon-toast .nt-ic {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #fff;
  background: var(--gradient-primary);
}
.neon-toast.success { border-color: rgba(0, 214, 143, .45); }
.neon-toast.success .nt-ic { background: var(--gradient-success); }
.neon-toast.error { border-color: rgba(255, 84, 112, .45); }
.neon-toast.error .nt-ic { background: var(--gradient-danger); }
.neon-toast.warning { border-color: rgba(255, 181, 71, .45); }
.neon-toast.warning .nt-ic { background: var(--gradient-warm); }
.neon-toast.info .nt-ic { background: var(--gradient-cyan); }
.neon-toast .nt-body { flex: 1 1 auto; min-width: 0; }
.neon-toast .nt-title { font-weight: 800; font-size: 13px; display: block; }
.neon-toast .nt-msg { color: var(--text-secondary); font-size: 12.5px; display: block; }
.neon-toast .nt-x {
  background: transparent;
  border: 0;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0 2px;
  font-size: 14px;
}
.neon-toast .nt-x:hover { color: #fff; }

/* ==== recharge.css ==== */
/* =============================================================================
   recharge.css — premium payment interface (amounts, tabs, gateways)
   ============================================================================= */

.pay-panel {
  background: var(--card-bg) !important;
  border: 1px solid var(--border-color) !important;
  border-radius: var(--radius-lg) !important;
  box-shadow: var(--shadow-card);
  backdrop-filter: var(--glass-blur);
  padding: 20px !important;
}

/* Method tabs */
.pay-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 6px;
  border-radius: var(--radius-md);
  background: rgba(8, 17, 38, .75);
  border: 1px solid var(--border-color);
  margin-bottom: 18px;
}
.pay-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex: 1 1 auto;
  min-width: 110px;
  padding: 10px 16px;
  border-radius: 11px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-secondary) !important;
  background: transparent;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all .2s;
}
.pay-tab:hover { background: rgba(22, 133, 255, .12); color: #fff !important; }
.pay-tab.is-active {
  background: var(--gradient-primary) !important;
  color: #fff !important;
  border-color: rgba(0, 217, 255, .35);
  box-shadow: 0 10px 26px rgba(22, 133, 255, .35);
}
.pay-tab.is-off { opacity: .45; filter: grayscale(.6); }
.pay-tab .gw-badge { margin-left: 4px; }

/* Amount picker */
.amt-picker { margin-bottom: 18px; }
.amt-chips {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
  gap: 10px;
}
.amt-chip,
.amt-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 14px 10px;
  border-radius: 14px;
  background: rgba(8, 20, 38, .82);
  border: 1.5px solid var(--border-color);
  color: var(--text-secondary);
  font-weight: 800;
  font-size: 14px;
  cursor: pointer;
  transition: all .2s;
}
.amt-chip:hover,
.amt-item:hover {
  border-color: var(--border-hover);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--glow-cyan);
}
.amt-chip.active,
.amt-item.active,
.amt-chip.selected {
  background: linear-gradient(135deg, rgba(0, 198, 255, .20), rgba(120, 59, 255, .20)) !important;
  border-color: var(--cyan) !important;
  color: #fff !important;
  box-shadow: 0 0 0 1px rgba(0, 217, 255, .35), var(--glow-cyan);
}
.amt-chip.active::after { content: "✓"; color: var(--cyan); font-weight: 900; }

.amt-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 12px;
  font-size: 12.5px;
  color: var(--text-muted);
}

/* Gateway cards */
.pay-gwbox {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}
.pay-gw {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px;
  border-radius: 14px;
  background: rgba(8, 20, 38, .8);
  border: 1.5px solid var(--border-color);
  cursor: pointer;
  transition: all .2s;
}
.pay-gw:hover { border-color: var(--border-hover); transform: translateY(-2px); }
.pay-gw.active {
  border-color: var(--cyan);
  background: linear-gradient(135deg, rgba(0, 217, 255, .12), rgba(22, 133, 255, .10));
  box-shadow: var(--glow-cyan);
}
.pay-gw .pa-ic {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
  color: #fff;
  background: var(--gradient-primary);
  flex-shrink: 0;
}
.pay-gw .pa-tx b { display: block; font-size: 13px; color: var(--text-primary); }
.pay-gw .pa-tx small { display: block; font-size: 10.5px; color: var(--text-muted); }

.pay-desc {
  color: var(--text-secondary) !important;
  background: rgba(22, 133, 255, .07) !important;
  border: 1px solid rgba(22, 133, 255, .24) !important;
  border-left: 3px solid var(--cyan) !important;
  border-radius: 12px !important;
  padding: 12px 15px !important;
  margin-bottom: 18px;
  font-size: 13px;
  line-height: 1.8;
}
.pay-desc i { color: var(--cyan) !important; }
.pay-hint {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(22, 133, 255, .08);
  border: 1px solid rgba(22, 133, 255, .25);
  color: var(--text-secondary);
  font-size: 12.5px;
  line-height: 1.7;
}
.pay-hint i { color: var(--cyan); margin-top: 3px; }

.pay-note {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 12.5px;
  line-height: 1.75;
  border: 1px solid var(--border-color);
  background: rgba(12, 22, 48, .7);
  color: var(--text-secondary);
}
.pay-note-amber { border-color: rgba(255, 181, 71, .35); background: rgba(255, 181, 71, .08); color: #FFD79A; }
.pay-note-pink { border-color: rgba(255, 84, 112, .35); background: rgba(255, 84, 112, .08); color: #FFB3C2; }
.pay-note i { margin-top: 3px; }

.pay-sub {
  width: 100%;
  padding: 14px 22px !important;
  font-size: 15px !important;
  border-radius: 13px !important;
  letter-spacing: .2px;
}

.pay-hist { margin-top: 18px; }
.pay-announce {
  padding: 12px 16px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(0, 217, 255, .10), rgba(168, 85, 247, .10));
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-size: 12.5px;
}

/* Transaction status colours */
.pay-status-success { color: var(--success) !important; }
.pay-status-pending { color: var(--warning) !important; }
.pay-status-failed  { color: var(--danger) !important; }

/* Activation banner */
.asx-bal.bal-act {
  background:
    radial-gradient(420px 220px at 100% 0%, rgba(0, 214, 143, .22), transparent 62%),
    linear-gradient(125deg, #06281F 0%, #0B3B2E 45%, #0B1B45 100%) !important;
  border-color: rgba(0, 214, 143, .4) !important;
}

@media (max-width: 575.98px) {
  .amt-chips { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pay-gwbox { grid-template-columns: 1fr; }
  .pay-tab { min-width: 0; flex: 1 1 40%; }
}

/* ==== api-catalog.css ==== */
/* =============================================================================
   api-catalog.css — API / service catalog cards + code blocks
   ============================================================================= */

.cat-grid,
.api-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
}

.api-card {
  position: relative;
  padding: 18px;
  border-radius: var(--radius-lg);
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-card);
  backdrop-filter: var(--glass-blur);
  transition: all .28s cubic-bezier(.22, .8, .32, 1);
  overflow: hidden;
}
.api-card:hover {
  background: var(--card-bg-hover);
  border-color: var(--border-hover);
  transform: translateY(-3px);
  box-shadow: 0 18px 46px rgba(0, 0, 0, .38), var(--glow-blue);
}
.api-card .api-head { display: flex; align-items: center; gap: 11px; margin-bottom: 12px; }
.api-card .api-ic {
  width: 44px;
  height: 44px;
  border-radius: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 18px;
  background: var(--gradient-primary);
  box-shadow: var(--glow-blue);
  flex-shrink: 0;
}
.api-card .api-name { font-size: 14.5px; font-weight: 800; color: var(--text-primary); }
.api-card .api-ver { font-size: 11px; color: var(--text-muted); }
.api-card .api-desc { font-size: 12.5px; color: var(--text-secondary); line-height: 1.75; margin-bottom: 12px; }
.api-card .api-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.api-card .api-price { font-weight: 800; color: var(--cyan); font-size: 15px; }
.api-card .api-actions { display: flex; gap: 8px; flex-wrap: wrap; }

.api-method {
  display: inline-flex;
  align-items: center;
  padding: 2px 9px;
  border-radius: 7px;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: .5px;
  color: #8CF5D3;
  background: rgba(0, 214, 143, .12);
  border: 1px solid rgba(0, 214, 143, .32);
}
.api-method.post { color: #FFD79A; background: rgba(255, 181, 71, .12); border-color: rgba(255, 181, 71, .32); }

.endpoint {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border-radius: 10px;
  background: rgba(5, 10, 24, .9);
  border: 1px solid var(--border-color);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11.5px;
  color: #9BE9FF;
  overflow-x: auto;
  white-space: nowrap;
}
.endpoint .copy-btn {
  margin-left: auto;
  border: 1px solid var(--border-color);
  background: rgba(22, 133, 255, .12);
  color: var(--cyan);
  border-radius: 7px;
  padding: 3px 8px;
  font-size: 10.5px;
  cursor: pointer;
  flex-shrink: 0;
}
.endpoint .copy-btn:hover { background: var(--gradient-primary); color: #fff; border-color: transparent; }

/* Status pills */
.api-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10.5px;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 99px;
}
.api-status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; box-shadow: 0 0 8px currentColor; }
.api-status.active { color: #5CF5C0; background: rgba(0, 214, 143, .12); border: 1px solid rgba(0, 214, 143, .3); }
.api-status.inactive { color: #FF9BB0; background: rgba(255, 84, 112, .12); border: 1px solid rgba(255, 84, 112, .3); }
.api-status.maintenance { color: #FFD79A; background: rgba(255, 181, 71, .12); border: 1px solid rgba(255, 181, 71, .3); }

/* Code blocks */
.code-block {
  position: relative;
  background: #050A18;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.code-block .cb-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 14px;
  background: rgba(12, 22, 48, .85);
  border-bottom: 1px solid var(--border-color);
  font-size: 11.5px;
  color: var(--text-muted);
}
.code-block pre {
  margin: 0;
  padding: 16px;
  overflow-x: auto;
  background: transparent;
  border: 0;
  border-radius: 0;
  color: #C7D8FF;
  font-size: 12px;
  line-height: 1.75;
}
.code-block .copy-btn {
  border: 1px solid var(--border-color);
  background: rgba(22, 133, 255, .12);
  color: var(--cyan);
  border-radius: 7px;
  padding: 4px 9px;
  font-size: 10.5px;
  cursor: pointer;
}
.code-block .copy-btn:hover { background: var(--gradient-primary); color: #fff; border-color: transparent; }

/* ==== profile.css ==== */
/* =============================================================================
   profile.css — profile hero, info rows, menu list, API key box
   ============================================================================= */

.asx-prof {
  background: var(--card-bg) !important;
  border: 1px solid var(--border-color) !important;
  border-radius: var(--radius-lg) !important;
  box-shadow: var(--shadow-card), var(--glass-highlight);
  backdrop-filter: var(--glass-blur);
  padding: 22px !important;
  position: relative;
  overflow: hidden;
}
.asx-prof::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(320px 160px at 100% 0%, rgba(0, 217, 255, .12), transparent 70%);
  pointer-events: none;
}
.pr-ava {
  width: 82px;
  height: 82px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
  font-size: 30px;
  font-weight: 800;
  color: #fff;
  background: var(--gradient-primary);
  box-shadow: 0 0 0 4px rgba(0, 217, 255, .14), 0 16px 38px rgba(22, 133, 255, .40);
}
.pr-chips { display: flex; flex-wrap: wrap; gap: 7px; justify-content: center; margin-top: 10px; }
.pf-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 11px;
  border-radius: 99px;
  font-size: 11px;
  font-weight: 700;
  background: rgba(22, 133, 255, .14);
  border: 1px solid rgba(22, 133, 255, .35);
  color: #8FC4FF;
}
.pf-badge.ok { background: rgba(0, 214, 143, .13); border-color: rgba(0, 214, 143, .36); color: #5CF5C0; }
.pf-badge.no { background: rgba(255, 84, 112, .13); border-color: rgba(255, 84, 112, .36); color: #FF9BB0; }

.asx-info {
  border-radius: var(--radius-lg);
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-card);
  backdrop-filter: var(--glass-blur);
  overflow: hidden;
}
.in-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(90, 130, 255, .12);
  transition: background .2s;
}
.in-row:last-child { border-bottom: 0; }
.in-row:hover { background: rgba(22, 133, 255, .07); }
.in-l { color: var(--text-muted); font-size: 12.5px; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.in-l i { color: var(--cyan); width: 16px; text-align: center; }
.in-v { color: var(--text-primary); font-size: 13.5px; font-weight: 700; text-align: right; word-break: break-word; }

.asx-menu {
  border-radius: var(--radius-lg);
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-card);
  backdrop-filter: var(--glass-blur);
  overflow: hidden;
}
.mn-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(90, 130, 255, .12);
  color: var(--text-secondary) !important;
  transition: all .2s;
}
.mn-row:last-child { border-bottom: 0; }
.mn-row:hover {
  background: linear-gradient(90deg, rgba(22, 133, 255, .14), rgba(168, 85, 247, .08));
  color: var(--text-primary) !important;
  padding-left: 22px;
}
.mn-ic {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(22, 133, 255, .14);
  color: var(--cyan);
  flex-shrink: 0;
}
.mn-t { flex: 1 1 auto; font-size: 13.5px; font-weight: 700; }
.mn-x { color: var(--text-muted); font-size: 12px; }

.pf-btn { border-radius: 11px !important; font-weight: 700; }
.pf-tg-input { max-width: 100%; }

/* API key panel */
.api-key-box {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(5, 10, 24, .9);
  border: 1px dashed var(--border-hover);
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: #9BE9FF;
  overflow-x: auto;
  white-space: nowrap;
}
.api-key-box .key-actions { margin-left: auto; display: flex; gap: 6px; }
.api-key-box .key-actions button {
  border: 1px solid var(--border-color);
  background: rgba(22, 133, 255, .12);
  color: var(--cyan);
  border-radius: 7px;
  padding: 4px 9px;
  font-size: 10.5px;
  cursor: pointer;
}
.api-key-box .key-actions button:hover { background: var(--gradient-primary); color: #fff; border-color: transparent; }

/* Avatar upload */
.pr-upload { text-align: center; margin-top: 10px; }
.pr-upload input[type="file"] { max-width: 100%; font-size: 11px; }

/* ==== auth.css ==== */
/* =============================================================================
   auth.css — premium glass authentication (login / register / admin login)
   Applies on top of the legacy inline auth styles.
   ============================================================================= */

/* ---- Public shop login modal ---- */
.modal-backdrop,
.modal-backdrop.show {
  opacity: 1 !important;
  background: rgba(2, 5, 15, .88) !important;
  backdrop-filter: blur(4px) !important;
  -webkit-backdrop-filter: blur(4px) !important;
}
.modal {
  background: #0C1530 !important;
  border: 1px solid #1B3A63 !important;
  border-radius: 22px !important;
  box-shadow: 0 24px 64px rgba(0, 0, 0, .65) !important;
  color: var(--text-primary) !important;
  padding: 32px 28px 26px !important;
  position: relative;
  overflow: hidden;
}
.modal::before {
  content: "";
  position: absolute;
  top: 0;
  left: 22%;
  right: 22%;
  height: 2px;
  border-radius: 0 0 4px 4px;
  background: linear-gradient(90deg, transparent, rgba(0,217,255,.55), transparent);
  opacity: .7;
}
.modal .m-logo img {
  width: 74px;
  height: 74px;
  border-radius: 18px;
  border: 1px solid #1B3A63 !important;
  box-shadow: 0 10px 24px rgba(0, 0, 0, .45) !important;
}
.modal h2 { color: var(--text-primary) !important; font-weight: 800 !important; }
.modal .sub { color: var(--text-muted) !important; }
.modal label { color: var(--text-secondary) !important; font-weight: 600 !important; }
.modal input,
.login-card input,
.reg-card input,
.in-wrap input {
  width: 100%;
  background: #0A1B35 !important;
  border: 1.5px solid #1B3A63 !important;
  border-radius: 12px !important;
  color: #F4F7FF !important;
  -webkit-text-fill-color: #F4F7FF !important;
  caret-color: var(--cyan);
  font-size: 14.5px;
  padding: 13px 14px 13px 44px !important;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.modal input:focus,
.login-card input:focus,
.reg-card input:focus,
.in-wrap input:focus {
  background: #0A1B35 !important;
  border-color: rgba(0, 217, 255, .65) !important;
  box-shadow: 0 0 0 3px rgba(0, 217, 255, .10) !important;
}
.modal input::placeholder,
.login-card input::placeholder,
.reg-card input::placeholder,
.in-wrap input::placeholder { color: #7A8DB0 !important; -webkit-text-fill-color: #7A8DB0 !important; }
.modal .in-wrap i,
.login-card .in-wrap i,
.reg-card .in-wrap i { color: var(--cyan) !important; }

.modal .btn-login,
.login-btn,
.reg-btn {
  background: var(--gradient-primary) !important;
  border: 0 !important;
  border-radius: 12px !important;
  color: #fff !important;
  font-weight: 800 !important;
  letter-spacing: .2px;
  box-shadow: 0 8px 22px rgba(22, 133, 255, .30) !important;
  transition: transform .2s, filter .2s, box-shadow .2s;
}
.modal .btn-login:hover,
.login-btn:hover,
.reg-btn:hover {
  transform: translateY(-1px) !important;
  filter: brightness(1.08);
  box-shadow: 0 12px 28px rgba(22, 133, 255, .38) !important;
}
.modal .alt { color: var(--text-muted) !important; }
.modal .alt a { color: var(--cyan) !important; font-weight: 700; }
.modal .close-x {
  color: var(--text-secondary) !important;
  background: rgba(255, 255, 255, .06) !important;
  border: 1px solid var(--border-color) !important;
  border-radius: 10px !important;
}
.modal .close-x:hover { background: var(--gradient-danger) !important; color: #fff !important; border-color: transparent !important; }

/* ---- Admin login ---- */
.login-card {
  background: #0C1530 !important;
  border: 1px solid #1B3A63 !important;
  border-radius: 22px !important;
  box-shadow: 0 24px 64px rgba(0, 0, 0, .65) !important;
  padding: 36px 30px 28px !important;
  position: relative;
  overflow: hidden;
}
.login-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 22%;
  right: 22%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(0,217,255,.55), transparent);
  opacity: .7;
}
.login-card .lc-top img {
  width: 80px;
  height: 80px;
  border-radius: 20px;
  border: 1px solid #1B3A63 !important;
  box-shadow: 0 10px 24px rgba(0, 0, 0, .45) !important;
}
.login-card .lc-top h2 { color: var(--text-primary) !important; }
.login-card .lc-top p { color: var(--text-muted) !important; }
.login-card .field label { color: var(--text-secondary) !important; }
.login-card .secure-note { color: var(--text-muted) !important; }
.login-card .secure-note i { color: var(--success) !important; }

/* ---- Register card ---- */
.reg-card {
  background: #0C1530 !important;
  border: 1px solid #1B3A63 !important;
  border-radius: 22px !important;
  box-shadow: 0 24px 64px rgba(0, 0, 0, .65) !important;
  color: var(--text-primary) !important;
}
.reg-card .rc-top h2 { color: var(--text-primary) !important; }
.reg-card .rc-top p { color: var(--text-muted) !important; }
.reg-card .field label { color: var(--text-secondary) !important; }
.reg-card .note-box {
  background: rgba(22, 133, 255, .10) !important;
  border: 1px solid rgba(22, 133, 255, .30) !important;
  color: var(--text-secondary) !important;
  border-radius: 12px !important;
}
.reg-card .rc-foot { color: var(--text-muted) !important; }
.reg-card .rc-foot a { color: var(--cyan) !important; }

/* Auth page background glow — kept subtle */
body:has(.login-card)::before,
body:has(.reg-card)::before {
  width: 520px;
  height: 520px;
  top: -240px;
  left: -160px;
  background: radial-gradient(circle, rgba(22, 133, 255, .18), transparent 70%);
}
body:has(.login-card)::after,
body:has(.reg-card)::after {
  width: 560px;
  height: 560px;
  right: -200px;
  bottom: -260px;
  background: radial-gradient(circle, rgba(124, 77, 255, .14), transparent 70%);
}

/* Remember me / links */
.modal .remember,
.login-card .remember { color: var(--text-secondary) !important; }
.modal .forgot,
.login-card .forgot { color: var(--cyan) !important; }

@media (max-width: 430px) {
  .modal { padding: 26px 18px 22px !important; border-radius: 18px !important; max-width: calc(100vw - 24px) !important; }
  .login-card, .reg-card { padding: 26px 18px 22px !important; border-radius: 18px !important; }
  .modal .m-logo img, .login-card .lc-top img { width: 64px; height: 64px; border-radius: 16px; }
  .modal h2, .login-card .lc-top h2 { font-size: 20px !important; }
  .modal .field, .login-card .field { margin-bottom: 13px; }
}

/* ==== admin.css ==== */
/* =============================================================================
   admin.css — admin / sub-admin panel refinements
   ============================================================================= */

body.admin-body {
  background:
    radial-gradient(circle at 8% 6%, rgba(168, 85, 247, .12), transparent 34%),
    radial-gradient(circle at 94% 12%, rgba(0, 110, 255, .16), transparent 38%),
    var(--bg-primary) !important;
}

.admin-sidebar {
  background:
    linear-gradient(180deg, rgba(12, 18, 44, .97) 0%, rgba(8, 13, 32, .99) 55%, rgba(5, 8, 22, .99) 100%) !important;
}
.admin-sidebar::before {
  background:
    radial-gradient(340px 240px at 100% 0%, rgba(168, 85, 247, .26), transparent 70%),
    radial-gradient(280px 220px at 0% 105%, rgba(22, 133, 255, .20), transparent 72%);
}
.admin-sidebar .side-link.active {
  background: linear-gradient(100deg, rgba(120, 59, 255, .95), rgba(168, 85, 247, .95) 50%, rgba(0, 217, 255, .92)) !important;
  box-shadow: 0 10px 26px rgba(168, 85, 247, .40), inset 0 1px 0 rgba(255, 255, 255, .18);
}
.admin-sidebar .side-brand .sb-logo { background: var(--gradient-purple) !important; }
.admin-topbar::after {
  background: linear-gradient(90deg, transparent, rgba(168, 85, 247, .6), rgba(0, 217, 255, .55), transparent);
}
.admin-avatar { background: var(--gradient-purple) !important; }

/* Admin page headers */
.admin-body .page-head {
  background:
    linear-gradient(135deg, rgba(168, 85, 247, .14), rgba(0, 110, 255, .10)),
    rgba(12, 22, 48, .55);
}
.admin-body .page-head::before {
  background: radial-gradient(420px 160px at 100% 0%, rgba(168, 85, 247, .18), transparent 70%);
}

/* Admin tables */
.admin-body .table thead {
  background: linear-gradient(135deg, #2A1460 0%, #3B1E72 48%, #0E2A66 100%) !important;
}

/* Admin KPI cards (legacy admin dashboard markup) */
.admin-body .card h3,
.admin-body .card h4 { color: var(--text-primary) !important; }

/* Settings forms */
.admin-body .card .form-control,
.admin-body .card .form-select { background: rgba(8, 20, 38, .92) !important; }

/* Sub-admin accent */
.subadmin-body .side-link.active {
  background: linear-gradient(100deg, rgba(0, 198, 255, .95), rgba(22, 119, 255, .95) 55%, rgba(0, 168, 107, .95)) !important;
}

/* Admin quick actions */
.admin-quick {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
}
.admin-quick a {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 13px 14px;
  border-radius: 13px;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  color: var(--text-secondary) !important;
  font-size: 12.5px;
  font-weight: 700;
  transition: all .2s;
}
.admin-quick a:hover {
  border-color: var(--border-hover);
  color: #fff !important;
  transform: translateY(-2px);
  box-shadow: var(--glow-cyan);
}
.admin-quick a i { color: var(--cyan); }

/* ==== responsive.css ==== */
/* =============================================================================
   responsive.css — mobile-first refinements (320 → 1920)
   ============================================================================= */

/* ---------- Base: very small phones (320–374) ---------- */
@media (max-width: 374.98px) {
  :root { --sidebar-w: 248px; }
  html { font-size: 14px; }
  .app-main { padding: calc(var(--topbar-h) + 18px) 12px 112px; }
  .page-head { padding: 16px 15px; border-radius: var(--radius-md); }
  .page-head h1 { font-size: 1.12rem; }
  .card { padding: 15px !important; }
  .asx-bal { padding: 18px 16px !important; }
  .asx-tile { padding: 13px 12px !important; }
  .asx-tile .tl-val { font-size: 21px; }
  .balance-pill { padding: 6px 9px; font-size: 11.5px; }
  .tb-icon { width: 36px; height: 36px; }
  .tb-user { padding-right: 6px; }
  .tb-user .tu-caret { display: none; }
  .btn { padding: 9px 14px; font-size: 12.5px; }
  .btn-sm { padding: 5px 10px !important; font-size: 11px !important; }
  .table thead th, .table tbody td { padding: 11px 12px !important; }
  .modal { padding: 24px 16px 20px !important; }
  .amt-chips { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .as-mnav { left: 8px; right: 8px; bottom: 8px; padding: 6px 6px; border-radius: 16px; }
  .as-mnav a { font-size: 8.5px; }
  .as-mnav a.fab { width: 44px; height: 44px; margin-top: -20px; }
}

/* ---------- Phones ---------- */
@media (max-width: 575.98px) {
  .app-main { padding: calc(var(--topbar-h) + 20px) 14px 112px; }
  .content-wrapper { max-width: 100%; }
  .page-head { flex-direction: column; align-items: flex-start; gap: 10px; }
  .page-head .ph-crumb { font-size: 11.5px; }
  .card { border-radius: var(--radius-md) !important; }
  .asx-tiles { gap: 10px; }
  .asx-svcs { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .asx-svc { padding: 13px !important; }
  .asx-svc .sv-name { font-size: 12.5px; }
  .asx-svc .sv-ic { width: 36px; height: 36px; font-size: 15px; }
  .asx-bal .bl-act { flex-direction: column; }
  .asx-bal .bl-act .btn { width: 100%; }
  .asx-item { padding: 11px 10px !important; }
  .asx-item .li-t { font-size: 12.5px; }
  .asx-item .li-s { font-size: 10.5px; }
  .btn { min-height: 40px; }
  .btn-sm { min-height: 32px; }
  .form-control, .form-select, select, textarea, input[type="text"], input[type="number"], input[type="email"], input[type="password"] {
    font-size: 16px !important; /* prevent iOS zoom */
    min-height: 46px;
  }
  .table-responsive { border-radius: var(--radius-md); }
  .tb-menu { right: 10px; left: 10px; min-width: 0; }
  .chart-card, .chart-box { padding: 14px; }
  .site-footer, .footer { padding: 16px; }
}

/* ---------- Large phones / small tablets ---------- */
@media (min-width: 576px) and (max-width: 767.98px) {
  .app-main { padding: calc(var(--topbar-h) + 22px) 18px 112px; }
  .asx-svcs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tb-menu { right: 12px; }
}

/* ---------- Tablets ---------- */
@media (min-width: 768px) and (max-width: 991.98px) {
  .app-main { padding: calc(var(--topbar-h) + 24px) 22px 120px; }
  .asx-svcs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .asx-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .amt-chips { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 992px) and (max-width: 1024px) {
  :root { --sidebar-w: 240px; }
  .app-main { padding-left: 22px; padding-right: 22px; }
}

/* ---------- Desktops ---------- */
@media (min-width: 1280px) {
  .asx-svcs { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (min-width: 1440px) {
  .app-main { padding-left: 34px; padding-right: 34px; }
  .content-wrapper { max-width: 1560px; }
}
@media (min-width: 1920px) {
  .content-wrapper { max-width: 1680px; }
  .app-main { padding-left: 44px; padding-right: 44px; }
}

/* ---------- Horizontal overflow guards ---------- */
img, table, pre, .endpoint { max-width: 100%; }
.app-main, .content-wrapper, .card, .row { min-width: 0; }
.row > [class*="col"] { min-width: 0; }
.d-flex { min-width: 0; }
.text-truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- Print ---------- */
@media print {
  .app-topbar, .app-sidebar, .as-mnav, .as-top, .wa-fab, .side-overlay, .as-progress { display: none !important; }
  .app-main { margin: 0 !important; padding: 0 !important; }
  body { background: #fff !important; color: #000 !important; }
  .card, .table, .table-container { box-shadow: none !important; border-color: #ccc !important; background: #fff !important; }
}
