/* ========================================================
   Tractor Pro — High-Fidelity Style System
   Brand: Deep Green | Amber Accent | Teal Gradient
   Supports system preferences and manual Light/Dark Toggle
   ======================================================== */

:root {
  /* Color System - Light Theme */
  --green-primary: #1B5E20;
  --green-hover: #123F15;
  --green-dark: #003910;
  --green-light: #A5D6A7;
  --green-bg: #F1F8E9;
  --green-glow: rgba(27, 94, 32, 0.15);
  
  --amber: #FF8F00;
  --amber-hover: #E65100;
  --amber-light: #FFE082;
  --amber-glow: rgba(255, 143, 0, 0.2);
  
  --teal: #00695C;
  --teal-light: #B2DFDB;
  
  --bg-primary: #FAFDF6;
  --bg-secondary: #F1F4EE;
  --bg-tertiary: #E2E4DE;
  
  --surface: #FFFFFF;
  --surface-card: #FFFFFF;
  --surface-variant: #DDE5D9;
  --on-surface: #1A1C18;
  --on-surface-muted: #5C6259;
  --outline: #72796F;
  --border-color: rgba(27, 94, 32, 0.08);
  
  --error: #B71C1C;
  --white: #FFFFFF;
  
  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 10px 20px rgba(0, 0, 0, 0.06), 0 2px 6px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.1), 0 4px 12px rgba(0, 0, 0, 0.04);
  --shadow-glow: 0 0 20px rgba(27, 94, 32, 0.25);
  --shadow-phone: 0 30px 60px rgba(0, 0, 0, 0.15), 0 0 0 12px rgba(255, 255, 255, 0.8), 0 0 0 13px rgba(0, 0, 0, 0.05);

  /* Border Radii */
  --radius-sm: 8px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  
  /* Fonts */
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --font-display: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  
  /* Layout Transitions */
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: all 0.15s ease;
}

[data-theme="dark"] {
  /* Color System - Dark Theme */
  --green-primary: #388E3C;
  --green-hover: #4CAF50;
  --green-dark: #0A1C0C;
  --green-light: #2E7D32;
  --green-bg: #0E1710;
  --green-glow: rgba(76, 175, 80, 0.25);
  
  --amber: #FFA000;
  --amber-hover: #FFB300;
  --amber-light: #FFD54F;
  --amber-glow: rgba(255, 179, 0, 0.25);
  
  --teal: #00897B;
  --teal-light: #4DB6AC;
  
  --bg-primary: #0C0E0B;
  --bg-secondary: #131712;
  --bg-tertiary: #1B201A;
  
  --surface: #131712;
  --surface-card: #181D17;
  --surface-variant: #2A3127;
  --on-surface: #E2E3DE;
  --on-surface-muted: #A1A59E;
  --outline: #8B9187;
  --border-color: rgba(255, 255, 255, 0.05);
  
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 12px 30px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 24px 48px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 25px rgba(56, 142, 60, 0.3);
  --shadow-phone: 0 35px 70px rgba(0, 0, 0, 0.6), 0 0 0 12px rgba(24, 29, 23, 0.9), 0 0 0 13px rgba(255, 255, 255, 0.05);
}

/* Reset & Base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  color: var(--on-surface);
  background: var(--bg-primary);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background-color 0.3s ease, color 0.3s ease;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: var(--transition-fast); }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; transition: var(--transition-fast); }

/* Custom Scrollbar */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--surface-variant); border-radius: 5px; border: 2px solid var(--bg-primary); }
::-webkit-scrollbar-thumb:hover { background: var(--outline); }

/* Typography */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; color: var(--on-surface); line-height: 1.2; }
h1 { font-size: clamp(2.5rem, 5vw, 4rem); font-weight: 800; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.5rem); font-weight: 800; letter-spacing: -0.01em; }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.75rem); font-weight: 700; }
h4 { font-size: 1.2rem; font-weight: 600; }
p { font-size: 1rem; color: var(--on-surface-muted); }

/* Utilities */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; position: relative; }
.section-sm { padding: 56px 0; }
.text-center { text-align: center; }
.text-green { color: var(--green-primary); }
.text-amber { color: var(--amber); }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 600;
  background: var(--green-bg);
  color: var(--green-primary);
  border: 1px solid rgba(27, 94, 32, 0.1);
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: var(--transition);
}
.section-title { margin-bottom: 16px; }
.section-subtitle { font-size: 1.15rem; color: var(--on-surface-muted); max-width: 650px; margin-top: 8px; }
.section-header { margin-bottom: 64px; }
.section-header.center { display: flex; flex-direction: column; align-items: center; text-align: center; }
.section-header.center .section-subtitle { margin: 12px auto 0; }

