/* =========================================================
   SUPER TAXITAS LUXURY — DESIGN SYSTEM (NEGRO CARBÓN & ORO)
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

:root {
  /* Color Palette - Luxury Matte Black & Metallic Gold */
  --bg-deep: #0a0a0b;
  --bg-subtle: #111115;
  --bg-card: #16161c;
  --bg-card-hover: #1c1c24;
  --bg-card-glass: rgba(22, 22, 28, 0.85);
  --bg-card-input: #0e0e12;
  
  --border-subtle: #26262e;
  --border-hover: #383844;
  --border-gold: rgba(245, 184, 0, 0.35);
  --border-gold-bright: #f5b800;

  --gold: #f5b800;
  --gold-light: #ffca2c;
  --gold-dark: #d49a00;
  --gold-gradient: linear-gradient(135deg, #ffca2c 0%, #f5b800 50%, #d49a00 100%);
  --gold-glow: 0 4px 18px rgba(245, 184, 0, 0.28);
  --gold-glow-lg: 0 8px 30px rgba(245, 184, 0, 0.4);

  --text-primary: #ffffff;
  --text-secondary: #e5e7eb;
  --text-muted: #8e8e99;
  --text-dark: #0a0a0b;

  --accent-green: #10b981;
  --accent-green-bg: rgba(16, 185, 129, 0.12);
  --accent-green-border: rgba(16, 185, 129, 0.3);

  --accent-red: #ef4444;
  --accent-red-bg: rgba(239, 68, 68, 0.12);
  --accent-red-border: rgba(239, 68, 68, 0.3);

  --accent-blue: #3b82f6;
  --accent-orange: #f97316;

  --uber-color: #ffffff;
  --indrive-color: #10b981;
  --didi-color: #ff7d00;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 22px;
  --radius-pill: 9999px;

  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  width: 100%;
  min-height: 100vh;
  font-family: var(--font-family);
  background-color: var(--bg-deep);
  background-image: 
    radial-gradient(circle at 15% 15%, rgba(245, 184, 0, 0.04) 0%, transparent 40%),
    radial-gradient(circle at 85% 85%, rgba(245, 184, 0, 0.03) 0%, transparent 40%),
    radial-gradient(circle at 50% 50%, rgba(17, 17, 21, 0.95) 0%, #0a0a0b 100%);
  background-attachment: fixed;
  color: var(--text-secondary);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--gold);
  text-decoration: none;
  transition: var(--transition);
}
a:hover {
  color: var(--gold-light);
  text-decoration: underline;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: 14px;
}

.hidden {
  display: none !important;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-deep);
}
::-webkit-scrollbar-thumb {
  background: var(--border-subtle);
  border-radius: var(--radius-pill);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--gold);
}

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

.gold-text {
  color: var(--gold);
}
.gold-gradient-text {
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.muted {
  color: var(--text-muted);
}

/* Badges */
.gold-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(245, 184, 0, 0.1);
  border: 1px solid var(--border-gold);
  color: var(--gold-light);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.badge-green {
  background: var(--accent-green-bg);
  border: 1px solid var(--accent-green-border);
  color: var(--accent-green);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.badge-verified {
  background: rgba(16, 185, 129, 0.18);
  border: 1px solid var(--accent-green);
  color: #34d399;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.2);
}

.badge-yellow {
  background: rgba(245, 184, 0, 0.15);
  border: 1px solid var(--border-gold);
  color: var(--gold-light);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 700;
}

.badge-pending-review {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(245, 184, 0, 0.16);
  color: #fbbf24;
  border: 1px solid rgba(245, 184, 0, 0.45);
  font-size: 11px;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  box-shadow: 0 0 8px rgba(245, 184, 0, 0.15);
}

.badge-red {
  background: var(--accent-red-bg);
  border: 1px solid var(--accent-red-border);
  color: var(--accent-red);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 700;
}

.badge-gray {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 700;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--radius-md);
  font-weight: 700;
  cursor: pointer;
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
  color: var(--text-primary);
  transition: var(--transition);
  user-select: none;
}
.btn:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
  transform: translateY(-1px);
}
.btn:active {
  transform: translateY(0);
}

