/* ==========================================================================
   MONTSHOP TIRES & AUTOREPAIR - GLASSMORPHISM, LIGHT/DARK & REAL CAMERA CV STYLES
   ========================================================================== */

/* --- DARK MODE SYSTEM TOKENS (DEFAULT) --- */
:root, [data-theme="dark"] {
  --bg-main: #07070a;
  --bg-header: rgba(13, 14, 20, 0.88);
  --bg-sidebar: rgba(14, 15, 22, 0.85);
  
  --glass-bg: rgba(20, 22, 32, 0.68);
  --glass-bg-hover: rgba(28, 31, 46, 0.85);
  --glass-border: rgba(255, 93, 0, 0.25);
  --glass-border-subtle: rgba(255, 255, 255, 0.09);
  --glass-blur: blur(16px);
  
  --primary-orange: #ff5d00;
  --primary-orange-hover: #e05200;
  --primary-orange-glow: rgba(255, 93, 0, 0.45);
  
  --accent-yellow: #ffb700;
  --accent-yellow-glow: rgba(255, 183, 0, 0.4);
  
  --text-primary: #ffffff;
  --text-secondary: #a3a3b2;
  --text-muted: #676778;
  
  --color-green: #10b981;
  --color-purple: #8b5cf6;
  --color-red: #ef4444;
  
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  
  --shadow-glow: 0 8px 32px 0 rgba(255, 93, 0, 0.25);
  --shadow-amber: 0 8px 32px 0 rgba(255, 183, 0, 0.25);
  --shadow-glass: 0 8px 32px 0 rgba(0, 0, 0, 0.5);
  
  --font-family: 'Outfit', 'Inter', system-ui, -apple-system, sans-serif;
  --transition-fast: 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- LIGHT MODE OVERRIDES --- */
[data-theme="light"] {
  --bg-main: #f3f4f8;
  --bg-header: rgba(255, 255, 255, 0.9);
  --bg-sidebar: rgba(248, 249, 253, 0.9);
  
  --glass-bg: rgba(255, 255, 255, 0.75);
  --glass-bg-hover: rgba(255, 255, 255, 0.95);
  --glass-border: rgba(255, 93, 0, 0.35);
  --glass-border-subtle: rgba(0, 0, 0, 0.1);
  
  --text-primary: #111827;
  --text-secondary: #4b5563;
  --text-muted: #9ca3af;
  
  --shadow-glass: 0 8px 30px rgba(0, 0, 0, 0.08);
}

/* Base Resets */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

body {
  background-color: var(--bg-main);
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(255, 93, 0, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(255, 183, 0, 0.06) 0%, transparent 40%);
  background-attachment: fixed;
  color: var(--text-primary);
  font-family: var(--font-family);
  font-size: 15px;
  line-height: 1.5;
  overflow-x: hidden;
  padding-bottom: 80px;
  transition: background-color 0.3s ease, color 0.3s ease;
}

@media (min-width: 769px) {
  body { padding-bottom: 0; }
}

/* Glassmorphism Classes */
.glass-panel {
  background: var(--glass-bg) !important;
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border) !important;
  box-shadow: var(--shadow-glass);
}

.glass-card {
  background: var(--glass-bg) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border-subtle);
  transition: all var(--transition-fast);
}

.glass-card:hover {
  background: var(--glass-bg-hover) !important;
  border-color: var(--primary-orange);
  box-shadow: 0 6px 20px rgba(255, 93, 0, 0.2);
}

.glass-modal {
  background: var(--bg-header) !important;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--glass-border);
  box-shadow: 0 12px 40px rgba(0,0,0,0.5), var(--shadow-glow);
}

