/* =========================================
   Scanter Web v2 — Design System
   ========================================= */

@font-face {
  font-family: 'Lufga';
  src: url('fonts/LufgaRegular.ttf') format('truetype');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Lufga';
  src: url('fonts/LufgaMedium.ttf') format('truetype');
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: 'Lufga';
  src: url('fonts/LufgaSemiBold.ttf') format('truetype');
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: 'Lufga';
  src: url('fonts/LufgaBold.ttf') format('truetype');
  font-weight: 700;
  font-display: swap;
}

:root {
  --brand-primary: #783D64;
  --brand-dark: #582A48;
  --brand-darker: #37182D;
  --brand-light: #9F5B86;
  --gradient-hero: linear-gradient(135deg, #37182D 0%, #582A48 50%, #783D64 100%);
  --gradient-cta: linear-gradient(135deg, #582A48 0%, #783D64 100%);

  --ink-900: #0E0A0C;
  --ink-700: #2D2329;
  --ink-500: #6B5F65;
  --ink-300: #B5ACB1;
  --ink-200: #D9D2D6;
  --ink-100: #ECE6EA;

  --surface-0: #FFFFFF;
  --surface-50: #FAF7F9;
  --surface-100: #F2EEF1;

  --accent-pdf: #BF0000;
  --accent-word: #2A5698;
  --accent-excel: #1E6E42;
  --accent-success: #1E6E42;
  --accent-danger: #BF0000;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-2xl: 32px;

  --shadow-sm: 0 1px 2px rgba(20, 10, 15, 0.05);
  --shadow-md: 0 4px 12px rgba(20, 10, 15, 0.08);
  --shadow-lg: 0 20px 40px rgba(55, 24, 45, 0.12);
  --shadow-glow: 0 0 60px rgba(120, 61, 100, 0.25);

  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px;
  --space-5: 24px; --space-6: 32px; --space-7: 48px; --space-8: 64px;
  --space-9: 96px; --space-10: 128px;

  --font-serif: 'Instrument Serif', 'Georgia', serif;
  --font-sans: 'Lufga', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;

  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink-700);
  background: var(--surface-0);
  min-height: 100vh;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, textarea { font-family: inherit; font-size: inherit; }

/* Typography */
.h-display {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(48px, 6vw, 88px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  color: var(--ink-900);
}
.h-display em { font-style: italic; font-weight: 400; }
.h1 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(36px, 4vw, 56px);
  line-height: 1.1;
  letter-spacing: -0.015em;
  color: var(--ink-900);
}
.h1 em { font-style: italic; }
.h2 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--ink-900);
}
.h2 em { font-style: italic; }
.h3 {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 20px;
  line-height: 1.3;
  color: var(--ink-900);
}
.eyebrow {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-primary);
}
.lead {
  font-size: clamp(18px, 1.5vw, 20px);
  line-height: 1.55;
  color: var(--ink-500);
}

/* Layout */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-5);
}

/* =========================================
   NAVBAR
   ========================================= */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s var(--ease);
}
.nav.is-scrolled { border-bottom-color: var(--ink-100); }
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-5);
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-weight: 600;
  font-size: 18px;
  color: var(--ink-900);
}
.nav-brand-dot {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--gradient-cta);
}
.nav-links {
  display: flex;
  gap: var(--space-6);
  list-style: none;
}
.nav-links a {
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-700);
  transition: color 0.15s var(--ease);
}
.nav-links a:hover { color: var(--brand-primary); }
.nav-actions { display: flex; gap: var(--space-3); align-items: center; }

