/* Protagonet – mobile-first stylesheet, ported from the design mockup.
   No inline styles anywhere (strict CSP), so all variants live here. */

/* ---------------------------------------------------------------- fonts (self-hosted, OFL) */
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-display: swap;
  font-weight: 400 900;
  src: url(../fonts/playfair-display-latin-wght-normal.woff2) format('woff2');
}
@font-face {
  font-family: 'Playfair Display';
  font-style: italic;
  font-display: swap;
  font-weight: 400 900;
  src: url(../fonts/playfair-display-latin-wght-italic.woff2) format('woff2');
}
@font-face {
  font-family: 'Source Serif 4';
  font-style: normal;
  font-display: swap;
  font-weight: 200 900;
  src: url(../fonts/source-serif-4-latin-wght-normal.woff2) format('woff2');
}
@font-face {
  font-family: 'Source Serif 4';
  font-style: italic;
  font-display: swap;
  font-weight: 200 900;
  src: url(../fonts/source-serif-4-latin-wght-italic.woff2) format('woff2');
}

/* ---------------------------------------------------------------- tokens */
:root {
  --cream: #f5f0e8;
  --warm-white: #faf7f2;
  --ink: #1a1410;
  --brown: #5c3d2e;
  --amber: #d4853a;
  --amber-light: #f0b870;
  --amber-strong: #b8691f;   /* large amber text on light backgrounds */
  --amber-text: #8f5114;     /* small amber text on light backgrounds (WCAG AA) */
  --sage: #7a9e7e;
  --sage-light: #c8ddc9;
  --sage-text: #3f6b45;
  --dust: #e8e0d0;
  --muted: #6f6153;          /* darker than the mockup for AA contrast */
  --muted-on-dark: #b9ab99;
  --red: #c0392b;
  --red-text: #a93226;
  --plum: #9b59b6;
  --blue: #2980b9;
  --white: #fff;
  --font-body: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  --font-display: 'Playfair Display', Georgia, serif;
  --header-h: 56px;
  --tabbar-h: 62px;
  --radius: 12px;
  --gutter: 1rem;
}

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

html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 1rem); }

body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--ink);
  min-height: 100vh;
  line-height: 1.5;
  display: flex;
  flex-direction: column;
}
body.has-tabbar { padding-bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom, 0px)); }

main { flex: 1; width: 100%; }

a { color: var(--brown); }
a:hover { color: var(--amber-text); }
img, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
ul, ol { list-style: none; }
fieldset { border: none; min-width: 0; }
legend { padding: 0; }

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

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0);
  white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 0.5rem; top: -3rem;
  background: var(--amber); color: var(--ink);
  padding: 0.5rem 1rem; border-radius: 8px; z-index: 1000;
  font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 0.5rem; }

.hp-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.container { width: 100%; max-width: 1100px; margin: 0 auto; padding: 0 var(--gutter); }
.page { padding: 1.5rem var(--gutter) 3rem; max-width: 1100px; margin: 0 auto; width: 100%; }
.page-narrow { padding: 1.5rem var(--gutter) 3rem; max-width: 720px; margin: 0 auto; width: 100%; }

.text-muted { color: var(--muted); }
.small { font-size: 0.85rem; }
.tiny { font-size: 0.75rem; }
.center { text-align: center; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.stack > * + * { margin-top: 0.75rem; }
.row { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }
.row-end { justify-content: flex-end; }
.row-center { justify-content: center; }
.row-between { justify-content: space-between; }
.nowrap { white-space: nowrap; }
.js .js-hidden { display: none !important; }

/* ---------------------------------------------------------------- header / navigation */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--ink);
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem;
  padding: 0 var(--gutter);
}

.logo {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--amber-light);
  letter-spacing: 0.04em;
  text-decoration: none;
  white-space: nowrap;
}
.logo span { color: var(--cream); font-style: italic; }
.logo:hover { color: var(--amber-light); }

.nav-tabs { display: none; height: 100%; }
.nav-tab {
  padding: 0 1.1rem;
  color: var(--dust);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  height: 100%;
  display: flex; align-items: center; gap: 0.35rem;
  border-bottom: 3px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.nav-tab:hover { color: var(--amber-light); }
.nav-tab.active { color: var(--amber-light); border-bottom-color: var(--amber); }

.nav-right { display: flex; align-items: center; gap: 0.6rem; }

.badge-points {
  background: var(--amber);
  color: var(--ink);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
  text-decoration: none;
  white-space: nowrap;
}
.badge-points:hover { color: var(--ink); background: var(--amber-light); }

.btn-nav-login, .btn-nav-register {
  font-size: 0.82rem;
  padding: 7px 12px;
  border-radius: 6px;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.2s;
}
.btn-nav-login { color: var(--dust); border: 1px solid rgba(255, 255, 255, 0.25); }
.btn-nav-login:hover { border-color: var(--amber-light); color: var(--amber-light); }
.btn-nav-register { background: var(--amber); color: var(--ink); font-weight: 600; }
.btn-nav-register:hover { background: var(--amber-light); color: var(--ink); }

/* bottom tab bar (phones, logged in) */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 100;
  background: var(--ink);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
.tab {
  flex: 1;
  height: var(--tabbar-h);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  color: var(--muted-on-dark);
  text-decoration: none;
  font-size: 0.7rem;
  letter-spacing: 0.03em;
  border-top: 3px solid transparent;
}
.tab-icon { font-size: 1.2rem; line-height: 1; }
.tab.active { color: var(--amber-light); border-top-color: var(--amber); }
.tab:hover { color: var(--amber-light); }

/* ---------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 44px;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: all 0.2s;
  text-align: center;
  line-height: 1.2;
}
.btn-primary { background: var(--amber); color: var(--ink); border-color: var(--amber); }
.btn-primary:hover { background: var(--amber-light); border-color: var(--amber-light); color: var(--ink); }
.btn-secondary { background: transparent; color: var(--brown); border-color: var(--brown); font-weight: 400; }
.btn-secondary:hover { background: var(--warm-white); color: var(--brown); }
.btn-dark { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.btn-dark:hover { background: var(--brown); border-color: var(--brown); color: var(--cream); }
.btn-danger { background: var(--red); color: var(--white); border-color: var(--red); }
.btn-danger:hover { background: var(--red-text); color: var(--white); }
.btn-ghost { background: transparent; color: var(--muted); border-color: transparent; font-weight: 400; text-decoration: underline; padding-left: 0.5rem; padding-right: 0.5rem; }
.btn-ghost:hover { color: var(--brown); }
.btn-small { min-height: 36px; padding: 6px 14px; font-size: 0.82rem; }
.btn-block { width: 100%; }
.btn:disabled, .btn[aria-disabled="true"] { opacity: 0.55; cursor: not-allowed; }

.link-button {
  background: none; border: none; padding: 0; cursor: pointer;
  color: var(--brown); text-decoration: underline; font-size: inherit;
}
.link-button:hover { color: var(--amber-text); }
.inline-form { display: inline; }

/* ---------------------------------------------------------------- forms */
.field { margin-bottom: 1.1rem; }
.form-label {
  display: block;
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.4rem;
  font-weight: 600;
}
.form-input, .form-textarea, .form-select {
  width: 100%;
  min-height: 46px;
  padding: 10px 14px;
  border: 1.5px solid var(--dust);
  border-radius: 8px;
  font-size: 1rem; /* 16px avoids iOS zoom on focus */
  background: var(--white);
  transition: border-color 0.2s;
}
.form-input:focus, .form-textarea:focus, .form-select:focus { outline: none; border-color: var(--amber); box-shadow: 0 0 0 3px rgba(212, 133, 58, 0.2); }
.form-textarea { resize: vertical; min-height: 110px; line-height: 1.5; }
.form-select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 2.2rem; }
.is-invalid { border-color: var(--red) !important; }
.field-error { color: var(--red-text); font-size: 0.85rem; margin-top: 0.35rem; }
.field-hint { color: var(--muted); font-size: 0.82rem; margin-top: 0.35rem; line-height: 1.45; }
.form-error-box {
  background: #fdecea; border: 1px solid #f5c6c0; color: var(--red-text);
  border-radius: 10px; padding: 0.85rem 1rem; margin-bottom: 1.25rem; font-size: 0.92rem;
}

