/* ========================================================
   Qcode - Converto Design System
   Matches https://converto.loopingon.com/
   Powered by Loopingon
   ======================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600&family=Space+Grotesk:wght@500;600;700&display=swap');

:root {
  --dark-base: #07080b;
  --dark-surface: #0f1117;
  --dark-card: #131620;
  --dark-border: rgba(255, 255, 255, 0.08);
  --dark-hover: rgba(255, 255, 255, 0.12);

  --brand-50: #fff1f2;
  --brand-100: #ffe4e6;
  --brand-500: #f43f5e;
  --brand-600: #e11d48;
  --brand-700: #be123c;
  --brand-accent: #ef4444;
  --brand-glow: rgba(239, 68, 68, 0.35);

  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --font-display: 'Space Grotesk', sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  background-color: var(--dark-base);
  color: #f5f5f5;
  font-family: var(--font-sans);
  min-height: 100vh;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

/* Ambient Background Glows like Converto */
.ambient-glow {
  position: fixed;
  top: 0;
  right: 0;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(239, 68, 68, 0.07) 0%, rgba(0, 0, 0, 0) 70%);
  pointer-events: none;
  z-index: 0;
}

.ambient-glow-left {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.04) 0%, rgba(0, 0, 0, 0) 70%);
  pointer-events: none;
  z-index: 0;
}

/* Radar Grid Overlay from Converto */
.bg-radar-grid {
  background-size: 40px 40px;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
}

/* Custom Scrollbars */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: #090a0f;
}
::-webkit-scrollbar-thumb {
  background: #232736;
  border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
  background: #3b4259;
}

/* Converto Cards */
.converto-card {
  position: relative;
  background: linear-gradient(to bottom, var(--dark-card), var(--dark-surface));
  border: 1px solid var(--dark-border);
  border-radius: 1.25rem;
  box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.7);
  overflow: visible;
  transition: all 0.25s ease;
}

.converto-card:hover {
  border-color: rgba(255, 255, 255, 0.14);
}

/* Red Glowing Accent Line */
.card-glow-line {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #ef4444, transparent);
  border-radius: 1.25rem 1.25rem 0 0;
  pointer-events: none;
}

/* Buttons like Converto */
.btn-primary {
  background: #ffffff;
  color: var(--dark-base);
  font-weight: 600;
  font-size: 0.875rem;
  padding: 0.625rem 1.35rem;
  border-radius: 9999px;
  border: 1px solid #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
  cursor: pointer;
}

.btn-primary:hover {
  background: #e4e4e7;
  transform: scale(1.02);
}

.btn-primary:active {
  transform: scale(0.98);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: #f5f5f5;
  font-weight: 500;
  font-size: 0.875rem;
  padding: 0.625rem 1.25rem;
  border-radius: 9999px;
  border: 1px solid var(--dark-border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.2s ease;
  cursor: pointer;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

.btn-accent {
  background: linear-gradient(135deg, #f43f5e 0%, #e11d48 100%);
  color: #ffffff;
  font-weight: 600;
  font-size: 0.875rem;
  padding: 0.625rem 1.35rem;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.2s ease;
  box-shadow: 0 4px 18px -2px rgba(239, 68, 68, 0.45);
  cursor: pointer;
}

.btn-accent:hover {
  background: linear-gradient(135deg, #fb7185 0%, #f43f5e 100%);
  transform: scale(1.02);
  box-shadow: 0 6px 24px -2px rgba(239, 68, 68, 0.6);
}

/* Converto Small Navbar Tabs */
.nav-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.85rem;
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 500;
  color: #a3a3a3;
  transition: all 0.18s ease;
  cursor: pointer;
  user-select: none;
  border: 1px solid transparent;
  white-space: nowrap;
}

.nav-pill-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.06);
}

.nav-pill-btn.active {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.18);
  font-weight: 600;
}

/* Inputs & Form Controls */
.q-input, .q-textarea {
  width: 100%;
  background: rgba(7, 8, 11, 0.8);
  border: 1px solid var(--dark-border);
  border-radius: 0.75rem;
  color: #ffffff;
  padding: 0.625rem 0.875rem;
  font-size: 0.875rem;
  outline: none;
  transition: all 0.2s ease;
}

