/* bTitan Pro Luxury Gold Cyberpunk Stylesheet (Inspired by comingsoon.html) */

@import url('https://fonts.googleapis.com/css2?family=Urbanist:wght@300;400;500;600;700;800;900&family=Unbounded:wght@400;600;700;800&family=DM+Sans:wght@400;500;700&display=swap');

:root {
  --bg-deep: #030303;
  --bg-surface: #0a0804;
  --bg-card: linear-gradient(145deg, rgba(30, 25, 10, 0.88), rgba(8, 8, 8, 0.92));
  --bg-card-hover: linear-gradient(145deg, rgba(45, 36, 12, 0.92), rgba(12, 12, 10, 0.95));
  --gold-primary: #ffd34e;
  --gold-secondary: #f28b00;
  --gold-light: #fff0a6;
  --gold-dim: #d7ae45;
  --gold-border: rgba(255, 205, 82, 0.45);
  --gold-border-glow: rgba(255, 205, 82, 0.75);
  --gold-glow: 0 0 25px rgba(255, 177, 0, 0.18);
  --text-primary: #ffffff;
  --text-muted: #b4b0a4;
  --text-dim: #7e7a70;
  --cyan-spill: #00d2ff;
  --purple-downline: #b05bff;
  --green-upgrade: #00e676;
  --red-recycle: #ff3d00;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  width: 100%;
  min-height: 100vh;
  background-color: var(--bg-deep);
  color: var(--text-primary);
  font-family: 'Urbanist', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  overflow-x: hidden;
}

/* Background Atmosphere */
.page-background {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 20%, rgba(255, 190, 45, 0.12), transparent 45%),
    radial-gradient(circle at 10% 80%, rgba(255, 177, 0, 0.08), transparent 35%),
    radial-gradient(circle at 90% 40%, rgba(255, 198, 61, 0.06), transparent 35%),
    linear-gradient(135deg, #020202, #0d0902 48%, #020202);
}

.grid-floor {
  position: absolute;
  inset: -40%;
  opacity: 0.18;
  background-image:
    linear-gradient(rgba(255, 190, 50, 0.15) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 190, 50, 0.15) 1px, transparent 1px);
  background-size: 55px 55px;
  transform: perspective(700px) rotateX(62deg) translateY(18%);
  animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
  to {
    background-position: 0 550px, 550px 0;
  }
}

.ambient-orb {
  position: absolute;
  width: 45vw;
  height: 45vw;
  max-width: 650px;
  max-height: 650px;
  left: 50%;
  top: 15%;
  transform: translate(-50%, 0);
  border: 1px solid rgba(255, 201, 74, 0.16);
  border-radius: 50%;
  box-shadow: 0 0 100px rgba(255, 176, 0, 0.09), inset 0 0 80px rgba(255, 176, 0, 0.05);
  animation: orbPulse 12s ease-in-out infinite alternate;
}

@keyframes orbPulse {
  to {
    transform: translate(-50%, 0) scale(1.06) rotate(6deg);
  }
}

.particles-container {
  position: absolute;
  inset: 0;
}

.particle {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #ffd35c;
  box-shadow: 0 0 10px #ffbf22;
  animation: floatParticle linear infinite;
}

@keyframes floatParticle {
  0% { transform: translateY(105vh) scale(0.3); opacity: 0; }
  15% { opacity: 1; }
  85% { opacity: 1; }
  100% { transform: translateY(-5vh) scale(1.2); opacity: 0; }
}

/* App Layout */
.app-container {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 16px 20px 80px;
}

/* Navigation Header */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 20px;
  border: 1px solid var(--gold-border);
  background: rgba(18, 14, 6, 0.75);
  backdrop-filter: blur(14px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6);
  margin-bottom: 24px;
}

/* Brand Logo in Navigation Bar */
.brand-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  flex: 0 1 auto;
  min-width: 0;
  max-width: min(220px, 38vw);
  transition: transform 0.25s ease, filter 0.25s ease;
}

.brand-logo:hover {
  transform: scale(1.03);
}

.brand-logo-img {
  height: clamp(26px, 3.8vw, 38px);
  max-height: 42px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 0 12px rgba(255, 205, 82, 0.45));
}

.navbar .btn-secondary,
.navbar .btn-primary,
.navbar .wallet-btn {
  flex: 0 1 auto;
  width: auto;
  min-width: 0;
  padding: 8px 14px;
  font-size: 12px;
  letter-spacing: 0.05em;
  text-align: center;
  justify-content: center;
  white-space: nowrap;
}

.navbar-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 1 auto;
  min-width: 0;
}

.wallet-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: 12px;
  border: 1px solid var(--gold-border);
  background: linear-gradient(135deg, #ffd34e, #f28b00);
  color: #050505;
  font-family: 'Urbanist', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 0 20px rgba(255, 180, 0, 0.25);
  white-space: nowrap;
}

.wallet-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(255, 180, 0, 0.45);
  filter: brightness(1.08);
}


.network-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 208, 75, 0.4);
  background: rgba(255, 190, 30, 0.08);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-primary);
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold-primary);
  box-shadow: 0 0 10px var(--gold-primary);
  animation: pulseDot 1.6s infinite;
}

@keyframes pulseDot {
  50% { transform: scale(1.6); opacity: 0.5; }
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: 12px;
  border: 1px solid var(--gold-border);
  background: linear-gradient(135deg, #ffd34e, #f28b00);
  color: #050505;
  font-family: 'Urbanist', sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 0 20px rgba(255, 180, 0, 0.25);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(255, 180, 0, 0.45);
  filter: brightness(1.08);
}

.btn-primary:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: 12px;
  border: 1px solid var(--gold-border);
  background: rgba(30, 25, 10, 0.6);
  color: var(--gold-primary);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-secondary:hover {
  background: rgba(50, 40, 15, 0.85);
  border-color: var(--gold-border-glow);
}

/* Hero & Announcement */
.hero-banner {
  text-align: center;
  padding: 24px 10px 30px;
}

.eyebrow {
  letter-spacing: 0.35em;
  text-transform: uppercase;
  font-size: clamp(11px, 1.2vw, 14px);
  color: var(--gold-dim);
  margin-bottom: 8px;
}

.hero-title {
  font-size: clamp(32px, 5vw, 62px);
  font-weight: 900;
  text-transform: uppercase;
  line-height: 1.05;
  letter-spacing: 0.02em;
  background: linear-gradient(180deg, #fff 15%, #ffd64e 55%, #f28b00 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 12px;
}

/* Hero Brand Logo in place of text */
.hero-logo-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 12px auto 16px;
}

.hero-brand-logo {
  max-width: min(290px, 72vw);
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 25px rgba(255, 205, 82, 0.5)) drop-shadow(0 0 50px rgba(242, 139, 0, 0.3));
  animation: heroLogoGlow 3.5s ease-in-out infinite alternate;
  transition: transform 0.3s ease;
}

.hero-brand-logo:hover {
  transform: scale(1.05);
}

@keyframes heroLogoGlow {
  0% {
    filter: drop-shadow(0 0 20px rgba(255, 205, 82, 0.4)) drop-shadow(0 0 40px rgba(242, 139, 0, 0.25));
  }
  100% {
    filter: drop-shadow(0 0 35px rgba(255, 220, 100, 0.75)) drop-shadow(0 0 65px rgba(242, 139, 0, 0.5));
  }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.hero-subtitle {
  color: var(--text-muted);
  font-size: clamp(13px, 1.5vw, 17px);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  max-width: 650px;
  margin: 0 auto 20px;
}

/* User Quick Stats Bar */
.user-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  margin-bottom: 28px;
}

.stat-card {
  position: relative;
  padding: 16px 18px;
  border-radius: 16px;
  border: 1px solid var(--gold-border);
  background: var(--bg-card);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5), inset 0 0 20px rgba(255, 206, 80, 0.02);
  overflow: hidden;
  transition: transform 0.2s ease;
}

.stat-card:hover {
  transform: translateY(-2px);
  border-color: var(--gold-border-glow);
}

.stat-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 15%;
  right: 15%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold-primary), transparent);
}

.stat-card.total-earning-tile {
  background: linear-gradient(135deg, rgba(30, 22, 10, 0.85) 0%, rgba(18, 14, 5, 0.95) 100%);
  border-color: rgba(255, 206, 80, 0.45);
  box-shadow: 0 4px 22px rgba(0, 0, 0, 0.6), inset 0 0 25px rgba(255, 206, 80, 0.05);
}

.stat-card.total-earning-tile::before {
  background: linear-gradient(90deg, transparent, var(--gold-light), transparent);
  height: 2.5px;
}

.stat-card.total-earning-tile .stat-card-top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
  gap: 8px;
}

.stat-card.total-earning-tile .stat-card-top-row .stat-label {
  margin-bottom: 0;
}

.earning-multiplier-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 8px;
  font-family: 'Unbounded', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  border-radius: 999px;
  background: rgba(255, 206, 80, 0.12);
  border: 1px solid rgba(255, 206, 80, 0.4);
  color: var(--gold-light, #ffd54f);
  box-shadow: 0 0 10px rgba(255, 206, 80, 0.12);
  white-space: nowrap;
  line-height: 1.35;
  transition: all 0.25s ease;
  user-select: none;
}

.earning-multiplier-badge.has-multiplier {
  background: linear-gradient(135deg, rgba(0, 230, 118, 0.2) 0%, rgba(0, 200, 83, 0.1) 100%);
  border-color: rgba(0, 230, 118, 0.55);
  color: #00e676;
  box-shadow: 0 0 12px rgba(0, 230, 118, 0.25);
}

@media (max-width: 768px) {
  .user-bar .stat-card.total-earning-tile {
    grid-column: 1 / -1 !important;
    width: 100% !important;
  }
}

/* Full Width Tile in User Stats Bar */
.user-bar .stat-card.full-width-tile {
  grid-column: 1 / -1 !important;
  width: 100% !important;
}

/* Missed Income Card Styling */
.stat-card.missed-income-card {
  border-color: rgba(255, 82, 82, 0.45);
  background: linear-gradient(135deg, rgba(38, 14, 14, 0.9) 0%, rgba(20, 8, 8, 0.96) 100%);
  box-shadow: 0 4px 22px rgba(255, 82, 82, 0.12), inset 0 0 25px rgba(255, 82, 82, 0.05);
  animation: pulseMissedGlow 3s ease-in-out infinite alternate;
}

.stat-card.missed-income-card::before {
  background: linear-gradient(90deg, transparent, #ff5252, transparent);
  height: 2.5px;
}

.stat-card.missed-income-card .stat-card-top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
  gap: 8px;
}

.stat-card.missed-income-card .stat-label {
  color: #ff8a80 !important;
  margin-bottom: 0;
  font-weight: 700;
}

.missed-income-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 9px;
  font-family: 'Unbounded', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.02em;
  border-radius: 999px;
  background: rgba(255, 82, 82, 0.18);
  border: 1px solid rgba(255, 82, 82, 0.5);
  color: #ff5252;
  box-shadow: 0 0 10px rgba(255, 82, 82, 0.2);
  white-space: nowrap;
  line-height: 1.35;
}

@keyframes pulseMissedGlow {
  0% {
    box-shadow: 0 4px 22px rgba(255, 82, 82, 0.10), inset 0 0 20px rgba(255, 82, 82, 0.04);
  }
  100% {
    box-shadow: 0 4px 26px rgba(255, 82, 82, 0.22), inset 0 0 30px rgba(255, 82, 82, 0.08);
  }
}

.stat-label {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-dim);
  margin-bottom: 6px;
}

.stat-value {
  font-family: 'Unbounded', sans-serif;
  font-size: clamp(18px, 2.5vw, 24px);
  font-weight: 700;
  color: #ffffff;
  line-height: 1.1;
}

#userRegistrationDate {
  font-size: clamp(14px, 1.8vw, 19px);
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.stat-sub {
  font-size: 12px;
  color: var(--text-dim);
  margin-top: 4px;
}

/* Grid Layout for Main Content */
.main-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  margin-bottom: 32px;
}

