/* ==========================================================================
   appdriver - Mobile-First Dark Mode Stylesheet & Design System
   ========================================================================== */

:root {
  --bg-color: #0d1117;
  --surface-color: #161b22;
  --surface-hover: #1c2128;
  --input-bg: #090d12;
  
  --primary-color: #238636;
  --primary-hover: #2ea043;
  --primary-glow: rgba(46, 160, 67, 0.3);
  
  --accent-cyan: #38bdf8;
  --accent-purple: #a855f7;
  --accent-amber: #f59e0b;
  
  --danger-color: #da3633;
  --danger-hover: #f85149;
  --danger-bg: rgba(218, 54, 51, 0.15);
  
  /* WCAG AA High Contrast Text Palette */
  --text-main: #f0f6fc;
  --text-muted: #b1bac4; /* High contrast AA 4.5:1 for daylight reading */
  --text-subtle: #8b949e;
  
  --border-color: #30363d;
  --border-focus: #58a6ff;
  
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  
  --radius: 16px;
  --radius-sm: 10px;
}

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

body {
  background-color: var(--bg-color);
  color: var(--text-main);
  font-family: var(--font-family);
  min-height: 100vh;
  padding: 12px;
  display: flex;
  justify-content: center;
}

.app-container {
  width: 100%;
  max-width: 460px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-bottom: 24px;
}

/* Tabular Numbers for Financial Figures */
.tabular-num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.5px;
}

/* App Header & Brand */
.app-header {
  text-align: center;
  padding: 8px 0 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: 100%;
}

.brand {
  width: 100%;
}

.brand-logo-link {
  display: block;
  width: 100%;
  text-decoration: none;
}

.brand-logo-card {
  width: 100%;
  background-color: #ffffff;
  border-radius: var(--radius);
  border: 1px solid var(--border-color);
  padding: 14px 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.brand-logo-img {
  max-width: 220px;
  width: 100%;
  height: auto;
  display: block;
}

/* Navigation Tabs */
.nav-tabs {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 10px;
  background-color: #161b22;
  border: 1px solid var(--border-color);
  padding: 4px;
  border-radius: 30px;
  width: 100%;
}

.nav-tab-btn, .nav-tab-link {
  flex: 1;
  background: transparent;
  color: var(--text-muted);
  border: none;
  border-radius: 20px;
  padding: 10px 12px;
  font-family: var(--font-family);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
}

.nav-tab-btn.active {
  background-color: var(--accent-cyan);
  color: #0f172a;
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.25);
}

.nav-tab-link:hover, .nav-tab-btn:hover:not(.active) {
  color: var(--text-main);
  background-color: var(--surface-hover);
}

/* Hero Section (Landing Page) */
.hero-card {
  background: linear-gradient(180deg, #182234 0%, #161b22 100%);
  border: 1px solid rgba(56, 189, 248, 0.35);
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: flex-start;
}

.hero-badge {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--accent-cyan);
  background: rgba(56, 189, 248, 0.15);
  padding: 4px 10px;
  border-radius: 20px;
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.hero-badge-free {
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #4ade80;
  background: rgba(74, 222, 128, 0.12);
  padding: 5px 12px;
  border-radius: 20px;
  border: 1px solid rgba(74, 222, 128, 0.3);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background-color: #4ade80;
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(74, 222, 128, 0.8);
  animation: pulseGlow 1.8s infinite;
}

@keyframes pulseGlow {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.15); opacity: 1; box-shadow: 0 0 14px rgba(74, 222, 128, 1); }
  100% { transform: scale(0.95); opacity: 0.8; }
}

.hero-subheadline {
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--text-muted);
}

.micro-benefits-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  margin: 4px 0;
}

.micro-benefit-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(22, 27, 34, 0.6);
  border: 1px solid var(--border-color);
  padding: 10px 12px;
  border-radius: var(--radius-sm);
}

.micro-benefit-icon {
  font-size: 1.2rem;
  flex-shrink: 0;
}

.micro-benefit-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.micro-benefit-text strong {
  font-size: 0.875rem;
  color: var(--text-main);
  font-weight: 700;
}

.micro-benefit-text span {
  font-size: 0.775rem;
  color: var(--text-muted);
}