.q-input:focus, .q-textarea:focus {
  border-color: #ef4444;
  background: #0f1117;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2);
}

input:-webkit-autofill,
input:-webkit-autofill:hover, 
input:-webkit-autofill:focus, 
input:-webkit-autofill:active {
  -webkit-box-shadow: 0 0 0 1000px #0e1017 inset !important;
  -webkit-text-fill-color: #f5f5f5 !important;
  border-color: rgba(239, 68, 68, 0.4) !important;
  transition: background-color 5000s ease-in-out 0s;
}

/* Converto Styled Dropdowns */
.q-select {
  width: 100%;
  background-color: rgba(7, 8, 11, 0.8);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23a3a3a3' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 14px;
  border: 1px solid var(--dark-border);
  border-radius: 0.75rem;
  color: #f5f5f5;
  padding: 0.625rem 2.25rem 0.625rem 0.875rem;
  font-size: 0.85rem;
  outline: none;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  transition: all 0.2s ease;
}

.q-select:focus {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2);
}

.q-select option {
  background-color: #131620;
  color: #f5f5f5;
  padding: 8px;
}

/* Type Grid Cards (me-qr style with Converto polish) */
.type-card {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--dark-border);
  border-radius: 0.75rem;
  padding: 0.75rem 0.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: all 0.18s ease;
}

.type-card:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.16);
  transform: translateY(-1px);
}

.type-card.active {
  background: #ffffff;
  color: #07080b;
  border-color: #ffffff;
  font-weight: 600;
  box-shadow: 0 4px 14px rgba(255, 255, 255, 0.2);
}
.type-card.active i, .type-card.active svg {
  color: #07080b;
}
.type-card.active .arrow-icon {
  transform: translateX(3px);
  color: #07080b;
}

/* Drag and Drop Zone */
.dropzone {
  border: 2px dashed var(--dark-border);
  border-radius: 1rem;
  transition: all 0.2s ease;
  background: rgba(255, 255, 255, 0.015);
  cursor: pointer;
}

.dropzone:hover, .dropzone.drag-active {
  border-color: #ef4444 !important;
  background-color: rgba(239, 68, 68, 0.05) !important;
  box-shadow: 0 0 25px -5px rgba(239, 68, 68, 0.3) !important;
}

/* Frame Templates Selector Cards */
.frame-card {
  border: 1px solid var(--dark-border);
  border-radius: 0.75rem;
  padding: 0.75rem 0.4rem;
  text-align: center;
  background: rgba(255, 255, 255, 0.02);
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
}

.frame-card:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.16);
  transform: translateY(-2px);
}

.frame-card.active {
  border-color: #ef4444;
  background: rgba(239, 68, 68, 0.1);
  box-shadow: 0 0 0 1px #ef4444;
}

/* Scanner HUD & Viewport */
.scanner-viewport {
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
  background: #000000;
  width: 100%;
  max-width: 580px;
  min-height: 380px;
  height: 420px;
  margin: 0 auto;
  border: 1px solid var(--dark-border);
}

@media (max-width: 640px) {
  .scanner-viewport {
    height: 380px;
    min-height: 340px;
  }
}

#scanner-reader {
  width: 100% !important;
  height: 100% !important;
  position: absolute !important;
  inset: 0 !important;
  overflow: hidden !important;
  border: none !important;
  border-radius: 1rem !important;
}

#scanner-reader video {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  border-radius: 1rem !important;
}

#qr-shaded-region {
  border: none !important;
}

#qr-shaded-region > div {
  border: none !important;
}

