/* =========================================================
   RESPONSIVE GLOBAL FIXES
   ========================================================= */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  overflow-x: hidden;
  overflow-y: auto;
}

button {
  max-width: 100%;
}

img {
  max-width: 100%;
  height: auto;
}

/* =========================================================
   PREMIUM SAAS COLOR SYSTEM
   ========================================================= */
:root {
  /* PREMIUM SAAS COLOR SYSTEM */
  /* BACKGROUND */
  --bg-main: #050b14;
  --bg-soft: #0a1a2f;

  /* PRIMARY BRAND (CYAN - TECH FEEL) */
  --primary: #00ffcc;

  /* TEXT */
  --text-main: #ffffff;
  --text-soft: #b8c5d0;

  /* CTA (HIGH CONVERSION) */
  --cta-primary: #ff7a00;
  --cta-secondary: #ffb347;

  /* TRUST (BLUE) */
  --trust: #1e90ff;

  /* SUCCESS */
  --success: #00ff88;

  /* WARNING / DEMO LIMIT */
  --danger: #ff4d4f;

  /* Legacy compatibility */
  --bg: #050b14;
  --border: rgba(0,255,204,0.12);
  --text: #ffffff;
  --text-dim: #b8c5d0;
  --accent: #00ffcc;

  --neon: #00ff88;
  --neon-soft: rgba(0,255,136,0.15);
  --cyan: #00ffff;
  --magenta: #ff00ff;
  --yellow: #ffff00;
  --red: #ff4d4f;
  --green: #00ff88;
  --green-soft: #00ff88;
  --orange: #ff7a00;
  --blue: #1e90ff;

  --terminal-font: "Courier New", "Lucida Console", monospace;
  --terminal-font-size: 0.875rem;
  --terminal-line-height: 1.4;
  --terminal-cols: 82;
  --terminal-lines: 24;

  --topbar-h: 44px;
  --smartkeys-h: 100px;
  --radius: 8px;

  /* Enhanced terminal colors */
  --terminal-bg: #0a0a0a;
  --terminal-text: #ffffff;
  --terminal-glow: rgba(0, 255, 136, 0.1);
  --terminal-grid: rgba(0, 255, 136, 0.02);
  --scanline-color: rgba(0, 255, 136, 0.03);
  --primary-glow: #00ff88;
  --success-line: #00ff88;
  --warning-line: #ffaa00;
  --error-line: #ff4d4f;
  --system-line: #1e90ff;
  --pnr-header: #00ffcc;
  --flight-line: #00ff88;
  --passenger-line: #88ff00;
  --contact-line: #00ffff;
  --ssr-line: #ff8800;
  --pricing-line: #ffaa00;
  --ticketing-line: #00ffff;
  --fare-line: #ff00ff;
  --tax-line: #8888ff;
  --invalid-command: #ff4d4f;
  --smartkey-bg: #0a0f1a;
  --smartkey-border: rgba(0,255,204,0.15);
  --smartkey-btn: rgba(0,0,0,0.5);
  --smartkey-btn-hover: rgba(0,255,204,0.1);
  --smartkey-text: #00ffff;
  --smartkey-text-dim: #00aacc;

  /* Panel system */
  --panel: rgba(0,0,0,0.5);
  --panel-2: rgba(0,0,0,0.3);
  --shadow: 0 0 0 1px rgba(0,255,204,0.1), 0 8px 24px rgba(0,0,0,0.4);
  --bg-panel: rgba(0,0,0,0.75);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  height: 100%;
}

body {
  margin: 0;
  padding: 0;
  height: 100%;
  width: 100%;
  overflow: hidden;
  background: radial-gradient(circle at top, var(--bg-soft), var(--bg-main));
  color: #e6fdf8;
  font-family: system-ui, -apple-system, Arial, sans-serif, var(--terminal-font);
}

body.theme-white {
  --bg: #eceff3;
  --bg-soft: #f7f9fc;
  --panel: #ffffff;
  --panel-2: #eef2f7;
  --border: #cfd8e3;
  --text: #101820;
  --text-dim: #64748b;
  --green: #007f4f;
  --green-soft: #00a35f;
  --amber: #9f6b00;
  --red: #c63c3c;
  --blue: #145dff;
  --cyan: #007a8a;
  --shadow: 0 0 0 1px rgba(0,0,0,0.04), 0 8px 24px rgba(0,0,0,0.08);
}

body.theme-navy {
  --bg: #07111f;
  --bg-soft: #0c1930;
  --panel: #10233f;
  --panel-2: #173156;
  --border: #294a73;
  --text: #ebf5ff;
  --text-dim: #b8d4e6;
  --green: #7dffb3;
  --green-soft: #3ce188;
  --amber: #ffd166;
  --red: #ff7b7b;
  --blue: #79b8ff;
  --cyan: #82f7ff;
  --shadow: 0 0 0 1px rgba(255,255,255,0.03), 0 10px 30px rgba(0,0,0,0.35);
}

.hidden {
  display: none !important;
}

/* LOGIN */
.login-overlay {
  position: fixed;
  inset: 0;
  background: #0a0a0a;
  display: flex;
  align-items: stretch;
  justify-content: center;
  z-index: 2000;
  height: 100dvh;
  min-height: 100dvh;
  overflow: hidden;
  max-width: 100%;
  overflow-x: hidden;
}

.main-layout {
  display: grid;
  grid-template-columns: max-content 360px;
  column-gap: clamp(80px, 8vw, 180px);
  width: 100%;
  max-width: min(1580px, calc(100vw - 48px));
  margin: 0 auto;
  justify-content: space-between;
  align-items: start;
  box-sizing: border-box;
  padding: clamp(24px, 5vh, 72px) 24px clamp(32px, 6vh, 80px);
  height: auto;
  min-height: auto;
  max-height: none;
  overflow: visible;
}

.left-hero {
  background: linear-gradient(135deg, #1a1a2e 0%, #0a0a0a 100%);
  color: white;
  position: relative;
  width: max-content;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  height: auto;
  min-height: auto;
  max-height: none;
  overflow: visible;
}

.left-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-left: clamp(12px, 2vw, 24px);
  padding-right: clamp(12px, 2vw, 24px);
  box-sizing: border-box;
  height: auto;
  min-height: auto;
  max-height: none;
  overflow: visible;
}

.hero-block {
  margin-top: 32px;
  margin-bottom: 20px;
}

.hero-title {
  max-width: 700px;
  line-height: 1.2;
  margin-bottom: 15px;
  color: #ffffff;
}

.hero-block h1 {
  font-size: 36px;
  line-height: 1.15;
  font-weight: 700;
  margin: 0 0 8px 0;
  color: #ffffff;
}

.hero-block h1 span {
  color: var(--primary);
}

.hero-subtext {
  line-height: 1.6;
  opacity: 0.8;
  margin-top: 12px;
  color: #ffffff;
}

.hero-block p {
  font-size: 14px;
  opacity: 0.7;
  margin-top: 8px;
  color: #ffffff;
}

.highlight {
  color: var(--primary);
  font-weight: 800;
}

.micro-badge {
  font-size: 11px;
  color: #00e5ff;
}

.hero-checklist {
  font-size: 13px;
  line-height: 1.6;
  margin-top: 16px;
  color: #ffffff;
  font-weight: 500;
  letter-spacing: 0.2px;
}

.left-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.4) 100%);
}

.feature-list {
  margin-top: 20px;
  margin-bottom: 30px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 500px;
}

.feature-list div {
  font-size: 14px;
  opacity: 0.85;
  color: var(--text-soft);
  transition: 0.3s;
}

.feature-list div::before {
  content: "✔";
  margin-right: 8px;
  color: #00ffd0;
}

.feature-list div:hover {
  color: #ffffff;
  transform: translateX(3px);
}

/* Plan Boxes - Stripe Level */
.plan-section {
  display: grid;
  grid-template-columns: repeat(3, 220px);
  justify-content: center;
  gap: 12px;
  max-width: 800px;
  margin: 0 auto;
  overflow: visible !important;
  padding-bottom: 0;
}

.plan-section .plan-box {
  width: 100%;
}

.plan-box {
  background: #05070a;
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 8px;
  padding: 10px 10px 12px;
  min-height: auto !important;
  height: auto !important;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.12s ease, border 0.12s ease;
  cursor: pointer;
  position: relative;
  z-index: 5;
  opacity: 0;
  animation: fadeInUp 0.5s ease forwards;
  overflow: visible !important;
}

.plan-box:hover {
  transform: translateY(-2px);
  border: 1px solid rgba(0,255,200,0.25);
}

/* Stripe Style Header */
.plan-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2px;
}

.plan-title {
  font-size: 11px;
  font-weight: 600;
  color: #ffffff;
}

.plan-badge {
  font-size: 8px;
  padding: 2px 4px;
  border-radius: 3px;
  background: rgba(255,180,0,0.12);
  color: #ffcc66;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2px;
}

.plan-sub {
  font-size: 12px;
  color: #00ffcc;
  margin-bottom: 4px;
  font-weight: 600;
}

.plan-desc {
  display: none;
}

/* Early Access Badge */
.early-access-badge {
  display: inline-block;
  font-size: 8px;
  font-weight: 800;
  color: #ff6b35;
  background: rgba(255, 107, 53, 0.12);
  padding: 2px 5px;
  border-radius: 3px;
  margin-bottom: 4px;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

/* Price Block - Primary Focus */
.plan-price-block {
  margin-top: 4px;
}

.pricing-container {
  display: flex;
  flex-direction: column;
  gap: 1px;
  margin: 2px 0 4px 0;
}

/* USD Price - dominant, bigger font */
.usd-price {
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 2px;
  line-height: 1.1;
  display: block;
}

/* Old Price - faded + line-through, smaller font */
.old-price {
  font-size: 10px;
  color: #ffffff;
  text-decoration: line-through;
  opacity: 0.6;
  margin-bottom: 1px;
  font-weight: 600;
}

/* New Price - smaller font with ≈ */
.new-price {
  font-size: 11px;
  font-weight: 600;
  color: #00ffd0;
  margin-top: 1px;
  line-height: 1.1;
  display: flex;
  align-items: baseline;
  gap: 3px;
}

.plan-cycle {
  font-size: 10px;
  opacity: 0.8;
  color: #ffffff;
  font-weight: 600;
}

/* Scarcity - conversion boost */
.limited-slots {
  font-size: 9px;
  color: #ffb84d;
  margin-top: 3px;
  font-weight: 700;
  letter-spacing: 0.3px;
}

/* Stripe-like subtext */
.plan-note {
  font-size: 9px;
  opacity: 0.8;
  margin-top: 2px;
  letter-spacing: 0.3px;
  color: #ffffff;
  font-weight: 600;
}

/* Value line - discount percentage */
.plan-value {
  font-size: 10px;
  color: #00ffd0;
  font-weight: 700;
  margin-top: 2px;
  letter-spacing: 0.2px;
}

/* Stripe Divider */
.plan-divider {
  height: 1px;
  background: rgba(255,255,255,0.06);
  margin: 4px 0;
}

.plan-box ul {
  padding-left: 12px;
  margin: 3px 0 8px 0;
}

.plan-box li {
  margin-bottom: 2px;
  color: #ffffff;
  font-size: 10px;
  line-height: 1.2;
  font-weight: 500;
  opacity: 0.9;
}

.plan-box li.more-item {
  color: #d1d5db;
  font-style: italic;
  font-weight: 500;
  opacity: 0.7;
}

/* Plan content wrapper */
.plan-content {
  display: block;
}

/* CTA Button - Stripe style */
.plan-cta {
  margin-top: 8px;
}

.plan-cta button {
  width: 100%;
  height: 28px;
  font-size: 10px;
  border-radius: 5px;
  border: none;
  background: #00ffd0;
  color: #000;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.12s ease;
}

.plan-cta button:hover {
  background: #00e6bb;
  transform: scale(1.02);
}

/* CORE - subtle */
.core-box {
  border-color: rgba(102, 126, 234, 0.5);
  box-shadow: 0 0 20px rgba(102, 126, 234, 0.2), 0 0 40px rgba(102, 126, 234, 0.1);
  opacity: 0.95;
  animation-delay: 0.1s;
}

.core-box:hover {
  border-color: rgba(102, 126, 234, 0.7);
  box-shadow: 0 0 25px rgba(102, 126, 234, 0.3), 0 0 50px rgba(102, 126, 234, 0.15);
  opacity: 1;
}

/* PRO - Medium, highlighted with glow and scale */
.pro-box {
  border-color: rgba(0,255,200,0.6);
  box-shadow: 0 0 20px rgba(0,255,200,0.3), 0 0 40px rgba(0,255,200,0.1);
  transform: scale(1.03);
  animation-delay: 0.2s;
  z-index: 2;
}

.pro-box:hover {
  border-color: rgba(0,255,200,0.8);
  box-shadow: 0 0 30px rgba(0,255,200,0.4), 0 0 60px rgba(0,255,200,0.2);
}

/* MASTER - Stripe highlight */
.master-box {
  border: 1px solid rgba(0,255,200,0.4);
  background: #05070a;
  animation-delay: 0.3s;
  transform: scale(1.01);
  box-shadow: none;
}

.master-box .plan-title {
  color: #00ffd0;
}

.master-box:hover {
  border-color: rgba(0,255,200,0.5);
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 768px) {
  .main-layout {
    max-width: calc(100vw - 16px);
    padding: 0 8px;
    gap: 20px;
  }

  .core-box,
  .pro-box,
  .master-box {
    width: 100%;
    margin-left: 0;
  }

  .header-chip.plan-box {
    display: none;
  }

  .demo-intro-popup {
    display: none;
  }

  .right-login {
    padding: 16px;
  }

  .login-card {
    width: 100%;
    max-width: 100%;
  }
}

/* Responsive Stack Breakpoints for Zoom Levels */
@media (max-width: 1280px) {
  .main-layout {
    grid-template-columns: 1fr;
    justify-items: center;
    justify-content: center;
    row-gap: 32px;
    column-gap: 0;
    max-width: calc(100vw - 32px);
    padding: clamp(24px, 5vh, 72px) 16px clamp(32px, 6vh, 80px);
  }

  .left-hero {
    width: max-content;
    max-width: 100%;
  }

  .left-container {
    width: max-content;
    max-width: 100%;
  }

  .right-login {
    justify-self: center;
    width: min(100%, 360px);
    max-width: 360px;
    height: auto;
    max-height: none;
    overflow: visible;
    padding: 24px clamp(12px, 2vw, 20px) 24px clamp(12px, 2vw, 20px);
  }

  .login-card {
    width: min(100%, 360px);
    max-width: 360px;
    height: auto;
    max-height: none;
    overflow: visible;
  }
}

@media (max-width: 1500px) {
  .main-layout {
    max-width: min(1440px, calc(100vw - 40px));
    column-gap: clamp(56px, 6vw, 120px);
  }
}

@media (max-width: 1200px) {
  .main-layout {
    max-width: calc(100vw - 32px);
    padding: 0 12px;
  }
}

@media (max-width: 1100px) {
  .main-layout {
    max-width: calc(100vw - 24px);
    padding: 0 12px;
  }

  .right-login {
    padding: 20px clamp(12px, 2vw, 16px) 20px clamp(12px, 2vw, 16px);
  }

  .login-card {
    width: min(100%, 340px);
    max-width: 340px;
    height: auto;
    max-height: none;
    overflow: visible;
  }
}

.hero-features {
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  z-index: 1;
}

.feature-item {
  font-size: 16px;
  font-weight: 500;
  opacity: 0.95;
}

.right-login {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  justify-self: end;
  background: #0a0a0a;
  padding: 32px clamp(12px, 2vw, 24px) 24px clamp(12px, 2vw, 24px);
  min-width: 0;
  position: relative;
  width: 360px;
  max-width: 360px;
  box-sizing: border-box;
  height: auto;
  min-height: auto;
  max-height: none;
  overflow: visible;
}

.login-card {
  width: min(100%, 360px);
  max-width: calc(100vw - 32px);
  padding: 8px;
  border-radius: 10px;
  background: rgba(10,20,40,0.65);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(0,255,204,0.15);
  box-shadow: 0 0 30px rgba(0,255,204,0.08);
  min-width: 0;
  box-sizing: border-box;
  height: auto;
  min-height: auto;
  max-height: none;
  overflow: visible;
  display: flex;
  flex-direction: column;
}

.login-box {
  width: min(440px, 92vw);
  background: #ffffff;
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  padding: 32px 24px;
  position: relative;
}

.login-box .login-brand {
  color: #000000;
  font-size: 14px;
  letter-spacing: 1px;
  margin-bottom: 12px;
}

.login-box h2 {
  margin: 0 0 18px 0;
  font-size: 24px;
  color: #000000;
}

.login-row {
  display: flex;
  flex-direction: column;
  gap: 1px;
  margin-bottom: 6px;
}

.login-row label {
  font-size: 12px;
  color: #000000;
  font-weight: 600;
}

.login-input,
.side-input,
.notes-box {
  width: 100%;
  border: 1px solid #ccc;
  background: #ffffff;
  color: #000000;
  border-radius: 8px;
  outline: none;
  font-family: var(--terminal-font);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.login-card .login-input {
  width: 100%;
  padding: 6px 8px;
  margin: 2px 0;
  background: transparent;
  border: 1px solid rgba(0,255,204,0.25);
  color: var(--text-main);
}

.login-card .login-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 10px rgba(0,255,204,0.2);
}

.login-box .login-input {
  background: #ffffff;
  color: #000000;
  border: 1px solid #ddd;
}

.login-input,
.side-input {
  height: 34px;
  padding: 0 10px;
  font-size: 13px;
  position: relative;
  z-index: 10;
  pointer-events: auto;
}

.password-wrapper {
  position: relative;
  width: 100%;
}

.password-wrapper .login-input {
  padding-right: 40px;
}

.eye-icon {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  user-select: none;
  font-size: 16px;
  opacity: 0.6;
  transition: opacity 0.15s ease;
  z-index: 11;
  pointer-events: auto;
}

.eye-icon:hover {
  opacity: 1;
}

/* INPUT FOCUS EFFECT */
.login-input:focus,
.side-input:focus,
.notes-box:focus,
.terminal-cmd-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 10px rgba(0,255,204,0.2);
}


.login-btn,
.head-btn,
.mini-action-btn,
.area-tab,
.currency-btn,
.filter-chip,
.smartkeys button,
.theme-dot {
  font-family: var(--terminal-font);
  cursor: pointer;
  transition: transform 0.08s ease, background 0.15s ease, border-color 0.15s ease, opacity 0.15s ease;
}

/* PRIMARY ACTION BUTTON */
.login-btn,
.primary-action {
  min-height: 40px;
  border: none;
  border-radius: 8px;
  background: linear-gradient(90deg, var(--cta-primary), var(--cta-secondary));
  color: #ffffff;
  font-weight: bold;
  margin-top: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  transition: all 0.3s ease;
  width: 100%;
}

.login-card .login-btn,
.login-card .primary-action {
  width: 100%;
  padding: 10px;
  background: linear-gradient(90deg, var(--cta-primary), var(--cta-secondary));
  border: none;
  color: white;
  font-weight: bold;
  cursor: pointer;
}

.login-buttons {
  display: flex;
  gap: 0;
  margin-top: 4px;
  flex-direction: column;
}

.login-buttons .login-btn {
  flex: 1;
  margin-top: 0;
}

.demo-btn {
  min-height: 36px;
  border: 1px solid var(--primary);
  border-radius: 8px;
  background: transparent;
  color: var(--primary);
  font-weight: 600;
  margin-top: 4px;
  font-family: var(--terminal-font);
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 13px;
  width: 100%;
}

.login-card .demo-btn {
  border: 1px solid var(--primary);
  background: transparent;
  color: var(--primary);
}

.demo-btn:hover {
  background: rgba(0,255,204,0.1);
}

.demo-btn:active {
  transform: scale(0.98);
}

.demo-text {
  margin-top: 12px;
  font-size: 11px;
  color: #000000;
  text-align: center;
  font-family: var(--terminal-font);
  opacity: 0.7;
}

/* Login Button Loader */
.btn-loader {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.loader-text {
  font-size: 14px;
  font-weight: 600;
}

.legal-text {
  margin-top: 12px;
  font-size: 10px;
  color: var(--danger);
  text-align: center;
  font-family: var(--terminal-font);
  opacity: 0.8;
  padding-top: 10px;
  border-top: 1px solid rgba(0,255,204,0.1);
  font-weight: bold;
}

.legal-disclaimer {
  margin-top: 4px;
  font-size: 9px;
  color: #888;
  opacity: 0.6;
  text-align: center;
  line-height: 1.2;
  max-width: 380px;
  margin-left: auto;
  margin-right: auto;
}

/* DISCLAIMER BOX */
.simulator-disclaimer-box {
  margin-top: 6px;
  padding: 6px 8px;
  background: rgba(255, 165, 0, 0.08);
  border: 1px solid rgba(255, 165, 0, 0.25);
  border-radius: 6px;
  backdrop-filter: blur(5px);
}

.disclaimer-header {
  display: flex;
  align-items: center;
  gap: 3px;
  margin-bottom: 3px;
}

.disclaimer-icon {
  font-size: 12px;
}

.disclaimer-title {
  font-size: 10px;
  font-weight: 700;
  color: #ffa500;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.disclaimer-content {
  margin-bottom: 4px;
}

.disclaimer-content p {
  margin: 0 0 2px 0;
  font-size: 9px;
  color: var(--text-soft);
  line-height: 1.2;
}

.disclaimer-content p:last-child {
  margin-bottom: 0;
}

.disclaimer-highlight {
  color: #ffa500;
  font-weight: 600;
}

.disclaimer-acknowledgment {
  padding-top: 6px;
  border-top: 1px solid rgba(255, 165, 0, 0.2);
}

.disclaimer-checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  cursor: pointer;
  user-select: none;
}

.disclaimer-checkbox {
  margin-top: 2px;
  width: 16px;
  height: 16px;
  accent-color: #ffa500;
  cursor: pointer;
}

.disclaimer-checkbox-label span {
  font-size: 11px;
  color: var(--text-soft);
  line-height: 1.3;
}

/* Upgrade Popup */
.upgrade-popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 99999 !important;
}

.popup-content {
  background: #020617;
  padding: 20px;
  border-radius: 12px;
  width: 380px;
  max-width: 90vw;
  box-shadow: 0 0 30px rgba(0,255,200,0.2);
}

.popup-content h2 {
  font-size: 20px;
  margin: 0 0 6px 0;
  color: var(--text-main);
}

.popup-content > p {
  font-size: 13px;
  color: var(--text-soft);
  margin: 0 0 16px 0;
}

.legal-content {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-soft);
  white-space: pre-line;
  max-height: 400px;
  overflow-y: auto;
  padding: 15px;
  background: rgba(0,0,0,0.2);
  border-radius: 8px;
  margin-bottom: 20px;
}

/* Legal Modal Styles */
.legal-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000;
}

.legal-modal .legal-content {
  background: #0b1c2c;
  padding: 24px;
  width: 80%;
  max-width: 600px;
  max-height: 80%;
  overflow-y: auto;
  border-radius: 10px;
  color: #fff;
  border: 1px solid rgba(0,255,200,0.3);
}

.legal-modal h2 {
  margin-top: 0;
  margin-bottom: 16px;
  color: var(--primary);
  font-size: 20px;
}

.legal-modal #legalBody {
  font-size: 13px;
  line-height: 1.6;
  white-space: pre-line;
  margin-bottom: 16px;
}

.legal-modal button {
  background: var(--primary);
  color: #000;
  border: none;
  padding: 8px 16px;
  border-radius: 5px;
  cursor: pointer;
  font-weight: 600;
  margin-top: 8px;
}

.legal-modal button:hover {
  background: #00e6b8;
}

/* Language Switch Buttons */
.footer-lang-switch {
  margin-top: 10px;
  display: flex;
  gap: 10px;
  justify-content: center;
}

.lang-btn {
  background: rgba(0,255,200,0.1);
  color: var(--primary);
  border: 1px solid rgba(0,255,200,0.3);
  padding: 4px 12px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 11px;
  font-weight: 600;
}

.lang-btn:hover {
  background: rgba(0,255,200,0.2);
}

.lang-btn.active {
  background: var(--primary);
  color: #000;
}

.popup-content .plan-box {
  border: 1px solid rgba(0,255,200,0.2);
  padding: 15px;
  border-radius: 10px;
  margin-top: 15px;
  background: rgba(0,0,0,0.3);
}

.popup-content .plan-box h3 {
  font-size: 16px;
  margin: 0 0 5px 0;
  color: var(--text-main);
}

/* Compact Popup Styles */
.popup-content.compact {
  max-width: 700px;
  padding: 16px;
}

.upgrade-title {
  font-size: 20px;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 6px 0;
  text-align: center;
}

.upgrade-message {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
  text-align: center;
  margin: 0 0 12px 0;
}

.urgency-counter {
  font-size: 11px;
  font-weight: 600;
  color: #ffb84d;
  text-align: center;
  margin: 0 0 16px 0;
  padding: 6px 12px;
  background: rgba(255, 184, 77, 0.1);
  border-radius: 8px;
  border: 1px solid rgba(255, 184, 77, 0.2);
}

.plan-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
}

.plan-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 14px;
  position: relative;
  transition: all 0.3s ease;
  cursor: pointer;
}

.plan-card:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(102, 126, 234, 0.3);
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.plan-card.featured {
  background: rgba(102, 126, 234, 0.1);
  border-color: rgba(102, 126, 234, 0.3);
}

.plan-card.master {
  background: linear-gradient(135deg, rgba(255, 184, 77, 0.1) 0%, rgba(255, 138, 77, 0.1) 100%);
  border-color: rgba(255, 184, 77, 0.3);
}

.plan-card.master .featured-badge {
  background: linear-gradient(135deg, #ffb84d 0%, #ff8a4d 100%);
}

.featured-badge {
  position: absolute;
  top: -10px;
  right: 10px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #ffffff;
  font-size: 10px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.plan-card h3 {
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 6px 0;
}

.plan-price {
  font-size: 18px;
  font-weight: 700;
  color: #00ffd0;
  margin: 0 0 4px 0;
}

.early-price {
  font-size: 12px;
  font-weight: 600;
  color: #ffb84d;
  margin: 0 0 4px 0;
}

.limited-badge {
  font-size: 9px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0 0 8px 0;
}

.plan-subtitle {
  font-size: 11px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0 0 8px 0;
}

.plan-period {
  font-size: 12px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.5);
}

.plan-savings {
  font-size: 11px;
  font-weight: 600;
  color: #ffb84d;
  margin: 0 0 8px 0;
}

.plan-description {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
  margin: 0 0 4px 0;
}

.plan-transparency {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.5);
  margin: 0 0 12px 0;
}

.plan-card ul {
  list-style: none;
  padding: 0;
  margin: 0 0 12px 0;
}

.plan-card ul li {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.7);
  padding: 2px 0;
  padding-left: 14px;
  position: relative;
}

.plan-card ul li:before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #00ffd0;
  font-weight: 700;
  font-size: 10px;
}

.plan-btn {
  width: 100%;
  padding: 8px;
  border: none;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.plan-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}

.plan-btn.primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border: none;
}

.plan-btn.primary:hover {
  box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
}

.close-btn {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  background: transparent;
  color: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.close-btn:hover {
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.7);
}

.whatsapp-btn {
  width: 100%;
  padding: 10px;
  border: none;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  color: #ffffff;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.whatsapp-btn:hover {
  box-shadow: 0 8px 20px rgba(37, 211, 102, 0.4);
  transform: translateY(-2px);
}

.whatsapp-icon {
  font-size: 16px;
}

.trust-line {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.5);
  text-align: center;
  margin-bottom: 12px;
  padding: 6px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.secondary-option {
  text-align: center;
}

.secondary-option .close-btn {
  background: transparent;
  color: rgba(255, 255, 255, 0.4);
  border: none;
  padding: 6px;
  font-size: 11px;
}

.secondary-option .close-btn:hover {
  color: rgba(255, 255, 255, 0.6);
  background: transparent;
}

.popup-content .plan-box > p {
  font-size: 12px;
  color: var(--text-soft);
  margin: 0 0 10px 0;
}

.popup-content .plan-box ul {
  margin: 0;
  padding-left: 20px;
  list-style: none;
}

.popup-content .plan-box li {
  font-size: 13px;
  color: #d1d5db;
  margin-bottom: 6px;
}