/* On dark hero, navbar adapts via inverted class */
.nav.is-inverted { background: transparent; backdrop-filter: none; }
.nav.is-inverted .nav-brand,
.nav.is-inverted .nav-links a { color: rgba(255,255,255,0.92); }
.nav.is-inverted .nav-links a:hover { color: #fff; }

/* Mobile menu */
.nav-toggle { display: none; }

/* =========================================
   BUTTONS
   ========================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  height: 44px;
  padding: 0 var(--space-5);
  font-size: 15px;
  font-weight: 500;
  border-radius: var(--radius-md);
  transition: transform 0.15s var(--ease), box-shadow 0.15s var(--ease), background 0.15s var(--ease);
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--gradient-cta);
  color: #fff;
  box-shadow: var(--shadow-md);
}
.btn-primary:hover { box-shadow: var(--shadow-lg); transform: translateY(-1px); }

.btn-light {
  background: #fff;
  color: var(--ink-900);
  box-shadow: var(--shadow-sm);
}
.btn-light:hover { box-shadow: var(--shadow-md); transform: translateY(-1px); }

.btn-outline {
  background: transparent;
  color: var(--ink-900);
  border: 1px solid var(--ink-200);
}
.btn-outline:hover { border-color: var(--ink-900); background: var(--surface-50); }

.btn-outline-light {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.3);
}
.btn-outline-light:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.5); }

.btn-ghost {
  background: transparent;
  color: var(--ink-900);
}
.btn-ghost:hover { background: var(--surface-100); }

.btn-lg { height: 52px; padding: 0 var(--space-6); font-size: 16px; }
.btn-block { width: 100%; }

/* =========================================
   HERO
   ========================================= */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--gradient-hero);
  color: #fff;
  padding: var(--space-9) 0 var(--space-10);
  margin-top: -72px;
  padding-top: calc(var(--space-9) + 72px);
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(255,255,255,0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(159,91,134,0.20) 0%, transparent 50%);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' /%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.04 0' /%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  pointer-events: none;
}
.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
  align-items: center;
}
@media (min-width: 960px) {
  .hero-inner { grid-template-columns: 1.1fr 0.9fr; gap: var(--space-7); }
}

.hero h1 {
  color: #fff;
  margin-bottom: var(--space-5);
}
.hero-sub {
  font-size: clamp(18px, 1.5vw, 21px);
  line-height: 1.55;
  color: rgba(255,255,255,0.82);
  margin-bottom: var(--space-6);
  max-width: 540px;
}
.hero-actions { display: flex; gap: var(--space-3); flex-wrap: wrap; }

.hero-mockup {
  position: relative;
  perspective: 1200px;
}
.mockup-card {
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-xl);
  padding: var(--space-5);
  box-shadow: var(--shadow-glow), 0 24px 48px rgba(0,0,0,0.25);
  transform: rotate(-1.5deg);
  transition: transform 0.5s var(--ease);
}
.mockup-card:hover { transform: rotate(0deg) translateY(-4px); }
.mockup-window {
  background: #fff;
  border-radius: var(--radius-md);
  padding: var(--space-3) var(--space-4);
  color: var(--ink-700);
}
.mockup-row {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--ink-100);
}
.mockup-row:last-child { border-bottom: none; }
.mockup-file-icon {
  width: 32px;
  height: 40px;
  border-radius: 4px;
  display: flex;
  align-items: end;
  justify-content: center;
  font-size: 9px;
  font-weight: 700;
  color: #fff;
  padding-bottom: 4px;
}
.mockup-file-icon.pdf { background: var(--accent-pdf); }
.mockup-file-icon.docx { background: var(--accent-word); }
.mockup-file-icon.xlsx { background: var(--accent-excel); }
.mockup-arrow { color: var(--ink-300); flex-shrink: 0; }
.mockup-status {
  margin-left: auto;
  font-size: 13px;
  font-weight: 500;
  color: var(--accent-success);
  display: flex;
  align-items: center;
  gap: 6px;
}

/* =========================================
   SECTION
   ========================================= */
.section { padding: var(--space-9) 0; }
.section-alt { background: var(--surface-50); }
.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto var(--space-7);
}
.section-head .eyebrow { margin-bottom: var(--space-3); }
.section-head .h2 { margin-bottom: var(--space-3); }

