/* ==========================================================================
   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;
}

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;
}

/* ==========================================================================
   SPLIT SCREEN LICENSE LOGIN
   ========================================================================== */
.login-screen {
  display: flex;
  min-height: 100vh;
  width: 100%;
}

.login-left {
  flex: 1.2;
  background: radial-gradient(circle at 40% 40%, rgba(168, 85, 247, 0.25) 0%, transparent 70%),
              url('https://images.unsplash.com/photo-1568605117036-5fe5e7bab0b7?auto=format&fit=crop&w=1200&q=80') center/cover no-repeat;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 4.5rem;
  border-right: none;
}

.login-left::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(5, 6, 11, 0.94) 0%, rgba(10, 13, 22, 0.98) 100%);
}

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

.brand-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.25), rgba(236, 72, 153, 0.25));
  border: 1px solid var(--border-purple);
  color: var(--purple-bright);
  font-size: 0.78rem;
  font-weight: 800;
  padding: 0.45rem 1.1rem;
  border-radius: 30px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 2.2rem;
  box-shadow: 0 0 20px var(--purple-glow);
}

.login-hero-title {
  font-size: 3.8rem;
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: #fff;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
}

.login-hero-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 25px var(--purple-glow));
}

.login-hero-desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 520px;
  line-height: 1.7;
}

.login-right {
  flex: 0.9;
  background: var(--bg-surface);
  padding: 4.5rem 3.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
}

.notice-card {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.12) 0%, rgba(245, 158, 11, 0.03) 100%);
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: var(--radius-md);
  padding: 1.2rem 1.4rem;
  margin-bottom: 2rem;
}

.notice-card-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--gold-bright);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.4rem;
}

.notice-card-text {
  font-size: 0.88rem;
  color: var(--text-primary);
  line-height: 1.5;
}

.status-bar-card {
  background: var(--bg-panel);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1rem 1.3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 2.2rem;
  backdrop-filter: blur(16px);
  box-shadow: 0 20px 45px rgba(0,0,0,0.6);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.6rem;
}

.form-input {
  width: 100%;
  padding: 1.1rem 1.3rem;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: #fff;
  font-size: 1rem;
  font-family: var(--font-mono);
  transition: all 0.25s ease;
}

.form-input:focus {
  outline: none;
  border-color: var(--purple-bright);
  box-shadow: 0 0 25px var(--purple-glow);
}

.btn-primary-gradient {
  width: 100%;
  padding: 1.15rem;
  background: linear-gradient(135deg, var(--purple-bright) 0%, var(--magenta) 100%);
  border: none;
  color: #fff;
  font-weight: 900;
  font-size: 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: var(--radius-md);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  transition: all 0.25s ease;
  box-shadow: 0 10px 25px rgba(168, 85, 247, 0.35);
}

.btn-primary-gradient:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 35px rgba(236, 72, 153, 0.45);
}

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

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* 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-xl);
  padding: 2.2rem 2.8rem;
  margin-bottom: 2.2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7), 0 0 30px rgba(168, 85, 247, 0.15);
  backdrop-filter: blur(20px);
}

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

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

.dash-brand-title {
  font-size: 2.5rem;
  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.92rem;
  color: var(--text-secondary);
  margin-top: 0.5rem;
  max-width: 550px;
  line-height: 1.6;
}

.dash-widgets-right {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  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.8rem 1.4rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 170px;
  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;
}

.widget-val {
  font-size: 0.98rem;
  font-weight: 800;
  color: #fff;
  font-family: var(--font-mono);
}

/* 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.5rem;
  margin-bottom: 2.2rem;
  gap: 0.6rem;
}

.dash-tab-btn {
  flex: 1;
  padding: 1.05rem;
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-secondary);
  font-family: var(--font-stack);
  font-weight: 800;
  font-size: 0.92rem;
  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.6rem;
}

.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);
}

/* Sections */
.dash-view-section {
  display: none;
}

.dash-view-section.active {
  display: block;
}

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

.pill-filter-btn {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  padding: 0.65rem 1.5rem;
  border-radius: 30px;
  font-weight: 800;
  font-size: 0.88rem;
  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(340px, 1fr));
  gap: 1.4rem;
}

.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-lg);
  padding: 1.8rem;
  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(-6px) scale(1.015);
  border-color: var(--purple-bright);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.8), 0 0 25px rgba(168, 85, 247, 0.35);
}

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