.btn-gold {
  background: var(--gold-gradient);
  color: var(--text-dark);
  border: none;
  font-weight: 900;
  box-shadow: var(--gold-glow);
}
.btn-gold:hover {
  background: linear-gradient(135deg, #ffe066 0%, #ffca2c 50%, #f5b800 100%);
  box-shadow: var(--gold-glow-lg);
  color: #000;
}

.btn-sm {
  padding: 6px 12px;
  font-size: 12px;
  border-radius: var(--radius-sm);
}

.btn-lg {
  padding: 14px 24px;
  font-size: 16px;
  border-radius: var(--radius-md);
}

.btn-block {
  width: 100%;
}

.btn-outline-gold {
  background: transparent;
  border: 1px solid var(--border-gold);
  color: var(--gold-light);
}
.btn-outline-gold:hover {
  background: rgba(245, 184, 0, 0.12);
  border-color: var(--gold);
}

.icon-btn {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition);
}
.icon-btn:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-gold);
  color: var(--gold);
}

/* PWA Install Button */
.btn-pwa-install {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  background: rgba(245, 184, 0, 0.12);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-pill);
  color: var(--gold-light);
  font-weight: 800;
  font-size: 12px;
  cursor: pointer;
  transition: var(--transition);
}
.btn-pwa-install:hover {
  background: var(--gold-gradient);
  color: var(--text-dark);
  box-shadow: var(--gold-glow);
  transform: translateY(-1px);
}

/* Cards & Panels */
.card {
  background: var(--bg-card-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 22px;
  position: relative;
  transition: var(--transition);
}
.card:hover {
  border-color: var(--border-hover);
}
.card-gold {
  border-color: var(--border-gold);
  background: linear-gradient(180deg, rgba(245, 184, 0, 0.05) 0%, rgba(22, 22, 28, 0.95) 100%);
}

/* Forms & Inputs */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}
.form-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.form-label span.req {
  color: var(--gold);
}

input, select, textarea {
  width: 100%;
  padding: 12px 14px;
  background: var(--bg-card-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  outline: none;
  transition: var(--transition);
}
input:focus, select:focus, textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(245, 184, 0, 0.18);
  background: #121217;
}
input::placeholder, textarea::placeholder {
  color: #555562;
}
select {
  cursor: pointer;
}
select option {
  background: var(--bg-card);
  color: var(--text-primary);
}

.password-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.password-wrap input {
  padding-right: 44px;
}
.password-wrap .toggle-pw {
  position: absolute;
  right: 6px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 6px 8px;
  font-size: 16px;
}
.password-wrap .toggle-pw:hover {
  color: var(--gold);
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
@media (max-width: 640px) {
  .grid-2 {
    grid-template-columns: 1fr;
  }
}

/* Toast System */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border-gold);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), var(--gold-glow);
  padding: 14px 22px;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 14px;
  z-index: 99999;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  pointer-events: none;
}
.toast.show {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

/* Platform Connection System */
.platform-sync-banner {
  background: linear-gradient(135deg, rgba(245, 184, 0, 0.08) 0%, rgba(22, 22, 28, 0.95) 100%);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.platform-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 18px;
  margin-bottom: 24px;
}

.platform-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: var(--transition);
}
.platform-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
}
.platform-card.connected {
  border-color: rgba(16, 185, 129, 0.4);
  background: linear-gradient(180deg, rgba(16, 185, 129, 0.04) 0%, rgba(22, 22, 28, 0.95) 100%);
}

.platform-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.platform-logo-title {
  display: flex;
  align-items: center;
  gap: 10px;
}
.platform-icon-badge {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
}

.spin-anim {
  animation: spin 1s linear infinite;
  display: inline-block;
}
@keyframes spin {
  100% { transform: rotate(360deg); }
}

/* =========================================================
   OCR / SCREENSHOT VALIDATION MODULE STYLES (TESSERACT.JS)
   ========================================================= */