/* Typography Helpers */
h1, h2, h3, h4, h5, h6 {
  color: var(--text-primary);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.text-amber { color: var(--accent-yellow) !important; }
.text-orange { color: var(--primary-orange) !important; }
.text-success { color: var(--color-green) !important; }
.text-muted { color: var(--text-muted) !important; }
.font-xs { font-size: 0.75rem; }
.font-lg { font-size: 1.2rem; }
.font-2x { font-size: 2rem; }
.font-3x { font-size: 2.8rem; }
.req { color: var(--color-red); font-weight: bold; }
.mar-b-10 { margin-bottom: 10px; }
.mar-t-15 { margin-top: 15px; }

/* FULLSCREEN CREATIVE LOGIN SCREEN */
.login-fullscreen-wrapper {
  position: fixed;
  inset: 0;
  background: var(--bg-main);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.login-background-glow {
  position: absolute;
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(255, 93, 0, 0.35) 0%, rgba(255, 183, 0, 0.15) 50%, transparent 80%);
  border-radius: 50%;
  filter: blur(40px);
  animation: pulseGlow 4s infinite alternate ease-in-out;
}

@keyframes pulseGlow {
  0% { transform: scale(0.9); opacity: 0.7; }
  100% { transform: scale(1.2); opacity: 1; }
}

.login-card {
  position: relative;
  width: 100%;
  max-width: 440px;
  padding: 32px 28px;
  border-radius: var(--radius-xl);
  text-align: center;
}

.login-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 12px;
}

.login-logo {
  height: 64px;
  width: auto;
  margin-bottom: 8px;
  filter: drop-shadow(0 0 12px rgba(255, 93, 0, 0.6));
}

.login-brand h2 {
  font-size: 1.8rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, var(--text-primary) 30%, var(--accent-yellow) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.login-welcome {
  color: var(--text-secondary);
  font-size: 0.88rem;
  margin-bottom: 24px;
}

.login-quick-presets {
  margin-top: 14px;
  text-align: left;
}

.preset-buttons {
  display: flex;
  gap: 6px;
  margin-top: 6px;
  flex-wrap: wrap;
}

/* Main Header */
.main-header {
  height: 70px;
  background: var(--bg-header);
  border-bottom: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.brand-container {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-logo {
  height: 44px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 10px rgba(255, 93, 0, 0.5));
}

.brand-name {
  font-size: 1.35rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, var(--text-primary) 40%, var(--accent-yellow) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
}

.brand-tagline {
  font-size: 0.68rem;
  letter-spacing: 2px;
  color: var(--primary-orange);
  font-weight: 800;
  display: block;
  margin-top: 2px;
}

.user-header-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.role-badge {
  background: rgba(255, 183, 0, 0.15);
  border: 1px solid rgba(255, 183, 0, 0.35);
  color: var(--accent-yellow);
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
}

.user-profile-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border-subtle);
  padding: 5px 12px 5px 5px;
  border-radius: 30px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.user-profile-pill:hover { border-color: var(--primary-orange); }

.user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--primary-orange);
}

.user-details { display: flex; flex-direction: column; }
.user-name { font-size: 0.82rem; font-weight: 700; color: var(--text-primary); line-height: 1.1; }
.user-status { font-size: 0.68rem; color: var(--text-secondary); }

/* App Layout Grid */
.app-layout { display: flex; min-height: calc(100vh - 70px); }

/* Sidebar Navigation (Desktop) */
.sidebar {
  width: 250px;
  background: var(--bg-sidebar);
  border-right: 1px solid var(--glass-border-subtle);
  backdrop-filter: blur(16px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px 0;
  position: sticky;
  top: 70px;
  height: calc(100vh - 70px);
}

.sidebar-nav { display: flex; flex-direction: column; gap: 4px; padding: 0 12px; }

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  color: var(--text-secondary);
  border-radius: var(--radius-md);
  font-weight: 600;
  transition: all var(--transition-fast);
}

.nav-item i { font-size: 1.1rem; width: 20px; text-align: center; }

.nav-item:hover { color: var(--text-primary); background: rgba(255, 93, 0, 0.08); }

.nav-item.active {
  color: var(--text-primary);
  background: linear-gradient(90deg, rgba(255, 93, 0, 0.3) 0%, rgba(255, 93, 0, 0.05) 100%);
  border-left: 4px solid var(--primary-orange);
  font-weight: 700;
}

.nav-item-highlight {
  background: linear-gradient(90deg, rgba(255, 183, 0, 0.18) 0%, transparent 100%);
  border: 1px solid rgba(255, 183, 0, 0.3);
  color: var(--accent-yellow);
}

.badge-accent {
  background: var(--primary-orange);
  color: white;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 6px;
  margin-left: auto;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background-color: var(--accent-yellow);
  border-radius: 50%;
  margin-left: auto;
  box-shadow: 0 0 10px var(--accent-yellow);
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.8; }
}

.sidebar-footer { padding: 16px; }

