/* ==========================================================================
   Real or Fake Moldavite? — design system (mobile-first)
   Spec: navrh.md chapters 4 + 5. No inline styles anywhere (CSP 'self').
   Breakpoints: 600px, 900px. Base design width ~360px.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Self-hosted fonts (latin subsets, font-display: swap)
   -------------------------------------------------------------------------- */
@font-face {
  font-family: "Lato";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/lato-400.woff2") format("woff2");
}
@font-face {
  font-family: "Lato";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/lato-700.woff2") format("woff2");
}
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/poppins-500.woff2") format("woff2");
}
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/poppins-600.woff2") format("woff2");
}

/* --------------------------------------------------------------------------
   2. Design tokens (exactly per navrh.md 4.2)
   -------------------------------------------------------------------------- */
:root {
  /* Značka (z e-shopu) */
  --brand-accent: #ec548b;        /* dekor, tečka loga, ::selection */
  --brand-accent-dark: #b62c5e;   /* výplň primárních tlačítek (bílá na ní má kontrast 6.0:1) */
  --brand-accent-darker: #9a2450; /* hover primárního tlačítka */
  --brand-link: #0183c5;          /* focus ring, ikony */
  --brand-link-ink: #016397;      /* textové odkazy (AA; originál #0183c5 na bílé neprojde) */
  --brand-heading: #607d8b;       /* nadpisy — jen velký text (>= 24 px / 19 px bold) */
  --brand-gold: #a9803c;

  /* Text a plochy */
  --text-primary: #3a3a3a;  --text-muted: #6b6b6b;
  --bg-page: #f3f3f3;       --bg-card: #ffffff;
  --border-subtle: #e5e5e5; --border-input: #8f8f8f;
  --footer-bg: #000000;     --footer-text: #ffffff;  --footer-link: #ebf9ff;

  /* Sémantika (= verdikt): tint pozadí + "ink" text kvůli WCAG AA */
  --success: #23a455;  --success-ink: #187a3e;  --success-bg: #e9f7ef;   /* genuine */
  --error:   #d32f2f;  --error-ink:   #b02a2a;  --error-bg:   #fdecea;   /* fake */
  --warning: #a9803c;  --warning-ink: #7c5b1e;  --warning-bg: #f7f1e3;   /* inconclusive */
  --info:    #0183c5;  --info-ink:    #016397;  --info-bg:    #e8f4fb;   /* stav New */

  /* Badge stavů */
  --status-priority-ink: #b62c5e; --status-priority-bg: #fbe3ed;
  --status-refunded-ink: #555555; --status-refunded-bg: #ededed;

  --btn-radius: 5px; --card-radius: 5px; --pill-radius: 999px;
  --shadow-card: 0 4px 10px -2px rgba(0,0,0,.1);
}

/* Additional tokens owned by the assets module (derived, not in spec 4.2) */
:root {
  --font-heading: "Poppins", "Lato", -apple-system, "Segoe UI", Arial, sans-serif;
  --font-body: "Lato", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --font-button: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --choice-selected-bg: #fdf1f6;                 /* tint of selected .choice-card */
  --focus-ring: 0 0 0 3px rgba(1, 131, 197, .25); /* soft ring around focused inputs */
}

/* --------------------------------------------------------------------------
   3. Reset & base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg-page);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.7;
}

img, svg { max-width: 100%; height: auto; }
figure { margin: 0; }

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  /* Poppins je opticky sirsi nez byvale Ovo -> vyssi vaha, mirne mensi telo */
  font-weight: 600;
  color: var(--brand-heading);
  line-height: 1.25;
  margin: 0 0 .6em;
}
h1 { font-size: 28px; }
h2 { font-size: 22px; }
h3 { font-size: 19px; }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--brand-link-ink); }
a:hover { color: var(--brand-link); }

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

:focus-visible {
  outline: 3px solid var(--brand-link);
  outline-offset: 2px;
}

hr { border: 0; border-top: 1px solid var(--border-subtle); margin: 32px 0; }

@media (min-width: 900px) {
  body { font-size: 17px; }
  h1 { font-size: 40px; }
  h2 { font-size: 30px; }
  h3 { font-size: 22px; }
}

/* --------------------------------------------------------------------------
   4. Layout: containers, header, footer
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: 720px;            /* forms and content pages */
  margin-left: auto;
  margin-right: auto;
  padding-left: 16px;
  padding-right: 16px;
}
.container-wide { max-width: 1100px; }  /* homepage — use together with .container */

