/* AutoOrbit — Auto Service Center & Workshop Operating Platform */
/* Design System: Tournament7 Dark Mode Aesthetic */

:root {
  --gm-bg: #09090B;
  --gm-bg-secondary: #0E131F;
  --gm-card-bg: rgba(15, 23, 42, 0.75);
  --gm-card-border: rgba(255, 255, 255, 0.08);
  --gm-emerald: #10B981;
  --gm-emerald-glow: rgba(16, 185, 129, 0.35);
  --gm-blue: #3B82F6;
  --gm-blue-dark: #1D4ED8;
  --gm-red: #EF4444;
  --gm-orange: #EA580C;
  --gm-amber: #F59E0B;
}

* {
  -webkit-tap-highlight-color: transparent;
  box-sizing: border-box;
}

html, body {
  max-width: 100%;
  overflow-x: hidden;
  font-family: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: #F8FAFC;
  background-color: #09090B;
  scroll-behavior: smooth;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

/* Tournament7 Ambient Background Gradients */
.tournament7-canvas {
  background: 
    radial-gradient(circle at 50% 0%, rgba(37, 99, 235, 0.12), transparent 45%),
    radial-gradient(circle at 85% 30%, rgba(16, 185, 129, 0.08), transparent 35%),
    radial-gradient(circle at 15% 70%, rgba(234, 88, 12, 0.06), transparent 40%),
    #09090B;
}

/* Tournament7 Section Titles with Vertical Accent Bars */
.section-title-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.section-accent-bar {
  width: 5px;
  height: 2rem;
  border-radius: 9999px;
  flex-shrink: 0;
}

.bar-blue { background: #3B82F6; box-shadow: 0 0 12px rgba(59, 130, 246, 0.5); }
.bar-red { background: #EF4444; box-shadow: 0 0 12px rgba(239, 68, 68, 0.5); }
.bar-emerald { background: #10B981; box-shadow: 0 0 12px rgba(16, 185, 129, 0.5); }
.bar-orange { background: #EA580C; box-shadow: 0 0 12px rgba(234, 88, 12, 0.5); }

/* Tournament7 Glass Card Styling */
.t7-card {
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.25s ease;
}

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

/* Left Accent Strip Cards */
.t7-card-left-blue {
  border-left: 4px solid #3B82F6;
}
.t7-card-left-red {
  border-left: 4px solid #EF4444;
}
.t7-card-left-emerald {
  border-left: 4px solid #10B981;
}
.t7-card-left-orange {
  border-left: 4px solid #EA580C;
}

/* Glowing Tournament7 Buttons */
.btn-emerald-glow {
  background: #10B981;
  color: #FFFFFF;
  box-shadow: 0 0 20px -3px rgba(16, 185, 129, 0.45);
  transition: all 0.2s ease;
}

.btn-emerald-glow:hover {
  background: #059669;
  box-shadow: 0 0 25px 0px rgba(16, 185, 129, 0.6);
  transform: translateY(-1px);
}

.btn-coral-glow {
  background: #EF4444;
  color: #FFFFFF;
  box-shadow: 0 0 20px -3px rgba(239, 68, 68, 0.4);
  transition: all 0.2s ease;
}

.btn-coral-glow:hover {
  background: #DC2626;
  box-shadow: 0 0 25px 0px rgba(239, 68, 68, 0.55);
}

/* Tournament7 Number Badges */
.t7-badge-num {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.badge-num-blue { background: rgba(59, 130, 246, 0.15); color: #60A5FA; border: 1px solid rgba(59, 130, 246, 0.3); }
.badge-num-red { background: rgba(239, 68, 68, 0.15); color: #F87171; border: 1px solid rgba(239, 68, 68, 0.3); }
.badge-num-emerald { background: rgba(16, 185, 129, 0.15); color: #34D399; border: 1px solid rgba(16, 185, 129, 0.3); }

/* Department & Role Pills */
.role-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.role-security { background: rgba(245, 158, 11, 0.15); color: #FBBF24; border: 1px solid rgba(245, 158, 11, 0.3); }
.role-advisor { background: rgba(59, 130, 246, 0.15); color: #60A5FA; border: 1px solid rgba(59, 130, 246, 0.3); }
.role-mechanic { background: rgba(234, 88, 12, 0.15); color: #FB923C; border: 1px solid rgba(234, 88, 12, 0.3); }
.role-parts { background: rgba(168, 85, 247, 0.15); color: #C084FC; border: 1px solid rgba(168, 85, 247, 0.3); }
.role-insurance { background: rgba(236, 72, 153, 0.15); color: #F472B6; border: 1px solid rgba(236, 72, 153, 0.3); }
.role-accounts { background: rgba(16, 185, 129, 0.15); color: #34D399; border: 1px solid rgba(16, 185, 129, 0.3); }
.role-manager { background: rgba(14, 165, 233, 0.15); color: #38BDF8; border: 1px solid rgba(14, 165, 233, 0.3); }

/* macOS Window Mockup */
.mac-window {
  border-radius: 1rem;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
}

.mac-traffic-lights {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.traffic-dot {
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 9999px;
}
.dot-red { background: #FF5F56; }
.dot-yellow { background: #FFBD2E; }
.dot-green { background: #27C93F; }

/* Sticky Mobile Bottom Bar */
.mobile-bottom-bar {
  display: none;
}

@media (max-width: 640px) {
  .mobile-bottom-bar {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 50;
    padding: 0.75rem 1rem;
    background: rgba(9, 9, 11, 0.95);
    backdrop-filter: blur(16px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }
}

/* Toast Notifications */
#toast-notification {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
  transform: translate(-50%, 100%);
  opacity: 0;
  pointer-events: none;
}

#toast-notification.show {
  transform: translate(-50%, 0);
  opacity: 1;
  pointer-events: auto;
}

/* FAQ Accordion */
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out, opacity 0.2s ease-out;
  opacity: 0;
}

.faq-item.active .faq-answer {
  max-height: 300px;
  opacity: 1;
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

/* Subtle Animated Flow Pulse */
@keyframes flowPulseT7 {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.05); }
}
.t7-pulse-indicator {
  animation: flowPulseT7 2s infinite ease-in-out;
}