.btn-cta-neon {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  box-shadow: 0 0 24px rgba(16, 185, 129, 0.4);
  font-size: 1.1rem;
}

.btn-cta-neon:hover {
  background: linear-gradient(135deg, #34d399 0%, #10b981 100%);
  box-shadow: 0 0 30px rgba(52, 211, 153, 0.6);
}

.geo-statement-box {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.1) 0%, rgba(168, 85, 247, 0.08) 100%);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  width: 100%;
  margin-top: 4px;
}

.geo-statement-text {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.45;
  text-align: center;
}

.hero-headline {
  font-size: 1.55rem;
  font-weight: 900;
  line-height: 1.25;
  color: var(--text-main);
  letter-spacing: -0.5px;
}

.hero-scannable-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.hero-scannable-list li {
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--text-muted);
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.check-icon {
  color: #4ade80;
  font-weight: 800;
  font-size: 1rem;
}

/* CTA Hierarchy: Primary Solid vs Secondary Ghost */
.hero-cta-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  margin-top: 4px;
}

.btn-primary {
  width: 100%;
  min-height: 54px;
  background-color: var(--primary-color);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-sm);
  font-family: var(--font-family);
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 0 20px var(--primary-glow);
  transition: background-color 0.2s, transform 0.1s, opacity 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-primary:hover {
  background-color: var(--primary-hover);
}

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

