/* ============================================================================
   NEXIL GLOBAL — Sovereign Wealth & Institutional Yield Design System
   Luxury Obsidian, Royal Gold & Emerald Theme (Public + Member + Admin)
   ============================================================================ */

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

:root {
  --nx-bg-deep: #05080f;
  --nx-bg-primary: #070b14;
  --nx-bg-secondary: #0b111e;
  --nx-bg-obsidian: #0a101b;
  --nx-bg-card: #0f1726;
  --nx-bg-elevated: #162238;

  --nx-gold: #d4af37;
  --nx-gold-light: #f5d061;
  --nx-gold-bright: #f5d061;
  --nx-gold-dark: #aa8218;
  --nx-gold-soft: rgba(212, 175, 55, 0.14);
  --nx-border-gold: rgba(212, 175, 55, 0.32);
  --nx-gold-border: rgba(212, 175, 55, 0.32);

  --nx-emerald: #10b981;
  --nx-emerald-light: #34d399;
  --nx-emerald-dark: #059669;
  --nx-emerald-soft: rgba(16, 185, 129, 0.14);

  --nx-cyan: #06b6d4;
  --nx-danger: #ef4444;
  --nx-warning: #f59e0b;

  --nx-text: #f8fafc;
  --nx-text-main: #f8fafc;
  --nx-text-muted: #94a3b8;
  --nx-text-dim: #64748b;

  --nx-border: rgba(255, 255, 255, 0.09);
  --nx-radius-xl: 22px;
  --nx-radius-lg: 16px;
  --nx-radius-md: 12px;
  --nx-radius-sm: 8px;

  --nx-shadow: 0 20px 45px -15px rgba(0, 0, 0, 0.75);
  --nx-gold-glow: 0 0 32px rgba(212, 175, 55, 0.22);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--nx-bg-deep);
  background-image:
    radial-gradient(circle at 10% 10%, rgba(212, 175, 55, 0.09) 0%, transparent 36%),
    radial-gradient(circle at 90% 18%, rgba(16, 185, 129, 0.07) 0%, transparent 38%),
    radial-gradient(circle at 50% 90%, rgba(212, 175, 55, 0.05) 0%, transparent 45%);
  color: var(--nx-text);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Outfit', 'Cinzel', sans-serif;
  color: var(--nx-text);
  line-height: 1.25;
  letter-spacing: -0.015em;
}

a {
  color: var(--nx-gold-light);
  text-decoration: none;
  transition: all 0.22s ease;
}

a:hover {
  color: #ffffff;
}

.nx-mono {
  font-family: 'JetBrains Mono', monospace;
}

.nx-text-muted {
  color: var(--nx-text-muted);
}

/* ============================================================================
   LAYOUT CONTAINERS & GRIDS
   ============================================================================ */
.nx-container {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 24px;
}

.nx-flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.nx-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.nx-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.nx-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

@media (max-width: 1024px) {
  .nx-grid-3, .nx-grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .nx-grid-2, .nx-grid-3, .nx-grid-4 {
    grid-template-columns: 1fr;
  }
}

/* ============================================================================
   TOP ANNOUNCEMENT BAR & NAVBAR
   ============================================================================ */
.nx-announcement-bar {
  background: linear-gradient(90deg, rgba(16, 24, 40, 0.98) 0%, rgba(26, 21, 10, 0.98) 50%, rgba(10, 26, 22, 0.98) 100%);
  border-bottom: 1px solid rgba(212, 175, 55, 0.22);
  padding: 9px 0;
  font-size: 12.5px;
  color: #e2e8f0;
}

.nx-navbar {
  background: rgba(6, 10, 18, 0.9);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--nx-border-gold);
  padding: 15px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
}

.nx-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.nx-brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  text-decoration: none;
}

