/* ═══════════════════════════════════════
   Autojupakka.fi — Warm Editorial Theme
   Font: Schibsted Grotesk
   Palette: cream / vermillion / stone
   ═══════════════════════════════════════ */

:root {
  --font: 'Schibsted Grotesk', 'Segoe UI', sans-serif;
  --accent: #d64933;
  --accent-hover: #be3e2b;
  --accent-subtle: #fdf0ed;
  --accent-glow: rgba(214,73,51,.25);
  --store: #5572f0;

  --bg: #f4f4f2;
  --bg-alt: #eaeae8;
  --surface: #ffffff;
  --hero-bg: #252526;
  --hero-bg-lighter: #343435;

  --text: #1a1a1b;
  --text-2: #515155;
  --text-3: #89898b;
  --border: #dcdcdb;
  --border-light: #e9e9e8;

  --success: #2d7a4f;
  --success-bg: #e8f5ee;
  --warning: #c2800e;
  --warning-bg: #fef6e6;
  --danger: #c53030;
  --danger-bg: #fef0f0;

  --shadow-sm: 0 1px 3px rgba(0,0,0,.05);
  --shadow-md: 0 4px 12px rgba(0,0,0,.07);
  --shadow-lg: 0 12px 28px rgba(0,0,0,.09);
  --shadow-warm: 0 4px 16px rgba(0,0,0,.06);

  --radius: .625rem;
  --radius-lg: .875rem;
  --radius-xl: 1.125rem;

  --ease: cubic-bezier(.22,1,.36,1);
  --dur: 200ms;
  --dur-slow: 400ms;
}

/* ─── Reset & Base ─── */

*, *::before, *::after { box-sizing: border-box; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  letter-spacing: -.01em;
  line-height: 1.55;
}

::selection {
  background: var(--accent);
  color: #fff;
}

a { color: var(--accent); }
a:hover { color: var(--accent-hover); }

/* ─── Grain overlay ─── */

body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: .28;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.035'/%3E%3C/svg%3E");
}

/* ─── Navbar ─── */

.navbar {
  background: rgba(244,244,242,.92);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  border-bottom: 1px solid var(--border);
  padding: .625rem 0;
  z-index: 1030;
  transition: box-shadow var(--dur) var(--ease);
}

.navbar.scrolled {
  box-shadow: 0 1px 8px rgba(0,0,0,.07);
}

.navbar-brand {
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--text) !important;
  letter-spacing: -.035em;
  display: flex;
  align-items: center;
  gap: .4rem;
  text-decoration: none;
}

.brand-icon { font-size: 1.2rem; }
.brand-dot  { color: var(--accent); }

.navbar .nav-link {
  color: var(--text-2) !important;
  font-weight: 500;
  font-size: .8125rem;
  padding: .4rem .75rem !important;
  border-radius: var(--radius);
  transition: color var(--dur), background var(--dur);
  display: flex;
  align-items: center;
  gap: .35rem;
}
.navbar .nav-link:hover {
  color: var(--text) !important;
  background: var(--bg-alt);
}

.nav-icon { flex-shrink: 0; opacity: .6; }
.user-greeting { color: var(--text) !important; font-weight: 600; }

.btn-ghost {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-2);
  font-family: var(--font);
  font-weight: 600;
  font-size: .8125rem;
  padding: .35rem .875rem;
  border-radius: var(--radius);
  transition: all var(--dur);
  cursor: pointer;
}
.btn-ghost:hover {
  background: var(--bg-alt);
  border-color: var(--text-3);
  color: var(--text);
}

.nav-cta {
  border-radius: var(--radius) !important;
  font-weight: 700 !important;
  font-size: .8125rem !important;
  padding: .375rem 1rem !important;
}

.navbar-toggler {
  border: 1px solid var(--border);
  padding: .35rem .55rem;
  border-radius: var(--radius);
}
.navbar-toggler:focus { box-shadow: 0 0 0 2px var(--accent-subtle); }

/* ─── Buttons ─── */

.btn {
  font-family: var(--font);
  font-weight: 600;
  border-radius: var(--radius);
  transition: all var(--dur) var(--ease);
  letter-spacing: -.005em;
}

