/* =====================================================================
   FLOWIE · QUICK E-INVOICE CREATOR — styles
   Premium edition · Brand Blue + Gold + Beige · Geist Sans
   Tokens aligned with flowie-website / flowie-roi-calculator (May 2026)
   ===================================================================== */

:root {
  /* Brand */
  --brand-blue: #222878;
  --brand-blue-dark: #1a1f5e;
  --brand-blue-light: #4a52a8;
  --gold: #F2D599;
  --gold-light: #ffe8b8;
  --gold-dark: #b8922e;

  /* Beige scale */
  --beige-light: #F4F1EE;
  --beige-medium: #EAE6E1;
  --beige-dark: #DDD6CD;
  --muted: #5F6672;

  /* Dark gradient */
  --gradient-start: #0d1033;
  --gradient-mid: #141a4f;
  --gradient-end: #0f1340;

  /* Semantic */
  --success: #16A34A;
  --success-light: #F0FDF4;
  --warning: #D97706;
  --warning-light: #FFFBEB;
  --error: #DC2626;
  --error-light: #FEF2F2;
  --info: #2563EB;
  --white: #FFFFFF;
  --ink: #0F172A;

  --shadow-sm: 0 1px 3px rgba(34, 40, 120, .06), 0 1px 2px rgba(34, 40, 120, .04);
  --shadow:    0 4px 12px -2px rgba(34, 40, 120, .08), 0 2px 4px -2px rgba(34, 40, 120, .04);
  --shadow-md: 0 8px 20px -4px rgba(34, 40, 120, .10), 0 4px 8px -4px rgba(34, 40, 120, .06);
  --shadow-lg: 0 16px 32px -8px rgba(34, 40, 120, .12), 0 8px 16px -6px rgba(34, 40, 120, .08);
  --shadow-glow-gold: 0 0 32px rgba(242, 213, 153, 0.35), 0 0 80px rgba(242, 213, 153, 0.15);

  --radius-sm: 8px;
  --radius:    12px;
  --radius-lg: 16px;
  --radius-xl: 20px;

  --container-max: 1280px;

  --duration-base: 200ms;
  --duration-slow: 300ms;
  --ease-out: cubic-bezier(0, 0, 0.2, 1);
}

* , *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; scroll-behavior: smooth; }
body {
  font-family: 'Geist', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--white);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
::selection { background: var(--gold); color: var(--brand-blue); }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; border: none; background: none; cursor: pointer; color: inherit; }
input, select, textarea { font-family: inherit; font-size: inherit; }
img { max-width: 100%; height: auto; display: block; }