/* Dynamic Background Gradients */
.bg-gradient-green {
  background: linear-gradient(180deg, var(--green-bg) 0%, var(--bg-primary) 100%);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 32px;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 700;
  font-family: var(--font-display);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
}
.btn-primary {
  background: var(--green-primary);
  color: var(--white);
  box-shadow: 0 4px 12px var(--green-glow);
}
.btn-primary:hover {
  background: var(--green-hover);
  box-shadow: 0 8px 24px var(--green-glow);
  transform: translateY(-2px);
}
.btn-primary:active { transform: translateY(0); }

.btn-secondary {
  background: var(--surface);
  color: var(--green-primary);
  border: 2px solid var(--green-primary);
}
.btn-secondary:hover {
  background: var(--green-bg);
  transform: translateY(-2px);
}
.btn-secondary:active { transform: translateY(0); }

.btn-amber {
  background: var(--amber);
  color: var(--white);
  box-shadow: 0 4px 12px var(--amber-glow);
}
.btn-amber:hover {
  background: var(--amber-hover);
  box-shadow: 0 8px 24px var(--amber-glow);
  transform: translateY(-2px);
}
.btn-amber:active { transform: translateY(0); }
.btn-sm { padding: 10px 20px; font-size: 0.9rem; border-radius: var(--radius-sm); }

/* Navigation */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 253, 246, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  padding: 0 24px;
  transition: var(--transition);
}
[data-theme="dark"] .navbar {
  background: rgba(12, 14, 11, 0.85);
}
.navbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}
.navbar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.navbar-logo {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.navbar-brand:hover .navbar-logo {
  transform: rotate(8deg) scale(1.05);
}
.navbar-name {
  font-size: 1.35rem;
  font-weight: 800;
  font-family: var(--font-display);
  background: linear-gradient(135deg, var(--green-primary) 0%, var(--teal) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.01em;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav-links a {
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--on-surface-muted);
  transition: var(--transition-fast);
}
.nav-links a:hover {
  background: var(--green-bg);
  color: var(--green-primary);
}
.nav-links a.active {
  color: var(--green-primary);
  background: var(--green-bg);
}
.nav-cta {
  margin-left: 12px;
}
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 10px;
  z-index: 101;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--on-surface);
  border-radius: 2px;
  transition: var(--transition);
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Theme Toggle Button */
.theme-toggle-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  color: var(--on-surface);
  transition: var(--transition);
  margin-left: 8px;
}
.theme-toggle-btn:hover {
  background: var(--surface-variant);
  transform: scale(1.05);
}
.theme-toggle-btn .sun-icon { display: none; }
.theme-toggle-btn .moon-icon { display: block; }
[data-theme="dark"] .theme-toggle-btn .sun-icon { display: block; }
[data-theme="dark"] .theme-toggle-btn .moon-icon { display: none; }

/* Hero Section */
.hero {
  padding: 120px 0 96px;
  background: linear-gradient(135deg, var(--green-dark) 0%, #15451a 50%, var(--teal) 100%);
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M40 0l40 40-40 40L0 40z' fill='%23ffffff' fill-opacity='0.03' fill-rule='evenodd'/%3E%3C/svg%3E");
  opacity: 0.8;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 72px;
  align-items: center;
  position: relative;
  z-index: 2;
}
.hero-badge {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: var(--white);
}
.hero h1 {
  color: var(--white);
  margin-bottom: 24px;
  line-height: 1.1;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}
.hero h1 span {
  background: linear-gradient(120deg, var(--amber-light) 0%, var(--amber) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-sub {
  font-size: 1.25rem;
  line-height: 1.6;
  opacity: 0.9;
  margin-bottom: 40px;
  color: #E2F5E5;
  max-width: 540px;
}
.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.hero-actions .btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
}
.hero-actions .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: var(--white);
}
.hero-stats {
  display: flex;
  gap: 40px;
  margin-top: 56px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 32px;
}
.hero-stat-num {
  font-size: 2.25rem;
  font-weight: 800;
  font-family: var(--font-display);
  color: var(--amber);
  display: block;
}
.hero-stat-lbl {
  font-size: 0.9rem;
  opacity: 0.8;
  color: #B9DBC0;
}
.hero-visual {
  display: flex;
  justify-content: center;
  position: relative;
}

/* Floating Badges in Hero */
.floating-badge {
  position: absolute;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  padding: 14px 20px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 10;
  transition: var(--transition);
  animation: float 6s ease-in-out infinite;
}
[data-theme="dark"] .floating-badge {
  background: rgba(24, 29, 23, 0.85);
  border-color: rgba(255, 255, 255, 0.08);
}
.floating-badge:hover {
  transform: scale(1.05) translateY(-2px);
}
.fb-1 {
  top: 10%;
  left: -8%;
  animation-delay: 0s;
}
.fb-2 {
  bottom: 15%;
  right: -5%;
  animation-delay: 3s;
}
.fb-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--green-bg);
  color: var(--green-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}