.btn-primary {
  background: var(--accent) !important;
  border-color: var(--accent) !important;
  color: #fff !important;
}
.btn-primary:hover, .btn-primary:focus {
  background: var(--accent-hover) !important;
  border-color: var(--accent-hover) !important;
  box-shadow: 0 4px 14px var(--accent-glow);
  transform: translateY(-1px);
}
.btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px var(--accent-glow);
}

.btn-outline-primary {
  color: var(--accent);
  border-color: var(--accent);
}
.btn-outline-primary:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.btn-outline-secondary {
  border-color: var(--border);
  color: var(--text-2);
}
.btn-outline-secondary:hover {
  background: var(--bg-alt);
  border-color: var(--text-3);
  color: var(--text);
}

.btn-lg {
  padding: .75rem 1.75rem;
  font-size: .9375rem;
  border-radius: var(--radius-lg);
}
.btn-sm {
  font-size: .8125rem;
  padding: .35rem .875rem;
}

/* ─── Cards ─── */

.card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg) !important;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--dur-slow) var(--ease),
              border-color var(--dur-slow) var(--ease),
              transform var(--dur-slow) var(--ease);
}

.card-hover {
  position: relative;
  overflow: hidden;
}
.card-hover::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur-slow) var(--ease);
}
.card-hover:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--border);
}
.card-hover:hover::after {
  transform: scaleX(1);
}

/* ─── Hero ─── */

.hero-section {
  background: var(--hero-bg);
  position: relative;
  overflow: hidden;
  padding: 4.5rem 0 5.5rem;
}

.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.7' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)' opacity='.06'/%3E%3C/svg%3E");
  pointer-events: none;
}

.hero-section::after {
  content: '';
  position: absolute;
  top: -4rem;
  right: -2rem;
  width: 28rem;
  height: 28rem;
  background: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 14px,
    rgba(255,255,255,.018) 14px,
    rgba(255,255,255,.018) 15px
  );
  pointer-events: none;
}

.hero-section .container { position: relative; z-index: 1; }

.hero-angle {
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 3.5rem;
  line-height: 0;
  z-index: 2;
}
.hero-angle svg { width: 100%; height: 100%; display: block; }

.hero-label {
  display: inline-block;
  font-size: .6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--accent);
  border-bottom: 2px solid var(--accent);
  padding-bottom: .15rem;
  margin-bottom: 1.5rem;
}