.popup-content .plan-box.premium {
  border-color: #ff7a00;
  box-shadow: 0 0 15px rgba(255,122,0,0.3);
}

.popup-content .price {
  color: #00F5D4;
  font-weight: bold;
  margin-top: 10px;
  font-size: 18px;
}

.popup-content #upgradeBtn {
  width: 100%;
  padding: 14px;
  margin-top: 20px;
  background: linear-gradient(90deg, var(--cta-primary), var(--cta-secondary));
  border: none;
  border-radius: 8px;
  color: white;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: 0.3s;
}

.popup-content #upgradeBtn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(255,122,0,0.3);
}

.popup-content #closePopup {
  width: 100%;
  padding: 12px;
  margin-top: 10px;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 8px;
  color: var(--text-soft);
  font-size: 14px;
  cursor: pointer;
  transition: 0.3s;
}

.popup-content #closePopup:hover {
  background: rgba(255,255,255,0.1);
  color: var(--text-main);
}

/* Demo Intro Popup */
.demo-intro-popup {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(2, 6, 23, 0.95);
  border: 1px solid rgba(0, 255, 200, 0.3);
  border-radius: 12px;
  padding: 20px;
  max-width: 400px;
  width: 90vw;
  z-index: 100000;
  box-shadow: 0 0 40px rgba(0, 255, 200, 0.2);
  backdrop-filter: blur(10px);
}

.demo-intro-close {
  position: absolute;
  top: 8px;
  right: 12px;
  background: transparent;
  border: none;
  color: #00ffd5;
  font-size: 24px;
  cursor: pointer;
  line-height: 1;
  padding: 0;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.demo-intro-close:hover {
  color: #ffffff;
  transform: scale(1.1);
}

.demo-intro-content {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.demo-intro-text {
  font-size: 13px;
  line-height: 1.5;
  color: #d1d5db;
  margin: 0;
  opacity: 0.9;
}

.demo-intro-text.highlight {
  color: #00ffd5;
  font-weight: 600;
  font-size: 14px;
  margin-top: 6px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .main-layout {
    grid-template-columns: 1fr;
    height: auto;
    min-height: auto;
    gap: 24px;
  }

  .left-hero {
    display: block;
    height: auto;
    padding: 24px 20px 16px;
    width: 100%;
  }

  .left-hero::before {
    display: none;
  }

  .left-container {
    height: auto;
    padding: 0;
  }

  .hero-block {
    margin-top: 16px;
    margin-bottom: 12px;
    text-align: center;
  }

  .hero-block h1 {
    font-size: 28px;
    color: #ffffff;
  }

  .plan-section .pro-box {
    margin-left: 0;
  }

  .right-login {
    width: 100%;
    padding: 20px;
    padding-right: 20px;
  }

  .login-card {
    width: 100%;
    max-width: 100%;
    max-height: none;
  }

  .login-footer {
    position: relative;
    bottom: auto;
    margin-top: 20px;
    padding-bottom: 16px;
  }

  .headbar-left,
  .headbar-right {
    gap: 8px;
  }

  .saas-chip {
    padding: 6px 10px;
  }

  .saas-icon-btn {
    width: 36px;
    padding: 0;
    justify-content: center;
  }

  .saas-icon-btn .btn-label {
    display: none;
  }

  .logo-text {
    display: none;
  }

  .saas-chip .chip-label {
    display: none;
  }

  .area-tab {
    min-width: auto;
    padding: 0 12px;
    font-size: 11px;
    font-size: 9px;
    letter-spacing: 0.2px;
  }

  .settings-dropdown {
    width: 90vw;
    max-width: 320px;
  }
}

/* MOBILE HERO CTA - hidden on desktop */
.mobile-hero-cta {
  display: none;
}

.mobile-payment-notice {
  display: none;
}

.mobile-login-link {
  display: none;
}

.mobile-login-btn {
  display: none;
}

@media (max-width: 768px) {
  .area-tab {
    padding: 0 8px;
    font-size: 8px;
    letter-spacing: 0.1px;
  }

  /* LOGIN OVERLAY - Single column mobile */
  .login-overlay {
    overflow-y: auto;
  }

  /* FORCE FLEX COLUMN - no grid conflicts */
  .main-layout {
    display: flex;
    flex-direction: column;
    height: auto;
    min-height: auto;
    max-width: calc(100vw - 16px);
    padding: 0 8px;
    gap: 20px;
  }

  /* LEFT HERO - no centering on container level */
  .left-hero {
    display: block;
    height: auto;
    min-height: auto;
    max-height: none;
    overflow: visible;
    padding: 0 20px;
    width: 100%;
  }

  .left-hero::before {
    display: none;
  }

  .left-container {
    height: auto;
    min-height: auto;
    max-height: none;
    overflow: visible;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
  }

  /* HERO BLOCK - fills viewport, centers its content */
  .hero-block {
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin: 0;
    padding: 20px 0;
    box-sizing: border-box;
  }

  .hero-block h1 {
    font-size: 30px;
    line-height: 1.15;
    margin-bottom: 12px;
    color: #ffffff;
  }

  .hero-block > p {
    font-size: 14px;
    margin-top: 8px;
    max-width: 320px;
    line-height: 1.4;
    color: #ffffff;
  }

  .micro-badge {
    font-size: 9px;
    margin-top: 10px;
  }

  /* MOBILE HERO CTA - visible, inside hero-block */
  .mobile-hero-cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    margin-top: 28px;
    gap: 12px;
  }

  .mobile-demo-btn {
    width: 100%;
    max-width: 320px;
    min-height: 52px;
    font-size: 16px;
    border-radius: 10px;
  }

  .mobile-hero-trust {
    font-size: 13px;
    color: #ffffff;
    text-align: center;
    font-family: var(--terminal-font);
    letter-spacing: 0.2px;
    line-height: 1.5;
    font-weight: 600;
    opacity: 0.9;
  }

  .mobile-payment-notice {
    display: block;
    font-size: 9px;
    color: #4a5568;
    opacity: 0.6;
    text-align: center;
    margin-top: 4px;
    font-family: var(--terminal-font);
  }

  .mobile-payment-notice a {
    color: #718096;
    text-decoration: underline;
  }

  .mobile-login-btn {
    display: block !important;
    width: 100% !important;
    max-width: 320px;
    height: 44px !important;
    margin-top: 10px;
    font-size: 14px;
    font-weight: 600;
    background: rgba(255,255,255,0.08);
    color: #ffffff;
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 8px;
    cursor: pointer;
    pointer-events: auto !important;
    z-index: 10;
    position: relative;
    transition: background 0.15s ease, border-color 0.15s ease;
    font-family: var(--terminal-font);
    letter-spacing: 0.5px;
  }

  .mobile-login-btn:hover {
    background: rgba(255,255,255,0.12);
    border-color: rgba(255,255,255,0.4);
  }

  .mobile-login-btn:active {
    transform: scale(0.97);
  }

  .mobile-login-link {
    display: block;
    font-size: 11px;
    color: #718096;
    text-align: center;
    margin-top: 8px;
  }

  .mobile-login-link a {
    color: var(--primary, #00ffcc);
    text-decoration: underline;
    font-weight: 600;
  }

  /* PRICING CARDS - below fold, full width stacked */
  .plan-section {
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 10px;
  }

  .plan-box {
    width: 100%;
    padding: 12px;
  }

  .plan-section .pro-box {
    margin-left: 0;
  }

  /* LOGIN PANEL - full width */
  .right-login {
    padding: 16px;
    padding-right: 16px;
    height: auto;
    min-height: auto;
    max-height: none;
    overflow: visible;
  }

  .login-card {
    padding: 16px;
    max-width: 100%;
    height: auto;
    min-height: auto;
    max-height: none;
    overflow: visible;
    border-radius: 10px;
  }

  .login-heading {
    font-size: 17px;
    margin: 6px 0 4px;
  }

  .login-subheading {
    font-size: 12px;
    margin-bottom: 12px;
  }

  .login-row {
    margin-bottom: 10px;
  }

  .login-card .login-input {
    padding: 10px 12px;
    margin: 4px 0;
  }

  /* BUTTONS - full width, tap-friendly */
  .demo-primary {
    min-height: 46px;
    font-size: 14px;
    width: 100%;
    border-radius: 8px;
  }

  .secondary-action {
    min-height: 40px;
    font-size: 12px;
    width: 100%;
  }

  .login-buttons {
    margin-top: 12px;
  }

  .login-features-compact {
    font-size: 10px;
    margin: 8px 0;
  }

  .login-divider {
    margin: 10px 0;
  }

  /* FOOTER - below everything */
  .login-footer {
    position: relative;
    bottom: auto;
    margin-top: 16px;
    padding-bottom: 12px;
  }

  .footer-links {
    gap: 8px;
  }

  .footer-links a {
    font-size: 11px;
  }

  .footer-trust,
  .footer-copy {
    font-size: 10px;
  }

  .login-card {
    flex-direction: column;
  }

  /* LEGAL */
  .legal-text {
    font-size: 10px;
    margin-top: 12px;
    padding-top: 10px;
  }

  .legal-disclaimer {
    font-size: 10px;
    margin-top: 8px;
  }

  .trust-message {
    font-size: 10px;
  }

  /* PAYMENT BANNER - hide top bar on mobile, use inline instead */
  .payment-setup-banner {
    display: none;
  }

  /* Hide micro-badge on mobile hero for cleaner first screen */
  .hero-block .micro-badge {
    display: none;
  }

  /* Hide demo intro popup content on mobile */
  .demo-intro-content {
    display: none !important;
  }

  /* ============================================================
     HARD OVERRIDE: MOBILE TERMINAL FULLSCREEN (ELON LEVEL)
     ============================================================ */

  /* STEP 1: BODY RESET */
  body, html {
    margin: 0 !important;
    padding: 0 !important;
    height: 100% !important;
    overflow: hidden !important;
    background: #001f2f !important;
  }

  /* STEP 2: HIDE ALL NON-TERMINAL UI */
  .headbar:not(.amadeus-visible),
  .header,
  .top-bar,
  .toolbar,
  .upgrade-bar,
  .status-bar,
  .terminal-grid-info {
    display: none !important;
  }

  .headbar.amadeus-visible {
    display: flex !important;
    background: rgba(0, 0, 0, 0.9);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  /* STEP 3: STRIP ALL WRAPPERS */
  .ui-shell,
  .center-shell,
  .terminal-stage,
  .terminal-frame,
  .terminal-wrapper {
    all: unset !important;
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    position: static !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    margin: 0 !important;
    padding: 0 !important;
    background: #001f2f !important;
    overflow: visible !important;
  }

  .ui-shell {
    position: fixed !important;
    inset: 0 !important;
    height: 100vh !important;
  }

  /* STEP 4: TERMINAL OUTPUT — FULLSCREEN */
  .terminal {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: calc(100vh - 50px) !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    background: #001f2f !important;
    padding: 10px 12px !important;
    margin: 0 !important;
    font-size: 12px !important;
    box-sizing: border-box !important;
    z-index: 1 !important;
  }

  /* STEP 5: INPUT ROW — FIXED BOTTOM */
  .terminal-input-row {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 50px !important;
    min-height: 50px !important;
    max-height: 50px !important;
    background: #000000 !important;
    border: none !important;
    border-top: 1px solid rgba(0,255,136,0.3) !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    margin: 0 !important;
    padding: 6px 10px !important;
    box-sizing: border-box !important;
    z-index: 9999 !important;
    display: flex !important;
    align-items: center !important;
  }

  /* STEP 6: HIDE FRAME PSEUDO-ELEMENTS */
  .terminal-frame::before,
  .terminal-frame::after {
    display: none !important;
  }

  /* STEP 7: KILL ALL BORDER RADIUS */
  * {
    border-radius: 0 !important;
  }

  /* STEP 8: HIDE ALL FLOATING UPGRADE UI */
  .upgrade-bar,
  .upgrade-box,
  .floating-upgrade,
  .upgrade-banner,
  .demo-banner {
    display: none !important;
  }

  /* STEP 9: TERMINAL OUTPUT STARTS FROM TOP */
  .terminal {
    padding-top: 8px !important;
  }

  .settings-dropdown {
    width: 90vw;
    max-width: 280px;
  }

  .popup-content {
    width: 90vw;
    max-width: 350px;
  }

  .demo-intro-popup {
    max-width: 90vw;
  }

  /* Hide desktop header elements on mobile */
  .headbar-right .saas-segmented-control,
  .headbar-right .smart-btn,
  .headbar-right .history-btn,
  .headbar-right .admin-btn,
  .headbar-right .settings-tool {
    display: none;
  }

  .headbar {
    padding: 0 12px;
    height: 56px;
    min-height: 56px;
    max-height: 56px;
    gap: 12px;
  }

  .saas-brand {
    gap: 6px;
  }

  .logo-icon {
    width: 26px;
    height: 26px;
    font-size: 13px;
  }

  .saas-chip {
    padding: 4px 8px;
    font-size: 11px;
  }

  .saas-chip strong {
    font-size: 11px;
  }

  .saas-chip .chip-label {
    display: none;
  }

  .headbar-left {
    gap: 6px;
  }

  .headbar-center {
    max-width: 200px;
  }

  .area-tab {
    padding: 0 10px;
    font-size: 11px;
  }

  /* Show mobile menu toggle */
  .mobile-menu-toggle {
    display: flex;
  }
}

/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  background: var(--bg-panel);
  border: 1px solid var(--neon-soft);
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.mobile-menu-toggle:hover {
  border-color: var(--neon);
  background: rgba(0, 255, 204, 0.1);
}

.mobile-menu-toggle:active {
  transform: scale(0.95);
}

.hamburger-icon {
  position: relative;
  width: 20px;
  height: 16px;
}

.hamburger-icon::before,
.hamburger-icon::after {
  content: '';
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--primary);
  transition: all 0.3s ease;
}

.hamburger-icon::before {
  top: 0;
}

.hamburger-icon::after {
  bottom: 0;
}

.hamburger-icon span {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--primary);
  transform: translateY(-50%);
}

/* Mobile Service Menu Overlay */
.mobile-service-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 85vw;
  max-width: 320px;
  height: 100vh;
  background: var(--bg-panel);
  border-left: 1px solid var(--neon-soft);
  box-shadow: var(--shadow);
  z-index: 10001;
  transition: right 0.3s ease;
  display: flex;
  flex-direction: column;
  backdrop-filter: blur(10px);
}

.mobile-service-menu.open {
  right: 0;
}

.mobile-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid var(--neon-soft);
  flex-shrink: 0;
}

.mobile-menu-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.mobile-menu-close {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: transparent;
  border: 1px solid var(--neon-soft);
  color: var(--text);
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.mobile-menu-close:hover {
  border-color: var(--neon);
  background: rgba(0, 255, 204, 0.1);
}

.mobile-menu-content {
  flex: 1;
  overflow-y: auto;
  padding: 14px 16px;
}

.mobile-menu-section {
  margin-bottom: 16px;
}

.mobile-menu-section:last-child {
  margin-bottom: 0;
}

.mobile-menu-section-title {
  font-size: 10px;
  font-weight: 600;
  color: var(--text-dim);
  letter-spacing: 0.8px;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.mobile-area-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}

.mobile-area-tab {
  height: 44px;
  border-radius: 8px;
  border: 1px solid var(--neon-soft);
  background: var(--bg-panel);
  color: var(--text);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  white-space: nowrap;
  letter-spacing: 0.3px;
}

.mobile-area-tab:hover {
  border-color: var(--neon);
}

.mobile-area-tab.active {
  background: var(--neon);
  color: #000;
  font-weight: bold;
  box-shadow: 0 0 14px rgba(0, 255, 136, 0.5);
}

.mobile-menu-item {
  width: 100%;
  height: 44px;
  border-radius: 8px;
  border: 1px solid var(--neon-soft);
  background: var(--bg-panel);
  color: var(--text);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 6px;
  text-align: center;
}

.mobile-menu-item:hover {
  border-color: var(--neon);
  background: rgba(0, 255, 204, 0.1);
}

.mobile-menu-item:active {
  transform: scale(0.98);
}

.mobile-menu-item:last-child {
  margin-bottom: 0;
}

/* Mobile menu overlay backdrop */
.mobile-menu-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.mobile-menu-backdrop.open {
  opacity: 1;
  visibility: visible;
}

/* Theme White - Mobile Menu Styling */
body.theme-white .mobile-service-menu {
  background: #ffffff;
  border-left: 1px solid #e5e7eb;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

body.theme-white .mobile-menu-header {
  border-bottom: 1px solid #e5e7eb;
}

body.theme-white .mobile-menu-title {
  color: #1f2937;
}

body.theme-white .mobile-menu-close {
  border: 1px solid #d1d5db;
  color: #374151;
}

body.theme-white .mobile-menu-close:hover {
  border-color: #3b82f6;
  background: rgba(59, 130, 246, 0.1);
}

body.theme-white .mobile-menu-section-title {
  color: #6b7280;
}

body.theme-white .mobile-area-tab {
  background: #f9fafb;
  border: 1px solid #d1d5db;
  color: #374151;
}

body.theme-white .mobile-area-tab:hover {
  border-color: #3b82f6;
  background: #f3f4f6;
}

body.theme-white .mobile-area-tab.active {
  background: #3b82f6;
  color: #ffffff;
  border-color: #3b82f6;
  box-shadow: 0 0 14px rgba(59, 130, 246, 0.4);
}

body.theme-white .mobile-menu-item {
  background: #f9fafb;
  border: 1px solid #d1d5db;
  color: #374151;
}

body.theme-white .mobile-menu-item:hover {
  border-color: #3b82f6;
  background: #f3f4f6;
}

body.theme-white .mobile-menu-toggle {
  background: #ffffff;
  border: 1px solid #d1d5db;
}

body.theme-white .mobile-menu-toggle:hover {
  border-color: #3b82f6;
  background: rgba(59, 130, 246, 0.1);
}

body.theme-white .hamburger-icon::before,
body.theme-white .hamburger-icon::after,
body.theme-white .hamburger-icon span {
  background: #374151;
}

/* Mobile Agent Info Section */
.mobile-agent-info {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 8px;
  padding: 10px 12px;
  border: 1px solid var(--neon-soft);
}

.mobile-info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  border-bottom: 1px solid rgba(0, 255, 204, 0.1);
}

/* Compact plan container for terminal style */
.mobile-plan-container {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px;
  border: 1px solid rgba(0,255,200,0.25);
  border-radius: 6px;
  background: rgba(0,0,0,0.4);
  width: auto !important;
  max-width: max-content;
  margin-left: auto;
}

.mobile-plan-container .mobile-info-label {
  font-size: 10px;
  opacity: 0.7;
  margin: 0;
  line-height: 1;
}

.mobile-plan-container .mobile-info-value {
  font-size: 11px;
  font-weight: 700;
  margin: 0;
  line-height: 1;
}

.mobile-info-row:last-child {
  border-bottom: none;
}

.mobile-info-label {
  font-size: 10px;
  font-weight: 600;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.mobile-info-value {
  font-size: 12px;
  font-weight: 600;
  color: var(--primary);
}

.mobile-status-connected {
  color: #00ff88;
}

.mobile-status-disconnected {
  color: #ff4444;
}

/* Theme White - Mobile Agent Info */
body.theme-white .mobile-agent-info {
  background: #f9fafb;
  border: 1px solid #d1d5db;
}

body.theme-white .mobile-info-row {
  border-bottom: 1px solid #e5e7eb;
}

body.theme-white .mobile-info-label {
  color: #6b7280;
}

body.theme-white .mobile-info-value {
  color: #1f2937;
}

body.theme-white .mobile-status-connected {
  color: #10b981;
}

body.theme-white .mobile-status-disconnected {
  color: #ef4444;
}

/* Theme White - Footer */
body.theme-white .footer-links a {
  color: #64748b;
}

body.theme-white .footer-sep {
  color: #64748b;
}

body.theme-white .footer-trust {
  color: #64748b;
}

body.theme-white .footer-copy {
  color: #64748b;
}

/* Theme Navy - Footer */
body.theme-navy .footer-links a {
  color: #b8d4e6;
}

body.theme-navy .footer-sep {
  color: #b8d4e6;
}

body.theme-navy .footer-trust {
  color: #b8d4e6;
}

body.theme-navy .footer-copy {
  color: #b8d4e6;
}

@media (max-width: 360px) {
  .login-card {
    padding: 10px;
    max-width: 100%;
  }

  .feature-list {
    max-width: 100%;
  }

  .plan-section {
    max-width: 100%;
    grid-template-columns: 1fr;
  }

  .legal-disclaimer {
    max-width: 100%;
  }

  .headbar-left {
    gap: 4px;
  }

  .header-chip {
    min-width: auto;
  }

  .settings-dropdown {
    width: 90vw;
    max-width: 260px;
  }

  .popup-content {
    width: 90vw;
    max-width: 300px;
  }

  .demo-intro-popup {
    max-width: 90vw;
  }

  /* Prevent horizontal scroll on very small screens */
  * {
    max-width: 100%;
  }

  .headbar {
    overflow-x: auto;
  }
}

/* Extra small screens (like 223px) */
@media (max-width: 250px) {
  .headbar-left {
    gap: 2px;
  }

  .header-chip {
    padding: 0 4px;
    font-size: 8px;
  }

  .header-chip .status-label {
    display: none;
  }

  .mobile-menu-toggle {
    width: 36px;
    height: 36px;
  }

  .mobile-service-menu {
    width: 95vw;
    max-width: 200px;
  }

  .mobile-menu-item {
    height: 40px;
    font-size: 12px;
  }

  .mobile-area-tab {
    height: 44px;
    font-size: 10px;
    padding: 0 8px;
  }

  .mobile-agent-info {
    padding: 8px;
  }

  .mobile-info-row {
    padding: 4px 0;
  }

  .mobile-info-label {
    font-size: 9px;
  }

  .mobile-info-value {
    font-size: 11px;
  }
}

/* Ultra small screens (200px and below) */
@media (max-width: 200px) {
  * {
    max-width: 100% !important;
    box-sizing: border-box;
  }

  .headbar {
    padding: 2px 4px;
    gap: 2px;
  }

  .mobile-menu-toggle {
    width: 32px;
    height: 32px;
  }

  .mobile-service-menu {
    width: 98vw;
    max-width: 180px;
  }

  .mobile-menu-header {
    padding: 10px;
  }

  .mobile-menu-title {
    font-size: 12px;
  }

  .mobile-menu-close {
    width: 28px;
    height: 28px;
    font-size: 20px;
  }

  .mobile-menu-content {
    padding: 10px;
  }

  .mobile-menu-section {
    margin-bottom: 12px;
  }

  .mobile-menu-section-title {
    font-size: 10px;
    margin-bottom: 8px;
  }

  .mobile-agent-info {
    padding: 6px;
  }

  .mobile-info-row {
    padding: 3px 0;
  }

  .mobile-info-label {
    font-size: 8px;
  }

  .mobile-info-value {
    font-size: 10px;
  }

  .mobile-area-tabs {
    gap: 4px;
  }

  .mobile-area-tab {
    height: 36px;
    font-size: 11px;
  }

  .mobile-menu-item {
    height: 36px;
    font-size: 11px;
  }

  .terminal {
    font-size: 10px;
    padding: 4px;
  }

  .terminal-input-row {
    padding: 4px;
    min-height: 36px;
  }

  .terminal-cmd-input {
    min-height: 36px;
    font-size: 10px;
  }
}

.login-btn:hover,
.primary-action:hover {
  box-shadow: 0 0 25px var(--cta-primary);
  transform: translateY(-1px);
}

.login-btn:active,
.primary-action:active {
  transform: scale(0.96);
}

.login-error {
  font-size: 11px;
  color: var(--red);
  margin-top: 4px;
  min-height: 16px;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.login-error.visible {
  opacity: 1;
}

/* APP LAYOUT */
.ui-shell {
  display: flex;
  flex-direction: column;
  height: 100vh;
  padding: 0;
  margin: 0;
  max-width: 100vw;
  overflow-x: hidden;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.015), transparent),
    var(--bg);
}

.center-shell {
  min-width: 0;
  display: flex;
  flex-direction: column;
  flex: 1;
  height: 100%;
  overflow: hidden;
  padding: 0;
  margin: 0;
  max-width: 100%;
}

/* PANELS */
.panel-section {
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(255,255,255,0.02);
  padding: 10px;
  min-height: 0;
}

.panel-title {
  font-size: 11px;
  letter-spacing: 0.6px;
  color: var(--green);
  margin-bottom: 8px;
  text-transform: uppercase;
}

.field-label {
  display: block;
  font-size: 11px;
  color: var(--text-dim);
  margin: 6px 0 4px;
}

.field-check {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  color: var(--text);
  font-size: 12px;
}

.field-check input {
  accent-color: var(--green-soft);
}

.shortcut-list {
  display: grid;
  gap: 5px;
  font-size: 11px;
  color: var(--text-dim);
}

.theme-dots {
  display: flex;
  gap: 8px;
  align-items: center;
}

.theme-dot {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  border: 2px solid var(--border);
  background: #111;
}

.theme-dot.white {
  background: #eef3f8;
}

.theme-dot.black {
  background: #000;
}

.theme-dot.navy {
  background: #0d2f57;
}

/* HEAD BAR - Premium SaaS Design */
.headbar {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: rgba(8, 12, 24, 0.86);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  padding: 0 24px;
  position: relative;
  flex-shrink: 0;
  height: 64px;
  min-height: 64px;
  max-height: 64px;
  overflow: visible !important;
  box-sizing: border-box;
  visibility: visible !important;
  flex-wrap: nowrap;
  width: 100%;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.headbar-left,
.headbar-center,
.headbar-right {
  display: flex !important;
  gap: 12px;
  align-items: center;
  min-width: 0;
  visibility: visible !important;
  overflow: visible !important;
  flex-wrap: nowrap;
}

.headbar-left {
  justify-content: flex-start;
  flex: 0 0 auto;
  gap: 10px;
}

.headbar-center {
  flex: 1;
  justify-content: center;
  min-width: 0;
  max-width: 420px;
}

.headbar-right {
  justify-content: flex-end;
  flex: 0 0 auto;
  gap: 8px;
}

/* Premium SaaS Brand */
.saas-brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.saas-logo {
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo-icon {
  width: 28px;
  height: 28px;
  background: linear-gradient(135deg, #6366F1 0%, #8B5CF6 100%);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: #fff;
  flex-shrink: 0;
}

.logo-text {
  font-size: 13px;
  font-weight: 700;
  color: #F8FAFC;
  letter-spacing: -0.02em;
}

.saas-divider {
  width: 1px;
  height: 20px;
  background: rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
}

/* Premium SaaS Chips */
.saas-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 6px;
  font-size: 12px;
  color: #94A3B8;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.saas-chip:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.12);
}

.chip-label {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #64748B;
  font-weight: 600;
}

.saas-chip strong {
  font-size: 12px;
  font-weight: 600;
  color: #F8FAFC;
}

/* Agent Chip */
.agent-chip {
  gap: 6px;
}

.agent-chip .profile-badge {
  width: 22px;
  height: 22px;
  border-radius: 5px;
  background: linear-gradient(135deg, #6366F1 0%, #8B5CF6 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

/* Connection Chip */
.connection-chip.connected {
  border-color: rgba(34, 197, 94, 0.15);
  background: rgba(34, 197, 94, 0.06);
}

.connection-chip.connected .conn-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22C55E;
  box-shadow: none;
  flex-shrink: 0;
}

.connection-chip.disconnected {
  border-color: rgba(239, 68, 68, 0.15);
  background: rgba(239, 68, 68, 0.06);
}

.connection-chip.disconnected .conn-dot {
  background: #EF4444;
  box-shadow: none;
}

/* Plan Chip */
.plan-chip {
  gap: 6px;
}

.plan-chip .plan-badge {
  padding: 3px 8px;
  border-radius: 5px;
  font-size: 10px;
  font-weight: 600;
  color: #fff;
  flex-shrink: 0;
}

/* Time Chip */
.time-chip {
  gap: 6px;
}

.time-chip strong {
  font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Fira Code', monospace;
  font-size: 12px;
  color: #F8FAFC;
}

/* Premium Segmented Control */
.saas-segmented-control {
  position: relative;
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 3px;
  flex-shrink: 0;
}

.area-tabs {
  display: flex;
  gap: 3px;
  width: 100%;
}

.area-tab {
  flex: 1;
  height: 32px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: 6px;
  background: transparent;
  border: none;
  font-size: 12px;
  font-weight: 600;
  color: #94A3B8;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.area-tab:hover {
  color: #F8FAFC;
  background: rgba(255, 255, 255, 0.06);
}

.area-tab.active {
  background: rgba(99, 102, 241, 0.15);
  color: #F8FAFC;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  font-weight: 700;
}

.area-tab:not(.active) {
  color: #64748B;
}

.area-tab:not(.active):hover {
  color: #94A3B8;
}

/* Premium Icon Buttons */
.saas-icon-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  height: 32px;
  padding: 0 10px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  color: #94A3B8;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.saas-icon-btn:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #F8FAFC;
}

.saas-icon-btn.active {
  background: rgba(99, 102, 241, 0.12);
  color: #818CF8;
  border-color: rgba(99, 102, 241, 0.2);
}

.saas-icon-btn .btn-icon {
  font-size: 15px;
  line-height: 1;
}

.saas-icon-btn .btn-label {
  font-size: 12px;
  font-weight: 600;
}

/* Admin Button Special Styling */
.saas-icon-btn.admin-btn {
  color: #F87171;
  /* Ensure inline style="display:none" from HTML is respected */
  display: none !important;
}

.saas-icon-btn.admin-btn:hover {
  background: rgba(239, 68, 68, 0.08);
  color: #EF4444;
}

.saas-icon-btn.admin-btn.active {
  background: rgba(239, 68, 68, 0.12);
  color: #EF4444;
  border-color: rgba(239, 68, 68, 0.25);
}

/* Only show when JavaScript explicitly sets display to flex */
/* Match both "display: flex" and "display:flex" formats */
.saas-icon-btn.admin-btn[style*="display: flex"],
.saas-icon-btn.admin-btn[style*="display:flex"] {
  display: flex !important;
}

/* Settings Button - Icon Only */
.saas-icon-btn.settings-btn {
  width: 32px;
  padding: 0;
  justify-content: center;
}

/* Toolbar Responsive - Medium/Zoomed Width */
@media (max-width: 1280px) {
  .headbar {
    padding: 0 16px;
    gap: 16px;
    height: 64px;
    min-height: 64px;
    max-height: 64px;
  }

  .headbar-left,
  .headbar-center,
  .headbar-right {
    gap: 8px;
  }

  .logo-text {
    display: none;
  }

  .saas-icon-btn .btn-label {
    display: none;
  }

  .saas-icon-btn {
    width: 32px;
    padding: 0;
    justify-content: center;
  }

  .saas-chip .chip-label {
    display: none;
  }

  .saas-chip {
    padding: 5px 8px;
  }

  .headbar-center {
    max-width: 320px;
  }

  .area-tab {
    padding: 0 12px;
    font-size: 11px;
  }
}

/* Tablet Responsive - Hide labels first */
@media (max-width: 1024px) {
  .headbar {
    gap: 12px;
  }

  .logo-text {
    display: none;
  }

  .saas-icon-btn .btn-label {
    display: none;
  }

  .saas-icon-btn {
    width: 32px;
    padding: 0;
    justify-content: center;
  }

  .saas-chip .chip-label {
    display: none;
  }

  .headbar-center {
    max-width: 280px;
  }

  .area-tab {
    padding: 0 10px;
    font-size: 11px;
  }
}

.ayazgds-link {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: all 0.3s ease;
}

.ayazgds-link:hover {
  background: linear-gradient(180deg, rgba(0, 255, 204, 0.2), rgba(0, 255, 204, 0.1));
  border-color: rgba(0, 255, 204, 0.5);
  transform: translateY(-1px);
}

/* HEADER CHIP SYSTEM - Legacy (kept for compatibility) */
.header-chip,
.status-box {
  height: 34px;
  padding: 0 10px;
  display: flex;
  align-items: center;
  gap: 6px;
  border-radius: var(--radius);
  background: var(--bg-panel);
  border: 1px solid var(--neon-soft);
  font-size: 11px;
  font-weight: 600;
  color: #fff;
  transition: all 0.12s ease;
  min-width: 0;
  white-space: nowrap;
  font-family: var(--terminal-font);
}

/* Override for new premium SaaS chips */
.saas-chip {
  background: rgba(255, 255, 255, 0.04) !important;
  border: 1px solid rgba(255, 255, 255, 0.06) !important;
  font-family: 'Inter', system-ui, -apple-system, sans-serif !important;
  color: #94A3B8 !important;
}

/* Compatibility: Map old header-chip to new saas-chip styles where used in headbar */
.headbar .header-chip {
  background: rgba(255, 255, 255, 0.04) !important;
  border: 1px solid rgba(255, 255, 255, 0.06) !important;
  font-family: 'Inter', system-ui, -apple-system, sans-serif !important;
  color: #94A3B8 !important;
  border-radius: 8px !important;
  box-shadow: none !important;
}

/* Compatibility: Ensure area tabs use new segmented control styling */
.headbar .area-tab {
  background: transparent !important;
  border: none !important;
  font-family: 'Inter', system-ui, -apple-system, sans-serif !important;
  color: #94A3B8 !important;
  border-radius: 7px !important;
}

.headbar .area-tab.active {
  background: rgba(99, 102, 241, 0.15) !important;
  color: #F8FAFC !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1) !important;
}

.headbar .area-tab:hover {
  color: #F8FAFC !important;
  background: rgba(255, 255, 255, 0.06) !important;
}

/* Compatibility: Map old button classes to new saas-icon-btn styles */
.headbar .smart-btn,
.headbar .history-btn,
.headbar .admin-btn,
.headbar .settings-btn,
.headbar .screen-toggle-btn {
  background: transparent !important;
  border: 1px solid transparent !important;
  font-family: 'Inter', system-ui, -apple-system, sans-serif !important;
  color: #94A3B8 !important;
  border-radius: 8px !important;
  box-shadow: none !important;
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
}

.headbar .smart-btn:hover,
.headbar .history-btn:hover,
.headbar .admin-btn:hover,
.headbar .settings-btn:hover,
.headbar .screen-toggle-btn:hover {
  background: rgba(255, 255, 255, 0.06) !important;
  color: #F8FAFC !important;
}

.headbar .smart-btn.active,
.headbar .history-btn.active,
.headbar .admin-btn.active {
  background: rgba(99, 102, 241, 0.12) !important;
  color: #818CF8 !important;
  border-color: rgba(99, 102, 241, 0.2) !important;
}

.headbar .admin-btn:hover {
  background: rgba(239, 68, 68, 0.1) !important;
  color: #EF4444 !important;
}

.headbar .admin-btn.active {
  background: rgba(239, 68, 68, 0.15) !important;
  color: #EF4444 !important;
  border-color: rgba(239, 68, 68, 0.3) !important;
}

/* Settings tool container */
.settings-tool {
  position: relative;
  display: flex;
  align-items: center;
}

/* Mobile Actions Menu */
.mobile-actions-menu {
  position: relative;
  display: none;
}

.mobile-menu-toggle {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  color: #94A3B8;
  cursor: pointer;
  transition: all 0.2s ease;
}

.mobile-menu-toggle:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #F8FAFC;
}

.menu-icon {
  font-size: 18px;
  line-height: 1;
}

.mobile-actions-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 160px;
  background: #111827;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  padding: 6px;
  display: none;
  z-index: 1000;
}

.mobile-actions-dropdown.show {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.mobile-action-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: transparent;
  border: none;
  border-radius: 6px;
  color: #94A3B8;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: left;
  font-size: 13px;
  font-weight: 500;
}

.mobile-action-item:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #F8FAFC;
}