.quick-stat-box { padding: 14px; border-radius: var(--radius-md); text-align: center; }
.stat-label { font-size: 0.75rem; color: var(--text-secondary); display: block; }
.stat-val { font-size: 1.6rem; font-weight: 800; color: var(--accent-yellow); }

/* Mobile Bottom Navigation Bar */
.mobile-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: 64px;
  background: var(--bg-header);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--glass-border);
  z-index: 999;
  justify-content: space-around;
  align-items: center;
  padding: 0 6px;
}

.mobile-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: var(--text-secondary);
  font-size: 0.72rem;
  font-weight: 600;
  flex: 1;
  height: 100%;
  transition: all var(--transition-fast);
}

.mobile-nav-item i { font-size: 1.25rem; }
.mobile-nav-item.active { color: var(--primary-orange); }
.mobile-nav-item.active i { transform: translateY(-2px); }
.mobile-nav-highlight { color: var(--accent-yellow); }

/* Main Content Views */
.main-content { flex: 1; padding: 24px; max-width: 1350px; margin: 0 auto; }

.view-section { display: none; animation: fadeIn 0.3s ease-in-out; }
.view-section.active { display: block; }

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.page-title-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 12px;
}

.page-title-bar h2 { font-size: 1.5rem; font-weight: 800; }
.subtitle { color: var(--text-secondary); font-size: 0.88rem; margin-top: 2px; }

/* Buttons */
.btn {
  padding: 10px 20px;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.9rem;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all var(--transition-fast);
  font-family: var(--font-family);
}