.hero-title {
  font-size: clamp(1.75rem, 4.5vw, 3rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
  letter-spacing: -.04em;
  margin-bottom: 1.25rem;
  max-width: 780px;
}

.hero-title mark {
  background: none;
  color: var(--accent);
  text-decoration-thickness: 3px;
  text-underline-offset: 4px;
  text-decoration-color: rgba(214,73,51,.5);
  padding: 0;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.hero-subtitle {
  font-size: 1.5rem;
  color: rgba(255,255,255,.6);
  line-height: 1.6;
  max-width: 540px;
  margin-bottom: 2rem;
  font-weight: 400;
}

.hero-actions {
  display: flex;
  gap: .75rem;
  flex-wrap: wrap;
}

.hero-actions .btn-primary {
  background: var(--accent) !important;
  border-color: var(--accent) !important;
}
.hero-actions .btn-primary:hover {
  background: #e05640 !important;
  border-color: #e05640 !important;
}

.hero-actions .btn-outline-light {
  border-color: rgba(255,255,255,.2);
  color: rgba(255,255,255,.75);
  background: transparent;
}
.hero-actions .btn-outline-light:hover {
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.35);
  color: #fff;
}

/* ─── Section Headings ─── */

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.section-title {
  font-size: 1.375rem;
  font-weight: 800;
  letter-spacing: -.03em;
  color: var(--text);
  margin: 0;
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 2rem;
  height: 3px;
  background: var(--accent);
  margin-top: .4rem;
  border-radius: 2px;
}

.section-subtitle {
  font-size: .8125rem;
  color: var(--text-3);
  margin: .25rem 0 0;
  font-weight: 400;
}

/* ─── Store Cards ─── */

.store-card {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.store-card .card-body {
  display: flex;
  flex-direction: column;
  padding: 1.375rem 1.5rem;
}

.store-card-name {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
  margin: 0;
  letter-spacing: -.015em;
}

.store-card-meta {
  font-size: .8125rem;
  color: var(--text-2);
  margin: .3rem 0 0;
}

.store-card-desc {
  flex: 1;
  font-size: .8125rem;
  color: var(--text-2);
  line-height: 1.65;
  margin: .75rem 0 0;
}

.store-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1.125rem;
  padding-top: .875rem;
  border-top: 1px solid var(--border-light);
}

.store-card-count {
  font-size: .75rem;
  color: var(--text-3);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .02em;
}

/* ─── Store / dispute loss amounts (replaces rating thumbs) ─── */

.store-card-loss-stack {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-end;
  gap: .25rem;
  padding: .35rem .55rem;
  border-radius: var(--radius);
  background: var(--warning-bg);
  border: 1px solid #e0d8a8;
  text-align: right;
}

.store-card-loss-stack--lg {
  padding: .45rem .65rem;
}

.store-card-loss-stack--lg .store-card-loss-line {
  font-size: 1rem;
}

.store-card-loss-line {
  font-size: .75rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: .02em;
  white-space: nowrap;
}

.store-card-loss-line--open {
  color: #b54545;
}

.store-card-loss-line--resolved {
  color: #2d7a55;
}

.store-card-loss-line--empty {
  color: var(--text-3);
  font-weight: 600;
}

.store-card-loss-line--inline {
  display: inline-flex;
  align-items: center;
  padding: .2rem .5rem;
  border-radius: var(--radius);
  background: var(--warning-bg);
  border: 1px solid #e0d8a8;
  font-size: .8125rem;
}

/* ─── Service Tags ─── */

.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .3rem;
}

.service-tag {
  display: inline-block;
  font-size: .625rem;
  font-weight: 700;
  padding: .2rem .5rem;
  border-radius: var(--radius);
  background: var(--accent-subtle);
  color: var(--accent);
  letter-spacing: .04em;
  text-transform: uppercase;
}

/* ─── Status Badge ─── */

.status-badge {
  display: inline-flex;
  align-items: center;
  font-size: .625rem;
  font-weight: 700;
  padding: .2rem .5rem;
  border-radius: var(--radius);
  text-transform: uppercase;
  letter-spacing: .04em;
}

.status-badge-success {
  background: var(--success-bg);
  color: var(--success);
}

/* ─── Filter Tabs ─── */

.filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: .125rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0;
}

.filter-pill {
  display: inline-block;
  font-size: .8125rem;
  font-weight: 500;
  padding: .5rem .875rem;
  border: none;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--text-3);
  text-decoration: none;
  transition: all var(--dur);
  margin-bottom: -1px;
}

.filter-pill:hover {
  color: var(--text);
  border-bottom-color: var(--border);
}

.filter-pill-active {
  color: var(--accent) !important;
  border-bottom-color: var(--accent) !important;
  font-weight: 700;
}

/* ─── Dispute Feed Items ─── */

.dispute-feed-item {
  border-radius: var(--radius-lg) !important;
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
}

.dispute-feed-item:hover {
  box-shadow: var(--shadow-sm);
  transform: translateX(2px);
}

/* KRL ratkaisu jätetty huomioimatta — näkyvä reunus korteissa (käytä yhdessä dispute-thread-card / dispute-feed-item tms.) */
.dispute-card-krl-ignored {
  border: 4px solid #0a0a0a !important;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
}

.dispute-card-krl-ignored.dispute-feed-item:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
}

.dispute-krl-ignored-notice {
  color: var(--text);
  border-left: 3px solid #0a0a0a;
  padding-left: 0.65rem;
}

.dispute-feed-item .card-body {
  padding: 1.125rem 1.375rem;
}

.dispute-feed-title {
  font-size: .9375rem;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -.01em;
}
.dispute-feed-title:hover { color: var(--accent); }

.dispute-feed-meta {
  font-size: .75rem;
  color: var(--text-3);
}