main.page { padding: 28px 0 56px; }

@media (min-width: 600px) {
  .container { padding-left: 24px; padding-right: 24px; }
  main.page { padding-top: 40px; }
}

/* Header: white bar, logo left, "My requests" right */
.site-header {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-subtle);
}
.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
}
.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  min-height: 44px;
}
.site-logo img,
.site-logo svg { height: 40px; width: auto; display: block; }
.site-nav { display: flex; align-items: center; gap: 20px; }
.site-nav a {
  font-family: var(--font-button);
  font-weight: 500;
  font-size: 16px;
  color: var(--brand-link-ink);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.site-nav a:hover { color: var(--brand-link); text-decoration: underline; }

/* Footer: black, white text */
.site-footer {
  background: var(--footer-bg);
  color: var(--footer-text);
  padding: 36px 0;
  font-size: 15px;
  margin-top: 48px;
}
.site-footer a { color: var(--footer-link); }
.site-footer a:hover { color: #fff; }
.site-footer p { margin-bottom: .5em; }
.site-footer-links {
  list-style: none;
  margin: 0 0 12px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
}
.site-footer-links a { display: inline-flex; align-items: center; min-height: 44px; }
.site-footer-note { color: #c9c9c9; font-size: 14px; }

/* --------------------------------------------------------------------------
   5. Buttons (min-height 48px, radius 5px, Poppins 500 16px)
   -------------------------------------------------------------------------- */
.btn,
.btn-primary,
.btn-secondary,
.btn-danger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 10px 24px;
  font-family: var(--font-button);
  font-weight: 500;
  font-size: 16px;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
  border: 2px solid transparent;
  border-radius: var(--btn-radius);
  cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease, box-shadow .15s ease;
}

.btn-primary {
  background: var(--brand-accent-dark);
  color: #fff;
}
.btn-primary:hover { background: var(--brand-accent-darker); color: #fff; }

.btn-secondary {
  background: var(--bg-card);
  border-color: var(--brand-accent);
  color: var(--brand-accent-dark);
}
.btn-secondary:hover {
  background: var(--choice-selected-bg);
  border-color: var(--brand-accent-dark);
  color: var(--brand-accent-darker);
}

.btn-danger {
  background: var(--error-ink);
  color: #fff;
}
.btn-danger:hover { background: #922323; color: #fff; }

.btn:disabled,
.btn-primary:disabled,
.btn-secondary:disabled,
.btn-danger:disabled,
.btn[aria-disabled="true"],
.btn-primary[aria-disabled="true"],
.btn-secondary[aria-disabled="true"],
.btn-danger[aria-disabled="true"] {
  opacity: .55;
  cursor: not-allowed;
  pointer-events: none;
}

.btn-block { width: 100%; }

/* --------------------------------------------------------------------------
   6. Hero (homepage)
   -------------------------------------------------------------------------- */
.hero { text-align: center; padding: 36px 0 8px; }
.hero-logo img, .hero-logo svg { height: 72px; width: auto; }
.hero .lead {
  font-size: 17px;
  max-width: 640px;
  margin: 0 auto 8px;
}
.hero-img { margin: 24px auto 0; max-width: 440px; }
.hero-img img { border-radius: var(--card-radius); display: block; width: 100%; }
.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 24px;
}
@media (min-width: 600px) {
  .hero { padding-top: 48px; }
  .hero .lead { font-size: 19px; }
  .hero-actions { flex-direction: row; justify-content: center; }
  .hero-actions .btn,
  .hero-actions .btn-primary,
  .hero-actions .btn-secondary { min-width: 230px; }
}

/* "How it works" — 1-2-3 steps */
.how-steps {
  list-style: none;
  counter-reset: how;
  margin: 16px 0 0;
  padding: 0;
  display: grid;
  gap: 14px;
}
.how-steps li {
  counter-increment: how;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  text-align: left;
}
.how-steps li::before {
  content: counter(how);
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--brand-accent-dark);
  color: #fff;
  font-family: var(--font-button);
  font-weight: 600;
  font-size: 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
@media (min-width: 900px) {
  .how-steps { grid-template-columns: repeat(3, 1fr); }
}

/* --------------------------------------------------------------------------
   7. Cards & homepage panels
   -------------------------------------------------------------------------- */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--card-radius);
  padding: 20px;
}
@media (min-width: 600px) {
  .card { padding: 28px; }
}

.panel-grid {
  display: grid;
  gap: 16px;
  margin-top: 24px;
}
@media (min-width: 600px) {
  .panel-grid { grid-template-columns: 1fr 1fr; }
}

/* Link panel with icon (homepage) */
.panel {
  display: block;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--card-radius);
  padding: 24px;
  color: var(--text-primary);
  text-decoration: none;
  transition: box-shadow .15s ease, border-color .15s ease;
}
.panel:hover,
.panel:focus-visible {
  box-shadow: var(--shadow-card);
  border-color: var(--brand-accent);
  color: var(--text-primary);
}
.panel-icon {
  width: 44px;
  height: 44px;
  margin-bottom: 12px;
  color: var(--brand-link);
}
.panel-icon svg { width: 100%; height: 100%; }
.panel h2, .panel h3 { font-size: 20px; margin-bottom: 6px; }
.panel p { color: var(--text-muted); font-size: 15px; margin: 0; }