@media (min-width: 992px) {
  .main-grid {
    grid-template-columns: 360px 1fr;
  }
}

/* Glass Card */
.glass-panel {
  position: relative;
  padding: 24px;
  border-radius: 20px;
  border: 1px solid var(--gold-border);
  background: var(--bg-card);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6), inset 0 0 25px rgba(255, 206, 80, 0.02);
  overflow: hidden;
}

.glass-panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 2px;
  background: linear-gradient(90deg, transparent, #ffd34e, transparent);
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 205, 82, 0.15);
}

.panel-title {
  font-family: 'Unbounded', sans-serif;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
}

/* Registration Form */
.form-group {
  margin-bottom: 16px;
}

.form-label {
  display: block;
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold-dim);
  margin-bottom: 6px;
}

.form-input {
  width: 100%;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid rgba(255, 205, 82, 0.35);
  background: rgba(15, 12, 5, 0.75);
  color: #fff;
  font-family: 'Urbanist', sans-serif;
  font-size: 15px;
  font-weight: 600;
  outline: none;
  transition: border-color 0.2s ease;
}

.form-input:focus {
  border-color: var(--gold-primary);
  box-shadow: 0 0 15px rgba(255, 205, 82, 0.2);
}

.step-indicator {
  display: flex;
  gap: 8px;
  margin-bottom: 18px;
}

.step-badge {
  flex: 1;
  text-align: center;
  padding: 8px;
  border-radius: 8px;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: rgba(255, 205, 82, 0.08);
  border: 1px solid rgba(255, 205, 82, 0.2);
  color: var(--text-dim);
}

.step-badge.active {
  background: rgba(255, 205, 82, 0.2);
  border-color: var(--gold-primary);
  color: var(--gold-primary);
  font-weight: 700;
}

.step-badge.done {
  background: rgba(0, 230, 118, 0.12);
  border-color: rgba(0, 230, 118, 0.4);
  color: #00e676;
}

.cost-box {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  border-radius: 12px;
  background: rgba(255, 190, 30, 0.05);
  border: 1px dashed rgba(255, 205, 82, 0.3);
  margin-bottom: 18px;
}

/* 12 Level Matrix Grid */
.levels-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}

.level-card {
  position: relative;
  padding: 14px 10px;
  border-radius: 14px;
  border: 1px solid rgba(255, 205, 82, 0.25);
  background: rgba(20, 16, 8, 0.7);
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  overflow: hidden;
}

.level-card:hover {
  transform: translateY(-2px);
  border-color: var(--gold-primary);
  box-shadow: 0 4px 15px rgba(255, 190, 0, 0.15);
}

.level-card.active-slot {
  border-color: var(--gold-primary);
  background: linear-gradient(145deg, rgba(45, 36, 12, 0.8), rgba(16, 14, 8, 0.9));
  box-shadow: 0 0 15px rgba(255, 180, 0, 0.15);
}

.level-card.selected-slot {
  outline: 2px solid var(--gold-primary);
  outline-offset: 2px;
}

.level-card.locked-slot {
  border-color: rgba(255, 205, 82, 0.15);
  background: rgba(14, 11, 5, 0.85);
}

.level-card.locked-slot:hover {
  border-color: rgba(255, 205, 82, 0.35);
  transform: translateY(-2px);
}

/* 50% Transparent Lock Overlay for Level Slots */
.slot-lock-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 8, 4, 0.5); /* Exactly 50% transparent overlay */
  backdrop-filter: blur(1.5px);
  -webkit-backdrop-filter: blur(1.5px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  z-index: 5;
  border-radius: inherit;
  pointer-events: none;
  transition: all 0.25s ease;
}

.slot-lock-icon {
  width: 28px;
  height: 28px;
  background: radial-gradient(circle, rgba(255, 205, 82, 0.25), rgba(15, 12, 5, 0.85));
  border: 1px solid rgba(255, 205, 82, 0.6);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 10px rgba(255, 205, 82, 0.35);
  color: #ffd34e;
}

.slot-lock-label {
  font-family: 'Unbounded', sans-serif;
  font-size: 8px;
  letter-spacing: 0.12em;
  color: #ffda73;
  font-weight: 700;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.9);
}

/* 50% Transparent Lock Overlay for Royal Cards */
.royal-card-lock-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 8, 4, 0.5); /* Exactly 50% transparent overlay */
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  z-index: 6;
  border-radius: inherit;
  transition: all 0.3s ease;
  padding: 16px;
  pointer-events: none;
}

.royal-lock-icon {
  width: 44px;
  height: 44px;
  background: radial-gradient(circle, rgba(255, 205, 82, 0.3), rgba(15, 12, 5, 0.9));
  border: 1px solid rgba(255, 205, 82, 0.7);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 15px rgba(255, 205, 82, 0.4);
  color: #ffd34e;
}

.royal-lock-title {
  font-family: 'Unbounded', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #ffffff;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.9);
  text-transform: uppercase;
}

.royal-lock-subtitle {
  font-size: 10px;
  color: var(--gold-primary);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9);
}

.level-badge {
  font-family: 'Unbounded', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: var(--gold-light);
  margin-bottom: 4px;
}

.level-cost {
  font-size: 12px;
  font-weight: 600;
  color: #ffffff;
}

.level-status-pill {
  display: inline-block;
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 999px;
  margin-top: 6px;
}

.level-card.active-slot .level-status-pill {
  background: rgba(0, 230, 118, 0.18);
  color: #00e676;
}

.level-card.locked-slot .level-status-pill {
  background: rgba(150, 150, 150, 0.15);
  color: #a0a0a0;
}

/* 14-Spot Visual Matrix Tree & Responsive Enhancements */
.matrix-visualizer {
  padding: 22px 18px;
  border-radius: 18px;
  background: radial-gradient(circle at 50% 10%, rgba(30, 24, 8, 0.95), rgba(10, 8, 3, 0.98));
  border: 1px solid rgba(255, 205, 82, 0.3);
  margin-top: 20px;
  box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.8), 0 8px 30px rgba(0, 0, 0, 0.5);
  position: relative;
  overflow: hidden;
}

.matrix-visualizer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 20%;
  right: 20%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-primary), transparent);
}

/* Level Stats Ribbon */
.level-stats-ribbon {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(115px, 1fr));
  gap: 10px;
  background: rgba(18, 14, 5, 0.85);
  border: 1px solid rgba(255, 205, 82, 0.2);
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 16px;
  box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.5);
}

.ribbon-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.ribbon-label {
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-dim);
  margin-bottom: 3px;
}

.ribbon-value {
  font-family: 'Unbounded', sans-serif;
  font-size: 12px;
  font-weight: 700;
  color: #ffffff;
}

.matrix-progress-wrap {
  width: 100%;
  height: 5px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  margin-top: 5px;
  overflow: hidden;
}

.matrix-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #ffd34e, #00e676);
  border-radius: 999px;
  transition: width 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 0 8px rgba(0, 230, 118, 0.8);
}

/* Matrix Cycle Navigation & All Cycles Switcher */
.matrix-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  flex-wrap: wrap;
  gap: 10px;
}

.matrix-cycle-ctrl-group {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.cycle-nav-wrapper {
  display: inline-flex;
  align-items: center;
  background: rgba(15, 12, 6, 0.95);
  border: 1px solid rgba(255, 205, 82, 0.35);
  border-radius: 12px;
  padding: 2px 4px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

.cycle-nav-btn {
  background: transparent;
  border: none;
  color: var(--gold-primary);
  font-size: 18px;
  line-height: 1;
  font-weight: 800;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: 8px;
  transition: all 0.2s ease;
  user-select: none;
}

.cycle-nav-btn:hover:not(:disabled) {
  background: rgba(255, 205, 82, 0.2);
  color: #fff;
  transform: scale(1.05);
}

.cycle-nav-btn:disabled {
  opacity: 0.25;
  cursor: not-allowed;
  pointer-events: none;
}

.cycle-select-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.matrix-cycle-select {
  background: transparent;
  color: #ffd34e;
  border: none;
  font-family: 'Unbounded', sans-serif;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 8px;
  cursor: pointer;
  outline: none;
  appearance: auto;
  border-radius: 8px;
}

.matrix-cycle-select option {
  background: #14110d;
  color: #ffd34e;
  font-family: 'Urbanist', sans-serif;
  font-size: 12px;
  font-weight: 600;
  padding: 6px;
}

/* Mobile: cycle-nav-wrapper expands to 100% width of parent div / device */
@media (max-width: 768px) {
  .matrix-header-row {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .cycle-nav-wrapper {
    width: 100% !important;
    display: flex !important;
    justify-content: space-between !important;
    box-sizing: border-box;
    padding: 4px 8px;
  }

  .cycle-select-wrap {
    flex: 1;
    display: flex;
    justify-content: center;
    width: 100%;
  }

  .matrix-cycle-select {
    width: 100%;
    text-align: center;
    text-align-last: center;
    font-size: 11.5px;
    padding: 6px 8px;
  }

  .cycle-nav-btn {
    width: 32px;
    height: 32px;
    font-size: 20px;
    flex-shrink: 0;
  }
}

.cycle-status-badge {
  font-size: 10px;
  font-family: 'Unbounded', sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.3s ease;
}

.cycle-status-badge.active {
  background: rgba(0, 229, 255, 0.12);
  color: var(--cyan-accent);
  border-color: rgba(0, 229, 255, 0.4);
  box-shadow: 0 0 10px rgba(0, 229, 255, 0.2);
}

.cycle-status-badge.completed {
  background: rgba(0, 230, 118, 0.12);
  color: #00e676;
  border-color: rgba(0, 230, 118, 0.4);
  box-shadow: 0 0 10px rgba(0, 230, 118, 0.2);
}

/* Cycles Strip / Tabs Bar */
.cycles-pills-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 2px 10px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 205, 82, 0.3) transparent;
  margin-bottom: 6px;
}

.cycle-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 10px;
  font-family: 'Urbanist', sans-serif;
  font-size: 12px;
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(18, 15, 10, 0.8);
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.cycle-pill-btn:hover {
  border-color: rgba(255, 205, 82, 0.4);
  color: #fff;
  background: rgba(30, 25, 18, 0.9);
}

.cycle-pill-btn.active {
  background: linear-gradient(135deg, rgba(255, 205, 82, 0.25), rgba(242, 139, 0, 0.2));
  border-color: var(--gold-primary);
  color: #ffd34e;
  box-shadow: 0 0 12px rgba(255, 205, 82, 0.25);
}

.cycle-pill-btn.completed-pill {
  border-color: rgba(0, 230, 118, 0.3);
}

.cycle-pill-btn.completed-pill.active {
  background: linear-gradient(135deg, rgba(0, 230, 118, 0.2), rgba(0, 229, 255, 0.2));
  border-color: #00e676;
  color: #00e676;
  box-shadow: 0 0 12px rgba(0, 230, 118, 0.3);
}

.cycle-pill-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  display: inline-block;
}

.cycle-pill-dot.active-dot {
  background: var(--cyan-accent);
  box-shadow: 0 0 6px var(--cyan-accent);
}

.cycle-pill-dot.completed-dot {
  background: #00e676;
  box-shadow: 0 0 6px #00e676;
}

/* Completed Cycle Banner */
.cycle-info-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 12px;
  margin-bottom: 12px;
  font-size: 12px;
  border: 1px solid;
  animation: fadeIn 0.3s ease;
}

.cycle-info-banner.completed-banner {
  background: rgba(0, 230, 118, 0.08);
  border-color: rgba(0, 230, 118, 0.3);
  color: #e0e0e0;
}

.cycle-info-banner.active-banner {
  background: rgba(0, 229, 255, 0.07);
  border-color: rgba(0, 229, 255, 0.3);
  color: #e0e0e0;
}