.nx-brand-crest, .nx-brand-emblem {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, #f5d061 0%, #c59b27 55%, #9a7111 100%);
  color: #05080f;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Cinzel', serif;
  font-weight: 800;
  font-size: 17px;
  letter-spacing: 0.04em;
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.38), inset 0 1px 1px rgba(255, 255, 255, 0.45);
  flex-shrink: 0;
}

.nx-brand-text {
  display: flex;
  flex-direction: column;
}

.nx-brand-title {
  font-family: 'Cinzel', serif;
  font-weight: 800;
  font-size: 19px;
  letter-spacing: 0.06em;
  background: linear-gradient(90deg, #ffffff 0%, #f5d061 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.15;
}

.nx-brand-sub {
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--nx-gold);
  text-transform: uppercase;
  margin-top: 2px;
}

.nx-nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nx-nav-links a, .nx-nav-link {
  color: #cbd5e1;
  font-weight: 600;
  font-size: 14px;
  padding: 9px 15px;
  border-radius: 9px;
  transition: all 0.2s ease;
}

.nx-nav-links a:hover, .nx-nav-links a.active, .nx-nav-link:hover, .nx-nav-link.active {
  color: var(--nx-gold-light);
  background: rgba(212, 175, 55, 0.11);
}

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

/* ============================================================================
   BUTTONS, BADGES & STATUS PILLS
   ============================================================================ */
.nx-btn, .btn-nx-gold, .btn-nx-emerald, .btn-nx-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: 14px;
  padding: 12px 22px;
  border-radius: 11px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.24s ease;
  text-decoration: none;
  max-width: 100%;
  text-align: center;
  line-height: 1.35;
}

.nx-btn-gold, .btn-nx-gold {
  background: linear-gradient(135deg, #f5d061 0%, #d4af37 55%, #b5891c 100%);
  color: #05080f !important;
  box-shadow: 0 8px 24px rgba(212, 175, 55, 0.32);
}

.nx-btn-gold:hover, .btn-nx-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(245, 208, 97, 0.48);
  color: #000000 !important;
}

.nx-btn-emerald, .btn-nx-emerald {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff !important;
  box-shadow: 0 8px 22px rgba(16, 185, 129, 0.28);
}

.nx-btn-emerald:hover, .btn-nx-emerald:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(16, 185, 129, 0.45);
  color: #ffffff !important;
}

.nx-btn-outline, .btn-nx-outline {
  background: rgba(212, 175, 55, 0.07);
  color: var(--nx-gold-light) !important;
  border: 1px solid var(--nx-border-gold);
}

.nx-btn-outline:hover, .btn-nx-outline:hover {
  background: rgba(212, 175, 55, 0.16);
  border-color: var(--nx-gold-light);
  color: #ffffff !important;
  transform: translateY(-1px);
}

.nx-btn-sm {
  padding: 9px 16px;
  font-size: 13px;
  border-radius: 9px;
}

.nx-btn-xs {
  padding: 6px 12px;
  font-size: 12px;
  border-radius: 8px;
}

.nx-badge-pill, .nx-badge-gold {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: rgba(212, 175, 55, 0.14);
  color: var(--nx-gold-light);
  border: 1px solid rgba(212, 175, 55, 0.34);
}

.nx-rate-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 13px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  background: rgba(16, 185, 129, 0.13);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.34);
}

.nx-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
  white-space: nowrap;
}

.nx-status-success, .nx-badge-emerald {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.35);
}

.nx-status-progress {
  background: rgba(59, 130, 246, 0.16);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.38);
}

.nx-status-pending, .nx-badge-warning {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.36);
}

.nx-status-capped, .nx-badge-danger {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.36);
}

/* ============================================================================
   HERO SECTION & INTERACTIVE SIMULATOR
   ============================================================================ */
.nx-hero {
  padding: 68px 0 74px;
  position: relative;
  overflow: hidden;
}