.mobile-action-item.admin-action {
  color: #F87171;
}

.mobile-action-item.admin-action:hover {
  background: rgba(239, 68, 68, 0.1);
  color: #EF4444;
}

.action-icon {
  font-size: 16px;
  line-height: 1;
}

.action-label {
  font-size: 13px;
  font-weight: 500;
}

/* Show mobile actions menu on small screens */
@media (max-width: 1024px) {
  .mobile-actions-menu {
    display: flex;
  }

  .headbar-right .smart-btn,
  .headbar-right .history-btn,
  .headbar-right .admin-btn,
  .headbar-right .settings-btn {
    display: none;
  }
}

/* Settings button - icon only */
.saas-icon-btn.settings-btn {
  width: 36px;
  padding: 0;
  justify-content: center;
}

.header-chip .status-stack {
  display: flex;
  flex-direction: row;
  gap: 8px;
  align-items: center;
}

/* Fix plan header-chip specifically */
.header-chip.plan-box {
  flex-direction: row;
  align-items: center;
  gap: 8px;
}

.header-chip.plan-box .status-label {
  font-size: 11px;
  opacity: 0.7;
  display: inline-block;
  margin: 0;
  line-height: 1;
}

.header-chip.plan-box .plan-badge {
  height: 28px;
  padding: 0 10px;
  display: flex;
  align-items: center;
  border-radius: 999px;
  font-size: 12px;
  margin: 0;
  line-height: 1;
}

.header-chip:hover,
.status-box:hover {
  border-color: var(--neon);
}

.header-chip:active,
.status-box:active {
  transform: scale(0.94);
}

.status-box.connected {
  border-color: var(--neon);
  color: var(--neon);
  background: var(--neon-soft);
}

.status-label {
  font-size: 9px;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}

.status-box strong {
  font-size: 10px;
  font-weight: 700;
  color: #ffffff;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.profile-badge {
  width: 20px;
  height: 20px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: var(--neon-soft);
  border: 1px solid var(--neon);
  color: var(--neon);
  font-weight: 700;
  flex: 0 0 auto;
  font-size: 9px;
}

.connection-box.connected {
  border-color: var(--neon);
  background: var(--neon-soft);
}

.connection-box.disconnected {
  border-color: #ff4444;
  background: rgba(255, 68, 68, 0.1);
}

.connection-box.disconnected .conn-dot {
  background: #ff4444;
  box-shadow: 0 0 8px rgba(255, 68, 68, 0.5);
}


.conn-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--neon);
  box-shadow: 0 0 6px rgba(0,255,136,0.5);
  flex: 0 0 auto;
}


.area-tabs,
.currency-switcher {
  display: flex;
  gap: 6px;
  align-items: center;
}

.area-tab,
.currency-btn,
.head-btn,
.mini-action-btn,
.filter-chip {
  height: 38px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  gap: 6px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(0, 255, 157, 0.15);
  font-size: 11px;
  font-weight: 700;
  color: #b8c5d0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-family: var(--terminal-font);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.area-tab::before,
.currency-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(0, 255, 157, 0.1) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.area-tab:hover::before,
.currency-btn:hover::before {
  opacity: 1;
}

.area-tab,
.currency-btn {
  min-width: 28px;
  padding: 0 10px;
  font-size: 11px;
}

.area-tab:hover,
.currency-btn:hover,
.head-btn:hover,
.mini-action-btn:hover,
.filter-chip:hover {
  background: rgba(0, 255, 157, 0.15);
  border-color: rgba(0, 255, 157, 0.35);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 255, 157, 0.2);
}

.area-tab:active,
.currency-btn:active,
.head-btn:active,
.mini-action-btn:active,
.filter-chip:active {
  transform: scale(0.94);
}

/* ACTIVE STATE (TRADING STYLE) */
.area-tab.active,
.currency-btn.active,
.filter-chip.active,
.head-btn.active {
  background: linear-gradient(135deg, rgba(0, 255, 157, 0.2) 0%, rgba(0, 230, 195, 0.15) 100%);
  color: #00ff9d;
  font-weight: 800;
  box-shadow: 
    0 0 20px rgba(0, 255, 157, 0.3),
    inset 0 0 16px rgba(0, 255, 157, 0.1);
  border-color: rgba(0, 255, 157, 0.5);
  text-shadow: 0 0 12px rgba(0, 255, 157, 0.6);
}

.area-tab:not(.active),
.currency-btn:not(.active) {
  border-color: var(--neon-soft);
  color: rgba(255,255,255,0.7);
}


.head-btn,
.mini-action-btn {
  padding: 0 14px;
  font-size: 12px;
  min-width: auto;
}

.settings-btn {
  min-width: 40px;
  font-size: 16px;
  padding: 0 12px;
}

.header-chip.settings-btn {
  min-width: 40px;
  font-size: 16px;
  padding: 0 12px;
  display: flex !important;
  visibility: visible !important;
}

/* =========================================================
   AREA LOADING OVERLAY - Premium Loading Animation
   ========================================================= */
.area-loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(ellipse at center, rgba(5, 11, 20, 0.98) 0%, rgba(0, 0, 0, 0.99) 100%);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 20000;
  backdrop-filter: blur(20px);
  animation: fadeIn 0.3s ease;
}

.area-loading-overlay.show {
  display: flex;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.loading-content {
  text-align: center;
  position: relative;
  z-index: 1;
}

.loading-spinner {
  position: relative;
  width: 120px;
  height: 120px;
  margin: 0 auto 40px;
}

.spinner-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 3px solid transparent;
  animation: spin 1.5s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

.spinner-ring:nth-child(1) {
  width: 120px;
  height: 120px;
  border-top-color: #00ff9d;
  border-right-color: rgba(0, 255, 157, 0.3);
  animation-delay: 0s;
}

.spinner-ring:nth-child(2) {
  width: 100px;
  height: 100px;
  border-top-color: #00e6c3;
  border-right-color: rgba(0, 230, 195, 0.3);
  animation-delay: 0.15s;
  animation-direction: reverse;
}

.spinner-ring:nth-child(3) {
  width: 80px;
  height: 80px;
  border-top-color: #00ffd0;
  border-right-color: rgba(0, 255, 208, 0.3);
  animation-delay: 0.3s;
}

.spinner-ring:nth-child(4) {
  width: 60px;
  height: 60px;
  border-top-color: #00ff88;
  border-right-color: rgba(0, 255, 136, 0.3);
  animation-delay: 0.45s;
  animation-direction: reverse;
}

@keyframes spin {
  0% { transform: translate(-50%, -50%) rotate(0deg); }
  100% { transform: translate(-50%, -50%) rotate(360deg); }
}

.loading-text {
  margin-bottom: 30px;
}

.loading-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #b8c5d0;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.loading-area {
  display: block;
  font-size: 48px;
  font-weight: 800;
  color: #00ff9d;
  letter-spacing: 8px;
  text-transform: uppercase;
  text-shadow: 
    0 0 20px rgba(0, 255, 157, 0.5),
    0 0 40px rgba(0, 255, 157, 0.3),
    0 0 60px rgba(0, 255, 157, 0.2);
  animation: pulseText 1.5s ease-in-out infinite;
}

@keyframes pulseText {
  0%, 100% { 
    opacity: 1; 
    transform: scale(1);
  }
  50% { 
    opacity: 0.7; 
    transform: scale(0.95);
  }
}

.loading-progress {
  max-width: 300px;
  margin: 0 auto;
}

.progress-bar {
  width: 100%;
  height: 4px;
  background: rgba(0, 255, 157, 0.1);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 12px;
  position: relative;
}

.progress-bar::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(0, 255, 157, 0.3), transparent);
  animation: progressShimmer 1.5s ease-in-out infinite;
}

@keyframes progressShimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #00ff9d, #00e6c3, #00ff88);
  border-radius: 2px;
  width: 0%;
  transition: width 0.1s linear;
  box-shadow: 0 0 10px rgba(0, 255, 157, 0.5);
}

.progress-text {
  font-size: 12px;
  font-weight: 700;
  color: #00ff9d;
  letter-spacing: 2px;
  font-family: var(--terminal-font);
}

/* =========================================================
   PREMIUM SETTINGS PANEL - Dark Cyber Dashboard
   ========================================================= */
.settings-tool {
  position: relative;
  display: flex !important;
  align-items: center;
  visibility: visible !important;
}

/* Ensure settings button is clickable */
.settings-btn {
  cursor: pointer;
  pointer-events: auto;
}

/* Premium Settings Panel */
.premium-settings-panel,
#settingsDropdown {
  position: fixed !important;
  inset: 0 !important;
  width: 100%;
  height: 100vh;
  display: none;
  z-index: 99999 !important;
  background: 
    radial-gradient(ellipse at top right, rgba(0, 255, 157, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at bottom left, rgba(30, 144, 255, 0.05) 0%, transparent 50%),
    linear-gradient(135deg, rgba(5, 11, 20, 0.98) 0%, rgba(10, 26, 47, 0.96) 100%);
  backdrop-filter: blur(30px);
  animation: slideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 
    inset 0 0 100px rgba(0, 255, 157, 0.02),
    0 0 60px rgba(0, 0, 0, 0.8);
}

.premium-settings-panel::before,
#settingsDropdown::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    linear-gradient(45deg, transparent 48%, rgba(0, 255, 157, 0.03) 50%, transparent 52%);
  background-size: 60px 60px;
  animation: gridMove 20s linear infinite;
  pointer-events: none;
  opacity: 0.5;
}

@keyframes gridMove {
  0% { background-position: 0 0; }
  100% { background-position: 60px 60px; }
}

.premium-settings-panel.show,
#settingsDropdown.show {
  display: flex !important;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Settings Sidebar */
.settings-sidebar {
  width: 280px;
  min-width: 280px;
  background: 
    linear-gradient(180deg, rgba(10, 26, 47, 0.8) 0%, rgba(5, 11, 20, 0.9) 100%);
  border-right: 1px solid rgba(0, 255, 157, 0.15);
  display: flex;
  flex-direction: column;
  padding: 24px 0;
  backdrop-filter: blur(20px);
  box-shadow: 
    inset 0 0 60px rgba(0, 255, 157, 0.02),
    4px 0 24px rgba(0, 0, 0, 0.4);
  position: relative;
  overflow: hidden;
}

.settings-sidebar::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(0, 255, 157, 0.5), transparent);
  animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 1; }
}

.sidebar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 24px 24px;
  border-bottom: 1px solid rgba(0, 255, 157, 0.12);
  margin-bottom: 24px;
  position: relative;
}

.sidebar-header::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 255, 157, 0.4), transparent);
}

.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-icon {
  font-size: 28px;
  filter: drop-shadow(0 0 12px rgba(0, 255, 157, 0.6));
  animation: logoGlow 2s ease-in-out infinite alternate;
}

@keyframes logoGlow {
  from { filter: drop-shadow(0 0 8px rgba(0, 255, 157, 0.4)); }
  to { filter: drop-shadow(0 0 16px rgba(0, 255, 157, 0.8)); }
}

.logo-text {
  font-size: 15px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 2px;
  text-transform: uppercase;
  background: linear-gradient(135deg, #ffffff 0%, #00ff9d 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.sidebar-close {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid rgba(255, 77, 79, 0.25);
  background: rgba(255, 77, 79, 0.08);
  color: #ff4d4f;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.sidebar-close::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(255, 77, 79, 0.3) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.sidebar-close:hover {
  background: rgba(255, 77, 79, 0.15);
  border-color: rgba(255, 77, 79, 0.5);
  box-shadow: 0 0 20px rgba(255, 77, 79, 0.4);
  transform: scale(1.05);
}

.sidebar-close:hover::before {
  opacity: 1;
}

.sidebar-nav {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 0 16px;
  overflow-y: auto;
}

.sidebar-nav::-webkit-scrollbar {
  width: 4px;
}

.sidebar-nav::-webkit-scrollbar-track {
  background: rgba(0, 255, 157, 0.05);
  border-radius: 2px;
}

.sidebar-nav::-webkit-scrollbar-thumb {
  background: rgba(0, 255, 157, 0.2);
  border-radius: 2px;
}

.sidebar-nav::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 255, 157, 0.4);
}

.sidebar-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border-radius: 12px;
  color: #b8c5d0;
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid transparent;
  position: relative;
  overflow: hidden;
}

.sidebar-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, #00ff9d, #00e6c3);
  transform: scaleY(0);
  transition: transform 0.3s ease;
  border-radius: 0 2px 2px 0;
}

.sidebar-item:hover {
  background: rgba(0, 255, 157, 0.1);
  color: #ffffff;
  border-color: rgba(0, 255, 157, 0.2);
  transform: translateX(6px);
  box-shadow: 0 4px 20px rgba(0, 255, 157, 0.1);
}

.sidebar-item:hover::before {
  transform: scaleY(1);
}

.sidebar-item.active {
  background: linear-gradient(135deg, rgba(0, 255, 157, 0.15) 0%, rgba(0, 230, 195, 0.1) 100%);
  color: #00ff9d;
  border-color: rgba(0, 255, 157, 0.35);
  box-shadow: 
    0 0 24px rgba(0, 255, 157, 0.2),
    inset 0 0 20px rgba(0, 255, 157, 0.05);
}

.sidebar-item.active::before {
  transform: scaleY(1);
}

.sidebar-icon {
  font-size: 18px;
  width: 24px;
  text-align: center;
  filter: drop-shadow(0 0 4px rgba(0, 255, 157, 0.3));
  transition: filter 0.3s ease;
}

.sidebar-item:hover .sidebar-icon {
  filter: drop-shadow(0 0 8px rgba(0, 255, 157, 0.6));
}

.sidebar-text {
  flex: 1;
  font-weight: 600;
  letter-spacing: 0.3px;
}

.sidebar-footer {
  padding: 20px 12px 0;
  border-top: 1px solid rgba(0, 255, 157, 0.08);
  margin-top: auto;
}

.sidebar-item.logout-item {
  color: #ff4d4f;
}

.sidebar-item.logout-item:hover {
  background: rgba(255, 77, 79, 0.1);
  color: #ff4d4f;
  border-color: rgba(255, 77, 79, 0.3);
  box-shadow: 0 0 12px rgba(255, 77, 79, 0.2);
}

/* Settings Content Area */
.settings-content {
  flex: 1;
  padding: 48px;
  overflow-y: auto;
  background: 
    radial-gradient(ellipse at top right, rgba(0, 255, 157, 0.04) 0%, transparent 40%),
    radial-gradient(ellipse at bottom left, rgba(30, 144, 255, 0.03) 0%, transparent 40%);
  position: relative;
}

.settings-content::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    linear-gradient(90deg, transparent 49.5%, rgba(0, 255, 157, 0.02) 50%, transparent 50.5%),
    linear-gradient(0deg, transparent 49.5%, rgba(0, 255, 157, 0.02) 50%, transparent 50.5%);
  background-size: 80px 80px;
  pointer-events: none;
  opacity: 0.4;
}

.settings-content::-webkit-scrollbar {
  width: 8px;
}

.settings-content::-webkit-scrollbar-track {
  background: rgba(0, 255, 157, 0.05);
  border-radius: 4px;
}

.settings-content::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(0, 255, 157, 0.3), rgba(0, 230, 195, 0.3));
  border-radius: 4px;
}

.settings-content::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, rgba(0, 255, 157, 0.5), rgba(0, 230, 195, 0.5));
}

.settings-header {
  margin-bottom: 40px;
  position: relative;
  z-index: 1;
}

.settings-title {
  font-size: 32px;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 12px 0;
  letter-spacing: -1px;
  background: linear-gradient(135deg, #ffffff 0%, #00ff9d 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 0 40px rgba(0, 255, 157, 0.3);
}

.settings-subtitle {
  font-size: 15px;
  color: #b8c5d0;
  margin: 0;
  opacity: 0.9;
  font-weight: 400;
  letter-spacing: 0.3px;
}

/* Settings Grid */
.settings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 24px;
  max-width: 1200px;
  position: relative;
  z-index: 1;
}

/* Settings Cards */
.settings-card {
  background: 
    linear-gradient(135deg, rgba(10, 26, 47, 0.7) 0%, rgba(5, 11, 20, 0.8) 100%);
  border: 1px solid rgba(0, 255, 157, 0.12);
  border-radius: 20px;
  padding: 28px;
  backdrop-filter: blur(20px);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  box-shadow: 
    0 4px 24px rgba(0, 0, 0, 0.3),
    inset 0 0 40px rgba(0, 255, 157, 0.02);
}

.settings-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(0, 255, 157, 0.4), transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.settings-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(0, 255, 157, 0.08) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.settings-card:hover {
  transform: translateY(-6px) scale(1.01);
  border-color: rgba(0, 255, 157, 0.3);
  box-shadow: 
    0 16px 48px rgba(0, 0, 0, 0.5),
    0 0 32px rgba(0, 255, 157, 0.12),
    inset 0 0 60px rgba(0, 255, 157, 0.04);
}

.settings-card:hover::before {
  opacity: 1;
}

.settings-card:hover::after {
  opacity: 1;
}

.card-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
  position: relative;
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(0, 255, 157, 0.15) 0%, rgba(0, 230, 195, 0.1) 100%);
  border: 1px solid rgba(0, 255, 157, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  filter: drop-shadow(0 0 12px rgba(0, 255, 157, 0.4));
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.card-icon::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(0, 255, 157, 0.3) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.settings-card:hover .card-icon {
  transform: scale(1.1);
  filter: drop-shadow(0 0 20px rgba(0, 255, 157, 0.6));
}

.settings-card:hover .card-icon::before {
  opacity: 1;
}

.card-title {
  font-size: 17px;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
  flex: 1;
  letter-spacing: 0.3px;
  text-shadow: 0 0 20px rgba(0, 255, 157, 0.2);
}

.card-body {
  padding: 0;
}

/* Currency Toggle */
.currency-toggle {
  display: flex;
  gap: 10px;
  background: rgba(0, 0, 0, 0.4);
  padding: 6px;
  border-radius: 14px;
  border: 1px solid rgba(0, 255, 157, 0.15);
  position: relative;
  overflow: hidden;
}

.currency-toggle::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0, 255, 157, 0.05) 0%, transparent 50%);
  pointer-events: none;
}

.currency-toggle-btn {
  flex: 1;
  padding: 14px 20px;
  border-radius: 12px;
  border: none;
  background: transparent;
  color: #b8c5d0;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-family: var(--terminal-font);
  position: relative;
  z-index: 1;
  letter-spacing: 1px;
}

.currency-toggle-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-2px);
}

.currency-toggle-btn.active {
  background: linear-gradient(135deg, rgba(0, 255, 157, 0.2) 0%, rgba(0, 230, 195, 0.15) 100%);
  color: #00ff9d;
  border: 1px solid rgba(0, 255, 157, 0.4);
  box-shadow: 
    0 0 24px rgba(0, 255, 157, 0.3),
    inset 0 0 20px rgba(0, 255, 157, 0.1);
  transform: translateY(-2px) scale(1.02);
  text-shadow: 0 0 12px rgba(0, 255, 157, 0.6);
}

/* Theme Selector */
.theme-selector {
  display: flex;
  gap: 12px;
}

.theme-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 20px 16px;
  border-radius: 16px;
  border: 1px solid rgba(0, 255, 157, 0.12);
  background: rgba(0, 0, 0, 0.4);
  color: #b8c5d0;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.theme-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(0, 255, 157, 0.1) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.theme-btn:hover {
  border-color: rgba(0, 255, 157, 0.3);
  background: rgba(0, 255, 157, 0.08);
  color: #ffffff;
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 255, 157, 0.15);
}

.theme-btn:hover::before {
  opacity: 1;
}

.theme-btn.active {
  background: linear-gradient(135deg, rgba(0, 255, 157, 0.15) 0%, rgba(0, 230, 195, 0.1) 100%);
  border-color: rgba(0, 255, 157, 0.5);
  color: #00ff9d;
  box-shadow: 
    0 0 32px rgba(0, 255, 157, 0.25),
    inset 0 0 24px rgba(0, 255, 157, 0.1);
  transform: translateY(-4px) scale(1.03);
}

.theme-btn.active::before {
  opacity: 1;
}

.theme-icon {
  font-size: 24px;
  filter: drop-shadow(0 0 8px rgba(0, 255, 157, 0.3));
  transition: filter 0.3s ease;
}

.theme-btn:hover .theme-icon {
  filter: drop-shadow(0 0 16px rgba(0, 255, 157, 0.6));
}

.theme-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-shadow: 0 0 8px rgba(0, 255, 157, 0.2);
}

/* Danger Card */
.danger-card {
  border-color: rgba(255, 77, 79, 0.2);
  background: linear-gradient(135deg, rgba(255, 77, 79, 0.08) 0%, rgba(5, 11, 20, 0.8) 100%);
}

.danger-card:hover {
  border-color: rgba(255, 77, 79, 0.4);
  box-shadow: 
    0 16px 48px rgba(0, 0, 0, 0.5),
    0 0 32px rgba(255, 77, 79, 0.15),
    inset 0 0 60px rgba(255, 77, 79, 0.05);
}