.cib-content {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.cib-badge {
  font-family: 'Unbounded', sans-serif;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  text-transform: uppercase;
}

.cib-badge.completed {
  background: rgba(0, 230, 118, 0.2);
  color: #00e676;
  border: 1px solid rgba(0, 230, 118, 0.4);
}

.cib-badge.active {
  background: rgba(0, 229, 255, 0.2);
  color: var(--cyan-accent);
  border: 1px solid rgba(0, 229, 255, 0.4);
}

.cib-text {
  font-size: 12px;
  color: var(--text-dim);
}

.cib-text strong {
  color: var(--gold-primary);
}

.cib-action-btn {
  background: rgba(255, 205, 82, 0.15);
  border: 1px solid rgba(255, 205, 82, 0.4);
  color: #ffd34e;
  font-family: 'Urbanist', sans-serif;
  font-size: 11px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.cib-action-btn:hover {
  background: rgba(255, 205, 82, 0.3);
  color: #fff;
  box-shadow: 0 0 10px rgba(255, 205, 82, 0.3);
}

/* View Switcher Controls */
.matrix-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}

.view-switcher {
  display: inline-flex;
  gap: 4px;
  background: rgba(10, 8, 3, 0.85);
  border: 1px solid rgba(255, 205, 82, 0.25);
  padding: 3px;
  border-radius: 10px;
}

.view-tab-btn {
  padding: 6px 12px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--gold-dim);
  font-family: 'Urbanist', sans-serif;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 5px;
}

.view-tab-btn:hover {
  color: #fff;
}

.view-tab-btn.active {
  background: linear-gradient(135deg, #ffd34e, #f28b00);
  color: #050505;
  box-shadow: 0 0 12px rgba(255, 205, 82, 0.4);
}

.demo-toggle-btn {
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  border: 1px solid rgba(0, 229, 255, 0.4);
  background: rgba(0, 229, 255, 0.1);
  color: #00e5ff;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 5px;
}

.demo-toggle-btn:hover {
  background: rgba(0, 229, 255, 0.25);
  border-color: #00e5ff;
  box-shadow: 0 0 10px rgba(0, 229, 255, 0.4);
}

.demo-toggle-btn.active {
  background: #00e5ff;
  color: #000;
  font-weight: 800;
  box-shadow: 0 0 14px rgba(0, 229, 255, 0.6);
}

/* Color-coded Legend */
.matrix-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  justify-content: center;
  padding: 10px 0 16px;
  border-bottom: 1px solid rgba(255, 205, 82, 0.12);
  margin-bottom: 18px;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
  cursor: default;
}

.legend-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}

.dot-upline { background: var(--cyan-spill); box-shadow: 0 0 8px var(--cyan-spill); }
.dot-dividend { background: var(--gold-primary); box-shadow: 0 0 8px var(--gold-primary); }
.dot-upgrade { background: var(--green-upgrade); box-shadow: 0 0 8px var(--green-upgrade); }
.dot-downline { background: var(--purple-downline); box-shadow: 0 0 8px var(--purple-downline); }
.dot-recycle { background: var(--red-recycle); box-shadow: 0 0 8px var(--red-recycle); }

/* Interactive Tree Container & SVG Connectors */
.tree-viewport-wrapper {
  position: relative;
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  padding: 10px 0 20px;
}

.tree-container {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(14px, 3.5vw, 24px);
  width: 100%;
  min-width: 290px;
  margin: 0 auto;
}

.tree-svg-branches {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.tree-branch {
  stroke: rgba(255, 205, 82, 0.25);
  stroke-width: 1.5;
  fill: none;
  stroke-dasharray: 4 4;
  animation: branchEnergyFlow 2.5s linear infinite;
  transition: stroke 0.3s, stroke-width 0.3s;
}

.tree-branch.branch-active {
  stroke: var(--gold-primary);
  stroke-width: 2.2;
  filter: drop-shadow(0 0 6px rgba(255, 211, 78, 0.8));
  stroke-dasharray: 6 3;
  animation: branchEnergyFlow 1.2s linear infinite;
}

@keyframes branchEnergyFlow {
  to { stroke-dashoffset: -28; }
}

.tree-row {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  gap: clamp(3px, 1.2vw, 10px);
  width: 100%;
}

/* Tier Headers / Section Indicators */
.tier-tag {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--gold-dim);
  text-transform: uppercase;
  background: rgba(255, 205, 82, 0.08);
  padding: 2px 6px;
  border-radius: 4px;
  pointer-events: none;
}

/* Matrix Nodes - Responsive & Animated */
.matrix-node {
  position: relative;
  z-index: 2;
  width: clamp(32px, 7.8vw, 50px);
  height: clamp(32px, 7.8vw, 50px);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 2px solid rgba(255, 205, 82, 0.35);
  background: rgba(18, 14, 5, 0.95);
  cursor: pointer;
  user-select: none;
  transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1), border-color 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.7);
}

.matrix-node.row2 {
  margin: 0 50px 0 50px;
}

.matrix-node.b4 {
  margin: 0 20px 0 30px;
}

.matrix-node.b5 {
  margin: 0 30px 0 20px;
}

.matrix-node:hover {
  transform: scale(1.15) translateY(-2px);
  border-color: #ffffff;
  box-shadow: 0 0 16px rgba(255, 211, 78, 0.7);
  z-index: 10;
}

.matrix-node:active {
  transform: scale(0.95);
}

.matrix-node.root-node {
  width: clamp(42px, 10vw, 62px);
  height: clamp(42px, 10vw, 62px);
  border-color: #ffd34e;
  background: radial-gradient(circle at 35% 35%, #ffe58f, #f28b00 75%, #a65d00);
  color: #050505;
  box-shadow: 0 0 20px rgba(255, 180, 0, 0.6);
  animation: rootCoronaPulse 3s ease-in-out infinite;
  cursor: default;
}

.matrix-node.root-node:hover {
  transform: none;
}

@keyframes rootCoronaPulse {
  0%, 100% {
    box-shadow: 0 0 15px rgba(255, 200, 50, 0.6), 0 0 30px rgba(242, 139, 0, 0.35);
  }
  50% {
    box-shadow: 0 0 25px rgba(255, 220, 100, 0.9), 0 0 45px rgba(242, 139, 0, 0.6);
  }
}

.node-num {
  font-family: 'Unbounded', sans-serif;
  font-size: clamp(9px, 2.1vw, 12px);
  font-weight: 700;
  line-height: 1;
}

.node-type-label {
  font-family: 'Urbanist', sans-serif;
  font-size: clamp(6.5px, 1.3vw, 8px);
  font-weight: 700;
  letter-spacing: 0.02em;
  opacity: 0.9;
  line-height: 1;
  margin-top: 2px;
}

/* Spot Filled Glow Animations */
.matrix-node.filled {
  animation: nodeFilledAura 2.2s ease-in-out infinite alternate;
}

@keyframes nodeFilledAura {
  0% { transform: scale(1); filter: brightness(1); }
  100% { transform: scale(1.03); filter: brightness(1.15); }
}

.matrix-node.filled.spot-upline {
  border-color: var(--cyan-spill);
  background: radial-gradient(circle at 35% 35%, rgba(0, 229, 255, 0.4), rgba(10, 25, 35, 0.98));
  box-shadow: 0 0 14px rgba(0, 229, 255, 0.65), inset 0 0 8px rgba(0, 229, 255, 0.3);
}

.matrix-node.filled.spot-dividend {
  border-color: var(--gold-primary);
  background: radial-gradient(circle at 35% 35%, rgba(255, 211, 78, 0.45), rgba(30, 22, 6, 0.98));
  box-shadow: 0 0 16px rgba(255, 205, 82, 0.7), inset 0 0 8px rgba(255, 205, 82, 0.3);
}

.matrix-node.filled.spot-upgrade {
  border-color: var(--green-upgrade);
  background: radial-gradient(circle at 35% 35%, rgba(0, 230, 118, 0.4), rgba(5, 30, 15, 0.98));
  box-shadow: 0 0 16px rgba(0, 230, 118, 0.65), inset 0 0 8px rgba(0, 230, 118, 0.3);
}

.matrix-node.filled.spot-downline {
  border-color: var(--purple-downline);
  background: radial-gradient(circle at 35% 35%, rgba(213, 0, 249, 0.4), rgba(30, 5, 35, 0.98));
  box-shadow: 0 0 16px rgba(213, 0, 249, 0.7), inset 0 0 8px rgba(213, 0, 249, 0.3);
}

.matrix-node.filled.spot-recycle {
  border-color: var(--red-recycle);
  background: radial-gradient(circle at 35% 35%, rgba(255, 82, 82, 0.4), rgba(35, 8, 8, 0.98));
  box-shadow: 0 0 16px rgba(255, 82, 82, 0.7), inset 0 0 8px rgba(255, 82, 82, 0.3);
}

/* Spot Node Ripple Effect on click */
.node-ripple {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 2px solid var(--gold-primary);
  animation: rippleOut 0.5s ease-out forwards;
  pointer-events: none;
}

@keyframes rippleOut {
  0% { transform: scale(1); opacity: 1; }
  100% { transform: scale(1.9); opacity: 0; }
}

/* Informative 14-Spot Table View */
.matrix-table-wrap {
  width: 100%;
  overflow-x: auto;
  border-radius: 12px;
  border: 1px solid rgba(255, 205, 82, 0.2);
  background: rgba(12, 10, 4, 0.85);
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.6);
}

.matrix-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  text-align: left;
}

.matrix-table th {
  background: rgba(30, 24, 10, 0.9);
  color: var(--gold-primary);
  padding: 10px 12px;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(255, 205, 82, 0.25);
  white-space: nowrap;
}

.matrix-table td {
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255, 205, 82, 0.08);
  color: var(--text-muted);
}

.matrix-table tr:hover td {
  background: rgba(255, 205, 82, 0.06);
  color: #ffffff;
  cursor: pointer;
}

.status-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
}

.status-badge.filled {
  background: rgba(0, 230, 118, 0.2);
  color: #00e676;
  border: 1px solid rgba(0, 230, 118, 0.4);
}

.status-badge.empty {
  background: rgba(150, 150, 150, 0.15);
  color: #a0a0a0;
  border: 1px solid rgba(150, 150, 150, 0.3);
}

/* Responsive Mobile Spot Cards for 'Spot Mechanics' */
.matrix-mobile-cards {
  display: none;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

.spot-mechanic-card {
  background: linear-gradient(160deg, rgba(24, 19, 7, 0.95), rgba(12, 10, 4, 0.98));
  border: 1px solid rgba(255, 205, 82, 0.22);
  border-radius: 14px;
  padding: 12px 14px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.6);
  cursor: pointer;
  user-select: none;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.spot-mechanic-card:active,
.spot-mechanic-card:hover {
  border-color: var(--gold-primary);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 205, 82, 0.15);
}

.sm-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 205, 82, 0.12);
  flex-wrap: wrap;
  gap: 6px;
}

.sm-card-left {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.sm-spot-num {
  font-family: 'Unbounded', sans-serif;
  font-size: 13px;
  font-weight: 800;
}

.sm-spot-tier {
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-dim);
  background: rgba(255, 205, 82, 0.08);
  padding: 2px 6px;
  border-radius: 4px;
}

.sm-spot-cat {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 999px;
}

.sm-card-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
}

.sm-info-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
}

.sm-label {
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-dim);
  flex-shrink: 0;
  width: 75px;
}

.sm-val {
  color: var(--text-muted);
  text-align: right;
  flex: 1;
  font-size: 11.5px;
  line-height: 1.4;
}

.sm-val.font-mono {
  font-family: monospace;
  font-size: 11px;
}

.sm-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px dashed rgba(255, 205, 82, 0.12);
}

/* Visibility rules between Desktop Table and Mobile Cards */
@media (max-width: 768px) {
  .desktop-only-table {
    display: none !important;
  }
  .matrix-mobile-cards {
    display: flex !important;
  }
}

@media (min-width: 769px) {
  .desktop-only-table {
    display: block !important;
  }
  .matrix-mobile-cards {
    display: none !important;
  }
}

/* Spot Inspector Modal */
#auditTreeModalBackdrop {
  z-index: 9990;
}

#spotModalBackdrop {
  z-index: 10010;
}

.audit-tree-modal-card {
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.95), 0 0 40px rgba(0, 229, 255, 0.15);
}