.nx-hero-globe-bg {
  padding: 84px 0 76px;
  background-image:
    linear-gradient(90deg, rgba(4, 7, 14, 0.94) 0%, rgba(5, 9, 18, 0.88) 42%, rgba(5, 9, 18, 0.38) 74%, rgba(4, 7, 14, 0.72) 100%),
    linear-gradient(180deg, rgba(4, 7, 14, 0.72) 0%, rgba(4, 7, 14, 0.15) 45%, rgba(4, 7, 14, 0.94) 100%),
    url('/assets/images/hero-globe.jpg');
  background-size: cover;
  background-position: 68% center;
  background-repeat: no-repeat;
  border-bottom: 1px solid rgba(212, 175, 55, 0.25);
}

.nx-hero-plan-bg {
  padding: 80px 0 74px;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(212, 175, 55, 0.25);
}

.nx-hero-plan-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url('/assets/images/wealth-architecture.jpg');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  transform: scaleX(-1);
  z-index: 0;
}

.nx-hero-plan-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(4, 7, 14, 0.68) 0%, rgba(5, 9, 18, 0.56) 45%, rgba(4, 7, 14, 0.84) 100%),
    linear-gradient(180deg, rgba(4, 7, 14, 0.68) 0%, rgba(4, 7, 14, 0.22) 48%, rgba(4, 7, 14, 0.94) 100%);
  z-index: 1;
}

.nx-hero-plan-bg > .nx-container {
  position: relative;
  z-index: 2;
}

.nx-hero-globe-layout {
  display: grid;
  grid-template-columns: minmax(0, 680px) 1fr;
  gap: 40px;
  align-items: center;
}

.nx-hero-globe-content {
  position: relative;
  z-index: 2;
  background: rgba(6, 10, 20, 0.36);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  border: 1px solid rgba(212, 175, 55, 0.16);
  border-radius: 20px;
  padding: 26px 28px;
}

.nx-hero-globe-bg .nx-badge-pill,
.nx-hero-plan-bg .nx-badge-pill {
  background: rgba(8, 13, 24, 0.65);
  border: 1px solid rgba(245, 208, 97, 0.42);
}

.nx-hero-globe-bg .nx-hero-title,
.nx-hero-plan-bg .nx-hero-title {
  font-size: clamp(34px, 3.8vw, 46px);
  line-height: 1.15;
  letter-spacing: -0.015em;
  text-shadow: none;
  margin-bottom: 16px;
}

.nx-hero-globe-bg .nx-hero-title span,
.nx-hero-plan-bg .nx-hero-title span {
  background: linear-gradient(90deg, #ffe58f 0%, #f5d061 48%, #34d399 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: none;
}

.nx-hero-globe-bg .nx-hero-desc,
.nx-hero-plan-bg .nx-hero-desc {
  color: #f1f5f9;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.75;
  max-width: 640px;
  background: transparent;
  border: none;
  padding: 0;
  box-shadow: none;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.65);
  margin-bottom: 24px;
}