.fb-text h5 {
  font-size: 0.8rem;
  color: var(--on-surface-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.fb-text p {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--on-surface);
  font-family: var(--font-display);
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

/* Smartphone Mockup Component */
.phone-mockup {
  position: relative;
  width: 280px;
  height: 570px;
  border-radius: 44px;
  box-shadow: var(--shadow-phone);
  overflow: hidden;
  transition: var(--transition);
  background: #000;
}
.phone-screen-container {
  width: 100%;
  height: 100%;
  position: relative;
  background: #000;
}
.phone-screen {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.5s ease;
  position: absolute;
  top: 0;
  left: 0;
}
.phone-screen.active {
  opacity: 1;
  position: relative;
  z-index: 1;
}
/* Smartphone details */
.phone-notch {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 110px;
  height: 24px;
  border-radius: 20px;
  background: #000;
  z-index: 10;
}
.phone-glare {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, rgba(255,255,255,0) 50%);
  z-index: 5;
  pointer-events: none;
}

/* Stats Banner */
.stats-banner {
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-color);
  padding: 48px 0;
}
.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
}
.stat-item {
  text-align: center;
  padding: 16px;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  transition: var(--transition);
}
.stat-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--green-light);
}
.stat-num {
  font-size: 2.75rem;
  font-weight: 800;
  font-family: var(--font-display);
  background: linear-gradient(135deg, var(--green-primary) 0%, var(--teal) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: block;
  margin-bottom: 4px;
}
.stat-lbl {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--on-surface-muted);
}

/* Key Features / Showcase */
.showcase-container {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 80px;
  align-items: center;
}
.showcase-visual {
  display: flex;
  justify-content: center;
  position: relative;
}
.showcase-features {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.showcase-card {
  background: var(--surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  gap: 20px;
  cursor: pointer;
  text-align: left;
  transition: var(--transition);
  position: relative;
}
.showcase-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--green-primary);
  border-radius: 4px 0 0 4px;
  opacity: 0;
  transition: var(--transition);
}
.showcase-card:hover {
  transform: translateX(6px);
  background: var(--bg-secondary);
  border-color: var(--green-light);
}
.showcase-card.active {
  background: var(--green-bg);
  border-color: var(--green-light);
  box-shadow: var(--shadow-sm);
}
.showcase-card.active::after {
  opacity: 1;
}
.showcase-card .feature-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  color: var(--green-primary);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.showcase-card.active .feature-icon {
  background: var(--green-primary);
  color: var(--white);
  border-color: var(--green-primary);
}
.showcase-card-body h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--on-surface);
}
.showcase-card-body p {
  font-size: 0.95rem;
  color: var(--on-surface-muted);
  line-height: 1.5;
}

/* Feature Cards Grid (Backup style) */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
}
.feature-card {
  background: var(--surface-card);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  transition: var(--transition);
}
.feature-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-6px);
  border-color: var(--green-light);
}
.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: var(--green-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  font-size: 1.6rem;
  box-shadow: inset 0 2px 4px rgba(27, 94, 32, 0.05);
}
.feature-card h3 { margin-bottom: 12px; }
.feature-card p { font-size: 0.95rem; color: var(--on-surface-muted); }