.dispute-feed-body {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text-2);
  margin: .5rem 0 0;
}

.dispute-feed-footer {
  font-size: .75rem;
  color: var(--text-3);
  margin-top: .5rem;
}

/* ─── Store Detail ─── */

.store-header-card .card-body { padding: 1.75rem; }

.store-name {
  font-size: 1.625rem;
  font-weight: 800;
  letter-spacing: -.035em;
  margin: 0 0 .375rem;
}

.store-detail-meta {
  font-size: .875rem;
  color: var(--text-2);
}

.store-website-link {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  font-size: .8125rem;
  font-weight: 600;
  color: var(--store);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur);
}
.store-website-link:hover { border-bottom-color: var(--accent); }

.store-description {
  font-size: .875rem;
  line-height: 1.7;
  color: var(--text-2);
}

/* ─── Dispute Thread ─── */

.dispute-thread-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg) !important;
}
.dispute-thread-card .card-body { padding: 1.375rem; }

.dispute-thread-title {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -.01em;
  margin: 0 0 .2rem;
}

.dispute-thread-meta {
  font-size: .75rem;
  color: var(--text-3);
}

.dispute-other-stores-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .35rem .45rem;
}

.dispute-other-stores-prefix {
  flex-shrink: 0;
}

.dispute-other-stores-list {
  display: inline-flex;
  flex-wrap: wrap;
  gap: .25rem;
}

.dispute-other-store-label {
  display: inline-flex;
  align-items: center;
  font-size: .6875rem;
  font-weight: 600;
  line-height: 1.2;
  padding: .12rem .4rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--store) 14%, var(--surface));
  color: color-mix(in srgb, var(--store) 92%, var(--text));
  text-decoration: none;
  border: 1px solid color-mix(in srgb, var(--store) 22%, transparent);
  transition: background var(--dur), border-color var(--dur), color var(--dur);
}

.dispute-other-store-label:hover {
  background: color-mix(in srgb, var(--store) 22%, var(--surface));
  border-color: color-mix(in srgb, var(--store) 35%, transparent);
  color: var(--store);
}

.dispute-thread-body {
  font-size: .875rem;
  line-height: 1.7;
  color: var(--text);
  margin: .625rem 0 0;
}

/* ─── Comments ─── */

.dispute-comments-section {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-light);
}

.dispute-comments-label {
  font-size: .6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text-3);
  margin-bottom: .625rem;
}

.comment-item {
  padding: .75rem .875rem;
  background: var(--bg);
  border-radius: var(--radius);
  border-left: 2px solid var(--border);
  margin-bottom: .375rem;
}

.comment-body {
  font-size: .8125rem;
  line-height: 1.6;
  color: var(--text);
  margin: .375rem 0 0;
}

.comment-meta {
  font-size: .6875rem;
  line-height: 1.3;
}

.comment-meta .comment-author,
.dispute-thread-meta .comment-author,
.dispute-feed-footer .comment-author {
  font-weight: 600;
  color: var(--text-2);
}

.comment-meta .comment-date,
.comment-meta .comment-meta-sep,
.dispute-thread-meta .comment-date,
.dispute-thread-meta .comment-meta-sep,
.dispute-feed-footer .comment-date,
.dispute-feed-footer .comment-meta-sep {
  font-weight: 400;
  color: var(--text-3);
}

.comment-item .comment-report-form {
  opacity: 1;
  transition: opacity 0.15s ease;
}

@media (hover: hover) {
  .comment-item .comment-report-form {
    opacity: 0;
    pointer-events: none;
  }

  .comment-item:hover .comment-report-form,
  .comment-item:focus-within .comment-report-form {
    opacity: 1;
    pointer-events: auto;
  }
}

.comment-item .comment-report-form .btn-report {
  font-size: 0.625rem;
  font-weight: 500;
  color: var(--text-3);
  padding: 0.15rem 0.35rem;
}

.comment-item .comment-report-form .btn-report:hover {
  color: var(--danger);
}

/* ─── Sidebar Form ─── */

.dispute-form-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg) !important;
}
.dispute-form-card .card-body { padding: 1.5rem; }