/* --------------------------------------------------------------------------
   8. Choice cards — big radio cards & big link cards
   -------------------------------------------------------------------------- */
/* As <label class="choice-card"> wrapping an <input type="radio"> */
.choice-card {
  position: relative;
  display: block;
  background: var(--bg-card);
  border: 2px solid var(--border-subtle);
  border-radius: var(--card-radius);
  padding: 18px 18px 18px 54px;
  margin-bottom: 12px;
  cursor: pointer;
  transition: border-color .15s ease, background-color .15s ease;
}
.choice-card:hover { border-color: var(--brand-accent); }
.choice-card input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}
/* custom radio indicator */
.choice-card::before {
  content: "";
  position: absolute;
  left: 18px;
  top: 21px;
  width: 22px;
  height: 22px;
  border: 2px solid var(--border-input);
  border-radius: 50%;
  background: #fff;
}
.choice-card:has(input:checked) {
  border-color: var(--brand-accent);
  background: var(--choice-selected-bg);
}
.choice-card:has(input:checked)::before { border-color: var(--brand-accent-dark); }
.choice-card:has(input:checked)::after {
  content: "";
  position: absolute;
  left: 24px;
  top: 27px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--brand-accent-dark);
}
.choice-card:has(input:focus-visible) {
  outline: 3px solid var(--brand-link);
  outline-offset: 2px;
}
/* graceful fallback for engines without :has() — keep the native radio visible */
@supports not selector(:has(*)) {
  .choice-card { padding-left: 18px; }
  .choice-card::before { content: none; }
  .choice-card input[type="radio"] {
    position: static;
    opacity: 1;
    width: 18px;
    height: 18px;
    margin-right: 8px;
    accent-color: var(--brand-accent-dark);
  }
}

.choice-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
.choice-card-title { font-weight: 700; font-size: 17px; }
.choice-card-desc { color: var(--text-muted); font-size: 15px; margin: 4px 0 0; }
.choice-card-note { font-size: 14px; margin: 8px 0 0; }