/* Steps Section */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
  position: relative;
}
.step {
  text-align: center;
  padding: 32px 24px;
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.step:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--green-light);
}
.step-num {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--green-primary) 0%, var(--teal) 100%);
  color: var(--white);
  font-size: 1.5rem;
  font-weight: 800;
  font-family: var(--font-display);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  box-shadow: 0 4px 10px var(--green-glow);
}
.step h4 { margin-bottom: 12px; font-size: 1.25rem; }
.step p { font-size: 0.95rem; }

/* Implements Chips & Directory */
.implements-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}
.implement-chip {
  background: var(--surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}
.implement-chip:hover {
  background: var(--green-bg);
  border-color: var(--green-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.implement-chip-left {
  display: flex;
  align-items: center;
  gap: 12px;
}
.implement-chip span.emoji {
  font-size: 1.4rem;
}
.premium-tag {
  background: linear-gradient(135deg, #D4AF37, #FF8F00);
  color: #1A1C18;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-shadow: 0 2px 4px rgba(255, 143, 0, 0.2);
}

/* Detail bottom drawer / Modal */
.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
}
.drawer-overlay.open {
  opacity: 1;
  pointer-events: auto;
}
.drawer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--surface);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  box-shadow: 0 -10px 40px rgba(0,0,0,0.15);
  z-index: 1001;
  max-height: 85vh;
  overflow-y: auto;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 40px 24px 32px;
}
@media (min-width: 768px) {
  .drawer {
    top: 50%;
    left: 50%;
    bottom: auto;
    right: auto;
    width: 600px;
    transform: translate(-50%, -40%) scale(0.95);
    border-radius: var(--radius-lg);
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
  }
  .drawer.open {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
    pointer-events: auto;
  }
}
.drawer.open {
  transform: translateY(0);
}
.drawer-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--on-surface-muted);
}
.drawer-close:hover {
  background: var(--surface-variant);
  color: var(--on-surface);
}
.drawer-handle {
  width: 40px;
  height: 4px;
  background: var(--surface-variant);
  border-radius: 2px;
  margin: -24px auto 20px;
  display: block;
}
@media (min-width: 768px) {
  .drawer-handle { display: none; }
}

.drawer-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}
.drawer-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: var(--green-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
}
.drawer-title-area h3 {
  font-size: 1.5rem;
}
.drawer-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.drawer-meta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.drawer-meta-item {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  padding: 14px;
  border-radius: var(--radius);
}
.drawer-meta-item strong {
  display: block;
  font-size: 0.8rem;
  color: var(--on-surface-muted);
  text-transform: uppercase;
  margin-bottom: 4px;
}
.drawer-meta-item span {
  font-size: 1.05rem;
  font-weight: 700;
  font-family: var(--font-display);
}

/* Calculator Section Upgrades */
.calc-section-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 64px;
  align-items: center;
}
.calculator-box {
  background: var(--surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-md);
}
.calc-tabs {
  display: flex;
  background: var(--bg-secondary);
  padding: 4px;
  border-radius: var(--radius-sm);
  margin-bottom: 24px;
  gap: 4px;
}
.calc-tab {
  flex: 1;
  padding: 10px 14px;
  text-align: center;
  font-weight: 700;
  font-size: 0.85rem;
  border-radius: 6px;
  color: var(--on-surface-muted);
}
.calc-tab.active {
  background: var(--surface);
  color: var(--green-primary);
  box-shadow: var(--shadow-sm);
}

/* Styled Sliders */
.range-group {
  margin-bottom: 24px;
}
.range-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
}
.range-val {
  font-weight: 700;
  color: var(--green-primary);
}
.range-slider {
  -webkit-appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: var(--bg-tertiary);
  outline: none;
  margin: 12px 0;
}
.range-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--amber);
  cursor: pointer;
  border: 2px solid var(--white);
  box-shadow: var(--shadow-sm);
  transition: transform 0.1s;
}
.range-slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
  background: var(--amber-hover);
}
.range-slider::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--amber);
  cursor: pointer;
  border: 2px solid var(--white);
  box-shadow: var(--shadow-sm);
  transition: transform 0.1s;
}
.range-slider::-moz-range-thumb:hover {
  transform: scale(1.2);
  background: var(--amber-hover);
}

.rate-presets {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}
.preset-btn {
  padding: 6px 12px;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  border: 1px solid var(--border-color);
  background: var(--bg-secondary);
  color: var(--on-surface-muted);
}
.preset-btn:hover {
  border-color: var(--green-light);
  color: var(--green-primary);
  background: var(--green-bg);
}