.danger-card::before {
  background: linear-gradient(90deg, transparent, rgba(255, 77, 79, 0.4), transparent);
}

.danger-icon {
  background: linear-gradient(135deg, rgba(255, 77, 79, 0.15) 0%, rgba(255, 77, 79, 0.1) 100%);
  border-color: rgba(255, 77, 79, 0.35);
  filter: drop-shadow(0 0 12px rgba(255, 77, 79, 0.4));
}

/* Action Buttons */
.action-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.action-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 24px;
  border-radius: 12px;
  border: none;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-family: var(--terminal-font);
  position: relative;
  overflow: hidden;
  letter-spacing: 0.5px;
}

.action-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.action-btn:hover {
  transform: translateY(-3px) scale(1.02);
}

.action-btn:hover::before {
  opacity: 1;
}

.btn-icon {
  font-size: 18px;
  filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.3));
}

.btn-text {
  flex: 1;
  text-align: left;
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.2);
}

.danger-btn {
  background: linear-gradient(135deg, rgba(255, 77, 79, 0.15) 0%, rgba(255, 77, 79, 0.1) 100%);
  border: 1px solid rgba(255, 77, 79, 0.35);
  color: #ff4d4f;
  box-shadow: 0 0 20px rgba(255, 77, 79, 0.15);
}

.danger-btn:hover {
  background: linear-gradient(135deg, rgba(255, 77, 79, 0.25) 0%, rgba(255, 77, 79, 0.15) 100%);
  border-color: rgba(255, 77, 79, 0.6);
  box-shadow: 0 0 32px rgba(255, 77, 79, 0.4);
  text-shadow: 0 0 12px rgba(255, 77, 79, 0.6);
}

.secondary-btn {
  background: linear-gradient(135deg, rgba(0, 255, 157, 0.15) 0%, rgba(0, 230, 195, 0.1) 100%);
  border: 1px solid rgba(0, 255, 157, 0.3);
  color: #00ff9d;
  box-shadow: 0 0 20px rgba(0, 255, 157, 0.15);
}

.secondary-btn:hover {
  background: linear-gradient(135deg, rgba(0, 255, 157, 0.25) 0%, rgba(0, 230, 195, 0.15) 100%);
  border-color: rgba(0, 255, 157, 0.5);
  box-shadow: 0 0 32px rgba(0, 255, 157, 0.3);
  text-shadow: 0 0 12px rgba(0, 255, 157, 0.6);
}

/* Credentials Card */
.credentials-card {
  border-color: rgba(30, 144, 255, 0.2);
  background: linear-gradient(135deg, rgba(30, 144, 255, 0.08) 0%, rgba(5, 11, 20, 0.8) 100%);
}

.credentials-card:hover {
  border-color: rgba(30, 144, 255, 0.4);
  box-shadow: 
    0 16px 48px rgba(0, 0, 0, 0.5),
    0 0 32px rgba(30, 144, 255, 0.15),
    inset 0 0 60px rgba(30, 144, 255, 0.05);
}

.credentials-card::before {
  background: linear-gradient(90deg, transparent, rgba(30, 144, 255, 0.4), transparent);
}

.credential-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(0, 255, 157, 0.08);
}

.credential-item:last-child {
  border-bottom: none;
}

.credential-label {
  font-size: 11px;
  font-weight: 600;
  color: #b8c5d0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.credential-value {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.credential-value span {
  font-size: 14px;
  font-weight: 600;
  color: #ffffff;
  font-family: var(--terminal-font);
}

.copy-btn {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid rgba(0, 255, 157, 0.2);
  background: rgba(0, 255, 157, 0.1);
  color: #00ff9d;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.copy-btn:hover {
  background: rgba(0, 255, 157, 0.2);
  border-color: rgba(0, 255, 157, 0.4);
  box-shadow: 0 0 12px rgba(0, 255, 157, 0.3);
  transform: scale(1.05);
}

.credential-note {
  margin-top: 16px;
  padding: 10px 12px;
  background: rgba(0, 255, 157, 0.05);
  border-radius: 8px;
  border: 1px solid rgba(0, 255, 157, 0.1);
  font-size: 11px;
  color: #b8c5d0;
  text-align: center;
}

/* Support Card */
.support-card {
  border-color: rgba(147, 112, 219, 0.2);
  background: linear-gradient(135deg, rgba(147, 112, 219, 0.08) 0%, rgba(5, 11, 20, 0.8) 100%);
}

.support-card:hover {
  border-color: rgba(147, 112, 219, 0.4);
  box-shadow: 
    0 16px 48px rgba(0, 0, 0, 0.5),
    0 0 32px rgba(147, 112, 219, 0.15),
    inset 0 0 60px rgba(147, 112, 219, 0.05);
}

.support-card::before {
  background: linear-gradient(90deg, transparent, rgba(147, 112, 219, 0.4), transparent);
}

.support-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.support-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 10px;
  border: 1px solid rgba(0, 255, 157, 0.1);
  background: rgba(0, 0, 0, 0.2);
  color: #b8c5d0;
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  transition: all 0.2s ease;
}

.support-link:hover {
  border-color: rgba(0, 255, 157, 0.25);
  background: rgba(0, 255, 157, 0.08);
  color: #ffffff;
  transform: translateX(4px);
}

.support-icon {
  font-size: 16px;
  width: 20px;
  text-align: center;
}

.support-text {
  flex: 1;
}

.support-arrow {
  font-size: 14px;
  color: #00ff9d;
  opacity: 0.6;
  transition: opacity 0.2s ease;
}

.support-link:hover .support-arrow {
  opacity: 1;
}

.support-note {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  background: rgba(255, 170, 0, 0.08);
  border-radius: 8px;
  border: 1px solid rgba(255, 170, 0, 0.15);
  font-size: 11px;
  color: #ffd166;
  margin: 8px 0;
}

.note-icon {
  font-size: 14px;
}

.note-text {
  flex: 1;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .settings-sidebar {
    width: 220px;
    min-width: 220px;
  }
  
  .settings-content {
    padding: 32px 24px;
  }
  
  .settings-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .premium-settings-panel {
    flex-direction: column;
  }
  
  .settings-sidebar {
    width: 100%;
    min-width: 100%;
    height: auto;
    max-height: 200px;
    border-right: none;
    border-bottom: 1px solid rgba(0, 255, 157, 0.1);
    padding: 16px 0;
  }

  .settings-content {
    padding: 24px 16px;
  }

  .settings-grid {
    grid-template-columns: 1fr;
  }

  .sidebar-header {
    padding: 0 16px 12px;
    margin-bottom: 12px;
  }
  
  .sidebar-nav {
    flex-direction: row;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 0 8px;
    gap: 8px;
  }
  
  .sidebar-item {
    min-width: max-content;
    padding: 10px 14px;
    font-size: 12px;
  }
  
  .sidebar-footer {
    display: none;
  }
  
  .settings-content {
    padding: 24px 16px;
  }
  
  .settings-title {
    font-size: 24px;
  }
  
  .settings-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .settings-card {
    padding: 20px;
  }
  
  .theme-selector {
    flex-direction: column;
  }
  
  .theme-btn {
    flex-direction: row;
    justify-content: center;
    padding: 12px 16px;
  }
}

@media (max-width: 480px) {
  .settings-content {
    padding: 20px 12px;
  }
  
  .settings-title {
    font-size: 20px;
  }
  
  .settings-subtitle {
    font-size: 13px;
  }
  
  .settings-card {
    padding: 16px;
  }
  
  .card-header {
    gap: 10px;
  }
  
  .card-icon {
    width: 36px;
    height: 36px;
    font-size: 16px;
  }
  
  .card-title {
    font-size: 14px;
  }
  
  .currency-toggle-btn {
    padding: 10px 12px;
    font-size: 13px;
  }
  
  .action-btn {
    padding: 12px 16px;
    font-size: 13px;
  }
  
  .support-link {
    padding: 10px 12px;
    font-size: 12px;
  }
}

.settings-menu-item:hover,
.currency-option:hover {
  border-color: var(--neon);
}

.settings-menu-item:active,
.currency-option:active {
  transform: scale(0.94);
}

.admin-btn {
  min-width: 40px;
  font-size: 12px;
  border-color: rgba(255, 100, 100, 0.4);
  background: var(--bg-panel);
  color: #ff6666;
  padding: 0 14px;
  font-weight: 600;
}

.admin-users-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.admin-users-table th,
.admin-users-table td {
  padding: 8px 6px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.admin-users-table th {
  background: rgba(255,255,255,0.05);
  font-weight: bold;
  color: var(--text-dim);
}

.admin-users-table tr:hover {
  background: rgba(255,255,255,0.03);
}

.role-badge {
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 10px;
  font-weight: bold;
}

.role-badge.admin-role {
  background: rgba(255, 100, 100, 0.15);
  color: var(--red);
  border: 1px solid rgba(255, 100, 100, 0.4);
}

.role-badge.agent-role {
  background: rgba(0, 255, 65, 0.15);
  color: var(--green);
  border: 1px solid rgba(0, 255, 65, 0.4);
}

/* =========================================================
   PREMIUM ADMIN PANEL STYLES
   ========================================================= */

.admin-header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0 10px;
}

.admin-header-stats {
  display: flex;
  gap: 12px;
}

.stat-badge {
  background: rgba(255, 255, 255, 0.15);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  color: #ffffff;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Quick Actions Bar */
.admin-quick-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px;
  background: rgba(102, 126, 234, 0.1);
  border-bottom: 1px solid rgba(102, 126, 234, 0.2);
  flex-wrap: wrap;
}

.action-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border: none;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  color: #ffffff;
}

.action-btn.primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.action-btn.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
}

.action-btn.success {
  background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
}

.action-btn.success:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(56, 239, 125, 0.4);
}

.action-btn.info {
  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.action-btn.info:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(79, 172, 254, 0.4);
}

.action-btn.warning {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.action-btn.warning:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(245, 87, 108, 0.4);
}

.btn-icon {
  font-size: 16px;
}

.btn-label {
  font-size: 13px;
}

.search-box {
  flex: 1;
  min-width: 200px;
}

.search-box input {
  width: 100%;
  padding: 10px 16px;
  border: 1px solid rgba(102, 126, 234, 0.3);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.3);
  color: #ffffff;
  font-size: 13px;
  transition: all 0.3s ease;
}

.search-box input:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
}

.search-box input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

/* Dashboard Grid */
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  padding: 20px;
}

/* System Intelligence Panel */
.system-intelligence-panel {
  background: linear-gradient(135deg, rgba(0, 255, 208, 0.05) 0%, rgba(102, 126, 234, 0.05) 100%);
  border: 1px solid rgba(0, 255, 208, 0.2);
  border-radius: 12px;
  padding: 16px 20px;
  margin: 16px 20px 0;
}

.intelligence-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.intelligence-title {
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.5px;
}

.intelligence-subtitle {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.3px;
}

.intelligence-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
}

.intelligence-item {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.intelligence-label {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.intelligence-value {
  font-size: 18px;
  font-weight: 700;
  color: #ffffff;
}

.intelligence-value.warning {
  color: #ffffff;
}

.intelligence-value.info {
  color: #ffffff;
}

/* Revenue Driver Banner */
.revenue-driver-banner {
  background: linear-gradient(90deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
  border-left: 3px solid #667eea;
  padding: 12px 20px;
  margin: 16px 20px 0;
  display: flex;
  align-items: center;
  gap: 12px;
}

.revenue-icon {
  font-size: 16px;
}

.revenue-text {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 500;
  letter-spacing: 0.2px;
}

/* Smart Alerts */
.smart-alerts-container {
  margin: 16px 20px 0;
}

.smart-alert {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  padding: 10px 16px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  color: #ffffff;
}

.smart-alert.success {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

.smart-alert.info {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

/* User Stage Tags */
.user-stage-tag {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

/* User Type Toggles */
.user-type-toggles {
  display: flex;
  gap: 12px;
  align-items: center;
}

.toggle-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  user-select: none;
}

.toggle-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: #00ffd0;
  cursor: pointer;
}

.toggle-text {
  font-size: 12px;
  color: #ffffff;
  font-weight: 500;
}

/* View Mode Indicator */
.view-mode-indicator {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 500;
  padding: 4px 12px;
  background: rgba(102, 126, 234, 0.1);
  border-radius: 12px;
  border: 1px solid rgba(102, 126, 234, 0.2);
}

.guest-hint {
  font-size: 11px;
  color: #ffb84d;
  padding: 4px 12px;
  background: rgba(255, 184, 77, 0.1);
  border-radius: 12px;
  border: 1px solid rgba(255, 184, 77, 0.2);
}

.low-value-hint {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.6);
  padding: 4px 12px;
  background: rgba(102, 126, 234, 0.1);
  border-radius: 12px;
  border: 1px solid rgba(102, 126, 234, 0.2);
}

/* Value Badges */
.value-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.value-badge.high-value {
  background: rgba(255, 184, 77, 0.15);
  color: #ffb84d;
  border: 1px solid rgba(255, 184, 77, 0.3);
}

.value-badge.needs-attention {
  background: rgba(102, 126, 234, 0.15);
  color: #667eea;
  border: 1px solid rgba(102, 126, 234, 0.3);
}

.value-badge.inactive {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.stat-card {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
  border: 1px solid rgba(102, 126, 234, 0.2);
  border-radius: 12px;
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(102, 126, 234, 0.3);
  border-color: rgba(102, 126, 234, 0.4);
}

.stat-icon {
  font-size: 32px;
  opacity: 0.8;
}

.stat-info {
  flex: 1;
}

.stat-value {
  font-size: 24px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Table Container */
.admin-table-container {
  padding: 0 20px 20px 20px;
}

.table-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding: 16px;
  background: rgba(102, 126, 234, 0.05);
  border-radius: 8px;
  border: 1px solid rgba(102, 126, 234, 0.1);
}

.table-header h3 {
  margin: 0;
  font-size: 16px;
  color: #ffffff;
  font-weight: 600;
}

.table-filters {
  display: flex;
  gap: 8px;
}

.table-filters select {
  padding: 8px 12px;
  border: 1px solid rgba(102, 126, 234, 0.3);
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.3);
  color: #ffffff;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.table-filters select:focus {
  outline: none;
  border-color: #667eea;
}

.table-filters select option {
  background: #0a0e27;
  color: #ffffff;
}

/* Premium Table */
.admin-users-table.premium {
  background: rgba(0, 0, 0, 0.3);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(102, 126, 234, 0.2);
}

.admin-users-table.premium thead {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.2) 0%, rgba(118, 75, 162, 0.2) 100%);
}

.admin-users-table.premium th {
  padding: 16px 12px;
  font-size: 12px;
  font-weight: 600;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 2px solid rgba(102, 126, 234, 0.3);
}

.admin-users-table.premium td {
  padding: 14px 12px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid rgba(102, 126, 234, 0.1);
}

.admin-users-table.premium tr:hover {
  background: rgba(102, 126, 234, 0.1);
}

.admin-users-table.premium tr:hover td {
  color: #ffffff;
}

/* User Cell */
.user-cell {
  display: flex;
  align-items: center;
  gap: 12px;
}

.user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
}

.user-info {
  display: flex;
  flex-direction: column;
}

.user-email {
  font-size: 13px;
  font-weight: 600;
  color: #ffffff;
}

.user-id {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.5);
}

/* Plan Badges */
.plan-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.plan-badge.free {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.plan-badge.pro {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #ffffff;
  border: none;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.plan-badge.admin {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  color: #ffffff;
  border: none;
  box-shadow: 0 4px 12px rgba(245, 87, 108, 0.4);
}

/* Status Badges */
.status-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
}

.status-badge.active {
  background: rgba(56, 239, 125, 0.15);
  color: #38ef7d;
  border: 1px solid rgba(56, 239, 125, 0.3);
}

.status-badge.blocked {
  background: rgba(245, 87, 108, 0.15);
  color: #f5576c;
  border: 1px solid rgba(245, 87, 108, 0.3);
}

/* Session Indicator */
.session-indicator {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
}

.session-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #38ef7d;
  animation: pulse 2s infinite;
}

.session-dot.inactive {
  background: rgba(255, 255, 255, 0.3);
  animation: none;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

/* Action Buttons */
.admin-action-btn {
  padding: 6px 12px;
  border: none;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-right: 4px;
}

.admin-action-btn.edit {
  background: rgba(79, 172, 254, 0.2);
  color: #4facfe;
  border: 1px solid rgba(79, 172, 254, 0.3);
}

.admin-action-btn.edit:hover {
  background: rgba(79, 172, 254, 0.3);
  transform: translateY(-1px);
}

.admin-action-btn.block {
  background: rgba(245, 87, 108, 0.2);
  color: #f5576c;
  border: 1px solid rgba(245, 87, 108, 0.3);
}

.admin-action-btn.block:hover {
  background: rgba(245, 87, 108, 0.3);
  transform: translateY(-1px);
}

.admin-action-btn.delete {
  background: rgba(255, 100, 100, 0.2);
  color: #ff6464;
  border: 1px solid rgba(255, 100, 100, 0.3);
}

.admin-action-btn.delete:hover {
  background: rgba(255, 100, 100, 0.3);
  transform: translateY(-1px);
}

/* Loading Spinner */
.loading-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(102, 126, 234, 0.2);
  border-top-color: #667eea;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 16px;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.plan-badge {
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 10px;
  font-weight: bold;
}

.plan-badge.plan-free {
  background: rgba(150, 150, 150, 0.15);
  color: #999;
  border: 1px solid rgba(150, 150, 150, 0.4);
}

.plan-badge.plan-pro {
  background: rgba(255, 215, 0, 0.15);
  color: #ffd700;
  border: 1px solid rgba(255, 215, 0, 0.4);
}

.plan-badge.plan-expired {
  background: rgba(239, 68, 68, 0.12);
  color: #EF4444;
  border: 1px solid rgba(239, 68, 68, 0.25);
}

/* Premium SaaS plan badge styles in headbar */
.headbar .plan-badge {
  padding: 3px 8px;
  border-radius: 5px;
  font-size: 10px;
  font-weight: 600;
  color: #fff;
  flex-shrink: 0;
}

.headbar .plan-badge.plan-pro {
  background: rgba(99, 102, 241, 0.15);
  color: #818CF8;
  border: 1px solid rgba(99, 102, 241, 0.25);
}

.headbar .plan-badge.plan-upgrade {
  background: rgba(34, 197, 94, 0.12);
  color: #22C55E;
  border: 1px solid rgba(34, 197, 94, 0.25);
}

.headbar .plan-badge.plan-expired {
  background: rgba(239, 68, 68, 0.12);
  color: #EF4444;
  border: 1px solid rgba(239, 68, 68, 0.25);
}

.headbar .plan-badge.plan-blocked {
  background: rgba(239, 68, 68, 0.12);
  color: #EF4444;
  border: 1px solid rgba(239, 68, 68, 0.25);
}

.headbar .plan-badge.plan-restricted {
  background: rgba(251, 191, 36, 0.12);
  color: #FBBF24;
  border: 1px solid rgba(251, 191, 36, 0.25);
}

/* Header plan badge styles */
#planBadge.plan-badge-free {
  background: rgba(150, 150, 150, 0.4);
  color: #ffffff;
  border: 1px solid rgba(200, 200, 200, 0.8);
  padding: 4px 10px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: bold;
  box-shadow: 0 0 8px rgba(200, 200, 200, 0.3);
}

#planBadge.plan-badge-pro {
  background: rgba(0, 255, 65, 0.4);
  color: #00ff88;
  border: 1px solid rgba(0, 255, 65, 0.8);
  padding: 4px 10px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: bold;
  box-shadow: 0 0 8px rgba(0, 255, 65, 0.4);
}

#planBadge.plan-badge-admin {
  background: rgba(255, 215, 0, 0.4);
  color: #ffd700;
  border: 1px solid rgba(255, 215, 0, 0.8);
  padding: 4px 10px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: bold;
  box-shadow: 0 0 8px rgba(255, 215, 0, 0.4);
}

#planBadge.plan-badge-expired {
  background: rgba(255, 100, 100, 0.4);
  color: #ff6666;
  border: 1px solid rgba(255, 100, 100, 0.8);
  padding: 4px 10px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: bold;
  box-shadow: 0 0 8px rgba(255, 100, 100, 0.4);
}

/* Plan badge upgrade/pro styles */
.plan-badge {
  padding: 6px 12px;
  border-radius: 10px;
  border: 1px solid var(--primary);
  font-size: 12px;
  cursor: pointer;
}

.plan-upgrade {
  color: var(--cta-primary);
  border-color: var(--cta-primary);
  cursor: pointer;
}

.plan-upgrade:hover {
  opacity: 0.8;
}

.plan-pro {
  color: var(--primary);
  border-color: var(--primary);
}

.plan-blocked {
  color: #ff4444;
  border-color: #ff4444;
  background: rgba(255, 68, 68, 0.1);
}

.plan-restricted {
  color: #ff9800;
  border-color: #ff9800;
  background: rgba(255, 152, 0, 0.1);
}

.status-badge {
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 10px;
  font-weight: bold;
}

.status-badge.active {
  background: rgba(0, 255, 65, 0.15);
  color: var(--green);
  border: 1px solid rgba(0, 255, 65, 0.4);
}

.status-badge.blocked {
  background: rgba(255, 100, 100, 0.15);
  color: var(--red);
  border: 1px solid rgba(255, 100, 100, 0.4);
}

.admin-action-btn {
  padding: 4px 8px;
  font-size: 10px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.05);
  color: var(--text);
  border-radius: 6px;
  cursor: pointer;
  margin-right: 4px;
  transition: all 0.15s ease;
}

.admin-action-btn:hover {
  background: rgba(0, 255, 65, 0.1);
  border-color: rgba(0, 255, 65, 0.4);
}

.admin-action-btn.delete:hover {
  background: rgba(255, 100, 100, 0.1);
  border-color: rgba(255, 100, 100, 0.4);
}

.admin-controls {
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.admin-refresh-btn {
  padding: 6px 12px;
  font-size: 11px;
  border: 1px solid var(--border);
  background: rgba(0, 255, 65, 0.1);
  color: var(--green);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.admin-refresh-btn:hover {
  background: rgba(0, 255, 65, 0.2);
  border-color: rgba(0, 255, 65, 0.4);
}

.settings-btn:hover {
  border-color: var(--green-soft);
  background: rgba(99,255,149,0.15);
  transform: rotate(15deg);
}

.more-menu {
  position: absolute;
  top: calc(100% - 2px);
  right: 14px;
  width: 170px;
  background: linear-gradient(180deg, var(--panel), var(--panel-2));
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 8px;
  display: none;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  z-index: 50;
}

.more-menu.show {
  display: grid;
}

.more-menu button {
  height: 34px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(255,255,255,0.03);
  color: var(--text);
  font-family: var(--terminal-font);
  cursor: pointer;
}

/* TERMINAL STAGE */
.terminal-stage {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 0;
  margin: 0;
  max-width: 100%;
  overflow-x: hidden;
  position: relative;
  z-index: 1;
}

.terminal-frame {
  position: relative;
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  background: var(--terminal-bg);
  border: 1px solid var(--neon-soft);
  border-radius: var(--radius);
  box-shadow: none;
  padding: 0;
  margin: 0;
  overflow: hidden;
  max-width: 100%;
  z-index: 1;
}

.terminal-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(0, 255, 136, 0.01) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 255, 136, 0.005) 1px, transparent 1px);
  background-size: 100% calc(1em * var(--terminal-line-height)), calc(100% / 82) 100%;
  pointer-events: none;
  opacity: 0.3;
  z-index: 1;
}

.terminal-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    transparent 50%,
    var(--scanline-color) 51%
  );
  background-size: 100% 4px;
  pointer-events: none;
  opacity: 0.3;
  z-index: 2;
}


.terminal-grid-info {
  position: absolute;
  top: 8px;
  right: 12px;
  display: none;
  gap: 10px;
  font-size: 10px;
  color: var(--text-dim);
  z-index: 2;
}

.terminal-wrapper {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  position: relative;
  z-index: 3;
}

/* TERMINAL BEHAVIOR (APPLE SMOOTH) */
.terminal {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  scroll-behavior: smooth;
  white-space: pre-wrap;
  max-width: 100%;
  word-break: break-word;
  font-family: var(--terminal-font);
  min-height: 0;
  font-size: var(--terminal-font-size);
  line-height: var(--terminal-line-height);
  color: var(--terminal-text);
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 255, 136, 0.3) transparent;
  padding: 8px 12px;
  user-select: text !important;
}


.terminal::-webkit-scrollbar {
  width: 10px;
}

.terminal::-webkit-scrollbar-thumb {
  background: rgba(0, 255, 136, 0.3);
  border-radius: 999px;
}

.terminal::-webkit-scrollbar-track {
  background: transparent;
}

.terminal a,
.terminal .clickable-segment,
.terminal .segment-link {
  color: var(--cyan);
  text-decoration: underline;
  cursor: pointer;
}

.terminal .terminal-line {
  line-height: 1.6;
  margin-bottom: 2px;
  user-select: text !important;
  word-wrap: break-word;
}

/* Prevent copying of hint lines for non-PRO/non-ADMIN users */
.terminal .hint-line {
  user-select: none !important;
  -webkit-user-select: none !important;
  -moz-user-select: none !important;
  -ms-user-select: none !important;
}

.terminal .ok-line {
  color: var(--terminal-text) !important;
}

.terminal .warn-line {
  color: var(--terminal-text) !important;
}

.terminal .error-line {
  color: var(--terminal-text) !important;
}

.terminal .info-line {
  color: var(--terminal-text) !important;
}

/* COMMAND FEEDBACK SYSTEM */
.success-text {
  color: var(--success);
  font-weight: bold;
  animation: fadeIn 0.15s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Enhanced output formatting classes */
.terminal .success-line {
  color: var(--success) !important;
  font-weight: bold;
  animation: fadeIn 0.15s ease;
}

/* Small reward message */
.terminal .reward-msg {
  color: var(--success) !important;
  font-size: 11px;
  font-weight: normal;
  opacity: 0.8;
  animation: fadeIn 0.15s ease;
}

.terminal .warn-line {
  color: var(--terminal-text) !important;
}

.terminal .error-line {
  color: var(--terminal-text) !important;
}

.terminal .system-line {
  color: var(--system-line) !important;
}

.terminal .pnr-header {
  color: var(--pnr-header) !important;
  font-weight: bold;
}

.terminal .flight-line {
  color: var(--flight-line) !important;
}

.terminal .passenger-line {
  color: var(--passenger-line) !important;
}

.terminal .contact-line {
  color: var(--contact-line) !important;
}

.terminal .ssr-line {
  color: var(--ssr-line) !important;
}

.terminal .pricing-line {
  color: var(--pricing-line) !important;
}

.terminal .ticketing-line {
  color: var(--ticketing-line) !important;
}

.terminal .invalid-command {
  color: var(--invalid-command) !important;
  animation: invalidPulse 0.5s ease-in-out;
}

@keyframes invalidPulse {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-2px); }
  75% { transform: translateX(2px); }
}

.terminal-input-row {
  flex-shrink: 0;
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 6px;
  z-index: 3;
  background: #000;
  padding: 8px 10px;
  border-top: 1px solid var(--neon-soft);
}

.terminal-prompt {
  color: var(--primary);
  font-size: var(--terminal-font-size);
  line-height: var(--terminal-line-height);
  flex: 0 0 auto;
  font-weight: bold;
}


.terminal-input-shell {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
}

.terminal-cmd-input {
  width: 100%;
  min-height: 42px;
  background: transparent;
  border: none;
  outline: none;
  color: var(--terminal-text);
  font-family: var(--terminal-font);
  font-size: var(--terminal-font-size);
  line-height: var(--terminal-line-height);
  caret-color: var(--primary);
  text-transform: uppercase;
  padding: 0 2px 0 0;
  box-shadow: none !important;
}

.mouse-cursor,
.mouse-select {
  position: absolute;
  pointer-events: none;
  z-index: 4;
  display: none;
}

.mouse-cursor {
  width: 10px;
  height: 18px;
  border: 1px solid rgba(0,255,204,0.6);
  background: rgba(0,255,204,0.08);
}

.mouse-select {
  border: 1px dashed rgba(30,144,255,0.5);
  background: rgba(30,144,255,0.08);
}