/* ───────── ANIMATIONS ───────── */
@keyframes shimmer { 0% { background-position: -200% center; } 100% { background-position: 200% center; } }
@keyframes btnShine { 0% { left: -100%; } 60%, 100% { left: 150%; } }
@keyframes glowPulse { 0%, 100% { opacity: .4; transform: scale(1); } 50% { opacity: .75; transform: scale(1.08); } }
@keyframes aurora {
  0%, 100% { transform: translate(0, 0); opacity: .4; }
  50%      { transform: translate(20px, -10px); opacity: .55; }
}
@keyframes fadeInUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes pop { from { transform: scale(.85); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes pulseDot { 0%, 100% { transform: scale(1); opacity: .6; } 50% { transform: scale(1.4); opacity: 1; } }

/* ───────── CONTAINER ───────── */
.container { max-width: var(--container-max); margin: 0 auto; padding: 0 16px; position: relative; }
@media (min-width: 640px)  { .container { padding: 0 24px; } }
@media (min-width: 1024px) { .container { padding: 0 48px; } }

/* ───────── NAVBAR ───────── */
.navbar {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .82);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(221, 214, 205, .6);
}
.navbar-inner {
  max-width: var(--container-max); margin: 0 auto; padding: 0 16px;
  height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
@media (min-width: 640px)  { .navbar-inner { padding: 0 24px; } }
@media (min-width: 1024px) { .navbar-inner { padding: 0 48px; } }
.navbar-logo { display: flex; align-items: center; flex-shrink: 0; transition: opacity var(--duration-base) var(--ease-out); }
.navbar-logo img { height: 28px; width: auto; }
.navbar-logo:hover { opacity: .7; }
.navbar-actions { display: flex; align-items: center; gap: 12px; }
.navbar-link {
  font-size: 14px; font-weight: 500; color: var(--brand-blue);
  padding: 8px 12px; border-radius: 8px;
  transition: background var(--duration-base) var(--ease-out);
}
.navbar-link:hover { background: var(--beige-light); }
@media (max-width: 768px) { .navbar-link { display: none; } }
.lang-toggle { display: inline-flex; background: var(--beige-light); border-radius: 8px; padding: 3px; }
.lang-toggle button {
  padding: 6px 10px; font-size: 12px; font-weight: 600;
  color: var(--muted); border-radius: 6px; transition: all 150ms var(--ease-out);
}
.lang-toggle button.active { background: var(--brand-blue); color: var(--white); }

/* ───────── BUTTONS ───────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: inherit; font-weight: 600; text-decoration: none; white-space: nowrap;
  border: 1px solid transparent; cursor: pointer; position: relative;
  transition: all var(--duration-base) var(--ease-out);
}
.btn-sm { padding: 8px 16px; font-size: 14px; border-radius: 10px; min-height: 36px; }
.btn:not(.btn-sm):not(.btn-lg) { padding: 12px 24px; font-size: 15px; border-radius: 12px; min-height: 44px; }
.btn-lg { padding: 16px 32px; font-size: 17px; border-radius: 14px; min-height: 56px; }
.btn-primary {
  background: linear-gradient(135deg, var(--gold) 0%, #f0cf8c 100%);
  color: var(--brand-blue);
  box-shadow: 0 2px 8px rgba(242, 213, 153, .30), 0 1px 3px rgba(184, 146, 46, .15);
}
.btn-primary:hover { background: linear-gradient(135deg, #efc97e 0%, var(--gold) 100%); box-shadow: var(--shadow-glow-gold), var(--shadow-md); transform: translateY(-2px); }
.btn-primary:active { transform: translateY(0); }
.btn-primary:disabled { opacity: .6; cursor: not-allowed; transform: none; }
.btn-secondary { background: var(--brand-blue); color: var(--white); }
.btn-secondary:hover { background: var(--brand-blue-dark); box-shadow: var(--shadow-md); transform: translateY(-1px); }
.btn-ghost { background: var(--white); color: var(--brand-blue); border-color: rgba(34, 40, 120, .15); }
.btn-ghost:hover { background: var(--beige-light); border-color: rgba(34, 40, 120, .25); }
.btn-outline-dark { background: transparent; color: var(--white); border-color: rgba(255, 255, 255, .3); backdrop-filter: blur(8px); }
.btn-outline-dark:hover { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .6); transform: translateY(-1px); }
.btn-block { width: 100%; }
.btn-shine { position: relative; overflow: hidden; }
.btn-shine::after {
  content: ""; position: absolute; top: 0; left: -100%; width: 60%; height: 100%;
  background: linear-gradient(120deg, transparent 0%, rgba(255,255,255,.45) 50%, transparent 100%);
  animation: btnShine 3.2s ease-in-out infinite; pointer-events: none;
}

/* ───────── HERO ───────── */
.page-header {
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-mid), var(--gradient-end));
  color: var(--white); padding: 80px 0 96px; position: relative; overflow: hidden; isolation: isolate;
}
@media (min-width: 768px) { .page-header { padding: 112px 0 120px; } }
.hero-aurora { position: absolute; border-radius: 50%; filter: blur(80px); pointer-events: none; z-index: 0; mix-blend-mode: screen; }
.hero-aurora-1 { width: 520px; height: 520px; background: radial-gradient(circle, rgba(242, 213, 153, .45), transparent 60%); top: -160px; right: -120px; animation: aurora 18s ease-in-out infinite; }
.hero-aurora-2 { width: 460px; height: 460px; background: radial-gradient(circle, rgba(74, 82, 168, .55), transparent 60%); bottom: -200px; left: -100px; animation: aurora 22s ease-in-out infinite reverse; }
.hero-aurora-3 { width: 320px; height: 320px; background: radial-gradient(circle, rgba(242, 213, 153, .30), transparent 60%); top: 40%; left: 35%; animation: glowPulse 8s ease-in-out infinite; }
.page-header::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,.08) 1px, transparent 1px);
  background-size: 28px 28px; pointer-events: none; z-index: 0;
  mask-image: radial-gradient(ellipse 70% 70% at 50% 40%, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 40%, black 30%, transparent 75%);
}
.page-header .container { z-index: 1; }