.form-row { display: grid; grid-template-columns: 1fr; gap: 0 1rem; }

/* chips (radio / checkbox groups without JS) */
.chip-group { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip span {
  display: inline-flex; align-items: center; gap: 0.3rem;
  min-height: 38px;
  padding: 6px 15px;
  border-radius: 20px;
  border: 1.5px solid var(--dust);
  background: var(--white);
  color: var(--muted);
  font-size: 0.9rem;
  transition: all 0.2s;
}
.chip:hover span { border-color: var(--amber-light); color: var(--brown); }
.chip input:checked + span { background: var(--brown); border-color: var(--brown); color: var(--white); }
.chip input:focus-visible + span { outline: 3px solid var(--amber); outline-offset: 2px; }

.chip-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.5rem; }
.chip-grid .chip span { width: 100%; justify-content: center; border-radius: 8px; text-align: center; }

.radio-row {
  display: flex; align-items: flex-start; gap: 0.65rem;
  padding: 0.6rem 0.8rem;
  border: 1px solid var(--dust); border-radius: 8px;
  background: var(--white); cursor: pointer; font-size: 0.95rem;
}
.radio-row input { margin-top: 4px; accent-color: var(--amber); width: 18px; height: 18px; flex-shrink: 0; }
.radio-row:has(input:checked) { border-color: var(--amber); background: #fffaf3; }

.check-row { display: flex; align-items: flex-start; gap: 0.7rem; margin-bottom: 1rem; }
.check-row input[type="checkbox"] { margin-top: 4px; accent-color: var(--amber); width: 18px; height: 18px; flex-shrink: 0; }
.check-row label { font-size: 0.92rem; color: var(--muted); line-height: 1.5; }

.form-card {
  background: var(--white);
  border-radius: 14px;
  padding: 1.25rem;
  border: 1px solid var(--dust);
  margin-bottom: 1.25rem;
}
.form-card-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--brown);
  margin-bottom: 1.1rem;
  padding-bottom: 0.7rem;
  border-bottom: 1px solid var(--dust);
}
.form-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: flex-end; margin-top: 0.5rem; }

.page-title { font-family: var(--font-display); font-size: 1.75rem; color: var(--brown); line-height: 1.2; margin-bottom: 0.4rem; }
.page-sub { color: var(--muted); font-size: 0.98rem; margin-bottom: 1.75rem; line-height: 1.6; }
.section-title { font-family: var(--font-display); font-size: 1.3rem; color: var(--brown); }

.notice {
  background: #fff8ed;
  border-left: 3px solid var(--amber);
  border-radius: 0 10px 10px 0;
  padding: 0.85rem 1rem;
  font-size: 0.92rem;
  color: var(--brown);
  line-height: 1.6;
}
.notice-success { background: #eef6ef; border-left-color: var(--sage); color: var(--sage-text); }
.notice-muted { background: var(--warm-white); border-left-color: var(--dust); color: var(--muted); }

/* ---------------------------------------------------------------- avatars */
.avatar {
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%; color: var(--white); font-weight: 600; text-decoration: none; flex-shrink: 0;
  width: 36px; height: 36px; font-size: 0.85rem;
}
.avatar:hover { color: var(--white); }
.avatar-sm { width: 28px; height: 28px; font-size: 0.7rem; }
.avatar-lg { width: 80px; height: 80px; font-size: 1.8rem; font-family: var(--font-display); border: 4px solid var(--white); box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15); }
.av-0 { background: #7a9e7e; } .av-1 { background: #c0392b; } .av-2 { background: #b8691f; } .av-3 { background: #27ae60; }
.av-4 { background: #9b59b6; } .av-5 { background: #2980b9; } .av-6 { background: #5c3d2e; } .av-7 { background: #16697a; }

/* ---------------------------------------------------------------- toast */
.toast {
  position: fixed; z-index: 999;
  left: 0.75rem; right: 0.75rem;
  bottom: 0.75rem;
  background: var(--ink); color: var(--cream);
  padding: 0.9rem 1.1rem;
  border-radius: 12px;
  font-size: 0.92rem;
  display: flex; align-items: flex-start; gap: 0.75rem;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
  border-left: 4px solid var(--amber);
  animation: slideUp 0.3s ease;
}
.has-tabbar .toast { bottom: calc(var(--tabbar-h) + 0.75rem + env(safe-area-inset-bottom, 0px)); }
.toast-success { border-left-color: var(--sage); }
.toast-error { border-left-color: var(--red); }
.toast-text { flex: 1; line-height: 1.45; }
.toast-close { background: none; border: none; color: var(--muted-on-dark); font-size: 1.2rem; cursor: pointer; line-height: 1; padding: 0 0.2rem; }
.toast.hide { display: none; }

@keyframes slideUp { from { transform: translateY(16px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }

/* ---------------------------------------------------------------- landing */
.landing-hero {
  background: var(--ink);
  min-height: calc(88vh - var(--header-h));
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
  padding: 3.5rem var(--gutter);
  position: relative; overflow: hidden;
}
.landing-hero::before {
  content: '';
  position: absolute; width: 600px; height: 600px; border-radius: 50%;
  background: radial-gradient(circle, rgba(212, 133, 58, 0.12) 0%, transparent 70%);
  top: 50%; left: 50%; transform: translate(-50%, -50%);
  pointer-events: none;
}
.landing-eyebrow { font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--amber); margin-bottom: 1.25rem; position: relative; }
.landing-h1 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 8vw, 4.5rem);
  color: var(--cream);
  line-height: 1.1;
  max-width: 720px;
  margin-bottom: 1.25rem;
  position: relative;
}
.landing-h1 em { color: var(--amber-light); font-style: italic; }
.landing-p { color: rgba(245, 240, 232, 0.72); font-size: 1.05rem; max-width: 500px; line-height: 1.7; margin-bottom: 2rem; position: relative; }
.landing-btns { display: flex; gap: 0.75rem; flex-wrap: wrap; justify-content: center; position: relative; width: 100%; }
.landing-btns .btn { min-width: 220px; }
.btn-landing-sec { background: transparent; color: var(--cream); border-color: rgba(255, 255, 255, 0.25); font-weight: 400; }
.btn-landing-sec:hover { border-color: var(--amber-light); color: var(--amber-light); }
.landing-stat { margin-top: 1.75rem; color: var(--muted-on-dark); font-size: 0.85rem; position: relative; }

.how-it-works { background: var(--cream); padding: 3.5rem var(--gutter); }
.how-title { font-family: var(--font-display); font-size: 1.8rem; text-align: center; color: var(--brown); margin-bottom: 2.25rem; }
.steps-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; max-width: 960px; margin: 0 auto; }
.step-card { text-align: center; }
.step-num {
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--amber); color: var(--ink);
  font-family: var(--font-display); font-size: 1.4rem;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 0.9rem;
}
.step-title { font-family: var(--font-display); font-size: 1.1rem; color: var(--brown); margin-bottom: 0.4rem; }
.step-desc { font-size: 0.92rem; color: var(--muted); line-height: 1.6; max-width: 320px; margin: 0 auto; }

