/* ==========================================================================
   NHABAOVIEC SHOP - Hyper-Neon Cyber VIP Design System
   ========================================================================== */

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

:root {
  --bg-deep: #05060b;
  --bg-surface: #0a0d16;
  --bg-card: rgba(14, 18, 30, 0.88);
  --bg-card-hover: rgba(22, 28, 46, 0.95);
  --bg-panel: #0e1220;
  --bg-input: #070912;
  
  /* Palette: Electric Violet, Neon Magenta, Amber Gold, Emerald Green, Cyber Red */
  --purple: #8b5cf6;
  --purple-bright: #a855f7;
  --purple-glow: rgba(168, 85, 247, 0.4);
  
  --magenta: #ec4899;
  --magenta-bright: #f43f5e;
  --magenta-glow: rgba(236, 72, 153, 0.4);

  --gold: #f59e0b;
  --gold-bright: #fbbf24;
  --gold-glow: rgba(245, 158, 11, 0.4);

  --green: #10b981;
  --teal: #14b8a6;
  --red: #ef4444;
  
  --text-primary: #ffffff;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-purple: rgba(168, 85, 247, 0.35);
  --border-magenta: rgba(236, 72, 153, 0.35);
  
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;

  --font-stack: 'Be Vietnam Pro', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-heading: 'Be Vietnam Pro', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

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

/* ⚡ GPU Hardware Acceleration & Rendering Containment Optimizations */
.dash-view-section,
.home-hero-card,
.cyber-telemetry-hud,
.home-step-card,
.home-feat-card,
.hhc-stat-pill,
.home-section-block,
.home-warning-box,
.modal-glass,
.dash-tab-btn {
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
  perspective: 1000px;
  will-change: transform, opacity;
}

/* Hide inactive view sections completely with 0ms rendering overhead */
.dash-view-section:not(.active) {
  display: none !important;
  content-visibility: hidden;
}

.dash-view-section.active {
  content-visibility: visible;
}

/* Performance fallbacks for low-power devices / reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, ::before, ::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

button, input, select, textarea {
  font-family: var(--font-stack);
}

body {
  background-color: var(--bg-deep);
  background-image: 
    radial-gradient(circle at 10% 15%, rgba(168, 85, 247, 0.15) 0%, transparent 40%),
    radial-gradient(circle at 90% 85%, rgba(236, 72, 153, 0.12) 0%, transparent 40%),
    radial-gradient(circle at 50% 50%, rgba(245, 158, 11, 0.06) 0%, transparent 60%);
  background-attachment: fixed;
  color: var(--text-primary);
  font-family: var(--font-stack);
  min-height: 100vh;
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, .dash-brand-title, .section-title, .login-hero-title {
  font-family: var(--font-heading);
}

.hidden {
  display: none !important;
}

html.pre-authenticated #screen-license-login {
  display: none !important;
}
html.pre-authenticated #screen-dashboard {
  display: block !important;
}

/* ==========================================================================
   ANIMATIONS & EFFECTS
   ========================================================================== */
@keyframes pulse-green {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 8px rgba(16, 185, 129, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}

.status-green-dot {
  width: 8px;
  height: 8px;
  background-color: var(--green);
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 10px var(--green);
  animation: pulse-green 1.8s infinite;
}

/* ==========================================================================
   HYPER-FUTURISTIC CYBER HACKER LICENSE LOGIN SCREEN
   ========================================================================== */
.login-screen.cyber-hacker-theme {
  display: flex;
  min-height: 100vh;
  width: 100%;
  position: relative;
  background-color: #030408;
  overflow: hidden;
}

/* Ambient Matrix Grid Overlay & Animated Beam */
.cyber-grid-overlay {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(0, 243, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(168, 85, 247, 0.04) 1px, transparent 1px);
  background-size: 36px 36px;
  background-position: center center;
  pointer-events: none;
  z-index: 1;
}

.cyber-scanline-beam {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 243, 255, 0.03) 50%, transparent 100%);
  background-size: 100% 8px;
  pointer-events: none;
  z-index: 1;
  opacity: 0.7;
}

.cyber-glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
  z-index: 1;
  opacity: 0.5;
  animation: orbPulse 9s infinite alternate ease-in-out;
}

.cyber-glow-orb.orb-1 {
  top: -12%;
  left: 10%;
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, rgba(0, 243, 255, 0.25) 0%, transparent 70%);
}

.cyber-glow-orb.orb-2 {
  bottom: -15%;
  right: 8%;
  width: 650px;
  height: 650px;
  background: radial-gradient(circle, rgba(240, 0, 255, 0.22) 0%, transparent 70%);
  animation-delay: -4.5s;
}

.cyber-glow-orb.orb-3 {
  top: 40%;
  left: 45%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(0, 255, 157, 0.15) 0%, transparent 70%);
  animation-delay: -2s;
}

@keyframes orbPulse {
  0% { transform: scale(0.95) translate(0, 0); opacity: 0.4; }
  100% { transform: scale(1.2) translate(30px, -25px); opacity: 0.75; }
}

/* Left Hero & Branding Section */
.login-left {
  flex: 1.1;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 4.5rem 4rem;
  z-index: 2;
  border-right: 1px solid rgba(0, 243, 255, 0.12);
  background: linear-gradient(135deg, rgba(4, 6, 14, 0.94) 0%, rgba(8, 11, 22, 0.88) 100%);
  backdrop-filter: blur(16px);
}

.login-left-content {
  position: relative;
  z-index: 2;
}

.cyber-badge-row {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.brand-badge.cyber-pulse-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: linear-gradient(135deg, rgba(0, 243, 255, 0.12), rgba(240, 0, 255, 0.15));
  border: 1px solid rgba(0, 243, 255, 0.4);
  color: #00f3ff;
  font-size: 0.76rem;
  font-weight: 800;
  font-family: var(--font-mono);
  padding: 0.42rem 1.1rem;
  border-radius: 30px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  box-shadow: 0 0 20px rgba(0, 243, 255, 0.25);
}

.badge-live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #00f3ff;
  box-shadow: 0 0 10px #00f3ff;
  animation: livePulse 1.5s infinite;
}

@keyframes livePulse {
  0% { transform: scale(0.9); opacity: 1; box-shadow: 0 0 0 0 rgba(0, 243, 255, 0.7); }
  70% { transform: scale(1.1); opacity: 0.8; box-shadow: 0 0 0 8px rgba(0, 243, 255, 0); }
  100% { transform: scale(0.9); opacity: 1; box-shadow: 0 0 0 0 rgba(0, 243, 255, 0); }
}

.cyber-sys-chip {
  font-size: 0.68rem;
  font-family: var(--font-mono);
  font-weight: 800;
  color: #00ff9d;
  background: rgba(0, 255, 157, 0.1);
  border: 1px solid rgba(0, 255, 157, 0.35);
  padding: 0.3rem 0.7rem;
  border-radius: 6px;
  letter-spacing: 0.5px;
}