.kicker {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 24px; padding: 8px 14px;
  background: rgba(242, 213, 153, .10); border: 1px solid rgba(242, 213, 153, .25);
  border-radius: 999px; backdrop-filter: blur(8px); animation: fadeInUp .7s var(--ease-out) both;
}
.kicker::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 8px var(--gold); animation: glowPulse 2.5s ease-in-out infinite; }
.kicker-sm { font-size: 11px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }

.page-header h1 {
  font-size: clamp(2rem, 4.5vw, 3.6rem); font-weight: 700; letter-spacing: -0.03em;
  line-height: 1.05; color: var(--white); max-width: 22ch; margin-bottom: 20px;
  animation: fadeInUp .8s .1s var(--ease-out) both;
}
.page-header h1 .text-muted { color: rgba(255, 255, 255, .55); font-weight: 500; display: inline-block; }
.subtitle {
  font-size: clamp(1rem, 1.4vw, 1.15rem); line-height: 1.65;
  color: rgba(255, 255, 255, .72); max-width: 56ch;
  animation: fadeInUp .8s .2s var(--ease-out) both;
}

.hero-stats { display: flex; gap: 14px; margin-top: 36px; flex-wrap: wrap; animation: fadeInUp .8s .3s var(--ease-out) both; }
.hero-stat {
  display: flex; flex-direction: column; gap: 2px; padding: 14px 20px;
  background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .10);
  border-radius: 12px; backdrop-filter: blur(12px);
  transition: all var(--duration-base) var(--ease-out);
}
.hero-stat:hover { background: rgba(255, 255, 255, .08); border-color: rgba(242, 213, 153, .4); transform: translateY(-2px); }
.hero-stat-value { font-size: 22px; font-weight: 700; color: var(--gold); letter-spacing: -.02em; font-variant-numeric: tabular-nums; line-height: 1.1; }
.hero-stat-label { font-size: 11px; font-weight: 500; color: rgba(255, 255, 255, .55); text-transform: uppercase; letter-spacing: .12em; }

.countdown-pill {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 28px;
  padding: 10px 16px; border-radius: 999px;
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12);
  font-size: 13px; color: rgba(255, 255, 255, .82); backdrop-filter: blur(8px);
}
.countdown-pill strong { color: var(--gold); font-weight: 600; }
.countdown-pill::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 10px var(--gold); animation: pulseDot 2s ease-in-out infinite; }

.page-header::after {
  content: ""; position: absolute; bottom: 0; left: 0; right: 0; height: 80px;
  background: linear-gradient(to bottom, transparent, var(--white)); pointer-events: none; z-index: 1;
}