.audit-level-pill {
  padding: 5px 12px;
  border-radius: 8px;
  background: rgba(255, 205, 82, 0.08);
  border: 1px solid rgba(255, 205, 82, 0.2);
  color: var(--text-dim);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.audit-level-pill:hover {
  background: rgba(0, 229, 255, 0.15);
  border-color: rgba(0, 229, 255, 0.4);
  color: #00e5ff;
}

.audit-level-pill.active {
  background: linear-gradient(135deg, rgba(0, 229, 255, 0.25), rgba(157, 78, 221, 0.25));
  border-color: #00e5ff;
  color: #fff;
  box-shadow: 0 0 10px rgba(0, 229, 255, 0.3);
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(4, 3, 1, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  padding: 4px;
}

.modal-backdrop.show {
  opacity: 1;
  visibility: visible;
}

.spot-modal-card {
  width: 100%;
  max-width: 480px;
  border-radius: 20px;
  border: 1px solid var(--gold-border-glow);
  background: linear-gradient(170deg, rgba(28, 22, 9, 0.98), rgba(12, 10, 4, 0.98));
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.9), 0 0 30px rgba(255, 205, 82, 0.2);
  padding: 24px;
  position: relative;
  transform: translateY(20px) scale(0.95);
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  overflow: hidden;
}

.modal-backdrop.show .spot-modal-card {
  transform: translateY(0) scale(1);
}

.modal-close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 205, 82, 0.1);
  border: 1px solid rgba(255, 205, 82, 0.3);
  color: var(--gold-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.modal-close-btn:hover {
  background: rgba(255, 205, 82, 0.25);
  color: #fff;
  transform: rotate(90deg);
}

.spot-modal-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 12px;
}

.spot-detail-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 205, 82, 0.1);
  font-size: 13px;
}

.spot-detail-label {
  color: var(--gold-dim);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  flex-shrink: 0;
  width: 120px;
}

.spot-detail-value {
  color: #ffffff;
  font-weight: 600;
  text-align: right;
  flex: 1;
}

.spot-rule-box {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(10, 8, 3, 0.7);
  border: 1px dashed rgba(255, 205, 82, 0.25);
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Connected Wallet Details Modal */
.wallet-avatar-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: radial-gradient(circle, rgba(255, 205, 82, 0.25), rgba(20, 16, 8, 0.9));
  border: 1px solid var(--gold-border);
  color: var(--gold-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 15px rgba(255, 205, 82, 0.2);
  flex-shrink: 0;
}

.wallet-address-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 205, 82, 0.2);
  border-radius: 12px;
  padding: 10px 14px;
  margin-bottom: 14px;
  gap: 10px;
}

.wallet-address-text {
  font-family: monospace;
  font-size: 12.5px;
  color: #fff;
  word-break: break-all;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wallet-copy-btn {
  background: rgba(255, 205, 82, 0.15);
  border: 1px solid rgba(255, 205, 82, 0.4);
  color: var(--gold-light);
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.wallet-copy-btn:hover {
  background: rgba(255, 205, 82, 0.35);
  color: #fff;
  transform: translateY(-1px);
}

.wallet-details-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.wallet-stat-tile {
  background: rgba(20, 16, 8, 0.65);
  border: 1px solid rgba(255, 205, 82, 0.15);
  border-radius: 12px;
  padding: 12px;
  transition: all 0.2s ease;
}

.wallet-stat-tile:hover {
  border-color: rgba(255, 205, 82, 0.35);
}

.wallet-tile-label {
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 4px;
}

.wallet-tile-value {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  font-family: 'Unbounded', sans-serif;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wallet-tile-value.gold-accent {
  color: var(--gold-primary);
}

.wallet-tile-sub {
  font-size: 10px;
  color: var(--text-muted);
  margin-top: 3px;
}

/* NFT Showcase Gallery */
.nft-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 16px;
  margin-top: 14px;
}

.nft-card {
  position: relative;
  padding: 18px;
  border-radius: 18px;
  border: 1px solid var(--gold-border);
  background: var(--bg-card);
  text-align: center;
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.6);
  transition: all 0.25s ease;
  overflow: hidden;
}

.nft-card:hover {
  transform: translateY(-3px);
  border-color: var(--gold-border-glow);
  box-shadow: 0 8px 30px rgba(255, 177, 0, 0.2);
}

.nft-icon-wrap {
  width: 72px;
  height: 72px;
  margin: 0 auto 12px;
  border-radius: 50%;
  border: 1px solid var(--gold-border);
  background: radial-gradient(circle, rgba(255, 205, 82, 0.2), transparent 70%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
}

.nft-title {
  font-family: 'Unbounded', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
}

.nft-sub {
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--gold-dim);
  text-transform: uppercase;
  margin-bottom: 12px;
}

.nft-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: rgba(255, 205, 82, 0.1);
  border: 1px solid rgba(255, 205, 82, 0.3);
  color: var(--gold-primary);
}

/* ============================================================
   VIP PASS LUXURY TICKET STYLES (MATCHING USER ATTACHED DESIGN)
   ============================================================ */

.nft-card1 {
  position: relative;
  grid-column: 1 / -1;
  width: 100%;
  max-width: 860px;
  margin: 0 auto 10px auto;
  background: radial-gradient(circle at 50% 50%, #1f1b13 0%, #12100b 60%, #080705 100%);
  border: 1.5px solid #d4af37;
  border-radius: 14px;
  display: flex;
  flex-direction: row;
  align-items: stretch;
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.9), 0 0 30px rgba(212, 175, 55, 0.15), inset 0 0 35px rgba(0, 0, 0, 0.85);
  transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
  cursor: pointer;
  overflow: visible;
  padding: 4px;
  user-select: none;
}

.nft-card1:hover {
  transform: translateY(-3px);
  border-color: #ffd700;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.95), 0 0 45px rgba(255, 215, 0, 0.28), inset 0 0 45px rgba(212, 175, 55, 0.1);
}

/* Inner Gold Border Frame */
.vip-ticket-inner-frame {
  position: absolute;
  top: 8px;
  bottom: 8px;
  left: 8px;
  right: 8px;
  border: 1px solid rgba(212, 175, 55, 0.4);
  border-radius: 10px;
  pointer-events: none;
  z-index: 1;
}

/* Left & Right Scalloped Serrated Perforations (Ticket Tear Edges) */
.vip-scallop-left,
.vip-scallop-right {
  position: absolute;
  top: 14px;
  bottom: 14px;
  width: 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  pointer-events: none;
  z-index: 6;
}

.vip-scallop-left {
  left: -8px;
}

.vip-scallop-right {
  right: -8px;
}

.scallop-bite {
  width: 14px;
  height: 14px;
  background-color: var(--bg-deep, #030303);
  border: 1.5px solid #d4af37;
  border-radius: 50%;
  box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.95);
}

.vip-scallop-left .scallop-bite {
  border-left-color: transparent;
}

.vip-scallop-right .scallop-bite {
  border-right-color: transparent;
}

/* Vertical Perforated Dividers with Top & Bottom Punch Notches */
.vip-ticket-divider {
  position: relative;
  width: 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
  z-index: 5;
}

.vip-divider-line {
  position: absolute;
  top: 16px;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: 1.5px;
  background: repeating-linear-gradient(
    to bottom,
    #d4af37 0px,
    #d4af37 5px,
    transparent 5px,
    transparent 11px
  );
  opacity: 0.7;
}

.vip-punch-notch-top,
.vip-punch-notch-bottom {
  position: absolute;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background-color: var(--bg-deep, #030303);
  border: 1.5px solid #d4af37;
  z-index: 7;
}

.vip-punch-notch-top {
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  border-top-color: transparent;
  box-shadow: inset 0 -3px 5px rgba(0, 0, 0, 0.9);
}

.vip-punch-notch-bottom {
  bottom: -14px;
  left: 50%;
  transform: translateX(-50%);
  border-bottom-color: transparent;
  box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.9);
}

/* 1. Left Stub: Geometric Diamond Section */
.vip-ticket-stub-left {
  flex: 0 0 170px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  position: relative;
  z-index: 3;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.08), transparent 80%);
}

/* Continuous Diamond Floating & Luminescence Animation (Desktop & All Devices) */
@keyframes vipDiamondFloatGlow {
  0% {
    transform: translateY(0) scale(1);
    filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.45));
  }
  50% {
    transform: translateY(-5px) scale(1.06);
    filter: drop-shadow(0 0 22px rgba(255, 215, 0, 0.85)) drop-shadow(0 0 36px rgba(255, 205, 82, 0.5));
  }
  100% {
    transform: translateY(0) scale(1);
    filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.45));
  }
}

.vip-diamond-svg {
  width: 82px;
  height: 70px;
  filter: drop-shadow(0 0 12px rgba(255, 215, 0, 0.45));
  animation: vipDiamondFloatGlow 3s ease-in-out infinite;
  transform-origin: center center;
  will-change: transform, filter;
  transition: transform 0.3s ease, filter 0.3s ease;
}

.nft-card1:hover .vip-diamond-svg {
  animation-duration: 1.8s;
  filter: drop-shadow(0 0 26px rgba(255, 215, 0, 0.95)) drop-shadow(0 0 42px rgba(255, 205, 82, 0.6));
}

.vip-stub-badge-box {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

/* 2. Center Ticket Body */
.vip-ticket-body {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px 18px;
  position: relative;
  z-index: 3;
}

/* Top Stars & Serial Number */
.vip-serial-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: 'DM Sans', monospace, sans-serif;
  font-size: 11px;
  color: #dfb743;
  margin-bottom: 4px;
  white-space: nowrap;
}

.vip-stars {
  font-size: 9.5px;
  letter-spacing: 0.18em;
  color: #c9a032;
  opacity: 0.85;
}

.vip-serial-number {
  font-weight: 700;
  letter-spacing: 0.16em;
  background: linear-gradient(180deg, #fff2b2, #dfb743);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Big Gold Hero Title: ★ VIP PASS ★ */
.vip-hero-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin: 2px 0 6px 0;
}

.vip-title-star {
  font-size: 26px;
  color: #dfb743;
  filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.5));
}

.vip-title-text {
  font-family: 'Unbounded', 'Urbanist', sans-serif;
  font-size: 42px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: linear-gradient(
    180deg,
    #ffffff 0%,
    #ffea88 25%,
    #d4af37 55%,
    #8c6812 78%,
    #f3e5ab 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 3px 12px rgba(0, 0, 0, 0.9)) drop-shadow(0 0 22px rgba(212, 175, 55, 0.4));
  line-height: 1.05;
}

/* Luxury Cursive / Italic Subtext */
.vip-script-text {
  font-family: 'DM Sans', Georgia, serif;
  font-style: italic;
  font-size: 12px;
  color: #dfcaa0;
  max-width: 480px;
  line-height: 1.35;
  margin-bottom: 10px;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.9);
  opacity: 0.95;
}

/* Timer Embedded inside Center Body */
.vip-ticket-timer-wrap {
  width: 100%;
  max-width: 320px;
  margin: 4px auto 8px auto;
}

.vip-ticket-timer-wrap .countdown-digit-cell {
  background: rgba(10, 8, 5, 0.85);
  border: 1px solid rgba(212, 175, 55, 0.45);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.7), inset 0 0 10px rgba(212, 175, 55, 0.1);
}

.vip-ticket-timer-wrap .digit-val {
  background: linear-gradient(180deg, #ffffff 0%, #ffea88 40%, #dfb743 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.vip-ticket-timer-wrap .countdown-colon {
  color: #dfb743;
  text-shadow: 0 0 8px rgba(223, 183, 67, 0.6);
}

/* Horizontal Gold Divider Rule */
.vip-horizontal-divider {
  width: 100%;
  max-width: 480px;
  height: 1.5px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(212, 175, 55, 0.3) 15%,
    #d4af37 50%,
    rgba(212, 175, 55, 0.3) 85%,
    transparent 100%
  );
  margin: 6px 0;
}

/* Footer Metadata: EVENT NAME • 02.06.2025. • LOCATION */
.vip-footer-metadata {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  font-family: 'Unbounded', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #dfb743;
}