.login-hero-title {
  font-size: clamp(2.2rem, 3.6vw, 3.5rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: #fff;
  margin-bottom: 0.8rem;
  text-transform: uppercase;
  display: flex;
  flex-direction: column;
}

.login-hero-title .title-top {
  color: #ffffff;
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

.login-hero-title .title-glow {
  background: linear-gradient(110deg, #00f3ff 0%, #d946ef 50%, #ffb700 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 30px rgba(0, 243, 255, 0.45));
}

.login-hero-desc {
  font-size: 0.96rem;
  color: var(--text-secondary);
  max-width: 540px;
  line-height: 1.7;
  margin-bottom: 2.2rem;
}

/* Cyber Vector Feature Pills Grid */
.cyber-features-list {
  display: flex;
  flex-direction: column;
  gap: 0.95rem;
  max-width: 530px;
}

.cyber-feat-pill {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  background: linear-gradient(135deg, rgba(10, 14, 28, 0.75) 0%, rgba(14, 20, 38, 0.85) 100%);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 16px;
  padding: 0.95rem 1.2rem;
  backdrop-filter: blur(12px);
  position: relative;
  overflow: hidden;
  transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.cyber-feat-pill::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 3px; height: 100%;
  background: var(--pill-accent, #00f3ff);
  box-shadow: 0 0 10px var(--pill-accent, #00f3ff);
}

.cyber-feat-pill.pill-cyan { --pill-accent: #00f3ff; }
.cyber-feat-pill.pill-gold { --pill-accent: #ffb700; }
.cyber-feat-pill.pill-purple { --pill-accent: #f000ff; }

.cyber-feat-pill:hover {
  transform: translateX(8px);
  background: linear-gradient(135deg, rgba(14, 20, 42, 0.9) 0%, rgba(20, 28, 54, 0.95) 100%);
  border-color: var(--pill-accent);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px color-mix(in srgb, var(--pill-accent) 30%, transparent);
}

.feat-pill-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.25s ease;
}

.feat-icon-biometric {
  background: rgba(0, 243, 255, 0.12);
  border: 1px solid rgba(0, 243, 255, 0.4);
  color: #00f3ff;
  box-shadow: 0 0 15px rgba(0, 243, 255, 0.25);
}

.feat-icon-chip {
  background: rgba(255, 183, 0, 0.12);
  border: 1px solid rgba(255, 183, 0, 0.4);
  color: #ffb700;
  box-shadow: 0 0 15px rgba(255, 183, 0, 0.25);
}

.feat-icon-database {
  background: rgba(240, 0, 255, 0.12);
  border: 1px solid rgba(240, 0, 255, 0.4);
  color: #f000ff;
  box-shadow: 0 0 15px rgba(240, 0, 255, 0.25);
}

.feat-pill-text {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.feat-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.feat-title {
  font-size: 0.92rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.2px;
}

.feat-badge-tag {
  font-size: 0.6rem;
  font-family: var(--font-mono);
  font-weight: 800;
  padding: 0.12rem 0.5rem;
  border-radius: 4px;
  letter-spacing: 0.5px;
}

.tag-cyan { background: rgba(0, 243, 255, 0.15); color: #00f3ff; border: 1px solid rgba(0, 243, 255, 0.35); }
.tag-gold { background: rgba(255, 183, 0, 0.15); color: #ffb700; border: 1px solid rgba(255, 183, 0, 0.35); }
.tag-purple { background: rgba(240, 0, 255, 0.15); color: #f000ff; border: 1px solid rgba(240, 0, 255, 0.35); }

.feat-sub {
  font-size: 0.78rem;
  color: rgba(160, 175, 200, 0.8);
  margin-top: 0.2rem;
}

/* Live Terminal Footer Status */
.cyber-terminal-footer {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  z-index: 2;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(0, 243, 255, 0.12);
  flex-wrap: wrap;
}

.term-left-status {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.terminal-text .term-dim {
  color: rgba(255, 255, 255, 0.2);
  margin: 0 0.2rem;
}

.terminal-text .term-highlight {
  color: var(--green);
  font-weight: 700;
}

.term-right-metrics {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.metric-tag {
  font-size: 0.65rem;
  padding: 0.12rem 0.5rem;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
}

.metric-tag.tag-active {
  background: rgba(0, 255, 157, 0.12);
  border-color: rgba(0, 255, 157, 0.35);
  color: #00ff9d;
}

/* Right Login Form Container */
.login-right {
  flex: 0.9;
  background: rgba(4, 6, 12, 0.9);
  padding: 3.5rem 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  z-index: 2;
}

.cyber-status-bar {
  background: rgba(10, 14, 28, 0.85);
  border: 1px solid rgba(0, 243, 255, 0.15);
  border-radius: 16px;
  padding: 0.95rem 1.3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.8rem;
  backdrop-filter: blur(14px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.status-title-row {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.84rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.5px;
  position: relative;
}

.status-node-sub {
  font-size: 0.74rem;
  color: #00f3ff;
  font-family: var(--font-mono);
  margin-top: 0.2rem;
}

.status-ping-pill {
  font-size: 0.76rem;
  color: var(--green);
  font-weight: 800;
  font-family: var(--font-mono);
  background: rgba(16, 185, 129, 0.12);
  padding: 0.32rem 0.85rem;
  border-radius: 20px;
  border: 1px solid var(--green);
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.25);
}

/* High Tech Holographic Login Card */
.cyber-login-card {
  position: relative;
  background: linear-gradient(135deg, rgba(12, 16, 32, 0.94) 0%, rgba(7, 10, 22, 0.98) 100%);
  border: 1px solid rgba(0, 243, 255, 0.35);
  border-radius: 24px;
  padding: 2.6rem;
  backdrop-filter: blur(24px);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.8), 0 0 35px rgba(0, 243, 255, 0.15);
  overflow: hidden;
}

/* Corner Bracket Accents */
.cyber-corner {
  position: absolute;
  width: 14px;
  height: 14px;
  border-color: #00f3ff;
  border-style: solid;
  pointer-events: none;
  box-shadow: 0 0 8px #00f3ff;
}
.corner-tl { top: -1px; left: -1px; border-width: 2px 0 0 2px; border-top-left-radius: 4px; }
.corner-tr { top: -1px; right: -1px; border-width: 2px 2px 0 0; border-top-right-radius: 4px; }
.corner-bl { bottom: -1px; left: -1px; border-width: 0 0 2px 2px; border-bottom-left-radius: 4px; }
.corner-br { bottom: -1px; right: -1px; border-width: 0 2px 2px 0; border-bottom-right-radius: 4px; }

.cyber-card-header {
  margin-bottom: 1.8rem;
}

.cyber-header-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.9rem;
}

.cyber-key-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.7rem;
  font-weight: 900;
  font-family: var(--font-mono);
  color: #00f3ff;
  background: rgba(0, 243, 255, 0.12);
  border: 1px solid rgba(0, 243, 255, 0.4);
  padding: 0.28rem 0.8rem;
  border-radius: 6px;
  letter-spacing: 0.8px;
  box-shadow: 0 0 10px rgba(0, 243, 255, 0.15);
}

.cyber-security-tag {
  font-size: 0.64rem;
  font-family: var(--font-mono);
  font-weight: 800;
  color: #f000ff;
  background: rgba(240, 0, 255, 0.12);
  border: 1px solid rgba(240, 0, 255, 0.35);
  padding: 0.25rem 0.65rem;
  border-radius: 6px;
  letter-spacing: 0.5px;
}

.cyber-card-header {
  margin-bottom: 1.5rem;
}

.cyber-card-title {
  font-size: 1.65rem;
  font-weight: 900;
  color: #fff;
  margin-bottom: 0;
  letter-spacing: -0.3px;
}

/* Input Form Styling */
.cyber-form-group {
  margin-bottom: 1.5rem;
}

.cyber-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.76rem;
  font-weight: 800;
  color: rgba(210, 220, 240, 0.85);
  letter-spacing: 0.8px;
  margin-bottom: 0.7rem;
}

.label-tech-tag {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: #00f3ff;
}

.cyber-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.input-prefix-icon {
  position: absolute;
  left: 1.1rem;
  color: rgba(0, 243, 255, 0.7);
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.25s ease;
}

.cyber-input {
  width: 100%;
  padding: 1.15rem 1.2rem;
  background: rgba(5, 7, 16, 0.95);
  border: 1px solid rgba(0, 243, 255, 0.3);
  border-radius: 14px;
  color: #fff;
  font-size: 0.98rem;
  font-family: var(--font-mono);
  font-weight: 700;
  letter-spacing: 1px;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.7);
}

.cyber-input:focus {
  outline: none;
  border-color: #00f3ff;
  background: rgba(8, 12, 26, 0.98);
  box-shadow: 0 0 25px rgba(0, 243, 255, 0.45), inset 0 0 12px rgba(0, 243, 255, 0.15);
}

.cyber-input-wrapper:focus-within .input-prefix-icon {
  color: #00f3ff;
}

/* Submit Button */
.cyber-submit-btn {
  width: 100%;
  padding: 1.2rem;
  background: linear-gradient(135deg, #00f3ff 0%, #a855f7 50%, #f000ff 100%);
  border: none;
  color: #fff;
  font-weight: 900;
  font-size: 0.98rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 10px 28px rgba(0, 243, 255, 0.35);
  position: relative;
  overflow: hidden;
}

.cyber-submit-btn .btn-shine {
  position: absolute;
  top: -50%; left: -50%; width: 200%; height: 200%;
  background: linear-gradient(45deg, transparent 45%, rgba(255, 255, 255, 0.4) 50%, transparent 55%);
  transition: transform 0.6s ease;
  transform: translateX(-100%);
}

.cyber-submit-btn:hover {
  transform: translateY(-3px) scale(1.01);
  box-shadow: 0 16px 40px rgba(240, 0, 255, 0.5), 0 0 25px rgba(0, 243, 255, 0.4);
}

.cyber-submit-btn:hover .btn-shine {
  transform: translateX(100%);
}

.btn-icon-arrow {
  transition: transform 0.25s ease;
  font-size: 1.1rem;
}

.cyber-submit-btn:hover .btn-icon-arrow {
  transform: translateX(5px);
}

/* Zalo Support Card */
.cyber-zalo-footer {
  margin-top: 1.8rem;
  padding-top: 1.4rem;
  border-top: 1px dashed rgba(0, 243, 255, 0.15);
  text-align: center;
}

.zalo-help-note {
  font-size: 0.78rem;
  color: var(--gold-bright);
  font-family: var(--font-mono);
  font-weight: 800;
  margin-bottom: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  letter-spacing: 0.3px;
}

.zalo-pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold-bright);
  box-shadow: 0 0 8px var(--gold-bright);
}

.cyber-zalo-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  width: 100%;
  padding: 1rem 1.4rem;
  background: linear-gradient(135deg, rgba(0, 243, 255, 0.12) 0%, rgba(37, 99, 235, 0.22) 100%);
  border: 1px solid rgba(0, 243, 255, 0.4);
  border-radius: 14px;
  color: #00f3ff;
  text-decoration: none;
  transition: all 0.25s ease;
  box-shadow: 0 4px 18px rgba(0, 243, 255, 0.15);
}

.cyber-zalo-btn:hover {
  background: linear-gradient(135deg, rgba(0, 243, 255, 0.25) 0%, rgba(37, 99, 235, 0.38) 100%);
  border-color: #00f3ff;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0, 243, 255, 0.38);
}

.zalo-buy-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: #0068ff;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 12px rgba(0, 104, 255, 0.5);
  flex-shrink: 0;
}

.zalo-btn-text {
  font-weight: 900;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
}

/* ===== RESPONSIVE LOGIN: PC Medium (≤1200px) ===== */
@media screen and (max-width: 1200px) {
  .login-left {
    padding: 3rem 2.8rem;
  }
  .login-right {
    padding: 3rem 2.2rem;
  }
  .login-hero-title {
    font-size: clamp(2rem, 3vw, 3rem);
  }
}

/* Mobile & Tablet Responsive Adjustments */
@media screen and (max-width: 992px) {
  .login-screen.cyber-hacker-theme {
    flex-direction: column;
    min-height: 100svh;
  }
  .login-left {
    padding: 2.5rem 2rem 2rem 2rem;
    border-right: none;
    border-bottom: 1px solid rgba(0, 243, 255, 0.12);
    gap: 2rem;
  }
  .login-right {
    padding: 2rem 1.8rem 2.5rem 1.8rem;
  }
  .login-hero-title {
    font-size: clamp(1.9rem, 5vw, 2.6rem);
    margin-bottom: 0.6rem;
  }
  .cyber-badge-row {
    margin-bottom: 1.2rem;
  }
}

@media screen and (max-width: 576px) {
  .login-left {
    padding: 1.8rem 1rem 1.4rem 1rem;
  }
  .login-right {
    padding: 1.5rem 1rem 2rem 1rem;
  }
  .login-hero-title {
    font-size: clamp(1.7rem, 8vw, 2.2rem);
    margin-bottom: 0.4rem;
  }
  .cyber-badge-row {
    margin-bottom: 1rem;
    gap: 0.5rem;
  }
  .brand-badge.cyber-pulse-badge {
    font-size: 0.68rem;
    padding: 0.35rem 0.8rem;
  }
  .cyber-login-card {
    padding: 1.4rem 1rem;
    border-radius: 16px;
  }
  .cyber-card-title {
    font-size: 1.25rem;
  }
  .cyber-card-desc {
    font-size: 0.82rem;
  }
  .cyber-input {
    font-size: 0.88rem;
    padding: 0.9rem 0.9rem 0.9rem 2.6rem;
  }
  .cyber-submit-btn {
    font-size: 0.88rem;
    padding: 0.95rem 1.2rem;
  }
  .cyber-status-bar {
    padding: 0.75rem 1rem;
    margin-bottom: 1.2rem;
  }
  .status-title {
    font-size: 0.8rem;
  }
  .status-node-sub {
    font-size: 0.7rem;
  }
  .cyber-terminal-footer {
    padding: 0.5rem 0;
  }
  .terminal-text {
    font-size: 0.7rem;
  }
  .metric-tag {
    font-size: 0.65rem;
    padding: 0.2rem 0.5rem;
  }
}

/* ==========================================================================
   MAIN DASHBOARD SCREEN
   ========================================================================== */

/* ==========================================================================
   MAIN DASHBOARD SCREEN
   ========================================================================== */
.dashboard-screen {
  min-height: 100vh;
  padding: 1.2rem 0 3rem 0;
}

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Dashboard Top Header */
.dashboard-header-panel {
  background: linear-gradient(135deg, rgba(14, 18, 32, 0.95) 0%, rgba(10, 13, 22, 0.98) 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-top: 2px solid var(--purple-bright);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.8rem;
  margin-bottom: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.4rem;
  flex-wrap: wrap;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6), 0 0 25px rgba(168, 85, 247, 0.12);
  backdrop-filter: blur(20px);
}

.dash-header-left {
  flex: 1;
  min-width: 280px;
}

.dash-brand-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(168, 85, 247, 0.12);
  border: 1px solid var(--border-purple);
  color: var(--purple-bright);
  font-size: 0.7rem;
  font-weight: 800;
  font-family: var(--font-mono);
  padding: 0.22rem 0.7rem;
  border-radius: 20px;
  letter-spacing: 0.08em;
  margin-bottom: 0.4rem;
}

.dash-brand-title {
  font-size: 1.85rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: #fff;
  line-height: 1.1;
  text-transform: uppercase;
}

.dash-brand-title span {
  background: linear-gradient(135deg, var(--purple-bright), var(--magenta));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 15px var(--purple-glow));
}

.dash-brand-sub {
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin-top: 0.35rem;
  max-width: 500px;
  line-height: 1.45;
}

.dash-widgets-right {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.header-status-pill {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--radius-md);
  padding: 0.6rem 1.1rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 140px;
  transition: all 0.25s ease;
}

.header-status-pill:hover {
  border-color: rgba(168, 85, 247, 0.35);
  background: rgba(22, 28, 46, 0.85);
}

.gateway-node-tag {
  font-size: 0.7rem;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid var(--green);
  color: var(--green);
  padding: 0.15rem 0.55rem;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-weight: 700;
}

.widget-card {
  background: var(--bg-panel);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.85rem 1.3rem;
  min-width: 200px;
}

.widget-label {
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.3rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.widget-val {
  font-size: 0.98rem;
  font-weight: 800;
  color: #fff;
  font-family: var(--font-mono);
  word-break: break-word;
  overflow-wrap: anywhere;
  min-width: 0;
}

.stat-number-val {
  font-size: clamp(0.85rem, 3.2vw, 1.15rem) !important;
  font-weight: 800 !important;
  font-family: var(--font-mono) !important;
  letter-spacing: -0.03em !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  min-width: 0 !important;
  max-width: 100% !important;
  line-height: 1.3 !important;
}

.stat-text-val {
  font-size: clamp(0.78rem, 2.6vw, 1.05rem) !important;
  font-weight: 800 !important;
  letter-spacing: -0.01em !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  min-width: 0 !important;
  max-width: 100% !important;
  line-height: 1.3 !important;
}

/* Explicit Header Exit Key Button Styling */
button.btn-exit-key-header,
.btn-exit-key-header {
  background: rgba(239, 68, 68, 0.15) !important;
  border: 1px solid var(--red) !important;
  color: #f87171 !important;
  font-weight: 800 !important;
  font-size: 0.85rem !important;
  padding: 0.75rem 1.25rem !important;
  border-radius: var(--radius-md) !important;
  cursor: pointer !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.5rem !important;
  transition: all 0.25s ease !important;
  user-select: none !important;
  white-space: nowrap !important;
}

button.btn-exit-key-header:hover,
.btn-exit-key-header:hover {
  background: var(--red) !important;
  border-color: var(--red) !important;
  color: #ffffff !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 25px rgba(239, 68, 68, 0.5) !important;
}

/* Navigation Tabs Bar */
.dash-tabs-nav {
  display: flex;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 0.35rem;
  margin-bottom: 1.3rem;
  gap: 0.4rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  max-width: 100%;
}

.dash-tabs-nav::-webkit-scrollbar {
  display: none;
}

.dash-tab-btn {
  flex: 1 0 auto;
  min-width: max-content;
  padding: 0.65rem 0.9rem;
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-secondary);
  font-family: var(--font-stack);
  font-weight: 800;
  font-size: clamp(0.72rem, 1.8vw, 0.82rem);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  white-space: nowrap;
}

.tab-icon {
  flex-shrink: 0;
  stroke: var(--text-secondary);
  transition: all 0.25s ease;
  pointer-events: none;
}

.dash-tab-btn:hover .tab-icon,
.dash-tab-btn.active .tab-icon {
  stroke: var(--purple-bright);
  transform: scale(1.15);
  filter: drop-shadow(0 0 8px var(--purple-glow));
}

.dash-tab-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.04);
}

.dash-tab-btn.active {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.2) 0%, rgba(236, 72, 153, 0.15) 100%) !important;
  border-color: var(--purple-bright) !important;
  color: #fff !important;
  box-shadow: 0 0 25px rgba(168, 85, 247, 0.35);
}

.dash-tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 20%;
  right: 20%;
  height: 3px;
  background: linear-gradient(90deg, var(--purple-bright), var(--magenta));
  border-radius: 3px;
  box-shadow: 0 0 10px var(--purple-bright);
}

/* Futuristic Tab Section Transition Effects */
.dash-view-section {
  display: none;
  opacity: 0;
  transform: translateY(16px) scale(0.985);
  transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1), transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform, filter;
}