.svc-menu-id {
  font-size: 0.75rem;
  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.7rem;
  font-weight: 800;
  padding: 0.25rem 0.7rem;
  border-radius: 6px;
  text-transform: uppercase;
}

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

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

/* 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-xl);
  width: 95%;
  max-width: 1120px;
  padding: 1.1rem 1.6rem;
  position: relative;
  box-shadow: 0 25px 70px rgba(0,0,0,0.95), 0 0 60px var(--purple-glow);
}

.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-preview-box {
  width: 100%;
  height: 85px;
  background: linear-gradient(135deg, #0f172a 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.06);
}

.car-preview-box::before {
  content: 'STREET PASS';
  position: absolute;
  font-size: 1.4rem;
  font-weight: 900;
  font-style: italic;
  color: rgba(255, 255, 255, 0.04);
  letter-spacing: -1px;
}

/* 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;
}

/* Inline Status Card inside Modals */
.inline-status-card {
  padding: 1.1rem 1.4rem;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: 1rem;
  animation: fadeIn 0.3s ease;
  margin-top: 0.5rem;
}

.inline-status-card.loading {
  background: rgba(30, 58, 138, 0.45);
  border: 1px solid rgba(59, 130, 246, 0.6);
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.25);
}

.inline-status-card.success {
  background: rgba(6, 78, 59, 0.55);
  border: 1px solid var(--green);
  box-shadow: 0 0 25px rgba(16, 185, 129, 0.35);
}

.inline-status-card.error {
  background: rgba(127, 29, 29, 0.55);
  border: 1px solid var(--red);
  box-shadow: 0 0 25px rgba(239, 68, 68, 0.35);
}

.status-spinner {
  font-size: 1.5rem;
  display: inline-block;
  animation: spin 1.2s infinite linear;
}

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

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

/* Toast Notification (Top Right - Clean & Compact) */
.toast-container {
  position: fixed;
  top: 1.5rem;
  right: 1.5rem;
  z-index: 999999;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  align-items: flex-end;
  pointer-events: none;
}

.toast-msg {
  background: rgba(14, 18, 32, 0.96);
  backdrop-filter: blur(16px);
  border: 1px solid var(--purple-bright);
  color: #fff;
  padding: 0.65rem 1rem;
  border-radius: var(--radius-md);
  font-size: 0.8rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  box-shadow: 0 10px 25px rgba(0,0,0,0.6), 0 0 15px rgba(168, 85, 247, 0.15);
  pointer-events: auto;
  animation: slide-in-toast-right 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  width: fit-content;
  max-width: 380px;
}

.toast-msg.success {
  border-color: var(--green) !important;
  box-shadow: 0 10px 25px rgba(0,0,0,0.6), 0 0 15px rgba(16, 185, 129, 0.15) !important;
}

.toast-msg.warning {
  border-color: var(--gold) !important;
  box-shadow: 0 10px 25px rgba(0,0,0,0.6), 0 0 15px rgba(245, 158, 11, 0.15) !important;
}

.toast-msg.error {
  border-color: var(--red) !important;
  box-shadow: 0 10px 25px rgba(0,0,0,0.6), 0 0 15px rgba(239, 68, 68, 0.15) !important;
}

@keyframes slide-in-toast-right {
  0% {
    transform: translateX(40px);
    opacity: 0;
  }
  100% {
    transform: translateX(0);
    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);
}

.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) {
  .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 */
  .toast-container {
    top: 1rem !important;
    bottom: auto !important;
    right: 1rem !important;
    left: auto !important;
    transform: none !important;
    width: auto !important;
    max-width: calc(100% - 2rem) !important;
    align-items: flex-end !important;
  }

  .toast-msg {
    padding: 0.55rem 0.85rem !important;
    font-size: 0.76rem !important;
    width: fit-content !important;
    max-width: 100% !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;
}

/* Input Focus Glow Polish */
.form-input {
  background: rgba(7, 9, 18, 0.9) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  transition: all 0.22s ease !important;
}

.form-input:focus {
  border-color: var(--purple-bright) !important;
  box-shadow: 0 0 20px rgba(168, 85, 247, 0.3) !important;
  background: rgba(12, 16, 30, 0.95) !important;
}

/* Primary Gradient Buttons Glow */
.btn-primary-gradient {
  background: linear-gradient(135deg, #9333ea 0%, #db2777 100%) !important;
  box-shadow: 0 8px 25px rgba(147, 51, 234, 0.4) !important;
  transition: all 0.25s ease !important;
}

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

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