.btn-ghost {
  width: 100%;
  min-height: 48px;
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-family: var(--font-family);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-ghost:hover {
  color: var(--text-main);
  background-color: var(--surface-hover);
  border-color: var(--accent-cyan);
}

.hero-disclaimer {
  font-size: 0.775rem;
  color: var(--text-muted);
  align-self: center;
  text-align: center;
  line-height: 1.4;
}

/* Product Mockup Image Container */
.product-mockup-wrapper {
  width: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(56, 189, 248, 0.3);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
  margin-top: 6px;
  background: #090d12;
}

.product-mockup-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* Feature Highlight Card */
.feature-highlight-card {
  background: linear-gradient(135deg, #131d2a 0%, #161b22 100%);
  border: 1px dashed var(--accent-cyan);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.highlight-badge {
  font-size: 0.675rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: #4ade80;
  background: rgba(74, 222, 128, 0.12);
  padding: 3px 8px;
  border-radius: 12px;
  align-self: flex-start;
}

.feature-highlight-card h3 {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text-main);
}

.feature-highlight-card p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.btn-secondary-action {
  width: 100%;
  min-height: 48px;
  background-color: transparent;
  color: var(--accent-cyan);
  border: 1px solid var(--accent-cyan);
  border-radius: var(--radius-sm);
  font-family: var(--font-family);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-secondary-action:hover {
  background-color: var(--accent-cyan);
  color: #0f172a;
}

/* Quick Solutions Cards Section */
.quick-solutions-section {
  background: linear-gradient(180deg, #161b22 0%, #0f131a 100%);
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.solutions-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.solution-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: rgba(22, 27, 34, 0.7);
  border: 1px solid rgba(56, 189, 248, 0.2);
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  transition: border-color 0.2s ease, transform 0.15s ease;
}

.solution-card:hover {
  border-color: var(--accent-cyan);
  transform: translateX(3px);
}

.solution-icon {
  font-size: 1.3rem;
  flex-shrink: 0;
  background: rgba(56, 189, 248, 0.12);
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.solution-content {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.solution-title {
  font-size: 0.925rem;
  font-weight: 700;
  color: var(--text-main);
}

.solution-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* Benefits Grid & Equal Height Cards */
.benefits-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.section-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-main);
  padding: 0 4px;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.benefit-card {
  background-color: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  height: 100%;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.benefit-card:hover {
  transform: translateY(-2px);
  border-color: rgba(56, 189, 248, 0.4);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

.benefit-icon-wrapper {
  background: rgba(255, 255, 255, 0.05);
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.benefit-card h4 {
  font-size: 0.925rem;
  font-weight: 700;
  color: var(--text-main);
}

.benefit-card p {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.45;
}

/* Testimonials Grid */
.testimonials-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.testimonials-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.testimonial-card {
  background-color: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.testimonial-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.driver-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1e293b 0%, #38bdf8 100%);
  color: #ffffff;
  font-weight: 800;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--accent-cyan);
}

.driver-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
  display: block;
}

.driver-location {
  font-size: 0.775rem;
  color: var(--text-muted);
}

.stars-rating {
  color: #f59e0b;
  font-size: 0.9rem;
  letter-spacing: 2px;
}

.testimonial-quote {
  font-size: 0.875rem;
  font-style: italic;
  color: #c9d1d9;
  line-height: 1.45;
}

.verified-badge {
  font-size: 0.725rem;
  font-weight: 700;
  color: #4ade80;
  align-self: flex-start;
}

/* Trust Card */
.trust-card {
  background-color: var(--surface-color);
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
}

.shield-box {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.shield-icon-wrapper {
  background: rgba(56, 189, 248, 0.12);
  padding: 10px;
  border-radius: 12px;
  flex-shrink: 0;
}

/* Driver User Bar (Authenticated State) */
.driver-user-bar {
  background-color: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.user-badge-info {
  display: flex;
  align-items: center;
  gap: 8px;
}

.user-dot {
  width: 8px;
  height: 8px;
  background-color: #4ade80;
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(74, 222, 128, 0.6);
}

.user-email-text {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-main);
}

.btn-logout-sm {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 6px 12px;
  font-family: var(--font-family);
  font-size: 0.775rem;
  font-weight: 600;
  cursor: pointer;
}

.btn-logout-sm:hover {
  color: var(--danger-hover);
  border-color: var(--danger-hover);
}

/* PWA Install Banner Component */
.install-banner {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: var(--radius);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
  animation: slideDown 0.3s ease-out;
}

.install-content {
  display: flex;
  align-items: center;
  gap: 12px;
}

.install-text-group {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.install-text-group strong {
  font-size: 0.95rem;
  color: var(--text-main);
}

.install-text-group span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.install-actions {
  display: flex;
  gap: 8px;
}

.btn-install-primary {
  flex: 1;
  background-color: var(--accent-cyan);
  color: #0f172a;
  border: none;
  border-radius: var(--radius-sm);
  padding: 10px;
  font-family: var(--font-family);
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.2s;
}

.btn-install-primary:hover {
  opacity: 0.9;
}

.btn-install-secondary {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-family: var(--font-family);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
}

.btn-install-secondary:hover {
  color: var(--text-main);
  background: var(--surface-hover);
}

/* Onboarding Modal Overlay */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(5, 8, 15, 0.85);
  backdrop-filter: blur(8px);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  animation: fadeIn 0.3s ease;
}

.modal-card {
  background: linear-gradient(180deg, #182234 0%, #161b22 100%);
  border: 1px solid rgba(56, 189, 248, 0.4);
  border-radius: var(--radius);
  padding: 24px 20px;
  width: 100%;
  max-width: 380px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
  display: flex;
  flex-direction: column;
  gap: 12px;
  animation: slideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-badge {
  align-self: flex-start;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--accent-cyan);
  background: rgba(56, 189, 248, 0.15);
  padding: 3px 10px;
  border-radius: 20px;
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.modal-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.5px;
}

.modal-text {
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--text-muted);
}

/* Edit Mode Banner */
.edit-banner {
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent-cyan);
}

.btn-cancel-edit {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  font-size: 0.75rem;
  padding: 3px 8px;
  border-radius: 6px;
  cursor: pointer;
}

.btn-cancel-edit:hover {
  color: var(--text-main);
  background: var(--surface-hover);
}

/* Advertising Banner Container & Outside Label */
.ad-section-container {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 100%;
}

.ad-label-outside {
  font-size: 0.675rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--text-subtle);
  text-align: right;
  padding-right: 6px;
}

.ad-banner-card {
  position: relative;
  background-color: var(--surface-color);
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
  transition: transform 0.2s ease, border-color 0.2s ease;
  width: 100%;
  max-width: 320px;
  aspect-ratio: 1 / 1;
  margin: 0 auto;
}

.ad-banner-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent-cyan);
}

.ad-link-wrapper {
  display: block;
  width: 100%;
  height: 100%;
  text-decoration: none;
}

.ad-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 0.2s ease;
}

.ad-link-wrapper:hover .ad-image {
  opacity: 0.9;
}

/* Card Component */
.card {
  background-color: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

/* Form Styles & Large Tap Target Inputs */
.form-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.field-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
}

.input-container {
  position: relative;
  display: flex;
  align-items: center;
}

.prefix-badge {
  position: absolute;
  left: 14px;
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--accent-cyan);
  pointer-events: none;
  font-family: var(--font-mono);
}

.input-container input {
  width: 100%;
  min-height: 52px;
  background-color: var(--input-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 14px 14px 14px 50px;
  color: var(--text-main);
  font-family: var(--font-family);
  font-size: 1.1rem;
  font-weight: 600;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.input-container input:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(88, 166, 255, 0.15);
}

/* Loading Card State */
.loading-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  gap: 12px;
  border: 1px dashed var(--accent-cyan);
}

.spinner-ring {
  width: 38px;
  height: 38px;
  border: 3.5px solid rgba(56, 189, 248, 0.2);
  border-top-color: var(--accent-cyan);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.loading-text {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-main);
}

/* Result Card */
.result-card {
  background: linear-gradient(180deg, #16202c 0%, #161b22 100%);
  border: 1px solid rgba(56, 189, 248, 0.3);
  display: flex;
  flex-direction: column;
  gap: 14px;
  animation: fadeIn 0.3s ease-out;
}

.result-badge {
  align-self: flex-start;
  font-size: 0.725rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--accent-cyan);
  background: rgba(56, 189, 248, 0.12);
  padding: 4px 10px;
  border-radius: 20px;
  border: 1px solid rgba(56, 189, 248, 0.25);
}

.profit-display {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.profit-title {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.profit-amount {
  font-size: 2.35rem;
  font-weight: 800;
  color: #4ade80;
  letter-spacing: -0.5px;
}

.divider {
  height: 1px;
  background-color: var(--border-color);
}

.strategy-display {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.strategy-header {
  display: flex;
  align-items: center;
  gap: 8px;
}

.strategy-header h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
}

.strategy-body {
  font-size: 0.925rem;
  line-height: 1.5;
  color: #c9d1d9;
  background: rgba(0, 0, 0, 0.25);
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--accent-cyan);
  white-space: pre-line;
}

/* Reports Section & 5 Pillars Layout */
.reports-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 6px;
}

.reports-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 0 4px;
}