.dash-view-section.active {
  display: block;
  opacity: 1;
  transform: translateY(0) scale(1);
  animation: tabSlideFadeIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes tabSlideFadeIn {
  0% {
    opacity: 0;
    transform: translateY(14px) scale(0.985);
    filter: blur(4px);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

/* Button Loading Pulse Glow Animation */
.btn-loading {
  opacity: 0.88 !important;
  cursor: wait !important;
  animation: btnPulseGlow 0.9s infinite alternate !important;
}

@keyframes btnPulseGlow {
  0% { box-shadow: 0 0 15px rgba(236,72,153,0.4); opacity: 0.82; }
  100% { box-shadow: 0 0 35px rgba(236,72,153,0.95), 0 0 50px rgba(168,85,247,0.7); opacity: 1; }
}

.page-loader-overlay.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 420px;
  width: 90%;
}

.neon-spinner-ring {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  border: 3px solid rgba(168, 85, 247, 0.15);
  border-top-color: var(--purple-bright);
  border-right-color: var(--magenta);
  animation: spinRing 0.9s linear infinite;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  box-shadow: 0 0 30px rgba(168, 85, 247, 0.4), inset 0 0 15px rgba(236, 72, 153, 0.2);
}

.neon-spinner-ring .inner-core {
  font-size: 2rem;
  animation: pulseCore 1.5s ease-in-out infinite alternate;
}

@keyframes spinRing {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes pulseCore {
  0% { transform: scale(0.9); opacity: 0.8; }
  100% { transform: scale(1.15); opacity: 1; filter: drop-shadow(0 0 10px var(--gold)); }
}

.loader-title {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 900;
  letter-spacing: 2px;
  background: linear-gradient(135deg, #fff 0%, var(--purple-bright) 50%, var(--magenta) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.4rem;
}

.loader-subtitle {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 1.2rem;
  font-family: var(--font-mono);
}

.loader-progress-bar {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(168, 85, 247, 0.25);
  position: relative;
}

.loader-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--purple-bright) 0%, var(--magenta) 50%, var(--gold-bright) 100%);
  box-shadow: 0 0 12px var(--purple-bright);
  border-radius: 10px;
  transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Category Pills Filter */
.filter-pills-row {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.25rem;
  margin-bottom: 1.2rem;
}

.pill-filter-btn {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  padding: 0.45rem 1.1rem;
  border-radius: 30px;
  font-weight: 800;
  font-size: 0.8rem;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.25s ease;
}

.pill-filter-btn:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
}

.pill-filter-btn.active {
  background: linear-gradient(135deg, var(--purple-bright), var(--magenta));
  border-color: transparent;
  color: #fff;
  box-shadow: 0 0 20px var(--purple-glow);
}

/* Service Cards Grid */
.services-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}

.svc-card {
  position: relative;
  background: linear-gradient(135deg, rgba(14, 18, 32, 0.92) 0%, rgba(10, 13, 22, 0.96) 100%);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--radius-md);
  padding: 1.1rem 1.3rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  overflow: hidden;
}

.svc-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent);
  transition: 0.6s;
}

.svc-card:hover::before {
  left: 100%;
}

.svc-card:hover {
  transform: translateY(-4px) scale(1.01);
  border-color: var(--purple-bright);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.7), 0 0 20px rgba(168, 85, 247, 0.3);
}

.svc-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.6rem;
}

.svc-card-top-left {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.perm-lock-badge {
  background: rgba(239, 68, 68, 0.22);
  border: 1px solid rgba(239, 68, 68, 0.55);
  color: #fca5a5;
  padding: 0.15rem 0.5rem;
  border-radius: 5px;
  font-size: 0.68rem;
  font-weight: 800;
  font-family: var(--font-mono);
  display: inline-flex;
  align-items: center;
  gap: 3px;
  white-space: nowrap;
  pointer-events: none;
  line-height: 1;
}

.svc-menu-id {
  font-size: 0.72rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
  font-weight: 700;
}

.svc-category-tag {
  background: rgba(168, 85, 247, 0.15);
  border: 1px solid var(--border-purple);
  color: var(--purple-bright);
  font-size: 0.68rem;
  font-weight: 800;
  padding: 0.2rem 0.6rem;
  border-radius: 6px;
  text-transform: uppercase;
}

.svc-card-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 0.35rem;
}

.svc-card-desc {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.45;
}

/* Modals */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(14px);
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-content-box {
  background: var(--bg-panel);
  border: 1px solid var(--purple-bright);
  border-radius: var(--radius-lg);
  width: 92%;
  max-width: 680px;
  padding: 1.1rem 1.4rem;
  position: relative;
  box-shadow: 0 25px 70px rgba(0,0,0,0.95), 0 0 50px var(--purple-glow);
  max-height: 88vh;
  overflow-y: auto;
}

.modal-content-box .form-group {
  margin-bottom: 0.75rem;
}

.modal-content-box .form-label {
  font-size: 0.72rem;
  margin-bottom: 0.3rem;
}

.modal-content-box .form-input {
  padding: 0.65rem 0.9rem;
  font-size: 0.88rem;
  border-radius: var(--radius-sm);
}

/* Remove redundant modal subtexts globally across all devices (PC & Mobile) */
#modal-svc-desc:empty,
#modal-svc-fields p[style*="Bấm nút"],
#modal-svc-fields p[style*="Chọn và mở khóa"] {
  display: none !important;
}

.car-item-card {
  background: rgba(18, 21, 33, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 0.55rem 0.7rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}

.car-item-card:hover {
  border-color: var(--purple-bright);
  background: rgba(26, 30, 48, 0.95);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(168, 85, 247, 0.25);
}

.car-item-card.selected {
  border-color: var(--purple-bright) !important;
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.25) 0%, rgba(236, 72, 153, 0.15) 100%) !important;
  box-shadow: 0 0 20px var(--purple-glow) !important;
}

.car-card-name-title {
  font-size: 0.85rem;
  font-weight: 800;
  color: #ffffff !important;
  line-height: 1.2;
  margin: 0.3rem 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#car-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)) !important;
  gap: 0.65rem !important;
  max-height: 350px;
  overflow-y: auto;
}

.car-preview-box {
  width: 100%;
  height: 84px;
  background: linear-gradient(135deg, #0b1120 0%, #1e293b 100%);
  border-radius: var(--radius-sm);
  margin-bottom: 0.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.car-preview-box img {
  max-width: 95%;
  max-height: 95%;
  object-fit: contain !important;
  padding: 0;
  transition: transform 0.25s ease;
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.6));
}

.car-item-card:hover .car-preview-box img {
  transform: scale(1.12);
}

.car-preview-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at center, rgba(168, 85, 247, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

/* Quantity Stepper Controls (Exact like Reference Image) */
.car-qty-stepper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  padding: 0.15rem 0.3rem;
  margin-top: 0.4rem;
}

.btn-qty-step {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  border: 1px solid var(--border-purple);
  background: rgba(30, 41, 59, 0.9);
  color: #fff;
  font-size: 1.15rem;
  font-weight: 900;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.btn-qty-step:hover {
  background: var(--purple-bright);
  border-color: var(--purple-bright);
  box-shadow: 0 0 10px var(--purple-glow);
}

.btn-qty-step.minus:hover {
  background: var(--magenta-bright);
  border-color: var(--magenta-bright);
}

.qty-display-num {
  font-size: 1.1rem;
  font-weight: 900;
  color: #fff;
  font-family: var(--font-mono);
  min-width: 30px;
  text-align: center;
}

.modal-close-icon {
  position: absolute;
  top: 1.4rem;
  right: 1.6rem;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.6rem;
  cursor: pointer;
}

/* ==========================================================================
   CYBER NEON INLINE STATUS CARDS & ANIMATIONS (MODAL STATUS)
   ========================================================================== */
.inline-status-card {
  padding: 1rem 1.3rem;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  gap: 1rem;
  position: relative;
  overflow: hidden;
  animation: card-pop-in 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  margin-top: 0.5rem;
  backdrop-filter: blur(16px);
}

@keyframes card-pop-in {
  0% {
    opacity: 0;
    transform: translateY(-10px) scale(0.97);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Loading Card */
.inline-status-card.loading {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.18) 0%, rgba(14, 165, 233, 0.14) 100%);
  border: 1px solid rgba(168, 85, 247, 0.55);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), inset 0 0 20px rgba(168, 85, 247, 0.15);
}

.inline-status-card.loading::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: -100%;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, transparent, #a855f7, #06b6d4, transparent);
  animation: cyber-scan-line 1.4s ease-in-out infinite;
}

@keyframes cyber-scan-line {
  0% { left: -100%; }
  100% { left: 100%; }
}

/* Dual Ring Cyber Spinner Box (Guaranteed Perfect Circle) */
.cyber-spinner-box {
  position: relative;
  width: 40px;
  height: 40px;
  min-width: 40px;
  min-height: 40px;
  aspect-ratio: 1 / 1 !important;
  border-radius: 50% !important;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0 !important;
}

.cyber-spinner {
  position: absolute;
  top: 0;
  left: 0;
  width: 100% !important;
  height: 100% !important;
  border-radius: 50% !important;
  background: conic-gradient(from 0deg, transparent 30%, var(--teal) 65%, var(--purple-bright) 100%) !important;
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 0) !important;
  mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 0) !important;
  animation: cyber-spin 0.7s linear infinite !important;
  filter: drop-shadow(0 0 6px var(--teal)) !important;
}

@keyframes cyber-spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.cyber-spinner-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) !important;
  font-size: 0.95rem !important;
  line-height: 1 !important;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: pulse-icon 1s ease-in-out infinite alternate;
}

@keyframes pulse-icon {
  0% { transform: scale(0.85); opacity: 0.7; }
  100% { transform: scale(1.1); opacity: 1; }
}

/* Success Card & Cyber Success Badge Animation */
.cyber-success-badge-icon {
  width: 34px;
  height: 34px;
  min-width: 34px;
  min-height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  border: 2px solid #a7f3d0;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 18px rgba(16, 185, 129, 0.65);
  flex-shrink: 0;
  animation: cyber-success-pop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.success-icon-check {
  color: #022c22;
  font-weight: 900;
  font-size: 1.1rem;
  line-height: 1;
}

@keyframes cyber-success-pop {
  0% {
    transform: scale(0.3) rotate(-25deg);
    opacity: 0;
  }
  70% {
    transform: scale(1.18) rotate(6deg);
    opacity: 1;
  }
  100% {
    transform: scale(1) rotate(0deg);
    opacity: 1;
  }
}

.inline-status-card.success {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.22) 0%, rgba(6, 78, 59, 0.35) 100%);
  border: 1px solid var(--green);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7), 0 0 25px rgba(16, 185, 129, 0.35);
}

.inline-status-card.success::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--green), var(--teal), var(--gold-bright));
}

.success-badge-pop {
  width: 42px;
  height: 42px;
  background: rgba(16, 185, 129, 0.25);
  border: 1px solid var(--green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.5);
  animation: pop-bounce 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes pop-bounce {
  0% { transform: scale(0); opacity: 0; }
  80% { transform: scale(1.15); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}

/* Error Card */
.inline-status-card.error {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.22) 0%, rgba(127, 29, 29, 0.35) 100%);
  border: 1px solid var(--red);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7), 0 0 25px rgba(239, 68, 68, 0.35);
}

.modal-close-icon:hover {
  color: #fff;
}

/* Toast Notification (Top Center Floating Pill - Sleek & Non-Intrusive) */
.toast-container {
  position: fixed;
  bottom: 85px;
  right: 1.5rem;
  top: auto;
  left: auto;
  transform: none;
  z-index: 999999;
  display: flex;
  flex-direction: column-reverse;
  gap: 0.5rem;
  align-items: flex-end;
  pointer-events: none;
  width: auto;
  max-width: 440px;
}

.toast-msg {
  background: rgba(10, 15, 26, 0.96);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(0, 230, 153, 0.5);
  color: #fff;
  padding: 0.55rem 1.3rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.9), 0 0 18px rgba(0, 230, 153, 0.2);
  pointer-events: auto;
  animation: toast-pop-down 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  max-width: 95vw;
}

.toast-msg.success {
  border-color: #00e699 !important;
  box-shadow: 0 10px 30px rgba(0,0,0,0.9), 0 0 20px rgba(0, 230, 153, 0.3) !important;
}

.toast-msg.warning {
  border-color: #f59e0b !important;
  box-shadow: 0 10px 30px rgba(0,0,0,0.9), 0 0 20px rgba(245, 158, 11, 0.3) !important;
}

.toast-msg.error {
  border-color: #ef4444 !important;
  box-shadow: 0 10px 30px rgba(0,0,0,0.9), 0 0 20px rgba(239, 68, 68, 0.3) !important;
}

@keyframes toast-pop-down {
  0% {
    transform: translateY(-12px) scale(0.94);
    opacity: 0;
  }
  100% {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

.btn-preset-chip {
  background: rgba(30, 41, 59, 0.8);
  border: 1px solid var(--border-subtle);
  color: #e2e8f0;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.5rem 0.95rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.btn-preset-chip:hover {
  background: rgba(168, 85, 247, 0.25);
  border-color: var(--purple-bright);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(168, 85, 247, 0.2);
}

.btn-preset-chip:active {
  transform: translateY(0);
}

.btn-preset-chip.active {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.4), rgba(59, 130, 246, 0.4));
  border-color: #c084fc;
  color: #fff;
  box-shadow: 0 0 12px rgba(168, 85, 247, 0.4);
}