.nx-hero-globe-bg .nx-btn-outline,
.nx-hero-plan-bg .nx-btn-outline {
  background: rgba(8, 13, 24, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(245, 208, 97, 0.48);
  color: var(--nx-gold-light) !important;
}

.nx-hero-globe-bg .nx-btn-outline:hover,
.nx-hero-plan-bg .nx-btn-outline:hover {
  background: rgba(212, 175, 55, 0.22);
  color: #ffffff !important;
}

.nx-hero-globe-badges {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: space-between;
  min-height: 290px;
  gap: 18px;
  position: relative;
  z-index: 2;
}

.nx-hero-globe-bg .nx-stat-box,
.nx-hero-plan-bg .nx-stat-box {
  background: rgba(8, 13, 24, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(212, 175, 55, 0.30);
  padding: 18px 20px;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.55);
}

.nx-hero-globe-bg .nx-stat-lbl,
.nx-hero-plan-bg .nx-stat-lbl {
  color: #cbd5e1;
  font-size: 12.5px;
}

.nx-hero-plan-bg .nx-calc-card {
  background: rgba(11, 17, 29, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(212, 175, 55, 0.38);
  box-shadow: 0 24px 55px rgba(0, 0, 0, 0.72), var(--nx-gold-glow);
}

.nx-hero-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.95fr;
  gap: 44px;
  align-items: center;
}

.nx-hero-title {
  font-family: 'Outfit', sans-serif;
  font-size: 46px;
  font-weight: 800;
  line-height: 1.13;
  margin-bottom: 20px;
  color: #ffffff;
}

.nx-hero-title span {
  display: block;
  background: linear-gradient(90deg, #f5d061 0%, #d4af37 50%, #34d399 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nx-hero-desc {
  font-size: 16.5px;
  color: var(--nx-text-muted);
  line-height: 1.75;
  margin-bottom: 28px;
  max-width: 640px;
}

.nx-hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 0;
}

.nx-hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 44px;
}

.nx-stat-box {
  background: linear-gradient(160deg, rgba(17, 25, 42, 0.92), rgba(9, 14, 24, 0.95));
  border: 1px solid rgba(212, 175, 55, 0.24);
  border-radius: 14px;
  padding: 16px 14px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.nx-stat-val {
  font-family: 'Outfit', sans-serif;
  font-size: 24px;
  font-weight: 800;
  color: var(--nx-gold-light);
  line-height: 1.15;
  margin-bottom: 4px;
}

.nx-stat-lbl {
  font-size: 11.5px;
  color: var(--nx-text-muted);
  font-weight: 600;
}

.nx-calc-card {
  background: linear-gradient(165deg, rgba(20, 30, 48, 0.96) 0%, rgba(9, 14, 24, 0.98) 100%);
  border: 1px solid var(--nx-border-gold);
  border-radius: var(--nx-radius-xl);
  padding: 30px;
  box-shadow: var(--nx-shadow), var(--nx-gold-glow);
  position: relative;
}

@media (max-width: 1024px) {
  .nx-hero-grid,
  .nx-hero-globe-layout {
    grid-template-columns: 1fr;
  }
  .nx-hero-globe-badges {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    min-height: auto;
  }
  .nx-hero-stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ============================================================================
   SECTIONS, SLOT CARDS & GENERAL CARDS
   ============================================================================ */
.nx-section {
  padding: 72px 0;
}

.nx-section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 44px;
}

.nx-section-tag {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--nx-gold);
  margin-bottom: 8px;
}

.nx-section-title {
  font-size: 34px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 12px;
}

.nx-section-desc {
  font-size: 15.5px;
  color: var(--nx-text-muted);
}

.nx-slot-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.nx-slot-card {
  background: linear-gradient(165deg, rgba(18, 28, 45, 0.95) 0%, rgba(10, 15, 26, 0.98) 100%);
  border: 1px solid rgba(212, 175, 55, 0.28);
  border-radius: var(--nx-radius-lg);
  padding: 24px 20px;
  box-shadow: var(--nx-shadow);
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.nx-slot-card:hover {
  transform: translateY(-4px);
  border-color: var(--nx-gold-light);
  box-shadow: var(--nx-gold-glow);
}

.nx-slot-num {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--nx-gold);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.nx-slot-dates {
  font-family: 'Outfit', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 14px;
}

.nx-slot-payout {
  font-size: 13px;
  color: #34d399;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.28);
  padding: 9px 12px;
  border-radius: 10px;
}

@media (max-width: 1024px) {
  .nx-slot-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .nx-slot-grid {
    grid-template-columns: 1fr;
  }
}

.nx-card {
  background: linear-gradient(165deg, rgba(17, 26, 42, 0.95) 0%, rgba(10, 15, 25, 0.98) 100%);
  border: 1px solid var(--nx-border);
  border-radius: var(--nx-radius-lg);
  padding: 24px;
  box-shadow: var(--nx-shadow);
  position: relative;
  max-width: 100%;
  overflow-wrap: break-word;
}

.nx-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-bottom: 16px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--nx-border);
}