.btn-primary { background: linear-gradient(135deg, #ff6a00 0%, #ee0979 100%); color: #ffffff; }
.btn-glow { box-shadow: 0 4px 20px rgba(255, 93, 0, 0.4); }
.btn-glow:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(255, 93, 0, 0.6); }

.btn-amber { background: linear-gradient(135deg, #ffc700 0%, #ff9900 100%); color: #07070a; font-weight: 800; }
.btn-glow-amber { box-shadow: 0 4px 20px rgba(255, 183, 0, 0.35); }
.btn-glow-amber:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(255, 183, 0, 0.5); }

.btn-secondary { background: var(--glass-bg); border: 1px solid var(--glass-border); color: var(--text-primary); }
.btn-secondary:hover { background: var(--glass-bg-hover); border-color: var(--primary-orange); }

.btn-outline { background: transparent; border: 1px solid var(--glass-border-subtle); color: var(--text-secondary); }
.btn-outline:hover { color: var(--text-primary); border-color: var(--text-primary); }

.btn-outline-danger { background: transparent; border: 1px solid rgba(239, 68, 68, 0.3); color: var(--color-red); padding: 4px 10px; border-radius: 6px; cursor: pointer; }

.btn-icon {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border-subtle);
  color: var(--text-secondary);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-icon:hover { color: var(--primary-orange); border-color: var(--primary-orange); }

.btn-block { width: 100%; }
.btn-lg { padding: 14px 24px; font-size: 1rem; }
.btn-sm { padding: 6px 14px; font-size: 0.82rem; border-radius: var(--radius-sm); }

/* Dashboard Cards Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}

.stat-card { padding: 18px; border-radius: var(--radius-lg); display: flex; align-items: center; gap: 16px; }

.border-orange { border-left: 4px solid var(--primary-orange) !important; }
.border-yellow { border-left: 4px solid var(--accent-yellow) !important; }
.border-green { border-left: 4px solid var(--color-green) !important; }
.border-purple { border-left: 4px solid var(--color-purple) !important; }

.stat-icon {
  width: 48px; height: 48px; border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center; font-size: 1.3rem;
}

.bg-orange { background: rgba(255, 93, 0, 0.18); color: var(--primary-orange); }
.bg-yellow { background: rgba(255, 183, 0, 0.18); color: var(--accent-yellow); }
.bg-green { background: rgba(16, 185, 129, 0.18); color: var(--color-green); }
.bg-purple { background: rgba(139, 92, 246, 0.18); color: var(--color-purple); }

.stat-content { display: flex; flex-direction: column; }
.card-label { font-size: 0.78rem; color: var(--text-secondary); }
.stat-content h3 { font-size: 1.5rem; font-weight: 800; margin: 2px 0; }
.card-trend { font-size: 0.72rem; color: var(--text-secondary); }

/* Quick Banner */
.quick-banner {
  border-radius: var(--radius-lg); padding: 18px 22px; display: flex; align-items: center; gap: 16px; margin-bottom: 20px;
}

.banner-info { flex: 1; }
.banner-info h4 { font-size: 1.05rem; color: var(--accent-yellow); }
.banner-info p { font-size: 0.85rem; color: var(--text-secondary); }

/* Panels & Tables */
.panel { border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 20px; }
.panel-header { padding: 14px 20px; border-bottom: 1px solid var(--glass-border-subtle); display: flex; align-items: center; justify-content: space-between; }
.panel-header h3 { font-size: 1rem; display: flex; align-items: center; gap: 10px; }
.panel-body { padding: 20px; }
.pad-0 { padding: 0 !important; }

.grid-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

/* Data Table */
.table-responsive { width: 100%; overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; text-align: left; }
.data-table th {
  background: rgba(255, 255, 255, 0.03); color: var(--text-secondary); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; padding: 12px 16px; border-bottom: 1px solid var(--glass-border-subtle);
}
.data-table td { padding: 12px 16px; border-bottom: 1px solid var(--glass-border-subtle); font-size: 0.88rem; }
.data-table tbody tr:hover { background: rgba(255, 93, 0, 0.05); }

.price-editable-badge {
  display: inline-flex; align-items: center; gap: 6px; background: rgba(255, 183, 0, 0.12); border: 1px dashed var(--accent-yellow); color: var(--accent-yellow); padding: 3px 8px; border-radius: 6px; font-weight: 800; font-size: 0.95rem; cursor: pointer; transition: all var(--transition-fast);
}

.price-editable-badge:hover { background: var(--accent-yellow); color: #07070a; }

/* Low Stock List */
.low-stock-list { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.low-stock-item { display: flex; align-items: center; justify-content: space-between; padding: 10px 14px; background: rgba(255, 255, 255, 0.03); border-radius: var(--radius-md); border-left: 3px solid var(--accent-yellow); }

.tire-badge { background: rgba(255, 93, 0, 0.15); color: var(--primary-orange); padding: 3px 8px; border-radius: 6px; font-weight: 700; font-size: 0.78rem; }
.condition-tag { font-size: 0.72rem; padding: 2px 8px; border-radius: 12px; font-weight: 700; }
.tag-usada { background: rgba(255, 183, 0, 0.18); color: var(--accent-yellow); }
.tag-nueva { background: rgba(16, 185, 129, 0.18); color: var(--color-green); }

/* Quick Search Hero */
.search-hero-box { padding: 22px; border-radius: var(--radius-xl); margin-bottom: 20px; }
.search-input-wrapper { position: relative; display: flex; align-items: center; }
.search-icon { position: absolute; left: 18px; font-size: 1.2rem; color: var(--primary-orange); }

.search-input-wrapper input {
  width: 100%; height: 54px; background: var(--glass-bg); border: 1.5px solid var(--glass-border); border-radius: var(--radius-lg); padding: 0 46px 0 52px; color: var(--text-primary); font-size: 1.15rem; font-weight: 600; font-family: var(--font-family);
}

.search-input-wrapper input:focus { outline: none; border-color: var(--accent-yellow); box-shadow: var(--shadow-amber); }
.clear-search-btn { position: absolute; right: 16px; background: none; border: none; color: var(--text-secondary); font-size: 1.1rem; cursor: pointer; }

.quick-filter-pills { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.pill { background: rgba(255, 255, 255, 0.05); border: 1px solid var(--glass-border-subtle); padding: 5px 14px; border-radius: 20px; font-size: 0.8rem; cursor: pointer; transition: all var(--transition-fast); }
.pill:hover, .pill.active { background: var(--primary-orange); color: white; border-color: var(--primary-orange); }

.quick-results-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.tire-card { padding: 18px; border-radius: var(--radius-lg); }
.tire-card-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.tire-size-title { font-size: 1.4rem; font-weight: 800; }
.tire-price-tag { font-size: 1.3rem; font-weight: 800; color: var(--accent-yellow); cursor: pointer; }

/* REAL CAMERA & COMPUTER VISION AI MODULE */
.camera-mode-tabs { display: flex; gap: 8px; margin-bottom: 12px; }

.camera-live-box {
  position: relative;
  width: 100%;
  height: 320px;
  background: #000;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 2px solid var(--primary-orange);
  display: flex;
  align-items: center;
  justify-content: center;
}

#cameraVideo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.camera-snap-btn {
  position: absolute;
  bottom: 16px;
  z-index: 10;
}

.upload-dropzone { border: 2px dashed var(--primary-orange); border-radius: var(--radius-lg); padding: 30px 16px; text-align: center; cursor: pointer; }
.dropzone-icon { font-size: 2.5rem; color: var(--primary-orange); margin-bottom: 8px; }
.sample-images-section { margin-top: 16px; }
.sample-title { font-size: 0.78rem; color: var(--text-secondary); display: block; margin-bottom: 8px; }
.sample-thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.sample-thumb { padding: 4px; border-radius: var(--radius-md); cursor: pointer; text-align: center; }
.sample-thumb img { width: 100%; height: 60px; object-fit: cover; border-radius: 6px; }
.sample-thumb span { font-size: 0.7rem; color: var(--text-secondary); display: block; margin-top: 2px; }

.scanner-container { margin-top: 16px; }
.scanner-wrapper { position: relative; width: 100%; max-height: 340px; overflow: hidden; border-radius: var(--radius-lg); border: 2px solid var(--accent-yellow); }
.scanner-wrapper img { width: 100%; height: 340px; object-fit: cover; display: block; }
.laser-line { position: absolute; top: 0; left: 0; width: 100%; height: 4px; background: var(--accent-yellow); box-shadow: 0 0 15px var(--accent-yellow), 0 0 30px var(--primary-orange); animation: scanLaser 2s infinite alternate ease-in-out; display: none; }
@keyframes scanLaser { 0% { top: 0%; } 100% { top: 96%; } }
.bounding-boxes-overlay { position: absolute; inset: 0; pointer-events: none; }
.detected-box { position: absolute; border: 2px solid var(--primary-orange); background: rgba(255, 93, 0, 0.25); border-radius: 50%; }

.scanner-status { text-align: center; padding: 10px; font-weight: 600; color: var(--accent-yellow); }

.condition-selector { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.radio-card { background: rgba(255, 255, 255, 0.03); border: 2px solid var(--glass-border-subtle); border-radius: var(--radius-md); padding: 12px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; cursor: pointer; transition: all var(--transition-fast); }
.radio-card input { display: none; }
.radio-card i { font-size: 1.2rem; color: var(--text-secondary); }
.radio-card span { font-weight: 700; font-size: 0.8rem; }
.radio-card small { font-size: 0.65rem; color: var(--text-muted); }
.radio-card.active { border-color: var(--primary-orange); background: rgba(255, 93, 0, 0.15); color: var(--text-primary); }

.ai-detection-alert { background: linear-gradient(135deg, rgba(16, 185, 129, 0.18) 0%, rgba(255, 183, 0, 0.1) 100%); border: 1px solid var(--color-green); border-radius: var(--radius-md); padding: 12px; display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }

.grid-2col-pos { display: grid; grid-template-columns: 1.2fr 1fr; gap: 20px; }
.tab-switcher { display: flex; gap: 8px; margin-bottom: 14px; }
.tab-btn { flex: 1; padding: 10px; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--glass-border-subtle); color: var(--text-secondary); border-radius: var(--radius-md); cursor: pointer; font-weight: 600; }
.tab-btn.active { background: var(--primary-orange); color: white; border-color: var(--primary-orange); }

.picker-list { max-height: 400px; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; }
.picker-item { background: rgba(255, 255, 255, 0.03); border: 1px solid var(--glass-border-subtle); border-radius: var(--radius-md); padding: 10px 14px; display: flex; align-items: center; justify-content: space-between; cursor: pointer; transition: all var(--transition-fast); }

.ticket-panel { display: flex; flex-direction: column; height: 100%; }
.cart-table { width: 100%; border-collapse: collapse; margin-bottom: 12px; }
.cart-table th { font-size: 0.72rem; color: var(--text-secondary); border-bottom: 1px solid var(--glass-border-subtle); padding: 6px; }
.cart-table td { padding: 8px 6px; border-bottom: 1px solid var(--glass-border-subtle); font-size: 0.85rem; }

.empty-state-box, .empty-state-sm { text-align: center; padding: 30px 16px; color: var(--text-muted); }
.ticket-summary { padding: 14px; border-radius: var(--radius-md); margin-top: 14px; }
.summary-line { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; font-size: 0.85rem; }
.total-line { border-top: 1px solid var(--glass-border-subtle); padding-top: 10px; margin-top: 10px; font-weight: 700; }
.total-amount { font-size: 1.7rem; font-weight: 900; color: var(--accent-yellow); }

/* Services Grid */
.services-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.service-card { padding: 18px; border-radius: var(--radius-lg); display: flex; flex-direction: column; justify-content: space-between; gap: 14px; }
.service-icon { width: 44px; height: 44px; background: rgba(255, 93, 0, 0.15); color: var(--primary-orange); border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center; font-size: 1.2rem; margin-bottom: 8px; }
.service-price { font-size: 1.4rem; font-weight: 800; color: var(--accent-yellow); }

/* Inputs & Modals */
.form-group { margin-bottom: 14px; }
.form-group label { display: block; font-size: 0.82rem; font-weight: 600; color: var(--text-secondary); margin-bottom: 5px; }

input[type="text"], input[type="number"], input[type="email"], input[type="password"], select {
  width: 100%; background: var(--glass-bg); border: 1px solid var(--glass-border-subtle); border-radius: var(--radius-md); padding: 10px 12px; color: var(--text-primary); font-family: var(--font-family); font-size: 0.92rem; transition: border-color var(--transition-fast);
}

input:focus, select:focus { outline: none; border-color: var(--primary-orange); }
.input-lg { padding: 12px 14px; font-size: 1rem; }
.input-sm { padding: 8px 10px; font-size: 0.82rem; }
.input-highlight { border-color: var(--accent-yellow); background: rgba(255, 183, 0, 0.06); }
.input-inline { width: auto; max-width: 160px; padding: 4px 8px; }

.form-row { display: flex; gap: 10px; }
.col-6 { flex: 1; }

.filter-bar { display: flex; gap: 12px; padding: 14px; border-radius: var(--radius-md); margin-bottom: 16px; flex-wrap: wrap; }
.search-box-sm { flex: 1.5; position: relative; display: flex; align-items: center; }
.search-box-sm i { position: absolute; left: 12px; color: var(--text-secondary); }
.search-box-sm input { padding-left: 36px; }
.select-box { flex: 1; min-width: 160px; }

.modal-overlay { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.8); backdrop-filter: blur(8px); display: none; align-items: center; justify-content: center; z-index: 2000; padding: 16px; }
.modal-overlay.active { display: flex; animation: fadeIn 0.2s ease-out; }
.modal-card { width: 100%; max-width: 480px; border-radius: var(--radius-xl); overflow: hidden; }
.modal-header { padding: 14px 18px; border-bottom: 1px solid var(--glass-border-subtle); display: flex; align-items: center; justify-content: space-between; }
.modal-close { background: none; border: none; color: var(--text-secondary); font-size: 1.5rem; cursor: pointer; }
.modal-body { padding: 20px; }

.profile-avatar-wrapper { display: flex; align-items: center; gap: 14px; padding: 12px; border-radius: var(--radius-md); }
.profile-avatar-wrapper img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; border: 2px solid var(--primary-orange); }

.toast-container { position: fixed; bottom: 80px; right: 20px; display: flex; flex-direction: column; gap: 8px; z-index: 3000; }
@media (min-width: 769px) { .toast-container { bottom: 24px; } }

.toast { background: var(--bg-header); backdrop-filter: blur(12px); border: 1px solid var(--primary-orange); color: var(--text-primary); padding: 10px 18px; border-radius: var(--radius-md); box-shadow: var(--shadow-glow); }

/* MOBILE RESPONSIVE OVERRIDES */
@media (max-width: 768px) {
  .hide-mobile-sidebar { display: none !important; }
  .hide-mobile { display: none !important; }
  .mobile-bottom-nav { display: flex !important; }
  .main-content { padding: 14px 14px 90px 14px; }
  .grid-2col, .grid-2col-pos, .ai-workflow-grid { grid-template-columns: 1fr; }
  .page-title-bar { flex-direction: column; align-items: flex-start; }
  .action-buttons { width: 100%; display: flex; gap: 8px; }
  .action-buttons .btn { flex: 1; }
  .search-hero-box { padding: 16px; }
  .search-input-wrapper input { height: 48px; font-size: 1rem; }
}