/* Invoice Receipt Box */
.receipt-wrapper {
  perspective: 1000px;
}
.receipt-card {
  background: var(--surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}
.receipt-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(90deg, var(--green-primary), var(--teal));
}
.receipt-header {
  border-bottom: 2px dashed var(--surface-variant);
  padding-bottom: 20px;
  margin-bottom: 20px;
  text-align: center;
}
.receipt-logo {
  font-weight: 800;
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--green-primary);
  margin-bottom: 4px;
}
.receipt-sub {
  font-size: 0.8rem;
  color: var(--on-surface-muted);
}
.receipt-details {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}
.receipt-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.95rem;
}
.receipt-row.total {
  border-top: 2px dashed var(--surface-variant);
  padding-top: 16px;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--on-surface);
  font-family: var(--font-display);
}
.receipt-row.total span.val {
  color: var(--green-primary);
}
.receipt-barcode {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 24px;
  opacity: 0.6;
}
.receipt-barcode-line {
  font-family: monospace;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  margin-top: 4px;
}

/* App preview (screenshots page component) */
.screenshots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
}
.screenshot-card {
  background: var(--surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.screenshot-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--green-light);
}
.screenshot-card img {
  width: 100%;
  aspect-ratio: 9/19.5;
  object-fit: cover;
  border-bottom: 1px solid var(--border-color);
  transition: var(--transition);
}
.screenshot-card:hover img {
  transform: scale(1.02);
}
.screenshot-card figcaption {
  padding: 16px;
  font-size: 0.9rem;
  font-weight: 700;
  font-family: var(--font-display);
  color: var(--on-surface);
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 10000;
}
.toast {
  background: var(--on-surface);
  color: var(--white);
  padding: 14px 24px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  font-size: 0.9rem;
  transform: translateY(100px);
  opacity: 0;
  transition: var(--transition);
}
.toast.show {
  transform: translateY(0);
  opacity: 1;
}

/* Download Call to Action Section */
.download-section {
  background: linear-gradient(135deg, var(--green-primary) 0%, var(--green-dark) 100%);
  color: var(--white);
  border-radius: var(--radius-xl);
  margin: 0 24px 48px;
  padding: 80px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.download-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0) 60%);
}
.download-section h2 { color: var(--white); font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; margin-bottom: 16px; }
.download-section p { color: #D1EED5; font-size: 1.15rem; max-width: 600px; margin: 0 auto 40px; }

.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  background: var(--white);
  color: #1A1C18;
  padding: 16px 28px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  transition: var(--transition);
}
.store-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.25);
  background: #fbfbfb;
}
.store-btn svg {
  flex-shrink: 0;
  transition: var(--transition);
}
.store-btn:hover svg {
  transform: scale(1.1);
}
.store-btn-text { text-align: left; line-height: 1.2; }
.store-btn-sub { font-size: 0.8rem; font-weight: 500; opacity: 0.7; }
.store-btn-main { font-size: 1.15rem; font-weight: 800; font-family: var(--font-display); }

/* Notice Banner */
.notice-banner {
  background: #FFF8E1;
  border-bottom: 1px solid var(--amber-light);
  padding: 12px 24px;
  text-align: center;
  font-size: 0.9rem;
  color: #5D4037;
  font-weight: 500;
}
[data-theme="dark"] .notice-banner {
  background: #2D2510;
  border-bottom-color: #4A3E20;
  color: #FFE082;
}
.notice-banner a { color: var(--green-primary); font-weight: 700; text-decoration: underline; margin-left: 6px; }

/* Info Grid (about, contact, legal page layouts) */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
}
.info-card {
  background: var(--surface-card);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  transition: var(--transition);
}
.info-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--green-light);
}
.info-card h3 { margin-bottom: 16px; font-family: var(--font-display); }
.info-card p { line-height: 1.7; }

/* Dynamic Lang Pills */
.lang-pills { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.lang-pill {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 100px;
  padding: 8px 18px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--on-surface-muted);
  cursor: pointer;
  transition: var(--transition);
}
.lang-pill:hover, .lang-pill.active {
  background: var(--green-bg);
  border-color: var(--green-light);
  color: var(--green-primary);
  transform: scale(1.02);
}

