/* ============================================
   BußgeldPro.de — base.css
   Vanilla CSS Design System
   Basiert auf NebenkostenPro DNA, Blau-Adaptiert
   ============================================ */

/* === RESET === */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  touch-action: manipulation;
  scroll-behavior: smooth;
}

body {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: #020817;
  background: #FFFFFF;
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img, picture, video, canvas, svg { display: block; max-width: 100%; }
input, button, textarea, select { font: inherit; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, h5, h6, p { word-wrap: break-word; overflow-wrap: break-word; hyphens: auto; }
input, textarea, select { font-size: 16px !important; }

@media (pointer: coarse) {
  button, [role="button"], input, select, textarea { min-height: 44px; }
}
@media (hover: none) {
  * { -webkit-tap-highlight-color: rgba(37, 99, 235, 0.1); }
}

*, *::before, *::after { border-color: #E2E8F0; border-style: solid; border-width: 0; }

/* === TYPOGRAPHY === */

h1 { font-size: 1.875rem; font-weight: 800; line-height: 1; letter-spacing: -0.025em; color: #0F172A; }
@media (min-width: 1024px) { h1 { font-size: 3rem; } }

h2 { font-size: 1.5rem; font-weight: 800; line-height: 1.2; letter-spacing: -0.025em; color: #0F172A; }
@media (min-width: 640px) { h2 { font-size: 1.875rem; } }

h3 { font-size: 1.125rem; font-weight: 600; line-height: 1.4; color: #0F172A; }
@media (min-width: 640px) { h3 { font-size: 1.25rem; } }

h4 { font-size: 1rem; font-weight: 600; line-height: 1.5; color: #334155; }

.text-xs    { font-size: 0.75rem; }
.text-sm    { font-size: 0.875rem; }
.text-base  { font-size: 1rem; }
.text-lg    { font-size: 1.125rem; }
.text-xl    { font-size: 1.25rem; }
.text-2xl   { font-size: 1.5rem; }
.text-3xl   { font-size: 1.875rem; }
.text-4xl   { font-size: 2.25rem; }

.font-normal    { font-weight: 400; }
.font-medium    { font-weight: 500; }
.font-semibold  { font-weight: 600; }
.font-bold      { font-weight: 700; }
.font-extrabold { font-weight: 800; }

.text-muted     { color: #64748B; }
.text-subtle    { color: #475569; }
.text-body      { color: #334155; }
.text-heading   { color: #0F172A; }
.text-primary   { color: #2563EB; }
.text-success   { color: #16A34A; }
.text-danger    { color: #DC2626; }
.text-white     { color: #FFFFFF; }
.text-center    { text-align: center; }
.text-left      { text-align: left; }

.leading-none    { line-height: 1; }
.leading-tight   { line-height: 1.25; }
.leading-normal  { line-height: 1.5; }
.leading-relaxed { line-height: 1.625; }

.tracking-tight  { letter-spacing: -0.025em; }

/* Gradient Text — BLAU→INDIGO */
.gradient-text {
  background: linear-gradient(135deg, #2563EB 0%, #4F46E5 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* === LAYOUT === */

.container { max-width: 1280px; margin: 0 auto; padding: 0 1rem; width: 100%; }
@media (min-width: 640px)  { .container { padding: 0 1.5rem; } }
@media (min-width: 1024px) { .container { padding: 0 2rem; } }

.container-narrow { max-width: 768px; margin: 0 auto; padding: 0 1rem; }

.section { padding: 3rem 0; }
@media (min-width: 640px)  { .section { padding: 4rem 0; } }
@media (min-width: 1024px) { .section { padding: 5rem 0; } }

.section-alt   { background: #F8FAFC; }
.section-muted { background: #F1F5F9; }

/* Flexbox Utilities */
.flex         { display: flex; }
.flex-col     { flex-direction: column; }
.items-center { align-items: center; }
.items-start  { align-items: flex-start; }
.justify-center  { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-1  { gap: 0.25rem; }
.gap-2  { gap: 0.5rem; }
.gap-3  { gap: 0.75rem; }
.gap-4  { gap: 1rem; }
.gap-6  { gap: 1.5rem; }
.gap-8  { gap: 2rem; }
.flex-wrap { flex-wrap: wrap; }
.shrink-0  { flex-shrink: 0; }

/* Grid */
.grid { display: grid; }
.grid-2, .grid-3, .grid-4 { display: grid; gap: 1.5rem; }
@media (min-width: 640px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

/* Spacing */
.mt-1 { margin-top: 0.25rem; } .mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; } .mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; } .mt-8 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.25rem; } .mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; } .mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; } .mb-8 { margin-bottom: 2rem; }
.mx-auto { margin-left: auto; margin-right: auto; }
.p-4 { padding: 1rem; } .p-6 { padding: 1.5rem; } .p-8 { padding: 2rem; }
.px-2 { padding-left: 0.5rem; padding-right: 0.5rem; }
.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.px-8 { padding-left: 2rem; padding-right: 2rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-6 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }
.space-y-2 > * + * { margin-top: 0.5rem; }
.space-y-3 > * + * { margin-top: 0.75rem; }
.space-y-4 > * + * { margin-top: 1rem; }
.space-y-6 > * + * { margin-top: 1.5rem; }

/* Sizing */
.w-full { width: 100%; }
.max-w-sm  { max-width: 384px; }
.max-w-md  { max-width: 448px; }
.max-w-lg  { max-width: 512px; }
.max-w-xl  { max-width: 576px; }
.max-w-2xl { max-width: 672px; }
.max-w-3xl { max-width: 768px; }

/* Visibility */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.hidden { display: none; }
@media (min-width: 640px)  { .sm-show { display: block; } .sm-hide { display: none; } }
@media (min-width: 768px)  { .md-show { display: block; } .md-flex { display: flex; } .md-hide { display: none; } }
@media (min-width: 1024px) { .lg-show { display: block; } .lg-hide { display: none; } }

.overflow-hidden { overflow: hidden; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* === COMPONENTS === */

/* --- Buttons --- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  white-space: nowrap; font-weight: 500; font-size: 0.875rem; border-radius: 6px;
  border: none; cursor: pointer;
  transition: color 150ms ease, background-color 150ms ease, border-color 150ms ease, box-shadow 150ms ease;
  outline: none; text-decoration: none; font-family: inherit;
}
.btn:focus-visible { outline: 2px solid #2563EB; outline-offset: 2px; }
.btn:disabled { opacity: 0.5; pointer-events: none; }

.btn-primary {
  height: 44px; padding: 0 2rem;
  background: #2563EB; color: #F8FAFC;
  font-size: 1rem; font-weight: 700;
}
.btn-primary:hover { background: #1D4ED8; }

.btn-gradient {
  padding: 0.5rem 1rem;
  background: linear-gradient(to right, #3B82F6, #4F46E5);
  color: #FFFFFF; font-size: 0.875rem; font-weight: 500;
  border-radius: 8px;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1);
}
.btn-gradient:hover {
  background: linear-gradient(to right, #2563EB, #4338CA);
  box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1);
}

.btn-secondary {
  height: 44px; padding: 0 2rem;
  background: #FFFFFF; color: #020817;
  font-size: 1rem; font-weight: 600;
  border: 2px solid #E2E8F0; border-radius: 6px;
}
.btn-secondary:hover { background: #F1F5F9; border-color: #CBD5E1; }

.btn-dark {
  height: 40px; padding: 0 1.5rem;
  background: #000000; color: #FFFFFF;
  font-size: 0.875rem; font-weight: 700; border-radius: 8px;
}
.btn-dark:hover { background: #1F2937; }

.btn-ghost { height: 40px; padding: 0 1rem; background: transparent; color: #020817; }
.btn-ghost:hover { background: #F1F5F9; }

.btn-link { background: none; color: #0F172A; text-decoration: underline; text-underline-offset: 4px; }
.btn-link:hover { text-decoration-thickness: 2px; }

.btn-urgency {
  height: 44px; padding: 0 2rem;
  background: #DC2626; color: #FFFFFF;
  font-size: 1rem; font-weight: 700;
}
.btn-urgency:hover { background: #B91C1C; }

.btn-success {
  height: 44px; padding: 0 2rem;
  background: #16A34A; color: #FFFFFF;
  font-size: 1rem; font-weight: 700;
}
.btn-success:hover { background: #15803D; }

.btn-sm  { height: 36px; padding: 0 0.75rem; }
.btn-lg  { height: 44px; padding: 0 2rem; font-size: 1rem; }
.btn-xl  { height: 52px; padding: 0 2rem; font-size: 1rem; font-weight: 600; min-height: 52px; }
.btn-icon { height: 40px; width: 40px; padding: 0; }

/* --- Cards --- */
.card {
  background: #FFFFFF; border: 1px solid #E2E8F0;
  border-radius: 8px; box-shadow: 0 1px 2px 0 rgba(0,0,0,0.05);
}
.card-header  { padding: 1.5rem 1.5rem 0; display: flex; flex-direction: column; gap: 0.375rem; }
.card-content { padding: 1.5rem; }
.card-footer  { padding: 0 1.5rem 1.5rem; display: flex; align-items: center; }
.card-title   { font-size: 1.5rem; font-weight: 600; line-height: 1; letter-spacing: -0.025em; }
.card-desc    { font-size: 0.875rem; color: #64748B; }

.card-hover { transition: transform 200ms ease, box-shadow 200ms ease; }
.card-hover:hover { transform: translateY(-2px); box-shadow: 0 8px 25px -8px rgba(0,0,0,0.15); }

.card-featured { border: 2px solid #2563EB; box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1); }
.card-glow { transition: box-shadow 300ms ease; }
.card-glow:hover { box-shadow: 0 0 30px -5px rgba(37,99,235,0.2); }

.card-urgency { border: 2px solid #EF4444; background: #FEF2F2; }

/* --- Badges --- */
.badge {
  display: inline-flex; align-items: center; border-radius: 9999px;
  padding: 0.125rem 0.625rem; font-size: 0.75rem; font-weight: 600;
  border: 1px solid transparent;
}
.badge-default    { background: #0F172A; color: #F8FAFC; }
.badge-secondary  { background: #F1F5F9; color: #0F172A; }
.badge-primary    { background: #DBEAFE; color: #1E40AF; }
.badge-success    { background: #DCFCE7; color: #166534; }
.badge-warning    { background: #FFEDD5; color: #9A3412; }
.badge-info       { background: #DBEAFE; color: #1E40AF; }
.badge-destructive { background: #FEE2E2; color: #B91C1C; }
.badge-outline    { background: transparent; border-color: currentColor; color: inherit; }
.badge-frist {
  background: #DC2626; color: #FFFFFF;
  padding: 0.25rem 0.75rem; font-weight: 700;
  animation: pulse-frist 2s ease-in-out infinite;
}

/* --- Inputs --- */
.input {
  display: flex; height: 40px; width: 100%;
  padding: 0.5rem 0.75rem; font-size: 16px;
  background: #FFFFFF; color: #020817;
  border: 1px solid #E2E8F0; border-radius: 6px;
  outline: none; transition: border-color 150ms ease, box-shadow 150ms ease;
}
.input::placeholder { color: #94A3B8; }
.input:focus { border-color: #2563EB; box-shadow: 0 0 0 2px rgba(37,99,235,0.15); }
.input:disabled { opacity: 0.5; cursor: not-allowed; }

/* --- Upload Zone --- */
.upload-zone {
  border: 2px dashed #CBD5E1; border-radius: 12px;
  padding: 2rem; text-align: center; cursor: pointer;
  transition: border-color 200ms ease, background-color 200ms ease;
}
.upload-zone:hover { border-color: #3B82F6; background: rgba(239,246,255,0.5); }
.upload-zone-icon {
  width: 4rem; height: 4rem; margin: 0 auto 1rem;
  background: #DBEAFE; border-radius: 9999px;
  display: flex; align-items: center; justify-content: center;
}
.upload-zone-icon svg { width: 2rem; height: 2rem; color: #2563EB; }

/* --- Alerts --- */
.alert {
  position: relative; width: 100%; border-radius: 8px;
  border: 1px solid #E2E8F0; padding: 1rem; padding-left: 2.75rem;
}
.alert-icon { position: absolute; left: 1rem; top: 1rem; width: 1rem; height: 1rem; }
.alert-title { font-weight: 500; margin-bottom: 0.25rem; }
.alert-desc  { font-size: 0.875rem; line-height: 1.625; }
.alert-success { background: #F0FDF4; border-color: #DCFCE7; color: #166534; }
.alert-warning { background: #FFF7ED; border-color: #FFEDD5; color: #9A3412; }
.alert-error   { background: #FEF2F2; border-color: #FECACA; color: #B91C1C; }
.alert-info    { background: #EFF6FF; border-color: #BFDBFE; color: #1E40AF; }
.alert-urgency { background: #FEF2F2; border: 2px solid #EF4444; color: #B91C1C; font-weight: 500; }

/* --- Progress --- */
.progress { position: relative; height: 1rem; width: 100%; overflow: hidden; border-radius: 9999px; background: #F1F5F9; }
.progress-bar { height: 100%; background: #2563EB; border-radius: 9999px; transition: width 500ms ease; }
.progress-bar-success { background: #16A34A; }

/* --- Result Traffic Light --- */
.result-traffic-light { display: flex; align-items: center; gap: 0.75rem; padding: 1rem 1.5rem; border-radius: 12px; font-weight: 600; }
.result-green  { background: #F0FDF4; border: 2px solid #22C55E; color: #166534; }
.result-yellow { background: #FFF7ED; border: 2px solid #F97316; color: #9A3412; }
.result-red    { background: #FEF2F2; border: 2px solid #EF4444; color: #B91C1C; }
.result-dot { width: 12px; height: 12px; border-radius: 9999px; flex-shrink: 0; }
.result-green .result-dot  { background: #22C55E; box-shadow: 0 0 8px rgba(34,197,94,0.4); }
.result-yellow .result-dot { background: #F97316; box-shadow: 0 0 8px rgba(249,115,22,0.4); }
.result-red .result-dot    { background: #EF4444; box-shadow: 0 0 8px rgba(239,68,68,0.4); }

/* --- Frist Counter --- */
.frist-counter {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.5rem 1rem; background: #FEF2F2; border: 1px solid #FECACA;
  border-radius: 8px; font-size: 0.875rem; font-weight: 600; color: #B91C1C;
}
.frist-counter-days { font-size: 1.25rem; font-weight: 800; color: #DC2626; }
.frist-counter-critical {
  background: #DC2626; border-color: #DC2626; color: #FFFFFF;
  animation: pulse-frist 1.5s ease-in-out infinite;
}
.frist-counter-critical .frist-counter-days { color: #FFFFFF; }

/* --- Paywall Blur --- */
.paywall-blur { position: relative; overflow: hidden; }
.paywall-blur-content { filter: blur(8px); user-select: none; pointer-events: none; }
.paywall-overlay {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.7); backdrop-filter: blur(2px);
}
.paywall-lock-icon { width: 3rem; height: 3rem; color: #2563EB; margin-bottom: 1rem; }

/* --- Avatar --- */
.avatar { position: relative; display: flex; width: 40px; height: 40px; overflow: hidden; border-radius: 9999px; flex-shrink: 0; }
.avatar img { aspect-ratio: 1; height: 100%; width: 100%; object-fit: cover; }
.avatar-fallback { display: flex; height: 100%; width: 100%; align-items: center; justify-content: center; background: #F1F5F9; font-weight: 600; color: #64748B; }

/* --- Separator --- */
.separator-h { height: 1px; width: 100%; background: #E2E8F0; flex-shrink: 0; }
.separator-v { width: 1px; height: 100%; background: #E2E8F0; flex-shrink: 0; }

/* --- Accordion (FAQ) --- */
.accordion-item { border-bottom: 1px solid #E2E8F0; }
.accordion-trigger {
  display: flex; width: 100%; align-items: center; justify-content: space-between;
  padding: 1rem 0; font-weight: 500; font-size: 1rem; text-align: left;
  background: none; border: none; cursor: pointer;
}
.accordion-trigger:hover { text-decoration: underline; }
.accordion-trigger svg { width: 1rem; height: 1rem; flex-shrink: 0; transition: transform 200ms ease-out; }
.accordion-trigger[aria-expanded="true"] svg { transform: rotate(180deg); }
.accordion-content { overflow: hidden; max-height: 0; font-size: 0.875rem; color: #64748B; transition: max-height 200ms ease-out; }
.accordion-content.open { max-height: 500px; }
.accordion-content-inner { padding-bottom: 1rem; line-height: 1.625; }

/* === HEADER === */
.header {
  position: fixed; top: 0; z-index: 50; width: 100%;
  height: 64px; display: flex; align-items: center;
  background: rgba(255,255,255,0.6);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid #E2E8F0;
}
.header-inner {
  max-width: 1280px; margin: 0 auto; padding: 0 1rem; width: 100%;
  display: flex; align-items: center; justify-content: space-between;
}
@media (min-width: 640px) { .header-inner { padding: 0 1.5rem; } }
@media (min-width: 1024px) { .header-inner { padding: 0 2rem; } }

.header-logo { height: 32px; width: auto; }
@media (min-width: 640px) { .header-logo { height: 40px; } }

.header-nav { display: none; align-items: center; gap: 2rem; }
@media (min-width: 768px) { .header-nav { display: flex; } }
.header-nav a { font-size: 0.875rem; font-weight: 500; color: #020817; transition: color 150ms ease; }
.header-nav a:hover { color: #2563EB; }

.header-actions { display: flex; align-items: center; gap: 0.5rem; }
.header-mobile-toggle { display: flex; }
@media (min-width: 768px) { .header-mobile-toggle { display: none; } }

.main-content { padding-top: 64px; }

/* === FOOTER === */
.footer { background: #0F172A; color: #CBD5E1; }
.footer-inner { max-width: 1280px; margin: 0 auto; padding: 2rem 1rem; }
@media (min-width: 640px) { .footer-inner { padding: 3rem 1.5rem; } }
@media (min-width: 1024px) { .footer-inner { padding: 3rem 2rem; } }

.footer-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media (min-width: 640px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: repeat(4, 1fr); } }

.footer-heading { color: #FFFFFF; font-weight: 600; margin-bottom: 1rem; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }
.footer-link { font-size: 0.875rem; color: #94A3B8; transition: color 150ms ease; }
.footer-link:hover { color: #FFFFFF; }

.footer-bottom { border-top: 1px solid #1E293B; margin-top: 2rem; padding-top: 2rem; text-align: center; }
.footer-copyright { font-size: 0.75rem; color: #64748B; }
.footer-disclaimer { font-size: 0.6875rem; color: #94A3B8; margin-top: 0.5rem; }

/* === CTA BANNER === */
.cta-banner {
  background: linear-gradient(to right, #2563EB, #4F46E5);
  border-radius: 12px; padding: 2rem; text-align: center; color: #FFFFFF;
}
.cta-banner h2 { color: #FFFFFF; }
.cta-banner .btn { background: #FFFFFF; color: #1D4ED8; font-weight: 700; margin-top: 1rem; }
.cta-banner .btn:hover { background: #EFF6FF; }

/* === BACKGROUNDS === */
.bg-white     { background: #FFFFFF; }
.bg-slate-50  { background: #F8FAFC; }
.bg-slate-100 { background: #F1F5F9; }
.bg-blue-50   { background: #EFF6FF; }
.bg-blue-100  { background: #DBEAFE; }
.bg-blue-600  { background: #2563EB; }
.bg-green-50  { background: #F0FDF4; }
.bg-green-100 { background: #DCFCE7; }
.bg-red-50    { background: #FEF2F2; }
.bg-dark      { background: #0F172A; }

.bg-dot-pattern {
  background-image: radial-gradient(circle, rgba(148,163,184,0.22) 1px, transparent 1px);
  background-size: 24px 24px;
}
.bg-grid-pattern {
  background-image:
    linear-gradient(rgba(148,163,184,0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148,163,184,0.08) 1px, transparent 1px);
  background-size: 32px 32px;
}

/* === ICON CONTAINERS === */
.icon-circle {
  display: flex; align-items: center; justify-content: center;
  border-radius: 9999px; flex-shrink: 0;
}
.icon-circle-sm { width: 2rem; height: 2rem; }
.icon-circle-md { width: 2.5rem; height: 2.5rem; }
.icon-circle-lg { width: 3rem; height: 3rem; }
.icon-circle-xl { width: 4rem; height: 4rem; }

.icon-circle-blue  { background: #DBEAFE; }
.icon-circle-green { background: #DCFCE7; }
.icon-circle-red   { background: #FEE2E2; }
.icon-circle-amber { background: #FEF3C7; }

.icon-circle-blue svg  { color: #2563EB; }
.icon-circle-green svg { color: #16A34A; }
.icon-circle-red svg   { color: #EF4444; }
.icon-circle-amber svg { color: #F59E0B; }

/* === ANIMATIONS === */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
.animate-fade-in { animation: fadeIn 0.3s ease-out forwards; }

@keyframes staggerFadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.stagger > * { opacity: 0; animation: staggerFadeIn 0.4s ease-out forwards; }
.stagger > *:nth-child(1) { animation-delay: 0.05s; }
.stagger > *:nth-child(2) { animation-delay: 0.10s; }
.stagger > *:nth-child(3) { animation-delay: 0.15s; }
.stagger > *:nth-child(4) { animation-delay: 0.20s; }
.stagger > *:nth-child(5) { animation-delay: 0.25s; }
.stagger > *:nth-child(6) { animation-delay: 0.30s; }

.animate-on-scroll { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease-out, transform 0.6s ease-out; }
.animate-on-scroll.is-visible { opacity: 1; transform: translateY(0); }

.hover-lift { transition: transform 200ms ease, box-shadow 200ms ease; }
.hover-lift:hover { transform: translateY(-2px); box-shadow: 0 8px 25px -8px rgba(0,0,0,0.15); }

@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
.spinner { width: 2rem; height: 2rem; border: 3px solid #E2E8F0; border-top-color: #2563EB; border-radius: 50%; animation: spin 0.8s linear infinite; }

@keyframes shimmer { 0% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }

@keyframes pulse-frist {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.8; transform: scale(1.02); }
}

@keyframes analyze-progress {
  0%   { width: 0%; }
  20%  { width: 15%; }
  50%  { width: 45%; }
  80%  { width: 75%; }
  95%  { width: 90%; }
  100% { width: 100%; }
}
.analyze-bar {
  background: linear-gradient(to right, #3B82F6, #4F46E5);
  animation: analyze-progress 4s ease-out forwards;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* === FOCUS === */
a:focus-visible, button:focus-visible, [role="button"]:focus-visible, summary:focus-visible {
  outline: 2px solid #2563EB; outline-offset: 2px; border-radius: 4px;
}

/* === SCROLLBAR === */
.scrollbar-hide { -ms-overflow-style: none; scrollbar-width: none; }
.scrollbar-hide::-webkit-scrollbar { display: none; }
.scrollbar-thin { scrollbar-width: thin; scrollbar-color: #D1D5DB #F3F4F6; }
.scrollbar-thin::-webkit-scrollbar { width: 6px; height: 6px; }
.scrollbar-thin::-webkit-scrollbar-track { background: #F3F4F6; border-radius: 3px; }
.scrollbar-thin::-webkit-scrollbar-thumb { background: #D1D5DB; border-radius: 3px; }
.scrollbar-thin::-webkit-scrollbar-thumb:hover { background: #9CA3AF; }

/* === MOBILE MENU === */
.mobile-menu {
  position: fixed; top: 0; right: 0; width: 100%; max-width: 400px;
  height: 100vh; background: #FFFFFF; z-index: 100;
  transform: translateX(100%); transition: transform 300ms ease;
}
.mobile-menu.open { transform: translateX(0); }
.mobile-menu-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 99; display: none; }
.mobile-menu-overlay.open { display: block; }

/* === TOAST === */
.toast-container {
  position: fixed; bottom: 1rem; right: 1rem; z-index: 200;
  display: flex; flex-direction: column; gap: 0.5rem;
}
.toast {
  padding: 0.75rem 1rem; border-radius: 8px;
  background: #0F172A; color: #FFFFFF;
  font-size: 0.875rem; font-weight: 500;
  box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
  animation: fadeIn 0.3s ease-out forwards;
}
.toast-success { background: #16A34A; }
.toast-error { background: #DC2626; }

/* === STARS === */
.stars { display: flex; gap: 2px; }
.star { color: #F59E0B; }

/* === TABLES === */
.table-responsive { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
.table th { background: #F1F5F9; font-weight: 600; text-align: left; padding: 0.75rem 1rem; border-bottom: 2px solid #E2E8F0; position: sticky; top: 0; }
.table td { padding: 0.75rem 1rem; border-bottom: 1px solid #E2E8F0; }
.table tr:nth-child(even) td { background: #F8FAFC; }
.table tr:hover td { background: #EFF6FF; }

/* === PROSE === */
.prose p { margin-bottom: 1rem; line-height: 1.625; color: #334155; }
.prose h2 { margin-top: 2rem; margin-bottom: 1rem; }
.prose h3 { margin-top: 1.5rem; margin-bottom: 0.75rem; }
.prose ul, .prose ol { margin-bottom: 1rem; padding-left: 1.5rem; color: #334155; }
.prose li { margin-bottom: 0.5rem; line-height: 1.625; }
.prose strong { font-weight: 600; color: #0F172A; }
.prose a { color: #2563EB; text-decoration: underline; text-underline-offset: 2px; }
.prose a:hover { color: #1D4ED8; }

/* === BREADCRUMBS === */
.breadcrumbs { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; font-size: 0.875rem; color: #64748B; }
.breadcrumbs a { color: #2563EB; text-decoration: none; }
.breadcrumbs a:hover { text-decoration: underline; }
.breadcrumbs-sep { color: #94A3B8; }

/* === INLINE CTA === */
.inline-cta { background: #EFF6FF; border: 1px solid #BFDBFE; border-radius: 12px; padding: 1.5rem; }