/* ───────── MAIN ───────── */
main { padding: 48px 0 80px; background: linear-gradient(180deg, #fff 0%, #fbf9f6 100%); }
.section-title { font-size: 24px; font-weight: 700; color: var(--brand-blue); margin-bottom: 6px; letter-spacing: -.02em; }
.section-subtitle { color: var(--muted); font-size: 14px; margin-bottom: 24px; }

/* ───────── CARD ───────── */
.card {
  background: var(--white); border: 1px solid rgba(221, 214, 205, .55);
  border-radius: 18px; overflow: hidden;
  transition: border-color var(--duration-base), box-shadow var(--duration-base), transform var(--duration-base);
}
.card:hover { border-color: rgba(242, 213, 153, .5); box-shadow: var(--shadow-md); }
.card-body { padding: 24px; }
@media (min-width: 768px) { .card-body { padding: 28px; } }
.card-title { font-size: 16px; font-weight: 600; color: var(--brand-blue); margin-bottom: 4px; }
.card-subtitle { font-size: 13px; color: var(--muted); margin-bottom: 18px; }

/* ───────── FORM ───────── */
.form-grid {
  display: grid; grid-template-columns: 1fr; gap: 20px;
}
@media (min-width: 900px) { .form-grid { grid-template-columns: 1fr 1fr; gap: 24px; } }

.field-group { display: flex; flex-direction: column; gap: 14px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field-row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; }
@media (max-width: 640px) { .field-row, .field-row-3 { grid-template-columns: 1fr; } }

.field { display: flex; flex-direction: column; gap: 6px; }
.field label {
  font-size: 12px; font-weight: 600; color: var(--brand-blue);
  letter-spacing: .04em; text-transform: uppercase;
}
.field label .req { color: var(--gold-dark); margin-left: 2px; }
.field input,
.field select,
.field textarea {
  width: 100%; padding: 11px 13px; font-size: 14px; color: var(--ink);
  background: var(--white); border: 1px solid var(--beige-dark); border-radius: 10px;
  transition: all 150ms var(--ease-out);
  font-variant-numeric: tabular-nums;
}
.field input:hover,
.field select:hover,
.field textarea:hover { border-color: rgba(34, 40, 120, .35); }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none; border-color: var(--brand-blue);
  box-shadow: 0 0 0 4px rgba(34, 40, 120, .08);
}
.field input::placeholder, .field textarea::placeholder { color: #9aa0ad; }
.field-hint { font-size: 11px; color: var(--muted); }

/* ───────── LINE ITEMS ───────── */
.lines-table {
  display: grid; gap: 10px; margin-top: 8px;
}
.lines-head, .line-row {
  display: grid;
  grid-template-columns: 1fr 90px 110px 90px 110px 36px;
  gap: 8px; align-items: center;
}
.lines-head {
  font-size: 11px; font-weight: 600; color: var(--muted);
  letter-spacing: .08em; text-transform: uppercase;
  padding: 0 4px;
}
.line-row {
  background: var(--beige-light); border: 1px solid rgba(221, 214, 205, .6);
  border-radius: 12px; padding: 10px;
  transition: all 150ms var(--ease-out); animation: fadeInUp .25s var(--ease-out) both;
}
.line-row:hover { border-color: rgba(34, 40, 120, .25); background: #fbf9f6; }
.line-row input, .line-row select {
  padding: 8px 10px; font-size: 13px;
  background: var(--white); border: 1px solid var(--beige-dark);
  border-radius: 8px; width: 100%;
}
.line-row input:focus { border-color: var(--brand-blue); outline: none; box-shadow: 0 0 0 3px rgba(34, 40, 120, .08); }
.line-row-amount {
  font-weight: 600; color: var(--brand-blue); font-variant-numeric: tabular-nums;
  text-align: right; padding-right: 4px; font-size: 13px;
}
.btn-icon {
  width: 32px; height: 32px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center;
  background: var(--white); border: 1px solid var(--beige-dark); color: var(--muted);
  transition: all 150ms var(--ease-out); cursor: pointer;
}
.btn-icon:hover { background: var(--error-light); border-color: var(--error); color: var(--error); }
.add-line {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; color: var(--brand-blue);
  padding: 10px 16px; border-radius: 10px;
  background: var(--white); border: 1px dashed rgba(34, 40, 120, .35);
  transition: all 150ms var(--ease-out); margin-top: 4px;
}
.add-line:hover { background: var(--beige-light); border-style: solid; border-color: var(--brand-blue); }
@media (max-width: 768px) {
  .lines-head { display: none; }
  .line-row { grid-template-columns: 1fr; gap: 6px; padding: 14px; }
  .line-row-amount { text-align: left; padding-right: 0; padding-top: 4px; border-top: 1px solid var(--beige-dark); }
}

/* ───────── TOTALS PANEL ───────── */
.totals-panel {
  background: linear-gradient(160deg, #ffffff 0%, var(--beige-light) 100%);
  border: 1px solid var(--beige-dark); border-radius: 16px; padding: 22px;
  position: sticky; top: 92px;
}
.totals-row {
  display: flex; justify-content: space-between; padding: 8px 0;
  font-size: 14px; color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.totals-row span:last-child { font-weight: 600; }
.totals-divider { border-top: 1px solid var(--beige-dark); margin: 8px 0; }
.totals-grand {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-top: 10px; padding: 14px 16px;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
  border-radius: 12px;
  font-variant-numeric: tabular-nums;
}
.totals-grand .label { font-size: 12px; font-weight: 600; color: var(--brand-blue); letter-spacing: .08em; text-transform: uppercase; }
.totals-grand .value { font-size: 22px; font-weight: 700; color: var(--brand-blue); letter-spacing: -.02em; }
.profile-pill {
  display: inline-flex; gap: 6px; align-items: center;
  font-size: 11px; font-weight: 600; padding: 4px 10px; border-radius: 999px;
  background: rgba(34, 40, 120, .08); color: var(--brand-blue);
  letter-spacing: .06em; text-transform: uppercase;
}

/* ───────── GENERATE BUTTON BAR ───────── */
.cta-bar {
  margin-top: 24px; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  flex-wrap: wrap;
}
.cta-bar .hint { color: var(--muted); font-size: 13px; max-width: 36ch; }

/* ───────── LOADING OVERLAY ───────── */
.loading-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(10, 13, 40, .78); backdrop-filter: blur(10px);
  display: flex; align-items: center; justify-content: center;
  animation: fadeIn .25s var(--ease-out) both;
}
.loading-card {
  background: var(--white); border-radius: 20px; padding: 40px 48px;
  box-shadow: var(--shadow-lg); max-width: 460px; width: calc(100% - 32px);
  text-align: center;
}
.loading-spinner {
  width: 64px; height: 64px; margin: 0 auto 20px;
  border: 4px solid var(--beige-medium); border-top-color: var(--gold);
  border-radius: 50%; animation: spin 1s linear infinite;
}
.loading-title { font-size: 18px; font-weight: 700; color: var(--brand-blue); margin-bottom: 16px; }
.loading-steps { display: flex; flex-direction: column; gap: 10px; text-align: left; }
.loading-step {
  display: flex; align-items: center; gap: 12px;
  font-size: 13px; color: var(--muted);
  padding: 10px 12px; border-radius: 8px;
  background: var(--beige-light); transition: all 200ms var(--ease-out);
}
.loading-step.active { background: var(--brand-blue); color: var(--white); }
.loading-step.done { background: var(--success-light); color: var(--success); }
.loading-step .icon {
  width: 18px; height: 18px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, .15); flex-shrink: 0; font-size: 11px;
}
.loading-step.done .icon { background: var(--success); color: var(--white); }
.loading-step.active .icon { background: var(--gold); color: var(--brand-blue); }

/* ───────── RESULT PANEL ───────── */
#result { display: none; animation: fadeInUp .5s var(--ease-out) both; }
.result-header {
  text-align: center; padding: 32px 24px;
  background: linear-gradient(160deg, #ffffff 0%, var(--beige-light) 100%);
  border-radius: 22px; border: 1px solid var(--beige-dark); margin-bottom: 24px;
  position: relative; overflow: hidden;
}
.result-header.success::before {
  content: ""; position: absolute; top: -100px; right: -100px;
  width: 360px; height: 360px; border-radius: 50%;
  background: radial-gradient(circle, rgba(242, 213, 153, .35), transparent 60%);
  filter: blur(40px); animation: aurora 18s ease-in-out infinite;
}
.result-icon {
  width: 80px; height: 80px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
  font-size: 38px;
  position: relative; z-index: 1;
  animation: pop .5s var(--ease-out) both;
}
.result-icon.success {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
  color: var(--brand-blue);
  box-shadow: 0 0 0 6px rgba(242, 213, 153, .25), var(--shadow-glow-gold);
}
.result-icon.error {
  background: linear-gradient(135deg, #FCA5A5 0%, #FECACA 100%);
  color: var(--error);
  box-shadow: 0 0 0 6px rgba(220, 38, 38, .15);
}
.result-title { font-size: 26px; font-weight: 700; color: var(--brand-blue); letter-spacing: -.02em; margin-bottom: 6px; position: relative; z-index: 1; }
.result-subtitle { color: var(--muted); font-size: 14px; max-width: 48ch; margin: 0 auto; position: relative; z-index: 1; }
.result-meta {
  display: inline-flex; gap: 14px; margin-top: 18px; flex-wrap: wrap; justify-content: center;
  position: relative; z-index: 1;
}
.result-meta-item {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--white); border: 1px solid var(--beige-dark);
  padding: 8px 14px; border-radius: 999px;
  font-size: 13px; color: var(--muted); font-weight: 500;
}
.result-meta-item strong { color: var(--brand-blue); font-weight: 600; font-variant-numeric: tabular-nums; }

.result-actions {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px; margin: 24px 0;
}

/* Validation report */
.validation-report { margin-top: 24px; }
.validation-summary {
  display: flex; gap: 12px; align-items: center; flex-wrap: wrap;
  padding: 18px 22px; border-radius: 16px;
  background: var(--beige-light); border: 1px solid var(--beige-dark);
}
.validation-summary.success { background: var(--success-light); border-color: rgba(22, 163, 74, .25); }
.validation-summary.error { background: var(--error-light); border-color: rgba(220, 38, 38, .25); }
.severity-badge {
  display: inline-flex; gap: 6px; align-items: center;
  font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px;
  letter-spacing: .04em; text-transform: uppercase;
}
.severity-badge.error { background: var(--error-light); color: var(--error); border: 1px solid rgba(220, 38, 38, .25); }
.severity-badge.warning { background: var(--warning-light); color: var(--warning); border: 1px solid rgba(217, 119, 6, .25); }
.severity-badge.info { background: #E0F2FE; color: var(--info); border: 1px solid rgba(37, 99, 235, .25); }
.severity-badge.success { background: var(--success-light); color: var(--success); border: 1px solid rgba(22, 163, 74, .25); }

.findings-list {
  display: flex; flex-direction: column; gap: 8px; margin-top: 18px;
}
.finding {
  display: flex; gap: 12px; padding: 14px 16px;
  background: var(--white); border: 1px solid var(--beige-dark); border-radius: 12px;
  font-size: 13px;
}
.finding-content { flex: 1; min-width: 0; }
.finding-rule { font-weight: 600; color: var(--brand-blue); margin-bottom: 2px; font-size: 13px; }
.finding-message { color: var(--muted); }
.finding-field { font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 11px; color: var(--brand-blue-light); margin-top: 2px; }

.toggle-passed {
  margin-top: 10px; font-size: 13px; color: var(--brand-blue);
  background: none; padding: 6px 0; cursor: pointer; display: inline-flex; gap: 6px; align-items: center;
}
.toggle-passed:hover { text-decoration: underline; }

/* XML preview */
.xml-preview {
  margin-top: 24px;
  background: #0d1033; color: #cdd6f4; border-radius: 14px; padding: 18px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px; line-height: 1.5; max-height: 320px; overflow: auto;
  border: 1px solid #2d3470;
  white-space: pre-wrap; word-break: break-word;
}

/* ───────── CTA BANNER ───────── */
.cta-banner {
  margin-top: 64px;
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-mid), var(--gradient-end));
  color: var(--white); padding: 48px 28px; border-radius: 24px;
  position: relative; overflow: hidden; isolation: isolate;
  text-align: center;
}
.cta-banner::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 22px 22px; opacity: .9; z-index: 0;
  mask-image: radial-gradient(ellipse 60% 60% at 50% 50%, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 60% 60% at 50% 50%, black 30%, transparent 75%);
}
.cta-banner::after {
  content: ""; position: absolute; top: -100px; right: -80px;
  width: 360px; height: 360px; border-radius: 50%;
  background: radial-gradient(circle, rgba(242, 213, 153, .25), transparent 60%);
  filter: blur(50px); animation: aurora 20s ease-in-out infinite; z-index: 0;
}
.cta-banner > * { position: relative; z-index: 1; }
.cta-banner h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 700;
  margin-bottom: 12px; letter-spacing: -.02em;
}
.cta-banner p { color: rgba(255, 255, 255, .72); max-width: 56ch; margin: 0 auto 24px; }
.cta-banner-actions { display: inline-flex; gap: 12px; flex-wrap: wrap; justify-content: center; }

/* ───────── FOOTER ───────── */
footer {
  background: var(--brand-blue-dark); color: rgba(255, 255, 255, .7);
  padding: 48px 0 24px;
}
.footer-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 32px; margin-bottom: 32px;
}
.footer-col h4 { font-size: 12px; font-weight: 700; color: var(--gold); letter-spacing: .12em; text-transform: uppercase; margin-bottom: 12px; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 8px; font-size: 14px; }
.footer-col a:hover { color: var(--gold); }
.footer-logo img { height: 30px; margin-bottom: 12px; filter: brightness(0) invert(1); }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .1); padding-top: 16px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  font-size: 12px; color: rgba(255, 255, 255, .5);
}

/* ───────── HIDDEN ───────── */
.hidden { display: none !important; }

/* ───────── SCROLLBAR ───────── */
.xml-preview::-webkit-scrollbar { width: 8px; height: 8px; }
.xml-preview::-webkit-scrollbar-track { background: transparent; }
.xml-preview::-webkit-scrollbar-thumb { background: #2d3470; border-radius: 4px; }
.xml-preview::-webkit-scrollbar-thumb:hover { background: var(--brand-blue-light); }