.vip-meta-separator {
  color: #996515;
  font-size: 10px;
}

/* Actions Row (Sell Button & Hint) */
.vip-actions-row {
  display: flex;
  gap: 10px;
  justify-content: center;
  align-items: center;
  margin-top: 10px;
  flex-wrap: wrap;
}

/* 3. Right Stub: ADMIT ONE & Barcode Section */
.vip-ticket-stub-right {
  flex: 0 0 160px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  padding: 16px 14px;
  position: relative;
  z-index: 3;
  background: linear-gradient(225deg, rgba(212, 175, 55, 0.08), transparent 80%);
  gap: 14px;
}

.vip-admit-text {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-family: 'Unbounded', sans-serif;
  font-size: 20px;
  font-weight: 900;
  letter-spacing: 0.3em;
  background: linear-gradient(180deg, #fff2b2, #dfb743, #8c6812);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  white-space: nowrap;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
}

.vip-barcode-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(12, 10, 6, 0.6);
  border: 1px solid rgba(212, 175, 55, 0.4);
  border-radius: 6px;
  padding: 6px 5px;
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.8);
}

.vip-barcode-svg {
  width: 48px;
  height: 140px;
  filter: drop-shadow(0 0 4px rgba(212, 175, 55, 0.3));
}

/* Responsive Scaling for Tablets & Mobile Screens */
/* Responsive Scaling for Tablets & Mobile Screens: Show ONLY stub-left & cardNftCountdownGrid */
/* Responsive Scaling for Tablets & Mobile Screens: Show ONLY stub-left & cardNftCountdownGrid on page card #nftPassCard */
@media (max-width: 820px) {
  #nftPassCard {
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    max-width: 420px;
    margin: 0 auto 12px auto;
    padding: 18px 12px 16px 12px;
    border-radius: 16px;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.9), 0 0 25px rgba(212, 175, 55, 0.18), inset 0 0 25px rgba(212, 175, 55, 0.05);
    background: radial-gradient(circle at 50% 30%, #1f1b13 0%, #12100b 60%, #080705 100%);
    gap: 8px;
    overflow: hidden;
  }

  #nftPassCard .vip-ticket-inner-frame {
    top: 6px;
    bottom: 6px;
    left: 6px;
    right: 6px;
    border-radius: 12px;
    border-color: rgba(212, 175, 55, 0.3);
  }

  /* Show ONLY Left Stub (Diamond + Status Badge) on page card */
  #nftPassCard .vip-ticket-stub-left {
    flex: none !important;
    width: 100% !important;
    padding: 2px 4px !important;
    background: transparent !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
  }

  #nftPassCard .vip-ticket-stub-left .vip-diamond-svg {
    width: 76px !important;
    height: 64px !important;
  }

  #nftPassCard .vip-stub-badge-box {
    margin-top: 10px !important;
  }

  /* Body acts as a clean wrapper for cardNftCountdownGrid only */
  #nftPassCard .vip-ticket-body {
    flex: none !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
  }

  /* Live 100-Day Unlock Countdown Grid in Mobile Page Card */
  #nftPassCard #cardNftCountdownGrid.vip-ticket-timer-wrap,
  #nftPassCard #cardNftCountdownGrid {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 6px !important;
    margin: 8px 0 2px 0 !important;
    width: 100% !important;
    max-width: 320px !important;
  }

  #nftPassCard #cardNftCountdownGrid .countdown-digit-cell {
    min-width: 48px !important;
    padding: 6px 3px !important;
    border-radius: 8px !important;
    background: rgba(14, 11, 8, 0.9) !important;
    border-color: rgba(212, 175, 55, 0.4) !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.6) !important;
  }

  #nftPassCard #cardNftCountdownGrid .digit-val {
    font-size: 16px !important;
  }

  #nftPassCard #cardNftCountdownGrid .digit-lbl {
    font-size: 8px !important;
    margin-top: 2px !important;
  }

  #nftPassCard #cardNftCountdownGrid .countdown-colon {
    font-size: 15px !important;
  }

  /* Hide all other sections in mobile view on page card to keep card super clean */
  #nftPassCard .vip-scallop-left,
  #nftPassCard .vip-scallop-right,
  #nftPassCard .vip-ticket-divider,
  #nftPassCard .vip-ticket-stub-right,
  #nftPassCard .vip-serial-row,
  #nftPassCard .vip-hero-title,
  #nftPassCard .vip-script-text,
  #nftPassCard .vip-horizontal-divider,
  #nftPassCard .vip-footer-metadata,
  #nftPassCard .vip-actions-row {
    display: none !important;
  }
}

/* ============================================================
   VIP TICKET MODAL STYLES (VERTICAL TICKET FIT IN MOBILE VIEW)
   ============================================================ */

.ticket-modal-card {
  width: 98% !important;
  /* max-width: 440px !important; */
  max-height: 92vh !important;
  overflow-y: auto !important;
  background: radial-gradient(circle at 50% 25%, rgba(26, 20, 9, 0.98), rgba(9, 7, 3, 0.99)) !important;
  border: 1.5px solid var(--gold-border-glow) !important;
  border-radius: 20px !important;
  padding: 18px 14px 16px 14px !important;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.95), 0 0 35px rgba(255, 205, 82, 0.25) !important;
  box-sizing: border-box !important;
}

.modal-ticket-scroll-wrap {
  width: 100% !important;
  max-width: 100% !important;
  overflow-x: hidden !important;
  overflow-y: visible !important;
  padding: 6px 4px 10px 4px !important;
  display: flex !important;
  justify-content: center !important;
  box-sizing: border-box !important;
}

.modal-desktop-ticket-view {
  width: calc(100% - 28px) !important;
  max-width: 360px !important;
  min-width: 0 !important;
  margin: 0 auto !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  position: relative !important;
  border-radius: 18px !important;
  border: 1.5px solid #d4af37 !important;
  background: radial-gradient(circle at 50% 30%, #1f1b13 0%, #12100b 60%, #080705 100%) !important;
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.9), 0 0 30px rgba(212, 175, 55, 0.2), inset 0 0 35px rgba(0, 0, 0, 0.85) !important;
  padding: 4px !important;
  box-sizing: border-box !important;
  user-select: none;
  overflow: visible !important;
}

.modal-desktop-ticket-view .vip-ticket-inner-frame {
  position: absolute !important;
  top: 6px !important;
  bottom: 6px !important;
  left: 6px !important;
  right: 6px !important;
  border: 1px solid rgba(212, 175, 55, 0.4) !important;
  border-radius: 13px !important;
  pointer-events: none !important;
  z-index: 1 !important;
}

/* Hide outer edge scallop bites to ensure clean zero-overflow fit */
.modal-desktop-ticket-view .vip-scallop-left,
.modal-desktop-ticket-view .vip-scallop-right {
  display: none !important;
}

/* Top Stub: Geometric Diamond Section */
.modal-desktop-ticket-view .vip-ticket-stub-left {
  flex: none !important;
  width: 100% !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 16px 12px 10px 12px !important;
  background: radial-gradient(ellipse at 50% 30%, rgba(212, 175, 55, 0.12), transparent 75%) !important;
  position: relative !important;
  z-index: 3 !important;
  box-sizing: border-box !important;
}

.modal-desktop-ticket-view .vip-diamond-svg {
  width: 76px !important;
  height: 64px !important;
  animation: vipDiamondFloatGlow 3s ease-in-out infinite !important;
}

.modal-desktop-ticket-view .vip-stub-badge-box {
  margin-top: 10px !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 4px !important;
}

/* Perforated Horizontal Dividers with Punch Notches at Both Sides */
.modal-desktop-ticket-view .vip-ticket-divider {
  width: 100% !important;
  height: 22px !important;
  position: relative !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex: none !important;
  z-index: 5 !important;
  margin: 0 !important;
}

.modal-desktop-ticket-view .vip-divider-line {
  position: absolute !important;
  left: 14px !important;
  right: 14px !important;
  top: 50% !important;
  bottom: auto !important;
  width: auto !important;
  height: 1.5px !important;
  transform: translateY(-50%) !important;
  background: repeating-linear-gradient(to right, #d4af37 0px, #d4af37 6px, transparent 6px, transparent 12px) !important;
  opacity: 0.75 !important;
}

.modal-desktop-ticket-view .vip-punch-notch-top {
  position: absolute !important;
  left: -13px !important;
  top: 50% !important;
  bottom: auto !important;
  transform: translateY(-50%) !important;
  width: 24px !important;
  height: 24px !important;
  border-radius: 50% !important;
  background-color: var(--bg-deep, #030303) !important;
  border: 1.5px solid #d4af37 !important;
  border-left-color: transparent !important;
  box-shadow: inset 3px 0 5px rgba(0, 0, 0, 0.95) !important;
  z-index: 7 !important;
}

.modal-desktop-ticket-view .vip-punch-notch-bottom {
  position: absolute !important;
  right: -13px !important;
  left: auto !important;
  top: 50% !important;
  bottom: auto !important;
  transform: translateY(-50%) !important;
  width: 24px !important;
  height: 24px !important;
  border-radius: 50% !important;
  background-color: var(--bg-deep, #030303) !important;
  border: 1.5px solid #d4af37 !important;
  border-right-color: transparent !important;
  box-shadow: inset -3px 0 5px rgba(0, 0, 0, 0.95) !important;
  z-index: 7 !important;
}

/* Center Ticket Body: VIP PASS Content */
.modal-desktop-ticket-view .vip-ticket-body {
  flex: none !important;
  width: 100% !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  padding: 14px 10px 10px 10px !important;
  position: relative !important;
  z-index: 3 !important;
  box-sizing: border-box !important;
}

.modal-desktop-ticket-view .vip-serial-row {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  font-size: 11px !important;
  color: #dfb743 !important;
  margin-bottom: 2px !important;
  flex-wrap: wrap !important;
}

.modal-desktop-ticket-view .vip-hero-title {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 12px !important;
  margin: 2px 0 4px 0 !important;
}

.modal-desktop-ticket-view .vip-title-star {
  font-size: 20px !important;
  color: #dfb743 !important;
  filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.5)) !important;
}

.modal-desktop-ticket-view .vip-title-text {
  font-family: 'Unbounded', 'Urbanist', sans-serif !important;
  font-size: 30px !important;
  font-weight: 900 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
  background: linear-gradient(180deg, #ffffff 0%, #ffea88 25%, #d4af37 55%, #8c6812 78%, #f3e5ab 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  filter: drop-shadow(0 3px 12px rgba(0, 0, 0, 0.9)) drop-shadow(0 0 20px rgba(212, 175, 55, 0.4)) !important;
  line-height: 1.05 !important;
}

.modal-desktop-ticket-view .vip-script-text {
  font-family: 'DM Sans', Georgia, serif !important;
  font-style: italic !important;
  font-size: 11px !important;
  line-height: 1.4 !important;
  max-width: 95% !important;
  margin: 2px auto 8px auto !important;
  display: block !important;
  color: #dfcaa0 !important;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.9) !important;
}

/* 100-Day Unlock Countdown Timer in Modal Ticket */
.modal-desktop-ticket-view #modalCardNftCountdownGrid.vip-ticket-timer-wrap,
.modal-desktop-ticket-view #modalCardNftCountdownGrid {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 6px !important;
  margin: 4px auto 8px auto !important;
  width: 100% !important;
  max-width: 310px !important;
}

.modal-desktop-ticket-view .countdown-digit-cell {
  min-width: 48px !important;
  padding: 6px 3px !important;
  border-radius: 8px !important;
  background: rgba(14, 11, 8, 0.9) !important;
  border: 1px solid rgba(212, 175, 55, 0.4) !important;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.6) !important;
}