/* Big clickable link card (e.g. /verify: physical vs online) */
.choice-link {
  display: block;
  background: var(--bg-card);
  border: 2px solid var(--border-subtle);
  border-radius: var(--card-radius);
  padding: 20px;
  margin-bottom: 14px;
  color: var(--text-primary);
  text-decoration: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.choice-link:hover,
.choice-link:focus-visible {
  border-color: var(--brand-accent);
  box-shadow: var(--shadow-card);
  color: var(--text-primary);
}
.choice-link .choice-card-title { color: var(--brand-link-ink); font-size: 18px; }
.choice-link:hover .choice-card-title { color: var(--brand-link); }

/* --------------------------------------------------------------------------
   9. Forms
   -------------------------------------------------------------------------- */
.field { margin-bottom: 20px; }

label,
.field-label {
  display: block;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 15px;
  line-height: 1.4;
  margin-bottom: 6px;
  color: var(--text-primary);
}

/* Inputs: ALWAYS 16px font (no iOS zoom), min height 48px */
input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
input[type="number"],
input[type="tel"],
select,
textarea {
  width: 100%;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;   /* never less — prevents iOS zoom */
  line-height: 1.4;
  color: var(--text-primary);
  background: var(--bg-card);
  border: 1px solid var(--border-input);
  border-radius: var(--btn-radius);
  min-height: 48px;
  padding: 11px 12px;
}
textarea { min-height: 130px; resize: vertical; }

input:focus,
select:focus,
textarea:focus {
  border-color: var(--brand-link);
  box-shadow: var(--focus-ring);
}

input::placeholder,
textarea::placeholder { color: #8a8a8a; opacity: 1; }

/* Validation */
.field-error {
  display: block;
  color: var(--error-ink);
  font-size: 14px;
  line-height: 1.5;
  margin-top: 6px;
}
.field-error:empty { display: none; }
.has-error input,
.has-error select,
.has-error textarea,
input[aria-invalid="true"],
select[aria-invalid="true"],
textarea[aria-invalid="true"] {
  border-color: var(--error);
  border-width: 2px;
}

.hint {
  display: block;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.5;
  margin-top: 6px;
}
.field > .hint:first-of-type { margin-top: 0; margin-bottom: 6px; }

/* Checkbox rows (consent etc.) */
.checkbox-field {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.checkbox-field input[type="checkbox"] {
  flex: none;
  width: 22px;
  height: 22px;
  margin: 2px 0 0;
  accent-color: var(--brand-accent-dark);
}
.checkbox-field label { font-weight: 400; font-size: 15px; margin: 0; }

/* Character counter (JS fills in, see app.js data-charcount) */
.char-counter {
  display: block;
  text-align: right;
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Form sections (stepper sections) */
.form-section {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--card-radius);
  padding: 20px 16px;
  margin-bottom: 20px;
}
.form-section > h2 { font-size: 22px; }
@media (min-width: 600px) {
  .form-section { padding: 28px 24px; }
}

.form-actions { margin-top: 24px; }
.form-actions .btn-primary { width: 100%; }
@media (min-width: 600px) {
  .form-actions .btn-primary { width: auto; min-width: 280px; }
}
.form-actions-note { font-size: 13.5px; color: var(--text-muted); margin-bottom: 10px; }

/* Honeypot — off-screen, exactly per spec (SpamGuard::fields) */
.hp-field { position: absolute; left: -9999px; }

/* --------------------------------------------------------------------------
   10. Upload dropzone & thumbnails
   -------------------------------------------------------------------------- */
.dropzone {
  display: block;
  border: 2px dashed var(--border-input);
  border-radius: var(--card-radius);
  background: var(--bg-card);
  padding: 28px 16px;
  text-align: center;
  cursor: pointer;
  transition: border-color .15s ease, background-color .15s ease;
}
.dropzone:hover,
.dropzone.is-dragover {
  border-color: var(--brand-accent);
  background: var(--choice-selected-bg);
}
.dropzone.is-full {
  opacity: .6;
  cursor: not-allowed;
}
.dropzone-title {
  display: block;
  font-family: var(--font-button);
  font-weight: 500;
  font-size: 17px;
  color: var(--brand-accent-dark);
  margin-bottom: 4px;
}
.dropzone .hint { margin-top: 2px; }
.dropzone-drag-hint { display: none; }
@media (min-width: 900px) {
  .dropzone-drag-hint { display: inline; }
}
/* With JS active the real file input is visually hidden (label opens the picker).
   Without JS it stays visible inside the dropzone as a normal input. */
.js .dropzone-input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.thumb-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 12px;
  list-style: none;
  padding: 0;
}
@media (min-width: 600px) {
  .thumb-grid { grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); }
}
.thumb {
  position: relative;
  aspect-ratio: 1 / 1;
  border: 1px solid var(--border-subtle);
  border-radius: var(--card-radius);
  overflow: hidden;
  background: var(--bg-card);
}
.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.thumb a { display: block; width: 100%; height: 100%; }
/* Remove cross — 44px touch target */
.thumb-remove {
  position: absolute;
  top: 0;
  right: 0;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
}
.thumb-remove::before {
  content: "\2715";
  width: 28px;
  height: 28px;
  margin: 4px;
  border-radius: 50%;
  background: rgba(0, 0, 0, .55);
  color: #fff;
  font-size: 13px;
  line-height: 28px;
  text-align: center;
}
.thumb-remove:hover::before { background: var(--error); }

/* Sample photos grid (good/bad examples above the dropzone) */
.samples-title {
  font-family: "Poppins", "Lato", sans-serif;
  font-weight: 600;
  font-size: 14px;
  color: var(--text-muted);
  letter-spacing: .02em;
  margin: 14px 0 6px;
}
/* Horizontalne skrolovatelny pruh ukazek - vizualne oddeleny od uploadu,
   aby si ho nikdo nepletl s vlastnimi nahranymi fotkami */
.sample-grid {
  display: flex;
  flex-wrap: nowrap;
  gap: 10px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x proximity;
  padding: 10px;
  margin: 0 0 20px;
  background: var(--bg-page);
  border: 1px solid var(--border-subtle);
  border-radius: var(--card-radius);
}
.sample-grid::-webkit-scrollbar { height: 8px; }
.sample-grid::-webkit-scrollbar-thumb { background: var(--border-input); border-radius: 4px; }
.sample {
  flex: 0 0 128px;
  scroll-snap-align: start;
}
.sample {
  border: 2px solid var(--border-subtle);
  border-radius: var(--card-radius);
  overflow: hidden;
  background: var(--bg-card);
}
.sample img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}
.sample figcaption {
  font-size: 12.5px;
  line-height: 1.4;
  padding: 6px 8px;
  text-align: center;
}
.sample-good { border-color: var(--success); }
.sample-good figcaption { color: var(--success-ink); }
.sample-bad { border-color: var(--error); }
.sample-bad figcaption { color: var(--error-ink); }