.reports-header h2 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
}

.reports-sub {
  font-size: 0.75rem;
  color: var(--accent-purple);
  font-weight: 600;
  text-transform: uppercase;
}

.reports-buttons {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.btn-report {
  background-color: #21262d;
  color: var(--text-main);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 14px 8px;
  font-family: var(--font-family);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
  min-height: 48px;
}

.btn-report:hover {
  background-color: #30363d;
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
}

.btn-report.active {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.25);
}

/* 5 Pillars Report Cards Container */
.report-pillars-container {
  display: flex;
  flex-direction: column;
  gap: 14px;
  animation: fadeIn 0.35s ease-out;
}

.report-header-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 2px;
}

.report-turns-badge {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent-cyan);
  background: rgba(56, 189, 248, 0.12);
  padding: 3px 10px;
  border-radius: 12px;
  border: 1px solid rgba(56, 189, 248, 0.25);
}

.pillar-card {
  background: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.pillar-header {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pillar-header h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
}

.pillar-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.stat-box {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat-label {
  font-size: 0.775rem;
  color: var(--text-muted);
}

.stat-val {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
}

.stat-val-profit {
  font-size: 1.25rem;
  font-weight: 800;
  color: #4ade80;
}

.margin-bar-container {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 4px;
}

.margin-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.margin-label strong {
  color: #4ade80;
}

.margin-progress-bg {
  width: 100%;
  height: 8px;
  background: #090d12;
  border-radius: 10px;
  overflow: hidden;
}

.margin-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #10b981 0%, #4ade80 100%);
  border-radius: 10px;
  transition: width 0.4s ease;
}

.pillar-content-box {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.pillar-sublabel {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.pillar-highlight-text {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--accent-cyan);
}

/* Pillar 3 Maintenance Special Styling */
.pillar-card.pillar-maintenance {
  border-color: rgba(245, 158, 11, 0.4);
  background: linear-gradient(180deg, #241c12 0%, #161b22 100%);
}

.maintenance-notice {
  font-size: 0.85rem;
  color: #fef08a;
  line-height: 1.4;
}

.maintenance-amount {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--accent-amber);
  margin-top: 4px;
}

/* Pillar 5 AI Special Styling */
.pillar-card.pillar-ai {
  border-color: rgba(168, 85, 247, 0.4);
  background: linear-gradient(180deg, #1e1b4b 0%, #161b22 100%);
}

/* History Section: Turnos Recentes */
.history-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 8px;
}

.history-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4px;
}

.history-header h2 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
}