.scanner-hud-bracket {
  position: absolute;
  width: 24px;
  height: 24px;
  border-color: #ef4444;
  pointer-events: none;
  z-index: 10;
}
.scanner-hud-tl { top: 16px; left: 16px; border-top: 3px solid #ef4444; border-left: 3px solid #ef4444; border-top-left-radius: 4px; }
.scanner-hud-tr { top: 16px; right: 16px; border-top: 3px solid #ef4444; border-right: 3px solid #ef4444; border-top-right-radius: 4px; }
.scanner-hud-bl { bottom: 16px; left: 16px; border-bottom: 3px solid #ef4444; border-left: 3px solid #ef4444; border-bottom-left-radius: 4px; }
.scanner-hud-br { bottom: 16px; right: 16px; border-bottom: 3px solid #ef4444; border-right: 3px solid #ef4444; border-bottom-right-radius: 4px; }


.scanner-laser {
  position: absolute;
  left: 5%;
  right: 5%;
  height: 2px;
  background: linear-gradient(90deg, transparent, #ef4444, #ffffff, #ef4444, transparent);
  box-shadow: 0 0 14px 2px rgba(239, 68, 68, 0.8);
  animation: scanLaser 2.2s infinite ease-in-out;
  pointer-events: none;
  z-index: 11;
}

@keyframes scanLaser {
  0% { top: 10%; opacity: 0.4; }
  50% { top: 90%; opacity: 1; }
  100% { top: 10%; opacity: 0.4; }
}

/* Range Sliders */
input[type="range"] {
  -webkit-appearance: none;
  background: #181b25;
  border-radius: 9999px;
  height: 5px;
  outline: none;
  border: 1px solid var(--dark-border);
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #ffffff;
  border: 2px solid #ef4444;
  box-shadow: 0 0 8px rgba(239, 68, 68, 0.5);
  cursor: pointer;
  transition: transform 0.15s ease;
}
input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.18);
}

/* Frame Canvas Wrapper */
.qr-preview-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0f1118;
  border-radius: 1rem;
  padding: 1.5rem;
  border: 1px solid var(--dark-border);
  box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.6);
  min-height: 380px;
}

.qr-frame-container {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.frame-bottom-banner {
  background: #ffffff;
  color: #000000;
  padding: 16px 16px 12px 16px;
  border-radius: 18px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
}
.frame-bottom-banner .frame-label {
  margin-top: 8px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.85rem;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.frame-top-badge {
  background: #ffffff;
  color: #000000;
  padding: 12px 16px 16px 16px;
  border-radius: 18px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
}
.frame-top-badge .frame-label {
  margin-bottom: 8px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.85rem;
  text-align: center;
}

.frame-phone-mockup {
  background: #000000;
  border: 4px solid #ffffff;
  border-radius: 28px;
  padding: 22px 14px 18px 14px;
  color: #ffffff;
  position: relative;
  box-shadow: 0 15px 35px rgba(0,0,0,0.6);
}

.frame-ticket {
  background: #ffffff;
  color: #000000;
  padding: 14px;
  border-radius: 14px;
  border: 2px dashed #000000;
  position: relative;
}
.frame-ticket .frame-label {
  margin-top: 8px;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
}

.frame-polaroid {
  background: #ffffff;
  color: #111111;
  padding: 12px 12px 26px 12px;
  border-radius: 4px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}
.frame-polaroid .frame-label {
  margin-top: 12px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  text-align: center;
}

/* Toast Notification */
#toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.toast {
  background: rgba(19, 22, 32, 0.95);
  border: 1px solid var(--dark-border);
  backdrop-filter: blur(16px);
  color: #ffffff;
  padding: 0.75rem 1.25rem;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.85rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  animation: toastIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes toastIn {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* ========================================================
   Hero 3D QR Showcase Card
   ======================================================== */
.hero-qr-card {
  position: relative;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  transform: perspective(1000px) rotateY(-3deg) rotateX(2deg);
}
.hero-qr-card:hover {
  transform: perspective(1000px) rotateY(0deg) rotateX(0deg) translateY(-4px);
  box-shadow: 0 20px 50px -10px rgba(239, 68, 68, 0.25);
}

.hero-plate {
  position: relative;
  background: #ffffff;
  border-radius: 1.25rem;
  padding: 1.25rem;
  box-shadow: 0 15px 35px -5px rgba(0, 0, 0, 0.45);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.hero-hud-bracket {
  position: absolute;
  width: 14px;
  height: 14px;
  border-color: #ef4444;
  pointer-events: none;
  z-index: 10;
}
.hero-hud-tl { top: 10px; left: 10px; border-top: 2.5px solid; border-left: 2.5px solid; }
.hero-hud-tr { top: 10px; right: 10px; border-top: 2.5px solid; border-right: 2.5px solid; }
.hero-hud-bl { bottom: 10px; left: 10px; border-bottom: 2.5px solid; border-left: 2.5px solid; }
.hero-hud-br { bottom: 10px; right: 10px; border-bottom: 2.5px solid; border-right: 2.5px solid; }

@keyframes heroLaserScan {
  0% { top: 12px; opacity: 0; }
  15% { opacity: 1; }
  85% { opacity: 1; }
  100% { top: calc(100% - 14px); opacity: 0; }
}

.hero-laser-line {
  position: absolute;
  left: 12px;
  right: 12px;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, #ef4444 35%, #f43f5e 50%, #ef4444 65%, transparent 100%);
  box-shadow: 0 0 10px #ef4444, 0 0 4px #ef4444;
  animation: heroLaserScan 3s ease-in-out infinite alternate;
  pointer-events: none;
  z-index: 15;
}

/* ========================================================
   LIGHT MODE COMPREHENSIVE THEME (Premium Ash & Slate)
   ======================================================== */
html:not(.dark) {
  --dark-base: #f8fafc;
  --dark-surface: #ffffff;
  --dark-card: #ffffff;
  --dark-border: rgba(0, 0, 0, 0.08);
  --dark-hover: rgba(0, 0, 0, 0.04);
}

html:not(.dark) body {
  background-color: #f8fafc !important;
  color: #0f172a !important;
}

html:not(.dark) header {
  background-color: rgba(255, 255, 255, 0.88) !important;
  border-bottom-color: rgba(0, 0, 0, 0.08) !important;
}

html:not(.dark) .bg-radar-grid {
  background-image: 
    linear-gradient(to right, rgba(0, 0, 0, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0, 0, 0, 0.04) 1px, transparent 1px) !important;
}

html:not(.dark) .ambient-glow {
  background: radial-gradient(circle, rgba(239, 68, 68, 0.06) 0%, rgba(255, 255, 255, 0) 70%) !important;
}
html:not(.dark) .ambient-glow-left {
  background: radial-gradient(circle, rgba(99, 102, 241, 0.03) 0%, rgba(255, 255, 255, 0) 70%) !important;
}

html:not(.dark) .converto-card {
  background: #ffffff !important;
  border-color: rgba(0, 0, 0, 0.08) !important;
  box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.06) !important;
}
html:not(.dark) .converto-card:hover {
  border-color: rgba(0, 0, 0, 0.16) !important;
}

html:not(.dark) .text-white {
  color: #0f172a !important;
}
html:not(.dark) .text-neutral-100 {
  color: #0f172a !important;
}
html:not(.dark) .text-neutral-200 {
  color: #1e293b !important;
}
html:not(.dark) .text-neutral-300 {
  color: #334155 !important;
}
html:not(.dark) .text-neutral-400 {
  color: #64748b !important;
}
html:not(.dark) .text-neutral-500 {
  color: #94a3b8 !important;
}

/* Force-preserve White Text on Colored / Accent Elements */
html:not(.dark) .btn-accent,
html:not(.dark) .btn-accent *,
html:not(.dark) .preserve-white,
html:not(.dark) .preserve-white *,
html:not(.dark) .type-card.active,
html:not(.dark) .type-card.active *,
html:not(.dark) .nav-pill-btn.active,
html:not(.dark) .nav-pill-btn.active *,
html:not(.dark) .bg-red-500,
html:not(.dark) .bg-red-500 * {
  color: #ffffff !important;
}

html:not(.dark) .btn-primary {
  background: #0f172a !important;
  color: #ffffff !important;
  border-color: #0f172a !important;
}
html:not(.dark) .btn-primary:hover {
  background: #1e293b !important;
}
html:not(.dark) .btn-primary * {
  color: #ffffff !important;
}

html:not(.dark) .btn-secondary {
  background: #ffffff !important;
  color: #0f172a !important;
  border-color: rgba(0, 0, 0, 0.1) !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}
html:not(.dark) .btn-secondary:hover {
  background: #f1f5f9 !important;
  border-color: rgba(0, 0, 0, 0.2) !important;
  color: #000000 !important;
}

html:not(.dark) .q-input,
html:not(.dark) .q-textarea {
  background: #f8fafc !important;
  border-color: rgba(0, 0, 0, 0.12) !important;
  color: #0f172a !important;
}
html:not(.dark) .q-input:focus,
html:not(.dark) .q-textarea:focus {
  background: #ffffff !important;
  border-color: #ef4444 !important;
}

html:not(.dark) input:-webkit-autofill,
html:not(.dark) input:-webkit-autofill:hover, 
html:not(.dark) input:-webkit-autofill:focus, 
html:not(.dark) input:-webkit-autofill:active {
  -webkit-box-shadow: 0 0 0 1000px #f8fafc inset !important;
  -webkit-text-fill-color: #0f172a !important;
}

html:not(.dark) .q-select {
  background-color: #f8fafc !important;
  border-color: rgba(0, 0, 0, 0.12) !important;
  color: #0f172a !important;
}
html:not(.dark) .q-select option {
  background-color: #ffffff !important;
  color: #0f172a !important;
}

html:not(.dark) .nav-pill-btn {
  color: #64748b !important;
}
html:not(.dark) .nav-pill-btn:hover {
  color: #0f172a !important;
  background: rgba(0, 0, 0, 0.05) !important;
}
html:not(.dark) .nav-pill-btn.active {
  background: #0f172a !important;
  color: #ffffff !important;
  border-color: #0f172a !important;
}

html:not(.dark) .type-card {
  background: #ffffff !important;
  border-color: rgba(0, 0, 0, 0.08) !important;
  color: #334155 !important;
}
html:not(.dark) .type-card:hover {
  background: #f8fafc !important;
  border-color: rgba(0, 0, 0, 0.18) !important;
}
html:not(.dark) .type-card.active {
  background: #0f172a !important;
  color: #ffffff !important;
  border-color: #0f172a !important;
}

html:not(.dark) .frame-card {
  background: #ffffff !important;
  border-color: rgba(0, 0, 0, 0.08) !important;
  color: #334155 !important;
}
html:not(.dark) .frame-card.active {
  background: rgba(239, 68, 68, 0.08) !important;
  border-color: #ef4444 !important;
  color: #ef4444 !important;
}

html:not(.dark) .bg-neutral-900,
html:not(.dark) .bg-neutral-900\/80,
html:not(.dark) .bg-\[\#0f1117\],
html:not(.dark) .bg-\[\#0f1117\]\/90 {
  background-color: #f1f5f9 !important;
  border-color: rgba(0, 0, 0, 0.08) !important;
}

html:not(.dark) .bg-white\/\[0\.04\],
html:not(.dark) .bg-white\/5,
html:not(.dark) .bg-white\/\[0\.05\] {
  background-color: rgba(0, 0, 0, 0.03) !important;
}

html:not(.dark) .border-white\/\[0\.08\],
html:not(.dark) .border-white\/10 {
  border-color: rgba(0, 0, 0, 0.08) !important;
}

html:not(.dark) #scanner-dropzone {
  background-color: #ffffff !important;
  border-color: rgba(0, 0, 0, 0.12) !important;
}

html:not(.dark) .toast {
  background: #ffffff !important;
  color: #0f172a !important;
  border-color: rgba(0, 0, 0, 0.1) !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15) !important;
}
html:not(.dark) .toast span {
  color: #0f172a !important;
}

html:not(.dark) .modal-backdrop {
  background-color: rgba(15, 23, 42, 0.6) !important;
}

html:not(.dark) .modal-card {
  background: #ffffff !important;
  border-color: rgba(0, 0, 0, 0.1) !important;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25) !important;
}
html:not(.dark) .modal-card h3,
html:not(.dark) .modal-card h4,
html:not(.dark) .modal-card h5 {
  color: #0f172a !important;
}
html:not(.dark) .modal-card p,
html:not(.dark) .modal-card span {
  color: #475569 !important;
}
html:not(.dark) .modal-card .text-red-400 {
  color: #ef4444 !important;
}

/* Hero Headline Gradient Adaptation */
.hero-headline-gradient {
  background-image: linear-gradient(to right, #ffffff 0%, #e2e8f0 45%, #f87171 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
html:not(.dark) .hero-headline-gradient {
  background-image: linear-gradient(to right, #0f172a 0%, #1e293b 45%, #ef4444 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
}

/* Color Picker Box in Light Mode */
html:not(.dark) .color-picker-box {
  background-color: #f1f5f9 !important;
  border-color: rgba(0, 0, 0, 0.1) !important;
}
html:not(.dark) .color-picker-box span {
  color: #0f172a !important;
}

/* ========================================================
   Custom Curved Dropdown System
   Replaces OS Native Dropdowns with curved Converto floating menus
   ======================================================== */
.custom-select-container {
  position: relative;
  width: 100%;
}

.custom-select-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  background-color: rgba(7, 8, 11, 0.85);
  border: 1px solid var(--dark-border);
  border-radius: 0.75rem;
  color: #f5f5f5;
  padding: 0.625rem 0.875rem;
  font-size: 0.85rem;
  font-family: inherit;
  outline: none;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
  text-align: left;
}

.custom-select-trigger:hover {
  border-color: rgba(255, 255, 255, 0.2);
  background-color: rgba(15, 17, 23, 0.95);
}

.custom-select-trigger[aria-expanded="true"] {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.22);
}

.custom-select-trigger[aria-expanded="true"] .custom-select-arrow {
  transform: rotate(180deg);
  color: #ef4444;
}

.custom-select-arrow {
  transition: transform 0.22s ease, color 0.2s ease;
}

.custom-select-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  min-width: 100%;
  background: #131620;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 1rem;
  padding: 0.4rem;
  box-shadow: 0 20px 45px -10px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  z-index: 9999;
  max-height: 240px;
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px) scale(0.98);
  transition: opacity 0.18s cubic-bezier(0.16, 1, 0.3, 1), transform 0.18s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.18s;
  pointer-events: none;
}

.custom-select-menu.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.custom-select-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.55rem 0.8rem;
  border-radius: 0.65rem;
  font-size: 0.825rem;
  color: #d4d4d8;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
}