/* --------------------------------------------------------------------------
   11. Stepper (32px circles)
   -------------------------------------------------------------------------- */
.stepper {
  display: flex;
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
}
.stepper-step {
  flex: 1;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
  font-size: 12.5px;
  line-height: 1.35;
  color: var(--text-muted);
}
.stepper-step a {
  color: inherit;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.stepper-num {
  position: relative;
  z-index: 1;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid var(--border-input);
  background: var(--bg-card);
  color: var(--text-muted);
  font-family: var(--font-button);
  font-weight: 600;
  font-size: 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
/* connector line between circles */
.stepper-step + .stepper-step::before {
  content: "";
  position: absolute;
  top: 15px;
  left: calc(-50% + 24px);
  width: calc(100% - 48px);
  height: 2px;
  background: var(--border-subtle);
}
.stepper-step.is-active { color: var(--text-primary); font-weight: 700; }
.stepper-step.is-active .stepper-num {
  border-color: var(--brand-accent-dark);
  background: var(--brand-accent-dark);
  color: #fff;
}
.stepper-step.is-done .stepper-num {
  border-color: var(--success);
  background: var(--success-bg);
  color: var(--success-ink);
}
.stepper-step.is-done + .stepper-step::before,
.stepper-step.is-active + .stepper-step::before { background: var(--brand-accent-dark); }
@media (min-width: 600px) {
  .stepper-step { font-size: 14px; }
}

/* --------------------------------------------------------------------------
   12. Status badges (pill, tint bg + ink text — never colour alone)
   -------------------------------------------------------------------------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 12px;
  border-radius: var(--pill-radius);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 13px;
  line-height: 1.5;
  letter-spacing: .03em;
  text-transform: uppercase;
  white-space: nowrap;
}
.badge-new        { background: var(--info-bg);            color: var(--info-ink); }
.badge-resolved   { background: var(--success-bg);         color: var(--success-ink); }
.badge-pending    { background: var(--warning-bg);         color: var(--warning-ink); }
.badge-priority   { background: var(--status-priority-bg); color: var(--status-priority-ink); }
.badge-refunded   { background: var(--status-refunded-bg); color: var(--status-refunded-ink); }
.badge-free       { background: var(--status-refunded-bg); color: var(--status-refunded-ink); }
/* verdicts */
.badge-genuine        { background: var(--success-bg); color: var(--success-ink); }
.badge-likely-genuine { background: var(--success-bg); color: var(--success-ink); }
.badge-fake           { background: var(--error-bg);   color: var(--error-ink); }
.badge-likely-fake    { background: var(--error-bg);   color: var(--error-ink); }
.badge-inconclusive   { background: var(--warning-bg); color: var(--warning-ink); }
.badge-uncertain      { background: var(--warning-bg); color: var(--warning-ink); }

/* --------------------------------------------------------------------------
   13. Verdict banner (full width, tint bg, 4px left border, icon)
   -------------------------------------------------------------------------- */
.verdict-banner {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  width: 100%;
  padding: 18px 20px;
  border-radius: var(--card-radius);
  border-left: 4px solid;
  margin-bottom: 24px;
}
.verdict-banner::before {
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-card);
  font-weight: 700;
  font-size: 17px;
  line-height: 32px;
  text-align: center;
}
.verdict-title {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 19px;
  margin: 2px 0 4px;
  color: inherit;
}
.verdict-banner p { color: var(--text-primary); margin: 0 0 .4em; }
.verdict-banner p:last-child { margin-bottom: 0; }

.verdict-genuine {
  background: var(--success-bg);
  border-left-color: var(--success);
  color: var(--success-ink);
}
.verdict-genuine::before { content: "\2713"; color: var(--success-ink); }

.verdict-likely-genuine {
  background: var(--success-bg);
  border-left-color: var(--success);
  color: var(--success-ink);
}
.verdict-likely-genuine::before { content: "\2713"; color: var(--success-ink); }

.verdict-likely-fake {
  background: var(--error-bg);
  border-left-color: var(--error);
  color: var(--error-ink);
}
.verdict-likely-fake::before { content: "\2715"; color: var(--error-ink); }

.verdict-fake {
  background: var(--error-bg);
  border-left-color: var(--error);
  color: var(--error-ink);
}
.verdict-fake::before { content: "\2715"; color: var(--error-ink); }

.verdict-inconclusive {
  background: var(--warning-bg);
  border-left-color: var(--warning);
  color: var(--warning-ink);
}
.verdict-inconclusive::before { content: "?"; color: var(--warning-ink); }

.verdict-uncertain {
  background: var(--warning-bg);
  border-left-color: var(--warning);
  color: var(--warning-ink);
}
.verdict-uncertain::before { content: "?"; color: var(--warning-ink); }

@media (min-width: 600px) {
  .verdict-title { font-size: 24px; }
}

/* --------------------------------------------------------------------------
   14. Alert boxes
   -------------------------------------------------------------------------- */
.alert {
  padding: 14px 16px;
  border: 1px solid;
  border-radius: var(--card-radius);
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 20px;
}
.alert a { color: inherit; font-weight: 700; }
.alert p { margin-bottom: .5em; }
.alert p:last-child { margin-bottom: 0; }
.alert-info    { background: var(--info-bg);    border-color: var(--info);    color: var(--info-ink); }
.alert-success { background: var(--success-bg); border-color: var(--success); color: var(--success-ink); }
.alert-warning { background: var(--warning-bg); border-color: var(--warning); color: var(--warning-ink); }
.alert-error   { background: var(--error-bg);   border-color: var(--error);   color: var(--error-ink); }

/* --------------------------------------------------------------------------
   15. Progress bar (upload)
   -------------------------------------------------------------------------- */
.progress {
  width: 100%;
  height: 10px;
  background: var(--border-subtle);
  border-radius: var(--pill-radius);
  overflow: hidden;
}
.progress-bar {
  width: 0;
  height: 100%;
  background: var(--brand-accent-dark);
  border-radius: inherit;
  transition: width .2s ease;
}
.progress-text {
  margin-top: 8px;
  font-size: 15px;
  color: var(--text-muted);
}
.progress-wrap { margin-top: 16px; }
.progress-wrap[hidden] { display: none; }

/* --------------------------------------------------------------------------
   16. Requests table (desktop) / cards (mobile) — My requests
   -------------------------------------------------------------------------- */
.requests-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--card-radius);
  overflow: hidden;
}
.requests-table th,
.requests-table td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 15px;
  vertical-align: middle;
}
.requests-table th {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.requests-table tbody tr:last-child td { border-bottom: 0; }
.requests-table tbody tr:hover { background: #fafafa; }
.requests-table tbody tr[data-href] { cursor: pointer; }
.requests-table .badge { margin-right: 4px; }

@media (max-width: 599px) {
  .requests-table { display: block; background: transparent; border: 0; }
  .requests-table thead { display: none; }
  .requests-table tbody { display: block; }
  .requests-table tr {
    display: block;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--card-radius);
    margin-bottom: 12px;
    padding: 6px 0;
  }
  .requests-table td {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-bottom: 0;
    padding: 6px 14px;
  }
  /* label from data-label attribute */
  .requests-table td[data-label]::before {
    content: attr(data-label);
    font-weight: 700;
    font-size: 12.5px;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--text-muted);
  }
}

/* --------------------------------------------------------------------------
   17. Utilities
   -------------------------------------------------------------------------- */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
[hidden] { display: none !important; }

/* Povinná vs. volitelná pole — hvězdička u povinných, "(optional)" u volitelných */
.form-legend {
  font-size: 14px;
  color: var(--text-muted);
  margin: 0 0 16px;
}
.req-mark {
  color: var(--brand-accent-dark);
  font-weight: 700;
}
.opt-mark {
  color: var(--text-muted);
  font-weight: 400;
  font-size: 13px;
}

.nowrap { white-space: nowrap; }