.modal-desktop-ticket-view .digit-val {
  font-size: 17px !important;
  background: linear-gradient(180deg, #ffffff 0%, #ffea88 40%, #dfb743 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
}

.modal-desktop-ticket-view .digit-lbl {
  font-size: 8px !important;
  margin-top: 2px !important;
}

.modal-desktop-ticket-view .countdown-colon {
  font-size: 15px !important;
  color: #dfb743 !important;
  text-shadow: 0 0 8px rgba(223, 183, 67, 0.6) !important;
}

.modal-desktop-ticket-view .vip-horizontal-divider {
  width: 86% !important;
  max-width: 280px !important;
  height: 1.5px !important;
  margin: 8px auto !important;
  display: block !important;
}

.modal-desktop-ticket-view .vip-footer-metadata {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  font-family: 'Unbounded', sans-serif !important;
  font-size: 9.5px !important;
  font-weight: 700 !important;
  letter-spacing: 0.14em !important;
  text-transform: uppercase !important;
  color: #dfb743 !important;
  flex-wrap: wrap !important;
}

.modal-desktop-ticket-view .vip-actions-row {
  display: flex !important;
  gap: 10px !important;
  justify-content: center !important;
  align-items: center !important;
  margin-top: 8px !important;
  flex-wrap: wrap !important;
}

/* Bottom Stub: ADMIT ONE & Barcode */
.modal-desktop-ticket-view .vip-ticket-stub-right {
  flex: none !important;
  width: 100% !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 10px 14px 14px 14px !important;
  gap: 6px !important;
  background: linear-gradient(180deg, transparent 0%, rgba(212, 175, 55, 0.08) 100%) !important;
  position: relative !important;
  z-index: 3 !important;
  box-sizing: border-box !important;
}

.modal-desktop-ticket-view .vip-admit-text {
  writing-mode: horizontal-tb !important;
  transform: none !important;
  font-family: 'Unbounded', sans-serif !important;
  font-size: 15px !important;
  font-weight: 900 !important;
  letter-spacing: 0.25em !important;
  background: linear-gradient(180deg, #fff2b2, #dfb743, #8c6812) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  white-space: nowrap !important;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8) !important;
  text-align: center !important;
  display: block !important;
}

.modal-desktop-ticket-view .vip-barcode-box {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  width: 90% !important;
  max-width: 260px !important;
  padding: 6px 10px !important;
  background: rgba(12, 10, 6, 0.6) !important;
  border: 1px solid rgba(212, 175, 55, 0.4) !important;
  border-radius: 6px !important;
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.8) !important;
  box-sizing: border-box !important;
}

.modal-desktop-ticket-view .vip-barcode-svg {
  width: 100% !important;
  max-width: 240px !important;
  height: 32px !important;
  transform: none !important;
  display: block !important;
  filter: drop-shadow(0 0 4px rgba(212, 175, 55, 0.3)) !important;
}


.nft-card {
  cursor: pointer;
}

.royal-pool-hint {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10.5px;
  color: var(--gold-dim);
  margin-top: 8px;
  transition: color 0.2s ease;
}

.nft-card:hover .royal-pool-hint {
  color: var(--gold-light);
}

/* NFT Pool & Royal Pool Modals */
.pool-modal-card {
  max-width: 540px;
  max-height: 90vh;
  overflow-y: auto;
}

.pool-countdown-box {
  background: linear-gradient(135deg, rgba(0, 229, 255, 0.08), rgba(20, 16, 8, 0.75));
  border: 1px solid rgba(0, 229, 255, 0.3);
  border-radius: 14px;
  padding: 14px 16px;
  margin-bottom: 14px;
}

.royal-countdown-box {
  background: linear-gradient(135deg, rgba(142, 36, 170, 0.18), rgba(20, 10, 35, 0.85));
  border: 1px solid rgba(179, 136, 255, 0.35);
  border-radius: 14px;
  padding: 14px 16px;
  margin-bottom: 14px;
}

.countdown-timer-grid {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin: 10px 0;
}

.countdown-digit-cell {
  background: rgba(0, 0, 0, 0.65);
  border: 1px solid rgba(0, 229, 255, 0.3);
  border-radius: 10px;
  min-width: 60px;
  padding: 8px 6px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.digit-val {
  font-family: 'Unbounded', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: #00e5ff;
  display: block;
  line-height: 1.1;
}

.digit-lbl {
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
  display: block;
  margin-top: 3px;
}

.countdown-colon {
  font-size: 20px;
  font-weight: 700;
  color: var(--gold-dim);
  user-select: none;
}

.lock-progress-wrap {
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
  margin-top: 8px;
}

.lock-progress-bar {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #00e5ff, #00e676);
  transition: width 0.4s ease;
}

.lock-progress-text {
  font-size: 10px;
  color: var(--text-dim);
  text-align: right;
  margin-top: 4px;
}

.royal-rank-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 12px;
  background: rgba(0, 0, 0, 0.45);
  padding: 4px;
  border-radius: 12px;
  border: 1px solid rgba(255, 205, 82, 0.15);
}

.royal-rank-tab {
  flex: 1;
  text-align: center;
  padding: 8px 4px;
  font-size: 11px;
  font-weight: 600;
  border-radius: 8px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
}

.royal-rank-tab:hover {
  color: #fff;
  background: rgba(255, 205, 82, 0.1);
}

.royal-rank-tab.active {
  background: linear-gradient(135deg, rgba(142, 36, 170, 0.7), rgba(255, 205, 82, 0.35));
  color: #fff;
  border: 1px solid rgba(255, 205, 82, 0.45);
  box-shadow: 0 0 14px rgba(179, 136, 255, 0.3);
}

/* Referral Copy Box */
.referral-box {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

.referral-input {
  flex: 1;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid rgba(255, 205, 82, 0.35);
  background: rgba(10, 8, 3, 0.7);
  color: #fff;
  font-size: 13px;
  outline: none;
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  min-width: 280px;
  max-width: 380px;
  padding: 14px 18px;
  border-radius: 14px;
  border: 1px solid var(--gold-border);
  background: rgba(18, 14, 5, 0.95);
  backdrop-filter: blur(12px);
  color: #fff;
  font-size: 13px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.75);
  animation: slideInToast 0.3s ease;
}

@keyframes slideInToast {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

.toast.success { border-color: #00e676; color: #b9f6ca; }
.toast.error { border-color: #ff5252; color: #ff8a80; }
.toast.info { border-color: var(--gold-primary); }

/* Responsive adjustments for all device form-factors */
@media (max-width: 991px) {
  .user-bar {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .app-container {
    padding: 12px 10px 60px;
  }
  .navbar {
    padding: 8px 12px;
    gap: 8px;
  }
  .brand-logo {
    max-width: min(160px, 34vw);
  }
  .brand-logo-img {
    height: clamp(24px, 4.2vw, 34px);
  }
  .user-bar {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .levels-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
  }
  .level-stats-ribbon {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 540px) {
  .app-container {
    padding: 8px 8px 50px;
  }
  .navbar {
    padding: 8px 10px;
    gap: 6px;
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
  }
  .brand-logo {
    max-width: min(130px, 32vw);
  }
  .brand-logo-img {
    height: clamp(22px, 5vw, 30px);
  }
  .navbar .btn-secondary,
  .navbar .btn-primary,
  .navbar .wallet-btn {
    flex: 0 1 auto;
    width: auto;
    padding: 7px 9px;
    font-size: 10.5px;
    letter-spacing: 0.02em;
    text-align: center;
    justify-content: center;
    border-radius: 8px;
  }
  .navbar-actions {
    gap: 6px;
  }
  .network-badge {
    padding: 4px 8px;
    font-size: 9.5px;
    letter-spacing: 0.08em;
  }
  .hero-banner {
    padding: 16px 6px 20px;
  }
  .eyebrow {
    letter-spacing: 0.2em;
    font-size: 10px;
  }
  .hero-title {
    font-size: 26px;
  }
  .hero-subtitle {
    font-size: 11px;
    letter-spacing: 0.08em;
  }
  .user-bar {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-bottom: 20px;
  }
  .stat-card {
    padding: 10px 12px;
  }
  .stat-label {
    font-size: 9px;
  }
  .stat-value {
    font-size: 15px;
  }
  .stat-sub {
    font-size: 10px;
  }
  .levels-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
  }
  .level-card {
    padding: 8px 4px;
    border-radius: 10px;
  }
  .level-badge {
    font-size: 10px;
  }
  .level-cost {
    font-size: 9.5px;
  }
  .level-status-pill {
    font-size: 7.5px;
    padding: 1px 5px;
  }
  .glass-panel {
    padding: 14px 12px;
    border-radius: 16px;
  }
  .panel-title {
    font-size: 13px;
  }
  .matrix-visualizer {
    padding: 14px 8px;
    border-radius: 14px;
  }
  .matrix-toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }
  .view-switcher {
    width: 100%;
    display: flex;
    gap: 4px;
    padding: 3px;
  }
  .view-tab-btn {
    flex: 1;
    justify-content: center;
    padding: 8px 6px;
    font-size: 11px;
    white-space: nowrap;
  }
  .demo-toggle-btn {
    width: 100%;
    justify-content: center;
    padding: 8px 10px;
    font-size: 11px;
  }
  .matrix-legend {
    gap: 6px 10px;
    font-size: 9.5px;
    padding-bottom: 12px;
    margin-bottom: 12px;
  }
  .legend-dot {
    width: 7px;
    height: 7px;
  }
  .level-stats-ribbon {
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
    padding: 8px 10px;
  }
  .ribbon-label {
    font-size: 8.5px;
  }
  .ribbon-value {
    font-size: 11px;
  }
  .tree-container {
    gap: 14px;
    min-width: 280px;
  }
  .tree-row {
    gap: 3px;
  }
  .spot-modal-card {
    padding: 18px 14px;
    border-radius: 16px;
  }
  .nft-gallery {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .nft-card {
    padding: 12px 8px;
  }
  .nft-icon-wrap {
    width: 50px;
    height: 50px;
    font-size: 24px;
    margin-bottom: 8px;
  }
  .nft-title {
    font-size: 11px;
  }
  .nft-sub {
    font-size: 9px;
  }
  .nft-badge {
    font-size: 8.5px;
    padding: 3px 8px;
  }
}

@media (max-width: 370px) {
  .navbar {
    padding: 6px 6px;
    gap: 4px;
  }
  .brand-logo {
    max-width: min(100px, 28vw);
  }
  .brand-logo-img {
    height: clamp(19px, 5.5vw, 24px);
  }
  .navbar .btn-secondary,
  .navbar .btn-primary,
  .navbar .wallet-btn {
    padding: 6px 6px;
    font-size: 9.5px;
    border-radius: 6px;
  }
  .navbar-actions {
    gap: 4px;
  }
  .levels-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .user-bar {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   BOTTOM ECOSYSTEM PAGE NAVIGATION & SUBPAGE COMPONENTS
   ============================================================ */

.bottom-page-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin: 36px auto 18px auto;
  padding: 12px 20px;
  background: radial-gradient(circle at 50% 50%, rgba(25, 20, 10, 0.85) 0%, rgba(10, 8, 5, 0.95) 100%);
  border: 1px solid rgba(255, 205, 82, 0.35);
  border-radius: 16px;
  max-width: 780px;
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.8), 0 0 25px rgba(255, 205, 82, 0.08);
}

.bottom-nav-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 10px;
  font-family: 'Unbounded', 'Urbanist', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #dfcaa0;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 205, 82, 0.2);
  transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.bottom-nav-item:hover {
  color: #ffd700;
  border-color: rgba(255, 215, 0, 0.6);
  background: rgba(255, 205, 82, 0.12);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.6), 0 0 15px rgba(255, 215, 0, 0.2);
}

.bottom-nav-item.active {
  color: #030303;
  background: linear-gradient(135deg, #ffe599 0%, #dfb743 60%, #aa771c 100%);
  border-color: #ffd700;
  box-shadow: 0 0 20px rgba(223, 183, 67, 0.4);
}

.bottom-nav-icon {
  font-size: 14px;
}

/* Common Subpage Header & Overview Metrics */
.subpage-hero {
  text-align: center;
  margin: 18px 0 28px 0;
  position: relative;
}

.subpage-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cyan-accent, #00e5ff);
  background: rgba(0, 229, 255, 0.1);
  border: 1px solid rgba(0, 229, 255, 0.35);
  margin-bottom: 12px;
}

.subpage-title {
  font-family: 'Unbounded', sans-serif;
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: linear-gradient(180deg, #ffffff 0%, #ffea88 35%, #d4af37 70%, #aa771c 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.8));
  margin-bottom: 8px;
}

.subpage-subtitle {
  font-size: 13px;
  color: var(--text-muted);
  max-width: 580px;
  margin: 0 auto;
  line-height: 1.5;
}

/* Data Table Container */
.data-table-card {
  background: radial-gradient(circle at 50% 50%, rgba(20, 16, 8, 0.95) 0%, rgba(8, 7, 5, 0.98) 100%);
  border: 1.5px solid rgba(255, 205, 82, 0.35);
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 24px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.85), 0 0 25px rgba(255, 205, 82, 0.06);
  overflow: hidden;
}

.table-filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.filter-pills-wrap {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.filter-pill {
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-pill:hover,
.filter-pill.active {
  color: #ffd700;
  border-color: rgba(255, 215, 0, 0.5);
  background: rgba(255, 205, 82, 0.14);
}

.search-input-wrap {
  position: relative;
  min-width: 220px;
}

.search-input-field {
  width: 100%;
  padding: 8px 12px 8px 32px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 205, 82, 0.3);
  color: #fff;
  font-size: 12px;
  outline: none;
  transition: border-color 0.2s ease;
}

.search-input-field:focus {
  border-color: #ffd700;
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.2);
}

.search-input-icon {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 12px;
  color: var(--gold-dim);
  pointer-events: none;
}

/* Responsive Table Layout */
.table-responsive-wrapper {
  width: 100%;
  overflow-x: auto;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.custom-data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 12.5px;
}

.custom-data-table th {
  background: rgba(255, 205, 82, 0.08);
  color: #dfb743;
  font-family: 'Unbounded', sans-serif;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255, 205, 82, 0.25);
  white-space: nowrap;
}

.custom-data-table td {
  padding: 14px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: #fff;
  vertical-align: middle;
}

.custom-data-table tr:hover td {
  background: rgba(255, 205, 82, 0.04);
}

.badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.badge-tag.success {
  background: rgba(0, 230, 118, 0.15);
  color: #00e676;
  border: 1px solid rgba(0, 230, 118, 0.35);
}

.badge-tag.gold {
  background: rgba(255, 205, 82, 0.15);
  color: #ffd700;
  border: 1px solid rgba(255, 205, 82, 0.4);
}

.badge-tag.cyan {
  background: rgba(0, 229, 255, 0.15);
  color: #00e5ff;
  border: 1px solid rgba(0, 229, 255, 0.35);
}

.badge-tag.purple {
  background: rgba(179, 136, 255, 0.15);
  color: #d1c4e9;
  border: 1px solid rgba(179, 136, 255, 0.35);
}

.badge-tag.danger {
  background: rgba(255, 82, 82, 0.15);
  color: #ff5252;
  border: 1px solid rgba(255, 82, 82, 0.35);
}

.empty-state-box {
  text-align: center;
  padding: 45px 20px;
  color: var(--text-dim);
}

.empty-state-icon {
  font-size: 38px;
  margin-bottom: 10px;
  opacity: 0.6;
}

.empty-state-title {
  font-family: 'Unbounded', sans-serif;
  font-size: 14px;
  color: #fff;
  margin-bottom: 4px;
}

.empty-state-desc {
  font-size: 12px;
  color: var(--text-dim);
  max-width: 380px;
  margin: 0 auto;
}

/* ==========================================================================
   Admin Master Control Center Responsive Modal Styles
   ========================================================================== */
.admin-modal-card {
  max-width: 820px;
  width: 95%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 0 !important;
  border: 1px solid rgba(255, 179, 0, 0.4);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8), 0 0 30px rgba(255, 152, 0, 0.2);
  margin: auto;
}

.admin-modal-header {
  padding: 16px 20px 14px;
  background: linear-gradient(180deg, rgba(35, 25, 10, 0.98), rgba(18, 14, 8, 0.98));
  border-bottom: 1px solid rgba(255, 179, 0, 0.25);
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  gap: 12px;
}

.admin-modal-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex: 1;
}

.admin-modal-header-icon {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(255, 152, 0, 0.3), rgba(244, 67, 54, 0.3));
  border: 1px solid #ffb74d;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
}