.ocr-dropzone {
  border: 2px dashed var(--border-gold);
  background: rgba(245, 184, 0, 0.03);
  border-radius: var(--radius-lg);
  padding: 32px 20px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
}
.ocr-dropzone:hover, .ocr-dropzone.dragover {
  border-color: var(--gold);
  background: rgba(245, 184, 0, 0.08);
  box-shadow: var(--gold-glow);
}

.ocr-preview-container {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  background: #121217;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 18px;
  margin-top: 14px;
  flex-wrap: wrap;
}
.ocr-preview-img {
  width: 140px;
  max-height: 180px;
  object-fit: cover;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-gold);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
}

.ocr-progress-box {
  padding: 16px;
  background: rgba(245, 184, 0, 0.08);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-md);
  margin-top: 14px;
}
.ocr-progress-bar-wrap {
  width: 100%;
  height: 10px;
  background: #202028;
  border-radius: var(--radius-pill);
  overflow: hidden;
  margin-top: 10px;
  position: relative;
}
.ocr-progress-fill-bar {
  height: 100%;
  background: var(--gold-gradient);
  border-radius: var(--radius-pill);
  transition: width 0.25s ease;
}

.ocr-result-card {
  margin-top: 16px;
  padding: 18px;
  background: linear-gradient(180deg, rgba(22, 22, 28, 0.95) 0%, rgba(18, 18, 23, 0.98) 100%);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}

.ocr-meta-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.05);
  font-size: 12px;
  color: var(--text-secondary);
}

.badge-ocr-verified {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.4);
  font-size: 11px;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.tab-nav {
  display: flex;
  gap: 10px;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 12px;
  margin-bottom: 20px;
}
.tab-btn {
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-muted);
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}
.tab-btn.active {
  background: rgba(245, 184, 0, 0.15);
  border-color: var(--border-gold);
  color: var(--gold-light);
}

/* =========================================================
   LOGIN SCREEN LAYOUT
   ========================================================= */
.login-wrapper {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: center;
  padding: 40px;
  gap: 60px;
  max-width: 1300px;
  margin: 0 auto;
}

.login-brand {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.login-brand .logo-container {
  display: flex;
  align-items: center;
  gap: 16px;
}
.login-brand .brand-logo-large {
  max-width: 240px;
  height: auto;
  filter: drop-shadow(0 10px 25px rgba(245, 184, 0, 0.3));
  transition: transform 0.4s ease;
}
.login-brand .brand-logo-large:hover {
  transform: scale(1.03) rotate(-1deg);
}

.login-brand h1 {
  font-size: 42px;
  line-height: 1.15;
  font-weight: 900;
  letter-spacing: -0.03em;
}
.login-brand p {
  color: var(--text-muted);
  font-size: 16px;
  max-width: 520px;
  line-height: 1.6;
}

.login-features {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 10px;
}
.login-features .feature-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: var(--text-secondary);
}
.login-features .feature-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  background: rgba(245, 184, 0, 0.1);
  border: 1px solid var(--border-gold);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.login-card-wrap {
  width: 100%;
  max-width: 460px;
  margin: 0 auto;
}
.login-card {
  padding: 36px 32px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.7), 0 0 0 1px var(--border-subtle);
  border-radius: var(--radius-xl);
}

.mobile-brand-logo {
  display: none;
  text-align: center;
  margin-bottom: 20px;
}
.mobile-brand-logo img {
  max-width: 160px;
  filter: drop-shadow(0 4px 16px rgba(245, 184, 0, 0.3));
}

.login-links {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 18px;
  font-size: 13px;
}
.link-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 4px;
  font-size: 13px;
  transition: var(--transition);
}

.demo-box {
  margin-top: 20px;
  padding: 12px 16px;
  background: rgba(245, 184, 0, 0.06);
  border: 1px dashed var(--border-gold);
  border-radius: var(--radius-md);
  font-size: 12px;
  color: var(--gold-light);
  line-height: 1.5;
}

@media (max-width: 960px) {
  .login-wrapper {
    grid-template-columns: 1fr;
    padding: 24px 16px;
    gap: 30px;
  }
  .login-brand {
    display: none;
  }
  .mobile-brand-logo {
    display: block;
  }
}

