/* =====================================================================
   Ayiti 2054 · sistèm vizyèl "Sitadèl"
   Koulè: drapo (ble, wouj), tap-tap (jòn), palmis (vèt), wòch Sitadèl, ank 1804
   Font:  Libre Caslon Display (tit) · Public Sans (kò) · IBM Plex Mono (chif)
   Layout: header → bann tap-tap → banner → [aside | ide] → deba → 6 manda → footer
   ===================================================================== */
/* Font yo sou pwòp sèvè nou (docs/design.md §3), lisans SIL Open Font License. Sous-ansanm latin. */
@font-face { font-family: "Libre Caslon Display"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/libre-caslon-display-400.woff2") format("woff2"); }
@font-face { font-family: "Public Sans"; font-style: normal; font-weight: 400 800; font-display: swap; src: url("fonts/public-sans-var.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/ibm-plex-mono-500.woff2") format("woff2"); }

:root {
  /* Mak la (pa chanje nan mòd nwa) */
  --flag-blue: #00209F;
  --flag-red: #D21034;
  --taptap: #F4B400;
  --palm: #0B6E4F;
  --on-brand: #FFFFFF;
  --banner-sub: #DCE1F7;
  --banner-quiet: #B9C3EE;
  --banner-line: #3A4FB8;

  /* Sifas ak tèks */
  --bg: #FFFFFF;
  --surface: #FFFFFF;
  --stone: #F4F3EF;
  --ink: #0E1430;
  --ink-2: #2B3150;
  --muted: #4A4F66;
  --line: #E2E0DA;
  --line-strong: #D6D3CA;
  --link: #00209F;

  /* Tent */
  --blue-soft: #EAEDFA;
  --blue-text: #00209F;
  --yellow-soft: #FDF1CC;
  --yellow-text: #7A5600;
  --green-soft: #E3F2EC;
  --green-text: #0B6E4F;
  --red-text: #D21034;

  /* Footer */
  --foot-bg: #0E1430;
  --foot-text: #D7DAE6;
  --foot-quiet: #8F95AE;
  --foot-line: #262C4A;

  --f-display: "Libre Caslon Display", "Georgia", "Times New Roman", serif;
  --f-body: "Public Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --radius: 16px;
  --gutter: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
  color-scheme: light;
}

/* Sit la toujou an mòd klè (blan + gri Sitadèl), menm si òdinatè a an mòd nwa. */

/* ---------- Baz ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.55 var(--f-body);
  -webkit-text-size-adjust: 100%;
}
[hidden] { display: none !important; }
img { max-width: 100%; }
a { color: var(--link); }
a:hover { color: var(--flag-red); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--taptap); outline-offset: 2px; }
h1, h2, h3, h4 { text-wrap: balance; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 16px; top: -60px; background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 8px; z-index: 50; }
.skip:focus { top: 12px; }

.wrap { max-width: 1280px; margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter-r); }
@media (min-width: 900px) { .wrap { padding-left: max(32px, env(safe-area-inset-left, 0px)); padding-right: max(32px, env(safe-area-inset-right, 0px)); } }

.eyebrow { font: 500 13px/1.3 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; }
.mono { font-family: var(--f-mono); font-variant-numeric: tabular-nums; }
.h2 { margin: 0; font: 400 clamp(30px, 4vw, 40px)/1.1 var(--f-display); }
.lead { margin: 4px 0 0; color: var(--muted); max-width: 62ch; }

/* ---------- Bouton ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; border-radius: 999px; padding: 10px 20px; font-weight: 700; text-decoration: none; border: 1px solid transparent; }
.btn-red { background: var(--flag-red); color: var(--on-brand); font-weight: 800; }
.btn-red:hover { color: var(--on-brand); filter: brightness(1.08); }
.btn-blue { background: var(--flag-blue); color: var(--on-brand); }
.btn-blue:hover { color: var(--on-brand); filter: brightness(1.15); }
.btn-ghost { background: transparent; border-color: var(--line-strong); color: var(--ink); }
.btn-ghost:hover { color: var(--ink); border-color: var(--ink); }
.btn-ink { background: var(--ink); color: var(--bg); border-radius: 10px; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.link-btn { background: none; border: 0; padding: 0; font-weight: 700; font-size: 14px; color: var(--link); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: var(--bg); border-bottom: 1px solid var(--line); }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); background: var(--bg); z-index: 21; }
.site-header .wrap { display: flex; align-items: center; gap: 12px 28px; padding-block: 12px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); flex: none; }
.brand:hover { color: var(--ink); }
.flag { display: grid; grid-template-rows: 1fr 1fr; width: 34px; height: 24px; border-radius: 3px; overflow: hidden; }
.flag span:first-child { background: var(--flag-blue); }
.flag span:last-child { background: var(--flag-red); }
.brand-name { font: 400 28px/1 var(--f-display); }
.brand-name em, .year { font-style: normal; color: var(--flag-red); }
.main-nav { display: flex; flex-wrap: wrap; gap: 4px; flex: 1 1 auto; }
.main-nav a { padding: 10px 14px; border-radius: 8px; font-weight: 600; text-decoration: none; color: var(--ink); }
.main-nav a:hover { background: var(--stone); color: var(--ink); }
.main-nav a[aria-current="true"] { background: var(--blue-soft); color: var(--blue-text); font-weight: 700; }
.header-tools { display: flex; align-items: center; gap: 10px; }
.lang { display: flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.lang button { border: 0; background: transparent; padding: 8px 12px; font-size: 14px; font-weight: 600; color: var(--muted); }
.lang button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.profile-wrap { position: relative; }
.profile-menu { position: absolute; right: 0; top: calc(100% + 8px); z-index: 30; min-width: 240px; display: flex; flex-direction: column; gap: 10px; padding: 14px; background: var(--surface); border: 1px solid var(--line-strong); border-radius: 12px; box-shadow: 0 10px 30px rgba(14, 20, 48, .12); }
.profile-email { margin: 0; font-weight: 700; overflow-wrap: anywhere; }
@media (max-width: 960px) { .profile-menu { position: static; box-shadow: none; margin-top: 8px; } }
.menu-btn { display: none; width: 44px; height: 44px; border: 1px solid var(--line); background: var(--surface); border-radius: 10px; align-items: center; justify-content: center; margin-left: auto; }
.menu-btn svg { stroke: var(--ink); }

@media (max-width: 960px) {
  .menu-btn { display: inline-flex; }
  .main-nav, .header-tools { display: none; }
  .site-header.open .wrap { flex-wrap: wrap; }
  .site-header.open .main-nav { display: flex; flex-direction: column; order: 3; width: 100%; padding-bottom: 8px; }
  .site-header.open .header-tools { display: flex; order: 4; width: 100%; padding-bottom: 12px; }
  .brand-name { font-size: 24px; }
}

/* ---------- Bann tap-tap ---------- */
.taptap { display: grid; grid-template-rows: repeat(4, 4px); }
.taptap span:nth-child(1) { background: var(--flag-blue); }
.taptap span:nth-child(2) { background: var(--flag-red); }
.taptap span:nth-child(3) { background: var(--taptap); }
.taptap span:nth-child(4) { background: var(--palm); }

/* ---------- Banner ---------- */
.banner { background: var(--flag-blue); color: var(--on-brand); }
.banner .wrap { display: flex; flex-wrap: wrap; gap: 32px 40px; align-items: flex-end; padding-block: 56px 48px; }
.banner-copy { flex: 999 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.banner .eyebrow { color: var(--taptap); }
.banner h1 { margin: 0; font: 400 clamp(42px, 7vw, 92px)/.98 var(--f-display); letter-spacing: -.01em; }
.banner h1 .year { color: var(--taptap); }
.banner p { margin: 0; max-width: 58ch; font-size: 19px; color: var(--banner-sub); }
.banner-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.banner .btn-ghost { color: var(--on-brand); border-color: #8C9BE0; }
.banner .btn-ghost:hover { color: var(--on-brand); border-color: var(--on-brand); }
.stats { flex: 1 1 300px; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--banner-line); border: 1px solid var(--banner-line); border-radius: 14px; overflow: hidden; }
.stats div { background: var(--flag-blue); padding: 14px 18px; }
.stats dt { font-size: 13px; color: var(--banner-quiet); }
.stats dd { margin: 0; font: 500 34px/1.2 var(--f-mono); font-variant-numeric: tabular-nums; }
@media (max-width: 600px) {
  .banner .wrap { padding-block: 32px 28px; }
  .banner p { font-size: 17px; }
  .stats dd { font-size: 26px; }
}

/* ---------- Aside + ide ---------- */
.layout { display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-start; padding-block: 40px 24px; }
.sidebar { flex: 1 1 260px; display: flex; flex-direction: column; gap: 20px; }
.feed { flex: 999 1 600px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
@media (min-width: 961px) { .sidebar { position: sticky; top: 96px; } }

.panel { background: var(--stone); border-radius: 14px; padding: 20px; display: flex; flex-direction: column; gap: 16px; }
.panel-title { margin: 0; font: 500 13px/1.3 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.admin-queue { display: flex; flex-direction: column; gap: 12px; }
.verification-item { display: flex; flex-direction: column; gap: 8px; background: var(--surface); border: 1px solid var(--line-strong); border-radius: 12px; padding: 12px; }
.verification-head { display: flex; flex-direction: column; gap: 2px; }
.verification-head strong { font-size: 15px; }
.verification-meta { display: flex; flex-wrap: wrap; gap: 8px 12px; font-size: 12px; color: var(--muted); }
.filters-toggle { display: none; }
@media (max-width: 960px) {
  .layout { padding-block: 24px 16px; gap: 20px; }
  .filters-toggle { display: inline-flex; align-self: flex-start; }
  .sidebar .panel.filters:not(.open) { display: none; }
  /* Sou mobil: filtè yo anlè, ide yo, epi tèt chèn nan anba */
  .layout { flex-direction: column; align-items: stretch; }
  .sidebar { display: contents; }
  .feed { order: 1; flex-basis: auto; }
  .chain { order: 2; }
}

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-height: 36px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); border-radius: 999px; padding: 6px 12px; font-size: 14px; font-weight: 600; }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--bg); font-weight: 700; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 700; color: var(--muted); }
.field input:not([type="radio"]):not([type="checkbox"]), .field select, .field textarea, .input {
  font-size: 15px; font-weight: 400; color: var(--ink); background: var(--surface);
  border: 1px solid var(--line-strong); border-radius: 8px; padding: 10px 12px; width: 100%; min-height: 44px;
}
.field textarea { min-height: 88px; resize: vertical; }
fieldset.field { border: 0; padding: 0; margin: 0; gap: 8px; }
fieldset.field legend { padding: 0; margin-bottom: 6px; }
.radio { display: flex; gap: 8px; align-items: center; font-size: 15px; font-weight: 400; color: var(--ink); min-height: 32px; }
.radio input { width: 18px; height: 18px; accent-color: var(--flag-blue); }
.hint { margin: 0; font-size: 13px; font-weight: 400; color: var(--muted); }