.admin-modal-header-titles {
  min-width: 0;
  flex: 1;
}

.admin-modal-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.admin-modal-title {
  margin: 0;
  font-family: 'Unbounded', sans-serif;
  font-size: 15px;
  color: #fff;
  letter-spacing: 0.02em;
}

.admin-wallet-display-text {
  color: var(--gold-light);
  font-family: monospace;
  max-width: 260px;
  display: inline-block;
  vertical-align: bottom;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-tabs-nav {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: rgba(12, 10, 8, 0.98);
  padding: 8px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  gap: 6px;
  width: 100%;
  box-sizing: border-box;
}

.admin-tabs-nav .royal-rank-tab {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 6px;
  font-size: 11px;
  font-weight: 600;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  white-space: nowrap;
  text-align: center;
  border-radius: 8px;
}

.adm-tab-icon {
  font-size: 13px;
  line-height: 1;
  flex-shrink: 0;
}

.adm-tab-lbl-full {
  display: inline;
}

.adm-tab-lbl-short {
  display: none;
}

.admin-scroll-area {
  padding: 18px 20px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.adm-grid-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.adm-grid-4col {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 8px;
}

.adm-input-btn-row {
  display: flex;
  gap: 10px;
}

.adm-input-btn-row .form-input {
  flex: 1;
  min-width: 0;
}

.adm-rescue-matrix-row {
  display: grid;
  grid-template-columns: 1fr 120px auto;
  gap: 8px;
}

.adm-select-input-btn-row {
  display: flex;
  gap: 10px;
}

.adm-select-input-btn-row .form-input {
  flex: 1;
  min-width: 0;
}

.adm-footer {
  padding: 12px 20px;
  background: rgba(14, 11, 8, 0.98);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
}

/* Mobile & Tablet Optimizations (<= 640px) */
@media (max-width: 640px) {
  .admin-modal-card {
    width: 98% !important;
    max-height: 94vh !important;
    border-radius: 14px !important;
  }

  .admin-modal-header {
    padding: 12px 14px;
    gap: 8px;
  }

  .admin-modal-header-icon {
    width: 32px;
    height: 32px;
    font-size: 15px;
  }

  .admin-modal-title {
    font-size: 13px;
  }

  .admin-wallet-display-text {
    max-width: 140px;
    font-size: 10.5px;
  }

  .admin-tabs-nav {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    padding: 6px 6px !important;
    gap: 4px !important;
  }

  .admin-tabs-nav .royal-rank-tab {
    padding: 8px 2px !important;
    font-size: 10.5px !important;
    gap: 3px !important;
  }

  .adm-tab-icon {
    font-size: 12px !important;
  }

  .adm-tab-lbl-full {
    display: none !important;
  }

  .adm-tab-lbl-short {
    display: inline !important;
  }

  .admin-scroll-area {
    padding: 14px 10px;
    gap: 12px;
  }

  .adm-grid-2col {
    grid-template-columns: 1fr !important;
    gap: 8px !important;
  }

  .adm-grid-4col {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 6px !important;
  }

  .adm-input-btn-row {
    flex-direction: column !important;
    gap: 8px !important;
  }

  .adm-input-btn-row button,
  .adm-input-btn-row .btn-primary,
  .adm-input-btn-row .btn-secondary {
    width: 100% !important;
    justify-content: center;
  }

  .adm-select-input-btn-row {
    flex-direction: column !important;
    gap: 8px !important;
  }

  .adm-select-input-btn-row select,
  .adm-select-input-btn-row .form-input,
  .adm-select-input-btn-row button {
    width: 100% !important;
  }

  .adm-rescue-matrix-row {
    display: flex !important;
    flex-direction: column !important;
    gap: 6px !important;
  }

  .adm-rescue-matrix-row button {
    width: 100% !important;
  }

  .adm-footer {
    padding: 10px 14px;
  }

  .adm-footer button {
    width: 100%;
    justify-content: center;
  }
}

/* ========================================================
   bTitan Pro - High-Tech Luxury Cyberpunk Global Loader
   ======================================================== */
.dapp-loader-overlay {
  position: fixed;
  inset: 0;
  z-index: 99998;
  background: radial-gradient(circle at 50% 45%, rgba(18, 14, 7, 0.94), rgba(3, 3, 3, 0.98) 75%);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.35s ease;
}

.dapp-loader-overlay.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.dapp-loader-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 36px 30px;
  max-width: 440px;
  width: 90%;
  position: relative;
  background: linear-gradient(145deg, rgba(28, 22, 9, 0.7), rgba(8, 8, 8, 0.85));
  border: 1px solid rgba(255, 205, 82, 0.35);
  border-radius: 24px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8), 0 0 40px rgba(255, 177, 0, 0.15);
}

/* Spinner Outer / Inner Rings */
.dapp-loader-spinner-wrap {
  position: relative;
  width: 110px;
  height: 110px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.dapp-loader-ring {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.dapp-loader-ring-outer {
  inset: 0;
  border: 2.5px solid transparent;
  border-top-color: #ffd34e;
  border-right-color: #f28b00;
  box-shadow: 0 0 24px rgba(255, 177, 0, 0.4), inset 0 0 14px rgba(255, 177, 0, 0.15);
  animation: dappSpinClockwise 1.3s cubic-bezier(0.55, 0.055, 0.675, 0.19) infinite;
}

.dapp-loader-ring-middle {
  inset: 10px;
  border: 1.5px dashed rgba(0, 229, 255, 0.7);
  box-shadow: 0 0 18px rgba(0, 229, 255, 0.3);
  animation: dappSpinCounterClockwise 2.2s linear infinite;
}

.dapp-loader-ring-inner {
  inset: 20px;
  border: 1px solid rgba(255, 205, 82, 0.15);
  border-bottom: 2px solid #00e676;
  animation: dappSpinClockwise 1.8s ease-in-out infinite;
}

.dapp-loader-core {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 205, 82, 0.22), rgba(0, 0, 0, 0.85));
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 205, 82, 0.45);
  box-shadow: 0 0 20px rgba(255, 190, 45, 0.3);
  z-index: 2;
  animation: dappCorePulse 2s ease-in-out infinite;
}

.dapp-loader-logo {
  width: 32px;
  height: 32px;
  object-fit: contain;
  filter: drop-shadow(0 0 8px rgba(255, 205, 82, 0.7));
}

.dapp-loader-particle-pulse {
  position: absolute;
  inset: -14px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 190, 45, 0.15), transparent 70%);
  animation: dappGlowBreathe 2.4s ease-in-out infinite alternate;
  pointer-events: none;
}

/* Badge & Typography */
.dapp-loader-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 14px;
  border-radius: 30px;
  background: rgba(255, 205, 82, 0.08);
  border: 1px solid rgba(255, 205, 82, 0.3);
  font-family: 'Unbounded', sans-serif;
  font-size: 10px;
  font-weight: 600;
  color: #ffd34e;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.dapp-loader-pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #00e676;
  box-shadow: 0 0 8px #00e676;
  animation: dappDotPulse 1.2s ease-in-out infinite alternate;
}