.landing-latest { padding: 0 var(--gutter) 3.5rem; max-width: 1100px; margin: 0 auto; width: 100%; }
.landing-trust { background: var(--white); border-top: 1px solid var(--dust); border-bottom: 1px solid var(--dust); padding: 2.5rem var(--gutter); }
.trust-grid { display: grid; grid-template-columns: 1fr; gap: 1.25rem; max-width: 960px; margin: 0 auto; }
.trust-item { display: flex; gap: 0.85rem; align-items: flex-start; }
.trust-icon { font-size: 1.5rem; line-height: 1; }
.trust-title { font-weight: 600; color: var(--brown); margin-bottom: 0.2rem; }
.trust-text { font-size: 0.9rem; color: var(--muted); line-height: 1.55; }

/* ---------------------------------------------------------------- feed */
.dashboard-hero {
  background: var(--ink);
  color: var(--cream);
  padding: 2rem var(--gutter) 1.75rem;
  position: relative; overflow: hidden;
}
.dashboard-hero::before {
  content: '\275D';
  font-family: var(--font-display);
  font-size: 16rem;
  position: absolute; top: -4rem; right: -1.5rem;
  color: rgba(255, 255, 255, 0.04);
  line-height: 1; pointer-events: none;
}
.hero-inner { max-width: 1100px; margin: 0 auto; position: relative; }
.hero-label { font-size: 0.72rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--amber-light); margin-bottom: 0.5rem; }
.hero-title { font-family: var(--font-display); font-size: 1.85rem; line-height: 1.2; margin-bottom: 0.65rem; }
.hero-sub { color: var(--muted-on-dark); font-size: 0.95rem; max-width: 520px; line-height: 1.6; }
.stats-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.75rem; margin-top: 1.5rem; }
.stat-num { font-family: var(--font-display); font-size: 1.8rem; color: var(--amber-light); line-height: 1; }
.stat-label { font-size: 0.62rem; color: var(--muted-on-dark); letter-spacing: 0.06em; text-transform: uppercase; margin-top: 0.35rem; line-height: 1.3; }

.section-header { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-bottom: 1rem; flex-wrap: wrap; }
.section-count { font-size: 0.85rem; color: var(--muted); }

.feed-tools { display: grid; grid-template-columns: 1fr; gap: 0.6rem; margin-bottom: 1rem; }
.feed-tools .form-input, .feed-tools .form-select { min-height: 44px; }

.filter-row {
  display: flex; gap: 0.5rem;
  margin: 0 calc(-1 * var(--gutter)) 1.25rem;
  padding: 0 var(--gutter) 0.25rem;
  overflow-x: auto; scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.filter-row::-webkit-scrollbar { display: none; }
.filter-chip {
  flex-shrink: 0;
  padding: 7px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
  border: 1.5px solid var(--dust);
  background: var(--white);
  color: var(--muted);
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.2s;
}
.filter-chip:hover, .filter-chip.active { background: var(--amber); border-color: var(--amber); color: var(--ink); }

.cards-grid { display: grid; grid-template-columns: 1fr; gap: 1rem; }

.request-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.25rem;
  border: 1px solid var(--dust);
  position: relative; overflow: hidden;
  display: flex; flex-direction: column;
  color: inherit; text-decoration: none;
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}
.request-card:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1); border-color: var(--amber-light); color: inherit; }
.request-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: var(--amber); }
.stripe-sage::before { background: var(--sage); }
.stripe-amber::before { background: var(--amber); }
.stripe-brown::before { background: var(--brown); }
.stripe-plum::before { background: var(--plum); }
.stripe-blue::before { background: var(--blue); }
.stripe-red::before { background: var(--red); }