/* =========================================================
   DASHBOARD LAYOUT & SIDEBAR
   ========================================================= */
.dashboard-layout {
  display: grid;
  grid-template-columns: 270px 1fr;
  min-height: 100vh;
  width: 100%;
}

.sidebar {
  background: #0d0d10;
  border-right: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  z-index: 1000;
  padding: 24px 16px;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  padding: 0 8px;
}
.sidebar-logo {
  max-height: 52px;
  width: auto;
  filter: drop-shadow(0 4px 12px rgba(245, 184, 0, 0.25));
}

.sidebar-close-btn {
  display: none;
}

.nav-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
  overflow-y: auto;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 11px 16px;
  border-radius: var(--radius-pill);
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  text-align: left;
  width: 100%;
}
.nav-item .nav-icon {
  font-size: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
}
.nav-item:hover {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.08);
}

.nav-item.active {
  background: var(--gold-gradient) !important;
  color: var(--text-dark) !important;
  font-weight: 800 !important;
  box-shadow: var(--gold-glow);
  border-color: var(--gold);
}
.nav-item.active .nav-icon {
  color: var(--text-dark);
}

.sidebar-footer {
  padding-top: 16px;
  border-top: 1px solid var(--border-subtle);
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.logout-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  border-radius: var(--radius-pill);
  background: transparent;
  border: 1px solid transparent;
  color: #ff6b6b;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  width: 100%;
}
.logout-btn:hover {
  background: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.2);
}

.main-area {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 100vh;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 32px;
  background: rgba(13, 13, 16, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
  position: sticky;
  top: 0;
  z-index: 900;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 14px;
}
.menu-toggle {
  display: none;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 20px;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.user-chip {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  padding: 6px 14px 6px 8px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: var(--transition);
}
.user-chip:hover {
  border-color: var(--border-gold);
}
.user-chip .avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--gold-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  box-shadow: var(--gold-glow);
}
.user-chip-info {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.user-chip-info strong {
  font-size: 13px;
  color: var(--text-primary);
}
.user-chip-info small {
  font-size: 11px;
  color: var(--gold);
  font-weight: 700;
}

.content {
  padding: 32px;
  flex: 1;
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
}

.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  z-index: 999;
}
.sidebar-overlay.show {
  display: block;
}

.bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(13, 13, 16, 0.95);
  backdrop-filter: blur(16px);
  border-top: 1px solid var(--border-subtle);
  padding: 8px 12px;
  z-index: 1000;
  justify-content: space-around;
}
.bn-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
  padding: 6px 12px;
  border-radius: var(--radius-md);
  transition: var(--transition);
}
.bn-item .bn-icon {
  font-size: 18px;
}
.bn-item.active {
  color: var(--gold);
}
.bn-item.active .bn-icon {
  transform: translateY(-2px);
  filter: drop-shadow(0 2px 8px var(--gold));
}

@media (max-width: 960px) {
  .dashboard-layout {
    grid-template-columns: 1fr;
  }
  .sidebar {
    position: fixed;
    top: 0;
    left: -290px;
    width: 280px;
    transition: left 0.3s ease;
    box-shadow: 10px 0 30px rgba(0, 0, 0, 0.8);
  }
  .sidebar.open {
    left: 0;
  }
  .sidebar-close-btn {
    display: flex;
  }
  .menu-toggle {
    display: flex;
  }
  .topbar {
    padding: 12px 16px;
  }
  .content {
    padding: 20px 16px 80px 16px;
  }
  .bottom-nav {
    display: flex;
  }
}

/* =========================================================
   MODAL STYLES
   ========================================================= */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 9999;
  animation: fadeIn 0.2s ease-out;
}

.modal-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 650px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 30px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), 0 0 0 1px var(--border-gold);
  position: relative;
  animation: scaleUp 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 18px;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes scaleUp {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

/* KPI Metrics Grid */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.kpi-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}
.kpi-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--border-subtle);
}
.kpi-card.gold::after {
  background: var(--gold-gradient);
}
.kpi-card.green::after {
  background: var(--accent-green);
}
.kpi-card .kpi-label {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}
.kpi-card .kpi-value {
  font-size: 26px;
  font-weight: 900;
  color: var(--text-primary);
  margin: 6px 0 2px;
}
.kpi-card .kpi-sub {
  font-size: 12px;
  color: var(--text-muted);
}