.key-chip {
  background: rgba(168, 85, 247, 0.15);
  border: 1px solid rgba(168, 85, 247, 0.35);
  color: var(--purple-bright);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.35rem 0.75rem;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.key-chip:hover {
  background: var(--purple-bright);
  color: #fff;
  border-color: var(--purple-bright);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(168, 85, 247, 0.3);
}

/* ==========================================================================
   MOBILE & TABLET RESPONSIVE DESIGN (OPTIMIZED FOR ALL SMARTPHONES)
   ========================================================================== */

@media screen and (max-width: 992px) {
  .login-screen {
    flex-direction: column;
  }

  .login-left, .login-right {
    flex: unset;
    width: 100%;
  }
  
  .login-left {
    padding: 3rem 2rem;
    border-right: none;
    border-bottom: 1px solid var(--border-purple);
  }

  .login-right {
    padding: 3rem 2rem;
  }

  .login-hero-title {
    font-size: 2.8rem;
  }
}

@media screen and (max-width: 768px) {
  /* Prevent iOS Auto-Zoom on Form Focus */
  input, textarea, select {
    font-size: 16px !important;
  }

  .container {
    padding: 0 1rem;
  }

  /* Header Panel on Mobile */
  .dashboard-header-panel {
    padding: 1.4rem 1.4rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.2rem;
  }

  .dash-header-left {
    width: 100%;
    min-width: unset;
  }

  .dash-brand-title {
    font-size: 1.85rem;
  }

  .dash-widgets-right {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.8rem;
  }

  .header-status-pill {
    min-width: unset;
    padding: 0.65rem 0.9rem;
  }

  .btn-exit-key-header {
    grid-column: span 2;
    justify-content: center;
    width: 100% !important;
  }

  /* Navigation Tabs Bar Touch Scroll & Grid */
  .dash-tabs-nav {
    display: flex;
    overflow-x: auto;
    white-space: nowrap;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding: 0.4rem;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
  }

  .dash-tabs-nav::-webkit-scrollbar {
    display: none;
  }

  .dash-tab-btn {
    flex: 0 0 auto;
    padding: 0.8rem 1.1rem;
    font-size: 0.84rem;
    scroll-snap-align: start;
  }

  /* Filter Pills Horizontal Scroll */
  .filter-pills-row {
    display: flex;
    overflow-x: auto;
    white-space: nowrap;
    padding-bottom: 0.6rem;
    -webkit-overflow-scrolling: touch;
  }

  .filter-pills-row::-webkit-scrollbar {
    display: none;
  }

  .pill-filter-btn {
    flex: 0 0 auto;
    padding: 0.6rem 1.1rem;
    font-size: 0.82rem;
  }

  /* Modals on Mobile */
  .modal-content-box {
    width: 95% !important;
    max-width: 100% !important;
    padding: 1.2rem 1rem !important;
    max-height: 92vh;
    overflow-y: auto;
  }

  /* Car Cards Grid on Mobile */
  #car-cards-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.6rem !important;
    max-height: 360px !important;
  }

  .car-preview-box {
    height: 70px !important;
  }

  .car-item-card {
    padding: 0.5rem !important;
  }

  /* Toast Messages on Mobile - Compact Top Floating Pill (Dynamic Island Style) */
  .toast-container {
    top: 10px !important;
    bottom: auto !important;
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%) !important;
    width: auto !important;
    max-width: calc(100vw - 24px) !important;
    align-items: center !important;
    z-index: 9999999 !important;
    pointer-events: none !important;
  }

  .toast-msg {
    width: fit-content !important;
    max-width: 100% !important;
    justify-content: center !important;
    text-align: center !important;
    padding: 0.45rem 1rem !important;
    font-size: 0.76rem !important;
    font-weight: 800 !important;
    border-radius: 30px !important;
    background: rgba(10, 14, 26, 0.96) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.85), 0 0 18px rgba(168, 85, 247, 0.3) !important;
    border: 1px solid rgba(168, 85, 247, 0.4) !important;
    white-space: nowrap !important;
    text-overflow: ellipsis !important;
    overflow: hidden !important;
  }
}

@media screen and (max-width: 480px) {
  .login-hero-title {
    font-size: 2.1rem;
  }

  .login-left, .login-right {
    padding: 2.2rem 1.2rem;
  }

  .dash-widgets-right {
    grid-template-columns: 1fr;
  }

  .btn-exit-key-header {
    grid-column: span 1;
  }

  #car-cards-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  .btn-qty-step {
    width: 32px !important;
    height: 32px !important;
    font-size: 1.2rem;
  }
}

/* Floating Zalo Button Style */
.zalo-floating-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: linear-gradient(135deg, #0068FF 0%, #004ecc 100%);
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  padding: 0.65rem 1.2rem;
  border-radius: 50px;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #fff;
  text-decoration: none;
  font-family: var(--font-stack);
  box-shadow: 0 8px 30px rgba(0, 104, 255, 0.4), 0 0 20px rgba(0, 104, 255, 0.2);
  z-index: 99999;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  animation: pulse-zalo 2s infinite;
}

.zalo-floating-btn:hover {
  transform: scale(1.06) translateY(-3px);
  box-shadow: 0 12px 35px rgba(0, 104, 255, 0.6), 0 0 25px rgba(0, 104, 255, 0.3);
}

.zalo-icon-box {
  width: 32px;
  height: 32px;
  background: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.zalo-text-box {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.zalo-title {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: rgba(255,255,255,0.85);
}

.zalo-phone {
  font-size: 0.88rem;
  font-weight: 900;
}

@keyframes pulse-zalo {
  0% {
    box-shadow: 0 8px 30px rgba(0, 104, 255, 0.3), 0 0 0 0 rgba(0, 104, 255, 0.4);
  }
  70% {
    box-shadow: 0 8px 30px rgba(0, 104, 255, 0.3), 0 0 0 10px rgba(0, 104, 255, 0);
  }
  100% {
    box-shadow: 0 8px 30px rgba(0, 104, 255, 0.3), 0 0 0 0 rgba(0, 104, 255, 0);
  }
}

@media screen and (max-width: 768px) {
  .zalo-floating-btn {
    bottom: 16px;
    right: 16px;
    padding: 0.5rem 1rem;
  }
  .zalo-icon-box {
    width: 28px;
    height: 28px;
    font-size: 1rem;
  }
  .zalo-title {
    font-size: 0.6rem;
  }
  .zalo-phone {
    font-size: 0.78rem;
  }
}

/* ==========================================================================
   MOBILE SCREEN UX & LAYOUT OPTIMIZATIONS
   ========================================================================== */
@media screen and (max-width: 768px) {
  /* Navigation switchers bar */
  .dash-tabs-nav {
    display: flex !important;
    overflow-x: auto !important;
    white-space: nowrap !important;
    padding: 0.35rem !important;
    gap: 0.4rem !important;
    background: rgba(10, 13, 22, 0.75) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 12px !important;
    margin-bottom: 1.2rem !important;
  }
  .dash-tab-btn {
    padding: 0.6rem 0.85rem !important;
    font-size: 0.76rem !important;
    border-radius: 8px !important;
    flex: 1 0 auto !important;
    text-align: center !important;
    justify-content: center !important;
  }

  /* Reduce large card padding on mobile */
  #view-account > div[style*="padding: 2.2rem"] {
    padding: 1.1rem !important;
    border-radius: var(--radius-md) !important;
  }
  
  #account-connected-box > div[style*="padding: 1.8rem"] {
    padding: 1rem !important;
    border-radius: var(--radius-md) !important;
    margin-bottom: 1.2rem !important;
  }
  
  /* User connection boxes */
  div[style*="padding: 0.85rem 1.3rem"] {
    padding: 0.65rem 0.9rem !important;
    font-size: 0.82rem !important;
  }

  #disp-acc-email {
    font-size: 0.8rem !important;
    word-break: break-all !important;
  }
  
  #disp-acc-userid {
    font-size: 0.9rem !important;
  }

  /* Connected status row alignment */
  #view-account div[style*="display: flex; align-items: center; justify-content: space-between"] {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 0.5rem !important;
  }

  #acc-status-badge {
    align-self: center !important;
    height: fit-content !important;
    padding: 0.25rem 0.55rem !important;
    font-size: 0.72rem !important;
    white-space: nowrap !important;
  }

  /* Stack Email & User ID boxes */
  #account-connected-box > div > div[style*="display: grid; grid-template-columns: repeat(auto-fit"] {
    grid-template-columns: 1fr !important;
    gap: 0.6rem !important;
    margin-bottom: 1rem !important;
  }

  /* Stats grid boxes spacing on mobile */
  #account-connected-box > div > div[style*="grid-template-columns: repeat(auto-fit, minmax(170px"] {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.6rem !important;
  }

  #account-connected-box div[style*="padding: 1rem 1.2rem"] {
    padding: 0.65rem 0.85rem !important;
  }

  #account-connected-box .widget-label {
    font-size: 0.64rem !important;
  }

}

/* ==========================================================================
   GLOBAL UI/UX AESTHETIC ENHANCEMENTS
   ========================================================================== */

/* Enhanced Body Glowing Background */
body {
  background-color: #040509 !important;
  background-image: 
    radial-gradient(circle at 15% 10%, rgba(168, 85, 247, 0.18) 0%, transparent 45%),
    radial-gradient(circle at 85% 90%, rgba(236, 72, 153, 0.15) 0%, transparent 45%),
    radial-gradient(circle at 50% 50%, rgba(245, 158, 11, 0.08) 0%, transparent 65%) !important;
}

/* Glassmorphism Header Panel Polish */
.dashboard-header-panel {
  position: relative;
  background: linear-gradient(135deg, rgba(15, 20, 35, 0.95) 0%, rgba(10, 13, 24, 0.98) 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
}

.dashboard-header-panel::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--purple-bright), var(--magenta), var(--gold-bright));
  border-radius: 2px 2px 0 0;
}