/* Demo Banner */
.demo-banner {
  display: flex;
  align-items: center;
  gap: 14px;

  height: 40px;
  padding: 0 16px;

  background: linear-gradient(90deg, #f0f8ff, #ffffff);

  border: 1px solid #0066cc;
  border-radius: 12px;

  box-shadow: 0 2px 8px rgba(0,0,0,0.1);

  font-size: 12px;
  font-weight: 600;
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 9999;
  flex-wrap: wrap;
  transition: all 0.3s ease;
}

.demo-urgency {
  display: flex;
  gap: 12px;
  font-size: 11px;
  color: var(--danger);
  font-weight: 700;
}

.demo-banner.hidden {
  display: none;
}

/* Minimize Button */
.demo-minimize-btn {
  background: transparent;
  border: 1px solid var(--primary);
  color: var(--primary);
  border-radius: 4px;
  padding: 2px 8px;
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-left: 8px;
}

.demo-minimize-btn:hover {
  background: rgba(0,255,204,0.1);
}

/* Minimized State */
.demo-banner.minimized {
  height: auto;
  padding: 4px 12px;
  gap: 8px;
}

.demo-banner.minimized .demo-upgrade-btn,
.demo-banner.minimized #hintBtn,
.demo-banner.minimized .hint-badge,
.demo-banner.minimized .demo-contact {
  display: none;
}

.demo-banner.minimized .demo-status {
  font-size: 10px;
}

.demo-banner.minimized .demo-minimize-btn {
  transform: rotate(180deg);
}

/* STATUS TEXT (LOW VISUAL NOISE) */
.demo-status {
  color: var(--text-main);
}

/* UPGRADE BUTTON (PRIMARY ACTION) */
.demo-upgrade-btn {
  background: linear-gradient(90deg, var(--cta-primary), var(--cta-secondary));
  color: #ffffff;

  padding: 4px 12px;
  border-radius: 8px;
  border: none;

  font-weight: bold;
  font-size: 12px;

  box-shadow: 0 2px 4px rgba(0,0,0,0.2);

  cursor: pointer;

  transition: all 0.3s ease;
}

.demo-upgrade-btn:hover {
  box-shadow: 0 0 25px var(--cta-primary);
  transform: translateY(-1px);
}

.demo-upgrade-btn:active {
  transform: scale(0.94);
}

/* DEMO HINT BUTTON */
.demo-hint-btn {
  background: linear-gradient(90deg, var(--trust), #0088cc);
  color: #000;

  padding: 4px 12px;
  border-radius: 8px;
  border: none;

  font-weight: bold;
  font-size: 12px;

  box-shadow:
    0 0 16px rgba(30,144,255,0.6);

  cursor: pointer;

  transition: all 0.3s ease;
}

.demo-hint-btn:active {
  transform: scale(0.94);
}

/* HINT BUTTON (PREMIUM GLOW) */
#hintBtn {
  padding: 6px 14px;
  border-radius: 8px;
  border: 1px solid var(--primary);
  background: transparent;
  color: var(--primary);
  cursor: pointer;
  transition: 0.3s;
  font-weight: bold;
  font-size: 12px;
}

#hintBtn.active {
  background: var(--primary);
  color: #ffffff;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

#hintBtn:hover {
  background: rgba(0,255,204,0.1);
}

/* HINT BADGE */
.hint-badge {
  margin-left: 10px;
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid var(--primary);
  font-weight: bold;
}

.hint-badge.on {
  color: var(--primary);
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.hint-badge.off {
  color: var(--danger);
  border-color: var(--danger);
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* HINT TOAST */
.hint-toast {
  position: fixed;
  top: 70px;
  right: 20px;
  background: #000;
  color: var(--success);
  border: 1px solid var(--success);
  padding: 10px 16px;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0,255,136,0.5);
  z-index: 9999;
  font-weight: bold;
  font-size: 12px;
}

.hint-toast.fade-out {
  opacity: 0;
  transition: 0.3s;
}

/* CONTACT LINK (CONVERSION TRIGGER) */
.demo-contact {
  color: var(--trust);
  text-decoration: none;
  font-weight: bold;

  transition: all 0.3s ease;
}

.demo-contact:hover {
  text-decoration: underline;
  color: #004499;
}

.demo-banner.warning {
  animation: demoBannerBlink 1s ease-in-out infinite;
}

@keyframes demoBannerBlink {
  0%, 100% {
    background: linear-gradient(90deg, #f0f8ff, #ffffff);
    border-color: #0066cc;
  }
  50% {
    background: linear-gradient(90deg, #fff0f0, #ffffff);
    border-color: #ff4444;
  }
}

/* Upgrade Button */
.upgrade-btn {
  background: linear-gradient(90deg, var(--cta-primary), var(--cta-secondary));
  color: #ffffff;
  border: none;
  border-radius: 4px;
  padding: 4px 12px;
  font-family: "Courier New", "Lucida Console", monospace;
  font-size: 11px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
  transition: all 0.3s ease;
}

.upgrade-btn:hover {
  box-shadow: 0 0 25px var(--cta-primary);
  transform: translateY(-1px);
}

/* SMART KEYS */
.smartkeys-wrap {
  border: 1px solid var(--border);
  border-radius: 18px;
  background: linear-gradient(180deg, var(--panel), var(--panel-2));
  box-shadow: var(--shadow);
  padding: 12px;
}

.smartkeys-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.smartkeys-title {
  font-size: 13px;
  color: var(--green);
  letter-spacing: 0.8px;
}

.smartkeys {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 8px;
}

.smartkeys button {
  min-height: 40px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(255,255,255,0.03);
  color: var(--text);
  font-size: 13px;
}

.smartkeys button:hover {
  border-color: rgba(99,255,149,0.3);
  color: var(--green);
}

.smartkeys-editor {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed var(--border);
}

.editor-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

/* RIGHT PANEL */
.history-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.filter-chip {
  height: 30px;
  padding: 0 10px;
  font-size: 12px;
}

.history-list,
.pnr-list,
.clipboard-list,
.log-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 200px;
  overflow-y: auto;
  padding-right: 4px;
}

.history-item,
.pnr-item,
.clipboard-item,
.log-item {
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(255,255,255,0.025);
  padding: 8px 10px;
  font-size: 12px;
  line-height: 1.45;
}

.history-item {
  cursor: pointer;
}

.history-item:hover {
  border-color: rgba(99,255,149,0.28);
  background: rgba(99,255,149,0.05);
}

.history-time,
.item-meta {
  color: var(--text-dim);
  font-size: 11px;
  margin-bottom: 4px;
}

.history-cmd,
.item-main {
  color: var(--text);
  word-break: break-word;
}

.tool-block + .tool-block {
  margin-top: 12px;
}

.notes-box {
  min-height: 110px;
  resize: vertical;
  padding: 10px 12px;
  font-size: 13px;
}

.notes-box.small {
  min-height: 130px;
}

.tool-inline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.export-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

/* UTILITY COLORS */
.log-item.ok {
  border-color: rgba(99,255,149,0.25);
}

.log-item.warn {
  border-color: rgba(255,200,87,0.25);
}

.log-item.error {
  border-color: rgba(255,107,107,0.25);
}

/* HIDDEN BRIDGE */
.hidden-bridge {
  position: absolute;
  left: -99999px;
  top: -99999px;
  opacity: 0;
  pointer-events: none;
}

/* TERMINAL LINE HELPERS */
.term-line {
  display: block;
}

.term-line.cmd {
  color: var(--text);
}

.term-line.result {
  color: var(--green);
}

.term-line.info {
  color: var(--blue);
}

.term-line.warn {
  color: var(--amber);
}

.term-line.error {
  color: var(--red);
}

.term-line.command {
  color: var(--terminal-text);
  font-weight: normal;
}

/* RESPONSIVE - App Layout */
@media (max-width: 1450px) {
  .ui-shell {
    max-width: 100vw;
    overflow-x: hidden;
  }

  .center-shell {
    max-width: 100%;
  }

  .terminal-stage {
    max-width: 100%;
  }

  .headbar-left,
  .headbar-right {
    flex-wrap: wrap;
  }

  .smartkeys {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}

@media (max-width: 1180px) {
  .ui-shell {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr auto;
    overflow-y: auto;
    overflow-x: hidden;
    height: 100vh;
    max-width: 100vw;
    min-height: 100vh;
  }

  .center-shell {
    min-height: 72vh;
  }

  .headbar-left,
  .headbar-right {
    gap: 4px;
  }

  .status-box {
    padding: 4px 6px;
    gap: 4px;
  }

  .smartkeys {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .ui-shell {
    padding: 8px;
    gap: 8px;
    max-width: 100vw;
    overflow-x: hidden;
  }

  .center-shell {
    max-width: 100%;
  }

  .terminal-stage {
    max-width: 100%;
  }

  .terminal-frame {
    padding: 34px 12px 18px;
  }

  .smartkeys {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .headbar-left,
  .headbar-right {
    gap: 8px;
  }

  .status-box {
    width: 100%;
  }

  .more-menu {
    width: calc(100% - 20px);
    right: 10px;
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 480px) {
  .ui-shell {
    padding: 4px;
    gap: 4px;
    max-width: 100vw;
    overflow-x: hidden;
  }

  .center-shell {
    max-width: 100%;
  }

  .terminal-stage {
    max-width: 100%;
  }

  .headbar-left,
  .headbar-right {
    gap: 4px;
  }

  .status-box {
    font-size: 10px;
    padding: 2px 4px;
  }

  .smartkeys {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px;
  }

  .terminal-frame {
    padding: 20px 8px 12px;
  }

  /* Additional mobile optimizations */
  .headbar-left {
    gap: 2px;
  }

  .header-chip {
    padding: 0 4px;
    font-size: 8px;
  }

  .header-chip .status-label {
    display: none;
  }
}

@media (max-width: 360px) {
  .ui-shell {
    padding: 2px;
    gap: 2px;
    max-width: 100vw;
    overflow-x: hidden;
  }

  .center-shell {
    max-width: 100%;
  }

  .terminal-stage {
    max-width: 100%;
  }

  .headbar-left,
  .headbar-right {
    gap: 2px;
  }

  .status-box {
    font-size: 9px;
    padding: 1px 3px;
  }

  .smartkeys {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2px;
  }

  .terminal-frame {
    padding: 10px 4px 8px;
  }
}


/* =========================================================
   MODULAR TOOL-BOX SYSTEM
   ========================================================= */

.master-toolbox {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 1200;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

.toolbox-toggle {
  min-width: 78px;
  height: 42px;
  border: 1px solid rgba(0,255,204,0.35);
  border-radius: 12px;
  background: rgba(5,20,8,0.96);
  color: var(--primary, #00ffcc);
  font-family: var(--terminal-font, "Courier New", monospace);
  font-weight: 700;
  letter-spacing: 0.8px;
  cursor: pointer;
  box-shadow: 0 0 18px rgba(0,0,0,0.35);
}

.toolbox-menu {
  display: grid;
  grid-template-columns: repeat(3, 58px);
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--border, #2a2a2a);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(5,15,8,0.98), rgba(14,20,14,0.98));
  box-shadow: 0 12px 30px rgba(0,0,0,.35);
}

.toolbox-item {
  height: 48px;
  border: 1px solid var(--border, #2a2a2a);
  border-radius: 12px;
  background: rgba(255,255,255,0.03);
  color: var(--text, #e8f1e8);
  font-family: var(--terminal-font, "Courier New", monospace);
  font-size: 12px;
  cursor: pointer;
}

.toolbox-item:hover {
  border-color: rgba(0,255,204,0.34);
  color: var(--primary, #00ffcc);
  background: rgba(0,255,204,0.08);
}

.widget-layer {
  position: fixed;
  inset: 0;
  z-index: 1100;
  pointer-events: none;
}

.tool-widget {
  position: absolute;
  top: 120px;
  left: 320px;
  width: 340px;
  min-width: 240px;
  min-height: 150px;
  resize: both;
  overflow: hidden;
  pointer-events: auto;
  border: 1px solid rgba(0,255,204,0.24);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(8,12,8,0.96), rgba(14,18,14,0.96));
  box-shadow: 0 18px 40px rgba(0,0,0,0.45);
  backdrop-filter: blur(8px);
}

.tool-widget-head {
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 10px 0 12px;
  cursor: move;
  user-select: none;
  border-bottom: 1px solid var(--border, #2a2a2a);
  background: linear-gradient(180deg, rgba(0,255,204,0.08), rgba(255,255,255,0.01));
}

.tool-widget-title {
  color: var(--primary, #00ffcc);
  font-size: 12px;
  letter-spacing: 0.8px;
}

.tool-widget-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.tool-win-btn {
  height: 26px;
  min-width: 26px;
  border: 1px solid var(--border, #2a2a2a);
  border-radius: 8px;
  background: rgba(255,255,255,0.03);
  color: var(--text, #e8f1e8);
  font-family: var(--terminal-font, "Courier New", monospace);
  cursor: pointer;
}

.tool-win-btn:hover {
  border-color: rgba(0,255,204,0.35);
  color: var(--primary, #00ffcc);
}

.tool-widget-body {
  height: calc(100% - 38px);
  padding: 10px;
  overflow: auto;
}

.widget-resizer {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 18px;
  height: 18px;
  cursor: nwse-resize;
  background:
    linear-gradient(135deg, transparent 0 45%, rgba(0,255,204,0.55) 45% 55%, transparent 55% 100%);
  opacity: 0.85;
}

.tool-widget.active-widget {
  border-color: rgba(0,255,204,0.45);
  box-shadow: 0 18px 50px rgba(0,0,0,0.52), 0 0 0 1px rgba(0,255,204,0.12);
}

.tool-widget.minimized .tool-widget-body,
.tool-widget.minimized .widget-resizer {
  display: none;
}

.tool-widget.minimized {
  height: 40px !important;
  min-height: 40px !important;
  resize: none;
}

.tool-widget-cli {
  width: 520px;
  min-width: 320px;
  min-height: 110px;
}

.widget-cli-body {
  padding: 12px;
}

.terminal-input-row-floating {
  position: relative !important;
  left: auto !important;
  right: auto !important;
  bottom: auto !important;
  width: 100%;
  min-height: 38px;
  padding-top: 0;
  background: rgba(0,0,0,0.72);
  border: 1px solid rgba(0,255,204,0.16);
  border-radius: 10px;
  padding: 8px 10px;
}

.widget-currency-box,
.pnr-summary-box {
  display: grid;
  gap: 10px;
}

.widget-currency-switcher {
  justify-content: flex-start;
}

.widget-currency-readout {
  font-size: 13px;
  color: var(--primary, #00ffcc);
}

#widgetQuickNotes {
  min-height: 180px;
  height: 100%;
}

.widget-pnr-item {
  border: 1px solid var(--border, #2a2a2a);
  border-radius: 10px;
  background: rgba(255,255,255,0.025);
  padding: 8px 10px;
  font-size: 12px;
  line-height: 1.45;
  margin-bottom: 8px;
}

.dragging-widget,
.resizing-widget {
  user-select: none;
}

.cli-undocked #terminalInputRow {
  opacity: 0.22;
  pointer-events: none;
}

.cli-undocked #terminalInputRow .terminal-cmd-input {
  visibility: hidden;
}

.tool-widget .history-list,
.tool-widget .pnr-list,
.tool-widget .clipboard-list,
.tool-widget .log-list {
  max-height: none;
}

@media (max-width: 980px) {
  .master-toolbox {
    right: 10px;
    bottom: 10px;
  }

  .tool-widget {
    width: min(92vw, 360px);
    left: 4vw;
    top: 90px;
  }

  .tool-widget-cli {
    width: min(94vw, 560px);
  }
}


/* =========================================================
   INDUSTRY TRAINING UPGRADE
   ========================================================= */
.toolbox-menu {
  grid-template-columns: repeat(4, 58px);
}
.tool-widget .widget-toolbar-row,
.widget-toolbar-row {
  display:flex; flex-wrap:wrap; gap:8px; margin-bottom:10px;
}
.widget-action-btn { height:30px; padding:0 10px; }
.queue-list,
.timeline-list,
.fare-display-box,
.ticket-display-box,
.area-snapshot {
  display:grid; gap:8px;
}
.queue-item,
.timeline-item,
.fare-box,
.ticket-box,
.area-box,
.trainer-shortcut-item {
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(255,255,255,0.025);
  padding: 8px 10px;
  font-size: 12px;
  line-height: 1.45;
}
.queue-item.active { border-color: rgba(0,255,204,0.35); }
.seat-legend { display:flex; gap:12px; flex-wrap:wrap; font-size:12px; color:var(--text-dim); margin-bottom:10px; }
.seat-swatch { display:inline-block; width:12px; height:12px; border-radius:3px; margin-right:4px; vertical-align:middle; }
.seat-swatch.open { background: rgba(0,255,204,0.18); border:1px solid rgba(0,255,204,0.5); }
.seat-swatch.held { background: rgba(93,169,255,0.16); border:1px solid rgba(93,169,255,0.5); }
.seat-swatch.blocked { background: rgba(255,107,107,0.16); border:1px solid rgba(255,107,107,0.45); }
.seat-map { display:grid; grid-template-columns: repeat(4, 1fr); gap:8px; }
.seat-cell {
  height: 34px; border-radius: 8px; border: 1px solid var(--border);
  background: rgba(255,255,255,0.03); color: var(--text); display:grid; place-items:center;
  font-size: 12px; cursor:pointer; user-select:none;
}
.seat-cell.open:hover { border-color: rgba(0,255,204,0.45); color: var(--primary); }
.seat-cell.held { border-color: rgba(93,169,255,0.45); color: var(--blue); background: rgba(93,169,255,0.08); }
.seat-cell.blocked { border-color: rgba(255,107,107,0.35); color: var(--red); background: rgba(255,107,107,0.08); cursor:not-allowed; }
.tool-widget-seat,
#widgetSeat { width: 360px; min-width: 300px; min-height: 360px; }
#widgetQueue { width: 360px; min-width: 280px; min-height: 260px; }
#widgetFare, #widgetTicket { width: 380px; min-width: 300px; min-height: 260px; }
#widgetTimeline { width: 360px; min-width: 280px; min-height: 280px; }
#widgetTrainer { width: 420px; min-width: 320px; min-height: 300px; }
.trainer-grid { display:grid; gap:10px; }
.trainer-card { border:1px solid var(--border); border-radius:12px; background:rgba(255,255,255,0.02); padding:10px; }
.trainer-buttons { display:flex; flex-wrap:wrap; gap:8px; }
.trainer-shortcuts { display:grid; gap:8px; }
.area-snapshot { grid-template-columns: repeat(2,1fr); }
.area-box strong { display:block; color:var(--primary); margin-bottom:4px; }
.ticket-coupon-badge { color: var(--primary); }

/* Theme Controller Styles - Compact */
.theme-controls {
  display: grid;
  gap: 8px;
}

.theme-presets {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
}

.preset-btn {
  height: 28px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: rgba(255,255,255,0.03);
  color: var(--text);
  font-family: var(--terminal-font);
  font-size: 10px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.15s ease;
}

.preset-btn:hover {
  transform: translateY(-1px);
  border-color: var(--primary);
}

.preset-btn.active {
  border-color: var(--primary);
  background: rgba(0,255,204,0.15);
  color: var(--primary);
  box-shadow: 0 0 6px rgba(0,255,204,0.3);
}

.preset-green { border-color: rgba(0,255,65,0.3); }
.preset-green:hover, .preset-green.active { background: rgba(0,255,65,0.1); border-color: #00ff41; }

.preset-amber { border-color: rgba(255,200,87,0.3); }
.preset-amber:hover, .preset-amber.active { background: rgba(255,200,87,0.1); border-color: #ffc857; color: #ffc857; }

.preset-white { border-color: rgba(255,255,255,0.3); }
.preset-white:hover, .preset-white.active { background: rgba(255,255,255,0.1); border-color: #ffffff; color: #ffffff; }

.preset-blue { border-color: rgba(93,169,255,0.3); }
.preset-blue:hover, .preset-blue.active { background: rgba(93,169,255,0.1); border-color: #5da9ff; color: #5da9ff; }

.preset-purple { border-color: rgba(168,85,247,0.3); }
.preset-purple:hover, .preset-purple.active { background: rgba(168,85,247,0.1); border-color: #a855f7; color: #a855f7; }

.preset-pink { border-color: rgba(236,72,153,0.3); }
.preset-pink:hover, .preset-pink.active { background: rgba(236,72,153,0.1); border-color: #ec4899; color: #ec4899; }

.preset-cyan { border-color: rgba(34,211,238,0.3); }
.preset-cyan:hover, .preset-cyan.active { background: rgba(34,211,238,0.1); border-color: #22d3ee; color: #22d3ee; }

.preset-orange { border-color: rgba(249,115,22,0.3); }
.preset-orange:hover, .preset-orange.active { background: rgba(249,115,22,0.1); border-color: #f97316; color: #f97316; }

.theme-reset-btn {
  width: 100%;
  height: 32px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: rgba(255,255,255,0.03);
  color: var(--text);
  font-family: var(--terminal-font);
  font-size: 11px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.15s ease;
  margin-top: 8px;
}

.theme-reset-btn:hover {
  background: rgba(255,100,100,0.1);
  border-color: #ff6464;
  color: #ff6464;
  transform: translateY(-1px);
}

.theme-reset-btn:active {
  transform: translateY(0);
}

.control-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.control-label {
  font-size: 10px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.color-input {
  width: 100%;
  height: 28px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
}

.font-select {
  width: 100%;
  height: 28px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  font-family: var(--terminal-font);
  font-size: 11px;
  padding: 0 8px;
  cursor: pointer;
}

.font-select:hover {
  border-color: var(--primary);
}

.font-select:focus {
  outline: none;
  border-color: var(--primary);
}

.range-input {
  width: 100%;
  height: 4px;
  border-radius: 2px;
  background: var(--border);
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}

.range-input::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--terminal-text);
  cursor: pointer;
  box-shadow: 0 0 6px rgba(0, 255, 204, 0.5);
}

.range-input::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--terminal-text);
  cursor: pointer;
  border: none;
  box-shadow: 0 0 6px rgba(0, 255, 204, 0.5);
}

#widgetTheme {
  width: 220px;
  min-width: 220px;
  height: auto;
  max-height: 250px;
}

/* HISTORY PANEL */
.history-panel {
  position: fixed;
  right: 10px;
  top: 60px;
  width: 280px;
  max-height: 400px;
  background: #021e2f;
  border: 1px solid var(--primary);
  border-radius: 6px;
  z-index: 8000;
  display: flex;
  flex-direction: column;
  font-family: monospace;
  box-shadow: 0 4px 20px rgba(0, 255, 204, 0.15);
}
.history-panel.hidden {
  display: none !important;
}
.history-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  border-bottom: 1px solid rgba(0, 255, 204, 0.3);
  color: var(--primary);
  font-size: 11px;
  font-weight: bold;
  letter-spacing: 1px;
}
.history-clear-btn {
  background: transparent;
  border: 1px solid rgba(0, 255, 204, 0.4);
  color: var(--primary);
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 3px;
  cursor: pointer;
  margin-right: 6px;
}
.history-clear-btn:hover {
  background: rgba(0, 255, 204, 0.15);
}
.history-close-btn {
  background: transparent;
  border: none;
  color: #ff5555;
  font-size: 16px;
  cursor: pointer;
  line-height: 1;
}
.history-list {
  list-style: none;
  margin: 0;
  padding: 0;
  overflow-y: auto;
  max-height: 350px;
}
.history-list li {
  padding: 6px 12px;
  color: #ffffff;
  font-size: 12px;
  cursor: pointer;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  transition: background 0.1s;
}
.history-list li:hover {
  background: rgba(0, 255, 204, 0.12);
  color: #fff;
}

/* =========================================================
   LOGIN MESSAGE BOX
   ========================================================= */
#loginMessageBox {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #000;
  color: #00ffcc;
  padding: 20px;
  max-width: 600px;
  width: 90%;
  z-index: 9999;
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.5;
  text-align: left;
  border: 1px solid #00ffcc;
  box-shadow: 0 0 20px rgba(0, 255, 204, 0.3);
}

#loginMessageText {
  margin: 0;
  white-space: pre-wrap;
  font-family: monospace;
}
.history-btn {
  color: #ffffff !important;
}

/* =========================================================
   PREMIUM TRANSITIONS & LOADING STATES
   ========================================================= */

/* Smooth transitions for all interactive elements */
button, .plan-box, .upgrade-btn, .login-btn, .demo-btn, .close-popup-btn, .admin-action-btn {
  transition: all 0.2s ease;
}

button:active:not(:disabled), .plan-box:active, .upgrade-btn:active, .login-btn:active {
  transform: scale(0.97);
}

button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Plan box hover enhancement */
.plan-box:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

/* Upgrade popup smooth entrance */
.upgrade-popup {
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.upgrade-popup.show {
  opacity: 1;
  visibility: visible;
}
.upgrade-popup.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* Guest claim popup smooth entrance */
#guest-claim-popup {
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
#guest-claim-popup.show {
  opacity: 1;
  visibility: visible;
}
#guest-claim-popup.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* Payment processing overlay */
#payment-loading {
  animation: slideDown 0.3s ease;
}
@keyframes slideDown {
  from { transform: translateY(-100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* Payment success banner */
#payment-success-banner {
  animation: slideDown 0.4s ease;
}

/* Login overlay fade */
.login-overlay {
  transition: opacity 0.25s ease;
}

/* Terminal input processing indicator */
.terminal-input-row.processing .terminal-prompt {
  animation: pulse 1s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* Admin action buttons hover */
.admin-action-btn:hover {
  filter: brightness(1.15);
}
.admin-action-btn.delete:hover {
  background: #ef4444;
  color: white;
}
.admin-action-btn.block:hover {
  background: #f59e0b;
  color: white;
}

/* =========================================================
   PAYMENT SETUP BANNER
   ========================================================= */
.payment-setup-banner {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  background: linear-gradient(90deg, #f59e0b, #d97706);
  color: white;
  padding: 10px 20px;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  z-index: 2001;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  letter-spacing: 0.3px;
  line-height: 1.5;
}

/* =========================================================
   PREMIUM LOGIN CARD POLISH
   ========================================================= */
.login-heading {
  color: #ffffff;
  font-size: 16px;
  font-weight: 700;
  margin: 4px 0 2px 0;
  text-align: center;
  letter-spacing: -0.3px;
}

.login-subheading {
  text-align: center;
  margin: 0 0 12px 0;
  font-size: 12px;
  color: #a0aec0;
  line-height: 1.3;
}

.login-brand {
  color: var(--primary);
  font-size: 11px;
  letter-spacing: 2px;
  margin-bottom: 2px;
  text-align: center;
  font-weight: 700;
  opacity: 0.9;
}

.login-features {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.login-feature-item {
  font-size: 11px;
  color: #a0aec0;
  font-family: var(--terminal-font);
}

.login-features-compact {
  text-align: center;
  font-size: 11px;
  color: #ffffff;
  margin: 8px 0;
  font-family: var(--terminal-font);
  letter-spacing: 0.2px;
  line-height: 1.4;
  font-weight: 600;
  opacity: 0.9;
}

.trust-message {
  font-size: 9px;
  color: #718096;
  text-align: center;
  margin-top: 3px;
  line-height: 1.2;
}

/* =========================================================
   FOOTER
   ========================================================= */
.login-footer {
  margin-top: auto;
  text-align: center;
  padding-top: 10px;
  font-size: 11px;
  opacity: 1;
}

.footer-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}

.footer-links a {
  color: #e2e8f0;
  font-size: 11px;
  text-decoration: none;
  transition: color 0.2s;
  font-family: var(--terminal-font);
  font-weight: 500;
}

.footer-links a:hover {
  color: var(--primary);
}

.footer-sep {
  color: #cbd5e0;
  font-size: 10px;
}

.footer-trust {
  margin-bottom: 2px;
  font-size: 10px;
  color: #cbd5e0;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.footer-copy {
  font-size: 10px;
  color: #cbd5e0;
  opacity: 1;
}

/* =========================================================
   BUTTON POLISH & HOVER EFFECTS
   ========================================================= */
.demo-btn {
  position: relative;
  overflow: hidden;
}

.demo-btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(0,255,204,0.1), transparent);
  transform: translateX(-100%);
  transition: transform 0.6s;
}

.demo-btn:hover::after {
  transform: translateX(100%);
}

.login-btn::after,
.primary-action::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
  transform: translateX(-100%);
  transition: transform 0.6s;
  border-radius: inherit;
}

.login-btn:hover::after,
.primary-action:hover::after {
  transform: translateX(100%);
}

.login-btn,
.primary-action {
  position: relative;
  overflow: hidden;
}

/* Plan box click feedback */
.plan-section .plan-box:active {
  transform: scale(0.97);
}

/* =========================================================
   TERMINAL READABILITY POLISH
   ========================================================= */
.terminal {
  letter-spacing: 0.2px;
}

.terminal-input-row {
  border-top: 1px solid rgba(0,255,136,0.08);
}

.terminal-cmd-input {
  letter-spacing: 0.5px;
}

/* =========================================================
   UPGRADE POPUP POLISH
   ========================================================= */
.upgrade-popup-content {
  background: rgba(2, 6, 23, 0.97);
  border: 1px solid rgba(0,255,204,0.25);
  border-radius: 16px;
  padding: 28px;
  max-width: 400px;
  width: 90vw;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5), 0 0 40px rgba(0,255,204,0.1);
  animation: popupFadeIn 0.3s ease;
}

@keyframes popupFadeIn {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(10px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.upgrade-popup-content h2 {
  color: #ffffff;
  font-size: 20px;
  margin: 0 0 8px 0;
}

.upgrade-popup-content p {
  color: #a0aec0;
  font-size: 14px;
  margin: 0 0 20px 0;
}

.upgrade-btn {
  width: 100%;
  padding: 14px;
  background: linear-gradient(90deg, var(--cta-primary), var(--cta-secondary));
  border: none;
  border-radius: 8px;
  color: white;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: var(--terminal-font);
}

.upgrade-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255,122,0,0.4);
}

.upgrade-btn:active {
  transform: scale(0.97);
}

.close-popup-btn {
  width: 100%;
  padding: 12px;
  margin-top: 10px;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 8px;
  color: #a0aec0;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: var(--terminal-font);
}

.close-popup-btn:hover {
  background: rgba(255,255,255,0.05);
  color: #ffffff;
  border-color: rgba(255,255,255,0.3);
}

/* =========================================================
   PLAN LABEL BADGES
   ========================================================= */
.plan-label {
  display: inline-block;
  font-size: 8px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #a0aec0;
  background: rgba(255,255,255,0.06);
  padding: 2px 6px;
  border-radius: 3px;
  margin-bottom: 4px;
}

.plan-label.popular {
  color: #fbbf24;
  background: rgba(251,191,36,0.12);
  border: 1px solid rgba(251,191,36,0.25);
}

.plan-label.master {
  color: #00ffcc;
  background: rgba(0,255,204,0.1);
  border: 1px solid rgba(0,255,204,0.25);
}

/* =========================================================
   DEMO PRIMARY BUTTON (DOMINANT CTA)
   ========================================================= */
.demo-primary {
  min-height: 44px;
  font-size: 14px;
  font-weight: 700;
  background: linear-gradient(90deg, var(--primary), #00e5a0);
  border: none;
  color: #000000;
  box-shadow: 0 0 20px rgba(0,255,204,0.3), 0 4px 12px rgba(0,0,0,0.2);
  letter-spacing: 0.5px;
}

.demo-primary:hover {
  background: linear-gradient(90deg, #00ffdd, #00ffcc);
  box-shadow: 0 0 30px rgba(0,255,204,0.5), 0 6px 20px rgba(0,0,0,0.3);
  transform: translateY(-2px);
}

.demo-primary:active {
  transform: scale(0.97);
  box-shadow: 0 0 10px rgba(0,255,204,0.3);
}

/* =========================================================
   LOGIN DIVIDER
   ========================================================= */
.login-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 8px 0;
}

.login-divider::before,
.login-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(255,255,255,0.1);
}

.login-divider span {
  font-size: 11px;
  color: #4a5568;
  font-weight: 600;
  letter-spacing: 1px;
}

/* =========================================================
   SECONDARY ACTION (LOGIN BUTTON)
   ========================================================= */
.secondary-action {
  min-height: 38px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 8px;
  background: rgba(255,255,255,0.03);
  color: #cbd5e0;
  font-weight: 600;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 100%;
  position: relative;
  overflow: hidden;
}

.secondary-action:hover {
  border-color: rgba(255,255,255,0.4);
  background: rgba(255,255,255,0.06);
  color: #ffffff;
  transform: translateY(-1px);
}

.secondary-action:active {
  transform: scale(0.97);
}

/* =========================================================
   LEGAL TEXT VISIBILITY IMPROVEMENT
   ========================================================= */
.legal-text {
  margin-top: 12px;
  font-size: 10px;
  color: #e53e3e;
  text-align: center;
  font-family: var(--terminal-font);
  opacity: 0.85;
  padding-top: 10px;
  border-top: 1px solid rgba(255,255,255,0.06);
  font-weight: 600;
}

/* =========================================================
   MOBILE LOGIN MODAL
   ========================================================= */
.login-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.92);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 99999;
  opacity: 0;
  transition: opacity 0.15s ease;
}

.login-modal.active {
  opacity: 1;
}

.login-modal-box {
  width: 90%;
  max-width: 340px;
  background: #0d1f2d;
  border: 1px solid rgba(0, 255, 136, 0.2);
  border-radius: 12px;
  padding: 28px 22px;
  position: relative;
}

.login-modal-close {
  position: absolute;
  top: 12px;
  right: 14px;
  background: none;
  border: none;
  color: #718096;
  font-size: 24px;
  cursor: pointer;
  line-height: 1;
  padding: 4px;
}

.login-modal-close:hover {
  color: #fff;
}

.login-modal-brand {
  font-family: var(--terminal-font);
  font-size: 10px;
  color: #00ff88;
  letter-spacing: 2px;
  text-align: center;
  margin-bottom: 6px;
  opacity: 0.8;
}

.login-modal-title {
  font-family: var(--terminal-font);
  font-size: 18px;
  color: #ffffff;
  text-align: center;
  margin: 0 0 20px;
  font-weight: 700;
}

.login-modal-row {
  margin-bottom: 14px;
}

.login-modal-row label {
  display: block;
  font-family: var(--terminal-font);
  font-size: 10px;
  color: #a0aec0;
  letter-spacing: 1px;
  margin-bottom: 6px;
  font-weight: 600;
}

.login-modal-row .login-input {
  width: 100%;
  padding: 12px 14px;
  font-size: 14px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 6px;
  color: #ffffff;
  font-family: var(--terminal-font);
  box-sizing: border-box;
}

.login-modal-row .login-input:focus {
  border-color: #00ff88;
  outline: none;
  box-shadow: 0 0 8px rgba(0, 255, 136, 0.2);
}

.login-modal-submit {
  width: 100%;
  height: 48px;
  margin-top: 8px;
  background: #00ff88;
  color: #000;
  border: none;
  border-radius: 8px;
  font-family: var(--terminal-font);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 1px;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.1s ease;
}

.login-modal-submit:hover {
  background: #00e67a;
}

.login-modal-submit:active {
  transform: scale(0.97);
}

.login-modal-error {
  min-height: 18px;
  font-size: 11px;
  color: #e53e3e;
  text-align: center;
  margin-top: 8px;
  font-family: var(--terminal-font);
  opacity: 0;
  transition: opacity 0.15s ease;
}

.login-modal-error.visible {
  opacity: 1;
}

.login-modal-success {
  min-height: 18px;
  font-size: 12px;
  color: #00ff88;
  text-align: center;
  margin-top: 8px;
  font-family: var(--terminal-font);
  line-height: 1.4;
}

/* =========================================================
   DESKTOP PREMIUM POLISH — PERFORMANCE & CLARITY
   ========================================================= */

/* Faster transitions globally — no lag */
@media (min-width: 769px) {
  .plan-box {
    transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  }

  .plan-box:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.25);
  }

  .master-box {
    box-shadow: 0 0 12px rgba(0,255,204,0.1);
  }

  .master-box:hover {
    box-shadow: 0 0 20px rgba(0,255,204,0.2);
    transform: translateY(-3px);
  }

  /* Buttons — instant feel */
  .demo-btn,
  .login-btn,
  .demo-primary,
  .secondary-action {
    transition: transform 0.1s ease, box-shadow 0.1s ease, background 0.15s ease;
  }

  /* Reduce feature-list animation to subtle */
  .feature-list div {
    transition: color 0.15s ease, transform 0.1s ease;
  }

  .feature-list div:hover {
    transform: translateX(2px);
  }

  /* Clean login card — minimal shadow */
  .login-card {
    box-shadow: 0 0 20px rgba(0,255,204,0.06);
  }

  /* Typography tightening */
  .login-heading {
    letter-spacing: -0.5px;
  }

  .login-subheading {
    letter-spacing: 0;
  }

  /* Trust elements — subtle, not dominant */
  .trust-message {
    opacity: 0.7;
  }

  .legal-text {
    opacity: 0.75;
  }

  .legal-disclaimer {
    opacity: 0.5;
  }
}

/* =========================================================
   RESPONSIVE LAYOUT FIX (LAPTOP 1366-1440px)
   Scoped to medium screens only - does not affect fullscreen
   ========================================================= */

/* MEDIUM SCREEN FIX (1280px - 1440px laptops) */
@media (min-width: 1025px) and (max-width: 1440px) {
  .main-layout {
    grid-template-columns: 1.15fr 1fr;
    gap: 16px;
    align-items: center;
  }

  /* Constrain hero width to prevent visual dominance */
  .hero,
  .hero-block,
  .left-container {
    max-width: 600px;
  }

  .left-container {
    padding-left: 24px;
    padding-right: 24px;
  }

  .right-login {
    padding: 24px 20px;
    min-height: calc(100vh - 60px);
    align-items: center;
  }

  .login-card {
    max-width: 360px;
    padding: 12px;
    max-height: 90vh;
  }

  .login-card h2,
  .login-card .login-title {
    font-size: 17px;
  }

  .login-card p,
  .login-card .login-subtitle {
    font-size: 12.5px;
    line-height: 1.4;
  }

  /* Compact plan cards - future-proof auto-fit grid */
  .plan-section {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
  }

  .pricing-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  }

  /* Hide dense feature list in login card for cleaner premium feel */
  .login-card ul {
    display: none;
  }

  .plan-box {
    padding: 12px;
  }

  .usd-price {
    font-size: 16px;
  }

  .new-price {
    font-size: 15px;
  }
}

/* SMALL LAPTOP FIX (below 1280px) - tighter scaling */
@media (min-width: 1025px) and (max-width: 1280px) {
  .main-layout {
    grid-template-columns: 1.1fr 1fr;
    gap: 12px;
  }

  .login-card {
    max-width: 340px;
    font-size: 0.95em;
  }

  .plan-section {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 8px;
  }

  .hero-block h1,
  .hero-title {
    font-size: 30px;
    line-height: 1.2;
    color: #ffffff;
  }

  .hero-subtitle,
  .hero-subtext {
    font-size: 14px;
    color: #ffffff;
  }
}

/* PRICING CONTAINER GENERIC FLEX-WRAP (safety) */
@media (min-width: 1025px) and (max-width: 1440px) {
  .pricing-container {
    gap: 1px;
  }
}

/* =========================================================
   AYAZ TOP HEADBAR (Landing Page Only)
   ========================================================= */
#login-overlay .ayaz-topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 40px;
  min-height: 40px;
  max-height: 40px;
  background: rgba(5, 10, 20, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 255, 220, 0.25);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  z-index: 1000;
  box-shadow: 0 2px 20px rgba(0, 255, 220, 0.1);
  box-sizing: border-box;
}

#login-overlay .ayaz-topbar-brand {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0;
  line-height: 1;
}

#login-overlay .brand-main {
  font-size: 14px;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.6px;
  text-transform: uppercase;
  line-height: 1;
  margin: 0;
}

#login-overlay .brand-sub {
  font-size: 8px;
  color: var(--text-soft);
  letter-spacing: 0.4px;
  text-transform: uppercase;
  line-height: 1;
  margin-top: 2px;
}

#login-overlay .ayaz-topbar-menu {
  display: flex;
  align-items: center;
  gap: 8px;
}

#login-overlay .ayaz-topbar-btn {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-soft);
  height: 25px;
  min-height: 25px;
  padding: 3px 7px;
  font-size: 11px;
  font-weight: 500;
  cursor: pointer;
  border-radius: 4px;
  transition: all 0.2s ease;
  white-space: nowrap;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

#login-overlay .ayaz-topbar-btn:hover {
  background: rgba(0, 255, 220, 0.1);
  border-color: rgba(0, 255, 220, 0.3);
  color: var(--primary);
  box-shadow: 0 0 15px rgba(0, 255, 220, 0.2);
}

#login-overlay .ayaz-topbar-btn.download-btn {
  background: linear-gradient(135deg, #00ff88 0%, #00cc6a 100%);
  color: #000;
  border-color: #00ff88;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(0, 255, 136, 0.3);
}

#login-overlay .ayaz-topbar-btn.download-btn:hover {
  background: linear-gradient(135deg, #00cc6a 0%, #009950 100%);
  border-color: #00cc6a;
  box-shadow: 0 4px 12px rgba(0, 255, 136, 0.5);
  color: #000;
}

#login-overlay .ayaz-mobile-menu-btn {
  display: none;
  background: transparent;
  border: 1px solid rgba(0, 255, 220, 0.3);
  color: var(--primary);
  width: 32px;
  height: 32px;
  min-width: 32px;
  min-height: 32px;
  padding: 0;
  border-radius: 4px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

#login-overlay .ayaz-mobile-menu-btn:hover {
  background: rgba(0, 255, 220, 0.15);
  box-shadow: 0 0 15px rgba(0, 255, 220, 0.2);
}

#login-overlay .hamburger-icon {
  display: block;
  width: 16px;
  height: 2px;
  background: var(--primary);
  position: relative;
  transition: all 0.3s ease;
}

#login-overlay .hamburger-icon::before,
#login-overlay .hamburger-icon::after {
  content: '';
  position: absolute;
  width: 16px;
  height: 2px;
  background: var(--primary);
  transition: all 0.3s ease;
}