.card-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 0.75rem; margin-bottom: 0.7rem; }
.card-category { font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.card-reward {
  background: var(--cream);
  border: 1px solid var(--amber-light);
  color: var(--brown);
  font-size: 0.78rem; font-weight: 600;
  padding: 3px 10px; border-radius: 20px; white-space: nowrap;
}
.card-title { font-family: var(--font-display); font-size: 1.08rem; line-height: 1.4; margin-bottom: 0.55rem; color: var(--ink); }
.card-desc { font-size: 0.9rem; color: var(--muted); line-height: 1.55; margin-bottom: 0.8rem; flex: 1; }
.card-meta { font-size: 0.8rem; color: var(--muted); display: flex; gap: 0.9rem; flex-wrap: wrap; }
.card-footer { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; margin-top: 0.85rem; padding-top: 0.85rem; border-top: 1px solid var(--cream); }
.journalist-info { display: flex; align-items: center; gap: 0.55rem; min-width: 0; }
.journalist-name { font-size: 0.82rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.deadline { font-size: 0.8rem; white-space: nowrap; font-weight: 600; }
.deadline.urgent, .deadline.expired { color: var(--red-text); }
.deadline.ok { color: var(--sage-text); }

.empty {
  background: var(--white);
  border: 1px dashed var(--dust);
  border-radius: var(--radius);
  padding: 2rem 1.25rem;
  text-align: center;
  color: var(--muted);
}
.empty-icon { font-size: 2rem; margin-bottom: 0.5rem; }

.pagination { display: flex; justify-content: center; align-items: center; gap: 0.75rem; margin-top: 1.75rem; font-size: 0.9rem; color: var(--muted); }

/* ---------------------------------------------------------------- request detail */
.breadcrumb { font-size: 0.88rem; margin-bottom: 1rem; }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--brown); }