.nx-card-title {
  font-family: 'Outfit', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: #ffffff;
}

.nx-card-sub {
  font-size: 12.5px;
  color: var(--nx-text-muted);
  margin-top: 3px;
}

/* ============================================================================
   FORMS, INPUTS & SELECTS
   ============================================================================ */
.nx-form-group {
  margin-bottom: 16px;
}

.nx-label, .form-label {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: #cbd5e1;
  margin-bottom: 6px;
}

.nx-input, .nx-select, .nx-textarea, .form-control, .form-select {
  width: 100%;
  background-color: rgba(6, 10, 18, 0.9) !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  color: #f8fafc !important;
  border-radius: 10px !important;
  padding: 11px 14px !important;
  font-family: inherit;
  font-size: 13.5px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.nx-textarea {
  min-height: 110px;
  resize: vertical;
}

.nx-input:focus, .nx-select:focus, .nx-textarea:focus, .form-control:focus, .form-select:focus {
  border-color: var(--nx-gold-light) !important;
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.18) !important;
  outline: none;
}

/* ============================================================================
   TABLES
   ============================================================================ */
.nx-table-wrap {
  width: 100%;
  overflow-x: auto;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(7, 11, 19, 0.75);
}

.nx-table {
  width: 100%;
  border-collapse: collapse;
  color: #e2e8f0;
  font-size: 13.5px;
}

.nx-table thead th {
  background: linear-gradient(180deg, rgba(212, 175, 55, 0.16) 0%, rgba(212, 175, 55, 0.08) 100%);
  color: var(--nx-gold-light);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 11.5px;
  letter-spacing: 0.06em;
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--nx-border-gold);
  white-space: nowrap;
}

.nx-table tbody td {
  padding: 13px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  vertical-align: middle;
}

.nx-table tbody tr:hover {
  background: rgba(212, 175, 55, 0.04);
}

/* ============================================================================
   MEMBER COMMAND CENTER & ADMIN TREASURY PANEL SHELL
   ============================================================================ */
.nx-panel-wrapper, .nx-panel-layout {
  display: flex;
  min-height: 100vh;
}

.nx-sidebar {
  width: 276px;
  background: linear-gradient(180deg, #070b14 0%, #05080f 100%);
  border-right: 1px solid var(--nx-border-gold);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 1040;
  overflow-y: auto;
}

.nx-sidebar-header {
  padding: 20px 20px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.nx-sidebar-user {
  padding: 14px 20px;
  background: rgba(212, 175, 55, 0.06);
  border-bottom: 1px solid rgba(212, 175, 55, 0.18);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.nx-user-name {
  font-weight: 700;
  font-size: 13.5px;
  color: #ffffff;
}

.nx-user-id {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11.5px;
  color: var(--nx-gold-light);
}

.nx-sidebar-nav {
  padding: 10px 12px 24px;
  flex: 1;
}

.nx-nav-group-title, .nx-menu-section {
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--nx-text-dim);
  padding: 16px 12px 6px;
}

.nx-side-link, .nx-menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  margin-bottom: 3px;
  border-radius: 10px;
  color: #cbd5e1;
  font-weight: 600;
  font-size: 13.5px;
  transition: all 0.2s ease;
}

.nx-side-link i, .nx-menu-item i {
  width: 18px;
  text-align: center;
  color: var(--nx-gold);
}

.nx-side-link:hover, .nx-side-link.active, .nx-menu-item:hover, .nx-menu-item.active {
  background: linear-gradient(90deg, rgba(212, 175, 55, 0.18) 0%, rgba(212, 175, 55, 0.04) 100%);
  color: #ffffff;
  border-left: 3px solid var(--nx-gold-light);
}

.nx-main-panel {
  flex: 1;
  margin-left: 276px;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.nx-topbar {
  min-height: 70px;
  background: rgba(8, 13, 22, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 12px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  position: sticky;
  top: 0;
  z-index: 1020;
}

.nx-page-title {
  font-family: 'Outfit', sans-serif;
  font-size: 20px;
  font-weight: 800;
  color: #ffffff;
}

.nx-topbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.nx-content-area {
  padding: 28px;
  flex: 1;
}

/* ============================================================================
   KPI CARDS, PROGRESS BARS & ALERTS
   ============================================================================ */
.nx-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 24px;
}

.nx-kpi-card, .nx-stat-card {
  background: linear-gradient(165deg, rgba(18, 28, 45, 0.96) 0%, rgba(9, 14, 24, 0.99) 100%);
  border: 1px solid rgba(212, 175, 55, 0.22);
  border-radius: var(--nx-radius-lg);
  padding: 20px;
  box-shadow: var(--nx-shadow);
}

.nx-kpi-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.nx-kpi-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--nx-text-muted);
}