/* Modern Card Hover & Polish */
.card, .svc-card {
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

/* Tab Navigation Switcher Polish */
.dash-tabs-nav {
  background: rgba(10, 14, 26, 0.85) !important;
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.dash-tab-btn {
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.dash-tab-btn.active {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.25) 0%, rgba(236, 72, 153, 0.18) 100%) !important;
  border-color: rgba(168, 85, 247, 0.5) !important;
}

/* ==========================================================================
   GLOBAL FORM & BUTTON DESIGN SYSTEM
   ========================================================================== */
.form-group {
  margin-bottom: 1.2rem;
  display: flex;
  flex-direction: column;
}

.form-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-secondary, #94a3b8);
  margin-bottom: 0.45rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.form-input {
  box-sizing: border-box;
  width: 100%;
  padding: 0.8rem 1.1rem;
  font-size: 0.92rem;
  font-family: var(--font-stack);
  color: #ffffff;
  background: rgba(7, 9, 18, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md, 10px);
  outline: none;
  -webkit-appearance: none;
  transition: all 0.22s ease;
}

.form-input:focus {
  border-color: var(--purple-bright, #a855f7);
  box-shadow: 0 0 18px rgba(168, 85, 247, 0.35);
  background: rgba(14, 18, 30, 0.98);
}

.form-input::placeholder {
  color: rgba(148, 163, 184, 0.65);
}

.btn-primary-gradient {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.6rem;
  font-size: 0.92rem;
  font-weight: 800;
  font-family: var(--font-stack);
  color: #ffffff;
  background: linear-gradient(135deg, #9333ea 0%, #db2777 100%);
  border: none;
  border-radius: var(--radius-md, 10px);
  box-shadow: 0 8px 25px rgba(147, 51, 234, 0.4);
  cursor: pointer;
  transition: all 0.25s ease;
  text-decoration: none;
  line-height: 1.2;
}

.btn-primary-gradient:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(219, 39, 119, 0.5);
}

.btn-primary-gradient:active {
  transform: translateY(0);
}

/* ==========================================================================
   MOBILE MODAL UX & COMPACT RESPONSIVE DESIGN
   ========================================================================== */
@media screen and (max-width: 768px) {
  /* Navigation Tabs Mobile Horizontal Single Row */
  .dash-tabs-nav {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
    gap: 0.4rem !important;
    padding: 0.35rem !important;
    width: 100% !important;
    box-sizing: border-box !important;
    scroll-snap-type: x mandatory !important;
  }

  .dash-tabs-nav::-webkit-scrollbar {
    display: none !important;
  }

  .dash-tab-btn {
    flex: 1 0 auto !important;
    min-width: max-content !important;
    width: auto !important;
    padding: 0.5rem 0.75rem !important;
    font-size: 0.76rem !important;
    border-radius: 8px !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 0.35rem !important;
    white-space: nowrap !important;
    scroll-snap-align: start !important;
  }

  .dash-tab-btn span {
    white-space: nowrap !important;
    overflow: visible !important;
    text-overflow: clip !important;
  }

  /* Modal Overlay & Outer Container */
  .modal-overlay {
    padding: 0.4rem !important;
  }

  .modal-content-box {
    width: 98% !important;
    max-height: 94vh !important;
    padding: 0.85rem 0.85rem !important;
    border-radius: 14px !important;
    overflow-y: auto !important;
  }

  .modal-close-icon {
    top: 0.6rem !important;
    right: 0.75rem !important;
    font-size: 1.3rem !important;
  }

  /* Modal Titles & Header Texts */
  #modal-svc-title {
    font-size: 1.1rem !important;
    line-height: 1.35 !important;
    margin-bottom: 0.25rem !important;
    padding-right: 1.8rem !important;
    white-space: normal !important;
    word-break: break-word !important;
  }

  #modal-svc-desc {
    font-size: 0.78rem !important;
    margin-bottom: 0.6rem !important;
    line-height: 1.4 !important;
    color: #94a3b8 !important;
  }

  /* -------------------------------------------------------------------------
     MODAL 1: SET CURRENCY (NẠP TIỀN & VÀNG) COMPACT STYLING
     ------------------------------------------------------------------------- */
  /* Main Container inside Set Currency Modal */
  #modal-svc-fields > div[style*="background: rgba(15, 23, 42"] {
    padding: 0.65rem 0.75rem !important;
    border-radius: 12px !important;
    margin-bottom: 0.3rem !important;
  }

  /* Safety Recommendation Banner */
  #modal-svc-fields div[style*="Khuyến nghị an toàn"] {
    padding: 0.45rem 0.65rem !important;
    font-size: 0.73rem !important;
    margin-bottom: 0.6rem !important;
    line-height: 1.3 !important;
    border-radius: 8px !important;
  }

  /* Dollar & Gold Inputs Grid */
  #modal-svc-fields div[style*="grid-template-columns: 1fr 1fr"] {
    gap: 0.5rem !important;
    margin-bottom: 0.6rem !important;
  }

  #modal-svc-fields label.form-label {
    font-size: 0.72rem !important;
    margin-bottom: 0.25rem !important;
  }

  #in-svc-soft, #in-svc-hard {
    padding: 0.55rem 0.7rem !important;
    font-size: 0.9rem !important;
    height: 38px !important;
    border-radius: 8px !important;
  }

  /* Quick Presets Box & Buttons */
  #modal-svc-fields div[style*="Quick Presets"] {
    padding: 0.55rem 0.65rem !important;
    margin-top: 0.5rem !important;
    border-radius: 10px !important;
  }

  #modal-svc-fields div[style*="Quick Presets"] > div:first-child {
    font-size: 0.68rem !important;
    margin-bottom: 0.4rem !important;
  }

  #preset-chips-box {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 0.35rem !important;
  }

  .btn-preset-chip {
    padding: 0.4rem 0.2rem !important;
    font-size: 0.72rem !important;
    border-radius: 6px !important;
    text-align: center !important;
    justify-content: center !important;
    white-space: nowrap !important;
  }

  /* Modal Main Submit Button */
  #btn-svc-submit {
    padding: 0.65rem 1rem !important;
    font-size: 0.85rem !important;
    margin-top: 0.6rem !important;
    border-radius: 10px !important;
  }

  /* -------------------------------------------------------------------------
     MODAL 2: CAR CART (MỞ XE PREMIUM) ULTRA COMPACT MOBILE DESIGN
     ------------------------------------------------------------------------- */
  /* Compact Main Modal Title on mobile */
  #modal-svc-title {
    font-size: 1.05rem !important;
    margin-bottom: 0.25rem !important;
    padding-right: 1.5rem !important;
    white-space: normal !important;
    word-break: break-word !important;
  }

  /* Main Inner Box inside Car Cart Modal */
  #modal-svc-fields > div[style*="FULL 88 XE VIP"] {
    padding: 0.45rem 0.55rem !important;
    border-radius: 10px !important;
    background: rgba(10, 13, 22, 0.98) !important;
    border: none !important;
  }

  /* Hide inner redundant duplicated title & subtitle paragraph on mobile */
  #modal-svc-fields h4[style*="GIỎ HÀNG NẠP XE PREMIUM"] {
    display: none !important;
  }

  #modal-svc-fields p[style*="Bấm nút"] {
    display: none !important;
  }

  /* Header row with Counter tag */
  #modal-svc-fields div[style*="display: flex; align-items: center; justify-content: space-between"] {
    margin-bottom: 0.3rem !important;
    gap: 0.4rem !important;
  }

  #car-catalog-counter {
    padding: 0.15rem 0.5rem !important;
    font-size: 0.68rem !important;
    height: fit-content !important;
  }

  /* Search Input */
  #in-car-search {
    padding: 0.4rem 0.75rem !important;
    font-size: 0.76rem !important;
    height: 34px !important;
    margin-bottom: 0.4rem !important;
    border-radius: 8px !important;
  }

  /* Car Cards Grid (Spacious 2-3 Columns Layout with Clear Car Previews) */
  #car-cards-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)) !important;
    gap: 0.5rem !important;
    max-height: 330px !important;
    padding-right: 0.2rem !important;
  }

  .car-item-card {
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    min-height: 145px !important;
    height: auto !important;
    padding: 0.45rem 0.5rem !important;
    border-radius: 9px !important;
    background: rgba(16, 20, 32, 0.95) !important;
    color: #ffffff !important;
    box-sizing: border-box !important;
  }

  .car-preview-box {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 68px !important;
    margin-bottom: 0.3rem !important;
    border-radius: 7px !important;
    background: linear-gradient(135deg, #0b1120 0%, #1e293b 100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    position: relative !important;
    overflow: hidden !important;
  }

  .car-preview-box img {
    max-width: 95% !important;
    max-height: 95% !important;
    object-fit: contain !important;
    padding: 0 !important;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.6)) !important;
  }

  .car-preview-box::before {
    font-size: 0.8rem !important;
  }

  /* Badge & Tag text */
  .car-item-card span[style*="font-size: 0.7rem"],
  .car-item-card span[style*="font-size: 0.58rem"] {
    font-size: 0.62rem !important;
    padding: 0.08rem 0.35rem !important;
    border-radius: 4px !important;
  }

  .car-item-card span[style*="font-size: 0.68rem"],
  .car-item-card span[style*="font-size: 0.56rem"] {
    font-size: 0.6rem !important;
  }

  /* Car Name Title */
  .car-card-name-title,
  .car-item-card div[style*="font-size: 0.88rem"] {
    font-size: 0.78rem !important;
    font-weight: 800 !important;
    color: #ffffff !important;
    min-height: auto !important;
    max-height: 1.2rem !important;
    margin-bottom: 0.25rem !important;
    line-height: 1.15 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  /* Stepper Buttons & Display */
  .car-qty-stepper {
    padding: 0.08rem 0.15rem !important;
    margin-top: 0.15rem !important;
    border-radius: 6px !important;
    background: rgba(10, 14, 26, 0.95) !important;
  }

  .btn-qty-step {
    width: 24px !important;
    height: 22px !important;
    font-size: 0.88rem !important;
    border-radius: 4px !important;
  }

  .qty-display-num {
    font-size: 0.82rem !important;
    min-width: 18px !important;
    color: #ffffff !important;
  }

  /* Hide empty subtext under stepper on mobile to save vertical space */
  .car-item-card div[style*="Tap + to add"] {
    display: none !important;
  }

  /* Floating Cart Summary Bar (Always Visible at Bottom) */
  #floating-car-cart-bar {
    padding: 0.35rem 0.55rem !important;
    margin-top: 0.35rem !important;
    border-radius: 8px !important;
    gap: 0.35rem !important;
    background: linear-gradient(135deg, rgba(16, 20, 36, 0.98) 0%, rgba(10, 13, 24, 0.99) 100%) !important;
    border-color: var(--purple-bright) !important;
  }

  #floating-car-cart-bar div[style*="width: 42px"],
  #floating-car-cart-bar div[style*="width: 30px"] {
    width: 24px !important;
    height: 24px !important;
    font-size: 0.75rem !important;
  }

  #floating-car-cart-bar div[style*="font-size: 0.72rem"],
  #floating-car-cart-bar div[style*="font-size: 0.62rem"] {
    display: none !important;
  }

  #cart-summary-text {
    font-size: 0.72rem !important;
    font-weight: 800 !important;
  }

  #btn-submit-cart-batch {
    padding: 0.38rem 0.65rem !important;
    font-size: 0.72rem !important;
    font-weight: 900 !important;
    border-radius: 6px !important;
    white-space: nowrap !important;
  }

  /* -------------------------------------------------------------------------
     MODAL 3: ADMIN TAB RESPONSIVE OPTIMIZATIONS (MOBILE & TABLET)
     ------------------------------------------------------------------------- */
  #form-admin-create-key {
    grid-template-columns: 1fr !important;
    padding: 0.85rem !important;
    gap: 0.75rem !important;
  }

  #admin-cars-header-box {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 0.8rem !important;
  }

  #admin-cars-action-btns {
    width: 100% !important;
    display: flex !important;
    gap: 0.5rem !important;
  }

  #admin-cars-action-btns button {
    flex: 1 !important;
    padding: 0.6rem 0.4rem !important;
    font-size: 0.76rem !important;
    justify-content: center !important;
    white-space: nowrap !important;
  }

  .admin-car-edit-row {
    padding: 0.65rem 0.75rem !important;
    gap: 0.6rem !important;
  }

  #admin-keys-list-box, #admin-logs-list-box {
    overflow-x: visible !important;
    max-height: none !important;
  }

  #admin-keys-list-box table, #admin-logs-list-box table {
    min-width: 0 !important;
    width: 100% !important;
    display: block !important;
    background: transparent !important;
  }

  #services-acc-indicator {
    padding: 0.9rem 1.1rem !important;
    gap: 0.8rem !important;
  }

  #services-acc-indicator > div {
    font-size: 0.82rem !important;
  }

  #btn-jump-account {
    width: 100% !important;
    text-align: center !important;
    justify-content: center !important;
    padding: 0.6rem 1rem !important;
  }
}

/* ==========================================================================
   CYBER GATEWAY STATUS BADGE & PULSE ANIMATION
   ========================================================================== */
.gateway-status-capsule {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.4);
  padding: 0.4rem 0.85rem;
  border-radius: 20px;
  box-shadow: 0 0 16px rgba(16, 185, 129, 0.2);
  font-family: var(--font-mono);
  transition: all 0.3s ease;
}

.gateway-status-capsule:hover {
  box-shadow: 0 0 24px rgba(16, 185, 129, 0.35);
  border-color: rgba(16, 185, 129, 0.7);
}

.gateway-pulse-dot {
  width: 9px;
  height: 9px;
  background-color: var(--green);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--green);
  animation: gateway-dot-pulse 1.8s ease-in-out infinite;
}

@keyframes gateway-dot-pulse {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 4px var(--green);
  }
  50% {
    transform: scale(1.35);
    box-shadow: 0 0 14px var(--green), 0 0 22px rgba(16, 185, 129, 0.6);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 4px var(--green);
  }
}

.gateway-status-title {
  color: #a7f3d0;
  font-weight: 900;
  font-size: 0.78rem;
  letter-spacing: 0.5px;
}

.gateway-status-tag {
  background: rgba(16, 185, 129, 0.2);
  color: var(--green);
  font-size: 0.62rem;
  font-weight: 800;
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

/* ==========================================================================
   COPY SELECTIVE CARS MODAL - MODERN ULTRA RESPONSIVE LAYOUT & CYBER UX
   ========================================================================== */
.copy-car-steps-banner {
  background: rgba(168, 85, 247, 0.08);
  border: 1px solid rgba(168, 85, 247, 0.25);
  border-radius: 10px;
  padding: 0.6rem 0.85rem;
  margin-bottom: 0.75rem;
  font-size: 0.76rem;
  color: #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.copy-car-acc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.copy-car-acc-card {
  background: rgba(15, 23, 42, 0.85);
  border-radius: 10px;
  padding: 0.75rem 0.85rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.copy-car-acc-card.src-card {
  border: 1px solid rgba(59, 130, 246, 0.35);
}

.copy-car-acc-card.tgt-card {
  border: 1px solid rgba(16, 185, 129, 0.35);
}

.copy-car-acc-header {
  font-size: 0.78rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.acc-title.blue { color: #60a5fa; }
.acc-title.green { color: var(--green); }

.acc-badge.blue {
  font-size: 0.65rem;
  color: #93c5fd;
  background: rgba(59, 130, 246, 0.15);
  padding: 0.12rem 0.45rem;
  border-radius: 4px;
  font-weight: 700;
}

.acc-badge.green {
  font-size: 0.65rem;
  color: #a7f3d0;
  background: rgba(16, 185, 129, 0.15);
  padding: 0.12rem 0.45rem;
  border-radius: 4px;
  font-weight: 700;
}

.copy-car-acc-inputs {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.copy-input {
  font-size: 0.84rem !important;
  padding: 0.5rem 0.7rem !important;
  border-radius: 8px !important;
  height: 38px !important;
}

.btn-fetch-cars {
  padding: 0.5rem 0.8rem;
  background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
  color: #ffffff;
  border: none;
  font-weight: 800;
  font-size: 0.8rem;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
  height: 38px;
}

.btn-fetch-cars:hover {
  filter: brightness(1.15);
  transform: translateY(-1px);
}

.btn-fetch-cars:active {
  transform: translateY(0);
}

.copy-car-flow-arrow {
  display: none;
}

.acc-subtip {
  font-size: 0.7rem;
  color: var(--text-secondary);
  padding: 0.15rem 0;
  line-height: 1.25;
}

/* CAR SELECTION PANEL */
.copy-cars-panel {
  background: rgba(10, 14, 26, 0.95);
  border: 1px solid rgba(168, 85, 247, 0.35);
  border-radius: 12px;
  padding: 0.75rem 0.85rem;
  margin-top: 0.6rem;
  box-sizing: border-box;
  width: 100%;
  overflow: hidden;
}

.copy-cars-panel-header {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-bottom: 0.6rem;
  padding-bottom: 0.55rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.copy-cars-controls {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  width: 100%;
  box-sizing: border-box;
}

.copy-search-input {
  font-size: 0.82rem !important;
  background: rgba(255, 255, 255, 0.06) !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  color: #fff !important;
  padding: 0.35rem 0.65rem !important;
  border-radius: 6px !important;
  flex: 1 !important;
  min-width: 0 !important;
  height: 36px !important;
  box-sizing: border-box !important;
}

.btn-select-all-cars {
  background: rgba(168, 85, 247, 0.2);
  border: 1px solid var(--purple-bright);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0 0.6rem;
  border-radius: 6px;
  cursor: pointer;
  white-space: nowrap;
  height: 36px;
  flex-shrink: 0;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
}

.copy-cars-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.45rem;
  max-height: 230px;
  overflow-y: auto;
  padding-right: 0.2rem;
  box-sizing: border-box;
}

/* SMART CAR CHIPS */
.copy-car-chip {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.45rem 0.6rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
  box-sizing: border-box;
}

.copy-car-chip.checked {
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.45);
}

.copy-car-chip.driving {
  border-color: rgba(245, 158, 11, 0.6);
}

.copy-car-chip.driving.checked {
  background: rgba(245, 158, 11, 0.16);
  border-color: rgba(245, 158, 11, 0.85);
}

.copy-car-chip-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.copy-car-chip-left {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.chk-copy-car-cid {
  accent-color: var(--green);
  width: 15px;
  height: 15px;
  cursor: pointer;
  flex-shrink: 0;
}

.copy-car-chip.driving .chk-copy-car-cid {
  accent-color: #f59e0b;
}

.copy-car-cid-tag {
  color: var(--purple-bright);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 800;
}

.copy-car-chip.driving .copy-car-cid-tag {
  color: #fbbf24;
}

.copy-car-driving-tag {
  background: linear-gradient(135deg, #f59e0b, #ef4444);
  color: #ffffff;
  font-size: 0.54rem;
  font-weight: 900;
  padding: 0.1rem 0.3rem;
  border-radius: 4px;
  font-family: var(--font-mono);
  white-space: nowrap;
}

.copy-car-chip-name {
  font-size: 0.76rem;
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
  line-height: 1.2;
}

/* =========================================================
   MOBILE RESPONSIVE OPTIMIZATIONS (MENU GÓI #9 & #10)
   ========================================================= */
@media screen and (max-width: 640px) {
  /* Copy Selective Cars Modal Mobile Stack & Polish */
  .copy-car-acc-grid {
    grid-template-columns: 1fr !important;
    gap: 0.55rem !important;
  }

  .copy-car-flow-arrow {
    display: flex !important;
    align-items: center;
    justify-content: center;
    margin: 0.1rem 0;
    color: var(--purple-bright);
    font-size: 0.78rem;
    font-weight: 800;
    opacity: 0.9;
  }

  .copy-car-acc-card {
    padding: 0.65rem 0.75rem !important;
  }

  .copy-input {
    font-size: 0.88rem !important;
    height: 40px !important;
    padding: 0.55rem 0.75rem !important;
  }

  .btn-fetch-cars {
    height: 40px !important;
    font-size: 0.82rem !important;
    width: 100% !important;
  }

  .copy-cars-controls {
    width: 100% !important;
    gap: 0.4rem !important;
  }

  .copy-search-input {
    flex: 1 !important;
    width: auto !important;
  }

  .copy-cars-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    max-height: 220px !important;
  }
  .clone-grid-2col {
    grid-template-columns: 1fr !important;
    gap: 0.55rem !important;
  }
  .clone-grid-4col {
    grid-template-columns: 1fr 1fr !important;
    gap: 0.35rem !important;
  }
  .clone-btn-group {
    flex-wrap: wrap !important;
    gap: 0.45rem !important;
  }
  .clone-btn-group button {
    flex: 1 1 100% !important;
    width: 100% !important;
    justify-content: center !important;
    text-align: center !important;
    padding: 0.55rem 0.8rem !important;
  }
  .clone-stats-card {
    padding: 0.5rem 0.6rem !important;
  }
  .clone-table-container {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
  }
  .clone-table-responsive {
    min-width: 480px !important;
    font-size: 0.7rem !important;
  }
  .clone-table-responsive th, .clone-table-responsive td {
    padding: 0.35rem 0.4rem !important;
  }
}


/* =========================================================
   MOBILE RESPONSIVE OPTIMIZATIONS (SAO LƯU GỠ BAN & ALL SMARTPHONES)
   ========================================================= */
@media screen and (max-width: 768px) {
  /* Sao Lưu Gỡ Ban Master Hero Banner on Mobile */
  #view-antiban > div > div:first-child {
    padding: 1rem !important;
  }
  #view-antiban > div > div:first-child > div:first-child {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 0.8rem !important;
  }
  #view-antiban > div > div:first-child > div:first-child > div:last-child {
    width: 100% !important;
    justify-content: flex-start !important;
  }
  #view-antiban > div > div:first-child > div:first-child > div:last-child button {
    flex: 1 1 auto !important;
    text-align: center !important;
    justify-content: center !important;
  }
  
  /* Embedded Stats Grid on Mobile */
  #view-antiban > div > div:first-child > div:last-child {
    grid-template-columns: 1fr !important;
    gap: 0.6rem !important;
  }

  /* Bot Scheduler Config Bar on Mobile */
  #view-antiban > div > div:nth-child(2) {
    padding: 0.8rem 1rem !important;
  }
  #view-antiban > div > div:nth-child(2) > div {
    flex-direction: column !important;
    align-items: flex-start !important;
  }
  #view-antiban > div > div:nth-child(2) > div > div:last-child {
    width: 100% !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0.6rem !important;
  }
  #bot-interval-select, #bot-keep-policy, #btn-save-bot-settings {
    width: 100% !important;
    margin-top: 0 !important;
  }

  /* Backup Cards 2-Column Grid on Mobile */
  #view-antiban > div > div:nth-child(3) {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
  }

  /* Unique Accounts Table Touch-Scroll Container */
  .antiban-table-scroll-wrapper {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    width: 100% !important;
  }
  .antiban-table-scroll-wrapper table {
    min-width: 640px !important;
  }

  /* Discord Log Stream on Mobile */
  #discord-logs-feed {
    max-height: 380px !important;
  }
}