.dispute-form-title {
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: -.02em;
  margin: 0 0 1.125rem;
}

/* Dispute store picker (search + chips) */
.dispute-store-picker-selected {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  min-height: 2rem;
}
.dispute-store-chip {
  display: inline-flex;
  align-items: center;
  gap: .25rem;
  max-width: 100%;
  padding: .25rem .5rem;
  font-size: .75rem;
  font-weight: 500;
  border-radius: 999px;
  background: var(--accent-subtle);
  color: var(--text);
  border: 1px solid var(--border);
}
.dispute-store-chip-locked {
  background: rgba(0, 0, 0, .06);
}
.dispute-store-chip-text {
  min-width: 0;
  flex: 1 1 auto;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
  line-height: 1.35;
}
.dispute-store-chip-remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.25rem;
  height: 1.25rem;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: var(--text-2);
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
}
.dispute-store-chip-remove:hover {
  background: rgba(0, 0, 0, .08);
  color: var(--text);
}
.dispute-store-picker-search-wrap {
  position: relative;
}
.dispute-store-picker-results {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 1080;
  max-height: 220px;
  overflow-y: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 10px 28px rgba(0, 0, 0, .12);
  margin-top: 2px;
}
.dispute-store-picker-result {
  font-size: .8125rem;
  padding: .5rem .75rem;
  text-align: left;
  border: none;
  border-bottom: 1px solid var(--border);
  width: 100%;
  cursor: pointer;
  background: var(--surface);
  color: var(--text);
}
.dispute-store-picker-result:last-child {
  border-bottom: none;
}
.dispute-store-picker-result:hover,
.dispute-store-picker-result:focus-visible {
  background: var(--accent-subtle);
  outline: none;
}
/* ─── Forms ─── */

.form-control, .form-select {
  font-family: var(--font);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: .8125rem;
  padding: .5625rem .75rem;
  transition: border-color var(--dur), box-shadow var(--dur);
  background-color: var(--surface);
  color: var(--text);
}
.form-control:focus, .form-select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-subtle);
}
.form-control::placeholder { color: var(--text-3); }

.form-label {
  font-size: .75rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: .3rem;
  text-transform: uppercase;
  letter-spacing: .03em;
}

.form-text {
  font-size: .6875rem;
  color: var(--text-3);
}

.form-check-input:checked {
  background-color: var(--accent);
  border-color: var(--accent);
}

/* ─── Auth Pages ─── */

.auth-wrapper { padding: 3rem 0; }

.auth-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-xl) !important;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.auth-card .card-body { padding: 2.25rem; }

.auth-header {
  text-align: center;
  margin-bottom: 1.75rem;
}

.auth-title {
  font-size: 1.375rem;
  font-weight: 800;
  letter-spacing: -.035em;
  margin-bottom: .25rem;
}

.auth-subtitle {
  font-size: .875rem;
  color: var(--text-2);
}

.auth-divider {
  position: relative;
  margin: 0.25rem 0;
}

.auth-social-btn {
  font-weight: 500;
}

.auth-footer {
  text-align: center;
  margin-top: 1.25rem;
  font-size: .8125rem;
  color: var(--text-3);
}
.auth-footer a {
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
}
.auth-footer a:hover { text-decoration: underline; }

/* ─── Alerts ─── */

.alert-modern {
  border-radius: var(--radius);
  font-size: .8125rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .75rem 1rem;
  border-width: 1px;
  border-style: solid;
}

.alert-icon {
  flex-shrink: 0;
  width: 1.375rem;
  height: 1.375rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: .6875rem;
  font-weight: 700;
}

