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

:root {
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Space Grotesk', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  
  --bg-main: #090d16;
  --bg-card: #0f172a;
  --bg-card-hover: #1e293b;
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-accent: rgba(56, 189, 248, 0.3);
  
  --accent-cyan: #06b6d4;
  --accent-indigo: #6366f1;
  --accent-emerald: #10b981;
  --accent-amber: #f59e0b;
}

/* Base scrolling & html/body reset for natural 2-finger touchpad and wheel */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
  overflow-x: clip;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-main);
  color: #e2e8f0;
  min-height: 100vh;
  overflow-x: clip;
  -webkit-tap-highlight-color: transparent;
}

h1, h2, h3, .font-display {
  font-family: var(--font-display);
}

.font-mono {
  font-family: var(--font-mono);
}

/* Strict Hidden Utility with pointer-events protection */
.hidden {
  display: none !important;
  pointer-events: none !important;
}

/* Glassmorphism Classes */
.glass-panel {
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.glass-nav {
  background: rgba(9, 13, 22, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.glass-card {
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.6) 0%, rgba(15, 23, 42, 0.85) 100%);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-card:hover {
  transform: translateY(-3px);
  border-color: rgba(56, 189, 248, 0.25);
  box-shadow: 0 16px 32px -8px rgba(0, 0, 0, 0.45), 0 0 15px -3px rgba(56, 189, 248, 0.08);
}

/* Glow & Accent Effects */
.gradient-text-phygital {
  background: linear-gradient(135deg, #ffffff 20%, #93c5fd 60%, #38bdf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gradient-text-accent {
  background: linear-gradient(135deg, #38bdf8 0%, #818cf8 50%, #c084fc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.badge-phygital, .badge-corporate {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.2);
  color: #38bdf8;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.glow-orb-1 {
  position: absolute;
  width: min(500px, 90vw);
  height: min(500px, 90vw);
  background: radial-gradient(circle, rgba(99, 102, 241, 0.06) 0%, rgba(0, 0, 0, 0) 70%);
  filter: blur(80px);
  pointer-events: none !important;
  z-index: 0;
}

.glow-orb-2 {
  position: absolute;
  width: min(450px, 80vw);
  height: min(450px, 80vw);
  background: radial-gradient(circle, rgba(6, 182, 212, 0.05) 0%, rgba(0, 0, 0, 0) 70%);
  filter: blur(80px);
  pointer-events: none !important;
  z-index: 0;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: #090d16;
}

::-webkit-scrollbar-thumb {
  background: #1e293b;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #334155;
}

/* No Scrollbar Utility */
.no-scrollbar::-webkit-scrollbar {
  display: none;
}
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Button & Interactive states */
.btn-primary {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #0284c7 0%, #2563eb 100%);
  box-shadow: 0 4px 20px -2px rgba(37, 99, 235, 0.4);
  transition: all 0.25s ease;
  touch-action: manipulation;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #0369a1 0%, #1d4ed8 100%);
  box-shadow: 0 6px 24px -1px rgba(37, 99, 235, 0.6);
  transform: translateY(-1px);
}

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

.btn-secondary {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(30, 41, 59, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: all 0.25s ease;
  touch-action: manipulation;
}

.btn-secondary:hover {
  background: rgba(51, 65, 85, 0.8);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-1px);
}

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

/* Service Checkbox Cards */
.quoter-tile {
  min-height: 54px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(15, 23, 42, 0.6);
  touch-action: manipulation;
}

.quoter-tile:hover {
  border-color: rgba(56, 189, 248, 0.35);
  background: rgba(30, 41, 59, 0.5);
}

.quoter-tile:active {
  transform: scale(0.99);
}

.quoter-tile.active {
  border-color: #38bdf8;
  background: rgba(14, 165, 233, 0.12);
  box-shadow: 0 0 20px -3px rgba(56, 189, 248, 0.25);
}

/* Dropzone dragover */
.dropzone {
  min-height: 120px;
  touch-action: manipulation;
}

.dropzone.dragover {
  border-color: #38bdf8 !important;
  background: rgba(56, 189, 248, 0.08) !important;
}

/* Tab active */
.filter-tab {
  min-height: 40px;
  touch-action: manipulation;
  white-space: nowrap;
}

.filter-tab.active {
  background: #2563eb;
  color: #ffffff;
  border-color: #3b82f6;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
}

/* Mobile Floating Bottom Action Bar (Ultra High z-index & Touch-safe) */
.mobile-bottom-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999 !important;
  pointer-events: auto !important;
  background: rgba(9, 13, 22, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-bottom: max(12px, env(safe-area-inset-bottom));
}

.mobile-bottom-bar * {
  pointer-events: auto !important;
}

.mobile-bottom-bar a,
.mobile-bottom-bar button {
  position: relative;
  z-index: 10000 !important;
  pointer-events: auto !important;
  touch-action: manipulation;
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

/* Cookie consent banner safety against ghost touch interception */
#cookie-consent-banner {
  z-index: 9990;
}

#cookie-consent-banner.opacity-0,
#cookie-consent-banner.translate-y-full,
#cookie-consent-banner.pointer-events-none,
#cookie-consent-banner.invisible {
  pointer-events: none !important;
  visibility: hidden !important;
}

/* Toast styling */
#toast-container {
  position: fixed;
  bottom: 80px;
  right: 16px;
  left: 16px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

@media (min-width: 640px) {
  #toast-container {
    bottom: 24px;
    left: auto;
    right: 24px;
    max-width: 380px;
  }
}

.toast {
  pointer-events: auto;
  animation: slideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Modal Bottom Sheet on Mobile */
@media (max-width: 639px) {
  .modal-dialog-responsive {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    max-height: 90vh;
    overflow-y: auto;
  }
}