@media screen and (max-width: 480px) {
  #form-single-backup > div:first-child {
    grid-template-columns: 1fr !important;
    gap: 0.5rem !important;
  }
}


/* ==========================================================================
   MOBILE OPTIMIZATIONS FOR BACKUP & UNBAN TAB (#view-antiban)
   ========================================================================== */
@media screen and (max-width: 768px) {
  #view-antiban {
    padding: 0 0.2rem;
  }

  /* Master Hero Control Banner on Mobile */
  #view-antiban > div:first-child {
    padding: 1rem 0.9rem !important;
    border-radius: 12px !important;
  }

  /* Top Control Row: Stack Buttons & Badges */
  #view-antiban > div:first-child > div:first-child {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0.8rem !important;
  }

  #view-antiban > div:first-child > div:first-child > div:last-child {
    width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 0.5rem !important;
  }

  #bot-status-badge {
    text-align: center !important;
    width: 100% !important;
  }

  #btn-toggle-bot, #btn-run-bot-now {
    width: 100% !important;
    padding: 0.65rem 1rem !important;
    font-size: 0.82rem !important;
    justify-content: center !important;
    display: flex !important;
    align-items: center !important;
  }

  /* 3 Stat Cards Grid on Mobile */
  #view-antiban > div:first-child > div:last-child {
    grid-template-columns: 1fr !important;
    gap: 0.6rem !important;
  }

  /* Scheduler Config Banner on Mobile */
  #view-antiban > div:nth-child(2) {
    padding: 0.9rem 0.9rem !important;
  }

  #view-antiban > div:nth-child(2) > div {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0.9rem !important;
  }

  #view-antiban > div:nth-child(2) select {
    width: 100% !important;
  }

  #btn-save-bot-settings {
    width: 100% !important;
    margin-top: 0.4rem !important;
    padding: 0.65rem 1rem !important;
  }

  /* Action Cards Grid (Single & Bulk Backup Forms) */
  #view-antiban > div:nth-child(3) {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
  }

  #form-single-backup > div:first-child {
    grid-template-columns: 1fr !important;
    gap: 0.6rem !important;
  }

  #form-single-backup input, #form-bulk-batch input, #form-bulk-batch textarea {
    font-size: 0.85rem !important;
    padding: 0.6rem 0.8rem !important;
  }

  #form-single-backup button, #form-bulk-batch button {
    padding: 0.75rem 1rem !important;
    font-size: 0.88rem !important;
  }

  /* Backups Table Section on Mobile */
  #view-antiban > div:nth-child(4) {
    padding: 1rem 0.8rem !important;
    border-radius: 12px !important;
  }

  /* Mobile Table to Card Transformation (No Horizontal Scrollbar) */
  .antiban-table-scroll-wrapper,
  .clone-table-container {
    overflow-x: visible !important;
    max-height: none !important;
    padding-bottom: 0 !important;
    margin: 0 !important;
  }

  #admin-keys-list-box,
  #admin-logs-list-box {
    overflow-x: visible !important;
    max-height: 380px !important;
    overflow-y: auto !important;
    padding-bottom: 0.5rem !important;
    margin: 0 !important;
  }

  .antiban-table-scroll-wrapper table,
  #admin-keys-list-box table,
  #admin-logs-list-box table,
  .clone-table-responsive {
    min-width: 0 !important;
    width: 100% !important;
    display: block !important;
    background: transparent !important;
  }

  .antiban-table-scroll-wrapper thead,
  #admin-keys-list-box thead,
  #admin-logs-list-box thead,
  .clone-table-responsive thead {
    display: none !important;
  }

  .antiban-table-scroll-wrapper tbody,
  #admin-keys-list-box tbody,
  #admin-logs-list-box tbody,
  .clone-table-responsive tbody {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.75rem !important;
    width: 100% !important;
  }

/* Table Cell Content Wrapper (PC: left-aligned, Mobile: right-aligned) */
.td-val {
  min-width: 0;
  text-align: left;
  word-break: normal;
}

.td-val.key-code-wrap {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  white-space: nowrap;
}

.td-val.actions-wrap {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  white-space: nowrap;
}

  .antiban-table-scroll-wrapper tr,
  #admin-keys-list-box tr,
  #admin-logs-list-box tr,
  .clone-table-responsive tr {
    display: block !important;
    width: 100% !important;
    background: rgba(15, 23, 42, 0.85) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 12px !important;
    padding: 0.85rem !important;
    box-sizing: border-box !important;
    margin: 0 !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3) !important;
  }

  #admin-keys-list-box tr {
    border-color: rgba(168, 85, 247, 0.3) !important;
  }

  #admin-logs-list-box tr {
    border-color: rgba(0, 230, 153, 0.3) !important;
  }

  .antiban-table-scroll-wrapper tr {
    border-color: rgba(59, 130, 246, 0.3) !important;
  }

  .antiban-table-scroll-wrapper td,
  #admin-keys-list-box td,
  #admin-logs-list-box td,
  .clone-table-responsive td {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 0.6rem !important;
    padding: 0.55rem 0 !important;
    border: none !important;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.08) !important;
    font-size: 0.8rem !important;
    white-space: normal !important;
    word-break: normal !important;
    overflow-wrap: anywhere !important;
    box-sizing: border-box !important;
    width: 100% !important;
  }

  .antiban-table-scroll-wrapper td:last-child,
  #admin-keys-list-box td:last-child,
  #admin-logs-list-box td:last-child,
  .clone-table-responsive td:last-child {
    border-bottom: none !important;
    padding-bottom: 0 !important;
    padding-top: 0.6rem !important;
  }

  .antiban-table-scroll-wrapper td[data-label]::before,
  #admin-keys-list-box td[data-label]::before,
  #admin-logs-list-box td[data-label]::before,
  .clone-table-responsive td[data-label]::before {
    content: attr(data-label);
    font-weight: 800;
    font-size: 0.72rem;
    font-family: var(--font-mono);
    text-transform: uppercase;
    color: #94a3b8;
    flex-shrink: 0;
    margin-right: 0.4rem;
    text-align: left !important;
    max-width: 42% !important;
  }

  #admin-keys-list-box td[data-label]::before {
    color: var(--purple-bright);
  }

  #admin-logs-list-box td[data-label]::before {
    color: var(--teal);
  }

  .antiban-table-scroll-wrapper td[data-label]::before {
    color: #60a5fa;
  }

  /* Prevent buttons from breaking into vertical letters */
  .btn-copy-key-code,
  .btn-reset-key-dev,
  .btn-reset-key-acc,
  .btn-del-key {
    white-space: nowrap !important;
    flex-shrink: 0 !important;
  }

  .td-val {
    text-align: right !important;
    flex: 1 !important;
    width: 100% !important;
    word-break: break-word !important;
    overflow-wrap: anywhere !important;
  }

  .td-val.key-code-wrap,
  .td-val.actions-wrap {
    justify-content: flex-end !important;
    flex-wrap: wrap !important;
  }

  /* Backup accounts section header on mobile */
  .backup-section-header {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0.75rem !important;
  }

  .backup-section-header-btns {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 0.5rem !important;
    width: 100% !important;
  }

  .backup-section-header-btns button {
    width: 100% !important;
    justify-content: center !important;
    text-align: center !important;
    padding: 0.55rem 0.4rem !important;
    white-space: nowrap !important;
    font-size: 0.75rem !important;
  }

  /* Live Discord Log Stream Section on Mobile */
  #view-antiban > div:nth-child(5) {
    padding: 1rem 0.8rem !important;
    border-radius: 12px !important;
  }

  #discord-logs-box {
    max-height: 480px !important;
  }

  .discord-log-card {
    padding: 0.8rem 0.85rem !important;
    font-size: 0.78rem !important;
    word-break: break-word !important;
  }

  .discord-log-card div, .discord-log-card span {
    word-break: break-word !important;
  }
}


/* ==========================================================================
   ZALO BUY LICENSE KEY BUTTON STYLES
   ========================================================================== */
.btn-buy-zalo-key {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  width: 100%;
  padding: 0.85rem 1.2rem;
  background: linear-gradient(135deg, rgba(0, 104, 255, 0.92) 0%, rgba(0, 78, 204, 0.95) 50%, rgba(0, 136, 255, 0.9) 100%);
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  border-radius: 14px;
  color: #ffffff;
  font-weight: 900;
  font-size: 0.9rem;
  text-decoration: none;
  font-family: var(--font-heading);
  letter-spacing: 0.5px;
  box-shadow: 0 8px 30px rgba(0, 104, 255, 0.45), 0 0 20px rgba(0, 104, 255, 0.25);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
}