.position-circle {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 4px solid var(--gold);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-shadow: var(--gold-glow);
  background: rgba(245, 184, 0, 0.05);
}

.table-responsive {
  width: 100%;
  overflow-x: auto;
}
.luxury-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 13px;
}
.luxury-table th {
  padding: 12px 14px;
  color: var(--text-muted);
  font-weight: 700;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.02);
}
.luxury-table td {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  color: var(--text-secondary);
}
.luxury-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

.podium-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  margin-top: 16px;
}
.podium-item {
  background: #121217;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px 12px;
  text-align: center;
  transition: var(--transition);
}
.podium-item.first-place {
  border-color: var(--gold);
  background: linear-gradient(180deg, rgba(245, 184, 0, 0.12) 0%, #16161c 100%);
  box-shadow: var(--gold-glow);
  transform: translateY(-4px);
}
.podium-item .place-icon {
  font-size: 24px;
  margin-bottom: 4px;
}
.podium-item .prize-usd {
  font-size: 18px;
  font-weight: 900;
  color: var(--gold-light);
}
.podium-item .prize-dop {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}

.app-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 20px;
  transition: var(--transition);
}
.app-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
}
.app-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.app-card-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 16px;
}

.progress-bar-wrap {
  width: 100%;
  height: 10px;
  background: #202028;
  border-radius: var(--radius-pill);
  overflow: hidden;
  margin: 10px 0;
}
.progress-bar-fill {
  height: 100%;
  background: var(--gold-gradient);
  border-radius: var(--radius-pill);
  box-shadow: var(--gold-glow);
  transition: width 0.4s ease;
}

/* Toast Notifications */
.toast {
  position: fixed;
  bottom: 28px;
  right: 28px;
  background: rgba(22, 22, 28, 0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: var(--text-primary);
  padding: 14px 22px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-gold);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8), var(--gold-glow);
  font-size: 13px;
  font-weight: 700;
  z-index: 10000;
  opacity: 0;
  transform: translateY(20px) scale(0.95);
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  max-width: 440px;
  line-height: 1.4;
}

.toast.show {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.toast.toast-error {
  background: linear-gradient(135deg, rgba(185, 28, 28, 0.98) 0%, rgba(127, 29, 29, 0.98) 100%) !important;
  border-color: #ef4444 !important;
  color: #ffffff !important;
  box-shadow: 0 12px 35px rgba(239, 68, 68, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.15) !important;
}

/* =========================================================
   SISTEMA DE EMERGENCIA SOS & ALERTAS
   ========================================================= */
@keyframes pulse-sos {
  0% {
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
    transform: scale(1);
  }
  70% {
    box-shadow: 0 0 0 14px rgba(239, 68, 68, 0);
    transform: scale(1.05);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
    transform: scale(1);
  }
}

.btn-sos {
  background: linear-gradient(135deg, #ef4444 0%, #b91c1c 100%);
  color: #ffffff;
  border: 1px solid #f87171;
  font-weight: 900;
  font-size: 13px;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  animation: pulse-sos 2s infinite;
  transition: transform 0.2s ease, filter 0.2s ease;
  letter-spacing: 0.05em;
}

.btn-sos:hover {
  filter: brightness(1.15);
  transform: scale(1.08);
}

.sos-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  padding: 20px;
}

.sos-modal-card {
  background: #16161c;
  border: 2px solid #ef4444;
  box-shadow: 0 20px 60px rgba(239, 68, 68, 0.35);
  border-radius: var(--radius-lg);
  max-width: 480px;
  width: 100%;
  padding: 28px;
  text-align: center;
}

.active-sos-banner {
  background: linear-gradient(135deg, rgba(185, 28, 28, 0.95) 0%, rgba(127, 29, 29, 0.95) 100%);
  border: 1px solid #ef4444;
  box-shadow: 0 8px 24px rgba(239, 68, 68, 0.4);
  border-radius: var(--radius-md);
  padding: 14px 20px;
  margin: 16px 0 20px;
  color: #ffffff;
}

/* =========================================================
   MODO CONDUCCIÓN HUD & MANOS LIBRES
   ========================================================= */
.hud-driving-overlay {
  position: fixed;
  inset: 0;
  background: #08080a;
  z-index: 20000;
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 24px;
}

.hud-container {
  max-width: 800px;
  width: 100%;
}

.hud-card {
  background: #16161c;
  border: 2px solid var(--border-gold);
  border-radius: 16px;
  padding: 24px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0,0,0,0.7), var(--gold-glow);
}