.history-count {
  background-color: #21262d;
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 12px;
}

.history-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.empty-state {
  text-align: center;
  padding: 24px;
  color: var(--text-subtle);
  font-size: 0.9rem;
  background-color: rgba(22, 27, 34, 0.5);
  border: 1px dashed var(--border-color);
  border-radius: var(--radius);
}

/* Shift History Item Card */
.history-item {
  background-color: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  transition: transform 0.2s, opacity 0.2s;
  animation: fadeIn 0.3s ease;
}

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

.history-date {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent-cyan);
}

.history-profit {
  font-size: 1.15rem;
  font-weight: 700;
  color: #4ade80;
}

.history-details {
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.history-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

/* Edit & Delete Buttons */
.btn-edit {
  background-color: rgba(56, 189, 248, 0.12);
  color: var(--accent-cyan);
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: 8px;
  padding: 8px 10px;
  font-family: var(--font-family);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: all 0.2s ease;
  min-height: 40px;
}

.btn-edit:hover {
  background-color: var(--accent-cyan);
  color: #000000;
}

.btn-delete {
  background-color: var(--danger-bg);
  color: var(--danger-hover);
  border: 1px solid rgba(218, 54, 51, 0.4);
  border-radius: 8px;
  padding: 8px 10px;
  font-family: var(--font-family);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: all 0.2s ease;
  min-height: 40px;
}

.btn-delete:hover {
  background-color: var(--danger-color);
  color: #ffffff;
  border-color: var(--danger-color);
}

.btn-delete:disabled, .btn-edit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Helper Utility */
.hidden {
  display: none !important;
}

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

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

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   Hero Section High-Conversion & GEO Optimizations
   ========================================================================== */

.hero-badge-free {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(35, 134, 54, 0.18);
  border: 1px solid rgba(46, 160, 67, 0.5);
  color: #4ade80;
  font-size: 0.78rem;
  font-weight: 800;
  padding: 6px 14px;
  border-radius: 30px;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  margin-bottom: 12px;
  box-shadow: 0 0 12px rgba(74, 222, 128, 0.15);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background-color: #4ade80;
  border-radius: 50%;
  box-shadow: 0 0 8px #4ade80;
  animation: pulseGreen 1.8s infinite ease-in-out;
}

@keyframes pulseGreen {
  0% { transform: scale(0.9); opacity: 0.7; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.7; }
}

.hero-subheadline {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin: 10px 0 16px;
}

/* 3 Micro-Benefits Grid */
.micro-benefits-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
  width: 100%;
}

.micro-benefit-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background-color: rgba(22, 27, 34, 0.7);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.micro-benefit-item:hover {
  border-color: var(--accent-cyan);
  transform: translateX(3px);
}

.micro-benefit-icon {
  font-size: 1.3rem;
  flex-shrink: 0;
}