/* Features grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-5);
}
.feature-card {
  background: #fff;
  border: 1px solid var(--ink-100);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s var(--ease);
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--surface-100);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-4);
  color: var(--brand-primary);
}
.feature-card h3 { margin-bottom: var(--space-2); }
.feature-card p { color: var(--ink-500); font-size: 15px; }

/* Showcase rows */
.showcase {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-7);
  align-items: center;
  margin-bottom: var(--space-9);
}
@media (min-width: 960px) {
  .showcase { grid-template-columns: 1fr 1fr; gap: var(--space-8); }
  .showcase.reverse > div:first-child { order: 2; }
}
.showcase:last-child { margin-bottom: 0; }
.showcase h2 { margin-bottom: var(--space-4); }
.showcase p { color: var(--ink-500); margin-bottom: var(--space-5); }
.showcase-visual {
  background: #fff;
  border: 1px solid var(--ink-100);
  border-radius: var(--radius-2xl);
  padding: var(--space-6);
  box-shadow: var(--shadow-lg);
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* CTA section */
.cta-card {
  background: var(--gradient-cta);
  color: #fff;
  border-radius: var(--radius-2xl);
  padding: var(--space-9) var(--space-6);
  text-align: center;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}
.cta-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(255,255,255,0.15) 0%, transparent 60%);
  pointer-events: none;
}
.cta-card .h1 { color: #fff; margin-bottom: var(--space-3); position: relative; }
.cta-card p { color: rgba(255,255,255,0.82); margin-bottom: var(--space-5); position: relative; max-width: 520px; margin-left: auto; margin-right: auto; }
.cta-card .btn { position: relative; }

/* =========================================
   FOOTER
   ========================================= */
.footer {
  background: var(--ink-900);
  color: rgba(255,255,255,0.6);
  padding: var(--space-8) 0 var(--space-6);
  font-size: 14px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: var(--space-6);
  margin-bottom: var(--space-7);
}
@media (max-width: 720px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
.footer-brand { color: #fff; font-weight: 600; margin-bottom: var(--space-3); display: flex; align-items: center; gap: var(--space-2); font-size: 18px; }
.footer-col h4 { color: #fff; font-size: 13px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: var(--space-3); }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: var(--space-2); }
.footer-col a { color: rgba(255,255,255,0.6); transition: color 0.15s var(--ease); }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: var(--space-5);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-3);
}

/* =========================================
   AUTH (split-screen)
   ========================================= */
.auth-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr;
}
@media (min-width: 960px) {
  .auth-page { grid-template-columns: 1fr 1fr; }
}
.auth-side {
  background: var(--gradient-hero);
  color: #fff;
  padding: var(--space-8) var(--space-7);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  display: none;
}
@media (min-width: 960px) { .auth-side { display: flex; } }
.auth-side::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 70%, rgba(255,255,255,0.08) 0%, transparent 50%);
  pointer-events: none;
}
.auth-side > * { position: relative; z-index: 1; }
.auth-side-brand { display: flex; align-items: center; gap: var(--space-3); font-size: 20px; font-weight: 600; }
.auth-side-brand .nav-brand-dot { width: 36px; height: 36px; }
.auth-side-quote { font-family: var(--font-serif); font-size: 32px; line-height: 1.25; font-weight: 400; }
.auth-side-quote em { font-style: italic; }
.auth-side-bullets { list-style: none; display: flex; flex-direction: column; gap: var(--space-3); }
.auth-side-bullets li { display: flex; gap: var(--space-3); align-items: start; color: rgba(255,255,255,0.85); font-size: 15px; }
.auth-side-bullets li::before {
  content: '';
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  display: inline-block;
  flex-shrink: 0;
  margin-top: 2px;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='12' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5 12l5 5L20 7' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}

.auth-main {
  padding: var(--space-8) var(--space-5);
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--surface-0);
}
.auth-card {
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
}
.auth-mobile-brand {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-7);
  font-weight: 600;
  font-size: 18px;
  color: var(--ink-900);
}
@media (min-width: 960px) { .auth-mobile-brand { display: none; } }
.auth-tabs {
  display: flex;
  gap: var(--space-1);
  background: var(--surface-100);
  padding: 4px;
  border-radius: var(--radius-md);
  margin-bottom: var(--space-6);
}
.auth-tab {
  flex: 1;
  height: 36px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-500);
  transition: all 0.2s var(--ease);
}
.auth-tab.is-active {
  background: #fff;
  color: var(--ink-900);
  box-shadow: var(--shadow-sm);
}
.auth-card h1 { margin-bottom: var(--space-2); }
.auth-card .lead { margin-bottom: var(--space-6); }