.hud-big-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px 10px;
  border-radius: 14px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, filter 0.2s ease;
  min-height: 100px;
}

.hud-big-btn:hover {
  transform: scale(1.04);
  filter: brightness(1.15);
}

/* =========================================================
   CENTRO DE NOTIFICACIONES
   ========================================================= */
.notif-badge-bubble {
  position: absolute;
  top: -4px;
  right: -4px;
  background: #ef4444;
  color: #ffffff;
  font-size: 10px;
  font-weight: 900;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 8px rgba(239, 68, 68, 0.8);
}

.notifications-dropdown {
  position: absolute;
  top: 45px;
  right: 0;
  width: 320px;
  background: #16161c;
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-md);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.9), var(--gold-glow);
  z-index: 1000;
  overflow: hidden;
}

.notif-dropdown-header {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #121217;
}

.notif-dropdown-list {
  max-height: 360px;
  overflow-y: auto;
}

.notif-item {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-subtle);
  cursor: pointer;
  transition: background 0.2s ease;
}

.notif-item:hover {
  background: rgba(245, 184, 0, 0.08);
}

.notif-item.unread {
  background: rgba(245, 184, 0, 0.05);
  border-left: 3px solid var(--gold);
}

/* Impresión de Reportes */
@media print {
  .sidebar, .topbar, .bottom-nav, .btn, .icon-btn, .login-wrapper {
    display: none !important;
  }
  body, .main-area, .content {
    background: #ffffff !important;
    color: #000000 !important;
    padding: 0 !important;
    margin: 0 !important;
  .card, .luxury-table {
    border: 1px solid #cccccc !important;
    box-shadow: none !important;
    background: #ffffff !important;
    color: #000000 !important;
  }
}

/* =========================================================
   ROLE BADGES (RBAC)
   ========================================================= */
.role-badge-driver {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(148, 163, 184, 0.15);
  color: #94a3b8;
  border: 1px solid rgba(148, 163, 184, 0.3);
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.role-badge-mod {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(96, 165, 250, 0.15);
  color: #93c5fd;
  border: 1px solid rgba(96, 165, 250, 0.4);
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.role-badge-admin {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(245, 184, 0, 0.15);
  color: var(--gold);
  border: 1px solid var(--border-gold);
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  box-shadow: 0 0 10px rgba(245, 184, 0, 0.2);
}

/* =========================================================
   SWITCH TOGGLE & PERMISSION MATRIX (RBAC)
   ========================================================= */
.switch {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 26px;
  flex-shrink: 0;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #23232a;
  transition: .25s ease-in-out;
  border-radius: 26px;
  border: 1px solid #3f3f46;
}

.slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: #71717a;
  transition: .25s ease-in-out;
  border-radius: 50%;
}

.switch input:checked + .slider {
  background-color: rgba(245, 184, 0, 0.22);
  border-color: var(--gold);
}

.switch input:checked + .slider:before {
  transform: translateX(22px);
  background-color: var(--gold);
  box-shadow: 0 0 10px rgba(245, 184, 0, 0.7);
}

.switch input:disabled + .slider {
  cursor: not-allowed;
  opacity: 0.5;
}

.perm-matrix-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
  margin-top: 14px;
}

.perm-card {
  background: #121217;
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  transition: all 0.2s ease;
}

.perm-card:hover {
  border-color: rgba(245, 184, 0, 0.35);
}

.perm-card.enabled {
  border-color: rgba(245, 184, 0, 0.4);
  background: linear-gradient(180deg, rgba(245, 184, 0, 0.04) 0%, #121217 100%);
}

.perm-card.disabled {
  border-color: rgba(239, 68, 68, 0.25);
  background: #0e0e12;
}

/* =========================================================
   PUBLICIDAD NATIVA & PATROCINADORES (BANNER & SPLASH)
   ========================================================= */

/* 1. Native Dashboard Banner */
.sponsored-banner-card {
  position: relative;
  background: linear-gradient(135deg, rgba(26, 26, 35, 0.95) 0%, rgba(18, 18, 24, 0.98) 100%);
  border: 1px solid rgba(245, 184, 0, 0.35);
  border-radius: var(--radius-lg);
  padding: 16px 20px;
  margin: 18px 0 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(245, 184, 0, 0.15);
  transition: var(--transition);
  overflow: hidden;
}

.sponsored-banner-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gold-gradient);
  opacity: 0.8;
}