/* Contact Form Upgrades */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-group.full { grid-column: 1 / -1; }
label { font-size: 0.9rem; font-weight: 700; font-family: var(--font-display); color: var(--on-surface); }
input, textarea, select {
  padding: 14px 20px;
  border: 2px solid var(--border-color);
  background: var(--surface);
  color: var(--on-surface);
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-family: inherit;
  transition: var(--transition);
}
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--green-primary);
  box-shadow: 0 0 0 4px var(--green-glow);
}
textarea { min-height: 150px; resize: vertical; }

/* FAQ List Accordions */
.faq-list { max-width: 800px; margin: 0 auto; display: flex; flex-direction: column; gap: 16px; }
.faq-item {
  background: var(--surface-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.faq-item:hover {
  border-color: var(--green-light);
}
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 32px;
  text-align: left;
  font-size: 1.1rem;
  font-weight: 700;
  font-family: var(--font-display);
  color: var(--on-surface);
}
.faq-q svg {
  flex-shrink: 0;
  color: var(--green-primary);
  transition: var(--transition);
}
.faq-q.open svg {
  transform: rotate(180deg);
}
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0, 1, 0, 1), padding 0.3s ease;
  padding: 0 32px;
  color: var(--on-surface-muted);
  line-height: 1.7;
}
.faq-a.open {
  max-height: 500px;
  padding-bottom: 24px;
}

/* Page Header component */
.page-header {
  background: linear-gradient(135deg, var(--green-primary) 0%, var(--teal) 100%);
  color: var(--white);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}
.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.page-header h1 { color: var(--white); margin-bottom: 12px; }
.page-header p { color: rgba(255,255,255,0.85); font-size: 1.15rem; max-width: 600px; }

/* Legal Text Styles */
.legal-content { max-width: 860px; margin: 0 auto; }
.legal-content h2 { margin: 48px 0 16px; padding-top: 48px; border-top: 1px solid var(--border-color); font-family: var(--font-display); }
.legal-content h2:first-of-type { border-top: none; padding-top: 0; }
.legal-content h3 { margin: 32px 0 12px; color: var(--green-primary); font-family: var(--font-display); }
.legal-content p { margin-bottom: 18px; line-height: 1.8; color: var(--on-surface-muted); }
.legal-content ul { margin: 12px 0 20px 24px; }
.legal-content ul li { margin-bottom: 8px; color: var(--on-surface-muted); list-style: disc; }
.legal-meta {
  background: var(--bg-secondary);
  border-radius: var(--radius);
  border: 1px solid var(--border-color);
  padding: 20px 28px;
  margin-bottom: 48px;
  font-size: 0.95rem;
  color: var(--on-surface-muted);
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
}
.legal-meta strong { color: var(--on-surface); }
.toc {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 24px 32px;
  margin-bottom: 48px;
}
.toc h4 { margin-bottom: 16px; font-size: 0.9rem; color: var(--outline); text-transform: uppercase; letter-spacing: 0.05em; }
.toc ol { padding-left: 20px; }
.toc li { margin-bottom: 6px; }
.toc a { color: var(--green-primary); font-size: 0.95rem; font-weight: 600; }
.toc a:hover { text-decoration: underline; }

/* Check List styling */
.check-list { margin: 24px 0; }
.check-list li { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 12px; font-size: 1rem; color: var(--on-surface-muted); }
.check-list li::before {
  content: '✓';
  color: var(--green-primary);
  font-weight: 800;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  background: var(--green-bg);
  border-radius: 50%;
  font-size: 0.75rem;
}

/* Footer Section */
.footer {
  background: var(--green-dark);
  color: rgba(255,255,255,0.75);
  padding: 80px 0 40px;
  border-top: 1px solid rgba(255,255,255,0.05);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 64px;
  margin-bottom: 64px;
}
.footer-brand p {
  font-size: 0.95rem;
  line-height: 1.7;
  max-width: 280px;
  margin-top: 16px;
  color: #B9DBC0;
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}
.footer-logo img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
}
.footer-logo span {
  font-size: 1.35rem;
  font-weight: 800;
  font-family: var(--font-display);
  color: var(--white);
}
.footer-links h4 {
  color: var(--white);
  margin-bottom: 24px;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.footer-links ul li { margin-bottom: 12px; }
.footer-links ul a {
  font-size: 0.95rem;
  color: #B9DBC0;
}
.footer-links ul a:hover {
  color: var(--white);
  transform: translateX(4px);
  display: inline-block;
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}
.footer-bottom p {
  font-size: 0.9rem;
  color: #B9DBC0;
}
.footer-legal { display: flex; gap: 24px; }
.footer-legal a { font-size: 0.9rem; color: #B9DBC0; }
.footer-legal a:hover { color: var(--white); }

/* Scroll Reveal classes */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .floating-badge { animation: none; }
}

/* Skip link for Accessibility */
.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.skip-link:focus {
  position: fixed;
  left: 24px;
  top: 24px;
  width: auto;
  height: auto;
  padding: 16px 28px;
  background: var(--green-primary);
  color: var(--white);
  z-index: 200;
  border-radius: var(--radius);
  font-weight: 700;
  font-family: var(--font-display);
  box-shadow: var(--shadow-lg);
}
:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 4px;
}