/* Forms */
.field { margin-bottom: var(--space-4); }
.field label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-700);
  margin-bottom: 6px;
}
.field-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.field-row label { margin-bottom: 0; }
.field-row a { font-size: 13px; color: var(--brand-primary); }
.input {
  width: 100%;
  height: 48px;
  padding: 0 var(--space-4);
  background: var(--surface-0);
  border: 1px solid var(--ink-200);
  border-radius: var(--radius-md);
  font-size: 15px;
  color: var(--ink-900);
  transition: border-color 0.15s var(--ease), box-shadow 0.15s var(--ease);
}
.input::placeholder { color: var(--ink-300); }
.input:focus { outline: none; border-color: var(--brand-primary); box-shadow: 0 0 0 4px rgba(120,61,100,0.10); }
.input.has-error { border-color: var(--accent-danger); }

.field-help { font-size: 13px; color: var(--ink-500); margin-top: 6px; }
.field-error { font-size: 13px; color: var(--accent-danger); margin-top: 6px; display: none; }
.field-error.is-visible { display: block; }

.auth-divider {
  position: relative;
  text-align: center;
  margin: var(--space-5) 0;
  font-size: 13px;
  color: var(--ink-500);
}
.auth-divider::before, .auth-divider::after {
  content: '';
  position: absolute;
  top: 50%;
  width: calc(50% - 30px);
  height: 1px;
  background: var(--ink-100);
}
.auth-divider::before { left: 0; }
.auth-divider::after { right: 0; }

.auth-foot { text-align: center; margin-top: var(--space-5); font-size: 14px; color: var(--ink-500); }
.auth-foot a { color: var(--brand-primary); font-weight: 500; }

/* =========================================
   APP / TOOLS
   ========================================= */
.app-shell {
  display: grid;
  grid-template-columns: 1fr;
  min-height: calc(100vh - 72px);
  background: var(--surface-50);
}
@media (min-width: 960px) {
  .app-shell { grid-template-columns: 260px 1fr; }
}
.app-sidebar {
  background: #fff;
  border-right: 1px solid var(--ink-100);
  padding: var(--space-5);
  overflow-y: auto;
}
.sidebar-group { margin-bottom: var(--space-5); }
.sidebar-group h5 {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-500);
  margin-bottom: var(--space-2);
  padding: 0 var(--space-2);
}
.sidebar-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: 10px var(--space-3);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-700);
  cursor: pointer;
  transition: background 0.15s var(--ease), color 0.15s var(--ease);
}
.sidebar-item:hover { background: var(--surface-100); }
.sidebar-item.is-active { background: var(--surface-100); color: var(--brand-primary); }
.sidebar-item-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ink-200);
}
.sidebar-item.is-active .sidebar-item-dot { background: var(--brand-primary); }

.app-main { padding: var(--space-7) var(--space-6); max-width: 1080px; width: 100%; margin: 0 auto; }
.tool-header { margin-bottom: var(--space-6); }
.tool-header .eyebrow { margin-bottom: var(--space-2); }
.tool-header h1 { margin-bottom: var(--space-2); }
.tool-header p { color: var(--ink-500); font-size: 16px; }

.dropzone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 2px dashed var(--ink-200);
  border-radius: var(--radius-xl);
  background: #fff;
  padding: var(--space-8) var(--space-5);
  text-align: center;
  cursor: pointer;
  width: 100%;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}
.dropzone > * { max-width: 480px; }
.dropzone:hover, .dropzone.is-dragover {
  border-color: var(--brand-primary);
  background: rgba(120,61,100,0.03);
}
.dropzone-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto var(--space-4);
  border-radius: var(--radius-md);
  background: var(--surface-100);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-primary);
}
.dropzone-title { font-size: 18px; font-weight: 500; color: var(--ink-900); margin-bottom: 4px; }
.dropzone-sub { font-size: 14px; color: var(--ink-500); margin-bottom: var(--space-4); }
.dropzone-help { font-size: 12px; color: var(--ink-300); margin-top: var(--space-3); }
.dropzone input[type=file] { display: none; }