.sponsored-banner-card:hover {
  border-color: var(--gold);
  transform: translateY(-2px);
  box-shadow: var(--gold-glow), 0 8px 25px rgba(0, 0, 0, 0.5);
}

.sponsored-banner-left {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1;
}

.sponsored-banner-img {
  width: 58px;
  height: 58px;
  border-radius: var(--radius-md);
  object-fit: cover;
  border: 1px solid rgba(245, 184, 0, 0.3);
  background: #0f0f14;
  flex-shrink: 0;
}

.sponsored-banner-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sponsored-badge-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sponsored-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(245, 184, 0, 0.12);
  border: 1px solid rgba(245, 184, 0, 0.4);
  color: var(--gold);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
}

.sponsored-partner-name {
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 500;
}

.sponsored-banner-title {
  color: var(--text-primary);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
}

.sponsored-banner-desc {
  color: #c4c4cc;
  font-size: 13px;
  line-height: 1.4;
}

.btn-sponsored-cta {
  background: var(--gold-gradient);
  color: var(--text-dark);
  font-weight: 700;
  font-size: 13px;
  padding: 10px 18px;
  border-radius: var(--radius-md);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: var(--gold-glow);
  transition: var(--transition);
  text-decoration: none;
  flex-shrink: 0;
}

.btn-sponsored-cta:hover {
  color: var(--text-dark);
  text-decoration: none;
  filter: brightness(1.1);
  transform: scale(1.03);
  box-shadow: var(--gold-glow-lg);
}

@media (max-width: 768px) {
  .sponsored-banner-card {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    padding: 14px 16px;
  }
  .sponsored-banner-left {
    align-items: flex-start;
  }
  .btn-sponsored-cta {
    justify-content: center;
    width: 100%;
  }
}

/* 2. Splash Screen Patrocinada */
.splash-screen-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: radial-gradient(circle at 50% 30%, #161622 0%, #09090c 100%);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding: 32px 24px;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.4s ease;
}

.splash-screen-overlay.splash-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.splash-header-row {
  width: 100%;
  max-width: 480px;
  display: flex;
  justify-content: flex-end;
}

.splash-skip-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #a1a1aa;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: var(--transition);
}

.splash-skip-btn:hover {
  background: rgba(245, 184, 0, 0.15);
  border-color: var(--gold);
  color: var(--gold);
}

.splash-main-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 420px;
  width: 100%;
  gap: 18px;
}

.splash-logo-wrap {
  width: 84px;
  height: 84px;
  border-radius: 24px;
  background: linear-gradient(135deg, #1c1c24 0%, #0d0d10 100%);
  border: 2px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 38px;
  box-shadow: var(--gold-glow-lg);
  animation: splashPulse 2s infinite ease-in-out;
}

@keyframes splashPulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 20px rgba(245, 184, 0, 0.3); }
  50% { transform: scale(1.05); box-shadow: 0 0 35px rgba(245, 184, 0, 0.6); }
}

