/* =========================================================
   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-block h1 {
  font-size: 36px;
  line-height: 1.15;
  font-weight: 700;
  margin: 0 0 8px 0;
  color: var(--text-main);
}

.hero-block h1 span {
  color: var(--primary);
}

.hero-block p {
  font-size: 14px;
  opacity: 0.7;
  margin-top: 8px;
  color: var(--text-soft);
}

.micro-badge {
  font-size: 11px;
  color: #00e5ff;
}

.hero-checklist {
  font-size: 13px;
  line-height: 1.6;
  margin-top: 16px;
  color: var(--text-main);
  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: 12px;
  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: 2px;
  margin-bottom: 8px;
}

.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: 8px 10px;
  margin: 3px 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;
}

/* SIMULATOR DISCLAIMER BOX */
.simulator-disclaimer-box {
  margin-top: 8px;
  padding: 8px 10px;
  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: 4px;
  margin-bottom: 4px;
}

.disclaimer-icon {
  font-size: 14px;
}

.disclaimer-title {
  font-size: 11px;
  font-weight: 700;
  color: #ffa500;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.disclaimer-content {
  margin-bottom: 6px;
}

.disclaimer-content p {
  margin: 0 0 3px 0;
  font-size: 10px;
  color: var(--text-soft);
  line-height: 1.25;
}

.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;
  }

  .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: 6px;
  }

  .header-chip {
    padding: 0 10px;
  }

  .area-tab {
    min-width: 30px;
    padding: 0 10px;
  }

  .settings-dropdown {
    width: 90vw;
    max-width: 320px;
  }
}

/* MOBILE HERO CTA - hidden on desktop */
.mobile-hero-cta {
  display: none;
}

.mobile-payment-notice {
  display: none;
}

/* Payment Maintenance Notice */
.payment-maintenance-notice {
  margin: 20px 0;
  text-align: center;
}

.payment-maintenance-notice p {
  margin: 5px 0;
  font-size: 14px;
  color: white;
}

.payment-maintenance-notice .bangla-notice {
  font-size: 13px;
  color: white;
}

.mobile-login-link {
  display: none;
}

.mobile-login-btn {
  display: none;
}

@media (max-width: 768px) {
  /* 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;
  }

  .hero-block > p {
    font-size: 14px;
    margin-top: 8px;
    max-width: 320px;
    line-height: 1.4;
  }

  .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,
  .header,
  .top-bar,
  .toolbar,
  .upgrade-bar,
  .status-bar,
  .terminal-grid-info {
    display: none !important;
  }

  /* 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 .area-switch-box,
  .headbar-right .smart-btn,
  .headbar-right .history-btn,
  .headbar-right .reset-btn,
  .headbar-right .admin-btn,
  .headbar-right .settings-tool {
    display: none;
  }

  /* 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: 40px;
  border-radius: 8px;
  border: 1px solid var(--neon-soft);
  background: var(--bg-panel);
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.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: 40px;
    font-size: 12px;
  }

  .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 */
.headbar {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: var(--bg-panel);
  border: 1px solid rgba(30,144,255,0.25);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 6px 10px;
  position: relative;
  flex-shrink: 0;
  height: auto;
  min-height: auto;
  max-height: none;
  overflow: visible !important;
  box-sizing: border-box;
  visibility: visible !important;
  flex-wrap: wrap;
  width: 100%;
}

.headbar-left,
.headbar-center,
.headbar-right {
  display: flex !important;
  gap: 8px;
  align-items: center;
  min-width: 0;
  visibility: visible !important;
  overflow: visible !important;
  flex-wrap: wrap;
}

.headbar-left {
  justify-content: flex-start;
}

.headbar-center {
  flex: 1;
  justify-content: center;
}

.headbar-right {
  justify-content: flex-end;
}

/* Toolbar Responsive - Medium/Zoomed Width */
@media (max-width: 1280px) {
  .headbar {
    justify-content: center;
    padding: 6px 10px;
    gap: 8px;
  }

  .headbar-left,
  .headbar-center,
  .headbar-right {
    gap: 8px;
  }

  .headbar-left {
    justify-content: center;
  }

  .headbar-right {
    justify-content: center;
  }
}

.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 */
.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);
}

.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: 4px;
  align-items: center;
}

.area-tab,
.currency-btn,
.head-btn,
.mini-action-btn,
.filter-chip {
  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;
  font-family: var(--terminal-font);
  cursor: pointer;
}

.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 {
  border-color: var(--neon);
}

.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: var(--neon);
  color: #000;
  font-weight: bold;
  box-shadow: 0 0 14px rgba(0,255,136,0.5);
}

.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;
}

/* Settings Tool */
.settings-tool {
  position: relative;
  display: flex !important;
  align-items: center;
  visibility: visible !important;
}

.settings-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 320px;
  max-width: 90vw;
  display: none;
  z-index: 10000;
  padding: 10px;
  border-radius: var(--radius);
  border: 1px solid var(--neon-soft);
  background: var(--bg-panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.settings-dropdown.show {
  display: block;
}

.settings-section {
  margin-bottom: 12px;
}

.settings-section:last-child {
  margin-bottom: 0;
}

.settings-section-title {
  color: var(--text-dim);
  font-family: var(--terminal-font);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.currency-options {
  display: flex;
  gap: 8px;
}

.currency-option,
.settings-menu-item {
  height: 34px;
  border-radius: 8px;
  border: 1px solid var(--neon-soft);
  background: var(--bg-panel);
  color: #fff;
  font-family: var(--terminal-font);
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.12s ease;
  box-sizing: border-box;
}

.currency-option {
  flex: 1;
}

.currency-option.active {
  background: var(--neon);
  color: #000;
  font-weight: bold;
  box-shadow: 0 0 14px rgba(0,255,136,0.5);
}

.settings-menu-item {
  width: 100%;
  padding: 0 10px;
  margin-bottom: 6px;
  text-decoration: none;
  font-size: 12px;
  letter-spacing: 0.5px;
}

.settings-menu-item:last-child {
  margin-bottom: 0;
}

.settings-menu-subtitle {
  font-size: 10px;
  color: #888;
  text-align: center;
  padding: 4px 10px;
  margin-bottom: 8px;
  font-weight: 400;
  letter-spacing: 0.3px;
}

.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(255, 100, 100, 0.15);
  color: var(--red);
  border: 1px solid rgba(255, 100, 100, 0.4);
}

/* 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);
}

.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;
}

.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%;
}

.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: 18px;
  font-weight: 700;
  margin: 6px 0 4px 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;
}

/* =========================================================
   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;
  }

  .hero-subtitle,
  .hero-subtext {
    font-size: 14px;
  }
}

/* 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-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);
}

/* 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;
  }

  .hero-block p,
  .hero-subtitle,
  .hero-subtext {
    font-size: clamp(10px, 1.1vw, 12px);
    line-height: 1.25;
    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;
}
