@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,300..800;1,300..800&family=JetBrains+Mono:wght@400;500;600;700&display=swap');

/* NEXORA user experience - High-End Visual Architecture */
:root {
  color-scheme: dark;
  --bg: #080d16;
  --card: #0e1625;
  --surface: #0e1625;
  --surface2: #141f33;
  --text: #f8fafc;
  --muted: #94a3b8;
  --line: rgba(255, 255, 255, 0.1);
  --rule: rgba(255, 255, 255, 0.06);
  --accent: #a3e635;
  --accent2: #38bdf8;
  --ink: #080d16;
  --success: #4ade80;
  --success-bg: rgba(74, 222, 128, 0.12);
  --warn: #facc15;
  --warn-bg: rgba(250, 204, 21, 0.12);
  --danger: #f87171;
  --danger-bg: rgba(248, 113, 113, 0.12);
  --radius: 16px;
  --shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.06);
  --navy: #080d16;
  --navy-2: #0e1625;
  --navy-3: #141f33;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #080d16;
  --card: #0e1625;
  --surface: #0e1625;
  --surface2: #141f33;
  --text: #f8fafc;
  --muted: #94a3b8;
  --line: rgba(255, 255, 255, 0.1);
  --rule: rgba(255, 255, 255, 0.06);
  --accent: #a3e635;
  --accent2: #38bdf8;
  --ink: #080d16;
  --success: #4ade80;
  --success-bg: rgba(74, 222, 128, 0.12);
  --warn: #facc15;
  --warn-bg: rgba(250, 204, 21, 0.12);
  --danger: #f87171;
  --danger-bg: rgba(248, 113, 113, 0.12);
  --shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.06);
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html {
  scroll-behavior: smooth;
}

html, body {
  max-width: 100%;
  overflow-x: clip;
}

.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  align-items: start;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  max-height: 100vh;
  overflow-y: auto;
  align-self: start;
  z-index: 50;
}

@media (max-width: 900px) {
  .app-shell,
  .app-shell.admin-shell,
  .app-shell:not(.admin-shell) {
    grid-template-columns: 100% !important;
  }
  .sidebar {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    bottom: 0 !important;
    width: min(300px, 85vw) !important;
    height: 100vh !important;
    max-height: 100vh !important;
    transform: translateX(-100%) !important;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
    z-index: 120 !important;
    background: rgba(14, 22, 37, 0.98) !important;
    backdrop-filter: blur(20px) !important;
  }
  .sidebar.open {
    transform: translateX(0) !important;
    box-shadow: 0 0 60px rgba(0, 0, 0, 0.8) !important;
  }
  .sidebar-backdrop {
    position: fixed !important;
    inset: 0 !important;
    background: rgba(0, 0, 0, 0.7) !important;
    backdrop-filter: blur(4px) !important;
    z-index: 110 !important;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease !important;
    display: none;
  }
  .sidebar-backdrop.show {
    display: block !important;
    opacity: 1 !important;
    pointer-events: auto !important;
  }
  .mobile-menu {
    display: inline-flex !important;
  }
}

.topbar {
  position: sticky !important;
  top: 0 !important;
  z-index: 45 !important;
  backdrop-filter: blur(12px) !important;
}

.page, .content, .proxy-manager-page, .products-dashboard-page {
  width: 100% !important;
  max-width: 1650px !important;
  padding: 32px clamp(24px, 3.5vw, 48px) 72px !important;
  margin: 0 auto !important;
}

.app-shell, .main-panel { min-width: 0; max-width: 100%; }
.page > *, .content > * { min-width: 0; max-width: 100%; }
.table-wrap { max-width: 100%; overflow-x: auto; overscroll-behavior-inline: contain; }
.sidebar-close { display: none; }