.nx-kpi-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(212, 175, 55, 0.14);
  border: 1px solid rgba(212, 175, 55, 0.32);
  color: var(--nx-gold-light);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
}

.nx-kpi-value {
  font-family: 'JetBrains Mono', 'Outfit', monospace;
  font-size: 24px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 6px;
}

.nx-kpi-sub {
  font-size: 12px;
  color: var(--nx-text-muted);
}

.nx-progress-wrap, .nx-progress {
  width: 100%;
  height: 12px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.nx-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #10b981 0%, #f5d061 100%);
  border-radius: 999px;
  transition: width 0.4s ease;
}

.nx-alert {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-radius: 12px;
  margin-bottom: 20px;
  font-size: 13.5px;
}

.nx-alert-success {
  background: rgba(16, 185, 129, 0.14);
  border: 1px solid rgba(16, 185, 129, 0.38);
  color: #d1fae5;
}

.nx-alert-danger {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #fee2e2;
}

.nx-alert-info {
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid rgba(212, 175, 55, 0.35);
  color: #fef3c7;
}

/* ============================================================================
   FOOTER
   ============================================================================ */
.nx-footer {
  background: #04070d;
  border-top: 1px solid var(--nx-border-gold);
  padding: 64px 0 32px;
  margin-top: 60px;
}

.nx-footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.3fr;
  gap: 32px;
  margin-bottom: 40px;
}

.nx-footer-heading {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--nx-gold-light);
  margin-bottom: 16px;
}

.nx-footer-links, .nx-footer-contact {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 13.5px;
}

.nx-footer-links a {
  color: var(--nx-text-muted);
}

.nx-footer-links a:hover {
  color: var(--nx-gold-light);
}

.nx-footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--nx-text-muted);
}

.nx-footer-contact i {
  color: var(--nx-gold);
  margin-top: 4px;
}

.nx-footer-bottom {
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  text-align: center;
  font-size: 12.5px;
  color: var(--nx-text-dim);
}

@media (max-width: 1024px) {
  .nx-kpi-grid, .nx-footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .nx-sidebar {
    position: static;
    width: 100%;
  }
  .nx-panel-wrapper {
    flex-direction: column;
  }
  .nx-main-panel {
    margin-left: 0;
  }
}


/* ============================================================================
   GRAPHICAL VISUAL FRAMES, FLOATING BADGES & ENTERPRISE SHOWCASE
   ============================================================================ */
.nx-visual-frame {
  position: relative;
  border-radius: 22px;
  padding: 10px;
  background: linear-gradient(145deg, rgba(212, 175, 55, 0.25) 0%, rgba(16, 185, 129, 0.15) 50%, rgba(10, 15, 25, 0.9) 100%);
  border: 1px solid var(--nx-border-gold);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.75), 0 0 40px rgba(212, 175, 55, 0.18);
  overflow: hidden;
}