.dapp-loader-title {
  font-family: 'Unbounded', sans-serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 1.5px;
  background: linear-gradient(135deg, #ffffff 15%, #ffd34e 60%, #f28b00 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 8px;
}

.dapp-loader-subtitle {
  font-family: 'Urbanist', -apple-system, sans-serif;
  font-size: 12.5px;
  color: #b4b0a4;
  line-height: 1.5;
  max-width: 320px;
  margin-bottom: 22px;
}

/* Progress Track & Shimmering Scan Bar */
.dapp-loader-progress-track {
  width: 190px;
  height: 3px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}

.dapp-loader-progress-bar {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 45%;
  background: linear-gradient(90deg, transparent, #ffd34e 45%, #00e5ff 75%, transparent);
  border-radius: 4px;
  animation: dappTrackScan 1.6s ease-in-out infinite;
}

/* Animations */
@keyframes dappSpinClockwise {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes dappSpinCounterClockwise {
  from { transform: rotate(360deg); }
  to { transform: rotate(0deg); }
}

@keyframes dappCorePulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 16px rgba(255, 190, 45, 0.25); }
  50% { transform: scale(1.05); box-shadow: 0 0 28px rgba(255, 190, 45, 0.5); }
}

@keyframes dappGlowBreathe {
  0% { transform: scale(0.9); opacity: 0.4; }
  100% { transform: scale(1.15); opacity: 0.85; }
}

@keyframes dappDotPulse {
  0% { opacity: 0.4; transform: scale(0.8); }
  100% { opacity: 1; transform: scale(1.2); }
}

@keyframes dappTrackScan {
  0% { left: -50%; }
  100% { left: 110%; }
}

@media (max-width: 580px) {
  .dapp-loader-content {
    padding: 28px 20px;
    border-radius: 20px;
  }
  .dapp-loader-spinner-wrap {
    width: 92px;
    height: 92px;
    margin-bottom: 18px;
  }
  .dapp-loader-core {
    width: 46px;
    height: 46px;
  }
  .dapp-loader-logo {
    width: 26px;
    height: 26px;
  }
  .dapp-loader-title {
    font-size: 13.5px;
  }
  .dapp-loader-subtitle {
    font-size: 11.5px;
    margin-bottom: 18px;
  }
}

/* ========================================================
   bTitan Pro - Executive Admin & Sub-Admin Dashboard Styles
   ======================================================== */
.admin-dashboard-view {
  width: 100%;
  max-width: 1360px;
  margin: 0 auto 50px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  animation: fadeInAdmin 0.4s ease forwards;
}

@keyframes fadeInAdmin {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.admin-hero-card {
  background: linear-gradient(135deg, rgba(32, 24, 8, 0.95), rgba(12, 10, 5, 0.96) 60%, rgba(20, 16, 8, 0.95));
  border: 1px solid rgba(255, 205, 82, 0.45);
  border-radius: 20px;
  padding: 26px 30px;
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.8), 0 0 35px rgba(255, 177, 0, 0.12);
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
  overflow: hidden;
}

.admin-hero-card::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, rgba(255, 190, 45, 0.12), transparent 70%);
  pointer-events: none;
}

.admin-hero-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.admin-hero-title-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.admin-hero-badge-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.admin-role-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 13px;
  border-radius: 30px;
  font-family: 'Unbounded', sans-serif;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.admin-role-badge.super-admin {
  background: rgba(255, 205, 82, 0.15);
  border: 1px solid rgba(255, 205, 82, 0.6);
  color: #ffd34e;
  box-shadow: 0 0 16px rgba(255, 177, 0, 0.25);
}

.admin-role-badge.sub-admin {
  background: rgba(0, 229, 255, 0.12);
  border: 1px solid rgba(0, 229, 255, 0.5);
  color: #00e5ff;
  box-shadow: 0 0 16px rgba(0, 229, 255, 0.2);
}

.admin-hero-title {
  font-family: 'Unbounded', sans-serif;
  font-size: 22px;
  font-weight: 800;
  background: linear-gradient(135deg, #ffffff 20%, #ffd34e 70%, #f28b00 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin: 0;
  letter-spacing: 0.5px;
}

.admin-hero-subtitle {
  font-size: 12.5px;
  color: #b4b0a4;
  margin: 0;
  line-height: 1.5;
}

.admin-view-switcher {
  display: inline-flex;
  background: rgba(10, 8, 4, 0.85);
  border: 1px solid rgba(255, 205, 82, 0.35);
  border-radius: 14px;
  padding: 4px;
  gap: 4px;
}

.admin-view-btn {
  background: transparent;
  border: none;
  color: #b4b0a4;
  font-family: 'Urbanist', sans-serif;
  font-size: 12px;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 7px;
  transition: all 0.2s ease;
}

.admin-view-btn:hover {
  color: #fff;
  background: rgba(255, 205, 82, 0.08);
}

.admin-view-btn.active {
  background: linear-gradient(135deg, rgba(255, 205, 82, 0.25), rgba(242, 139, 0, 0.25));
  border: 1px solid rgba(255, 205, 82, 0.5);
  color: #ffd34e;
  box-shadow: 0 0 12px rgba(255, 177, 0, 0.2);
}

/* KPI 8-Grid */
.admin-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.admin-kpi-card {
  background: linear-gradient(145deg, rgba(25, 20, 8, 0.88), rgba(10, 9, 6, 0.94));
  border: 1px solid rgba(255, 205, 82, 0.3);
  border-radius: 16px;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.admin-kpi-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 205, 82, 0.6);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.6), 0 0 20px rgba(255, 177, 0, 0.15);
}

.admin-kpi-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.admin-kpi-label {
  font-family: 'Unbounded', sans-serif;
  font-size: 11px;
  font-weight: 600;
  color: #b4b0a4;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.admin-kpi-icon {
  font-size: 18px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: rgba(255, 205, 82, 0.1);
  border: 1px solid rgba(255, 205, 82, 0.25);
}

.admin-kpi-val {
  font-family: 'Unbounded', sans-serif;
  font-size: 19px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.5px;
}

.admin-kpi-val.gold { color: #ffd34e; }
.admin-kpi-val.cyan { color: #00e5ff; }
.admin-kpi-val.green { color: #00e676; }

.admin-kpi-sub {
  font-size: 11.5px;
  color: #8c877c;
  line-height: 1.4;
}

/* Admin Tabs Container */
.admin-tabs-card {
  background: linear-gradient(145deg, rgba(22, 18, 7, 0.9), rgba(8, 8, 6, 0.95));
  border: 1px solid rgba(255, 205, 82, 0.35);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.7);
}

.admin-tabs-bar {
  display: flex;
  align-items: center;
  background: rgba(14, 11, 4, 0.95);
  border-bottom: 1px solid rgba(255, 205, 82, 0.25);
  padding: 8px 16px;
  gap: 8px;
  overflow-x: auto;
}

.admin-tab-btn {
  background: transparent;
  border: none;
  color: #9e9a8f;
  font-family: 'Urbanist', sans-serif;
  font-size: 13px;
  font-weight: 700;
  padding: 10px 18px;
  border-radius: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.admin-tab-btn:hover {
  color: #fff;
  background: rgba(255, 205, 82, 0.08);
}

.admin-tab-btn.active {
  background: linear-gradient(135deg, rgba(255, 205, 82, 0.2), rgba(242, 139, 0, 0.2));
  border: 1px solid rgba(255, 205, 82, 0.45);
  color: #ffd34e;
}

.admin-tab-panel {
  padding: 24px 28px;
  display: none;
}

.admin-tab-panel.active {
  display: block;
}

/* Styled Table for Admin Dashboard */
.adm-table-wrap {
  width: 100%;
  overflow-x: auto;
  border-radius: 12px;
  border: 1px solid rgba(255, 205, 82, 0.2);
  background: rgba(14, 11, 4, 0.5);
}

.adm-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
  text-align: left;
}

.adm-table th {
  background: rgba(30, 24, 9, 0.85);
  color: #ffd34e;
  font-family: 'Unbounded', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  padding: 13px 16px;
  border-bottom: 1px solid rgba(255, 205, 82, 0.25);
  white-space: nowrap;
}

.adm-table td {
  padding: 13px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  color: #e0dcd0;
  vertical-align: middle;
}

.adm-table tbody tr:hover {
  background: rgba(255, 205, 82, 0.04);
}

.adm-badge-role {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 16px;
  font-size: 10.5px;
  font-weight: 700;
}

.adm-badge-role.active-sub {
  background: rgba(0, 230, 118, 0.12);
  color: #00e676;
  border: 1px solid rgba(0, 230, 118, 0.4);
}

.adm-badge-role.inactive-sub {
  background: rgba(255, 255, 255, 0.05);
  color: #8c877c;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.adm-btn-action {
  font-family: 'Urbanist', sans-serif;
  font-size: 11px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.adm-btn-action.assign {
  background: rgba(0, 230, 118, 0.15);
  border: 1px solid rgba(0, 230, 118, 0.4);
  color: #b9f6ca;
}

.adm-btn-action.assign:hover {
  background: #00e676;
  color: #000;
}

.adm-btn-action.revoke {
  background: rgba(255, 82, 82, 0.15);
  border: 1px solid rgba(255, 82, 82, 0.4);
  color: #ff8a80;
}

.adm-btn-action.revoke:hover {
  background: #ff5252;
  color: #fff;
}

.adm-btn-action.inspect {
  background: rgba(0, 229, 255, 0.12);
  border: 1px solid rgba(0, 229, 255, 0.35);
  color: #00e5ff;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.adm-btn-action.inspect:hover {
  background: #00e5ff;
  color: #000;
}

/* 12-Level Matrix Grid */
.adm-matrix-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.adm-matrix-tier-card {
  background: rgba(18, 14, 6, 0.8);
  border: 1px solid rgba(255, 205, 82, 0.25);
  border-radius: 14px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.adm-tier-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: 'Unbounded', sans-serif;
  font-size: 11px;
  color: #ffd34e;
  font-weight: 700;
}

.adm-tier-cost {
  font-size: 15px;
  font-weight: 800;
  color: #fff;
}

.adm-tier-desc {
  font-size: 11px;
  color: #8c877c;
}

@media (max-width: 1024px) {
  .admin-kpi-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .adm-matrix-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 680px) {
  .admin-hero-card {
    padding: 20px 16px;
  }
  .admin-kpi-grid {
    grid-template-columns: 1fr;
  }
  .adm-matrix-grid {
    grid-template-columns: 1fr;
  }
  .admin-tab-panel {
    padding: 16px 14px;
  }
  .admin-hero-top {
    flex-direction: column;
    align-items: flex-start;
  }
  .admin-view-switcher {
    width: 100%;
  }
  .admin-view-btn {
    flex: 1;
    justify-content: center;
  }
}

/* =========================================================================
   LEADERBOARD TOP 10 RESPONSIVE TABLE & ROW INTERACTION
   (Desktop: All columns; Mobile <= 768px: RANK, MEMBER ID & TOTAL EARNING only)
   ========================================================================= */

.adm-table-leaderboard tbody tr {
  cursor: pointer;
  transition: background 0.18s ease, transform 0.15s ease;
}

.adm-table-leaderboard tbody tr:hover {
  background: rgba(255, 205, 82, 0.08);
}

.adm-table-leaderboard tbody tr:active {
  background: rgba(255, 205, 82, 0.16);
}

.adm-table-company tbody tr {
  cursor: pointer;
  transition: background 0.18s ease;
}

.adm-table-company tbody tr:hover {
  background: rgba(255, 205, 82, 0.08);
}

.adm-table-company tbody tr:active {
  background: rgba(255, 205, 82, 0.16);
}

@media (max-width: 768px) {
  .adm-table-leaderboard .col-hide-mobile,
  .adm-table-leaderboard th.col-hide-mobile,
  .adm-table-leaderboard td.col-hide-mobile,
  .adm-table-company .col-hide-mobile,
  .adm-table-company th.col-hide-mobile,
  .adm-table-company td.col-hide-mobile {
    display: none !important;
  }

  .adm-table-leaderboard th,
  .adm-table-leaderboard td {
    padding: 12px 10px;
    font-size: 12px;
  }

  .adm-table-leaderboard th:first-child,
  .adm-table-leaderboard td:first-child {
    width: 55px;
    text-align: left;
  }

  .adm-table-leaderboard th:last-child,
  .adm-table-leaderboard td:last-child {
    text-align: right;
  }

  .adm-table-company th,
  .adm-table-company td {
    padding: 10px 8px;
    font-size: 11.5px;
  }

  .adm-table-company th:first-child,
  .adm-table-company td:first-child {
    width: 55px;
    text-align: left;
  }

  .adm-table-company th:last-child,
  .adm-table-company td:last-child {
    text-align: right;
  }
}