.custom-select-option:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.custom-select-option.selected {
  background: rgba(239, 68, 68, 0.12);
  color: #ef4444;
  font-weight: 600;
}

/* Light Mode Overrides for Custom Select */
html:not(.dark) .custom-select-trigger {
  background-color: #f8fafc !important;
  border-color: rgba(0, 0, 0, 0.12) !important;
  color: #0f172a !important;
}
html:not(.dark) .custom-select-trigger:hover {
  background-color: #ffffff !important;
  border-color: rgba(0, 0, 0, 0.22) !important;
}
html:not(.dark) .custom-select-trigger[aria-expanded="true"] {
  border-color: #ef4444 !important;
  background-color: #ffffff !important;
}

html:not(.dark) .custom-select-menu {
  background: #ffffff !important;
  border-color: rgba(0, 0, 0, 0.1) !important;
  box-shadow: 0 20px 45px -10px rgba(0, 0, 0, 0.18) !important;
}

html:not(.dark) .custom-select-option {
  color: #334155 !important;
}
html:not(.dark) .custom-select-option:hover {
  background: #f1f5f9 !important;
  color: #0f172a !important;
}
html:not(.dark) .custom-select-option.selected {
  background: rgba(239, 68, 68, 0.08) !important;
  color: #ef4444 !important;
  font-weight: 600 !important;
}

/* Hero Showcase Mode Pills */
.hero-mode-pill {
  transition: all 0.2s ease;
  color: #a3a3a3;
  cursor: pointer;
}
.hero-mode-pill:hover {
  color: #ffffff;
}
.hero-mode-pill.active {
  background: rgba(239, 68, 68, 0.2);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.35);
  font-weight: 600;
}