.chain { border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; display: flex; flex-direction: column; gap: 8px; }
.chain-head { font: 500 13px/1.5 var(--f-mono); word-break: break-all; }
.chain p { margin: 0; font-size: 14px; color: var(--muted); }
.chain .link-btn { align-self: flex-start; }
.feed-tools { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

.feed-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 12px; }
.sort { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; color: var(--muted); }
.sort select { width: auto; min-height: 40px; padding: 6px 10px; }
.search { flex: 1 1 220px; display: flex; }
.search input { width: 100%; min-height: 40px; padding: 6px 12px; }
.pager { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 18px; }
.pager[hidden] { display: none; }
.pager .btn[disabled] { opacity: .45; cursor: not-allowed; }

.propose { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; display: grid; gap: 14px; background: var(--surface); }
.propose h3 { margin: 0; font-size: 20px; font-weight: 800; }
.row3 { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.form-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

/* Kat ide */
.idea { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 18px; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.support { align-self: start; border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); border-radius: 12px; padding: 10px 0; display: flex; flex-direction: column; align-items: center; gap: 2px; min-height: 64px; }
.support b { font: 500 22px/1.1 var(--f-mono); font-variant-numeric: tabular-nums; }
.support small { font-size: 11px; font-weight: 700; color: var(--muted); }
.support[aria-pressed="true"] { background: var(--flag-red); border-color: var(--flag-red); color: var(--on-brand); }
.support[aria-pressed="true"] small { color: var(--on-brand); }
.idea-body { min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.idea h3 { margin: 0; font-size: 22px; line-height: 1.25; font-weight: 800; }
.meta { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; font-size: 13px; color: var(--muted); }
.tag { font: 500 11px/1 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; padding: 5px 8px; border-radius: 6px; background: var(--blue-soft); color: var(--blue-text); }
.tag.green { background: var(--green-soft); color: var(--green-text); }
.tag.yellow { background: var(--yellow-soft); color: var(--yellow-text); }
.tag.live { background: var(--taptap); color: #0E1430; }
.tag.closed { background: var(--line); color: var(--ink-2); }
.target { font: 500 14px/1.45 var(--f-mono); background: var(--stone); border-left: 3px solid var(--flag-blue); padding: 8px 12px; border-radius: 0 8px 8px 0; overflow-wrap: anywhere; }
.idea p { margin: 0; color: var(--ink-2); overflow-wrap: anywhere; }
.idea-foot { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; font-size: 14px; color: var(--muted); }
.empty { padding: 28px; border: 1px dashed var(--line-strong); border-radius: var(--radius); color: var(--muted); text-align: center; }
@media (max-width: 600px) {
  .idea { grid-template-columns: 56px minmax(0, 1fr); gap: 12px; padding: 14px; border-radius: 14px; }
  .support { min-height: 56px; padding: 8px 0; }
  .support b { font-size: 18px; }
  .idea h3 { font-size: 17px; }
  .target { font-size: 12px; padding: 6px 10px; }
}

/* ---------- Deba ---------- */
.debates { background: var(--stone); }
.debates > .wrap { padding-block: 56px; display: flex; flex-direction: column; gap: 24px; }
.debates .eyebrow { color: var(--red-text); }
.debate { background: var(--surface); border-radius: 18px; padding: 28px; display: flex; flex-direction: column; gap: 20px; }
.debate-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; align-items: flex-start; }
.debate h3 { margin: 0; font-size: 26px; font-weight: 800; line-height: 1.2; }
.debate-main { flex: 1 1 360px; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.debate-count { font: 500 14px/1.4 var(--f-mono); color: var(--muted); }
.bar { display: flex; height: 18px; border-radius: 999px; overflow: hidden; background: var(--line); }
.bar i { display: block; height: 100%; }
.bar .p { background: var(--flag-blue); }
.bar .k { background: var(--taptap); }
@media (prefers-reduced-motion: no-preference) { .bar i { transition: width .4s ease; } }
.tally { display: flex; justify-content: space-between; margin-top: 8px; font: 500 14px var(--f-mono); font-variant-numeric: tabular-nums; }
.tally .p { color: var(--blue-text); }
.tally .k { color: var(--yellow-text); }
.vote { display: flex; flex-wrap: wrap; gap: 12px; }
.vote button { flex: 1 1 200px; min-height: 52px; border-radius: 12px; font-weight: 800; font-size: 17px; }
.vote .vp { background: var(--surface); border: 2px solid var(--flag-blue); color: var(--blue-text); }
.vote .vp[aria-pressed="true"] { background: var(--flag-blue); color: var(--on-brand); }
.vote .vk { background: var(--surface); border: 2px solid var(--taptap); color: var(--ink); }
.vote .vk[aria-pressed="true"] { background: var(--taptap); color: #0E1430; }
.receipt { margin: -6px 0 0; font-size: 14px; color: var(--muted); }
.receipt .mono { color: var(--ink); }
.args { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.args-col { min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.args-col h4 { margin: 0; font: 500 12px/1.3 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; }
.args-col.p h4 { color: var(--blue-text); }
.args-col.k h4 { color: var(--yellow-text); }
.arg { border-radius: 10px; padding: 12px 14px; overflow-wrap: anywhere; }
.args-col.p .arg { background: var(--blue-soft); }
.args-col.k .arg { background: var(--yellow-soft); }
.arg small { display: block; margin-top: 4px; font-size: 13px; color: var(--muted); }
.args-empty { font-size: 14px; color: var(--muted); }
.argform { display: flex; flex-wrap: wrap; gap: 10px; }
.argform select { width: auto; }
.argform input { flex: 1 1 240px; width: auto; }
@media (max-width: 600px) {
  .debates > .wrap { padding-block: 32px; }
  .debate { padding: 18px; gap: 16px; }
  .debate h3 { font-size: 20px; }
}

/* ---------- 6 manda ---------- */
.terms > .wrap { padding-block: 56px; display: flex; flex-direction: column; gap: 24px; }
.terms ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 16px 12px; }
.terms li { border-top: 4px solid var(--line-strong); padding-top: 12px; }
.terms li .mono { font-size: 14px; color: var(--muted); }
.terms li b { display: block; font-weight: 800; }
.terms li span:last-child { font-size: 14px; color: var(--muted); }
.terms li.now { border-color: var(--flag-red); }
.terms li.now .mono { color: var(--red-text); }
.terms li.goal { border-color: var(--flag-blue); }
.terms li.goal .mono { color: var(--blue-text); }

/* ---------- Kijan sa mache ---------- */
.how > .wrap { padding-block: 0 56px; display: flex; flex-direction: column; gap: 20px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 20px; counter-reset: s; }
.steps li { counter-increment: s; display: flex; flex-direction: column; gap: 6px; }
.steps li::before { content: counter(s); font: 400 34px/1 var(--f-display); color: var(--flag-red); }
.steps h3 { margin: 0; font-size: 17px; font-weight: 800; }
.steps p { margin: 0; color: var(--muted); font-size: 15px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--foot-bg); color: var(--foot-text); }
.site-footer a { color: #FFFFFF; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; color: #FFFFFF; }
.foot-main { display: flex; flex-wrap: wrap; gap: 32px 40px; padding-block: 48px 32px; }
.foot-brand { flex: 2 1 300px; display: flex; flex-direction: column; gap: 12px; }
.foot-brand .brand-name { color: #FFFFFF; font-size: 32px; }
.foot-brand .brand-name em { color: var(--taptap); }
.foot-brand p { margin: 0; max-width: 46ch; }
.foot-nav { flex: 1 1 150px; display: flex; flex-direction: column; gap: 8px; }
.foot-nav h2 { margin: 0 0 4px; font: 500 12px/1.3 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--foot-quiet); }
.foot-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding-block: 16px 28px; border-top: 1px solid var(--foot-line); font-size: 13px; color: var(--foot-quiet); }

/* ---------- Nav mobil anba ---------- */
.tabbar { display: none; }
@media (max-width: 960px) {
  body { padding-bottom: calc(68px + env(safe-area-inset-bottom, 0px)); }
  .tabbar {
    display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
    background: var(--bg); border-top: 1px solid var(--line);
    padding: 6px max(4px, env(safe-area-inset-right, 0px)) calc(8px + env(safe-area-inset-bottom, 0px)) max(4px, env(safe-area-inset-left, 0px));
  }
  .tabbar a { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 0; min-height: 52px; text-decoration: none; color: var(--muted); font-size: 11px; font-weight: 700; }
  .tabbar a svg { stroke: currentColor; }
  .tabbar a[aria-current="true"] { color: var(--blue-text); font-weight: 800; }
}

/* ---------- Dyalòg verifye vòt ---------- */
dialog { border: 0; border-radius: 18px; padding: 0; width: min(520px, calc(100vw - 32px)); background: var(--surface); color: var(--ink); }
dialog::backdrop { background: rgba(14, 20, 48, .55); }
.dlg { padding: 24px; display: flex; flex-direction: column; gap: 14px; }
.dlg h2 { margin: 0; font: 400 28px/1.1 var(--f-display); }
.dlg-result { margin: 0; padding: 12px 14px; border-radius: 10px; font-weight: 700; }
.dlg-result.ok { background: var(--green-soft); color: var(--green-text); }
.dlg-result.bad { background: var(--yellow-soft); color: var(--yellow-text); }

/* ---------- Dyalòg konekte ---------- */
.dlg-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.icon-btn { width: 44px; height: 44px; border: 1px solid var(--line); background: var(--surface); border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; color: var(--ink); }
.dlg-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; counter-reset: st; }
.dlg-steps li { counter-increment: st; border-top: 4px solid var(--line); padding-top: 6px; font-size: 12px; font-weight: 700; color: var(--muted); }
.dlg-steps li::before { content: counter(st) ". "; }
.dlg-steps li.done { border-color: var(--palm); color: var(--green-text); }
.dlg-steps li[aria-current="step"] { border-color: var(--flag-blue); color: var(--blue-text); }
.dlg-step { display: flex; flex-direction: column; gap: 14px; }
.dlg-step .hint { font-size: 14px; }
.phone-row { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 10px; }
@media (max-width: 460px) { .phone-row { grid-template-columns: 1fr; } }
.field input.otp { font: 500 26px/1 var(--f-mono); letter-spacing: .4em; text-align: center; }
.devnote { margin: 0; padding: 10px 12px; border-radius: 10px; background: var(--yellow-soft); color: var(--yellow-text); font-size: 14px; }
.devnote b { font-family: var(--f-mono); font-size: 16px; letter-spacing: .1em; color: var(--ink); }
.link-btn:disabled { color: var(--muted); text-decoration: none; cursor: default; }

/* ---------- Mwen ---------- */
.me { background: var(--stone); border-top: 1px solid var(--line); }
.me > .wrap { padding-block: 56px; display: flex; flex-direction: column; gap: 24px; }
.me-empty { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; padding: 24px; background: var(--surface); border-radius: var(--radius); }
.me-empty p { margin: 0; max-width: 52ch; }
.me-grid { display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-start; }
.profile { flex: 1 1 280px; background: var(--surface); border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; gap: 12px; }
.profile .phone { font: 500 20px/1.2 var(--f-mono); }
.level { align-self: flex-start; font: 500 12px/1 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; padding: 7px 10px; border-radius: 6px; }
.level.piblik { background: var(--blue-soft); color: var(--blue-text); }
.level.verifye { background: var(--green-soft); color: var(--green-text); }
.profile p { margin: 0; font-size: 14px; color: var(--muted); }
.profile .form-actions { margin-top: 4px; }
.me-lists { flex: 999 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.me-card { background: var(--surface); border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.me-card h3 { margin: 0; font-size: 18px; font-weight: 800; }
.me-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.me-list li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; padding: 10px 0; border-top: 1px solid var(--line); }
.me-list li:first-child { border-top: 0; }
.me-list .what { min-width: 0; overflow-wrap: anywhere; }
.me-list .when { font-size: 13px; color: var(--muted); }
.choice { font: 500 12px/1 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; padding: 5px 8px; border-radius: 6px; }
.choice.pou { background: var(--flag-blue); color: var(--on-brand); }
.choice.kont { background: var(--taptap); color: #0E1430; }
.choice.sipo { background: var(--flag-red); color: var(--on-brand); }
.choice.retire, .choice.anile { background: var(--line); color: var(--ink); }
.table-wrap { overflow-x: auto; }
.receipts { width: 100%; border-collapse: collapse; font-size: 14px; }
.receipts th { text-align: left; font: 500 12px/1.3 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding: 8px 10px 8px 0; border-bottom: 1px solid var(--line); white-space: nowrap; }
.receipts td { padding: 10px 10px 10px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.receipts td.mono { white-space: nowrap; }
.me-note { margin: 0; font-size: 14px; color: var(--muted); }
@media (max-width: 600px) { .me > .wrap { padding-block: 32px; } .profile, .me-card { padding: 16px; } }

/* ---------- Mesaj ---------- */
.status.demo { border-style: solid; border-color: var(--taptap); background: var(--yellow-soft); color: var(--yellow-text); }
.status { margin: 16px 0 0; padding: 10px 14px; border: 1px dashed var(--line-strong); border-radius: 10px; color: var(--muted); font-size: 14px; }
.toast {
  position: fixed; left: 50%; transform: translateX(-50%); z-index: 40;
  bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  background: var(--ink); color: var(--bg); padding: 12px 18px; border-radius: 10px;
  font-weight: 700; font-size: 14px; max-width: calc(100% - 32px);
}
@media (max-width: 960px) { .toast { bottom: calc(84px + env(safe-area-inset-bottom, 0px)); } }

/* ---------- Animatè, siyalman, objektif, checkpoint ---------- */
.panel-sub { margin: 8px 0 0; font-size: 15px; font-weight: 800; }
.report-body { margin: 0; font-size: 14px; overflow-wrap: anywhere; }
.arg.is-hidden { opacity: .6; outline: 1px dashed var(--line-strong); }
.arg-actions { display: inline-flex; gap: 10px; margin-left: 6px; }
.arg-actions .link-btn { font-size: 13px; }
.closing { font: 500 13px/1.4 var(--f-mono); color: var(--muted); }
.checkpoint { font-size: 13px !important; }
.captcha { min-height: 65px; }
.goals { display: flex; flex-direction: column; gap: 12px; }
.goal-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.goal-list li.goal { border: 1px solid var(--line); border-left: 4px solid var(--palm); border-radius: 10px; padding: 12px 14px; display: flex; flex-direction: column; gap: 4px; }
.goal-list li.goal b { font-weight: 800; }
.goal-list li.goal span { font-size: 13px; color: var(--muted); }

/* =========================== PANÈL ANIMATÈ =========================== */
.admin-open { align-self: flex-start; }
.tag.soon { background: var(--yellow-soft); color: var(--yellow-text); }
.admin-page { background: var(--bg); }
.admin-badge { font: 500 12px/1 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--flag-red); }
.admin-tools { margin-left: auto; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.admin-main { padding-block: 24px 80px; display: flex; flex-direction: column; gap: 20px; }
.admin-gate { max-width: 520px; display: flex; flex-direction: column; gap: 12px; }
.admin-tabs { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; border-bottom: 1px solid var(--line); margin-bottom: 20px; scrollbar-width: thin; }
.admin-tabs button { flex: none; min-height: 44px; padding: 8px 14px; border: 0; border-radius: 10px 10px 0 0; background: none; font: 700 14px var(--f-body); color: var(--muted); cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.admin-tabs button[aria-selected="true"] { color: var(--flag-blue); box-shadow: inset 0 -3px 0 var(--flag-blue); }
.admin-tabs button:hover { color: var(--ink); }
.count { display: inline-block; min-width: 20px; padding: 2px 6px; border-radius: 999px; background: var(--flag-red); color: var(--on-brand); font: 700 11px/16px var(--f-body); text-align: center; }
.panel-sub .count { background: var(--line); color: var(--ink-2); }
.admin-tab { display: flex; flex-direction: column; gap: 16px; }
.admin-tab[hidden] { display: none; }
.tab-head { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: flex-end; }
.admin-card { background: var(--surface); border: 1px solid var(--line-strong); border-radius: 14px; padding: 16px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.admin-form { background: var(--stone); border-color: var(--line); }
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.admin-list { display: flex; flex-direction: column; gap: 10px; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.stat-tile { background: var(--stone); border-radius: 14px; padding: 16px; display: flex; flex-direction: column; gap: 4px; }
.stat-n { font: 400 34px/1 var(--f-display); color: var(--ink); font-variant-numeric: tabular-nums; }
.stat-l { font-weight: 700; font-size: 14px; color: var(--ink-2); }
.todo { display: flex; flex-direction: column; gap: 8px; }
.todo-item { text-align: left; min-height: 48px; padding: 12px 16px; border-radius: 12px; border: 1px solid var(--taptap); background: var(--yellow-soft); color: var(--yellow-text); font: 700 15px var(--f-body); cursor: pointer; display: flex; justify-content: space-between; gap: 12px; }
.ver-card { flex-direction: row; flex-wrap: wrap; align-items: flex-start; }
.ver-photo { flex: 0 0 260px; max-width: 100%; min-height: 60px; display: flex; align-items: center; justify-content: center; background: var(--stone); border-radius: 10px; padding: 8px; }
.id-img { display: block; max-width: 100%; max-height: 320px; border-radius: 8px; cursor: zoom-in; }
.ver-info { flex: 1 1 240px; display: flex; flex-direction: column; gap: 6px; min-width: 0; overflow-wrap: anywhere; }
.deb-row { gap: 12px; }
.deb-main { display: flex; flex-direction: column; gap: 4px; min-width: 0; overflow-wrap: anywhere; }
.deb-score { font-size: 13px; color: var(--ink-2); display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.admin-row { flex-direction: row; justify-content: space-between; align-items: center; flex-wrap: wrap; }
.admin-row > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; overflow-wrap: anywhere; }
.log-row { display: grid; grid-template-columns: 170px 1fr auto; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; overflow-wrap: anywhere; }
@media (max-width: 640px) {
  .log-row { grid-template-columns: 1fr; gap: 2px; }
  .admin-badge { display: none; }
  .ver-photo { flex-basis: 100%; }
}

/* ---------- Deba pa kategori ---------- */
.progress { display: flex; flex-direction: column; gap: 6px; }
.progress .bar { height: 8px; }
.round-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 16px; }
.round-title { margin: 0; font-family: var(--f-display); font-size: 28px; font-weight: 400; }
.round-next, .round-done { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; display: flex; flex-direction: column; gap: 10px; }
.round-done h4 { margin: 6px 0 0; font-size: 15px; }
.round-list { margin: 0; padding-left: 22px; display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 6px 20px; }
.round-order { list-style: none; padding: 0; }
.round-row { display: flex; align-items: center; gap: 10px; }
.round-row .form-actions { margin-left: auto; }

/* ---------- Gran dize (ap vini), sekrè vòt, efase kont ---------- */
.soon-section { background: var(--stone); }
.soon-section > .wrap { padding-block: 40px; display: flex; flex-direction: column; gap: 10px; }
.secret { background: var(--stone); border-radius: var(--radius); padding: 20px; max-width: 760px; }
.secret h3 { margin: 0 0 8px; font-size: 18px; font-weight: 800; }
.secret p { margin: 0 0 8px; color: var(--ink-2); }
.danger-zone { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 14px; display: flex; flex-direction: column; gap: 8px; }
.danger-zone h3 { margin: 0; font-size: 16px; font-weight: 800; }
.btn.danger { color: var(--red-text); border-color: var(--red-text); align-self: flex-start; }