.btn-buy-zalo-key:hover {
  transform: translateY(-3px) scale(1.025);
  box-shadow: 0 14px 35px rgba(0, 104, 255, 0.65), 0 0 28px rgba(0, 104, 255, 0.4);
  background: linear-gradient(135deg, #1a7bff 0%, #005ce6 50%, #0099ff 100%);
  border-color: rgba(255, 255, 255, 0.55);
  color: #ffffff;
}

.zalo-buy-icon {
  width: 32px;
  height: 32px;
  background: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0068FF;
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
  flex-shrink: 0;
}

/* ==========================================================================
   INLINE STATUS CAPSULE ALERTS (INTEGRATED INTO FORMS)
   ========================================================================== */
.inline-status-capsule {
  background: rgba(10, 15, 26, 0.95);
  border: 1px solid rgba(0, 230, 153, 0.4);
  border-radius: 10px;
  padding: 0.6rem 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.8rem;
  font-family: var(--font-mono);
  color: var(--teal);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  word-break: break-word;
  overflow-wrap: anywhere;
}

/* ==========================================================================
   ULTRA MOBILE RESPONSIVE OPTIMIZATIONS & TOUCH-FRIENDLY DESIGN (SMARTPHONES & TABLETS)
   ========================================================================== */
@media screen and (max-width: 768px) {
  /* Prevent iOS auto-zoom on inputs */
  input[type="text"],
  input[type="password"],
  input[type="number"],
  input[type="email"],
  select,
  textarea {
    font-size: 16px !important;
    border-radius: 10px !important;
  }

  /* Smooth touch scrolling & tap highlight removal */
  body {
    -webkit-tap-highlight-color: transparent;
  }

  /* Main Container Padding on Mobile */
  .dash-container, .login-container {
    padding-left: 0.65rem !important;
    padding-right: 0.65rem !important;
    padding-top: 0.75rem !important;
  }

  /* Header & Navigation Bar on Mobile */
  .dash-header-inner {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0.75rem !important;
    padding: 0.75rem 0.85rem !important;
    border-radius: var(--radius-md) !important;
  }

  .dash-brand-box {
    justify-content: space-between !important;
    width: 100% !important;
  }

  .dash-user-controls {
    width: 100% !important;
    justify-content: space-between !important;
    flex-wrap: wrap !important;
    gap: 0.5rem !important;
  }

  /* Tab Navigation Scrollable Bar on Mobile */
  .dash-nav {
    display: flex !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    white-space: nowrap !important;
    padding: 0.3rem !important;
    gap: 0.35rem !important;
    border-radius: 14px !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
    border: 1px solid var(--border-subtle) !important;
    background: rgba(10, 13, 22, 0.9) !important;
  }

  .dash-nav::-webkit-scrollbar {
    display: none !important;
  }

  .dash-nav-tab {
    flex: 0 0 auto !important;
    padding: 0.55rem 0.85rem !important;
    font-size: 0.8rem !important;
    border-radius: 10px !important;
    min-height: 42px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  /* Connected Account Stats Box (#account-connected-box) */
  #account-connected-box > div {
    padding: 1rem 0.85rem !important;
    border-radius: 14px !important;
    margin-bottom: 1.2rem !important;
  }

  /* Email & User ID Row */
  #account-connected-box > div > div:first-child {
    grid-template-columns: 1fr !important;
    gap: 0.6rem !important;
    margin-bottom: 1rem !important;
  }

  /* Stats Grid: Clean 2 columns on Mobile */
  #account-connected-box > div > div:nth-child(2) {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.55rem !important;
  }

  /* Map Unlock Card spans full 2 columns */
  #account-connected-box > div > div:nth-child(2) > div:last-child {
    grid-column: span 2 !important;
  }

  /* Change Account & Exit License Buttons on Mobile */
  #account-connected-box > div:last-child {
    flex-direction: column !important;
    gap: 0.6rem !important;
    margin-top: 0.85rem !important;
  }

  #btn-change-acc, #btn-exit-license {
    width: 100% !important;
    justify-content: center !important;
    min-height: 46px !important;
    font-size: 0.86rem !important;
  }

  /* Touch Targets for Action Buttons & Form Controls */
  .btn-primary-gradient, .btn-secondary-glow {
    min-height: 46px !important;
    font-size: 0.88rem !important;
  }

  /* Mobile Service Cards Grid */
  .svc-cards-grid {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
  }

  .svc-card {
    padding: 1.1rem 1rem !important;
    border-radius: 14px !important;
  }

  /* Mobile Tables Enhancements */
  .antiban-table-scroll-wrapper {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    border-radius: 10px !important;
    border: 1px solid var(--border-subtle) !important;
  }

  /* Mobile Cart Summary Bar */
  #cart-summary-bar {
    padding-bottom: max(0.8rem, env(safe-area-inset-bottom)) !important;
  }
}

/* ==========================================================================
   HOME PAGE — PREMIUM REDESIGN
   ========================================================================== */

/* ✨ Hero Banner */
.home-hero-banner {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  padding: 2.8rem 2.2rem 2.2rem;
  margin-bottom: 2rem;
  background: linear-gradient(135deg, rgba(10,5,25,0.99) 0%, rgba(22,8,50,0.97) 50%, rgba(8,18,40,0.99) 100%);
  border: 1px solid rgba(168,85,247,0.4);
  box-shadow: 0 0 60px rgba(168,85,247,0.15), 0 20px 60px rgba(0,0,0,0.6), inset 0 1px 0 rgba(255,255,255,0.05);
  min-height: 320px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Orbs */
.home-hero-orbs { position: absolute; inset: 0; pointer-events: none; }
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  animation: orbFloat 8s ease-in-out infinite;
}
.hero-orb-1 {
  width: 300px; height: 300px;
  top: -80px; right: -60px;
  background: radial-gradient(circle, rgba(168,85,247,0.35) 0%, transparent 70%);
  animation-delay: 0s;
}
.hero-orb-2 {
  width: 200px; height: 200px;
  bottom: -60px; left: 10%;
  background: radial-gradient(circle, rgba(0,230,153,0.25) 0%, transparent 70%);
  animation-delay: 2.5s;
}
.hero-orb-3 {
  width: 150px; height: 150px;
  top: 30%; left: 40%;
  background: radial-gradient(circle, rgba(245,158,11,0.2) 0%, transparent 70%);
  animation-delay: 5s;
}

@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(15px, -20px) scale(1.05); }
  66% { transform: translate(-10px, 10px) scale(0.95); }
}

/* Grid lines */
.home-hero-grid-lines {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(168,85,247,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(168,85,247,0.06) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse at center, transparent 30%, black 100%);
}

/* Hero content */
.home-hero-content { position: relative; z-index: 2; max-width: 640px; }

.home-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(168,85,247,0.15);
  border: 1px solid rgba(168,85,247,0.45);
  padding: 0.3rem 0.9rem;
  border-radius: 30px;
  font-size: 0.72rem;
  font-family: var(--font-mono);
  color: var(--gold-bright);
  font-weight: 800;
  letter-spacing: 0.5px;
  margin-bottom: 1.2rem;
  animation: badgePulse 3s ease-in-out infinite;
}
@keyframes badgePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(168,85,247,0.3); }
  50% { box-shadow: 0 0 0 6px rgba(168,85,247,0); }
}

.home-hero-title {
  font-size: 2.4rem;
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 1rem;
  font-family: var(--font-heading);
  letter-spacing: -1px;
  color: rgba(255,255,255,0.9);
}
.home-hero-title-grad {
  background: linear-gradient(135deg, #a855f7 0%, #ec4899 50%, #f59e0b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradShift 5s ease-in-out infinite;
  background-size: 200%;
}
@keyframes gradShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
.home-hero-title-white { color: #fff; -webkit-text-fill-color: #fff; }

.home-hero-desc {
  font-size: 0.88rem;
  color: rgba(190,200,220,0.8);
  line-height: 1.7;
  margin-bottom: 1.8rem;
  max-width: 540px;
}

/* Stats row */
.home-hero-stats {
  display: flex;
  align-items: center;
  gap: 0;
  flex-wrap: wrap;
  background: rgba(0,0,0,0.3);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  padding: 0.9rem 1.2rem;
  backdrop-filter: blur(10px);
  width: fit-content;
  gap: 0.2rem;
}
.hero-stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 1.1rem;
}
.hero-stat-num {
  font-size: 1.55rem;
  font-weight: 900;
  font-family: var(--font-mono);
  line-height: 1;
  margin-bottom: 0.15rem;
}
.hero-stat-label {
  font-size: 0.68rem;
  color: rgba(180,190,210,0.6);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
}
.hero-stat-divider {
  width: 1px;
  height: 36px;
  background: rgba(255,255,255,0.1);
  flex-shrink: 0;
}

/* Floating notification cards */
.home-hero-floating-cards {
  position: absolute;
  right: 2rem;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  z-index: 3;
}
.hfc-card {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(10,15,30,0.85);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 12px;
  padding: 0.55rem 0.9rem;
  backdrop-filter: blur(16px);
  font-size: 0.8rem;
  font-weight: 700;
  color: #fff;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
  white-space: nowrap;
}
.hfc-card-1 { animation: floatCard 4s ease-in-out infinite; }
.hfc-card-2 { animation: floatCard 4s ease-in-out infinite 1.3s; }
.hfc-card-3 { animation: floatCard 4s ease-in-out infinite 2.6s; }
@keyframes floatCard {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* ─────────────────────────────────────────────────────────────────── */
/* Section blocks */
.home-section-block {
  background: rgba(10,13,22,0.7);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 20px;
  padding: 1.8rem 2rem;
  margin-bottom: 1.6rem;
  backdrop-filter: blur(10px);
}

.home-section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.72rem;
  font-family: var(--font-mono);
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}

.home-section-title {
  font-size: 1.2rem;
  font-weight: 900;
  color: #fff;
  margin-bottom: 1.2rem;
  font-family: var(--font-heading);
  letter-spacing: -0.3px;
}

/* ==========================================================================
   HOME VIEW REDESIGN — ELEGANT, COMPACT & SMOOTH (hhc-*)
   ========================================================================== */

#view-home {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Glass Hero Card */
.home-hero-card {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  padding: 2.2rem 2.2rem 1.8rem;
  background: linear-gradient(135deg, rgba(16, 12, 34, 0.95) 0%, rgba(10, 14, 28, 0.92) 50%, rgba(18, 10, 32, 0.95) 100%);
  border: 1px solid rgba(168, 85, 247, 0.3);
  box-shadow: 
    0 20px 50px rgba(0, 0, 0, 0.6),
    0 0 40px rgba(168, 85, 247, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.home-hero-card:hover {
  border-color: rgba(168, 85, 247, 0.5);
  box-shadow: 
    0 25px 60px rgba(0, 0, 0, 0.7),
    0 0 50px rgba(168, 85, 247, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.hhc-bg-glow {
  position: absolute;
  top: -50px;
  left: 30%;
  width: 400px;
  height: 200px;
  background: radial-gradient(ellipse at center, rgba(168, 85, 247, 0.22) 0%, rgba(0, 230, 153, 0.1) 50%, transparent 80%);
  filter: blur(40px);
  pointer-events: none;
  z-index: 0;
}

/* Badge bar */
.hhc-badge-bar {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.hhc-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.75rem;
  border-radius: 30px;
  font-size: 0.72rem;
  font-family: var(--font-mono);
  font-weight: 800;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.hhc-badge-brand {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.2) 0%, rgba(236, 72, 153, 0.2) 100%);
  border: 1px solid rgba(168, 85, 247, 0.4);
  color: var(--purple-bright);
}

.hhc-badge-online {
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: var(--green);
}

.hhc-badge-ver {
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: var(--gold-bright);
}

/* Content Title & Subtitle */
.hhc-content {
  position: relative;
  z-index: 1;
}

.hhc-main-title {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 4vw, 2.5rem);
  font-weight: 900;
  color: #fff;
  line-height: 1.25;
  margin: 0 0 0.6rem 0;
  letter-spacing: -0.5px;
}

.hhc-main-title .gradient-text {
  background: linear-gradient(110deg, #c084fc 0%, #e879f9 40%, #fbbf24 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 15px rgba(192, 132, 252, 0.4));
}

.hhc-sub-desc {
  font-size: 0.88rem;
  color: rgba(200, 210, 230, 0.82);
  line-height: 1.6;
  max-width: 650px;
  margin: 0;
}

/* Cyber Tech Telemetry HUD */
.cyber-telemetry-hud {
  background: linear-gradient(135deg, rgba(8, 12, 24, 0.85) 0%, rgba(12, 16, 32, 0.9) 100%);
  border: 1px solid rgba(0, 230, 153, 0.28);
  border-radius: 14px;
  padding: 0.9rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4), inset 0 0 20px rgba(0, 230, 153, 0.06);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(12px);
  z-index: 1;
}

.cyber-telemetry-hud::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 2px;
  background: linear-gradient(90deg, transparent, #00e699, var(--purple-bright), transparent);
  animation: hudScanLine 3.5s linear infinite;
}

@keyframes hudScanLine {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.cth-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  padding-bottom: 0.45rem;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.cth-status {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.cth-dot-glow {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #00e699;
  box-shadow: 0 0 10px #00e699, 0 0 0 3px rgba(0, 230, 153, 0.25);
  animation: livePulse 2s infinite ease-in-out;
}

.cth-status-title {
  font-size: 0.72rem;
  font-family: var(--font-mono);
  font-weight: 800;
  color: #00e699;
  letter-spacing: 0.8px;
}

.cth-node-info {
  font-size: 0.65rem;
  font-family: var(--font-mono);
  color: var(--purple-bright);
  font-weight: 700;
  letter-spacing: 0.5px;
  background: rgba(168, 85, 247, 0.12);
  padding: 0.15rem 0.5rem;
  border-radius: 6px;
  border: 1px solid rgba(168, 85, 247, 0.3);
}

.cth-metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 0.75rem;
}

.cth-metric {
  background: rgba(10, 14, 26, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  padding: 0.55rem 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.cth-lbl {
  font-size: 0.6rem;
  font-family: var(--font-mono);
  color: var(--text-secondary);
  font-weight: 800;
  letter-spacing: 0.5px;
}

.cth-val {
  font-size: 0.95rem;
  font-weight: 900;
  font-family: var(--font-mono);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.3rem;
}

.cth-val-left {
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
}

.cth-icon-glow {
  filter: drop-shadow(0 0 6px currentColor);
  flex-shrink: 0;
}

.cth-ping-val {
  color: var(--green);
}

.cth-signal-bars {
  display: inline-flex;
  align-items: flex-end;
  gap: 2px;
  height: 12px;
}

.cth-signal-bars .bar {
  width: 3px;
  background: rgba(16, 185, 129, 0.25);
  border-radius: 1px;
}
.cth-signal-bars .bar.active {
  background: #10b981;
  box-shadow: 0 0 6px #10b981;
}
.cth-signal-bars .b1 { height: 4px; }
.cth-signal-bars .b2 { height: 7px; }
.cth-signal-bars .b3 { height: 10px; }
.cth-signal-bars .b4 { height: 13px; }

.cth-val-teal { color: var(--teal); }
.cth-val-purple { color: var(--purple-bright); }
.cth-val-gold { color: var(--gold-bright); }

.cth-tag {
  font-size: 0.58rem;
  font-family: var(--font-mono);
  font-weight: 800;
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: currentColor;
}

/* Actions Row Buttons */
.hhc-actions-row {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.btn-home-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.75rem 1.4rem;
  border-radius: 12px;
  font-size: 0.84rem;
  font-weight: 900;
  font-family: var(--font-body);
  letter-spacing: 0.3px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
}

.btn-home-primary {
  background: linear-gradient(135deg, var(--purple-bright) 0%, var(--magenta) 100%);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 6px 20px rgba(168, 85, 247, 0.35);
}

.btn-home-primary:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 10px 28px rgba(168, 85, 247, 0.5);
  border-color: rgba(255, 255, 255, 0.4);
}

.btn-home-primary .cta-arrow {
  transition: transform 0.25s ease;
}

.btn-home-primary:hover .cta-arrow {
  transform: translateX(4px);
}

.btn-home-secondary {
  background: rgba(16, 185, 129, 0.12);
  color: var(--green);
  border: 1px solid rgba(16, 185, 129, 0.4);
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.15);
}

.btn-home-secondary:hover {
  background: rgba(16, 185, 129, 0.25);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(16, 185, 129, 0.3);
  border-color: var(--green);
}

.btn-home-zalo {
  background: rgba(245, 158, 11, 0.12);
  color: var(--gold-bright);
  border: 1px solid rgba(245, 158, 11, 0.4);
}

.btn-home-zalo:hover {
  background: rgba(245, 158, 11, 0.25);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(245, 158, 11, 0.25);
  border-color: var(--gold-bright);
}

/* Stat Grid Capsules — Cyber Module Style */
.hhc-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 0.75rem;
  position: relative;
  z-index: 1;
  margin-top: 0.2rem;
}

.hhc-stat-pill {
  background: linear-gradient(135deg, rgba(8, 12, 24, 0.8) 0%, rgba(14, 18, 34, 0.85) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-left: 3px solid var(--accent);
  border-radius: 12px;
  padding: 0.65rem 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  backdrop-filter: blur(10px);
  position: relative;
  transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.hhc-stat-pill:hover {
  transform: translateY(-2px);
  background: rgba(16, 22, 42, 0.95);
  border-color: var(--accent);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4), 0 0 15px color-mix(in srgb, var(--accent) 30%, transparent);
}

.hhc-stat-icon {
  font-size: 1.1rem;
  line-height: 1;
}

.hhc-stat-info {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  flex: 1;
}

.hhc-stat-val {
  font-size: 1.05rem;
  font-weight: 900;
  font-family: var(--font-mono);
  color: #fff;
  line-height: 1.1;
}

.hhc-stat-lbl {
  font-size: 0.6rem;
  font-weight: 800;
  font-family: var(--font-mono);
  color: var(--text-secondary);
  letter-spacing: 0.5px;
}

.hhc-stat-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  flex-shrink: 0;
}

/* Cyber Section Blocks */
.home-section-block.cyber-block {
  background: linear-gradient(135deg, rgba(8, 12, 24, 0.85) 0%, rgba(12, 16, 32, 0.9) 100%);
  border: 1px solid rgba(0, 230, 153, 0.18);
  border-radius: 18px;
  padding: 1.6rem 1.8rem;
  backdrop-filter: blur(14px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), inset 0 0 25px rgba(0, 230, 153, 0.03);
  position: relative;
  overflow: hidden;
}

.home-section-block.cyber-block::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 230, 153, 0.5), rgba(168, 85, 247, 0.5), transparent);
}