/* Responsive Grid Adaptation */
@media (max-width: 1024px) {
  .hero-inner { gap: 40px; }
  .showcase-container { gap: 40px; }
  .calc-section-grid { gap: 40px; }
  .footer-grid { gap: 40px; }
}

@media (max-width: 768px) {
  .navbar-inner { height: 72px; }
  .nav-toggle { display: flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
    flex-direction: column;
    padding: 24px;
    gap: 8px;
    box-shadow: var(--shadow-md);
    max-height: calc(100vh - 72px);
    overflow-y: auto;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 14px 20px; width: 100%; border-radius: var(--radius-sm); }
  .nav-cta { margin-left: 0; width: 100%; text-align: center; }
  .theme-toggle-btn { margin-left: auto; margin-right: 16px; }
  
  .hero { padding: 80px 0; }
  .hero-inner { grid-template-columns: 1fr; text-align: center; gap: 56px; }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .hero-stats { justify-content: center; }
  .floating-badge { display: none; }
  
  .showcase-container { grid-template-columns: 1fr; }
  .showcase-visual { order: -1; }
  
  .calc-section-grid { grid-template-columns: 1fr; }
  /* Place inputs first, receipt second on mobile for better interactive updates */
  .receipt-wrapper { order: 1; max-width: 480px; margin: 0 auto; }
  
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 48px; }
  .footer-brand { grid-column: span 2; }
}

@media (max-width: 520px) {
  .section { padding: 64px 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-brand { grid-column: span 1; }
  .form-grid { grid-template-columns: 1fr; }
  .form-group.full { grid-column: span 1; }
  .drawer-meta-grid { grid-template-columns: 1fr; }
}

/* Extra optimization for narrow viewports (API-standard responsive layout) */
@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .section { padding: 48px 0; }
  .section-sm { padding: 32px 0; }
  .hero { padding: 56px 0; }
  .download-section { padding: 48px 16px; margin: 0 16px 32px; }
  
  /* Scale down device mockup to prevent overflow on very narrow devices */
  .phone-mockup {
    width: 240px;
    height: 488px;
    border-radius: 36px;
  }
  .phone-notch {
    width: 90px;
    height: 20px;
    top: 10px;
  }
}

/* ========================================================
   Tractor Pro — Premium UI Elements & Enhancements (Ultra Pro Max)
   ======================================================== */

/* Scroll Progress Bar */
.scroll-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--green-primary) 0%, var(--amber) 50%, var(--teal) 100%);
  width: 0%;
  z-index: 1100;
  transition: width 0.1s ease;
}

/* Ambient Glow Blobs */
.glow-blob-container {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
.glow-blob {
  position: absolute;
  width: 450px;
  height: 450px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--green-glow) 0%, rgba(27, 94, 32, 0.03) 50%, transparent 70%);
  filter: blur(60px);
  pointer-events: none;
  opacity: 0.8;
  mix-blend-mode: multiply;
  transition: opacity 0.5s ease;
}
[data-theme="dark"] .glow-blob {
  background: radial-gradient(circle, rgba(76, 175, 80, 0.12) 0%, rgba(76, 175, 80, 0.02) 50%, transparent 70%);
  mix-blend-mode: screen;
}
.glow-blob-1 { top: 10%; left: -100px; }
.glow-blob-2 { top: 50%; right: -150px; }
.glow-blob-3 { bottom: 10%; left: 20%; }