/* Proxy health states. Keep these explicit so a successful status check is visible. */
.proxy-health.is-good {
  color: #86efac;
  background: rgba(34, 197, 94, 0.15);
  border-color: rgba(34, 197, 94, 0.3);
}
.proxy-health.is-bad {
  color: #fca5a5;
  background: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.3);
}
.proxy-health.unknown {
  color: #94a3b8;
  background: rgba(148, 163, 184, 0.15);
  border-color: rgba(148, 163, 184, 0.25);
}
.proxy-health.is-good .proxy-health-dot { background: #4ade80; }
.proxy-health.is-bad .proxy-health-dot { background: #f87171; }
.proxy-health.unknown .proxy-health-dot { background: #94a3b8; }

h1, h2, h3 { letter-spacing: -.035em; text-wrap: balance; }
h1 { font-size: clamp(2.25rem, 4vw, 3.8rem); line-height: 1.08; }

.public-nav {
  position: sticky;
  top: 0;
  z-index: 80;
  color: #f8fafc;
  background: rgba(8, 13, 22, 0.88);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.public-nav-inner {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.public-nav .brand {
  color: var(--text);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.15rem;
  font-weight: 850;
  letter-spacing: -0.02em;
  text-decoration: none;
  flex-shrink: 0;
}

.brand-logo {
  width: 34px;
  height: 34px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 9px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  flex-shrink: 0;
}

.public-nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 6px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background: rgba(14, 22, 37, 0.65);
  backdrop-filter: blur(8px);
}

.public-nav-links a {
  min-height: 34px;
  padding: 6px 14px;
  border-radius: 8px;
  color: #94a3b8;
  font-weight: 600;
  font-size: 0.86rem;
  text-decoration: none;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.public-nav-links a:hover,
.public-nav-links a[aria-current="page"] {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.public-nav .btn-primary,
.public-nav .nx-nav-login-btn {
  min-height: 38px;
  padding: 8px 18px;
  font-size: 0.86rem;
  font-weight: 750;
  border-radius: 10px;
  flex-shrink: 0;
}

/* Mobile Navbar Optimization (Anti-Collision) */
@media (max-width: 768px) {
  .public-nav-inner {
    min-height: 60px;
    padding-inline: 12px;
    gap: 8px;
  }
  .public-nav .brand {
    font-size: 1.05rem;
    gap: 8px;
  }
  .brand-logo {
    width: 28px;
    height: 28px;
    border-radius: 7px;
  }
  .public-nav-links {
    padding: 2px 3px;
    gap: 2px;
    border-radius: 8px;
  }
  .public-nav-links a {
    min-height: 30px;
    padding: 4px 8px;
    font-size: 0.78rem;
    font-weight: 650;
  }
  .public-nav .btn-primary,
  .public-nav .nx-nav-login-btn {
    min-height: 34px;
    padding: 6px 12px;
    font-size: 0.78rem;
  }
}

@media (max-width: 480px) {
  .public-nav-links a:not([href="/products.html"]):not([href="/dashboard/residential.html"]) {
    display: none;
  }
  .public-nav-links {
    border: none;
    background: transparent;
    gap: 4px;
    padding: 0;
  }
  .public-nav-links a {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #e2e8f0;
    font-size: 0.74rem;
    padding: 5px 9px;
  }
  .public-nav .brand span {
    font-size: 0.95rem;
  }
}

.btn, .nx-login-btn, .nx-nav-login, .nx-discord-login, .nx-purchase-button {
  min-height: 44px;
  border: 1px solid transparent;
  border-radius: 12px;
  font-weight: 700;
  letter-spacing: -0.01em;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.btn:active, .nx-login-btn:active, .nx-nav-login:active, .nx-discord-login:active, .nx-purchase-button:active {
  transform: scale(0.98);
}
.btn-primary, .nx-nav-login, .nx-login-btn, .nx-purchase-button, .nx-discord-login {
  background: var(--accent);
  color: var(--ink);
  box-shadow: 0 4px 14px -2px rgba(163, 230, 53, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.btn-primary:hover, .nx-purchase-button:hover, .nx-discord-login:hover {
  transform: translateY(-1.5px);
  box-shadow: 0 8px 20px -2px rgba(163, 230, 53, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.neo-home { background: var(--bg); color: var(--text); overflow-x: hidden; }
.neo-home .public-nav { background: rgba(8, 13, 22, 0.85); }
.neo-home .footer { color: #94a3b8; background: #060a12; border-color: rgba(255, 255, 255, 0.08); }
.neo-home #main-content { min-height: calc(100svh - 72px); }

.neo-hero {
  position: relative;
  display: grid;
  align-items: center;
  min-height: calc(100svh - 72px);
  padding: clamp(64px, 6vw, 96px) 0 58px;
  background:
    radial-gradient(circle at 82% 22%, rgba(114, 215, 255, .2), transparent 28%),
    radial-gradient(circle at 14% 52%, rgba(184, 243, 74, .1), transparent 24%),
    linear-gradient(rgba(114, 215, 255, .06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(114, 215, 255, .06) 1px, transparent 1px),
    var(--navy);
  background-size: auto, auto, 44px 44px, 44px 44px, auto;
  border-bottom: 2px solid #1e3b50;
}

@media (max-height: 820px) and (min-width: 901px) {
  .neo-hero { padding: 34px 0; }
  .neo-kicker { margin-bottom: 16px; }
  .neo-hero h1 { font-size: clamp(3rem, 4vw, 3.8rem); margin-bottom: 18px; }
  .neo-hero .actions { margin-top: 22px; }
  .neo-trust { margin-top: 20px; }
  .terminal-body { padding: 22px; }
  .terminal-grid > div { padding: 12px 14px; }
}
.neo-hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(380px, .95fr); gap: clamp(38px, 7vw, 88px); align-items: center; }
.neo-kicker { display: inline-flex; align-items: center; gap: 9px; padding: 7px 11px; margin-bottom: 22px; color: #c9d6da; border: 1px solid #31536a; border-radius: 999px; background: #0e2536; font-size: .75rem; font-weight: 800; letter-spacing: .11em; }
.neo-kicker i { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.neo-kicker.dark { color: #314038; background: #e5eadf; border-color: var(--line); }
.neo-hero h1 { max-width: 720px; margin-bottom: 24px; color: var(--text); }
.neo-hero h1 span { color: var(--accent); }
.typed-text-wrap {
  display: inline-flex;
  align-items: baseline;
  position: relative;
}
.typed-cursor {
  display: inline-block;
  color: var(--accent);
  margin-left: 2px;
  font-weight: 300;
  animation: cursor-blink 0.8s ease-in-out infinite;
}
@keyframes cursor-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}
.neo-hero-copy > p { max-width: 660px; color: #aebdc2; font-size: clamp(1rem, 1.5vw, 1.18rem); line-height: 1.7; }
.neo-hero .actions { margin-top: 30px; }
.neo-trust { display: flex; flex-wrap: wrap; gap: 16px 24px; margin: 26px 0 0; padding: 0; list-style: none; color: #b8c6cb; font-size: .875rem; }
.neo-trust li span { color: var(--accent); font-weight: 900; margin-right: 7px; }

/* Live Interactive Proxy Console Card */
.neo-proxy-console {
  position: relative;
  display: flex;
  flex-direction: column;
  background: rgba(13, 23, 38, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.05);
  overflow: hidden;
  transition: border-color 0.25s ease, transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease;
  backdrop-filter: blur(12px);
}

.neo-proxy-console:hover {
  border-color: rgba(56, 189, 248, 0.35);
  transform: translateY(-3px);
  box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.8), 0 0 20px -5px rgba(56, 189, 248, 0.15);
}

.console-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 20px;
  background: rgba(8, 14, 24, 0.9);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.8rem;
}

.console-meta {
  display: flex;
  align-items: center;
  gap: 10px;
}

.console-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  background: rgba(163, 230, 53, 0.12);
  border: 1px solid rgba(163, 230, 53, 0.35);
  border-radius: 999px;
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

.console-protocol {
  color: #94a3b8;
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
}

.console-region {
  color: #f1f5f9;
  font-weight: 750;
  font-size: 0.8rem;
}

.console-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.console-metric-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.console-metric {
  padding: 12px 14px;
  background: rgba(10, 18, 30, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
}

.metric-label {
  display: block;
  font-size: 0.68rem;
  color: #94a3b8;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 5px;
}

.metric-value-wrap {
  display: flex;
  flex-direction: column;
}

.metric-value {
  font-family: 'JetBrains Mono', monospace;
  font-variant-numeric: tabular-nums lining-nums;
  font-size: 1.18rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1.15;
}

.metric-value.highlight {
  color: var(--accent);
}

.metric-value.cyan {
  color: #38bdf8;
}

.metric-sub {
  font-size: 0.68rem;
  color: #94a3b8;
  margin-top: 3px;
}

.console-graph-wrap {
  background: rgba(8, 14, 24, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  padding: 14px 16px;
}

.graph-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.7rem;
  color: #7792a0;
  font-weight: 750;
  margin-bottom: 10px;
}

.graph-live-tag {
  color: var(--accent);
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.console-waveform {
  display: flex;
  align-items: flex-end;
  gap: 5px;
  height: 38px;
  padding: 2px 0;
}

.wave-bar {
  flex: 1;
  height: var(--h, 50%);
  background: linear-gradient(180deg, var(--accent) 0%, rgba(114, 215, 255, 0.4) 100%);
  border-radius: 3px 3px 1px 1px;
  opacity: 0.85;
  animation: wave-bounce 2.4s ease-in-out infinite alternate;
}

.wave-bar:nth-child(2n) {
  animation-duration: 1.8s;
  animation-delay: -0.4s;
}

.wave-bar:nth-child(3n) {
  animation-duration: 2.1s;
  animation-delay: -0.8s;
}

@keyframes wave-bounce {
  0% { transform: scaleY(0.7); }
  50% { transform: scaleY(1.15); }
  100% { transform: scaleY(0.85); }
}

.console-endpoint-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  background: rgba(6, 12, 20, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
}

.endpoint-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.endpoint-label {
  font-size: 0.65rem;
  color: #94a3b8;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.endpoint-string {
  font-family: 'JetBrains Mono', monospace;
  font-variant-numeric: tabular-nums lining-nums;
  font-size: 0.88rem;
  font-weight: 650;
  color: #38bdf8;
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.btn-copy-endpoint {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: 10px;
  color: #e0f2fe;
  font-size: 0.78rem;
  font-weight: 750;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-copy-endpoint:hover {
  background: rgba(56, 189, 248, 0.22);
  border-color: #38bdf8;
  transform: translateY(-1px);
}

.btn-copy-endpoint:active {
  transform: scale(0.96);
}

.btn-copy-endpoint.copied {
  background: var(--accent);
  color: #080d16;
  border-color: var(--accent);
}

.console-nodes {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.nodes-label {
  font-size: 0.72rem;
  font-weight: 800;
  color: #94a3b8;
  letter-spacing: 0.04em;
}

.nodes-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.node-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 8px 6px;
  background: rgba(10, 18, 30, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  color: #94a3b8;
  font-size: 0.72rem;
  font-weight: 750;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.node-chip small {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  color: #64748b;
}

.node-chip:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.18);
  transform: translateY(-1px);
}

.node-chip:active {
  transform: scale(0.96);
}

.node-chip.active {
  background: rgba(56, 189, 248, 0.12);
  color: #ffffff;
  border-color: rgba(56, 189, 248, 0.4);
  box-shadow: 0 0 12px -2px rgba(56, 189, 248, 0.25);
}

.node-chip.active small {
  color: #38bdf8;
  font-weight: 800;
}

.console-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 20px;
  background: rgba(6, 12, 20, 0.9);
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  font-size: 0.74rem;
  color: #94a3b8;
}

.console-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.console-badge .check-icon {
  color: var(--accent);
  font-weight: 900;
}

/* Pricing Grid & Cards on Landing */
.neo-pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.neo-pricing-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 32px 28px;
  background: rgba(14, 22, 37, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  box-shadow: 0 12px 30px -8px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.04);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s ease, box-shadow 0.25s ease;
  backdrop-filter: blur(8px);
}

.neo-pricing-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.neo-pricing-card.featured {
  background: linear-gradient(180deg, rgba(16, 32, 54, 0.95) 0%, rgba(10, 20, 34, 0.95) 100%);
  border-color: rgba(163, 230, 53, 0.4);
  box-shadow: 0 16px 36px -10px rgba(0, 0, 0, 0.6), 0 0 20px -4px rgba(163, 230, 53, 0.15);
}

.neo-pricing-card.featured:hover {
  border-color: var(--accent);
  box-shadow: 0 24px 48px -12px rgba(0, 0, 0, 0.75), 0 0 24px -2px rgba(163, 230, 53, 0.25);
}

.pricing-badge-popular {
  position: absolute;
  top: -12px;
  right: 20px;
  padding: 4px 12px;
  background: var(--accent);
  color: #080d16;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  box-shadow: 0 4px 12px rgba(163, 230, 53, 0.35);
}

.pricing-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
}

.pricing-card-head h3 {
  margin: 0;
  font-size: 1.3rem;
  color: var(--text);
  font-weight: 800;
}

.pricing-duration {
  padding: 4px 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #94a3b8;
  font-size: 0.72rem;
  font-weight: 750;
}

.pricing-price-wrap {
  margin-bottom: 22px;
}

.pricing-price {
  font-family: 'JetBrains Mono', monospace;
  font-variant-numeric: tabular-nums lining-nums;
  font-size: 2rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1.1;
}

.pricing-sub {
  display: block;
  font-size: 0.82rem;
  color: var(--accent);
  font-weight: 750;
  margin-top: 4px;
}

.pricing-features {
  list-style: none;
  padding: 0;
  margin: 0 0 26px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 0.88rem;
  color: #94a3b8;
}

.pricing-features li {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pricing-features li span {
  color: var(--accent);
  font-weight: 800;
}

.neo-pricing-card .btn {
  width: 100%;
  justify-content: center;
}

/* Feature grid */
.neo-features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.neo-feature-card {
  padding: 30px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.35);
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s ease, box-shadow 0.2s ease;
}

.neo-feature-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 18px 36px -8px rgba(0, 0, 0, 0.5);
}

.feature-num {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin-bottom: 18px;
  border: 1px solid rgba(163, 230, 53, 0.3);
  border-radius: 10px;
  background: rgba(163, 230, 53, 0.12);
  color: var(--accent);
  font-family: 'JetBrains Mono', monospace;
  font-weight: 800;
  font-size: 0.85rem;
}

.neo-feature-card h3 {
  margin: 0 0 10px;
  font-size: 1.25rem;
  font-weight: 750;
}

.neo-feature-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.65;
}

/* CTA Community Section */
.neo-cta-box {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
  padding: clamp(32px, 4vw, 52px);
  background: linear-gradient(135deg, rgba(20, 36, 58, 0.9) 0%, rgba(10, 20, 34, 0.95) 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 22px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.neo-cta-copy h3 {
  margin: 0 0 10px;
  font-size: clamp(1.5rem, 2.5vw, 2.1rem);
  color: var(--text);
  font-weight: 800;
}

.neo-cta-copy p {
  margin: 0;
  color: #94a3b8;
  font-size: 0.98rem;
  max-width: 580px;
  line-height: 1.6;
}

.neo-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

@media (max-width: 900px) {
  .neo-features-grid,
  .neo-pricing-grid {
    grid-template-columns: 1fr;
  }
  .neo-signal-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .neo-cta-box {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 600px) {
  .neo-signal-grid {
    grid-template-columns: 1fr;
  }
  .console-metric-row {
    grid-template-columns: 1fr;
  }
  .nodes-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

.neo-signal {
  background: rgba(10, 18, 30, 0.9);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.neo-signal-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.neo-signal-grid > div { padding: 22px 24px; border-right: 1px solid rgba(255, 255, 255, 0.06); }
.neo-signal-grid > div:last-child { border-right: 0; }
.neo-signal-grid small, .neo-signal-grid strong { display: block; }
.neo-signal-grid small { color: #94a3b8; font-size: .7rem; letter-spacing: .09em; font-weight: 750; }
.neo-signal-grid strong { margin-top: 5px; color: var(--text); font-size: 1rem; font-weight: 750; }

.neo-light-section, .neo-steps-section { padding: clamp(64px, 8vw, 104px) 0; }
.neo-light-section { color: var(--text); background: var(--bg); }
.neo-steps-section { color: var(--text); background: var(--navy); }
.neo-section-head { display: flex; justify-content: space-between; align-items: end; gap: 28px; margin-bottom: 32px; }
.neo-section-head h2 { max-width: 650px; margin: 0; font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 800; }
.neo-section-head a { color: inherit; font-weight: 750; }
.neo-section-head.inverted a { color: var(--accent); }
.neo-product-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  color: var(--text);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 14px 34px -10px rgba(0, 0, 0, 0.45);
  overflow: hidden;
}
.neo-product-visual {
  display: grid;
  place-content: center;
  min-height: 390px;
  padding: 38px;
  text-align: center;
  background: linear-gradient(145deg, rgba(56, 189, 248, 0.15), rgba(163, 230, 53, 0.15));
  border-right: 1px solid var(--line);
}
.neo-product-visual span {
  justify-self: center;
  padding: 6px 12px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  font: 750 .75rem 'JetBrains Mono', monospace;
}
.neo-product-visual strong { font-size: clamp(5rem, 12vw, 8rem); line-height: .95; letter-spacing: -.06em; font-weight: 850; }
.neo-product-visual small { font-weight: 800; letter-spacing: .18em; color: var(--muted); }
.neo-product-copy { display: grid; align-content: center; padding: clamp(28px, 5vw, 54px); }
.neo-product-copy h3 { margin: 14px 0; font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 800; }
.neo-product-copy p { color: var(--muted); line-height: 1.7; }
.neo-stock { color: var(--success); font-weight: 800; font-size: .83rem; }
.neo-product-specs { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 26px; }
.neo-product-specs span { padding: 7px 11px; border: 1px solid var(--rule); border-radius: 8px; background: var(--surface2); font-size: .78rem; font-weight: 700; color: #94a3b8; }
.neo-product-copy .btn { justify-self: start; }
.neo-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.neo-steps article {
  position: relative;
  min-height: 220px;
  padding: 28px;
  color: var(--text);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.35);
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s ease;
}
.neo-steps article:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.2);
}
.neo-steps article:nth-child(2) {
  background: linear-gradient(180deg, rgba(163, 230, 53, 0.1) 0%, var(--card) 100%);
  border-color: rgba(163, 230, 53, 0.3);
  box-shadow: 0 14px 30px -8px rgba(0, 0, 0, 0.45);
}
.neo-steps article > span {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-bottom: 24px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface2);
  font-family: 'JetBrains Mono', monospace;
  font-weight: 800;
  color: var(--accent);
}
.neo-steps h3 { margin-bottom: 9px; font-size: 1.25rem; font-weight: 750; }
.neo-steps p { color: var(--muted); margin: 0; font-size: 0.92rem; line-height: 1.6; }

/* User application shell */
.app-shell:not(.admin-shell) { grid-template-columns: 264px minmax(0, 1fr); }
.app-shell:not(.admin-shell) .sidebar { color: #f8fafc; background: var(--bg); border-right: 1px solid rgba(255, 255, 255, 0.08); padding: 24px 16px; }
.app-shell:not(.admin-shell) .sidebar .brand { color: var(--text); padding: 0 10px 20px; border-bottom: 1px solid rgba(255, 255, 255, 0.06); }
.app-shell:not(.admin-shell) .nav-group-label { color: #64748b; }
.app-shell:not(.admin-shell) .side-nav a { min-height: 42px; color: #94a3b8; border-radius: 10px; font-weight: 600; transition: all 0.15s ease; }
.app-shell:not(.admin-shell) .side-nav a:hover { color: #ffffff; background: rgba(255, 255, 255, 0.06); }
.app-shell:not(.admin-shell) .side-nav a.active {
  color: #ffffff;
  background: rgba(163, 230, 53, 0.15);
  border: 1px solid rgba(163, 230, 53, 0.3);
  box-shadow: 0 2px 10px rgba(163, 230, 53, 0.12);
}
.app-shell:not(.admin-shell) .sidebar-footer { border-color: rgba(255, 255, 255, 0.08); }
.app-shell:not(.admin-shell) .sidebar-footer .btn,
.app-shell:not(.admin-shell) .theme-toggle { color: #94a3b8; border-color: rgba(255, 255, 255, 0.12); }
.app-shell:not(.admin-shell) .topbar { min-height: 66px; background: rgba(8, 13, 22, 0.85); border-bottom: 1px solid rgba(255, 255, 255, 0.08); backdrop-filter: blur(14px); position: sticky; top: 0; z-index: 60; }
:root[data-theme="dark"] .app-shell:not(.admin-shell) .topbar { background: rgba(8, 13, 22, 0.85); }
.app-shell:not(.admin-shell) .page { padding-top: 36px; }
.app-shell:not(.admin-shell) .atlas-overview,
.app-shell:not(.admin-shell) .page-heading,
.app-shell:not(.admin-shell) .products-heading,
.app-shell:not(.admin-shell) .proxy-page-heading {
  padding: 24px 28px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--card);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.35);
}
.app-shell:not(.admin-shell) .atlas-overview h1,
.app-shell:not(.admin-shell) .page-heading h1,
.app-shell:not(.admin-shell) .products-heading h1,
.app-shell:not(.admin-shell) .proxy-page-heading h1 { font-size: clamp(2rem, 3.5vw, 3rem); font-weight: 800; }
.app-shell:not(.admin-shell) .kpi-grid { gap: 16px; }
.app-shell:not(.admin-shell) .kpi-grid .card { min-height: 120px; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25); }
.app-shell:not(.admin-shell) .kpi-grid .card:first-child { background: var(--card); }
.app-shell:not(.admin-shell) .quick-link {
  min-height: 100px;
  border: 1px solid var(--line);
  border-radius: 12px;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease, border-color 0.2s ease;
}
.app-shell:not(.admin-shell) .quick-link:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: 0 8px 20px -4px rgba(0, 0, 0, 0.35);
}
.app-shell:not(.admin-shell) .card,
.app-shell:not(.admin-shell) .table-wrap { border: 1px solid var(--line); }

/* 2026 user workspace refinement: quieter, denser, product-first. */
.app-shell:not(.admin-shell) {
  grid-template-columns: 248px minmax(0, 1fr);
  background: #f4f6f3;
}

:root[data-theme="dark"] .app-shell:not(.admin-shell) {
  background: var(--card);
}

.app-shell:not(.admin-shell) .sidebar {
  padding: 22px 14px;
  border-right: 1px solid #203b4e;
  box-shadow: none;
}

.app-shell:not(.admin-shell) .sidebar .brand {
  min-height: 48px;
  padding: 0 10px 18px;
  font-size: .98rem;
  letter-spacing: .08em;
}

.app-shell:not(.admin-shell) .brand-logo {
  width: 32px;
  height: 32px;
  border: 1px solid #345064;
  border-radius: 7px;
  box-shadow: none;
}

.app-shell:not(.admin-shell) .side-nav {
  gap: 3px;
}

.app-shell:not(.admin-shell) .nav-group-label {
  margin: 20px 10px 7px;
  font-size: .68rem;
  font-weight: 750;
  letter-spacing: .12em;
}

.app-shell:not(.admin-shell) .side-nav a {
  min-height: 40px;
  padding: 9px 11px;
  border: 1px solid transparent;
  border-radius: 7px;
  font-size: .9rem;
  font-weight: 650;
}

.app-shell:not(.admin-shell) .side-nav a.active {
  color: #eef7ef;
  background: var(--surface2);
  border-color: var(--line);
  box-shadow: none;
}

.app-shell:not(.admin-shell) .side-nav a.active::before {
  content: "";
  width: 3px;
  height: 18px;
  margin-right: 8px;
  border-radius: 2px;
  background: var(--accent);
}

.app-shell:not(.admin-shell) .sidebar-footer {
  display: grid;
  gap: 8px;
  padding-top: 14px;
}

.language-field {
  display: grid;
  gap: 5px;
  width: 100%;
}

.language-field > span {
  color: #78909c;
  font-size: .68rem;
  font-weight: 750;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.language-field select {
  width: 100%;
  min-height: 38px;
  padding: 7px 30px 7px 10px;
  color: #eaf1ec;
  background: #0d2234;
  border: 1px solid #31536a;
  border-radius: 7px;
  font: inherit;
  font-size: .82rem;
  font-weight: 700;
}

[data-nav-actions] .language-field {
  display: inline-grid;
  width: 128px;
  margin-right: 8px;
  vertical-align: middle;
}

[data-nav-actions] .language-field > span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.topbar,
.app-shell:not(.admin-shell) .topbar {
  position: sticky !important;
  top: 0 !important;
  z-index: 90 !important;
  min-height: 62px !important;
  padding: 10px clamp(16px, 2.5vw, 36px) !important;
  background: rgba(8, 13, 22, 0.88) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 4px 20px -5px rgba(0, 0, 0, 0.35) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 16px !important;
}

:root[data-theme="dark"] .app-shell:not(.admin-shell) .topbar {
  background: rgba(8, 13, 22, 0.88) !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
}

.topbar-context,
.app-shell:not(.admin-shell) .topbar-context {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.875rem;
}

.topbar-context strong {
  font-weight: 700;
  color: #f8fafc;
  letter-spacing: -0.01em;
}

.topbar-context .mobile-menu {
  display: none;
  align-items: center;
  gap: 6px;
  padding: 6px 11px;
  font-size: 0.82rem;
  font-weight: 650;
  color: #f8fafc;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 9px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.topbar-context .mobile-menu:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nx-topbar-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted, #94a3b8);
  border-radius: 8px;
  transition: all 0.15s ease;
  text-decoration: none;
}

.nx-topbar-link:hover {
  color: #f8fafc;
  background: rgba(255, 255, 255, 0.06);
}

.nx-topbar-action-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  font-size: 0.82rem;
  font-weight: 700;
  color: #080d16 !important;
  background: linear-gradient(135deg, #10b981 0%, #34d399 100%) !important;
  border: 1px solid rgba(52, 211, 153, 0.4) !important;
  border-radius: 9px;
  text-decoration: none;
  box-shadow: 0 2px 10px -2px rgba(16, 185, 129, 0.4);
  transition: all 0.18s ease;
  white-space: nowrap;
}

.nx-topbar-action-pill:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px -2px rgba(16, 185, 129, 0.55);
  background: linear-gradient(135deg, #059669 0%, #10b981 100%) !important;
  color: #ffffff !important;
}

.nx-topbar-action-pill svg {
  stroke-width: 2.6;
}

.app-shell:not(.admin-shell) .page {
  width: min(1180px, 100%);
  padding: 30px clamp(18px, 3vw, 36px) 64px;
}

.app-shell:not(.admin-shell) .atlas-overview,
.app-shell:not(.admin-shell) .page-heading,
.app-shell:not(.admin-shell) .products-heading,
.app-shell:not(.admin-shell) .proxy-page-heading {
  padding: 0 0 24px;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--rule);
  border-radius: 0;
  box-shadow: none;
}

.app-shell:not(.admin-shell) .atlas-overview h1,
.app-shell:not(.admin-shell) .page-heading h1,
.app-shell:not(.admin-shell) .products-heading h1,
.app-shell:not(.admin-shell) .proxy-page-heading h1 {
  margin: 5px 0 8px;
  font-size: clamp(1.8rem, 3vw, 2.55rem);
  line-height: 1.08;
  letter-spacing: -.035em;
}

.app-shell:not(.admin-shell) .eyebrow {
  color: var(--muted);
  font-size: .7rem;
  letter-spacing: .1em;
}

.app-shell:not(.admin-shell) .kpi-grid {
  gap: 12px;
  margin-block: 22px;
}

.app-shell:not(.admin-shell) .kpi-grid .card,
.app-shell:not(.admin-shell) .kpi-grid .card:first-child {
  min-height: 112px;
  padding: 19px;
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 10px;
  box-shadow: none;
}

.app-shell:not(.admin-shell) .kpi-grid .kpi {
  margin-top: 8px;
  font-size: clamp(1.45rem, 2.3vw, 2rem);
  letter-spacing: -.035em;
}

.app-shell:not(.admin-shell) .quick-links {
  gap: 10px;
  margin-block: 22px 34px;
}

.app-shell:not(.admin-shell) .quick-link {
  min-height: 92px;
  padding: 17px 18px;
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 9px;
  box-shadow: none;
}

.app-shell:not(.admin-shell) .quick-link:hover {
  transform: translateY(-2px);
  border-color: var(--text);
  box-shadow: 0 6px 18px rgba(10, 24, 18, .08);
}

.app-shell:not(.admin-shell) .quick-link strong {
  font-size: .93rem;
}

.app-shell:not(.admin-shell) .quick-link small {
  margin-top: 5px;
  line-height: 1.45;
}

.app-shell:not(.admin-shell) .atlas-section-head {
  margin: 0 0 14px;
}

.app-shell:not(.admin-shell) .atlas-section-head h2 {
  font-size: 1.25rem;
  letter-spacing: -.02em;
}

.app-shell:not(.admin-shell) .card {
  border: 1px solid var(--rule);
  border-radius: 10px;
  box-shadow: none;
}

.app-shell:not(.admin-shell) .table-wrap {
  border: 0;
  border-radius: 0;
}

.app-shell:not(.admin-shell) .table th {
  color: var(--muted);
  background: transparent;
  border-bottom: 1px solid var(--rule);
  font-size: .7rem;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.app-shell:not(.admin-shell) .table td {
  padding-block: 13px;
  border-bottom-color: var(--rule);
  font-size: .86rem;
}

.app-shell:not(.admin-shell) .btn {
  min-height: 40px;
  border-width: 1px;
  border-radius: 7px;
  box-shadow: none;
  font-size: .84rem;
}

.app-shell:not(.admin-shell) .btn-primary {
  color: #0b170b;
  box-shadow: none;
}

.app-shell:not(.admin-shell) .btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 5px 14px rgba(75, 108, 23, .18);
}

.app-shell:not(.admin-shell) input,
.app-shell:not(.admin-shell) select,
.app-shell:not(.admin-shell) textarea {
  border-width: 1px;
  border-radius: 7px;
  box-shadow: none;
}

.app-shell:not(.admin-shell) .badge,
.app-shell:not(.admin-shell) [class*="status"] {
  border-radius: 6px;
}

@media (max-width: 900px) {
  .app-shell:not(.admin-shell) { grid-template-columns: 1fr; }
  .app-shell:not(.admin-shell) .page { padding-top: 22px; }
  .app-shell:not(.admin-shell) .topbar-actions .section-link { display: none; }
  .app-shell:not(.admin-shell) .atlas-overview,
  .app-shell:not(.admin-shell) .page-heading,
  .app-shell:not(.admin-shell) .products-heading,
  .app-shell:not(.admin-shell) .proxy-page-heading { gap: 18px; }
}

.app-shell:not(.admin-shell) .kpi-grid .card:first-child {
  color: var(--text);
}

.app-shell:not(.admin-shell) .kpi-grid .card:first-child .muted {
  color: var(--muted);
}

/* Catalog and product detail */
.products-dashboard-page { max-width: 1320px; }
.products-grid { gap: 20px; }
.products-grid > article,
.product-card {
  border: 1px solid var(--line) !important;
  border-radius: 20px !important;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.4) !important;
  overflow: hidden;
}
.product-detail-page { min-height: calc(100vh - 72px); padding: 48px 0 80px; }
.nx-product-sheet {
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 22px !important;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6) !important;
  overflow: hidden;
}
.nx-product-head { background: var(--navy) !important; color: var(--text); border-bottom: 1px solid var(--line) !important; }
.nx-product-head .nx-eyebrow,
.nx-product-head p { color: #94a3b8 !important; }
.nx-stock-block { background: rgba(163, 230, 53, 0.15) !important; color: var(--accent) !important; border: 1px solid rgba(163, 230, 53, 0.3) !important; border-radius: 8px; }
.nx-order-panel { background: var(--card); }
.nx-payment-option {
  border: 1px solid var(--line) !important;
  border-radius: 12px !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}
.nx-payment-option.is-active {
  border-color: var(--accent) !important;
  box-shadow: 0 0 16px -2px rgba(163, 230, 53, 0.25) !important;
}

/* Product detail layout */
.product-detail-page { padding: 32px 0 56px !important; }
.product-detail-container { max-width: 1120px !important; }
.nx-product-sheet { box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.5) !important; border-radius: 20px !important; }
.nx-product-head { display: block; padding: 22px 28px !important; }
.nx-product-head h1 { margin: 4px 0 6px !important; font-size: clamp(1.8rem, 3.5vw, 2.4rem) !important; line-height: 1.1; font-weight: 800; }
.nx-product-subtitle { margin: 0 !important; font-size: 0.9rem !important; }
.nx-product-layout { display: grid !important; grid-template-columns: 360px 1fr !important; gap: 24px !important; padding: 24px !important; align-items: start !important; }
.nx-product-info { display: flex !important; flex-direction: column !important; gap: 16px !important; }
.nx-order-panel { padding: 24px !important; border-radius: 16px !important; box-shadow: none !important; }
@media (max-width: 860px) {
  .nx-product-layout { display: flex !important; flex-direction: column !important; padding: 16px !important; gap: 20px !important; }
}
.nx-product-copy h2 { font-size: 1.55rem !important; font-weight: 800; }
.nx-product-copy p { line-height: 1.65; }
.nx-price-preview { padding: 18px !important; border-radius: 12px !important; }
.nx-price-preview strong {
  font-family: 'JetBrains Mono', monospace;
  font-variant-numeric: tabular-nums lining-nums;
  font-size: 1.8rem !important;
}
.nx-field input, .nx-field select {
  min-height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 10px !important;
  background: rgba(14, 22, 37, 0.9) !important;
}
.nx-field input[type="number"] { appearance: textfield; -moz-appearance: textfield; text-align: center; font-weight: 750; }
.nx-field input[type="number"]::-webkit-inner-spin-button,
.nx-field input[type="number"]::-webkit-outer-spin-button { appearance: none; margin: 0; }

.nx-stepper {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.nx-stepper input {
  flex: 1;
  width: 100%;
  padding-inline: 46px !important;
  font-family: 'JetBrains Mono', monospace;
  font-variant-numeric: tabular-nums;
}

.nx-stepper-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #e2e8f0;
  font-size: 1.2rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
  z-index: 2;
}

.nx-stepper-btn:hover {
  background: var(--accent);
  color: var(--ink);
  border-color: var(--accent);
}

.nx-stepper-btn:active {
  transform: translateY(-50%) scale(0.92);
}

.nx-stepper-btn[data-dir="-1"] {
  left: 6px;
}

.nx-stepper-btn[data-dir="1"] {
  right: 6px;
}

:root:not([data-theme="dark"]) .nx-stepper-btn,
:root[data-theme="light"] .nx-stepper-btn {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: #334155;
}

:root:not([data-theme="dark"]) .nx-stepper-btn:hover,
:root[data-theme="light"] .nx-stepper-btn:hover {
  background: #0f172a;
  border-color: #0f172a;
  color: #ffffff;
}

.nx-field-presets { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.nx-field-presets button { min-width: 38px; min-height: 30px; padding: 4px 8px; color: #94a3b8; background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 8px; font: inherit; font-size: .75rem; font-weight: 750; cursor: pointer; transition: all 0.15s ease; }
.nx-field-presets button:hover, .nx-field-presets button.is-active { color: #080d16; background: var(--accent); border-color: var(--accent); }
.nx-payment-section { margin-top: 16px !important; }
.nx-payment-grid { gap: 10px !important; }
.nx-payment-option { min-height: 70px !important; padding: 12px 14px !important; border-radius: 12px !important; }
.nx-wallet-strip { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 12px; padding: 13px 15px; color: #94a3b8; background: rgba(14, 22, 37, 0.85); border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 12px; }
.nx-wallet-strip > span { font-size: .78rem; font-weight: 750; }
.nx-wallet-strip > div { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.nx-wallet-strip strong { padding: 5px 8px; color: var(--text); background: rgba(255, 255, 255, 0.08); border-radius: 6px; font-size: .8rem; font-family: 'JetBrains Mono', monospace; font-variant-numeric: tabular-nums; }
.nx-order-summary { margin-top: 12px !important; padding: 14px 16px !important; border-radius: 12px !important; }
.nx-summary-row { padding: 7px 0 !important; }

@media (max-width: 900px) {
  .nx-product-layout { display: block !important; }
}

@media (max-width: 560px) {
  .nx-product-head { flex-direction: column; padding: 22px 18px !important; }
  .nx-product-layout { padding: 10px !important; }
  .nx-product-info, .nx-order-panel { padding: 18px !important; }
  .nx-form-grid { grid-template-columns: 1fr !important; }
  .nx-wallet-strip { align-items: flex-start; flex-direction: column; }
  .nx-wallet-strip > div { justify-content: flex-start; }
}

/* Login and content pages */
.nx-login-page { background: var(--bg) !important; }
.nx-login-panel {
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 22px !important;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.05) !important;
  background: rgba(14, 22, 37, 0.95) !important;
  backdrop-filter: blur(16px);
  overflow: hidden;
}
.nx-login-page [data-nav-actions] { visibility: hidden; }
.nx-login-main { display: grid !important; place-items: center; min-height: calc(100svh - 138px) !important; padding: 38px 20px !important; }
.nx-login-shell { display: block !important; width: min(100%, 470px) !important; max-width: 470px !important; margin: 0 auto !important; }
.nx-login-intro { display: none !important; }
.nx-login-panel { width: 100%; }
.nx-login-intro h1 { color: var(--text); }
.nx-login-intro > p { color: #94a3b8; }
.nx-login-meta { border-color: rgba(255, 255, 255, 0.1) !important; }
.nx-auth-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 5px; margin-bottom: 24px; background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 12px; }
.nx-auth-tabs button { min-height: 40px; border: 0; border-radius: 8px; color: var(--muted); background: transparent; font: inherit; font-weight: 750; cursor: pointer; transition: all 0.15s ease; }
.nx-auth-tabs button.is-active { color: #080d16; background: var(--accent); box-shadow: 0 2px 10px rgba(163, 230, 53, 0.3); }
.nx-auth-view > p { margin-bottom: 18px; color: var(--muted); }
.nx-auth-form { display: grid; gap: 14px; }
.nx-auth-form label { display: grid; gap: 7px; font-weight: 750; font-size: .88rem; }
.nx-auth-form .btn { margin-top: 4px; width: 100%; }
.nx-auth-divider { display: flex; align-items: center; gap: 12px; margin: 22px 0; color: var(--muted); font-size: .78rem; text-transform: uppercase; }
.nx-auth-divider::before, .nx-auth-divider::after { content: ""; flex: 1; height: 1px; background: var(--rule); }
.nx-discord-login { display: grid !important; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; width: 100%; }
.nx-discord-icon { display: inline-grid; place-items: center; width: 30px; height: 30px; padding: 5px; color: var(--text); background: #5865f2; border-radius: 8px; }
.nx-discord-icon img { display: block; width: 20px; height: 20px; }
.nx-auth-status { min-height: 20px; margin: 14px 0 0; color: var(--success); font-size: .85rem; font-weight: 700; }
.nx-auth-status.is-error { color: var(--danger); }
.nx-user-avatar, .profile-avatar { display: inline-grid; place-items: center; flex: 0 0 auto; width: 34px; height: 34px; object-fit: cover; border: 1.5px solid rgba(255, 255, 255, 0.2); border-radius: 50%; background: var(--accent); color: var(--ink); font-weight: 800; }
.profile-identity { display: flex; align-items: center; gap: 14px; }
.profile-avatar { width: 58px; height: 58px; }
.profile-identity h2 { margin: 2px 0 0; font-weight: 800; }
.section > .container > .section-title,
.section > .container > h1 { margin-bottom: 28px; }
.section > .container > .card {
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.35);
}
.faq-item { padding: 24px 4px; border-bottom: 1px solid var(--line); }
.faq-item:last-child { border-bottom: 0; }

@media (max-width: 900px) {
  .neo-hero-grid, .neo-product-card { grid-template-columns: 1fr; }
  .terminal-card { transform: none; }
  .neo-product-visual { border-right: 0; border-bottom: 2px solid var(--line); }
  .neo-signal-grid { grid-template-columns: repeat(2, 1fr); }
  .neo-signal-grid > div:nth-child(2) { border-right: 0; }
  .neo-signal-grid > div:nth-child(-n+2) { border-bottom: 1px solid #274357; }
  .neo-steps { grid-template-columns: 1fr; }
  .app-shell:not(.admin-shell) { grid-template-columns: 1fr !important; }
  .app-shell:not(.admin-shell) .main-panel,
  .app-shell:not(.admin-shell) .page,
  .app-shell:not(.admin-shell) .content,
  .app-shell:not(.admin-shell) .card,
  .app-shell:not(.admin-shell) .proxy-item,
  .app-shell:not(.admin-shell) .proxy-main {
    min-width: 0;
    max-width: 100%;
  }
  .app-shell:not(.admin-shell) .main-panel {
    overflow-x: hidden;
    overflow-y: visible;
  }
  .app-shell:not(.admin-shell) .sidebar {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    z-index: 120 !important;
    width: min(285px, 84vw) !important;
    height: 100dvh !important;
    max-height: 100dvh !important;
    padding: 18px 14px;
    gap: 12px;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    box-shadow: 10px 0 30px rgba(0, 0, 0, 0.45) !important;
    transform: translateX(-100%) !important;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
  }
  .app-shell:not(.admin-shell) .sidebar.open {
    transform: translateX(0) !important;
  }
  .app-shell:not(.admin-shell) .sidebar-backdrop.show {
    display: block !important;
    position: fixed !important;
    inset: 0 !important;
    background: rgba(0, 0, 0, 0.65) !important;
    z-index: 110 !important;
  }
  .app-shell:not(.admin-shell) .proxy-credential {
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
  }
  .app-shell:not(.admin-shell) .proxy-list,
  .app-shell:not(.admin-shell) .proxy-toolbar,
  .app-shell:not(.admin-shell) .proxy-item-v2 {
    min-width: 0;
    max-width: 100%;
  }
  .app-shell:not(.admin-shell) .sidebar .brand {
    min-height: 48px;
    padding: 0 44px 14px 6px;
  }
  .app-shell:not(.admin-shell) .brand-logo { width: 32px; height: 32px; }
  .app-shell:not(.admin-shell) .side-nav { gap: 3px; }
  .app-shell:not(.admin-shell) .nav-group-label {
    padding: 13px 10px 4px;
    font-size: .65rem;
  }
  .app-shell:not(.admin-shell) .side-nav a {
    min-height: 40px;
    padding: 8px 11px;
    border-radius: 8px;
    font-size: .84rem;
  }
  .app-shell:not(.admin-shell) .side-nav a.active {
    box-shadow: 0 2px 10px rgba(163, 230, 53, 0.15);
  }
  .app-shell:not(.admin-shell) .sidebar-footer {
    gap: 6px;
    padding-top: 12px;
  }
  .app-shell:not(.admin-shell) .theme-toggle,
  .app-shell:not(.admin-shell) .sidebar-footer .btn { min-height: 38px; padding: 8px 10px; }
  .sidebar-close {
    position: absolute;
    top: 17px;
    right: 13px;
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    padding: 0;
    color: var(--text);
    background: #15344b;
    border: 1px solid #31536a;
    border-radius: 8px;
    font-size: 1.65rem;
    line-height: 1;
    cursor: pointer;
  }
  .sidebar-backdrop.show { backdrop-filter: blur(2px); }
  body.sidebar-open { overflow: hidden; touch-action: none; }
  body.sidebar-open .sidebar { touch-action: pan-y; }
  .topbar, .atlas-overview, .page-heading, .products-heading, .proxy-page-heading {
    max-width: 100%;
    overflow: hidden;
  }
}

@media (max-width: 640px) {
  h1 { font-size: clamp(2.55rem, 13vw, 4.1rem); }
  .public-nav-inner { min-height: 64px; }
  .public-nav-links { display: none; }
  .neo-hero { padding-top: 54px; }
  .neo-hero-grid { gap: 44px; }
  .terminal-grid { grid-template-columns: 1fr; }
  .terminal-grid .wide { grid-column: auto; }
  .terminal-grid > div { border-right: 0; border-bottom: 1px solid #31536a !important; }
  .terminal-grid > div:last-child { border-bottom: 0 !important; }
  .neo-signal-grid { grid-template-columns: 1fr 1fr; }
  .neo-signal-grid > div { padding: 17px 14px; }
  .neo-section-head { align-items: flex-start; flex-direction: column; }
  .neo-product-visual, .neo-product-copy { padding: 25px 20px; }
  .app-shell:not(.admin-shell) .page { padding: 22px 14px 44px; }
  .app-shell:not(.admin-shell) .topbar { padding: 10px 12px; }
  .topbar-actions { gap: 6px; }
  .topbar-actions .btn { padding-inline: 10px; }
  .app-shell:not(.admin-shell) .atlas-overview,
  .app-shell:not(.admin-shell) .page-heading,
  .app-shell:not(.admin-shell) .products-heading,
  .app-shell:not(.admin-shell) .proxy-page-heading { padding: 21px 18px; }
  .nx-login-main { min-height: calc(100svh - 64px) !important; padding: 22px 14px !important; }
  .nx-login-footer { display: none !important; }
}

/* ========================================================
   MODERN DASHBOARD REFINEMENTS & ANIMATIONS
   ======================================================== */

@keyframes dashboard-fade-up {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.app-shell:not(.admin-shell) .page {
  animation: dashboard-fade-up 0.35s cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* Overview Banner styling */
.app-shell:not(.admin-shell) .atlas-overview {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  gap: 20px !important;
  padding: 24px 28px !important;
  background: linear-gradient(135deg, rgba(13, 34, 52, 0.85) 0%, rgba(7, 22, 36, 0.95) 100%) !important;
  border: 1px solid rgba(114, 215, 255, 0.22) !important;
  border-radius: 16px !important;
  box-shadow: 0 14px 34px -10px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
  position: relative !important;
  overflow: hidden !important;
  margin-bottom: 24px !important;
}

.dashboard-gateway-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px;
  margin-bottom: 10px;
  background: rgba(184, 243, 74, 0.1);
  border: 1px solid rgba(184, 243, 74, 0.3);
  border-radius: 999px;
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.dashboard-gateway-pill small {
  color: #a7bcc5;
  font-weight: 600;
  text-transform: none;
  letter-spacing: normal;
  border-left: 1px solid rgba(255, 255, 255, 0.15);
  padding-left: 8px;
}

/* ========================================================
   THEME STYLES: DARK THEME & LIGHT THEME DEDICATED PALETTES
   ======================================================== */

/* --- DARK THEME OVERRIDES --- */
:root[data-theme="dark"] .app-shell:not(.admin-shell) .atlas-overview h1,
:root[data-theme="dark"] .app-shell:not(.admin-shell) .page-heading h1,
:root[data-theme="dark"] .app-shell:not(.admin-shell) .proxy-page-heading h1 {
  color: #ffffff !important;
  margin: 4px 0 6px !important;
  font-size: clamp(1.8rem, 2.8vw, 2.4rem) !important;
  letter-spacing: -0.03em !important;
}

:root[data-theme="dark"] .app-shell:not(.admin-shell) .atlas-overview .muted,
:root[data-theme="dark"] .app-shell:not(.admin-shell) .page-heading .muted,
:root[data-theme="dark"] .app-shell:not(.admin-shell) .proxy-page-heading .muted {
  color: #9cb5c0 !important;
  font-size: 0.92rem !important;
}

:root[data-theme="dark"] .app-shell:not(.admin-shell) .kpi-grid .card {
  position: relative !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  min-height: 120px !important;
  padding: 20px 22px !important;
  background: linear-gradient(180deg, #0d2436 0%, #081a29 100%) !important;
  border: 1px solid #1c3c52 !important;
  border-radius: 14px !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25) !important;
  overflow: hidden !important;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s ease, box-shadow 0.2s ease !important;
}

:root[data-theme="dark"] .app-shell:not(.admin-shell) .kpi-grid .card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), transparent);
  transition: height 0.2s ease;
}

:root[data-theme="dark"] .app-shell:not(.admin-shell) .kpi-grid .card:nth-child(2)::before {
  background: linear-gradient(90deg, #72d7ff, transparent);
}

:root[data-theme="dark"] .app-shell:not(.admin-shell) .kpi-grid .card:nth-child(3)::before {
  background: linear-gradient(90deg, #b8f34a, transparent);
}

:root[data-theme="dark"] .app-shell:not(.admin-shell) .kpi-grid .card:nth-child(4)::before {
  background: linear-gradient(90deg, #99efac, transparent);
}

:root[data-theme="dark"] .app-shell:not(.admin-shell) .kpi-grid .card:hover {
  transform: translateY(-3px) !important;
  border-color: #315b7a !important;
  box-shadow: 0 10px 24px -6px rgba(0, 0, 0, 0.4), 0 0 14px -3px rgba(114, 215, 255, 0.15) !important;
}

:root[data-theme="dark"] .app-shell:not(.admin-shell) .kpi-grid .card:hover::before {
  height: 4px;
}

:root[data-theme="dark"] .app-shell:not(.admin-shell) .kpi-grid .card .muted {
  font-size: 0.72rem !important;
  font-weight: 800 !important;
  letter-spacing: 0.06em !important;
  text-transform: uppercase !important;
  color: #7b97a5 !important;
}

:root[data-theme="dark"] .app-shell:not(.admin-shell) .kpi-grid .kpi {
  margin-top: 10px !important;
  font-size: clamp(1.4rem, 2vw, 1.85rem) !important;
  font-weight: 850 !important;
  letter-spacing: -0.03em !important;
  color: #ffffff !important;
}

:root[data-theme="dark"] .app-shell:not(.admin-shell) .quick-link {
  position: relative !important;
  display: block !important;
  min-height: 96px !important;
  padding: 18px 20px !important;
  background: linear-gradient(180deg, #0b2030 0%, #071724 100%) !important;
  border: 1px solid #1a384e !important;
  border-radius: 12px !important;
  text-decoration: none !important;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease !important;
  overflow: hidden !important;
}

:root[data-theme="dark"] .app-shell:not(.admin-shell) .quick-link strong {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  color: #ffffff !important;
  font-size: 0.95rem !important;
  font-weight: 800 !important;
  transition: color 0.15s ease, transform 0.15s ease !important;
}

:root[data-theme="dark"] .app-shell:not(.admin-shell) .quick-link small {
  display: block !important;
  margin-top: 6px !important;
  color: #8fa6b2 !important;
  font-size: 0.78rem !important;
  line-height: 1.45 !important;
}

:root[data-theme="dark"] .app-shell:not(.admin-shell) .quick-link:hover {
  transform: translateY(-2px) !important;
  border-color: var(--accent) !important;
  box-shadow: 0 8px 20px -4px rgba(0, 0, 0, 0.4), 0 0 12px -2px rgba(184, 243, 74, 0.2) !important;
}

:root[data-theme="dark"] .app-shell:not(.admin-shell) .split .card {
  padding: 24px !important;
  background: #091d2c !important;
  border: 1px solid #1c3c52 !important;
  border-radius: 14px !important;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.3) !important;
}

:root[data-theme="dark"] .app-shell:not(.admin-shell) .split .card h3 {
  margin: 0 0 16px !important;
  font-size: 1.15rem !important;
  color: #ffffff !important;
  letter-spacing: -0.02em !important;
}

:root[data-theme="dark"] .app-shell:not(.admin-shell) .table th {
  padding: 10px 14px !important;
  font-size: 0.72rem !important;
  font-weight: 800 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.06em !important;
  color: #7b97a5 !important;
  border-bottom: 1px solid #1a394e !important;
}

:root[data-theme="dark"] .app-shell:not(.admin-shell) .table td {
  padding: 12px 14px !important;
  font-size: 0.85rem !important;
  color: #d1dfe6 !important;
  border-bottom: 1px solid #122a3d !important;
  transition: background 0.15s ease !important;
}

:root[data-theme="dark"] .app-shell:not(.admin-shell) .table tbody tr:hover td {
  background: rgba(114, 215, 255, 0.05) !important;
  color: #ffffff !important;
}

:root[data-theme="dark"] .products-grid > article,
:root[data-theme="dark"] .product-card {
  background: linear-gradient(180deg, #0d2436 0%, #081928 100%) !important;
  border: 1.5px solid #1c3c52 !important;
  border-radius: 16px !important;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3) !important;
}

:root[data-theme="dark"] .nx-product-sheet {
  background: linear-gradient(180deg, #0a1f2f 0%, #061522 100%) !important;
  border: 1.5px solid #234762 !important;
  box-shadow: 0 16px 40px -10px rgba(0, 0, 0, 0.55), 0 0 24px -6px rgba(114, 215, 255, 0.12) !important;
}

:root[data-theme="dark"] .faq-item {
  border-bottom: 1px solid #1a384e !important;
}

:root[data-theme="dark"] .faq-item h3 {
  color: #ffffff !important;
}

:root[data-theme="dark"] .faq-item p {
  color: #98b0bd !important;
}

:root[data-theme="dark"] .proxy-wallet-card {
  background: #0c1f2e !important;
  border-color: #1a394d !important;
  color: #ffffff !important;
}

/* --- LIGHT THEME DEDICATED CLEAN & HIGH-CONTRAST PALETTE --- */
:root:not([data-theme="dark"]),
:root[data-theme="light"] {
  --bg: #f8fafc;
  --card: #ffffff;
  --surface: #ffffff;
  --surface2: #f1f5f9;
  --text: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --rule: #e2e8f0;
  --accent: #22c55e;
  --ink: #0f172a;
}

:root:not([data-theme="dark"]) .app-shell,
:root[data-theme="light"] .app-shell {
  background: #f8fafc !important;
  color: #0f172a !important;
}

:root:not([data-theme="dark"]) .sidebar,
:root[data-theme="light"] .sidebar {
  background: #ffffff !important;
  border-right: 1px solid #e2e8f0 !important;
  color: #0f172a !important;
}

:root:not([data-theme="dark"]) .sidebar .brand,
:root[data-theme="light"] .sidebar .brand {
  color: #0f172a !important;
  border-bottom: 1px solid #e2e8f0 !important;
}

:root:not([data-theme="dark"]) .sidebar .nav-group-label,
:root[data-theme="light"] .sidebar .nav-group-label {
  color: #64748b !important;
}

:root:not([data-theme="dark"]) .sidebar .side-nav a,
:root[data-theme="light"] .sidebar .side-nav a {
  color: #334155 !important;
  background: transparent !important;
}

:root:not([data-theme="dark"]) .sidebar .side-nav a:hover,
:root[data-theme="light"] .sidebar .side-nav a:hover {
  background: #f1f5f9 !important;
  color: #0f172a !important;
}

:root:not([data-theme="dark"]) .sidebar .side-nav a.active,
:root[data-theme="light"] .sidebar .side-nav a.active {
  background: #0f172a !important;
  color: #ffffff !important;
  border-color: #0f172a !important;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.18) !important;
}

:root:not([data-theme="dark"]) .sidebar-footer,
:root[data-theme="light"] .sidebar-footer {
  border-top: 1px solid #e2e8f0 !important;
}

:root:not([data-theme="dark"]) .sidebar-footer .btn,
:root[data-theme="light"] .sidebar-footer .btn,
:root:not([data-theme="dark"]) .theme-toggle,
:root[data-theme="light"] .theme-toggle {
  color: #334155 !important;
  border-color: #cbd5e1 !important;
  background: #ffffff !important;
}

:root:not([data-theme="dark"]) .topbar,
:root[data-theme="light"] .topbar {
  background: rgba(255, 255, 255, 0.94) !important;
  border-bottom: 1px solid #e2e8f0 !important;
  backdrop-filter: blur(12px) !important;
  color: #0f172a !important;
}

:root:not([data-theme="dark"]) .topbar-context span,
:root[data-theme="light"] .topbar-context span {
  color: #64748b !important;
}

:root:not([data-theme="dark"]) .topbar-context strong,
:root[data-theme="light"] .topbar-context strong {
  color: #0f172a !important;
}

:root:not([data-theme="dark"]) .atlas-overview h1,
:root[data-theme="light"] .atlas-overview h1,
:root:not([data-theme="dark"]) .page-heading h1,
:root[data-theme="light"] .page-heading h1,
:root:not([data-theme="dark"]) .proxy-page-heading h1,
:root[data-theme="light"] .proxy-page-heading h1 {
  color: #0f172a !important;
}

:root:not([data-theme="dark"]) .muted,
:root[data-theme="light"] .muted {
  color: #64748b !important;
}

:root:not([data-theme="dark"]) .kpi-grid .card,
:root[data-theme="light"] .kpi-grid .card {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 14px !important;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04) !important;
}

:root:not([data-theme="dark"]) .kpi-grid .card .muted,
:root[data-theme="light"] .kpi-grid .card .muted {
  color: #64748b !important;
}

:root:not([data-theme="dark"]) .kpi-grid .kpi,
:root[data-theme="light"] .kpi-grid .kpi {
  color: #0f172a !important;
}

:root:not([data-theme="dark"]) .quick-link,
:root[data-theme="light"] .quick-link {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04) !important;
}

:root:not([data-theme="dark"]) .quick-link strong,
:root[data-theme="light"] .quick-link strong {
  color: #0f172a !important;
}

:root:not([data-theme="dark"]) .quick-link small,
:root[data-theme="light"] .quick-link small {
  color: #64748b !important;
}

:root:not([data-theme="dark"]) .card,
:root[data-theme="light"] .card,
:root:not([data-theme="dark"]) .split .card,
:root[data-theme="light"] .split .card {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04) !important;
}

:root:not([data-theme="dark"]) .card h3,
:root[data-theme="light"] .card h3,
:root:not([data-theme="dark"]) .split .card h3,
:root[data-theme="light"] .split .card h3 {
  color: #0f172a !important;
}

:root:not([data-theme="dark"]) .table-wrap,
:root[data-theme="light"] .table-wrap {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
}

:root:not([data-theme="dark"]) .table th,
:root[data-theme="light"] .table th {
  background: #f8fafc !important;
  color: #475569 !important;
  border-bottom: 1px solid #e2e8f0 !important;
}

:root:not([data-theme="dark"]) .table td,
:root[data-theme="light"] .table td {
  color: #1e293b !important;
  border-bottom: 1px solid #f1f5f9 !important;
}

:root:not([data-theme="dark"]) .table tbody tr:hover td,
:root[data-theme="light"] .table tbody tr:hover td {
  background: #f8fafc !important;
}

:root:not([data-theme="dark"]) .proxy-item-v2,
:root[data-theme="light"] .proxy-item-v2 {
  background: #ffffff !important;
  border: 1.5px solid #e2e8f0 !important;
  border-radius: 14px !important;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04) !important;
}

:root:not([data-theme="dark"]) .proxy-item-v2 .proxy-credential,
:root[data-theme="light"] .proxy-item-v2 .proxy-credential {
  background: #f1f5f9 !important;
  border: 1px solid #e2e8f0 !important;
  color: #0f172a !important;
}

:root:not([data-theme="dark"]) .proxy-item-v2 .proxy-info-box,
:root[data-theme="light"] .proxy-item-v2 .proxy-info-box {
  border-top: 1px solid #e2e8f0 !important;
}

:root:not([data-theme="dark"]) .proxy-item-v2 .proxy-info-box span,
:root[data-theme="light"] .proxy-item-v2 .proxy-info-box span {
  color: #64748b !important;
}

:root:not([data-theme="dark"]) .proxy-item-v2 .proxy-info-box strong,
:root[data-theme="light"] .proxy-item-v2 .proxy-info-box strong {
  color: #0f172a !important;
}

:root:not([data-theme="dark"]) .proxy-wallet-card,
:root[data-theme="light"] .proxy-wallet-card {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04) !important;
  color: #0f172a !important;
}

:root:not([data-theme="dark"]) .proxy-wallet-copy span,
:root[data-theme="light"] .proxy-wallet-copy span {
  color: #64748b !important;
}

:root:not([data-theme="dark"]) .proxy-wallet-copy strong,
:root[data-theme="light"] .proxy-wallet-copy strong {
  color: #0f172a !important;
}

:root:not([data-theme="dark"]) .proxy-toolbar input,
:root[data-theme="light"] .proxy-toolbar input,
:root:not([data-theme="dark"]) .proxy-toolbar select,
:root[data-theme="light"] .proxy-toolbar select,
:root:not([data-theme="dark"]) .nx-field input,
:root[data-theme="light"] .nx-field input,
:root:not([data-theme="dark"]) .nx-field select,
:root[data-theme="light"] .nx-field select,
:root:not([data-theme="dark"]) input.input,
:root[data-theme="light"] input.input,
:root:not([data-theme="dark"]) select.select,
:root[data-theme="light"] select.select,
:root:not([data-theme="dark"]) input:not([type="checkbox"]):not([type="radio"]),
:root[data-theme="light"] input:not([type="checkbox"]):not([type="radio"]),
:root:not([data-theme="dark"]) select,
:root[data-theme="light"] select {
  background: #ffffff !important;
  border: 1.5px solid #cbd5e1 !important;
  color: #0f172a !important;
}

:root:not([data-theme="dark"]) .nx-wallet-strip,
:root[data-theme="light"] .nx-wallet-strip {
  background: #f1f5f9 !important;
  border: 1px solid #e2e8f0 !important;
  color: #475569 !important;
}

:root:not([data-theme="dark"]) .nx-wallet-strip strong,
:root[data-theme="light"] .nx-wallet-strip strong {
  background: #ffffff !important;
  color: #0f172a !important;
  border: 1px solid #cbd5e1 !important;
}

:root:not([data-theme="dark"]) .nx-order-panel,
:root[data-theme="light"] .nx-order-panel {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  color: #0f172a !important;
}

:root:not([data-theme="dark"]) .nx-order-summary,
:root[data-theme="light"] .nx-order-summary {
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
}

:root:not([data-theme="dark"]) .btn-ghost,
:root[data-theme="light"] .btn-ghost {
  background: #ffffff !important;
  border-color: #cbd5e1 !important;
  color: #1e293b !important;
}

:root:not([data-theme="dark"]) .btn-ghost:hover,
:root[data-theme="light"] .btn-ghost:hover {
  background: #f1f5f9 !important;
  color: #0f172a !important;
}

:root:not([data-theme="dark"]) .products-grid > article,
:root[data-theme="light"] .products-grid > article,
:root:not([data-theme="dark"]) .product-card,
:root[data-theme="light"] .product-card {
  background: #ffffff !important;
  border: 1.5px solid #e2e8f0 !important;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04) !important;
}

:root:not([data-theme="dark"]) .product-category-banner,
:root[data-theme="light"] .product-category-banner {
  background: #f1f5f9 !important;
  border-bottom: 1px solid #e2e8f0 !important;
  color: #0369a1 !important;
}

:root:not([data-theme="dark"]) .product-category-banner.credit,
:root[data-theme="light"] .product-category-banner.credit {
  background: #f0fdf4 !important;
  color: #15803d !important;
}

:root:not([data-theme="dark"]) .nx-product-sheet,
:root[data-theme="light"] .nx-product-sheet {
  background: #ffffff !important;
  border: 1.5px solid #e2e8f0 !important;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08) !important;
}

:root:not([data-theme="dark"]) .nx-product-head,
:root[data-theme="light"] .nx-product-head {
  background: #f8fafc !important;
  border-bottom: 1px solid #e2e8f0 !important;
  color: #0f172a !important;
}

:root:not([data-theme="dark"]) .nx-price-preview,
:root[data-theme="light"] .nx-price-preview {
  background: #f1f5f9 !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: none !important;
}

:root:not([data-theme="dark"]) .nx-price-preview strong,
:root[data-theme="light"] .nx-price-preview strong {
  color: #0f172a !important;
  text-shadow: none !important;
}

:root:not([data-theme="dark"]) .nx-field-presets button,
:root[data-theme="light"] .nx-field-presets button {
  background: #f8fafc !important;
  border: 1px solid #cbd5e1 !important;
  color: #334155 !important;
}

:root:not([data-theme="dark"]) .nx-field-presets button.is-active,
:root[data-theme="light"] .nx-field-presets button.is-active {
  background: #0f172a !important;
  color: #ffffff !important;
  border-color: #0f172a !important;
}

:root:not([data-theme="dark"]) .nx-payment-option,
:root[data-theme="light"] .nx-payment-option {
  background: #ffffff !important;
  border: 1.5px solid #e2e8f0 !important;
}

:root:not([data-theme="dark"]) .nx-payment-option.is-active,
:root[data-theme="light"] .nx-payment-option.is-active {
  border-color: #0f172a !important;
  background: #f1f5f9 !important;
}

:root:not([data-theme="dark"]) .faq-item,
:root[data-theme="light"] .faq-item {
  border-bottom: 1px solid #e2e8f0 !important;
  background: transparent !important;
}

:root:not([data-theme="dark"]) .faq-item h3,
:root[data-theme="light"] .faq-item h3 {
  color: #0f172a !important;
}

:root:not([data-theme="dark"]) .faq-item p,
:root[data-theme="light"] .faq-item p {
  color: #475569 !important;
}

/* --- BADGES: HIGH CONTRAST IN BOTH THEMES --- */
.badge,
.status-badge {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  padding: 4px 10px !important;
  border-radius: 999px !important;
  font-size: 0.72rem !important;
  font-weight: 800 !important;
  letter-spacing: 0.04em !important;
}

.badge-success,
[data-status="success"] {
  background: rgba(34, 197, 94, 0.15) !important;
  border: 1px solid rgba(34, 197, 94, 0.45) !important;
  color: #16a34a !important;
}

:root[data-theme="dark"] .badge-success,
:root[data-theme="dark"] [data-status="success"] {
  color: #86efac !important;
}

.badge-pending,
[data-status="pending"],
[data-status="processing"] {
  background: rgba(234, 179, 8, 0.15) !important;
  border: 1px solid rgba(234, 179, 8, 0.45) !important;
  color: #ca8a04 !important;
}

:root[data-theme="dark"] .badge-pending,
:root[data-theme="dark"] [data-status="pending"],
:root[data-theme="dark"] [data-status="processing"] {
  color: #fde047 !important;
}

.badge-failed,
[data-status="failed"] {
  background: rgba(239, 68, 68, 0.15) !important;
  border: 1px solid rgba(239, 68, 68, 0.45) !important;
  color: #dc2626 !important;
}

:root[data-theme="dark"] .badge-failed,
:root[data-theme="dark"] [data-status="failed"] {
  color: #fca5a5 !important;
}

.badge-refunded,
[data-status="refunded"],
.badge.warn {
  background: rgba(245, 158, 11, 0.15) !important;
  border: 1px solid rgba(245, 158, 11, 0.45) !important;
  color: #d97706 !important;
}

:root[data-theme="dark"] .badge-refunded,
:root[data-theme="dark"] [data-status="refunded"],
:root[data-theme="dark"] .badge.warn {
  color: #fbbf24 !important;
}

/* --- SCROLL REVEAL ANIMATIONS --- */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.55s cubic-bezier(0.16, 1, 0.3, 1), transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal-on-scroll.is-revealed {
  opacity: 1 !important;
  transform: translateY(0) !important;
}



/* Scroll Reveal Animations */
[data-scroll-reveal] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.2, 0.8, 0.2, 1), 
              transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
  will-change: opacity, transform;
}

[data-scroll-reveal].is-revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ========================================================
   PREMIUM NAVBAR ACCOUNT & BALANCE PILLS
   ======================================================== */
.nx-nav-account {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.nx-nav-balances {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.nx-nav-balance-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px 4px 6px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 750;
  letter-spacing: -0.01em;
  transition: transform 0.18s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.18s ease, border-color 0.18s ease;
  backdrop-filter: blur(8px);
}

.nx-nav-balance-pill:hover {
  transform: translateY(-1.5px);
}

.nx-nav-balance-pill .nx-pill-tag {
  display: inline-grid;
  place-items: center;
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Dark theme balance pills */
:root[data-theme="dark"] .nx-nav-balance-pill.is-idr,
:root:not([data-theme="light"]) .nx-nav-balance-pill.is-idr {
  background: rgba(14, 165, 233, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.35);
  color: #e0f2fe;
}

:root[data-theme="dark"] .nx-nav-balance-pill.is-idr:hover,
:root:not([data-theme="light"]) .nx-nav-balance-pill.is-idr:hover {
  border-color: #38bdf8;
  box-shadow: 0 0 14px -2px rgba(56, 189, 248, 0.35);
}

:root[data-theme="dark"] .nx-nav-balance-pill.is-idr .nx-pill-tag,
:root:not([data-theme="light"]) .nx-nav-balance-pill.is-idr .nx-pill-tag {
  background: linear-gradient(135deg, #0284c7, #0369a1);
  color: #ffffff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

:root[data-theme="dark"] .nx-nav-balance-pill.is-wl,
:root:not([data-theme="light"]) .nx-nav-balance-pill.is-wl {
  background: rgba(234, 179, 8, 0.12);
  border: 1px solid rgba(250, 204, 21, 0.35);
  color: #fef08a;
}

:root[data-theme="dark"] .nx-nav-balance-pill.is-wl:hover,
:root:not([data-theme="light"]) .nx-nav-balance-pill.is-wl:hover {
  border-color: #facc15;
  box-shadow: 0 0 14px -2px rgba(250, 204, 21, 0.35);
}

:root[data-theme="dark"] .nx-nav-balance-pill.is-wl .nx-pill-tag,
:root:not([data-theme="light"]) .nx-nav-balance-pill.is-wl .nx-pill-tag {
  background: linear-gradient(135deg, #eab308, #ca8a04);
  color: #000000;
  font-weight: 900;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* Light theme balance pills */
:root[data-theme="light"] .nx-nav-balance-pill.is-idr {
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  color: #0369a1;
}

:root[data-theme="light"] .nx-nav-balance-pill.is-idr:hover {
  border-color: #0284c7;
  box-shadow: 0 2px 8px rgba(2, 132, 199, 0.15);
}

:root[data-theme="light"] .nx-nav-balance-pill.is-idr .nx-pill-tag {
  background: #0284c7;
  color: #ffffff;
}

:root[data-theme="light"] .nx-nav-balance-pill.is-wl {
  background: #fefce8;
  border: 1px solid #fef08a;
  color: #854d0e;
}

:root[data-theme="light"] .nx-nav-balance-pill.is-wl:hover {
  border-color: #ca8a04;
  box-shadow: 0 2px 8px rgba(202, 138, 4, 0.15);
}

:root[data-theme="light"] .nx-nav-balance-pill.is-wl .nx-pill-tag {
  background: #ca8a04;
  color: #ffffff;
}

/* User chip in navbar */
.nx-user-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px 4px 4px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 750;
  transition: transform 0.18s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.18s ease, border-color 0.18s ease;
}

.nx-user-chip:hover {
  transform: translateY(-1.5px);
}

:root[data-theme="dark"] .nx-user-chip,
:root:not([data-theme="light"]) .nx-user-chip {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.07) 0%, rgba(255, 255, 255, 0.03) 100%);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #ffffff;
}

:root[data-theme="dark"] .nx-user-chip:hover,
:root:not([data-theme="light"]) .nx-user-chip:hover {
  border-color: rgba(255, 255, 255, 0.35);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

:root[data-theme="light"] .nx-user-chip {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  color: #0f172a;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.05);
}

:root[data-theme="light"] .nx-user-chip:hover {
  border-color: #cbd5e1;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
}

.nx-user-chip .nx-user-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.nx-user-chip-name {
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Dashboard Greeting Highlight */
.app-shell:not(.admin-shell) .atlas-overview h1 [data-user-name],
.atlas-overview h1 [data-user-name] {
  display: inline-block;
  background: linear-gradient(135deg, #38bdf8 0%, #818cf8 50%, #c084fc 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
  font-weight: 900 !important;
  letter-spacing: -0.02em !important;
  filter: drop-shadow(0 2px 10px rgba(56, 189, 248, 0.25));
}



/* ─── QRIS Modal ─── */
.modal-overlay {
  position: fixed; inset: 0; z-index: 999;
  background: rgba(2, 8, 12, .7);
  backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  animation: fadeIn .25s ease-out;
}
.modal-overlay.hidden { display: none; }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.qris-modal {
  position: relative;
  width: 100%; max-width: 430px;
  background: #0d1726;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.05);
  overflow: hidden;
  animation: modalSlide .3s cubic-bezier(.16, 1, .3, 1);
}
@keyframes modalSlide {
  from { opacity: 0; transform: translateY(30px) scale(.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-close {
  position: absolute; top: 16px; right: 16px;
  width: 30px; height: 30px;
  display: grid; place-items: center;
  border-radius: 8px; border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05); color: #94a3b8;
  cursor: pointer;
  transition: all .15s ease;
}
.modal-close:hover { background: rgba(255, 255, 255, 0.15); color: #ffffff; }

.qris-header {
  padding: 24px 24px 0;
  text-align: center;
}
.qris-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 4px 14px; border-radius: 999px;
  background: rgba(163, 230, 53, 0.12);
  border: 1px solid rgba(163, 230, 53, 0.25);
  color: #a3e635;
  font-size: .72rem; font-weight: 700;
  margin-bottom: 12px;
}
.qris-pill .pulse {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #a3e635;
  display: inline-block;
}
.qris-header h3 { font-size: 1.3rem; font-weight: 700; color: #f8fafc; margin: 0 0 6px; letter-spacing: -0.02em; }
.qris-header p { font-size: .8rem; color: #94a3b8; max-width: 320px; margin: 0 auto; line-height: 1.45; }

.qris-body { padding: 20px 24px 22px; text-align: center; }

.qr-frame {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  padding: 16px; margin-bottom: 14px;
  border-radius: 16px;
  background: #080f1a;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.qr-placeholder { color: #94a3b8; }
.qr-corner {
  position: absolute; width: 22px; height: 22px;
  border: 3px solid #a3e635; pointer-events: none;
}
.qr-corner.tl { top: 6px; left: 6px; border-right: 0; border-bottom: 0; border-radius: 6px 0 0 0; }
.qr-corner.tr { top: 6px; right: 6px; border-left: 0; border-bottom: 0; border-radius: 0 6px 0 0; }
.qr-corner.bl { bottom: 6px; left: 6px; border-right: 0; border-top: 0; border-radius: 0 0 0 6px; }
.qr-corner.br { bottom: 6px; right: 6px; border-left: 0; border-top: 0; border-radius: 0 0 6px 0; }

.qris-amount { margin-bottom: 12px; }
.qris-amount small { display: block; color: #94a3b8; font-size: .72rem; font-weight: 600; margin-bottom: 2px; }
.qris-amount strong { font-size: 1.8rem; font-weight: 800; color: #a3e635; letter-spacing: -0.02em; }

.qris-timer {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 16px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: .78rem; color: #94a3b8; margin-bottom: 18px;
}
.qris-timer svg { color: #94a3b8; }
.qris-timer strong { color: #f8fafc; font-weight: 700; }

.qris-actions { display: flex; gap: 12px; justify-content: center; }
.qris-btn-status {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 9px 20px; border-radius: 10px;
  background: #a3e635; color: #090e1a;
  font-weight: 700; font-size: .82rem;
  border: none; cursor: pointer; transition: all .15s ease;
}
.qris-btn-status:hover { background: #bef264; transform: translateY(-1px); }
.qris-btn-status:disabled { opacity: .7; cursor: not-allowed; transform: none; }

.qris-btn-download {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 9px 18px; border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #f8fafc; font-weight: 600; font-size: .82rem;
  cursor: pointer; transition: all .15s ease;
}
.qris-btn-download:hover { background: rgba(255, 255, 255, 0.12); color: #ffffff; transform: translateY(-1px); }
.qris-btn-download:disabled { opacity: .7; cursor: not-allowed; transform: none; }

.qris-footer {
  padding: 14px 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
  background: rgba(0, 0, 0, 0.18);
}
.qris-footer p { font-size: .74rem; color: #64748b; margin: 0; line-height: 1.4; }

/* Light Mode Overrides for QRIS Modal */
html.theme-light .qris-modal,
[data-theme="light"] .qris-modal {
  background: #ffffff;
  border-color: #e2e8f0;
  box-shadow: 0 20px 50px -10px rgba(15, 23, 42, 0.15), 0 0 0 1px rgba(0, 0, 0, 0.05);
}
html.theme-light .modal-close,
[data-theme="light"] .modal-close {
  background: #f1f5f9;
  border-color: #e2e8f0;
  color: #64748b;
}
html.theme-light .modal-close:hover,
[data-theme="light"] .modal-close:hover {
  background: #e2e8f0;
  color: #0f172a;
}
html.theme-light .qris-pill,
[data-theme="light"] .qris-pill {
  background: rgba(22, 163, 74, 0.1);
  border-color: rgba(22, 163, 74, 0.25);
  color: #16a34a;
}
html.theme-light .qris-pill .pulse,
[data-theme="light"] .qris-pill .pulse {
  background: #16a34a;
}
html.theme-light .qris-header h3,
[data-theme="light"] .qris-header h3 {
  color: #0f172a;
}
html.theme-light .qris-header p,
[data-theme="light"] .qris-header p {
  color: #64748b;
}
html.theme-light .qr-frame,
[data-theme="light"] .qr-frame {
  background: #f8fafc;
  border-color: #e2e8f0;
}
html.theme-light .qr-corner,
[data-theme="light"] .qr-corner {
  border-color: #16a34a;
}
html.theme-light .qris-amount small,
[data-theme="light"] .qris-amount small {
  color: #64748b;
}
html.theme-light .qris-amount strong,
[data-theme="light"] .qris-amount strong {
  color: #16a34a;
}
html.theme-light .qris-timer,
[data-theme="light"] .qris-timer {
  background: #f1f5f9;
  border-color: #e2e8f0;
  color: #64748b;
}
html.theme-light .qris-timer svg,
[data-theme="light"] .qris-timer svg {
  color: #64748b;
}
html.theme-light .qris-timer strong,
[data-theme="light"] .qris-timer strong {
  color: #0f172a;
}
html.theme-light .qris-btn-status,
[data-theme="light"] .qris-btn-status {
  background: #16a34a;
  color: #ffffff;
}
html.theme-light .qris-btn-status:hover,
[data-theme="light"] .qris-btn-status:hover {
  background: #15803d;
}
html.theme-light .qris-btn-download,
[data-theme="light"] .qris-btn-download {
  background: #f8fafc;
  border-color: #cbd5e1;
  color: #0f172a;
}
html.theme-light .qris-btn-download:hover,
[data-theme="light"] .qris-btn-download:hover {
  background: #f1f5f9;
  color: #000;
}
html.theme-light .qris-footer,
[data-theme="light"] .qris-footer {
  border-top-color: #e2e8f0;
  background: #f8fafc;
}
html.theme-light .qris-footer p,
[data-theme="light"] .qris-footer p {
  color: #64748b;
}

/* ========================================================
   MODERN 3-COLUMN PRODUCT CATALOG REDESIGN
   ======================================================== */
.products-dashboard-page {
  max-width: 1360px !important;
  margin: 0 auto;
}

.products-dashboard-section .products-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}

.products-dashboard-section .products-heading h1 {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 850;
  letter-spacing: -0.03em;
  margin: 4px 0 6px;
  color: #f8fafc;
}

.products-dashboard-section .products-subtitle {
  color: #94a3b8;
  font-size: 0.95rem;
}

.products-count {
  padding: 6px 14px !important;
  background: rgba(255, 255, 255, 0.04) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 999px !important;
  color: #94a3b8 !important;
  font-size: 0.82rem !important;
  font-weight: 650 !important;
  white-space: nowrap;
}

/* 3-Column balanced grid */
.products-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 24px !important;
  max-width: 1360px !important;
  width: 100% !important;
  align-items: stretch !important;
}

@media (max-width: 1120px) {
  .products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 720px) {
  .products-grid {
    grid-template-columns: 1fr !important;
  }
}

/* Base Modern Card */
.nx-modern-card {
  position: relative !important;
  display: flex !important;
  flex-direction: column !important;
  height: 100% !important;
  background: linear-gradient(180deg, #0d2235 0%, #071724 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 20px !important;
  overflow: hidden !important;
  box-shadow: 0 12px 32px -8px rgba(0, 0, 0, 0.5) !important;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s ease, box-shadow 0.25s ease !important;
}

.nx-modern-card:hover {
  transform: translateY(-5px) !important;
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.65) !important;
}

/* Card Accent Top Glow Lines */
.nx-card-dc {
  border-top: 3px solid #00d2ff !important;
}
.nx-card-dc:hover {
  border-color: rgba(0, 210, 255, 0.35) !important;
  border-top-color: #00d2ff !important;
}

.nx-card-res {
  border-top: 3px solid #10b981 !important;
}
.nx-card-res:hover {
  border-color: rgba(16, 185, 129, 0.35) !important;
  border-top-color: #10b981 !important;
}

.nx-card-gtred {
  border-top: 3px solid #a855f7 !important;
}
.nx-card-gtred:hover {
  border-color: rgba(168, 85, 247, 0.35) !important;
  border-top-color: #a855f7 !important;
}

/* Card Header */
.nx-card-head {
  padding: 18px 22px 14px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
  background: rgba(255, 255, 255, 0.015) !important;
}

.nx-card-category {
  font-size: 0.72rem !important;
  font-weight: 750 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
}

.nx-cat-res {
  color: #10b981 !important;
}

.nx-cat-dc {
  color: #38bdf8 !important;
}

.nx-cat-gtred {
  color: #c084fc !important;
}

.nx-card-status {
  font-size: 0.74rem !important;
  font-weight: 600 !important;
  color: #64748b !important;
  letter-spacing: 0.02em !important;
}

.nx-card-subtitle {
  font-size: 0.82rem !important;
  color: #94a3b8 !important;
  margin: 0 0 14px 0 !important;
  font-weight: 500 !important;
  line-height: 1.4 !important;
}

/* Card Body */
.nx-card-body {
  padding: 22px 24px !important;
  flex: 1 !important;
  display: flex !important;
  flex-direction: column !important;
}

.nx-card-title {
  font-size: 1.45rem !important;
  font-weight: 850 !important;
  color: #f8fafc !important;
  margin: 0 0 10px 0 !important;
  letter-spacing: -0.025em !important;
  line-height: 1.2 !important;
}

.nx-card-desc {
  font-size: 0.88rem !important;
  line-height: 1.6 !important;
  color: #94a3b8 !important;
  margin: 0 0 20px 0 !important;
  min-height: 64px !important;
}

/* Card Spec Box */
.nx-spec-grid {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 12px 16px !important;
  background: rgba(0, 0, 0, 0.3) !important;
  border: 1px solid rgba(255, 255, 255, 0.05) !important;
  border-radius: 14px !important;
  padding: 16px 18px !important;
  margin-bottom: 22px !important;
}

.nx-spec-item span {
  display: block !important;
  font-size: 0.68rem !important;
  font-weight: 750 !important;
  color: #64748b !important;
  text-transform: uppercase !important;
  letter-spacing: 0.07em !important;
  margin-bottom: 4px !important;
}

.nx-spec-item strong {
  display: block !important;
  font-size: 0.86rem !important;
  font-weight: 750 !important;
  color: #e2e8f0 !important;
  letter-spacing: -0.01em !important;
}

/* Card Footer */
.nx-card-footer {
  margin-top: auto !important;
  padding-top: 18px !important;
  border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
  display: flex !important;
  align-items: flex-end !important;
  justify-content: space-between !important;
  gap: 14px !important;
}

.nx-price-box {
  display: flex !important;
  flex-direction: column !important;
}

.nx-price-tag {
  font-size: 0.68rem !important;
  font-weight: 750 !important;
  color: #64748b !important;
  letter-spacing: 0.06em !important;
  text-transform: uppercase !important;
}

.nx-price-val {
  font-size: 1.6rem !important;
  font-weight: 850 !important;
  color: #f8fafc !important;
  letter-spacing: -0.03em !important;
  line-height: 1.15 !important;
  margin: 2px 0 2px !important;
}

.nx-price-unit {
  font-size: 0.78rem !important;
  color: #94a3b8 !important;
  font-weight: 550 !important;
}

/* Action Buttons */
.nx-btn-action {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  padding: 11px 20px !important;
  border-radius: 11px !important;
  font-size: 0.88rem !important;
  font-weight: 800 !important;
  text-decoration: none !important;
  white-space: nowrap !important;
  cursor: pointer !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
  border: none !important;
}

.nx-btn-dc {
  background: #38bdf8 !important;
  color: #031525 !important;
  box-shadow: 0 4px 14px rgba(56, 189, 248, 0.3) !important;
}
.nx-btn-dc:hover {
  background: #7dd3fc !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 20px rgba(56, 189, 248, 0.45) !important;
}

.nx-btn-res {
  background: #10b981 !important;
  color: #022318 !important;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.3) !important;
}
.nx-btn-res:hover {
  background: #34d399 !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.45) !important;
}

.nx-btn-gtred {
  background: #a855f7 !important;
  color: #1e0b36 !important;
  box-shadow: 0 4px 14px rgba(168, 85, 247, 0.3) !important;
}
.nx-btn-gtred:hover {
  background: #c084fc !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 20px rgba(168, 85, 247, 0.45) !important;
}

/* Country Search Input inside Product Detail */
.nx-country-search-box {
  margin-bottom: 8px;
}

.nx-country-search-input {
  width: 100% !important;
  padding: 10px 14px !important;
  font-size: 0.88rem !important;
  border-radius: 9px !important;
  background: rgba(0, 0, 0, 0.3) !important;
  border: 1.5px solid rgba(255, 255, 255, 0.12) !important;
  color: #f1f5f9 !important;
}
.nx-country-search-input:focus {
  border-color: #10b981 !important;
  outline: none !important;
}

/* Clean Editorial Card Taglines */
.nx-card-tagline {
  display: inline-flex !important;
  align-items: center !important;
  font-size: 0.72rem !important;
  font-weight: 700 !important;
  padding: 4px 10px !important;
  border-radius: 6px !important;
  margin-bottom: 12px !important;
  letter-spacing: 0.02em !important;
  line-height: 1.3 !important;
  width: fit-content !important;
}

.nx-tagline-res {
  background: rgba(16, 185, 129, 0.08) !important;
  color: #34d399 !important;
  border: 1px solid rgba(16, 185, 129, 0.2) !important;
}

.nx-tagline-dc {
  background: rgba(14, 165, 233, 0.08) !important;
  color: #38bdf8 !important;
  border: 1px solid rgba(14, 165, 233, 0.2) !important;
}

.nx-tagline-gtred {
  background: rgba(168, 85, 247, 0.08) !important;
  color: #c084fc !important;
  border: 1px solid rgba(168, 85, 247, 0.2) !important;
}

.nx-btn-arrow {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 20px !important;
  height: 20px !important;
  border-radius: 50% !important;
  background: rgba(255, 255, 255, 0.1) !important;
  font-size: 0.8rem !important;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
  margin-left: 6px !important;
}

.nx-btn-action:hover .nx-btn-arrow {
  transform: translateX(3px) !important;
}

.nx-unit-desc {
  display: block !important;
  font-size: 0.74rem !important;
  color: #64748b !important;
  margin-top: 3px !important;
  font-weight: 500 !important;
}

/* Residential Studio Notice */
.nx-residential-notice {
  margin: 18px 0;
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(16, 185, 129, 0.06);
  border: 1px solid rgba(16, 185, 129, 0.2);
}
.nx-residential-notice p {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.55;
  color: #94a3b8;
}
.nx-residential-notice p strong {
  color: #34d399;
}
.nx-notice-badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #10b981;
  margin-bottom: 6px;
}

.nx-step-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #10b981;
  color: #022318;
  font-size: 0.75rem;
  font-weight: 800;
  margin-right: 6px;
}

/* ========================================================
   LIGHT THEME: PREMIUM HIGH-CONTRAST PALETTE FOR STORE & DETAILS
   ======================================================== */
:root[data-theme="light"] {
  --bg: #f8fafc;
  --card: #ffffff;
  --surface: #ffffff;
  --surface2: #f1f5f9;
  --text: #0f172a;
  --muted: #475569;
  --line: #e2e8f0;
  --rule: #e2e8f0;
}

:root[data-theme="light"] .app-shell {
  background: #f8fafc !important;
}

:root[data-theme="light"] .products-dashboard-section .products-heading h1 {
  color: #0f172a !important;
}

:root[data-theme="light"] .products-dashboard-section .products-subtitle {
  color: #475569 !important;
}

:root[data-theme="light"] .products-count {
  background: #ffffff !important;
  border-color: #cbd5e1 !important;
  color: #334155 !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06) !important;
}

/* Light Cards */
:root[data-theme="light"] .nx-modern-card {
  background: #ffffff !important;
  border: 1.5px solid #e2e8f0 !important;
  box-shadow: 0 4px 16px -2px rgba(15, 23, 42, 0.06), 0 2px 6px -1px rgba(15, 23, 42, 0.04) !important;
}

:root[data-theme="light"] .nx-modern-card:hover {
  border-color: #cbd5e1 !important;
  box-shadow: 0 16px 32px -6px rgba(15, 23, 42, 0.12), 0 4px 12px -2px rgba(15, 23, 42, 0.06) !important;
}

:root[data-theme="light"] .nx-card-dc {
  border-top: 3.5px solid #0284c7 !important;
}
:root[data-theme="light"] .nx-card-dc:hover {
  border-color: rgba(2, 132, 199, 0.35) !important;
  border-top-color: #0284c7 !important;
}

:root[data-theme="light"] .nx-card-res {
  border-top: 3.5px solid #059669 !important;
}
:root[data-theme="light"] .nx-card-res:hover {
  border-color: rgba(5, 150, 105, 0.35) !important;
  border-top-color: #059669 !important;
}

:root[data-theme="light"] .nx-card-gtred {
  border-top: 3.5px solid #7c3aed !important;
}
:root[data-theme="light"] .nx-card-gtred:hover {
  border-color: rgba(124, 58, 237, 0.35) !important;
  border-top-color: #7c3aed !important;
}

:root[data-theme="light"] .nx-card-head {
  background: #fafbfc !important;
  border-bottom: 1px solid #f1f5f9 !important;
}

:root[data-theme="light"] .nx-cat-dc {
  color: #0284c7 !important;
}

:root[data-theme="light"] .nx-cat-res {
  color: #059669 !important;
}

:root[data-theme="light"] .nx-cat-gtred {
  color: #7c3aed !important;
}

:root[data-theme="light"] .nx-card-status {
  color: #64748b !important;
}

:root[data-theme="light"] .nx-card-subtitle {
  color: #64748b !important;
}

:root[data-theme="light"] .nx-btn-arrow {
  background: rgba(0, 0, 0, 0.08) !important;
}

:root[data-theme="light"] .nx-card-title {
  color: #0f172a !important;
}

:root[data-theme="light"] .nx-card-desc {
  color: #475569 !important;
}

:root[data-theme="light"] .nx-spec-grid {
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
}

:root[data-theme="light"] .nx-spec-item span {
  color: #64748b !important;
}

:root[data-theme="light"] .nx-spec-item strong {
  color: #0f172a !important;
}

:root[data-theme="light"] .nx-card-footer {
  border-top: 1px solid #f1f5f9 !important;
}

:root[data-theme="light"] .nx-price-tag {
  color: #64748b !important;
}

:root[data-theme="light"] .nx-price-val {
  color: #0f172a !important;
}

:root[data-theme="light"] .nx-price-unit {
  color: #64748b !important;
}

:root[data-theme="light"] .nx-unit-desc {
  color: #64748b !important;
}

:root[data-theme="light"] .nx-btn-dc {
  background: #0284c7 !important;
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.25) !important;
}
:root[data-theme="light"] .nx-btn-dc:hover {
  background: #0369a1 !important;
  box-shadow: 0 6px 18px rgba(2, 132, 199, 0.35) !important;
}

:root[data-theme="light"] .nx-btn-res {
  background: #059669 !important;
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(5, 150, 105, 0.25) !important;
}
:root[data-theme="light"] .nx-btn-res:hover {
  background: #047857 !important;
  box-shadow: 0 6px 18px rgba(5, 150, 105, 0.35) !important;
}

:root[data-theme="light"] .nx-btn-gtred {
  background: #7c3aed !important;
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(124, 58, 237, 0.25) !important;
}
:root[data-theme="light"] .nx-btn-gtred:hover {
  background: #6d28d9 !important;
  box-shadow: 0 6px 18px rgba(124, 58, 237, 0.35) !important;
}

/* Light Theme Product Details */
:root[data-theme="light"] .nx-product-sheet {
  background: #ffffff !important;
  border: 1.5px solid #e2e8f0 !important;
  box-shadow: 0 16px 36px -10px rgba(15, 23, 42, 0.07) !important;
}

:root[data-theme="light"] .nx-product-head {
  background: #f8fafc !important;
  border-bottom: 1.5px solid #e2e8f0 !important;
}

:root[data-theme="light"] .nx-product-head h1 {
  color: #0f172a !important;
}

:root[data-theme="light"] .nx-product-head .nx-eyebrow {
  color: #059669 !important;
}

:root[data-theme="light"] .nx-product-subtitle {
  color: #475569 !important;
}

:root[data-theme="light"] .nx-product-info {
  background: #f8fafc !important;
  border-color: #e2e8f0 !important;
}

:root[data-theme="light"] .nx-product-copy h2 {
  color: #0f172a !important;
}

:root[data-theme="light"] .nx-product-copy p {
  color: #475569 !important;
}

:root[data-theme="light"] .nx-spec-row {
  border-bottom-color: #e2e8f0 !important;
}

:root[data-theme="light"] .nx-spec-row span {
  color: #64748b !important;
}

:root[data-theme="light"] .nx-spec-row strong {
  color: #0f172a !important;
}

:root[data-theme="light"] .nx-order-panel {
  background: #ffffff !important;
}

:root[data-theme="light"] .nx-field label {
  color: #1e293b !important;
  font-weight: 700 !important;
}

:root[data-theme="light"] .nx-field input,
:root[data-theme="light"] .nx-field select,
:root[data-theme="light"] .nx-select-country {
  background: #ffffff !important;
  border: 1.5px solid #cbd5e1 !important;
  color: #0f172a !important;
}

:root[data-theme="light"] .nx-field input:focus,
:root[data-theme="light"] .nx-field select:focus,
:root[data-theme="light"] .nx-select-country:focus {
  border-color: #059669 !important;
  box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.12) !important;
}

:root[data-theme="light"] .nx-country-search-input {
  background: #ffffff !important;
  border: 1.5px solid #cbd5e1 !important;
  color: #0f172a !important;
}

:root[data-theme="light"] .nx-country-search-input:focus {
  border-color: #059669 !important;
  box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.15) !important;
}

:root[data-theme="light"] .nx-stepper-btn {
  background: #f1f5f9 !important;
  border-color: #cbd5e1 !important;
  color: #1e293b !important;
}

:root[data-theme="light"] .nx-stepper-btn:hover {
  background: #059669 !important;
  border-color: #059669 !important;
  color: #ffffff !important;
}

:root[data-theme="light"] .nx-field-presets button {
  background: #f8fafc !important;
  border-color: #cbd5e1 !important;
  color: #334155 !important;
}

:root[data-theme="light"] .nx-field-presets button:hover {
  background: #059669 !important;
  border-color: #059669 !important;
  color: #ffffff !important;
}

:root[data-theme="light"] .nx-payment-label,
:root[data-theme="light"] .nx-summary-title {
  color: #0f172a !important;
}

:root[data-theme="light"] .nx-payment-option {
  background: #ffffff !important;
  border: 1.5px solid #e2e8f0 !important;
  color: #0f172a !important;
}

:root[data-theme="light"] .nx-payment-option.is-active {
  background: #ecfdf5 !important;
  border-color: #059669 !important;
  color: #065f46 !important;
  box-shadow: 0 2px 8px rgba(5, 150, 105, 0.12) !important;
}

:root[data-theme="light"] .nx-payment-option small {
  color: #64748b !important;
}

:root[data-theme="light"] .nx-wallet-strip {
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
  color: #64748b !important;
}

:root[data-theme="light"] .nx-wallet-strip strong {
  color: #0f172a !important;
}

:root[data-theme="light"] .nx-order-summary {
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
}

:root[data-theme="light"] .nx-summary-row span {
  color: #64748b !important;
}

:root[data-theme="light"] .nx-summary-row strong {
  color: #0f172a !important;
}

:root[data-theme="light"] .nx-total-value strong {
  color: #059669 !important;
}

:root[data-theme="light"] .nx-purchase-button {
  background: #059669 !important;
  color: #ffffff !important;
  border: none !important;
  box-shadow: 0 4px 16px rgba(5, 150, 105, 0.3) !important;
}

:root[data-theme="light"] .nx-purchase-button:hover {
  background: #047857 !important;
  box-shadow: 0 6px 20px rgba(5, 150, 105, 0.45) !important;
}

:root[data-theme="light"] .nx-residential-notice {
  background: #f0fdf4 !important;
  border-color: #bbf7d0 !important;
}
:root[data-theme="light"] .nx-residential-notice p {
  color: #334155 !important;
}
:root[data-theme="light"] .nx-residential-notice p strong {
  color: #047857 !important;
}
:root[data-theme="light"] .nx-notice-badge {
  color: #059669 !important;
}

:root[data-theme="light"] .nx-step-badge {
  background: #059669 !important;
  color: #ffffff !important;
}

/* ========================================================
   GLOBAL ULTRA-RESPONSIVE & TOUCH UX POLISH
   ======================================================== */

/* Table Smooth Scrolling & Touch Indicators */
.table-wrap,
.table-responsive {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-inline: contain;
  border-radius: 12px;
}

.table-wrap::-webkit-scrollbar,
.table-responsive::-webkit-scrollbar {
  height: 6px;
}

.table-wrap::-webkit-scrollbar-thumb,
.table-responsive::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 4px;
}

/* Fluid KPI & Card Grids across breakpoints */
@media (max-width: 1280px) {
  .kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 14px !important;
  }
  .admin-proxy-credit-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 14px !important;
  }
}

@media (max-width: 900px) {
  .page, .content, .proxy-manager-page, .products-dashboard-page {
    padding: 20px 16px 60px !important;
  }
  .split, .grid {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }
  .page-heading, .page-head, .proxy-page-heading, .products-heading {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 14px !important;
    margin-bottom: 20px !important;
  }
  .page-heading .btn,
  .page-head .btn,
  .page-head-actions {
    width: 100%;
    justify-content: center;
  }
  .quick-links {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }
  .admin-proxy-table-toolbar {
    flex-direction: column !important;
    align-items: stretch !important;
  }
  .admin-proxy-table-toolbar input {
    width: 100% !important;
  }
}

@media (max-width: 640px) {
  h1 {
    font-size: clamp(1.6rem, 6vw, 2.2rem) !important;
  }
  h2 {
    font-size: clamp(1.3rem, 5vw, 1.7rem) !important;
  }
  .topbar,
  .app-shell:not(.admin-shell) .topbar {
    padding: 8px 12px !important;
    min-height: 56px !important;
  }
  .topbar-context {
    font-size: 0.8rem !important;
  }
  .topbar-context span {
    display: none !important;
  }
  .nx-topbar-link {
    display: none !important;
  }
  .nx-topbar-action-pill {
    padding: 6px 11px !important;
    font-size: 0.78rem !important;
    border-radius: 8px !important;
  }
  .kpi-grid,
  .admin-proxy-credit-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 10px !important;
  }
  .kpi-grid .card,
  .admin-proxy-credit-card {
    padding: 14px 12px !important;
    min-height: auto !important;
    border-radius: 12px !important;
  }
  .kpi {
    font-size: 1.25rem !important;
    margin-top: 6px !important;
  }
  .btn, .nx-purchase-button, .nx-login-btn {
    min-height: 44px !important;
    font-size: 0.88rem !important;
  }
  .dialog-content {
    width: calc(100vw - 24px) !important;
    max-width: 100% !important;
    padding: 18px 16px !important;
    border-radius: 16px !important;
  }
  .dialog-actions {
    flex-direction: column-reverse;
    gap: 8px !important;
  }
  .dialog-actions .btn {
    width: 100% !important;
    justify-content: center;
  }
  .pagination {
    flex-wrap: wrap;
    justify-content: center !important;
  }
}

@media (max-width: 420px) {
  .kpi-grid,
  .admin-proxy-credit-grid {
    grid-template-columns: 1fr !important;
  }
}

/* =========================================================
   FLOATING PRODUCT CHECKOUT MODALS (SOCKS RESI, DC, GTRED)
   ========================================================= */
.nx-credit-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 250;
  padding: clamp(12px, 3vw, 24px);
  align-items: center;
  justify-content: center;
  background: rgba(4, 8, 14, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  animation: nxFadeIn 0.2s ease-out;
}

.nx-credit-modal.show {
  display: flex !important;
}

.nx-credit-modal-backdrop {
  position: absolute;
  inset: 0;
  cursor: pointer;
}

.nx-credit-modal-card {
  position: relative;
  z-index: 2;
  width: min(100%, 500px);
  max-height: calc(100dvh - 36px);
  overflow-y: auto;
  padding: 24px 22px;
  background: linear-gradient(180deg, #0e1625 0%, #080d16 100%);
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  box-shadow: 0 25px 60px -10px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.05);
  animation: nxScaleIn 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes nxFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes nxScaleIn {
  from { opacity: 0; transform: scale(0.95) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.nx-credit-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 16px;
  margin-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.nx-credit-eyebrow {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent, #a3e635);
  margin-bottom: 4px;
}

.nx-credit-modal-head h2 {
  font-size: 1.3rem;
  font-weight: 800;
  color: #f8fafc;
  margin: 0 0 4px 0;
  letter-spacing: -0.02em;
}

.nx-credit-modal-head p {
  font-size: 0.82rem;
  color: var(--muted, #94a3b8);
  margin: 0;
  line-height: 1.4;
}

.nx-credit-modal-close {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--muted, #94a3b8);
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-size: 1.2rem;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.15s ease;
}

.nx-credit-modal-close:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #f8fafc;
}

.nx-credit-wallet-box {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.nx-credit-wallet-box span {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--muted, #94a3b8);
  text-transform: uppercase;
}

.nx-credit-wallet-box strong {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.9rem;
  color: #f8fafc;
}

.nx-credit-field {
  display: block;
  margin-bottom: 14px;
}

.nx-credit-field > span {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  color: #cbd5e1;
  margin-bottom: 6px;
}

.nx-credit-field input {
  width: 100%;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  color: #f8fafc;
  font-family: 'JetBrains Mono', monospace;
  font-size: 1rem;
  font-weight: 700;
  outline: none;
  transition: border-color 0.15s ease;
}

.nx-credit-field input:focus {
  border-color: #38bdf8;
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.15);
}

.nx-credit-quick {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 8px 0 14px;
}

.nx-credit-quick button {
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  color: var(--muted, #94a3b8);
  font-size: 0.78rem;
  font-weight: 650;
  cursor: pointer;
  transition: all 0.15s ease;
}

.nx-credit-quick button:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #f8fafc;
}

.nx-credit-quick button.is-active {
  background: rgba(16, 185, 129, 0.16) !important;
  border-color: rgba(16, 185, 129, 0.45) !important;
  color: #34d399 !important;
  font-weight: 750 !important;
}

.nx-credit-summary {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 14px 16px;
  display: grid;
  gap: 8px;
  margin: 16px 0 18px;
}

.nx-credit-summary > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.84rem;
  color: var(--muted, #94a3b8);
}

.nx-credit-summary strong {
  font-family: 'JetBrains Mono', monospace;
  color: #f8fafc;
  font-weight: 700;
}

.nx-credit-summary-total {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 10px;
  margin-top: 2px;
}

.nx-credit-summary-total span {
  font-weight: 800;
  color: #f8fafc;
  font-size: 0.86rem;
}

.nx-credit-summary-total strong {
  font-size: 1.15rem;
  color: #34d399;
}

.nx-credit-buy-button {
  width: 100%;
  min-height: 46px;
  font-size: 0.92rem;
  font-weight: 750;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.nx-credit-note {
  font-size: 0.76rem;
  color: #64748b;
  text-align: center;
  margin: 12px 0 0;
  line-height: 1.4;
}