.home-section-header {
  margin-bottom: 1.2rem;
}

/* Cyber Workflow Steps */
.home-steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

.home-step-card {
  position: relative;
  border-radius: 16px;
  padding: 1.3rem 1.2rem;
  overflow: hidden;
  cursor: default;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.28s ease, border-color 0.28s ease;
}

.home-step-card:hover {
  transform: translateY(-4px) scale(1.01);
}

.step-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.step-tag {
  font-size: 0.62rem;
  font-family: var(--font-mono);
  font-weight: 800;
  letter-spacing: 0.6px;
  opacity: 0.85;
}

.home-step-purple {
  background: linear-gradient(135deg, rgba(26, 14, 45, 0.85) 0%, rgba(14, 8, 26, 0.9) 100%);
  border: 1px solid rgba(168, 85, 247, 0.35);
  box-shadow: 0 6px 20px rgba(168, 85, 247, 0.1);
}
.home-step-purple .step-tag { color: var(--purple-bright); }
.home-step-purple:hover {
  border-color: var(--purple-bright);
  box-shadow: 0 12px 30px rgba(168, 85, 247, 0.25);
}

.home-step-teal {
  background: linear-gradient(135deg, rgba(8, 28, 22, 0.85) 0%, rgba(5, 18, 14, 0.9) 100%);
  border: 1px solid rgba(0, 230, 153, 0.35);
  box-shadow: 0 6px 20px rgba(0, 230, 153, 0.08);
}
.home-step-teal .step-tag { color: var(--teal); }
.home-step-teal:hover {
  border-color: var(--teal);
  box-shadow: 0 12px 30px rgba(0, 230, 153, 0.2);
}

.home-step-gold {
  background: linear-gradient(135deg, rgba(32, 20, 6, 0.85) 0%, rgba(18, 12, 4, 0.9) 100%);
  border: 1px solid rgba(245, 158, 11, 0.35);
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.08);
}
.home-step-gold .step-tag { color: var(--gold-bright); }
.home-step-gold:hover {
  border-color: var(--gold-bright);
  box-shadow: 0 12px 30px rgba(245, 158, 11, 0.2);
}

.home-step-number {
  font-size: 1.8rem;
  font-weight: 900;
  font-family: var(--font-mono);
  opacity: 0.25;
  color: #fff;
  line-height: 1;
}

.home-step-icon {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.2rem;
  position: relative;
  z-index: 1;
}

.home-step-purple .home-step-icon {
  background: rgba(168, 85, 247, 0.18);
  color: var(--purple-bright);
  border: 1px solid rgba(168, 85, 247, 0.4);
  box-shadow: 0 0 12px rgba(168, 85, 247, 0.2);
}
.home-step-teal .home-step-icon {
  background: rgba(0, 230, 153, 0.18);
  color: var(--teal);
  border: 1px solid rgba(0, 230, 153, 0.4);
  box-shadow: 0 0 12px rgba(0, 230, 153, 0.2);
}
.home-step-gold .home-step-icon {
  background: rgba(245, 158, 11, 0.18);
  color: var(--gold-bright);
  border: 1px solid rgba(245, 158, 11, 0.4);
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.2);
}

.home-step-title {
  font-size: 0.96rem;
  font-weight: 900;
  color: #fff;
  margin: 0;
}

.home-step-desc {
  font-size: 0.8rem;
  color: rgba(180, 195, 220, 0.75);
  line-height: 1.5;
  margin: 0;
}

/* Cyber Features Modules Grid */
.home-features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 0.9rem;
}

.home-feat-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding: 1.1rem;
  border-radius: 14px;
  background: rgba(8, 12, 24, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-left: 3px solid var(--feat-color);
  cursor: default;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease, background 0.25s ease;
  backdrop-filter: blur(10px);
}

.home-feat-card:hover {
  transform: translateY(-3px);
  background: rgba(14, 20, 38, 0.92);
  border-color: var(--feat-color);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4), 0 0 15px color-mix(in srgb, var(--feat-color) 30%, transparent);
}

.feat-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 0.4rem;
}

.feat-mod-id {
  font-size: 0.58rem;
  font-family: var(--font-mono);
  font-weight: 800;
  color: var(--feat-color);
  letter-spacing: 0.6px;
}

.feat-status-chip {
  font-size: 0.55rem;
  font-family: var(--font-mono);
  font-weight: 800;
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.feat-card-main {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
}

.home-feat-icon-wrap {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: color-mix(in srgb, var(--feat-color) 16%, transparent);
  border: 1px solid color-mix(in srgb, var(--feat-color) 40%, transparent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--feat-color);
  box-shadow: 0 0 12px color-mix(in srgb, var(--feat-color) 20%, transparent);
  transition: background 0.25s ease, transform 0.25s ease;
}

.home-feat-card:hover .home-feat-icon-wrap {
  background: color-mix(in srgb, var(--feat-color) 30%, transparent);
  transform: scale(1.08);
}

.home-feat-body {
  flex: 1;
  min-width: 0;
}

.home-feat-title {
  font-size: 0.9rem;
  font-weight: 900;
  color: #fff;
  margin-bottom: 0.3rem;
  transition: color 0.25s ease;
}

.home-feat-card:hover .home-feat-title {
  color: var(--feat-color);
}

.home-feat-desc {
  font-size: 0.78rem;
  color: rgba(160, 175, 200, 0.75);
  line-height: 1.5;
  margin: 0;
}

/* Cyber Warning Box */
.home-warning-box.cyber-warning {
  background: linear-gradient(135deg, rgba(28, 18, 6, 0.9) 0%, rgba(16, 10, 3, 0.95) 100%);
  border: 1px solid rgba(245, 158, 11, 0.4);
  border-radius: 16px;
  padding: 1.3rem 1.6rem;
  box-shadow: 0 8px 25px rgba(245, 158, 11, 0.08), inset 0 0 20px rgba(245, 158, 11, 0.04);
  backdrop-filter: blur(12px);
  position: relative;
  overflow: hidden;
}

.home-warning-box.cyber-warning::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 2px;
  background: linear-gradient(90deg, transparent, #f59e0b, transparent);
}

.home-warning-header {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.9rem;
}

.home-warning-icon {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: rgba(245, 158, 11, 0.2);
  border: 1px solid rgba(245, 158, 11, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-bright);
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.25);
  flex-shrink: 0;
}

.home-warning-title {
  font-size: 0.88rem;
  font-family: var(--font-mono);
  font-weight: 900;
  color: var(--gold-bright);
  margin: 0;
  letter-spacing: 0.5px;
}

.home-warning-items {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.home-warning-item {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  font-size: 0.81rem;
  color: rgba(190, 200, 220, 0.85);
  line-height: 1.55;
}

.home-warning-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 6px;
  box-shadow: 0 0 6px currentColor;
}

/* Mobile Responsive Adjustments */
@media screen and (max-width: 768px) {
  .home-hero-card {
    padding: 1.6rem 1.2rem 1.4rem;
    gap: 1.1rem;
    border-radius: 16px;
  }
  .hhc-main-title {
    font-size: 1.5rem;
  }
  .hhc-actions-row {
    flex-direction: column;
    width: 100%;
  }
  .btn-home-cta {
    width: 100%;
    justify-content: center;
  }
  .hhc-stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.55rem;
  }
  .home-steps-grid {
    grid-template-columns: 1fr;
  }
  .home-features-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   TELEMETRY HUD SYSTEM MONITOR STYLING
   ========================================================================== */
.cth-status {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.cth-dot-glow {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 12px #10b981;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.cth-label {
  font-size: 0.76rem;
  font-weight: 800;
  font-family: var(--font-mono);
  color: #10b981;
  letter-spacing: 0.8px;
  transition: color 0.3s ease;
}

.cth-badge-pill {
  font-size: 0.65rem;
  font-weight: 900;
  font-family: var(--font-mono);
  padding: 0.18rem 0.55rem;
  border-radius: 6px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  transition: all 0.3s ease;
}

.cth-badge-stable {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.4);
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.15);
}

.cth-badge-optimal {
  background: rgba(0, 230, 153, 0.15);
  color: #00e699;
  border: 1px solid rgba(0, 230, 153, 0.4);
  box-shadow: 0 0 10px rgba(0, 230, 153, 0.15);
}

.cth-uptime-num {
  font-size: 0.92rem;
  font-weight: 900;
  font-family: 'JetBrains Mono', monospace;
  color: #00e699;
  letter-spacing: 0.5px;
  text-shadow: 0 0 12px rgba(0, 230, 153, 0.5);
  background: rgba(0, 230, 153, 0.08);
  border: 1px solid rgba(0, 230, 153, 0.3);
  padding: 0.12rem 0.55rem;
  border-radius: 6px;
  transition: all 0.3s ease;
}

/* Offline state overrides */
.cth-status.is-offline .cth-dot-glow {
  background: #ef4444 !important;
  box-shadow: 0 0 12px #ef4444 !important;
}
.cth-status.is-offline .cth-label {
  color: #ef4444 !important;
}
.cth-status.is-offline .cth-badge-pill {
  background: rgba(239, 68, 68, 0.15) !important;
  color: #ef4444 !important;
  border-color: rgba(239, 68, 68, 0.4) !important;
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.2) !important;
}
.cth-status.is-offline .cth-uptime-num {
  color: #ef4444 !important;
  text-shadow: 0 0 12px rgba(239, 68, 68, 0.5) !important;
  background: rgba(239, 68, 68, 0.08) !important;
  border-color: rgba(239, 68, 68, 0.3) !important;
}