.micro-benefit-text {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.micro-benefit-text strong {
  font-size: 0.9rem;
  color: var(--text-main);
  font-weight: 700;
}

.micro-benefit-text span {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* High-Impact High-Visibility Primary Neon CTA */
.btn-cta-neon {
  background: linear-gradient(135deg, #238636 0%, #2ea043 100%);
  color: #ffffff !important;
  font-size: 1.05rem !important;
  font-weight: 800 !important;
  box-shadow: 0 4px 20px rgba(46, 160, 67, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 14px 20px !important;
}

.btn-cta-neon:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 6px 25px rgba(46, 160, 67, 0.65);
}

.btn-cta-neon:active {
  transform: translateY(0) scale(0.99);
}

/* GEO Statement Box */
.geo-statement-box {
  background: rgba(56, 189, 248, 0.08);
  border: 1px stroke rgba(56, 189, 248, 0.25);
  border-left: 4px solid var(--accent-cyan);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  margin: 16px 0 12px;
  text-align: left;
}

.geo-statement-text {
  font-size: 0.88rem;
  color: var(--text-main);
  line-height: 1.5;
}

/* ==========================================================================
   FAQ Section Styles
   ========================================================================== */

.faq-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 12px;
}

.faq-subtitle {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: -6px;
  margin-bottom: 10px;
}

.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq-card {
  background-color: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.faq-card:hover {
  border-color: rgba(56, 189, 248, 0.4);
}

.faq-header {
  width: 100%;
  background: transparent;
  border: none;
  color: var(--text-main);
  padding: 16px;
  font-family: var(--font-family);
  font-size: 0.95rem;
  font-weight: 700;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  gap: 12px;
}

.faq-question {
  flex: 1;
  line-height: 1.4;
  color: var(--text-main);
}

.faq-icon {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--accent-cyan);
  transition: transform 0.3s ease;
}

.faq-card.open .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out, padding 0.3s ease;
  padding: 0 16px;
  background-color: rgba(9, 13, 18, 0.4);
}

.faq-card.open .faq-answer {
  max-height: 250px;
  padding: 0 16px 16px 16px;
}

.faq-answer p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* ==========================================================================
   Modals (Onboarding & LGPD / Privacy Policy)
   ========================================================================== */

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(9, 13, 18, 0.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  padding: 16px;
  opacity: 1;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.modal-overlay.hidden {
  display: none !important;
  opacity: 0;
  pointer-events: none;
}

.modal-card {
  background-color: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  width: 100%;
  max-width: 440px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.05);
  animation: modalSlideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

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

.modal-badge {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--accent-cyan);
  background-color: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.3);
  padding: 4px 10px;
  border-radius: 20px;
}

.modal-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.btn-icon-close {
  background: transparent;
  border: none;
  color: var(--text-subtle);
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  transition: color 0.2s, background 0.2s;
}

.btn-icon-close:hover {
  color: var(--text-main);
  background-color: rgba(255, 255, 255, 0.08);
}

.modal-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.25;
  letter-spacing: -0.4px;
}

.modal-subtitle {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.45;
  margin-top: -6px;
}

.modal-text {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Privacy Modal Scroll Body */
.privacy-modal-card {
  max-width: 520px;
  max-height: 90vh;
}

.privacy-body-scroll {
  overflow-y: auto;
  max-height: 55vh;
  padding-right: 8px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.privacy-body-scroll::-webkit-scrollbar {
  width: 6px;
}

.privacy-body-scroll::-webkit-scrollbar-track {
  background: var(--input-bg);
  border-radius: 3px;
}

.privacy-body-scroll::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 3px;
}

.privacy-highlight-box {
  background-color: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--text-main);
  font-size: 0.86rem;
  line-height: 1.45;
}

.privacy-highlight-box svg {
  flex-shrink: 0;
  margin-top: 2px;
}

.privacy-section {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.privacy-section h3 {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--accent-cyan);
}

.privacy-section p {
  font-size: 0.86rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.privacy-section ul {
  padding-left: 18px;
  margin-top: 2px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.privacy-section li {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.modal-footer-actions {
  margin-top: 4px;
  display: flex;
  justify-content: flex-end;
}

/* Inline Privacy Link */
.inline-privacy-link {
  color: var(--accent-cyan);
  text-decoration: underline;
  font-weight: 600;
  transition: opacity 0.2s;
}

.inline-privacy-link:hover {
  opacity: 0.8;
}

/* App Footer */
.app-footer {
  margin-top: 24px;
  padding: 20px 12px 8px;
  text-align: center;
  border-top: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.btn-privacy-link {
  background: transparent;
  border: none;
  color: var(--accent-cyan);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: underline;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  transition: background-color 0.2s, opacity 0.2s;
}

.btn-privacy-link:hover {
  background-color: rgba(56, 189, 248, 0.1);
  opacity: 0.9;
}

.footer-copy {
  font-size: 0.76rem;
  color: var(--text-subtle);
}