.detail-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.25rem; align-items: start; }
.detail-grid > *, .profil-body > * { min-width: 0; }
.panel {
  background: var(--white);
  border: 1px solid var(--dust);
  border-radius: 14px;
  padding: 1.25rem;
}
.panel + .panel { margin-top: 1.25rem; }
.panel-title { font-family: var(--font-display); font-size: 1.15rem; color: var(--brown); margin-bottom: 0.9rem; }
.detail-title { font-family: var(--font-display); font-size: 1.6rem; line-height: 1.25; color: var(--ink); margin: 0.4rem 0 0.9rem; }
.detail-desc { color: #3d332b; line-height: 1.7; font-size: 1rem; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; margin-top: 1.25rem; }
.fact { background: var(--warm-white); border-radius: 10px; padding: 0.7rem 0.85rem; }
.fact-label { font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.fact-value { font-weight: 600; color: var(--ink); margin-top: 0.15rem; }
.fact-value.amber { color: var(--amber-text); }

.status-pill {
  display: inline-flex; align-items: center; gap: 0.3rem;
  font-size: 0.72rem; font-weight: 600;
  padding: 3px 10px; border-radius: 20px;
  white-space: nowrap;
}
.status-pill.open, .status-pill.pending { background: #fef3e2; color: #7a4200; }
.status-pill.success, .status-pill.published { background: #d4f0d6; color: #1a5c2e; }
.status-pill.closed, .status-pill.rejected { background: #eee9e1; color: var(--muted); }
.status-pill.info { background: #e3eef8; color: #1d4f7a; }

.tip-card { border: 1px solid var(--dust); border-radius: 12px; padding: 1rem; background: var(--warm-white); }
.tip-card + .tip-card { margin-top: 0.85rem; }
.tip-card.is-rejected { opacity: 0.7; }
.tip-card.is-awarded { border-color: var(--sage); background: #f3f9f3; }
.tip-head { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; flex-wrap: wrap; margin-bottom: 0.65rem; }
.tip-who { display: flex; align-items: center; gap: 0.55rem; font-size: 0.9rem; }
.tip-block { margin-top: 0.6rem; }
.tip-block-label { font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.2rem; }
.tip-text { font-size: 0.95rem; line-height: 1.6; }
.contact-box { background: var(--white); border: 1px dashed var(--amber); border-radius: 8px; padding: 0.6rem 0.8rem; font-size: 0.95rem; }
.tip-actions { margin-top: 0.9rem; display: grid; gap: 0.6rem; }
.tip-actions .form-textarea { min-height: 70px; }

details.disclosure { border-top: 1px solid var(--dust); margin-top: 0.9rem; padding-top: 0.6rem; }
details.disclosure summary { cursor: pointer; color: var(--brown); font-size: 0.9rem; }

/* star rating input (radio based, works without JS) */
.star-input { display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; gap: 0.15rem; }
.star-input input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.star-input label { font-size: 1.7rem; color: var(--dust); cursor: pointer; line-height: 1; padding: 0 0.1rem; }
.star-input input:checked ~ label, .star-input label:hover, .star-input label:hover ~ label { color: var(--amber); }
.star-input input:focus-visible + label { outline: 3px solid var(--amber); outline-offset: 2px; border-radius: 4px; }

/* ---------------------------------------------------------------- points slider (new request) */
.slider-wrap { margin-bottom: 0.5rem; }
.points-slider {
  width: 100%; height: 6px;
  -webkit-appearance: none; appearance: none;
  background: var(--dust);
  border-radius: 3px; outline: none; cursor: pointer;
  margin: 0.75rem 0 0.4rem;
}
.points-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--amber); border: 3px solid var(--white);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25); cursor: pointer;
}
.points-slider::-moz-range-thumb {
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--amber); border: 3px solid var(--white);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25); cursor: pointer;
}
.slider-labels { display: flex; justify-content: space-between; font-size: 0.75rem; color: var(--muted); padding: 0 2px; }

.reward-preview-box {
  background: var(--cream);
  border: 1.5px solid var(--amber-light);
  border-radius: 12px;
  padding: 1rem;
  display: flex; align-items: center; gap: 1rem;
  margin: 1rem 0;
}
.reward-pts-big { font-family: var(--font-display); font-size: 2.5rem; color: var(--amber-strong); line-height: 1; }
.reward-pts-label { font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.reward-preview-divider { width: 1px; align-self: stretch; background: var(--dust); flex-shrink: 0; }
.reward-equiv-note { font-size: 0.85rem; color: var(--muted); line-height: 1.5; }

.tier-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.5rem; margin-top: 0.5rem; }
.tier {
  background: var(--white);
  border: 1.5px solid var(--dust);
  border-radius: 10px;
  padding: 0.6rem 0.3rem;
  text-align: center;
  opacity: 0.55;
  transition: all 0.2s;
}
.tier.active { border-color: var(--amber); background: #fffaf3; opacity: 1; box-shadow: 0 4px 12px rgba(212, 133, 58, 0.15); }
.tier-icon { font-size: 1.3rem; }
.tier-name { font-size: 0.78rem; font-weight: 600; color: var(--brown); margin-top: 2px; }
.tier-range { font-size: 0.66rem; color: var(--muted); margin-top: 2px; }

/* ---------------------------------------------------------------- profile */
.profil-cover { height: 110px; position: relative; }
.community-cover { background: linear-gradient(135deg, #3d2a1e 0%, #5c3d2e 40%, #7a9e7e 100%); }
.journalist-cover { background: linear-gradient(135deg, #1a1410 0%, #2c1f14 50%, #5c3d2e 100%); }
.profil-public-url { position: absolute; bottom: 0.6rem; right: var(--gutter); font-size: 0.72rem; color: rgba(255, 255, 255, 0.5); letter-spacing: 0.04em; }

.profil-identity-bar {
  background: var(--white);
  padding: 0 var(--gutter) 1.1rem;
  display: flex; flex-wrap: wrap; align-items: flex-start; gap: 0.9rem 1.25rem;
  border-bottom: 1px solid var(--dust);
}
.profil-identity-bar .avatar-lg { margin-top: -36px; position: relative; z-index: 1; }
.profil-identity-info { flex: 1; min-width: 200px; padding-top: 0.6rem; }
.profil-identity-name { font-family: var(--font-display); font-size: 1.45rem; color: var(--ink); display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.profil-identity-meta { font-size: 0.88rem; color: var(--muted); margin-top: 0.25rem; }
.profil-identity-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; width: 100%; }

.verified-badge { background: linear-gradient(135deg, #1a5c2e, #27ae60); color: var(--white); font-family: var(--font-body); font-size: 0.7rem; padding: 3px 10px; border-radius: 20px; font-weight: 600; }
.public-badge, .private-badge { background: var(--cream); border: 1px solid var(--dust); color: var(--muted); font-family: var(--font-body); font-size: 0.7rem; padding: 3px 9px; border-radius: 20px; }

.level-badge {
  display: inline-flex; align-items: center; gap: 0.4rem; flex-wrap: wrap;
  background: linear-gradient(135deg, #f0e6c8, #fdf6e3);
  border: 1px solid var(--amber-light);
  border-radius: 20px;
  padding: 4px 12px; margin-top: 0.5rem;
  font-size: 0.8rem;
}
.level-name { font-weight: 600; color: var(--brown); }
.level-progress-text { color: var(--muted); font-size: 0.74rem; }

.tag {
  display: inline-block;
  background: var(--cream);
  border: 1px solid var(--dust);
  border-radius: 20px;
  padding: 4px 12px;
  font-size: 0.82rem;
  color: var(--brown);
  margin: 3px;
}
.tag-sm { font-size: 0.72rem; padding: 2px 9px; margin: 2px 2px 0 0; }

.profil-body { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.25rem; padding: 1.25rem var(--gutter) 3rem; max-width: 1100px; margin: 0 auto; width: 100%; align-items: start; }
.sidebar-card { background: var(--white); border: 1px solid var(--dust); border-radius: 12px; padding: 1.1rem 1.2rem; }
.sidebar-card + .sidebar-card { margin-top: 1rem; }
.sidebar-card-title { font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.75rem; padding-bottom: 0.5rem; border-bottom: 1px solid var(--dust); font-weight: 600; }

.points-card { background: var(--ink); color: var(--white); border-radius: 14px; padding: 1.25rem 1.4rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.points-big { font-family: var(--font-display); font-size: 2.6rem; color: var(--amber-light); line-height: 1; }
.points-label { font-size: 0.74rem; color: var(--muted-on-dark); letter-spacing: 0.1em; text-transform: uppercase; margin-top: 0.3rem; }
.points-side { text-align: right; }
.points-side-num { font-family: var(--font-display); font-size: 1.6rem; color: var(--amber-light); }
.points-side-label { font-size: 0.72rem; color: var(--muted-on-dark); }

progress.bar {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 8px; border: none; border-radius: 4px;
  background: var(--cream); overflow: hidden; display: block;
}
progress.bar::-webkit-progress-bar { background: var(--cream); border-radius: 4px; }
progress.bar::-webkit-progress-value { background: linear-gradient(to right, var(--amber), var(--amber-light)); border-radius: 4px; }
progress.bar::-moz-progress-bar { background: linear-gradient(to right, var(--amber), var(--amber-light)); border-radius: 4px; }
progress.bar-dark { background: rgba(255, 255, 255, 0.15); max-width: 220px; height: 6px; margin-top: 0.7rem; }
progress.bar-dark::-webkit-progress-bar { background: rgba(255, 255, 255, 0.15); }
.bar-caption { font-size: 0.74rem; color: var(--muted-on-dark); margin-top: 4px; }

.level-overview { display: flex; align-items: center; justify-content: center; margin-bottom: 0.75rem; }
.level-step { text-align: center; opacity: 0.4; flex: 1; }
.level-step.done { opacity: 0.75; }
.level-step.current { opacity: 1; }
.level-step-icon { font-size: 1.5rem; }
.level-step-label { font-size: 0.74rem; font-weight: 600; color: var(--brown); margin-top: 3px; }
.level-step-pts { font-size: 0.68rem; color: var(--muted); }
.level-connector { width: 18px; height: 2px; background: var(--dust); flex-shrink: 0; }
.level-connector.done { background: var(--amber-light); }

.stat-grid-mini { display: grid; grid-template-columns: 1fr 1fr; gap: 0.85rem; }
.stat-mini { text-align: center; }
.stat-mini-num { font-family: var(--font-display); font-size: 1.4rem; color: var(--brown); line-height: 1; }
.stat-mini-label { font-size: 0.72rem; color: var(--muted); margin-top: 4px; line-height: 1.3; }

.info-row { display: flex; justify-content: space-between; gap: 1rem; padding: 0.45rem 0; border-bottom: 1px solid var(--cream); font-size: 0.9rem; }
.info-row:last-child { border-bottom: none; }
.info-label { color: var(--muted); }
.info-value { color: var(--ink); font-weight: 600; text-align: right; }
.verified-small { color: var(--sage-text); }

.profil-tabs { display: flex; border-bottom: 2px solid var(--dust); margin-bottom: 1.1rem; overflow-x: auto; scrollbar-width: none; }
.profil-tabs::-webkit-scrollbar { display: none; }
.profil-tab {
  padding: 0.65rem 1rem;
  font-size: 0.92rem;
  color: var(--muted);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  white-space: nowrap;
}
.profil-tab:hover { color: var(--brown); }
.profil-tab.active { color: var(--brown); border-bottom-color: var(--amber); font-weight: 600; }

.list-item {
  background: var(--white);
  border: 1px solid var(--dust);
  border-radius: 10px;
  padding: 0.9rem 1rem;
  display: flex; align-items: flex-start; gap: 0.85rem;
  margin-bottom: 0.7rem;
}
.list-item.status-success { border-left: 3px solid var(--sage); }
.list-item.status-pending { border-left: 3px solid var(--amber); }
.list-item.status-rejected { border-left: 3px solid #ccc; }
.list-item.status-rejected .list-main { opacity: 0.75; }
.list-main { flex: 1; min-width: 0; }
.list-title { font-size: 0.95rem; color: var(--ink); font-weight: 600; margin-bottom: 0.2rem; }
.list-title a { color: inherit; text-decoration: none; }
.list-title a:hover { color: var(--amber-text); }
.list-meta { font-size: 0.8rem; color: var(--muted); }
.list-side { text-align: right; flex-shrink: 0; font-family: var(--font-display); font-size: 1rem; color: var(--sage-text); font-weight: 600; }
.list-side.pending { color: var(--amber-text); }
.list-side.muted { color: var(--muted); }
.list-side.negative { color: var(--red-text); }
.list-side-sub { font-family: var(--font-body); font-size: 0.7rem; color: var(--muted); font-weight: 400; margin-top: 2px; }
.status-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; margin-top: 6px; }
.status-dot.success { background: var(--sage); }
.status-dot.pending { background: var(--amber); }
.status-dot.rejected { background: #ccc; }
.archive-desc { font-size: 0.9rem; color: var(--muted); line-height: 1.55; margin-top: 0.4rem; }
.archive-pub { font-size: 0.86rem; margin-top: 0.45rem; }
.list-note { margin-top: 0.5rem; font-size: 0.86rem; color: var(--brown); background: var(--warm-white); border-radius: 8px; padding: 0.5rem 0.7rem; }

.activity-icon { width: 38px; height: 38px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1rem; flex-shrink: 0; background: #d4f0d6; }
.activity-icon.bonus { background: #fdf0f0; }
.activity-icon.minus { background: #e8f4fd; }

.points-chart-card { background: var(--white); border: 1px solid var(--dust); border-radius: 12px; padding: 1.1rem; margin-bottom: 1.25rem; }
.points-chart-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; margin-bottom: 0.75rem; }
.points-chart-title { font-family: var(--font-display); font-size: 1rem; color: var(--brown); }
.points-chart-sub { font-size: 0.75rem; color: var(--muted); }
.points-chart-total { font-family: var(--font-display); font-size: 1.05rem; color: var(--amber-text); white-space: nowrap; }
.points-chart-svg { width: 100%; height: 100px; overflow: visible; }
.chart-grid { stroke: var(--dust); stroke-width: 1; }
.chart-area { fill: rgba(212, 133, 58, 0.18); }
.chart-line { fill: none; stroke: var(--amber); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.chart-dot { fill: var(--amber); }
.points-chart-labels { display: flex; justify-content: space-between; font-size: 0.7rem; color: var(--muted); margin-top: 0.4rem; }

.review-summary { display: flex; align-items: center; gap: 1rem; background: var(--white); border: 1px solid var(--dust); border-radius: 12px; padding: 1rem 1.2rem; }
.review-score { font-family: var(--font-display); font-size: 2.8rem; color: var(--brown); line-height: 1; }
.review-stars { color: var(--amber); font-size: 1.1rem; letter-spacing: 2px; }
.review-count { font-size: 0.8rem; color: var(--muted); margin-top: 3px; }
.review-bars { background: var(--white); border: 1px solid var(--dust); border-radius: 12px; padding: 1rem 1.2rem; margin-top: 0.75rem; }
.review-bar-row { display: grid; grid-template-columns: 2.2rem 1fr 1.5rem; align-items: center; gap: 0.6rem; margin-bottom: 0.45rem; font-size: 0.8rem; color: var(--muted); }
.review-bar-row:last-child { margin-bottom: 0; }

.quote { background: var(--white); border: 1px solid var(--dust); border-radius: 12px; padding: 1.1rem 1.2rem; position: relative; }
.quote + .quote { margin-top: 0.85rem; }
.quote::before { content: '\275D'; font-family: var(--font-display); font-size: 2.6rem; color: var(--amber-light); opacity: 0.45; position: absolute; top: -0.4rem; left: 0.9rem; line-height: 1; pointer-events: none; }
.quote-text { font-size: 0.92rem; color: #4a3f36; line-height: 1.65; font-style: italic; padding-left: 0.6rem; margin-bottom: 0.7rem; }
.quote-author { display: flex; align-items: center; gap: 0.55rem; font-size: 0.8rem; color: var(--muted); flex-wrap: wrap; }
.quote-stars { color: var(--amber-text); letter-spacing: 1px; }

.review-form { background: var(--warm-white); border-radius: 10px; padding: 0.85rem; margin-top: 0.7rem; }

.anfrage-status-row { display: flex; gap: 0.5rem; margin-bottom: 1rem; overflow-x: auto; scrollbar-width: none; }
.anfrage-status-row::-webkit-scrollbar { display: none; }

/* ---------------------------------------------------------------- rewards page */
.coming-soon {
  background: var(--ink); color: var(--cream);
  border-radius: 16px; padding: 2rem 1.4rem; text-align: center;
  position: relative; overflow: hidden; margin-bottom: 1.5rem;
}
.coming-soon::before { content: ''; position: absolute; width: 420px; height: 420px; border-radius: 50%; background: radial-gradient(circle, rgba(212, 133, 58, 0.16) 0%, transparent 70%); top: 50%; left: 50%; transform: translate(-50%, -50%); pointer-events: none; }
.coming-soon > * { position: relative; }
.coming-soon-badge { display: inline-block; background: var(--amber); color: var(--ink); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; padding: 4px 12px; border-radius: 20px; margin-bottom: 1rem; }
.coming-soon h1 { font-family: var(--font-display); font-size: 1.8rem; margin-bottom: 0.6rem; }
.coming-soon p { color: var(--muted-on-dark); max-width: 460px; margin: 0 auto; line-height: 1.65; }
.teaser-grid { display: grid; grid-template-columns: 1fr; gap: 0.75rem; }
.teaser { background: var(--white); border: 1px solid var(--dust); border-radius: 12px; padding: 1rem 1.1rem; display: flex; gap: 0.85rem; align-items: center; }
.teaser-icon { width: 46px; height: 46px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.35rem; background: #fef3e2; flex-shrink: 0; }
.teaser-title { font-weight: 600; }
.teaser-text { font-size: 0.85rem; color: var(--muted); }

/* ---------------------------------------------------------------- registration / login */
.reg-outer { display: flex; min-height: calc(100vh - var(--header-h)); }
.reg-sidebar {
  display: none;
  width: 380px; flex-shrink: 0;
  background: var(--ink);
  padding: 3rem 2.5rem;
  flex-direction: column; justify-content: center;
  position: relative; overflow: hidden;
}
.reg-sidebar::before { content: '\275D'; font-family: var(--font-display); font-size: 18rem; position: absolute; bottom: -4rem; right: -3rem; color: rgba(255, 255, 255, 0.04); pointer-events: none; line-height: 1; }
.reg-sidebar-logo { font-family: var(--font-display); font-size: 1.8rem; color: var(--amber-light); margin-bottom: 2rem; }
.reg-sidebar-logo span { color: var(--cream); font-style: italic; }
.reg-sidebar-title { font-family: var(--font-display); font-size: 1.6rem; color: var(--cream); line-height: 1.3; margin-bottom: 1rem; }
.reg-sidebar-desc { font-size: 0.95rem; color: rgba(245, 240, 232, 0.65); line-height: 1.7; margin-bottom: 2rem; }
.reg-sidebar-points li { color: rgba(245, 240, 232, 0.75); font-size: 0.92rem; margin-bottom: 0.6rem; display: flex; gap: 0.6rem; }

.reg-main { flex: 1; padding: 1.75rem var(--gutter) 3rem; max-width: 600px; margin: 0 auto; width: 100%; }
.reg-title { font-family: var(--font-display); font-size: 1.7rem; color: var(--brown); margin-bottom: 0.4rem; }
.reg-sub { font-size: 0.95rem; color: var(--muted); margin-bottom: 1.5rem; line-height: 1.55; }
.reg-step + .reg-step { margin-top: 2.25rem; padding-top: 1.75rem; border-top: 1px solid var(--dust); }
.js .reg-step { display: none; }
.js .reg-step.active { display: block; animation: fadeIn 0.3s ease; }
.js .reg-step + .reg-step { margin-top: 0; padding-top: 0; border-top: none; }
.step-nav { display: flex; gap: 0.75rem; margin-top: 1.25rem; }
.step-nav .btn-primary { flex: 1; }
.no-js-only { display: block; }
.js .no-js-only { display: none; }
.js-only { display: none; }
.js .js-only { display: flex; }

.role-chooser { display: grid; grid-template-columns: 1fr; gap: 0.85rem; margin: 1.25rem 0; }
.role-card { position: relative; cursor: pointer; display: block; }
.role-card input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.role-card-body {
  display: block;
  background: var(--white);
  border: 2px solid var(--dust);
  border-radius: 16px;
  padding: 1.25rem 1.25rem 1.25rem 4.25rem;
  position: relative;
  transition: all 0.25s;
}
.role-card:hover .role-card-body { border-color: var(--amber); }
.role-card input:checked + .role-card-body { border-color: var(--amber); background: #fffaf3; box-shadow: 0 10px 30px rgba(212, 133, 58, 0.12); }
.role-card input:focus-visible + .role-card-body { outline: 3px solid var(--amber); outline-offset: 2px; }
.role-icon { position: absolute; left: 1.2rem; top: 50%; transform: translateY(-50%); font-size: 2rem; }
.role-title { font-family: var(--font-display); font-size: 1.05rem; color: var(--brown); margin-bottom: 0.2rem; display: block; }
.role-desc { font-size: 0.85rem; color: var(--muted); line-height: 1.5; display: block; }

.progress-dots { display: flex; gap: 6px; margin-bottom: 1.4rem; }
.prog-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--dust); transition: all 0.3s; }
.prog-dot.active { background: var(--amber); width: 24px; border-radius: 4px; }
.prog-dot.done { background: var(--sage); }

.verify-card { background: var(--warm-white); border: 1px dashed var(--amber); border-radius: 12px; padding: 1rem 1.1rem; margin-bottom: 1.25rem; font-size: 0.88rem; color: var(--muted); line-height: 1.6; }
.verify-card strong { color: var(--brown); }

.reg-login-hint { text-align: center; font-size: 0.9rem; color: var(--muted); margin-top: 1.25rem; }

/* ---------------------------------------------------------------- settings */
.settings-nav { display: flex; gap: 0.5rem; overflow-x: auto; margin-bottom: 1.25rem; scrollbar-width: none; }
.settings-nav::-webkit-scrollbar { display: none; }
.danger-zone { border-color: #f1c4bd; }
.danger-zone .form-card-title { color: var(--red-text); }

/* ---------------------------------------------------------------- tables (admin) */
.table-wrap { overflow-x: auto; background: var(--white); border: 1px solid var(--dust); border-radius: 12px; }
.table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
.table th, .table td { padding: 0.65rem 0.8rem; text-align: left; border-bottom: 1px solid var(--cream); vertical-align: top; }
.table th { font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); background: var(--warm-white); }
.table tr:last-child td { border-bottom: none; }
.admin-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.75rem; margin-bottom: 1.5rem; }
.admin-stat { background: var(--white); border: 1px solid var(--dust); border-radius: 12px; padding: 1rem; text-decoration: none; color: inherit; }
.admin-stat-num { font-family: var(--font-display); font-size: 1.8rem; color: var(--brown); line-height: 1; }
.admin-stat-label { font-size: 0.78rem; color: var(--muted); margin-top: 0.3rem; }
.code-box { background: var(--ink); color: var(--amber-light); border-radius: 8px; padding: 0.75rem; font-family: ui-monospace, 'Cascadia Mono', Consolas, monospace; font-size: 0.82rem; word-break: break-all; }

/* ---------------------------------------------------------------- legal pages */
.legal-wrap { max-width: 780px; margin: 0 auto; padding: 1.75rem var(--gutter) 3.5rem; width: 100%; }
.legal-title { font-family: var(--font-display); font-size: 1.9rem; color: var(--brown); margin-bottom: 0.4rem; line-height: 1.2; }
.legal-subtitle { font-size: 0.9rem; color: var(--muted); margin-bottom: 2rem; padding-bottom: 1.25rem; border-bottom: 1px solid var(--dust); }
.legal-section { margin-bottom: 1.9rem; }
.legal-section h2 { font-family: var(--font-display); font-size: 1.15rem; color: var(--brown); margin-bottom: 0.7rem; padding-bottom: 0.4rem; border-bottom: 1px solid var(--dust); }
.legal-section h3 { font-size: 1rem; color: var(--brown); margin: 1rem 0 0.4rem; }
.legal-section p { font-size: 0.95rem; color: #4a3f36; line-height: 1.75; }
.legal-section p + p { margin-top: 0.75rem; }
.legal-section a { color: var(--brown); text-decoration: underline; }
.legal-list { display: flex; flex-direction: column; gap: 0.55rem; margin-top: 0.6rem; }
.legal-list-item { display: flex; gap: 0.75rem; font-size: 0.92rem; color: #4a3f36; line-height: 1.6; background: var(--white); border: 1px solid var(--dust); border-radius: 8px; padding: 0.7rem 0.95rem; }
.legal-dot { color: var(--amber-text); font-weight: 700; flex-shrink: 0; min-width: 22px; }
.legal-highlight { background: #fff8ed; border-left: 3px solid var(--amber); border-radius: 0 8px 8px 0; padding: 0.85rem 1rem; font-size: 0.92rem; color: var(--brown); line-height: 1.65; margin-top: 0.85rem; }
.placeholder { background: #fff3cd; color: #7a5200; padding: 0 0.25rem; border-radius: 3px; }
.data-table { border: 1px solid var(--dust); border-radius: 10px; overflow: hidden; margin-top: 0.75rem; font-size: 0.86rem; background: var(--white); }
.data-row { display: grid; grid-template-columns: 1fr; gap: 0.2rem; border-bottom: 1px solid var(--dust); padding: 0.65rem 0.95rem; color: #4a3f36; }
.data-row:last-child { border-bottom: none; }
.data-row.header { display: none; background: var(--cream); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 600; color: var(--muted); }
.data-row span:first-child { font-weight: 600; color: var(--brown); }

/* ---------------------------------------------------------------- error page */
.error-wrap { max-width: 560px; margin: 0 auto; padding: 4rem var(--gutter); text-align: center; }
.error-code { font-family: var(--font-display); font-size: 4rem; color: var(--amber-strong); line-height: 1; }
.error-title { font-family: var(--font-display); font-size: 1.6rem; color: var(--brown); margin: 0.75rem 0; }
.error-text { color: var(--muted); line-height: 1.6; margin-bottom: 1.75rem; }

/* ---------------------------------------------------------------- footer */
.site-footer { background: var(--ink); color: var(--cream); padding: 2.5rem var(--gutter) 1.5rem; margin-top: 3rem; }
.footer-inner { display: grid; grid-template-columns: 1fr; gap: 1.75rem; max-width: 1100px; margin: 0 auto 1.75rem; padding-bottom: 1.75rem; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.footer-logo { font-family: var(--font-display); font-size: 1.4rem; color: var(--amber-light); margin-bottom: 0.6rem; }
.footer-logo span { color: var(--cream); font-style: italic; }
.footer-tagline { font-size: 0.88rem; color: rgba(245, 240, 232, 0.55); line-height: 1.7; }
.footer-links-title { font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255, 255, 255, 0.45); margin-bottom: 0.8rem; }
.footer-link { display: block; font-size: 0.9rem; color: rgba(245, 240, 232, 0.72); text-decoration: none; margin-bottom: 0.55rem; }
.footer-link:hover { color: var(--amber-light); }
.footer-bottom { max-width: 1100px; margin: 0 auto; font-size: 0.8rem; color: rgba(255, 255, 255, 0.45); display: flex; gap: 0.5rem 0.9rem; flex-wrap: wrap; }
.footer-bottom a { color: rgba(255, 255, 255, 0.6); text-decoration: none; }
.footer-bottom a:hover { color: var(--amber-light); }

/* ---------------------------------------------------------------- ≥ 480px */
@media (min-width: 480px) {
  .form-row { grid-template-columns: 1fr 1fr; }
  .chip-grid { grid-template-columns: repeat(3, 1fr); }
  .data-row { grid-template-columns: 1fr 2fr 1fr; gap: 1rem; }
  .data-row.header { display: grid; }
  .data-row span:first-child { font-weight: 400; color: inherit; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .profil-identity-actions { width: auto; padding-top: 0.75rem; }
}

/* ---------------------------------------------------------------- ≥ 768px (tablet / desktop) */
@media (min-width: 768px) {
  :root { --header-h: 60px; --gutter: 2rem; }
  body.has-tabbar { padding-bottom: 0; }
  .tabbar { display: none; }
  .nav-tabs { display: flex; flex: 1; justify-content: center; }
  .logo { font-size: 1.5rem; }
  .toast, .has-tabbar .toast { left: auto; right: 2rem; bottom: 2rem; max-width: 380px; }

  .page, .page-narrow { padding-top: 2.25rem; }
  .page-title { font-size: 2rem; }

  .dashboard-hero { padding: 2.75rem var(--gutter) 2.25rem; }
  .hero-title { font-size: 2.2rem; }
  .stat-num { font-size: 2rem; }
  .stats-row { display: flex; gap: 2.5rem; }
  .stat-label { font-size: 0.72rem; letter-spacing: 0.08em; }

  .feed-tools { grid-template-columns: 240px 1fr auto; }
  .filter-row { flex-wrap: wrap; overflow: visible; margin: 0 0 1.5rem; padding: 0; }
  .cards-grid { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.25rem; }

  .steps-grid { grid-template-columns: repeat(4, 1fr); }
  .trust-grid { grid-template-columns: repeat(3, 1fr); }
  .how-title { font-size: 2rem; }

  .detail-grid { grid-template-columns: minmax(0, 1fr) 340px; }
  .detail-title { font-size: 2rem; }
  .facts { grid-template-columns: repeat(4, 1fr); }

  .form-card { padding: 1.75rem 2rem; }
  .reward-preview-box { padding: 1.25rem; gap: 1.25rem; }

  .profil-cover { height: 140px; }
  .profil-identity-bar { padding: 0 max(var(--gutter), calc((100% - 1100px) / 2 + var(--gutter))) 1.25rem; }
  .profil-public-url { right: max(var(--gutter), calc((100% - 1100px) / 2 + var(--gutter))); }
  .profil-identity-name { font-size: 1.6rem; }
  .level-connector { width: 34px; }

  .role-chooser { grid-template-columns: 1fr 1fr; }
  .role-card-body { padding: 2rem 1.5rem; text-align: center; height: 100%; }
  .role-icon { position: static; transform: none; font-size: 2.5rem; margin-bottom: 0.75rem; display: block; }
  .reg-main { padding: 3rem 2.5rem; margin: 0; align-self: center; }

  .teaser-grid { grid-template-columns: 1fr 1fr; }
  .admin-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-inner { grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 2.5rem; }
  .legal-title { font-size: 2.2rem; }
}

/* ---------------------------------------------------------------- ≥ 960px */
@media (min-width: 960px) {
  .reg-sidebar { display: flex; }
  .profil-body { grid-template-columns: 290px minmax(0, 1fr); gap: 1.5rem; padding: 1.5rem 2.5rem 3rem; }
  .profil-identity-bar { padding-left: max(2.5rem, calc((100% - 1100px) / 2 + 2.5rem)); padding-right: max(2.5rem, calc((100% - 1100px) / 2 + 2.5rem)); }
  .profil-public-url { right: max(2.5rem, calc((100% - 1100px) / 2 + 2.5rem)); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

@media print {
  .site-header, .tabbar, .site-footer, .toast { display: none !important; }
  body { background: var(--white); }
}