#login-overlay .hamburger-icon::before {
  top: -4px;
}

#login-overlay .hamburger-icon::after {
  top: 4px;
}

#login-overlay .ayaz-mobile-menu {
  display: none;
  position: fixed;
  top: 40px;
  left: 0;
  right: 0;
  background: rgba(5, 10, 20, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 255, 220, 0.25);
  padding: 12px;
  z-index: 999;
  flex-direction: column;
  gap: 5px;
}

#login-overlay .ayaz-mobile-menu-item {
  background: transparent;
  border: 1px solid rgba(0, 255, 220, 0.2);
  color: var(--text-main);
  padding: 9px 11px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  border-radius: 4px;
  text-align: left;
  transition: all 0.2s ease;
}

#login-overlay .ayaz-mobile-menu-item:hover {
  background: rgba(0, 255, 220, 0.1);
  border-color: var(--primary);
  color: var(--primary);
}

#login-overlay .ayaz-mobile-menu-item.download-btn {
  background: linear-gradient(135deg, #00ff88 0%, #00cc6a 100%);
  color: #000;
  border-color: #00ff88;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(0, 255, 136, 0.3);
}

#login-overlay .ayaz-mobile-menu-item.download-btn:hover {
  background: linear-gradient(135deg, #00cc6a 0%, #009950 100%);
  border-color: #00cc6a;
  box-shadow: 0 4px 12px rgba(0, 255, 136, 0.5);
  color: #000;
}

/* Add top padding to main layout when headbar is present */
#login-overlay .main-layout {
  padding-top: 40px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  #login-overlay .ayaz-topbar-menu {
    display: none;
  }

  #login-overlay .ayaz-mobile-menu-btn {
    display: flex;
  }

  #login-overlay .ayaz-mobile-menu.active {
    display: flex;
  }

  #login-overlay .ayaz-topbar {
    height: 44px;
    min-height: 44px;
    max-height: 44px;
    padding: 0 12px;
  }

  #login-overlay .brand-main {
    font-size: 13px;
  }

  #login-overlay .brand-sub {
    font-size: 7.5px;
  }

  #login-overlay .ayaz-mobile-menu {
    top: 44px;
  }
}

/* =========================================================
   COMPACT LAYOUT FOR ZOOMED VIEWS (max-height: 720px)
   ========================================================= */
@media (max-height: 720px) and (min-width: 900px) {
  /* Main layout compact */
  .main-layout {
    gap: clamp(8px, 1vw, 12px);
  }

  /* Hero text compact */
  .hero-block h1,
  .hero-title {
    font-size: clamp(18px, 2vw, 24px);
    line-height: 1.1;
    margin-bottom: 6px;
    color: #ffffff;
  }

  .hero-block p,
  .hero-subtitle,
  .hero-subtext {
    font-size: clamp(10px, 1.1vw, 12px);
    line-height: 1.25;
    color: #ffffff;
    margin-bottom: 4px;
  }

  .micro-badge {
    font-size: 9px;
    margin-bottom: 4px;
  }

  .hero-checklist {
    font-size: clamp(10px, 1.1vw, 12px);
    line-height: 1.3;
    margin: 6px 0 8px;
  }

  /* Plan section compact */
  .plan-section {
    gap: clamp(6px, 0.8vw, 10px);
    margin-top: 6px;
  }

  .plan-box {
    padding: clamp(8px, 1vw, 10px);
  }

  .plan-title {
    font-size: clamp(10px, 1.1vw, 11px);
  }

  .plan-badge {
    font-size: 7px;
    padding: 1px 3px;
  }

  .plan-sub {
    font-size: clamp(10px, 1.1vw, 11px);
  }

  .usd-price {
    font-size: clamp(12px, 1.5vw, 14px);
  }

  .old-price {
    font-size: 9px;
  }

  .new-price {
    font-size: clamp(10px, 1.2vw, 11px);
  }

  .plan-cycle {
    font-size: 9px;
  }

  .limited-slots,
  .plan-note {
    font-size: 8px;
    line-height: 1.2;
  }

  .plan-divider {
    margin: 4px 0;
  }

  .plan-box ul {
    margin: 3px 0 6px;
  }

  .plan-box ul li {
    font-size: clamp(9px, 1vw, 10px);
    line-height: 1.15;
    margin-bottom: 2px;
  }

  .plan-cta button {
    height: 26px;
    font-size: clamp(9px, 1vw, 10px);
    margin-top: 6px;
  }

  /* Login card compact */
  .login-card {
    padding: clamp(10px, 1.2vw, 12px);
  }

  .login-card h2 {
    font-size: clamp(14px, 1.8vw, 16px);
    margin-bottom: 8px;
  }

  .login-card label {
    font-size: 10px;
    margin-bottom: 3px;
  }

  .login-input {
    height: 30px;
    font-size: 11px;
    padding: 6px 8px;
    margin-bottom: 8px;
  }

  .login-btn {
    height: 32px;
    font-size: 11px;
    margin-top: 6px;
  }

  .demo-btn {
    height: 32px;
    font-size: 11px;
    margin-bottom: 6px;
  }

  .training-notice,
  .notice-box {
    padding: 5px 6px;
    font-size: 8px;
    line-height: 1.2;
    margin-top: 5px;
  }

  .login-footer {
    margin-top: 5px;
    font-size: 8px;
    line-height: 1.15;
  }

  .footer-links a {
    font-size: 9px;
  }

  .footer-sep {
    font-size: 9px;
  }

  .footer-trust,
  .footer-copy {
    font-size: 8px;
  }
}

/* =========================================================
   AYAZ HELP MODALS (Landing Page Only)
   ========================================================= */
#login-overlay .ayaz-help-modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 2000;
}

#login-overlay .ayaz-help-modal-overlay.active {
  display: block;
}

#login-overlay .ayaz-help-modal {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  max-width: 850px;
  max-height: 85vh;
  background: rgba(5, 10, 20, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 255, 220, 0.3);
  border-radius: 12px;
  box-shadow: 0 0 40px rgba(0, 255, 220, 0.15);
  z-index: 2001;
  overflow: hidden;
}

#login-overlay .ayaz-help-modal.active {
  display: flex;
  flex-direction: column;
}

#login-overlay .ayaz-help-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid rgba(0, 255, 220, 0.2);
  background: rgba(0, 255, 220, 0.05);
}

#login-overlay .ayaz-help-modal-header h2 {
  font-size: 20px;
  font-weight: 700;
  color: var(--primary);
  margin: 0;
  letter-spacing: 0.5px;
}

#login-overlay .ayaz-modal-close {
  background: transparent;
  border: 1px solid rgba(0, 255, 220, 0.3);
  color: var(--primary);
  width: 36px;
  height: 36px;
  border-radius: 6px;
  font-size: 24px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  line-height: 1;
}

#login-overlay .ayaz-modal-close:hover {
  background: rgba(0, 255, 220, 0.15);
  box-shadow: 0 0 15px rgba(0, 255, 220, 0.2);
}

#login-overlay .ayaz-help-modal-body {
  padding: 24px;
  overflow-y: auto;
  flex: 1;
}

#login-overlay .ayaz-help-modal-body::-webkit-scrollbar {
  width: 8px;
}

#login-overlay .ayaz-help-modal-body::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.3);
  border-radius: 4px;
}

#login-overlay .ayaz-help-modal-body::-webkit-scrollbar-thumb {
  background: rgba(0, 255, 220, 0.3);
  border-radius: 4px;
}

#login-overlay .ayaz-help-modal-body::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 255, 220, 0.5);
}

/* Help Steps */
#login-overlay .ayaz-help-step {
  margin-bottom: 20px;
  padding: 16px;
  background: rgba(0, 255, 220, 0.05);
  border: 1px solid rgba(0, 255, 220, 0.15);
  border-radius: 8px;
}

#login-overlay .ayaz-help-step h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--primary);
  margin: 0 0 8px 0;
}

#login-overlay .ayaz-help-step p {
  font-size: 14px;
  color: var(--text-soft);
  margin: 0;
  line-height: 1.6;
}

/* Help Footer */
#login-overlay .ayaz-help-footer {
  margin-top: 24px;
  padding: 16px;
  background: rgba(0, 255, 220, 0.08);
  border: 1px solid rgba(0, 255, 220, 0.2);
  border-radius: 8px;
  text-align: center;
}

#login-overlay .ayaz-help-footer p {
  font-size: 13px;
  color: var(--primary);
  margin: 0;
  font-weight: 500;
}

/* Code Blocks */
#login-overlay .ayaz-code-block {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 12px;
  padding: 12px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(0, 255, 220, 0.2);
  border-radius: 6px;
}

#login-overlay .ayaz-code-block code {
  font-family: 'Courier New', monospace;
  font-size: 13px;
  color: var(--success);
  background: transparent;
  padding: 4px 8px;
  border-radius: 4px;
  display: block;
}

/* Help Grid */
#login-overlay .ayaz-help-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

#login-overlay .ayaz-help-card {
  padding: 20px;
  background: rgba(0, 255, 220, 0.05);
  border: 1px solid rgba(0, 255, 220, 0.2);
  border-radius: 8px;
  transition: all 0.2s ease;
}

#login-overlay .ayaz-help-card:hover {
  border-color: var(--primary);
  box-shadow: 0 0 20px rgba(0, 255, 220, 0.15);
}

#login-overlay .ayaz-help-card h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--primary);
  margin: 0 0 8px 0;
}

#login-overlay .ayaz-help-card p {
  font-size: 14px;
  color: var(--text-soft);
  margin: 0 0 12px 0;
  line-height: 1.5;
}

#login-overlay .ayaz-help-card p strong {
  color: var(--text-main);
}

#login-overlay .ayaz-help-card ul {
  margin: 0 0 16px 0;
  padding-left: 20px;
}

#login-overlay .ayaz-help-card ul li {
  font-size: 13px;
  color: var(--text-soft);
  margin-bottom: 6px;
  line-height: 1.4;
}

#login-overlay .ayaz-card-btn {
  width: 100%;
  background: rgba(0, 255, 220, 0.1);
  border: 1px solid var(--primary);
  color: var(--primary);
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border-radius: 6px;
  transition: all 0.2s ease;
}

#login-overlay .ayaz-card-btn:hover {
  background: var(--primary);
  color: var(--bg-main);
  box-shadow: 0 0 20px rgba(0, 255, 220, 0.3);
}

/* Command Categories */
#login-overlay .ayaz-command-category {
  margin-bottom: 20px;
}

#login-overlay .ayaz-command-category h3 {
  font-size: 15px;
  font-weight: 600;
  color: var(--primary);
  margin: 0 0 10px 0;
}

#login-overlay .ayaz-note {
  margin-top: 20px;
  padding: 12px;
  background: rgba(255, 122, 0, 0.1);
  border: 1px solid rgba(255, 122, 0, 0.3);
  border-radius: 6px;
  font-size: 13px;
  color: var(--cta-secondary);
  text-align: center;
}

/* FAQ Accordion */
#login-overlay .ayaz-faq-item {
  margin-bottom: 12px;
  border: 1px solid rgba(0, 255, 220, 0.2);
  border-radius: 8px;
  overflow: hidden;
}

#login-overlay .ayaz-faq-question {
  width: 100%;
  background: rgba(0, 255, 220, 0.05);
  border: none;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: all 0.2s ease;
}

#login-overlay .ayaz-faq-question:hover {
  background: rgba(0, 255, 220, 0.1);
}

#login-overlay .ayaz-faq-question span:first-child {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-main);
  text-align: left;
}

#login-overlay .faq-toggle {
  font-size: 20px;
  font-weight: 700;
  color: var(--primary);
  transition: transform 0.3s ease;
}

#login-overlay .ayaz-faq-item.active .faq-toggle {
  transform: rotate(45deg);
}

#login-overlay .ayaz-faq-answer {
  display: none;
  padding: 16px 20px;
  background: rgba(0, 0, 0, 0.3);
  border-top: 1px solid rgba(0, 255, 220, 0.1);
}

#login-overlay .ayaz-faq-item.active .ayaz-faq-answer {
  display: block;
}

#login-overlay .ayaz-faq-answer p {
  font-size: 14px;
  color: var(--text-soft);
  margin: 0;
  line-height: 1.6;
}

/* Support Section */
#login-overlay .ayaz-support-section {
  margin-top: 24px;
  padding: 16px;
  background: rgba(0, 255, 220, 0.05);
  border: 1px solid rgba(0, 255, 220, 0.15);
  border-radius: 8px;
}

#login-overlay .ayaz-support-note {
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
  margin: 0 0 12px 0;
}

#login-overlay .ayaz-support-section ul {
  margin: 0;
  padding-left: 20px;
}

#login-overlay .ayaz-support-section ul li {
  font-size: 13px;
  color: var(--text-soft);
  margin-bottom: 6px;
}

#login-overlay .ayaz-support-actions {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

#login-overlay .ayaz-support-action {
  flex: 1;
  padding: 14px 20px;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.2s ease;
}

#login-overlay .ayaz-support-action.whatsapp {
  background: rgba(37, 211, 102, 0.15);
  border: 1px solid rgba(37, 211, 102, 0.4);
  color: #25d366;
}

#login-overlay .ayaz-support-action.whatsapp:hover {
  background: rgba(37, 211, 102, 0.25);
  box-shadow: 0 0 20px rgba(37, 211, 102, 0.3);
}

#login-overlay .ayaz-support-action.email {
  background: rgba(0, 255, 220, 0.15);
  border: 1px solid rgba(0, 255, 220, 0.4);
  color: var(--primary);
}

#login-overlay .ayaz-support-action.email:hover {
  background: rgba(0, 255, 220, 0.25);
  box-shadow: 0 0 20px rgba(0, 255, 220, 0.3);
}

/* Contact Info */
#login-overlay .ayaz-contact-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

#login-overlay .ayaz-contact-item {
  padding: 20px;
  background: rgba(0, 255, 220, 0.05);
  border: 1px solid rgba(0, 255, 220, 0.2);
  border-radius: 8px;
  text-align: center;
}

#login-overlay .ayaz-contact-item h3 {
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
  margin: 0 0 8px 0;
}

#login-overlay .ayaz-contact-item p {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-main);
  margin: 0 0 12px 0;
}

#login-overlay .ayaz-contact-link {
  display: inline-block;
  padding: 8px 16px;
  background: rgba(0, 255, 220, 0.1);
  border: 1px solid var(--primary);
  color: var(--primary);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 6px;
  transition: all 0.2s ease;
}

#login-overlay .ayaz-contact-link:hover {
  background: var(--primary);
  color: var(--bg-main);
  box-shadow: 0 0 15px rgba(0, 255, 220, 0.3);
}