.alert-success { background: var(--success-bg); border-color: #b5ddc6; color: #1a5c36; }
.alert-success .alert-icon { background: #c8e8d5; color: var(--success); }
.alert-danger, .alert-error { background: var(--danger-bg); border-color: #f5c4c4; color: #8b1d1d; }
.alert-danger .alert-icon, .alert-error .alert-icon { background: #fcd9d9; color: var(--danger); }
.alert-warning { background: var(--warning-bg); border-color: #e0d8a8; color: #7a5300; }
.alert-warning .alert-icon { background: #faecc7; color: var(--warning); }
.alert-info { background: #eef4fa; border-color: #c4d8eb; color: #1e4a72; }
.alert-info .alert-icon { background: #d5e5f3; color: #2d6ea5; }

/* ─── Empty State ─── */

.empty-state {
  text-align: center;
  padding: 2.5rem 1.5rem;
  border: 1px dashed var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-alt);
}

.empty-state-icon {
  font-size: 1.75rem;
  margin-bottom: .5rem;
  opacity: .6;
}

.empty-state-text {
  font-size: .875rem;
  color: var(--text-3);
  margin: 0;
}

/* ─── Report Button ─── */

.btn-report {
  font-family: var(--font);
  font-size: .6875rem;
  font-weight: 600;
  color: var(--text-3);
  border: none;
  background: transparent;
  padding: .2rem .5rem;
  border-radius: var(--radius);
  transition: all var(--dur);
  cursor: pointer;
}
.btn-report:hover {
  color: var(--danger);
  background: var(--danger-bg);
}

/* ─── Search Bar ─── */

.search-bar {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.125rem 1.375rem;
  box-shadow: var(--shadow-sm);
}

/* ─── Legal Page ─── */

.legal-page h1 {
  font-size: 1.625rem;
  font-weight: 800;
  letter-spacing: -.035em;
}

.legal-page h2 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -.01em;
  margin-bottom: .375rem;
}

.legal-page section {
  padding: 1rem 0;
  border-bottom: 1px solid var(--border-light);
}
.legal-page section:last-child { border-bottom: none; }

.legal-page p, .legal-page li {
  font-size: .875rem;
  line-height: 1.7;
  color: var(--text-2);
}

/* ─── Footer ─── */

.site-footer {
  margin-top: auto;
  border-top: 1px solid var(--border);
  background: var(--surface);
  padding: 1.75rem 0;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
}

.footer-brand {
  font-weight: 700;
  font-size: .875rem;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: .3rem;
}

.footer-links a {
  font-size: .75rem;
  font-weight: 500;
  color: var(--text-3);
  text-decoration: none;
  transition: color var(--dur);
}
.footer-links a:hover { color: var(--accent); }

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

@media (max-width: 767.98px) {
  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
  .hero-angle { height: 2rem; }
}

/* ─── Page Sections ─── */

.page-section {
  padding-top: 2.75rem;
  padding-bottom: 2.75rem;
}
.page-section + .page-section {
  padding-top: 0;
}
.page-section-border {
  border-top: 1px solid var(--border);
  padding-top: 2.75rem;
}

/* ─── Scroll Reveal Animations ─── */

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .5s var(--ease), transform .5s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-group .reveal:nth-child(1) { transition-delay: 0s; }
.reveal-group .reveal:nth-child(2) { transition-delay: .06s; }
.reveal-group .reveal:nth-child(3) { transition-delay: .12s; }
.reveal-group .reveal:nth-child(4) { transition-delay: .18s; }
.reveal-group .reveal:nth-child(5) { transition-delay: .24s; }
.reveal-group .reveal:nth-child(6) { transition-delay: .3s; }
.reveal-group .reveal:nth-child(7) { transition-delay: .36s; }
.reveal-group .reveal:nth-child(8) { transition-delay: .42s; }
.reveal-group .reveal:nth-child(9) { transition-delay: .48s; }

/* Hero entrance */

.hero-title, .hero-subtitle, .hero-label, .hero-actions {
  opacity: 0;
  transform: translateY(20px);
  animation: heroIn .6s var(--ease) forwards;
}
.hero-label   { animation-delay: 0s; }
.hero-title   { animation-delay: .1s; }
.hero-subtitle{ animation-delay: .2s; }
.hero-actions { animation-delay: .3s; }

@keyframes heroIn {
  to { opacity: 1; transform: translateY(0); }
}


/* ─── Scrollbar ─── */

::-webkit-scrollbar { width: 7px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: var(--text-3);
  border-radius: 99px;
}
::-webkit-scrollbar-thumb:hover { background: var(--text-2); }