.nx-visual-img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 15px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.nx-visual-frame:hover .nx-visual-img {
  transform: scale(1.025);
}

.nx-floating-chip {
  position: absolute;
  background: rgba(7, 11, 20, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--nx-border-gold);
  border-radius: 14px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.65);
}

.nx-step-card {
  background: linear-gradient(165deg, rgba(18, 28, 46, 0.92) 0%, rgba(9, 14, 24, 0.96) 100%);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 18px;
  padding: 26px 22px;
  position: relative;
  transition: all 0.25s ease;
}

.nx-step-card:hover {
  transform: translateY(-4px);
  border-color: var(--nx-border-gold);
  box-shadow: var(--nx-gold-glow);
}

.nx-step-number {
  font-family: 'Cinzel', serif;
  font-size: 32px;
  font-weight: 800;
  background: linear-gradient(135deg, #f5d061 0%, rgba(212, 175, 55, 0.25) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
  margin-bottom: 12px;
}

/* ============================================================================
   PENDING ADMIN ACTION HIGHLIGHTS & CLICKABLE DASHBOARD CARDS
   ============================================================================ */
@keyframes nxPulseGlow {
  0%, 100% {
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.65), 0 0 0 0 rgba(245, 158, 11, 0.35), inset 0 0 18px rgba(245, 158, 11, 0.08);
  }
  50% {
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.75), 0 0 22px 3px rgba(245, 158, 11, 0.28), inset 0 0 24px rgba(245, 158, 11, 0.14);
  }
}

@keyframes nxPulseDot {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
    box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.7);
  }
  50% {
    transform: scale(1.18);
    opacity: 0.85;
    box-shadow: 0 0 0 6px rgba(245, 158, 11, 0);
  }
}

.nx-pulse-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #fbbf24;
  animation: nxPulseDot 1.8s infinite ease-in-out;
  flex-shrink: 0;
}

.nx-pulse-dot.danger {
  background: #ef4444;
}

.nx-clickable-card {
  display: block;
  text-decoration: none !important;
  color: inherit !important;
  position: relative;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
  cursor: pointer;
}

.nx-clickable-card:hover {
  transform: translateY(-4px);
  border-color: var(--nx-gold-light) !important;
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.75), 0 0 24px rgba(212, 175, 55, 0.28) !important;
}

.nx-pending-highlight {
  background: linear-gradient(160deg, rgba(42, 27, 8, 0.92) 0%, rgba(16, 20, 32, 0.98) 100%) !important;
  border: 1.5px solid rgba(245, 158, 11, 0.72) !important;
  animation: nxPulseGlow 2.6s infinite ease-in-out;
}

.nx-pending-highlight:hover {
  border-color: #fde047 !important;
  background: linear-gradient(160deg, rgba(56, 36, 10, 0.96) 0%, rgba(20, 26, 42, 0.99) 100%) !important;
}

.nx-pending-banner {
  background: linear-gradient(135deg, rgba(45, 26, 8, 0.95) 0%, rgba(22, 16, 12, 0.97) 55%, rgba(12, 20, 34, 0.98) 100%);
  border: 1.5px solid rgba(245, 158, 11, 0.65);
  border-radius: var(--nx-radius-lg);
  padding: 20px 22px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.65), 0 0 28px rgba(245, 158, 11, 0.16);
}

.nx-nav-badge-pending {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 20px;
  padding: 0 7px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  background: linear-gradient(135deg, #f59e0b 0%, #ea580c 100%);
  color: #ffffff;
  box-shadow: 0 2px 10px rgba(245, 158, 11, 0.45);
}

.nx-queue-row-link {
  cursor: pointer;
  transition: background 0.18s ease;
}

.nx-queue-row-link:hover {
  background: rgba(245, 158, 11, 0.12) !important;
}