#login-overlay .ayaz-support-hours {
  margin-bottom: 20px;
  padding: 16px;
  background: rgba(0, 255, 220, 0.05);
  border: 1px solid rgba(0, 255, 220, 0.15);
  border-radius: 8px;
}

#login-overlay .ayaz-support-hours h3 {
  font-size: 15px;
  font-weight: 600;
  color: var(--primary);
  margin: 0 0 10px 0;
}

#login-overlay .ayaz-support-hours p {
  font-size: 14px;
  color: var(--text-soft);
  margin: 6px 0;
}

#login-overlay .ayaz-support-hours strong {
  color: var(--text-main);
}

#login-overlay .ayaz-disclaimer {
  padding: 12px;
  background: rgba(255, 122, 0, 0.1);
  border: 1px solid rgba(255, 122, 0, 0.3);
  border-radius: 6px;
  font-size: 13px;
  color: var(--cta-secondary);
  text-align: center;
  margin: 0;
}

/* Mobile Responsive for Modals */
@media (max-width: 768px) {
  #login-overlay .ayaz-help-modal {
    width: 94%;
    max-height: 90vh;
  }

  #login-overlay .ayaz-help-modal-header {
    padding: 16px 20px;
  }

  #login-overlay .ayaz-help-modal-header h2 {
    font-size: 18px;
  }

  #login-overlay .ayaz-help-modal-body {
    padding: 20px;
  }

  #login-overlay .ayaz-help-grid {
    grid-template-columns: 1fr;
  }

  #login-overlay .ayaz-contact-info {
    grid-template-columns: 1fr;
  }

  #login-overlay .ayaz-support-actions {
    flex-direction: column;
  }

  #login-overlay .ayaz-help-step {
    padding: 12px;
  }

  #login-overlay .ayaz-code-block {
    padding: 10px;
  }

  #login-overlay .ayaz-code-block code {
    font-size: 12px;
  }
}

/* Body scroll lock when modal is open */
body.modal-open {
  overflow: hidden;
}

/* =========================================================
   SCREEN TOGGLE BUTTON
   ========================================================= */
.screen-toggle-btn {
  min-width: 40px;
  font-size: 16px;
  padding: 0 12px;
  display: flex !important;
  visibility: visible !important;
  background: rgba(0, 255, 204, 0.1);
  border: 1px solid rgba(0, 255, 204, 0.3);
  color: var(--primary);
  transition: all 0.3s ease;
}

.screen-toggle-btn:hover {
  background: rgba(0, 255, 204, 0.2);
  border-color: var(--primary);
  transform: translateY(-1px);
}

.screen-toggle-btn.active {
  background: rgba(0, 255, 204, 0.3);
  border-color: var(--primary);
  color: var(--primary);
  box-shadow: 0 0 10px rgba(0, 255, 204, 0.3);
}

/* =========================================================
   SCREEN 2 CURSOR
   ========================================================= */
.screen2-cursor {
  position: absolute;
  color: #00ffcc;
  font-family: 'Courier New', monospace;
  font-size: 14px;
  animation: blink 1s step-end infinite;
  pointer-events: none;
  z-index: 10;
}

.screen2-cursor.hidden {
  display: none;
}

.screen2-cursor-inline {
  color: #00ffcc;
  font-family: 'Courier New', monospace;
  font-size: 14px;
  animation: blink 1s step-end infinite;
  margin-left: 2px;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* =========================================================
   SCREEN 2 INPUT DISPLAY
   ========================================================= */
.screen2-input-line {
  display: flex;
  align-items: center;
  font-family: 'Courier New', monospace;
  font-size: 14px;
  color: #00ffcc;
  white-space: pre;
}

.screen2-prompt {
  margin-right: 8px;
  font-weight: bold;
}

.screen2-input-text {
  color: #ffffff;
}

/* =========================================================
   SCREEN TOGGLE BUTTON
   ========================================================= */
.screen-toggle-btn {
  min-width: 40px;
  font-size: 16px;
  padding: 0 12px;
  display: flex !important;
  visibility: visible !important;
  background: rgba(0, 255, 204, 0.1);
  border: 1px solid rgba(0, 255, 204, 0.3);
  color: var(--primary);
  transition: all 0.3s ease;
}

.screen-toggle-btn:hover {
  background: rgba(0, 255, 204, 0.2);
  border-color: var(--primary);
  transform: translateY(-1px);
}

.screen-toggle-btn.active {
  background: rgba(0, 255, 204, 0.3);
  border-color: var(--primary);
  color: var(--primary);
  box-shadow: 0 0 10px rgba(0, 255, 204, 0.3);
}

/* =========================================================
   SCREEN 2 CURSOR
   ========================================================= */
.screen2-cursor {
  position: absolute;
  color: #00ffcc;
  font-family: 'Courier New', monospace;
  font-size: 14px;
  animation: blink 1s step-end infinite;
  pointer-events: none;
  z-index: 10;
}

.screen2-cursor.hidden {
  display: none;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* =========================================================
   LANDING PAGE — LIGHT SaaS REDESIGN (visual styling only)
   Scoped to #login-overlay so the main app is untouched.
   Structure, layout, spacing and content are unchanged.
   ========================================================= */

/* 1. Soft sky gradient background (pure CSS, no images) */
#login-overlay {
  background: linear-gradient(180deg, #eef5ff 0%, #f8fbff 40%, #ffffff 100%);
}
#login-overlay .left-hero {
  background: transparent;
  position: relative;
  overflow: visible;
}
#login-overlay .right-login {
  background: transparent;
}

/* No heavy overlay needed over a gradient sky — keep it clean/airy */
#login-overlay::before {
  content: none;
}

/* 3. Sky glow — soft radial light in the upper area */
#login-overlay .left-hero::before {
  content: "";
  position: absolute;
  top: 20%;
  right: 30%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255,255,255,0.6), transparent 70%);
  z-index: 1;
  pointer-events: none;
}

/* 2. Soft cloud field — bottom cloud bank + floating puffs (CSS only) */
#login-overlay .left-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 108%, rgba(255,255,255,0.85), transparent 60%),
    url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1400 600'><defs><filter id='b' x='-30%25' y='-30%25' width='160%25' height='160%25'><feGaussianBlur stdDeviation='22'/></filter></defs><g fill='%23ffffff' filter='url(%23b)'><ellipse cx='180' cy='525' rx='240' ry='95'/><ellipse cx='430' cy='548' rx='210' ry='80'/><ellipse cx='720' cy='528' rx='265' ry='102'/><ellipse cx='1010' cy='548' rx='220' ry='85'/><ellipse cx='1265' cy='528' rx='220' ry='95'/><ellipse cx='560' cy='150' rx='150' ry='52'/><ellipse cx='665' cy='172' rx='120' ry='42'/><ellipse cx='985' cy='118' rx='130' ry='46'/><ellipse cx='300' cy='235' rx='110' ry='40'/></g></svg>") no-repeat center bottom;
  background-size: auto, 130% auto;
  opacity: 0.7;
  z-index: 1;
  pointer-events: none;
}

/* 5. Depth — text/content above the sky glow and plane */
#login-overlay .main-layout {
  position: relative;
  z-index: 3;
}
#login-overlay .left-container {
  position: relative;
  z-index: 3;
}

/* 4. Airplane — shaded 3D-look illustration (CSS only), banking through the sky */
#login-overlay .hero-plane {
  position: absolute;
  right: -30%;
  top: 84px;
  width: min(480px, 42vw);
  aspect-ratio: 820 / 460;
  height: auto;
  opacity: 0.96;
  z-index: 2;
  filter: drop-shadow(0 26px 44px rgba(20,40,80,0.22));
  pointer-events: none;
  background: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 820 460'><defs><linearGradient id='fus' x1='0' y1='0' x2='0' y2='1'><stop offset='0' stop-color='%23ffffff'/><stop offset='0.45' stop-color='%23e6eef9'/><stop offset='0.75' stop-color='%23bcd0e6'/><stop offset='1' stop-color='%2394b0cf'/></linearGradient><linearGradient id='wg' x1='0' y1='0' x2='1' y2='1'><stop offset='0' stop-color='%23e2ecf7'/><stop offset='1' stop-color='%239bb6d4'/></linearGradient><linearGradient id='wg2' x1='0' y1='0' x2='1' y2='1'><stop offset='0' stop-color='%23cdddee'/><stop offset='1' stop-color='%2386a3c4'/></linearGradient><radialGradient id='eng' cx='0.4' cy='0.35' r='0.85'><stop offset='0' stop-color='%23dce7f3'/><stop offset='1' stop-color='%237e9bbd'/></radialGradient><linearGradient id='tail' x1='0' y1='1' x2='0' y2='0'><stop offset='0' stop-color='%239fbada'/><stop offset='1' stop-color='%23d9e6f4'/></linearGradient></defs><g transform='rotate(-11 410 230)'><path d='M168 236 L132 148 L186 168 L214 230 Z' fill='url(%23tail)'/><path d='M168 250 L120 234 L168 222 L222 246 Z' fill='url(%23wg2)'/><path d='M455 224 L388 150 L470 198 L545 228 Z' fill='%23aec6e0'/><path d='M455 256 L338 366 L420 274 L548 256 Z' fill='url(%23wg)'/><path d='M455 256 L338 366 L372 322 L455 262 Z' fill='%237f9cbd' opacity='0.45'/><path d='M140 236 C170 230 210 226 250 224 C440 214 620 208 712 218 C734 220 746 228 746 236 C746 244 734 252 712 254 C620 264 440 258 250 248 C210 246 170 242 140 236 Z' fill='url(%23fus)' stroke='%239bb6d4' stroke-width='1.4'/><path d='M250 226 C440 217 620 211 710 219 C620 222 440 229 252 236 Q250 231 250 226 Z' fill='%23ffffff' opacity='0.55'/><rect x='250' y='230' width='430' height='3.4' rx='1.7' fill='%232563eb' opacity='0.55'/><rect x='262' y='234' width='400' height='6.4' rx='3.2' fill='%232a456b' opacity='0.8'/><path d='M706 224 C722 227 732 231 735 236 C726 237 716 235 706 231 Z' fill='%2322405f'/><ellipse cx='430' cy='276' rx='40' ry='18' fill='url(%23eng)'/><ellipse cx='466' cy='276' rx='10' ry='15' fill='%23243a55'/><ellipse cx='430' cy='268' rx='26' ry='6' fill='%23ffffff' opacity='0.45'/><path d='M250 250 C440 260 620 258 706 250' fill='none' stroke='%2386a1bf' stroke-width='3' opacity='0.35'/></g></svg>") no-repeat center / contain;
}

/* 3. Text colors */
#login-overlay .hero-title,
#login-overlay .hero-block h1 {
  color: #1e293b;
}
#login-overlay .hero-block h1 span,
#login-overlay .highlight {
  color: #2563eb;
}
#login-overlay .hero-subtext,
#login-overlay .hero-block p {
  color: #475569;
  opacity: 1;
}
#login-overlay .micro-badge {
  color: #64748b;
}
#login-overlay .hero-checklist {
  color: #334155;
  opacity: 1;
}

/* 4. Navbar */
#login-overlay .ayaz-topbar {
  background: #0f172a;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 2px 12px rgba(15,23,42,0.18);
}
#login-overlay .ayaz-topbar-btn {
  color: #ffffff;
}
#login-overlay .ayaz-topbar-btn:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.2);
  color: #ffffff;
  box-shadow: none;
}
#login-overlay .brand-sub {
  color: #94a3b8;
}
/* brand logo keeps its green/teal colour (var(--primary)) */

/* 5. Pricing cards */
#login-overlay .plan-box,
#login-overlay .core-box,
#login-overlay .pro-box,
#login-overlay .master-box {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  box-shadow: 0 15px 35px rgba(37,99,235,0.15);
  opacity: 1;
}
#login-overlay .plan-box:hover,
#login-overlay .core-box:hover,
#login-overlay .pro-box:hover,
#login-overlay .master-box:hover {
  border-color: #93b4f5;
  box-shadow: 0 18px 40px rgba(37,99,235,0.22);
}
#login-overlay .plan-title,
#login-overlay .master-box .plan-title {
  color: #1e293b;
}
#login-overlay .plan-badge {
  background: #2563eb;
  color: #ffffff;
}
#login-overlay .pro-box .plan-badge {
  background: #f97316;
  color: #ffffff;
}
#login-overlay .usd-price,
#login-overlay .new-price {
  color: #1e293b;
}
#login-overlay .old-price {
  color: #94a3b8;
}
#login-overlay .plan-cycle {
  color: #64748b;
}
#login-overlay .plan-value {
  color: #16a34a;
}
#login-overlay .limited-slots {
  color: #ea580c;
}
#login-overlay .plan-note {
  color: #64748b;
  opacity: 1;
}
#login-overlay .plan-divider {
  background: #e2e8f0;
}
#login-overlay .plan-box li {
  color: #334155;
  opacity: 1;
}
#login-overlay .plan-box li.more-item {
  color: #64748b;
  opacity: 1;
}

/* 6. Buttons */
#login-overlay .plan-cta button {
  background: #2563eb;
  color: #ffffff;
}
#login-overlay .plan-cta button:hover {
  background: #1d4ed8;
}
#login-overlay .demo-btn,
#login-overlay .demo-primary,
#login-overlay .login-card .demo-btn {
  background: #ffffff;
  border: 1px solid #2563eb;
  color: #2563eb;
  box-shadow: none;
}
#login-overlay .demo-btn:hover,
#login-overlay .demo-primary:hover {
  background: #eff6ff;
  color: #2563eb;
  box-shadow: none;
}
#login-overlay .secondary-action,
#login-overlay .login-card .login-btn,
#login-overlay .mobile-login-btn {
  background: #f97316;
  border: 1px solid #f97316;
  color: #ffffff;
}
#login-overlay .secondary-action:hover,
#login-overlay .login-card .login-btn:hover,
#login-overlay .mobile-login-btn:hover {
  background: #ea580c;
  border-color: #ea580c;
  color: #ffffff;
}

/* 7. Login panel */
#login-overlay .login-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 10px 25px rgba(0,0,0,0.06);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
#login-overlay .login-heading,
#login-overlay .login-card h2 {
  color: #1e293b;
}
#login-overlay .login-card label,
#login-overlay .login-row label {
  color: #334155 !important;
}
#login-overlay .login-card .login-input {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #1e293b;
}
#login-overlay .login-card .login-input:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37,99,235,0.15);
}
#login-overlay .login-card .login-input::placeholder {
  color: #94a3b8;
}
#login-overlay .login-features-compact {
  color: #475569;
  opacity: 1;
}
#login-overlay .login-divider span {
  color: #64748b;
}
#login-overlay .login-divider::before,
#login-overlay .login-divider::after {
  background: #e2e8f0;
}
/* login brand keeps its green/teal colour (var(--primary)) */

/* Disclaimer notice — keep amber accent, make body text readable on white */
#login-overlay .disclaimer-content p,
#login-overlay .disclaimer-checkbox-label span {
  color: #64748b;
}

/* Footer */
#login-overlay .footer-links a {
  color: #475569;
}
#login-overlay .footer-links a:hover {
  color: #2563eb;
}
#login-overlay .footer-sep,
#login-overlay .footer-trust,
#login-overlay .footer-copy {
  color: #94a3b8;
}
#login-overlay .lang-btn {
  background: #eff6ff;
  color: #2563eb;
  border: 1px solid #bfdbfe;
}
#login-overlay .lang-btn:hover,
#login-overlay .lang-btn.active {
  background: #2563eb;
  color: #ffffff;
}

/* 8. Accent / check icons — replace neon green with blue */
#login-overlay .feature-list div::before {
  color: #2563eb;
}

/* =========================================================
   LANDING PAGE — CONVERSION + READABILITY PASS (visual only)
   ========================================================= */

/* Emotional trigger line below the headline */
#login-overlay .hero-tagline {
  color: #475569;
  font-size: 13px;
  margin-top: 10px;
  margin-bottom: 0;
  line-height: 1.5;
  font-weight: 500;
}

/* Text spacing / readability */
#login-overlay .hero-title {
  line-height: 1.2;
}
#login-overlay .hero-subtext {
  line-height: 1.6;
}
#login-overlay .feature-list {
  line-height: 1.8;
}

/* Highlight middle "MOST POPULAR" pricing card */
#login-overlay .pro-box {
  transform: scale(1.05);
  border: 2px solid #2563eb;
  box-shadow: 0 15px 35px rgba(37,99,235,0.15);
}
#login-overlay .pro-box:hover {
  transform: scale(1.05);
  border-color: #2563eb;
  box-shadow: 0 15px 35px rgba(37,99,235,0.22);
}

/* Stronger primary CTA ("Get Instant Access") */
#login-overlay .secondary-action,
#login-overlay .login-card .login-btn,
#login-overlay .mobile-login-btn {
  font-weight: 700;
  box-shadow: 0 8px 18px rgba(249,115,22,0.28);
}

/* =========================================================
   PRICING — USD-only clean layout
   ========================================================= */
/* Card top label (small, muted) */
#login-overlay .plan-title {
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
/* Card title */
#login-overlay .plan-name {
  margin: 4px 0 6px 0;
  font-size: 15px;
  font-weight: 700;
  color: #1e293b;
  line-height: 1.2;
}

/* =========================================================
   SEAT MAP MODAL STYLES (LIGHT THEME)
   ========================================================= */
.seat-map-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.seat-map-modal-content {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  max-width: 1200px;
  width: 100%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.seat-map-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid #e5e7eb;
  background: #ffffff;
}

.seat-map-modal-header h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: #1f2937;
  letter-spacing: 0.5px;
}

.seat-map-close-btn {
  background: transparent;
  border: none;
  color: #6b7280;
  font-size: 28px;
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.seat-map-close-btn:hover {
  background: #f3f4f6;
  color: #1f2937;
}

/* Loading Spinner */
.seat-map-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  min-height: 400px;
  background: #ffffff;
}

.seat-map-spinner {
  width: 50px;
  height: 50px;
  border: 3px solid #e5e7eb;
  border-top-color: #00b4d8;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 20px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.seat-map-loading p {
  color: #6b7280;
  font-size: 14px;
  margin: 0;
}

/* Seat Map Content */
.seat-map-content {
  display: flex;
  flex-direction: column;
  flex: 1;
  overflow: hidden;
  background: #ffffff;
}

/* Tabs */
.seat-map-tabs {
  display: flex;
  gap: 4px;
  padding: 12px 24px;
  border-bottom: 1px solid #e5e7eb;
  background: #f9fafb;
}

.seat-map-tab {
  background: transparent;
  border: none;
  color: #6b7280;
  padding: 8px 16px;
  font-size: 13px;
  cursor: pointer;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.seat-map-tab:hover {
  background: #f3f4f6;
  color: #1f2937;
}

.seat-map-tab.active {
  background: #00b4d8;
  color: #ffffff;
  font-weight: 600;
}

/* Segment Dropdown */
.seat-map-segment-section {
  padding: 12px 24px;
  border-bottom: 1px solid #e5e7eb;
  background: #f9fafb;
}

.seat-map-segment-dropdown {
  font-size: 13px;
  color: #1f2937;
  font-weight: 500;
  letter-spacing: 0.3px;
}

/* Main Content Area */
.seat-map-main {
  display: flex;
  flex: 1;
  overflow: hidden;
  background: #ffffff;
}

.seat-map-left {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
  border-right: 1px solid #e5e7eb;
  background: #ffffff;
}

.seat-map-right {
  width: 320px;
  padding: 20px;
  background: #f9fafb;
  display: flex;
  flex-direction: column;
}

/* Right Panel Tabs */
.seat-map-right-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 16px;
}

.seat-map-right-tab {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  color: #6b7280;
  padding: 6px 12px;
  font-size: 12px;
  cursor: pointer;
  border-radius: 4px;
  transition: all 0.2s ease;
  flex: 1;
}

.seat-map-right-tab:hover {
  border-color: #d1d5db;
  color: #1f2937;
}

.seat-map-right-tab.active {
  background: #00b4d8;
  border-color: #00b4d8;
  color: #ffffff;
}

/* Passengers Panel */
.seat-map-passengers {
  flex: 1;
  overflow-y: auto;
}

.seat-map-passenger {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  margin-bottom: 8px;
  background: #ffffff;
  transition: all 0.2s ease;
  cursor: pointer;
}

.seat-map-passenger:hover {
  background: #f9fafb;
  border-color: #d1d5db;
}

.seat-map-passenger.selected {
  background: #e0f7fa;
  border-color: #00b4d8;
}

.seat-map-passenger input[type="checkbox"] {
  width: 16px;
  height: 16px;
  cursor: pointer;
  accent-color: #00b4d8;
}

.seat-map-passenger label {
  flex: 1;
  font-size: 13px;
  color: #1f2937;
  cursor: pointer;
  user-select: none;
}

.passenger-seat-display {
  font-size: 12px;
  color: #00b4d8;
  font-weight: 600;
}

/* Graphical Seat Map */
.seat-map-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.aircraft-info {
  text-align: center;
  padding: 12px;
  background: #f9fafb;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
}

.aircraft-name {
  font-size: 14px;
  font-weight: 600;
  color: #00b4d8;
  letter-spacing: 0.5px;
}

.seat-map-headers {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 8px;
  background: #f9fafb;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
}

.seat-column-header {
  width: 36px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
  color: #6b7280;
  background: #ffffff;
  border-radius: 4px;
  border: 1px solid #e5e7eb;
}

.seat-map-rows {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: center;
}

.seat-map-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.seat-aisle-gap {
  width: 40px;
  height: 32px;
}

/* Individual Seat */
.seat {
  width: 36px;
  height: 32px;
  border: 2px solid #d1d5db;
  border-radius: 6px;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}

.seat:hover {
  transform: scale(1.1);
  z-index: 10;
  border-color: #00b4d8;
}

.seat-number {
  font-size: 11px;
  font-weight: 600;
  color: #1f2937;
}

.seat-price-marker {
  position: absolute;
  top: -8px;
  right: -8px;
  background: #f97316;
  color: white;
  font-size: 8px;
  font-weight: 600;
  padding: 2px 4px;
  border-radius: 4px;
  white-space: nowrap;
}

/* Seat States */
.seat-available {
  border-color: #d1d5db;
  background: #ffffff;
}

.seat-available:hover {
  border-color: #00b4d8;
  background: #e0f7fa;
}

.seat-occupied {
  border-color: #fca5a5;
  background: #fef2f2;
  cursor: not-allowed;
  opacity: 0.7;
}

.seat-blocked {
  border-color: #d1d5db;
  background: #f3f4f6;
  cursor: not-allowed;
  opacity: 0.5;
}

.seat-chargeable {
  border-color: #f97316;
  background: #fff7ed;
}

.seat-chargeable:hover {
  border-color: #ea580c;
  background: #ffedd5;
}

.seat-selected {
  border-color: #00b4d8;
  background: #e0f7fa;
  box-shadow: 0 0 12px rgba(0, 180, 216, 0.4);
}

/* Legend */
.seat-map-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  padding: 12px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  justify-content: center;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: #6b7280;
}

.legend-seat {
  width: 20px;
  height: 18px;
  border: 2px solid #d1d5db;
  border-radius: 4px;
  background: #ffffff;
}

.legend-seat.seat-available {
  border-color: #d1d5db;
  background: #ffffff;
}

.legend-seat.seat-occupied {
  border-color: #fca5a5;
  background: #fef2f2;
}

.legend-seat.seat-blocked {
  border-color: #d1d5db;
  background: #f3f4f6;
}

.legend-seat.seat-chargeable {
  border-color: #f97316;
  background: #fff7ed;
}

.legend-seat.seat-selected {
  border-color: #00b4d8;
  background: #e0f7fa;
}

/* Message Area */
.seat-map-message {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: #ffffff;
  border: 1px solid #00b4d8;
  border-radius: 8px;
  padding: 12px 24px;
  color: #00b4d8;
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  z-index: 100;
}

/* Seat Popup */
.seat-popup {
  position: fixed;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 16px;
  min-width: 280px;
  max-width: 320px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  z-index: 10001;
  pointer-events: none;
}

.seat-popup-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid #e5e7eb;
}

.seat-popup-header strong {
  font-size: 13px;
  color: #00b4d8;
  letter-spacing: 0.5px;
}

.seat-popup-seat-number {
  font-size: 14px;
  font-weight: 700;
  color: #1f2937;
}

.seat-popup-section {
  margin-bottom: 12px;
}

.seat-popup-section:last-child {
  margin-bottom: 0;
}

.seat-popup-section-title {
  font-size: 10px;
  color: #6b7280;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 4px;
  font-weight: 600;
}

.seat-popup-section > div {
  font-size: 12px;
  color: #1f2937;
  line-height: 1.4;
}

/* Seat Map Actions */
.seat-map-actions {
  display: flex;
  gap: 12px;
  padding: 20px 24px;
  border-top: 1px solid #e5e7eb;
  background: #ffffff;
  justify-content: flex-end;
}

.seat-map-confirm-btn {
  background: #10b981;
  color: #ffffff;
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.seat-map-confirm-btn:hover {
  background: #059669;
}

.seat-map-confirm-btn:disabled {
  background: #9ca3af;
  cursor: not-allowed;
}

.seat-map-cancel-btn {
  background: #ffffff;
  color: #6b7280;
  border: 1px solid #d1d5db;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.seat-map-cancel-btn:hover {
  background: #f3f4f6;
  border-color: #9ca3af;
}

/* Responsive */
@media (max-width: 768px) {
  .seat-map-modal-content {
    max-height: 95vh;
    border-radius: 12px;
  }
  
  .seat-map-main {
    flex-direction: column;
  }
  
  .seat-map-left {
    border-right: none;
    border-bottom: 1px solid #e5e7eb;
    max-height: 50vh;
  }
  
  .seat-map-right {
    width: 100%;
    max-height: 40vh;
  }
  
  .seat-map-modal-header h2 {
    font-size: 14px;
  }
  
  .seat {
    width: 32px;
    height: 28px;
  }
  
  .seat-column-header {
    width: 32px;
  }
  
  .seat-aisle-gap {
    width: 24px;
  }
}/* "Best value" small text under price */
#login-overlay .plan-value {
  margin-top: 4px;
  color: #16a34a;
  font-weight: 700;
}
/* Description line under price */
#login-overlay .plan-note {
  margin-top: 4px;
  color: #64748b;
  opacity: 1;
}
/* Support email line in the login footer */
#login-overlay .footer-support {
  margin-top: 4px;
  font-size: 11px;
  color: #475569;
}
#login-overlay .footer-support a {
  color: #2563eb;
  text-decoration: none;
  font-weight: 600;
}
#login-overlay .footer-support a:hover {
  text-decoration: underline;
}

/* USD-only disclaimer note below the pricing cards */
#login-overlay .pricing-disclaimer {
  max-width: 800px;
  margin: 14px auto 0;
  text-align: center;
  font-size: 11px;
  line-height: 1.5;
  color: #64748b;
}


/* =========================================================================
   PREMIUM SAAS ADMIN DASHBOARD  (scoped to #adminPanel.premium-admin)
   Added by UI upgrade. Does not affect the rest of the app.
   ========================================================================= */
#adminPanel.premium-admin{
  position:fixed; inset:0; width:100vw; height:100vh;
  max-width:100vw; max-height:100vh; top:0; left:0; right:0; bottom:0;
  transform:none !important; margin:0; padding:0;
  border:none; border-radius:0; background:rgba(4,6,12,0.74);
  -webkit-backdrop-filter:blur(6px); backdrop-filter:blur(6px);
  display:flex; align-items:center; justify-content:center;
  z-index:9000; overflow:hidden; resize:none; min-width:0; min-height:0;
}
#adminPanel.premium-admin.hidden{ display:none !important; }

#adminPanel.premium-admin *{ box-sizing:border-box; }

.pa-shell{
  width:95vw; height:92vh; max-width:1600px;
  display:grid; grid-template-columns:262px 1fr;
  background:#0B1020; color:#F8FAFC;
  border:1px solid rgba(255,255,255,0.08); border-radius:18px;
  overflow:hidden; box-shadow:0 40px 120px rgba(0,0,0,0.6);
  font-family:'Inter',system-ui,-apple-system,'Segoe UI',Roboto,sans-serif;
  position:relative;
}