.file-list { margin-top: var(--space-5); }
.file-list-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  background: #fff;
  border: 1px solid var(--ink-100);
  border-radius: var(--radius-md);
  padding: var(--space-3) var(--space-4);
  margin-bottom: var(--space-2);
}
.file-list-item .mockup-file-icon { width: 28px; height: 36px; font-size: 8px; }
.file-list-name { font-size: 14px; font-weight: 500; color: var(--ink-900); flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-list-size { font-size: 12px; color: var(--ink-500); }
.file-list-remove {
  width: 28px; height: 28px;
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  color: var(--ink-300);
  transition: color 0.15s, background 0.15s;
}
.file-list-remove:hover { background: var(--surface-100); color: var(--accent-danger); }

.result-card {
  margin-top: var(--space-5);
  background: #fff;
  border: 1px solid var(--ink-100);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  display: none;
}
.result-card.is-visible { display: block; }
.result-card.is-success { border-color: rgba(30,110,66,0.2); background: rgba(30,110,66,0.04); }
.result-card.is-error { border-color: rgba(191,0,0,0.2); background: rgba(191,0,0,0.04); }
.result-card-head { display: flex; align-items: center; gap: var(--space-3); margin-bottom: var(--space-3); }
.result-card-status { font-weight: 500; font-size: 15px; color: var(--ink-900); }

.progress {
  height: 4px;
  background: var(--ink-100);
  border-radius: 2px;
  overflow: hidden;
  margin: var(--space-3) 0;
}
.progress-bar { height: 100%; background: var(--gradient-cta); transition: width 0.2s linear; width: 0%; }

/* =========================================
   ADMIN
   ========================================= */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-4);
  margin-bottom: var(--space-7);
}
.stat-card {
  background: #fff;
  border: 1px solid var(--ink-100);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
}
.stat-label { font-size: 13px; color: var(--ink-500); margin-bottom: var(--space-2); font-weight: 500; }
.stat-value { font-family: var(--font-serif); font-size: 40px; line-height: 1; color: var(--ink-900); }
.stat-trend { font-size: 13px; margin-top: var(--space-2); color: var(--accent-success); }

.table-card {
  background: #fff;
  border: 1px solid var(--ink-100);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.table-head { padding: var(--space-4) var(--space-5); border-bottom: 1px solid var(--ink-100); display: flex; align-items: center; justify-content: space-between; }
.table-head h3 { font-size: 16px; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th, .table td { padding: var(--space-3) var(--space-5); text-align: left; }
.table th { color: var(--ink-500); font-weight: 500; font-size: 12px; text-transform: uppercase; letter-spacing: 0.05em; border-bottom: 1px solid var(--ink-100); }
.table tbody tr { transition: background 0.15s; }
.table tbody tr:hover { background: var(--surface-50); }
.table tbody tr + tr td { border-top: 1px solid var(--ink-100); }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
}
.badge.is-success { background: rgba(30,110,66,0.12); color: var(--accent-success); }
.badge.is-pending { background: rgba(255,165,0,0.12); color: #B07000; }
.badge.is-failed { background: rgba(191,0,0,0.12); color: var(--accent-danger); }

/* =========================================
   TOAST
   ========================================= */
.toast {
  position: fixed;
  bottom: var(--space-5);
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--ink-900);
  color: #fff;
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  font-size: 14px;
  font-weight: 500;
  opacity: 0;
  transition: all 0.25s var(--ease);
  z-index: 1000;
  max-width: 90vw;
}
.toast.is-visible { transform: translateX(-50%) translateY(0); opacity: 1; }
.toast.is-success { background: var(--accent-success); }
.toast.is-error { background: var(--accent-danger); }

/* =========================================
   UTIL
   ========================================= */
.text-center { text-align: center; }
.hidden { display: none !important; }
.spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 720px) {
  .nav-links { display: none; }
  .nav-actions .btn-ghost { display: none; }
  .hero { padding: var(--space-7) 0 var(--space-8); padding-top: calc(var(--space-7) + 72px); }
  .hero-mockup { display: none; }
  .section { padding: var(--space-7) 0; }
  .footer-grid { gap: var(--space-5); }
}