/* Glassmorphic Navbar Enhancements */
.navbar {
  backdrop-filter: blur(16px) saturate(120%);
  -webkit-backdrop-filter: blur(16px) saturate(120%);
  border-bottom: 1px solid var(--border-color);
  background: rgba(250, 253, 246, 0.75);
}
[data-theme="dark"] .navbar {
  background: rgba(12, 14, 11, 0.75);
}
.navbar.scrolled {
  height: 64px;
  box-shadow: var(--shadow-sm);
  background: rgba(250, 253, 246, 0.85);
}
[data-theme="dark"] .navbar.scrolled {
  background: rgba(12, 14, 11, 0.85);
}

/* 3D Tilt Mockup Container */
.tilt-container {
  perspective: 1200px;
  transform-style: preserve-3d;
  display: inline-block;
  position: relative;
}
.phone-mockup {
  transform-style: preserve-3d;
  transform: rotateX(0deg) rotateY(0deg);
  transition: transform 0.15s ease-out, box-shadow 0.3s ease;
}
.phone-mockup:hover {
  box-shadow: 0 45px 85px rgba(0, 0, 0, 0.25), 0 0 0 12px rgba(255, 255, 255, 0.9), 0 0 0 13px rgba(0, 0, 0, 0.08);
}
[data-theme="dark"] .phone-mockup:hover {
  box-shadow: 0 45px 85px rgba(0, 0, 0, 0.7), 0 0 0 12px rgba(24, 29, 23, 0.95), 0 0 0 13px rgba(255, 255, 255, 0.08);
}

/* Implements Filtering Pills */
.implements-filter-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 40px;
  position: relative;
  z-index: 10;
}
.filter-btn {
  padding: 8px 18px;
  border-radius: 100px;
  font-size: 0.9rem;
  font-weight: 600;
  border: 1px solid var(--border-color);
  background: var(--surface);
  color: var(--on-surface-muted);
  cursor: pointer;
  transition: var(--transition-fast);
}
.filter-btn:hover {
  background: var(--green-bg);
  border-color: var(--green-light);
  color: var(--green-primary);
  transform: translateY(-1px);
}
.filter-btn.active {
  background: var(--green-primary);
  border-color: var(--green-primary);
  color: var(--white);
  box-shadow: var(--shadow-sm);
}

/* Dynamic slider fill styling update */
.range-slider {
  background: linear-gradient(to right, var(--green-primary) 0%, var(--green-primary) 8%, var(--bg-tertiary) 8%, var(--bg-tertiary) 100%);
  transition: background 0.05s ease;
}

/* Receipt Card Style Upgrade */
.receipt-card {
  border: 1px solid rgba(27, 94, 32, 0.15);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.08), var(--shadow-md);
  background: linear-gradient(180deg, var(--surface) 0%, rgba(250,253,246,0.3) 100%);
}
[data-theme="dark"] .receipt-card {
  background: linear-gradient(180deg, var(--surface) 0%, rgba(14,23,16,0.1) 100%);
  border-color: rgba(255,255,255,0.08);
}

/* Receipt Payment Stamp */
.receipt-stamp {
  position: absolute;
  top: 100px;
  right: 24px;
  width: 90px;
  height: 90px;
  border: 3px double var(--error);
  border-radius: 50%;
  color: var(--error);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transform: rotate(-15deg) scale(0);
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s ease;
  pointer-events: none;
  font-family: var(--font-display);
}
.receipt-stamp.paid {
  border-color: var(--green-primary);
  color: var(--green-primary);
  transform: rotate(-12deg) scale(1);
  opacity: 0.75;
}

/* Live dynamic ticker notification toast */
.toast-notification {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--surface);
  color: var(--on-surface);
  border: 1px solid var(--green-light);
  border-left: 5px solid var(--green-primary);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  box-shadow: var(--shadow-lg);
  z-index: 2000;
  display: flex;
  align-items: center;
  gap: 12px;
  transform: translateY(100px);
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s ease;
}
.toast-notification.show {
  transform: translateY(0);
  opacity: 1;
}
.toast-icon {
  font-size: 1.3rem;
}
.toast-body h5 {
  font-size: 0.9rem;
  margin-bottom: 2px;
}
.toast-body p {
  font-size: 0.8rem;
  color: var(--on-surface-muted);
}

/* FAQ Collapsible height animation support */
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1), padding 0.35s ease;
  padding: 0 24px;
}
.faq-a.open {
  max-height: 500px;
  padding: 16px 24px 24px;
  border-top: 1px solid var(--border-color);
}