.splash-app-name {
  font-size: 26px;
  font-weight: 900;
  letter-spacing: -0.5px;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.splash-tagline {
  color: var(--text-muted);
  font-size: 13px;
  margin-top: -8px;
}

.splash-loader-bar-wrap {
  width: 100%;
  max-width: 260px;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-pill);
  overflow: hidden;
  margin-top: 10px;
}

.splash-loader-bar-fill {
  width: 0%;
  height: 100%;
  background: var(--gold-gradient);
  border-radius: var(--radius-pill);
  box-shadow: 0 0 10px var(--gold);
  animation: splashProgress 2.2s ease-out forwards;
}

@keyframes splashProgress {
  0% { width: 0%; }
  35% { width: 45%; }
  70% { width: 80%; }
  100% { width: 100%; }
}

.splash-sponsor-card {
  width: 100%;
  max-width: 440px;
  background: rgba(22, 22, 30, 0.85);
  border: 1px solid rgba(245, 184, 0, 0.28);
  backdrop-filter: blur(12px);
  border-radius: var(--radius-lg);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
  cursor: pointer;
  transition: var(--transition);
}

.splash-sponsor-card:hover {
  border-color: var(--gold);
  background: rgba(26, 26, 36, 0.95);
  transform: translateY(-2px);
}

.splash-sponsor-logo {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  object-fit: cover;
  border: 1px solid rgba(245, 184, 0, 0.3);
  background: #0f0f14;
  flex-shrink: 0;
}

.splash-sponsor-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.splash-sponsor-kicker {
  font-size: 10px;
  font-weight: 700;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.splash-sponsor-title {
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
}

.splash-sponsor-desc {
  color: var(--text-muted);
  font-size: 11px;
  line-height: 1.3;
}

/* 3. Admin Banner Management UI */
.banners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.banner-item-card {
  background: #14141a;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  transition: var(--transition);
}

.banner-item-card.active-banner {
  border-color: rgba(245, 184, 0, 0.4);
}

.banner-item-card.inactive-banner {
  opacity: 0.7;
  border-color: var(--border-subtle);
}

.banner-item-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.banner-preview-thumb {
  width: 50px;
  height: 50px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #0b0b0e;
  flex-shrink: 0;
}

.banner-stat-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 6px 0;
}

.banner-chip {
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.banner-chip.gold {
  color: var(--gold);
  background: rgba(245, 184, 0, 0.1);
  border-color: rgba(245, 184, 0, 0.25);
}

.banner-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

/* Badges de Tipo de Proveedor */
.provider-badge-direct {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #10b981;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: var(--radius-pill);
}

.provider-badge-programmatic {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(59, 130, 246, 0.12);
  border: 1px solid rgba(59, 130, 246, 0.35);
  color: #60a5fa;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: var(--radius-pill);
}

.ad-filter-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 6px;
  margin-bottom: 18px;
}

.ad-filter-tab {
  background: #161620;
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition);
}

.ad-filter-tab:hover {
  border-color: rgba(245, 184, 0, 0.3);
  color: var(--text-primary);
}

.ad-filter-tab.active {
  background: rgba(245, 184, 0, 0.15);
  border-color: var(--gold);
  color: var(--gold);
  font-weight: 700;
}

.ad-script-preview-box {
  background: #0b0b0e;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  padding: 8px 10px;
  font-size: 11px;
  font-family: monospace;
  color: #93c5fd;
  max-height: 80px;
  overflow-y: auto;
  white-space: pre-wrap;
  word-break: break-all;
}

/* Interstitial Bottom Banner */
.interstitial-bottom-dock {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 999;
  background: rgba(18, 18, 24, 0.96);
  backdrop-filter: blur(12px);
  border-top: 1px solid rgba(245, 184, 0, 0.35);
  box-shadow: 0 -4px 25px rgba(0, 0, 0, 0.7);
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  animation: slideUp 0.35s ease-out;
}

@keyframes slideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

.interstitial-bottom-dock.hidden {
  display: none !important;
}

.btn-close-interstitial {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #9ca3af;
  font-size: 12px;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  flex-shrink: 0;
}

.btn-close-interstitial:hover {
  background: rgba(239, 68, 68, 0.2);
  border-color: #ef4444;
  color: #ef4444;
}