/* ---------------- Sidebar ---------------- */
.pa-sidebar{
  background:linear-gradient(180deg,#0A0E1A 0%,#0B1020 100%);
  border-right:1px solid rgba(255,255,255,0.08);
  display:flex; flex-direction:column; min-height:0;
}
.pa-brand{ display:flex; align-items:center; gap:12px; padding:20px 20px 18px; }
.pa-brand-mark{
  width:38px; height:38px; border-radius:11px; display:flex; align-items:center; justify-content:center;
  font-weight:800; font-size:18px; color:#fff;
  background:linear-gradient(135deg,#6366F1 0%,#7C3AED 100%);
  box-shadow:0 6px 18px rgba(99,102,241,0.4);
}
.pa-brand-text{ display:flex; flex-direction:column; line-height:1.15; }
.pa-brand-title{ font-weight:700; font-size:15px; letter-spacing:.3px; }
.pa-brand-sub{ font-size:11px; color:#94A3B8; }

.pa-nav{ flex:1; overflow-y:auto; padding:6px 12px; }
.pa-nav-group{ margin-bottom:14px; }
.pa-nav-label{
  display:block; font-size:10px; text-transform:uppercase; letter-spacing:.12em;
  color:#64748B; padding:6px 10px; font-weight:600;
}
.pa-nav-item{
  width:100%; display:flex; align-items:center; gap:11px;
  padding:9px 11px; margin:2px 0; border:none; cursor:pointer;
  background:transparent; color:#94A3B8; font-size:13.5px; font-weight:500;
  border-radius:10px; text-align:left; transition:all .15s ease; font-family:inherit;
}
.pa-nav-item:hover{ background:rgba(255,255,255,0.05); color:#E2E8F0; }
.pa-nav-item.active{
  background:linear-gradient(135deg,rgba(99,102,241,0.22),rgba(124,58,237,0.18));
  color:#fff; box-shadow:inset 0 0 0 1px rgba(99,102,241,0.35);
}
.pa-nav-item.active .pa-nav-ico{ filter:none; }
.pa-nav-ico{ font-size:15px; width:18px; text-align:center; }

.pa-sidebar-foot{ padding:14px; border-top:1px solid rgba(255,255,255,0.07); }
.pa-profile-chip{ display:flex; align-items:center; gap:11px; padding:8px; border-radius:12px; background:rgba(255,255,255,0.03); }
.pa-avatar{
  width:34px; height:34px; border-radius:50%; display:flex; align-items:center; justify-content:center;
  font-weight:700; font-size:14px; color:#fff; flex:none;
  background:linear-gradient(135deg,#6366F1,#7C3AED);
}
.pa-profile-info{ display:flex; flex-direction:column; line-height:1.2; overflow:hidden; }
.pa-profile-name{ font-size:13px; font-weight:600; color:#F8FAFC; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.pa-profile-role{ font-size:11px; color:#22C55E; }

.pa-backdrop{ display:none; }

/* ---------------- Main ---------------- */
.pa-main{ display:flex; flex-direction:column; min-width:0; min-height:0; background:#070A12; }

.pa-topbar{
  display:flex; align-items:center; gap:14px; padding:14px 20px;
  border-bottom:1px solid rgba(255,255,255,0.08);
  background:rgba(11,16,32,0.7); -webkit-backdrop-filter:blur(8px); backdrop-filter:blur(8px);
  flex:none;
}
.pa-menu-toggle{ display:none; }
.pa-search{
  flex:1; max-width:460px; display:flex; align-items:center; gap:9px;
  background:#111827; border:1px solid rgba(255,255,255,0.08); border-radius:11px;
  padding:9px 13px;
}
.pa-search-ico{ font-size:13px; opacity:.6; }
.pa-search input{
  flex:1; background:transparent; border:none; outline:none;
  color:#F8FAFC; font-size:13.5px; font-family:inherit;
}
.pa-search input::placeholder{ color:#64748B; }
.pa-topbar-actions{ display:flex; align-items:center; gap:10px; margin-left:auto; }

.pa-date-select{
  background:#111827; color:#E2E8F0; border:1px solid rgba(255,255,255,0.08);
  border-radius:10px; padding:9px 12px; font-size:13px; cursor:pointer; font-family:inherit; outline:none;
}
.pa-date-select option{ background:#111827; color:#E2E8F0; }

.pa-btn{
  display:inline-flex; align-items:center; gap:7px; cursor:pointer;
  border:1px solid transparent; border-radius:10px; padding:9px 15px;
  font-size:13px; font-weight:600; font-family:inherit; transition:all .15s ease; white-space:nowrap;
}
.pa-btn span{ font-size:13px; line-height:1; }
.pa-btn-primary{ background:linear-gradient(135deg,#6366F1,#7C3AED); color:#fff; box-shadow:0 6px 18px rgba(99,102,241,0.32); }
.pa-btn-primary:hover{ filter:brightness(1.08); transform:translateY(-1px); }
.pa-btn-ghost{ background:#111827; color:#CBD5E1; border-color:rgba(255,255,255,0.09); }
.pa-btn-ghost:hover{ background:#151B2E; color:#fff; border-color:rgba(255,255,255,0.18); }
.pa-btn-danger-ghost{ background:rgba(239,68,68,0.08); color:#F87171; border-color:rgba(239,68,68,0.28); }
.pa-btn-danger-ghost:hover{ background:rgba(239,68,68,0.16); color:#fff; }

.pa-icon-btn{
  width:38px; height:38px; border-radius:10px; display:inline-flex; align-items:center; justify-content:center;
  background:#111827; border:1px solid rgba(255,255,255,0.08); color:#CBD5E1; cursor:pointer; font-size:15px; transition:all .15s ease;
}
.pa-icon-btn:hover{ background:#151B2E; color:#fff; }
.pa-close:hover{ background:rgba(239,68,68,0.18); color:#fff; border-color:rgba(239,68,68,0.4); }

.pa-content{ flex:1; overflow-y:auto; padding:26px 30px 40px; min-height:0; }
.pa-view{ animation:paFade .25s ease; }
.pa-view[hidden]{ display:none; }
@keyframes paFade{ from{opacity:0; transform:translateY(6px);} to{opacity:1; transform:none;} }

.pa-view-head{ display:flex; align-items:flex-end; justify-content:space-between; gap:16px; margin-bottom:22px; flex-wrap:wrap; }
.pa-h1{ font-size:24px; font-weight:700; margin:0; color:#F8FAFC; letter-spacing:-.02em; }
.pa-sub{ font-size:13.5px; color:#94A3B8; margin:4px 0 0; }
.pa-h2{ font-size:16px; font-weight:700; margin:0; color:#F8FAFC; }
.pa-section-head{ display:flex; align-items:center; justify-content:space-between; margin:30px 0 14px; gap:12px; }
.pa-source{ font-size:12px; color:#64748B; }
.pa-view-actions{ display:flex; gap:9px; flex-wrap:wrap; }

.pa-badge-row{ display:flex; gap:9px; flex-wrap:wrap; }
.pa-mini-badge{
  background:#111827; border:1px solid rgba(255,255,255,0.08); color:#CBD5E1;
  padding:6px 12px; border-radius:20px; font-size:12px; font-weight:600;
}
.pa-mini-badge.accent{ background:rgba(99,102,241,0.14); border-color:rgba(99,102,241,0.35); color:#C7D2FE; }

/* ---------------- KPI hero cards ---------------- */
.pa-kpi-grid{ display:grid; grid-template-columns:repeat(6,1fr); gap:16px; margin-bottom:24px; }
.pa-kpi{
  position:relative; overflow:hidden; padding:18px; border-radius:16px;
  background:linear-gradient(160deg,#151B2E 0%,#111827 100%);
  border:1px solid rgba(255,255,255,0.08); min-height:126px;
  display:flex; flex-direction:column; justify-content:space-between;
  transition:transform .18s ease, box-shadow .18s ease;
}
.pa-kpi:hover{ transform:translateY(-3px); box-shadow:0 16px 40px rgba(0,0,0,0.4); }
.pa-kpi::after{ content:""; position:absolute; top:-40px; right:-40px; width:120px; height:120px; border-radius:50%; opacity:.16; filter:blur(6px); }
.pa-kpi-indigo::after{ background:#6366F1; } .pa-kpi-violet::after{ background:#7C3AED; }
.pa-kpi-emerald::after{ background:#22C55E; } .pa-kpi-blue::after{ background:#3B82F6; }
.pa-kpi-amber::after{ background:#F59E0B; } .pa-kpi-rose::after{ background:#EF4444; }
.pa-kpi-top{ display:flex; align-items:center; justify-content:space-between; }
.pa-kpi-ico{ font-size:20px; }
.pa-kpi-trend{ font-size:10.5px; font-weight:700; padding:3px 8px; border-radius:20px; text-transform:uppercase; letter-spacing:.05em; }
.pa-kpi-trend.up{ background:rgba(34,197,94,0.15); color:#4ADE80; }
.pa-kpi-trend.down{ background:rgba(245,158,11,0.15); color:#FBBF24; }
.pa-kpi-value{ font-size:26px; font-weight:800; letter-spacing:-.02em; color:#F8FAFC; margin-top:6px; word-break:break-word; }
.pa-kpi-label{ font-size:12px; color:#94A3B8; margin-top:2px; }

/* ---------------- Cards ---------------- */
.pa-card{ background:#111827; border:1px solid rgba(255,255,255,0.08); border-radius:16px; padding:20px; }
.pa-two-col{ display:grid; grid-template-columns:1.7fr 1fr; gap:16px; margin-bottom:8px; }
.pa-card-head{ display:flex; align-items:flex-start; justify-content:space-between; gap:12px; margin-bottom:16px; }
.pa-card-title{ font-size:15px; font-weight:700; margin:0; color:#F8FAFC; }
.pa-card-sub{ font-size:12px; color:#94A3B8; margin:3px 0 0; }
.pa-chart-wrap{ position:relative; height:240px; }
.pa-chart-wrap-sm{ height:240px; }
.pa-chart-wrap canvas{ position:relative; z-index:2; max-height:100%; }
.pa-chart-fallback{ position:absolute; inset:auto 0 0 0; height:100%; display:flex; align-items:flex-end; gap:10px; padding:10px 4px 0; z-index:1; opacity:.35; }
.pa-chart-fallback span{ flex:1; background:linear-gradient(180deg,#6366F1,#7C3AED); border-radius:6px 6px 0 0; }

/* ---------------- Intelligence cards ---------------- */
.pa-intel-grid{ display:grid; grid-template-columns:repeat(6,1fr); gap:14px; }
.pa-intel-card{ display:flex; align-items:center; gap:12px; background:#111827; border:1px solid rgba(255,255,255,0.08); border-radius:14px; padding:15px; }
.pa-intel-ico{ width:40px; height:40px; border-radius:11px; display:flex; align-items:center; justify-content:center; font-size:18px; flex:none; }
.pa-intel-ico.blue{ background:rgba(59,130,246,0.15);} .pa-intel-ico.slate{ background:rgba(148,163,184,0.15);}
.pa-intel-ico.emerald{ background:rgba(34,197,94,0.15);} .pa-intel-ico.amber{ background:rgba(245,158,11,0.15);}
.pa-intel-ico.violet{ background:rgba(124,58,237,0.15);} .pa-intel-ico.rose{ background:rgba(239,68,68,0.15);}
.pa-intel-value{ font-size:18px; font-weight:800; color:#F8FAFC; }
.pa-intel-label{ font-size:11.5px; color:#94A3B8; margin-top:1px; }

/* ---------------- Metric grid (revenue view) ---------------- */
.pa-metric-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:14px; }
.pa-metric{ background:#111827; border:1px solid rgba(255,255,255,0.08); border-radius:14px; padding:16px; }
.pa-metric-label{ font-size:12px; color:#94A3B8; }
.pa-metric-value{ font-size:20px; font-weight:800; color:#F8FAFC; margin-top:6px; word-break:break-word; }

/* ---------------- Filters ---------------- */
.pa-filters{ display:flex; align-items:center; gap:10px; flex-wrap:wrap; margin-bottom:12px; }
.pa-select{
  background:#111827; color:#E2E8F0; border:1px solid rgba(255,255,255,0.09);
  border-radius:10px; padding:9px 12px; font-size:13px; cursor:pointer; font-family:inherit; outline:none;
}
.pa-select option{ background:#111827; }
.pa-toggle{ display:flex; align-items:center; gap:7px; font-size:12.5px; color:#94A3B8; cursor:pointer; user-select:none; }
.pa-toggle input{ width:15px; height:15px; accent-color:#6366F1; cursor:pointer; }
.pa-ml-auto{ margin-left:auto; }
.pa-hint-row{ display:flex; gap:14px; flex-wrap:wrap; margin-bottom:14px; min-height:16px; }
.pa-hint{ font-size:11.5px; color:#F59E0B; }

/* ---------------- Table ---------------- */
.pa-table-card{ padding:0; overflow:hidden; }
.pa-table-scroll{ overflow-x:auto; }
#adminPanel.premium-admin table.admin-users-table.premium.pa-table{
  width:100%; border-collapse:separate; border-spacing:0; background:transparent; margin:0; min-width:1080px;
}
#adminPanel.premium-admin .pa-table thead th{
  background:#0E1424; color:#94A3B8; font-size:11px; text-transform:uppercase; letter-spacing:.06em;
  font-weight:700; text-align:left; padding:14px 16px; border-bottom:1px solid rgba(255,255,255,0.08); white-space:nowrap;
}
#adminPanel.premium-admin .pa-table tbody td{
  padding:14px 16px; border-bottom:1px solid rgba(255,255,255,0.05); font-size:13px; color:#CBD5E1; vertical-align:middle;
}
#adminPanel.premium-admin .pa-table tbody tr{ transition:background .12s ease; }
#adminPanel.premium-admin .pa-table tbody tr:hover td{ background:rgba(255,255,255,0.03); }
#adminPanel.premium-admin .pa-table tbody tr:last-child td{ border-bottom:none; }
.pa-th-actions{ text-align:right !important; width:70px; }
.pa-table-loading{ text-align:center; padding:50px 0 !important; color:#64748B; }

#adminPanel.premium-admin .user-cell{ display:flex; align-items:center; gap:11px; }
#adminPanel.premium-admin .user-avatar{
  width:36px; height:36px; border-radius:50%; flex:none; display:flex; align-items:center; justify-content:center;
  font-weight:700; font-size:14px; color:#fff; background:linear-gradient(135deg,#6366F1,#7C3AED);
}
#adminPanel.premium-admin .user-info{ display:flex; flex-direction:column; line-height:1.3; min-width:0; }
#adminPanel.premium-admin .user-email{ font-size:13px; font-weight:600; color:#F1F5F9; max-width:220px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
#adminPanel.premium-admin .user-id{ font-size:11px; color:#64748B; }

#adminPanel.premium-admin .role-badge,
#adminPanel.premium-admin .plan-badge,
#adminPanel.premium-admin .status-badge,
#adminPanel.premium-admin .user-stage-tag,
#adminPanel.premium-admin .value-badge{
  display:inline-flex; align-items:center; padding:4px 10px; border-radius:20px;
  font-size:11px; font-weight:700; letter-spacing:.03em; white-space:nowrap;
}
#adminPanel.premium-admin .role-badge.admin-role{ background:rgba(124,58,237,0.18); color:#C4B5FD; }
#adminPanel.premium-admin .role-badge.agent-role{ background:rgba(148,163,184,0.14); color:#CBD5E1; }
#adminPanel.premium-admin .plan-badge.pro{ background:rgba(99,102,241,0.18); color:#C7D2FE; }
#adminPanel.premium-admin .plan-badge.core{ background:rgba(59,130,246,0.16); color:#93C5FD; }
#adminPanel.premium-admin .plan-badge.master{ background:rgba(245,158,11,0.16); color:#FCD34D; }
#adminPanel.premium-admin .plan-badge.admin{ background:rgba(124,58,237,0.18); color:#C4B5FD; }
#adminPanel.premium-admin .plan-badge.demo,
#adminPanel.premium-admin .plan-badge.free{ background:rgba(148,163,184,0.14); color:#94A3B8; }
#adminPanel.premium-admin .status-badge.active{ background:rgba(34,197,94,0.16); color:#4ADE80; }
#adminPanel.premium-admin .status-badge.offline{ background:rgba(148,163,184,0.14); color:#94A3B8; }
#adminPanel.premium-admin .status-badge.blocked{ background:rgba(239,68,68,0.16); color:#F87171; }
#adminPanel.premium-admin .session-indicator{ display:inline-flex; align-items:center; gap:7px; font-size:12px; color:#CBD5E1; }
#adminPanel.premium-admin .session-dot{ width:8px; height:8px; border-radius:50%; background:#22C55E; box-shadow:0 0 0 3px rgba(34,197,94,0.18); }
#adminPanel.premium-admin .session-dot.inactive{ background:#64748B; box-shadow:none; }
#adminPanel.premium-admin .user-stage-tag.stage-green{ background:rgba(34,197,94,0.14); color:#4ADE80; }
#adminPanel.premium-admin .user-stage-tag.stage-blue{ background:rgba(59,130,246,0.14); color:#93C5FD; }
#adminPanel.premium-admin .user-stage-tag.stage-orange{ background:rgba(245,158,11,0.14); color:#FCD34D; }
#adminPanel.premium-admin .user-stage-tag.stage-gray{ background:rgba(148,163,184,0.12); color:#94A3B8; }
#adminPanel.premium-admin .value-badge.high-value{ background:rgba(239,68,68,0.14); color:#FCA5A5; }
#adminPanel.premium-admin .value-badge.needs-attention{ background:rgba(245,158,11,0.14); color:#FCD34D; }
#adminPanel.premium-admin .value-badge.inactive{ background:rgba(148,163,184,0.12); color:#94A3B8; }

/* ---------------- Row action dropdown ---------------- */
.pa-actions{ display:flex; justify-content:flex-end; }
.pa-actions-btn{
  width:32px; height:32px; border-radius:9px; border:1px solid rgba(255,255,255,0.09);
  background:#151B2E; color:#CBD5E1; cursor:pointer; font-size:16px; line-height:1;
  display:inline-flex; align-items:center; justify-content:center; transition:all .12s ease;
}
.pa-actions-btn:hover{ background:#1E273F; color:#fff; border-color:rgba(255,255,255,0.2); }
.pa-menu{
  position:fixed; z-index:12000; min-width:200px; padding:6px;
  background:#151B2E; border:1px solid rgba(255,255,255,0.12); border-radius:12px;
  box-shadow:0 20px 60px rgba(0,0,0,0.55); animation:paFade .12s ease;
}
.pa-menu-item{
  width:100%; display:flex; align-items:center; gap:10px; padding:9px 11px; border:none; cursor:pointer;
  background:transparent; color:#CBD5E1; font-size:13px; font-weight:500; border-radius:8px; text-align:left; font-family:inherit;
}
.pa-menu-item:hover{ background:rgba(255,255,255,0.06); color:#fff; }
.pa-menu-item .mi{ width:16px; text-align:center; font-size:13px; }
.pa-menu-sep{ height:1px; background:rgba(255,255,255,0.08); margin:6px 4px; }
.pa-menu-item.danger{ color:#F87171; }
.pa-menu-item.danger:hover{ background:rgba(239,68,68,0.15); color:#FCA5A5; }

/* ---------------- Toolbars & empty states ---------------- */
.pa-toolbar{ display:flex; gap:10px; flex-wrap:wrap; margin-bottom:18px; }
.pa-empty{ display:flex; flex-direction:column; align-items:center; text-align:center; padding:56px 30px; }
.pa-empty-ico{ font-size:44px; margin-bottom:14px; opacity:.85; }
.pa-empty-title{ font-size:17px; font-weight:700; margin:0 0 8px; color:#F1F5F9; }
.pa-empty-text{ font-size:13.5px; color:#94A3B8; max-width:520px; margin:0 0 20px; line-height:1.6; }

/* ---------------- Toast + confirm modal ---------------- */
.pa-toast-wrap{ position:fixed; top:22px; right:22px; z-index:13000; display:flex; flex-direction:column; gap:10px; }
.pa-toast{
  display:flex; align-items:center; gap:11px; min-width:240px; max-width:380px;
  padding:13px 16px; border-radius:12px; background:#151B2E; color:#F8FAFC;
  border:1px solid rgba(255,255,255,0.1); box-shadow:0 16px 44px rgba(0,0,0,0.5);
  font-size:13.5px; font-family:'Inter',system-ui,sans-serif; animation:paToastIn .22s ease;
}
@keyframes paToastIn{ from{opacity:0; transform:translateX(20px);} to{opacity:1; transform:none;} }
.pa-toast.success{ border-left:3px solid #22C55E; }
.pa-toast.error{ border-left:3px solid #EF4444; }
.pa-toast.info{ border-left:3px solid #6366F1; }
.pa-toast-ico{ font-size:16px; }

.pa-confirm-overlay{
  position:fixed; inset:0; z-index:13500; background:rgba(4,6,12,0.7);
  -webkit-backdrop-filter:blur(3px); backdrop-filter:blur(3px);
  display:flex; align-items:center; justify-content:center; animation:paFade .15s ease;
}
.pa-confirm{
  width:400px; max-width:92vw; background:#111827; border:1px solid rgba(255,255,255,0.12);
  border-radius:16px; padding:24px; box-shadow:0 30px 90px rgba(0,0,0,0.6);
  font-family:'Inter',system-ui,sans-serif; color:#F8FAFC;
}
.pa-confirm-ico{ width:46px; height:46px; border-radius:12px; display:flex; align-items:center; justify-content:center; font-size:22px; background:rgba(239,68,68,0.15); margin-bottom:14px; }
.pa-confirm h3{ margin:0 0 8px; font-size:17px; font-weight:700; }
.pa-confirm p{ margin:0 0 20px; font-size:13.5px; color:#94A3B8; line-height:1.55; }
.pa-confirm-actions{ display:flex; gap:10px; justify-content:flex-end; }
.pa-prompt-input{
  width:100%; background:#0F172A; border:1px solid rgba(255,255,255,0.12);
  border-radius:10px; padding:11px 13px; font-size:14px; color:#F8FAFC;
  margin-bottom:18px; font-family:'Inter',system-ui,sans-serif; outline:none;
  transition:border-color .18s ease,box-shadow .18s ease;
}
.pa-prompt-input:focus{ border-color:#6366F1; box-shadow:0 0 0 3px rgba(99,102,241,0.2); }
.pa-prompt-input::placeholder{ color:#64748B; }

/* ---------------- Responsive ---------------- */
@media (max-width:1200px){
  .pa-kpi-grid{ grid-template-columns:repeat(3,1fr); }
  .pa-intel-grid{ grid-template-columns:repeat(3,1fr); }
  .pa-metric-grid{ grid-template-columns:repeat(3,1fr); }
  .pa-two-col{ grid-template-columns:1fr; }
}
@media (max-width:900px){
  .pa-shell{ grid-template-columns:1fr; width:100vw; height:100vh; max-width:100vw; border-radius:0; border:none; }
  .pa-sidebar{
    position:absolute; top:0; left:0; bottom:0; width:250px; z-index:60;
    transform:translateX(-100%); transition:transform .25s ease;
  }
  .pa-shell.pa-drawer-open .pa-sidebar{ transform:translateX(0); box-shadow:0 0 60px rgba(0,0,0,0.6); }
  .pa-backdrop{ position:absolute; inset:0; z-index:55; background:rgba(0,0,0,0.5); display:none; }
  .pa-shell.pa-drawer-open .pa-backdrop{ display:block; }
  .pa-menu-toggle{ display:inline-flex; }
  .pa-kpi-grid{ grid-template-columns:repeat(2,1fr); }
  .pa-intel-grid{ grid-template-columns:repeat(2,1fr); }
  .pa-metric-grid{ grid-template-columns:repeat(2,1fr); }
  .pa-hide-sm{ display:none; }
  .pa-content{ padding:18px 16px 32px; }
}
@media (max-width:560px){
  .pa-kpi-grid{ grid-template-columns:1fr 1fr; }
  .pa-intel-grid{ grid-template-columns:1fr 1fr; }
  .pa-metric-grid{ grid-template-columns:1fr 1fr; }
  .pa-search{ max-width:none; }
  .pa-h1{ font-size:20px; }
  .pa-kpi-value{ font-size:22px; }
}


/* =========================================================================
   PREMIUM ADMIN — POLISH ADDENDUM (plan distribution, recent users, empty
   states, overflow fixes). Scoped to #adminPanel.premium-admin.
   ========================================================================= */

/* Prevent any horizontal overflow inside the shell */
#adminPanel.premium-admin .pa-content{ overflow-x:hidden; }
#adminPanel.premium-admin .pa-main{ min-width:0; overflow:hidden; }
#adminPanel.premium-admin .pa-kpi,
#adminPanel.premium-admin .pa-card,
#adminPanel.premium-admin .pa-metric,
#adminPanel.premium-admin .pa-intel-card{ min-width:0; }

/* Chart cards: consistent, cleaner heights */
#adminPanel.premium-admin .pa-chart-card{ display:flex; flex-direction:column; }
#adminPanel.premium-admin .pa-chart-wrap{ height:250px; }

/* Plan distribution: donut + legend side by side */
#adminPanel.premium-admin .pa-plan-layout{ display:flex; align-items:center; gap:18px; flex:1; min-width:0; }
#adminPanel.premium-admin .pa-chart-wrap-donut{ position:relative; width:180px; height:180px; flex:none; }
#adminPanel.premium-admin .pa-chart-wrap-donut canvas{ position:relative; z-index:2; }
#adminPanel.premium-admin .pa-plan-legend{ flex:1; min-width:0; display:flex; flex-direction:column; gap:9px; }
#adminPanel.premium-admin .pa-legend-row{ display:flex; align-items:center; gap:10px; font-size:13px; }
#adminPanel.premium-admin .pa-legend-dot{ width:11px; height:11px; border-radius:3px; flex:none; }
#adminPanel.premium-admin .pa-legend-name{ color:#E2E8F0; font-weight:600; }
#adminPanel.premium-admin .pa-legend-val{ margin-left:auto; color:#94A3B8; font-weight:600; font-variant-numeric:tabular-nums; }
#adminPanel.premium-admin .pa-legend-empty{ color:#64748B; font-size:13px; }

/* CSS-only donut fallback */
#adminPanel.premium-admin .pa-chart-donut-fallback{ position:absolute; inset:0; display:none; align-items:center; justify-content:center; z-index:1; }
#adminPanel.premium-admin .pa-css-donut{ width:170px; height:170px; border-radius:50%; display:flex; align-items:center; justify-content:center; }
#adminPanel.premium-admin .pa-css-donut-hole{ width:108px; height:108px; border-radius:50%; background:#111827; display:flex; flex-direction:column; align-items:center; justify-content:center; }
#adminPanel.premium-admin .pa-css-donut-total{ font-size:24px; font-weight:800; color:#F8FAFC; }
#adminPanel.premium-admin .pa-css-donut-label{ font-size:11px; color:#94A3B8; }
#adminPanel.premium-admin .pa-donut-empty{ color:#64748B; font-size:13px; }

/* Recent users table */
#adminPanel.premium-admin .pa-recent-table{ min-width:640px; }
#adminPanel.premium-admin .pa-recent-empty{ text-align:center; padding:34px 0 !important; color:#64748B; }
#adminPanel.premium-admin .pa-recent-table .user-email{ max-width:260px; }
#adminPanel.premium-admin .pa-recent-table tbody td:last-child{ font-weight:600; color:#E2E8F0; font-variant-numeric:tabular-nums; }

/* Small ghost button + section-head button alignment */
#adminPanel.premium-admin .pa-btn-sm{ padding:7px 12px; font-size:12.5px; }
#adminPanel.premium-admin .pa-section-head .pa-btn{ flex:none; }

/* Disabled / coming-soon button */
#adminPanel.premium-admin .pa-btn-disabled{
  background:rgba(255,255,255,0.03); color:#64748B; border:1px dashed rgba(255,255,255,0.14);
  cursor:not-allowed; box-shadow:none;
}
#adminPanel.premium-admin .pa-btn-disabled:hover{ transform:none; filter:none; }
#adminPanel.premium-admin .pa-empty-actions{ display:flex; gap:10px; flex-wrap:wrap; justify-content:center; }

/* Responsive: stack plan donut + legend on narrow widths */
@media (max-width:1200px){
  #adminPanel.premium-admin .pa-chart-wrap-donut{ width:160px; height:160px; }
}
@media (max-width:560px){
  #adminPanel.premium-admin .pa-plan-layout{ flex-direction:column; align-items:stretch; }
  #adminPanel.premium-admin .pa-chart-wrap-donut{ width:150px; height:150px; margin:0 auto; }
}
