/* =====================================================================
   LH Group · HR Survey
   Μονόχρωμο editorial ύφος σύμφωνα με το lhgroup site
   ===================================================================== */

@font-face {
  font-family: "Commissioner";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("../fonts/commissioner-greek-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
@font-face {
  font-family: "Commissioner";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("../fonts/commissioner-latin-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --ink: #0b0b0b;
  --ink-2: #2a2a2a;
  --muted: #6b6b68;
  --line: #e4e3df;
  --line-2: #cfcdc7;
  --soft: #f4f3f0;
  --paper: #ffffff;
  --bg: #fafaf8;
  --err: #b42318;
  --err-soft: #fdf0ee;
  --ok: #1f6b3a;
  --ok-soft: #edf6f0;
  --warn: #8a5a00;
  --warn-soft: #fbf4e4;
  /* διαγώνια κλίμακα για Διαφωνώ / Ουδέτερο / Συμφωνώ */
  --d1: #b4532a;
  --d2: #bdb9b0;
  --d3: #1f4e79;
  --font: "Commissioner", "Helvetica Neue", Arial, sans-serif;
  --track: .18em;
  --r: 2px;
  --wrap: 1200px;
  --gut: clamp(16px, 4vw, 40px);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 160px; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "kern";
}
img, svg { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .88em; letter-spacing: .02em; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
::selection { background: var(--ink); color: #fff; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.eyebrow {
  margin: 0 0 12px;
  font-size: 11px; font-weight: 600;
  letter-spacing: var(--track); text-transform: uppercase;
  color: var(--muted);
}
.eyebrow--light { color: rgba(255, 255, 255, .7); }

.brand { font-weight: 800; font-size: 19px; letter-spacing: .02em; color: var(--ink); white-space: nowrap; text-decoration: none; }
.brand b { font-weight: 900; }
.brand { color: #8a8a86; }
.brand b { color: var(--ink); }

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 26px;
  background: var(--ink); color: #fff;
  border: 1px solid var(--ink); border-radius: var(--r);
  font-size: 12px; font-weight: 600; letter-spacing: var(--track); text-transform: uppercase;
  text-decoration: none; cursor: pointer;
  transition: background .2s var(--ease), color .2s var(--ease), transform .2s var(--ease), opacity .2s;
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { background: #2b2b2b; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn--block { width: 100%; }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn--ghost:hover { background: var(--soft); border-color: var(--ink); }
.btn--accent { background: var(--ink); }
.btn--sm { min-height: 40px; padding: 0 18px; font-size: 11px; }
.btn--xs { min-height: 32px; padding: 0 12px; font-size: 10px; letter-spacing: .12em; }
.btn--danger { background: var(--err); border-color: var(--err); }
.btn--danger:hover { background: #8f1c13; }
.btn--danger-t { color: var(--err); }
.btn.is-hidden { visibility: hidden; }
.link { background: none; border: 0; padding: 0; cursor: pointer; font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.link:hover { text-decoration-thickness: 2px; }

.nudge { animation: nudge .4s var(--ease); }
@keyframes nudge { 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
.shake { animation: nudge .4s var(--ease); }

/* ---------------- Alerts ---------------- */
.alert { padding: 14px 16px; border-left: 3px solid; margin: 0 0 18px; font-size: 14px; background: var(--soft); }
.alert ul { margin: 6px 0 0; padding-left: 18px; }
.alert-err { border-color: var(--err); background: var(--err-soft); color: #5c140e; }
.alert-ok { border-color: var(--ok); background: var(--ok-soft); color: #123d22; }
.alert-warn { border-color: var(--warn); background: var(--warn-soft); color: #4d3300; }

/* ---------------- Fields ---------------- */
.field { display: grid; gap: 6px; }
.field > span { font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.field input, .field select, .field textarea,
.filters input, .filters select, .inline-form input, .addloc textarea, .addloc select {
  width: 100%; min-height: 46px; padding: 10px 12px;
  background: #fff; border: 1px solid var(--line-2); border-radius: var(--r);
  transition: border-color .15s;
}
.field input:focus, .field select:focus, .field textarea:focus,
.filters input:focus, .filters select:focus { border-color: var(--ink); outline: none; box-shadow: 0 0 0 3px rgba(11,11,11,.08); }
.stack { display: grid; gap: 16px; }

/* =====================================================================
   PUBLIC — Gate (κωδικός / ευχαριστώ)
   ===================================================================== */
.page-gate { background: var(--ink); color: #fff; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
.topbar { position: relative; z-index: 2; }
.topbar__in { display: flex; justify-content: space-between; align-items: center; height: 64px; }
.topbar--dark { background: #fff; color: var(--ink); }
.topbar__meta { font-size: 11px; letter-spacing: var(--track); text-transform: uppercase; color: var(--ink-2); }

.gate {
  flex: 1; display: flex; align-items: center; padding: 56px 0 72px;
  background:
    radial-gradient(120% 80% at 85% 10%, rgba(255,255,255,.07), transparent 60%),
    repeating-linear-gradient(90deg, rgba(255,255,255,.035) 0 1px, transparent 1px 88px),
    var(--ink);
}
.gate__grid { display: grid; gap: 48px; align-items: end; grid-template-columns: 1fr; }
@media (min-width: 960px) { .gate__grid { grid-template-columns: minmax(0, 1fr) 400px; gap: 64px; align-items: center; } }
/* Το «LH GROUP» γεμίζει ακριβώς το πλάτος της στήλης του, σε κάθε οθόνη */
.gate__hero { min-width: 0; container-type: inline-size; }
.gate__title { white-space: nowrap; }
.gate__title {
  margin: 0; font-weight: 900; line-height: .86; letter-spacing: -.02em;
  font-size: clamp(64px, 14vw, 188px);
  animation: rise .9s var(--ease) both;
}
.gate__title--thanks { font-size: clamp(48px, 10vw, 132px); hyphens: manual; word-break: break-word; }
@supports (font-size: 1cqi) {
  .gate__title { font-size: 19.6cqi; }
  .gate__title--thanks { font-size: 15cqi; white-space: normal; }
}
.gate__rule { height: 1px; background: rgba(255,255,255,.35); margin: 32px 0 20px; transform-origin: left; animation: grow 1.1s .2s var(--ease) both; }
.gate__lead { margin: 0; font-size: clamp(18px, 2.2vw, 24px); font-weight: 500; }
.gate__sub { margin: 10px 0 0; font-size: 11px; letter-spacing: var(--track); text-transform: uppercase; color: rgba(255,255,255,.6); }

.panel {
  background: #fff; color: var(--ink);
  padding: clamp(24px, 4vw, 40px);
  border-radius: var(--r);
  box-shadow: 0 30px 80px -30px rgba(0,0,0,.6);
  animation: rise .8s .15s var(--ease) both;
}
.panel h2 { margin: 0 0 8px; font-size: 28px; font-weight: 800; letter-spacing: -.01em; }
.panel p { margin: 0 0 20px; }

.pin { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 8px 0 18px; }
.pin__box {
  width: 100%; aspect-ratio: 1 / 1.08; min-height: 64px;
  text-align: center; font-size: 30px; font-weight: 800;
  border: 1px solid var(--line-2); border-radius: var(--r); background: var(--soft);
  transition: border-color .15s, background .15s, transform .15s;
  -webkit-text-security: disc;
}
.pin__box:focus { outline: none; border-color: var(--ink); background: #fff; box-shadow: 0 0 0 3px rgba(11,11,11,.1); }
.pin__box.is-filled { background: #fff; border-color: var(--ink); }
.code-form.is-busy .btn { opacity: .6; pointer-events: none; }

.assure { list-style: none; margin: 24px 0 0; padding: 20px 0 0; border-top: 1px solid var(--line); display: grid; gap: 10px; font-size: 14px; color: var(--muted); }
.assure b { color: var(--ink); font-weight: 700; }

.check svg { width: 64px; height: 64px; margin-bottom: 18px; fill: none; stroke: var(--ink); stroke-width: 2; }
.check circle { stroke-dasharray: 160; stroke-dashoffset: 160; animation: draw .8s .2s var(--ease) forwards; }
.check path { stroke-dasharray: 40; stroke-dashoffset: 40; animation: draw .5s .8s var(--ease) forwards; }

@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* =====================================================================
   PUBLIC — Survey wizard
   ===================================================================== */
.page-survey { background: var(--bg); padding-bottom: 110px; }
.sbar { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.96); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--line); }
.sbar__in { display: flex; justify-content: space-between; align-items: center; height: 60px; }
.sbar__right { display: flex; align-items: center; gap: 18px; }
.sbar__exit { margin: 0; padding-left: 18px; border-left: 1px solid var(--line); }
.sbar__exit button { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; background: none; border: 1px solid var(--line-2); border-radius: var(--r); font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); cursor: pointer; transition: all .15s; }
.sbar__exit button:hover { border-color: var(--ink); color: var(--ink); }
@media (max-width: 420px) { .sbar__right { gap: 10px; } .sbar__exit { padding-left: 10px; } .sbar__exit button { padding: 0 9px; letter-spacing: .08em; } .sbar__label { display: none; } }
.sbar__count { font-size: 13px; letter-spacing: .06em; }
.sbar__count b { font-size: 18px; font-weight: 800; }
.sbar__label { font-size: 11px; letter-spacing: var(--track); text-transform: uppercase; color: var(--muted); }
.sbar__of { color: var(--muted); }
.progress { height: 2px; background: var(--line); }
.progress__fill { height: 100%; width: 0; background: var(--ink); transition: width .5s var(--ease); }

.stepper { overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.stepper::-webkit-scrollbar { display: none; }
.stepper ol { list-style: none; margin: 0; padding: 10px 0; display: flex; gap: 6px; }
.stepper__btn {
  min-width: 38px; height: 32px; padding: 0 10px;
  border: 1px solid var(--line-2); background: #fff; border-radius: 99px;
  font-size: 12px; font-weight: 700; letter-spacing: .04em; white-space: nowrap; cursor: pointer;
  transition: all .2s var(--ease);
}
.stepper__btn:disabled { cursor: default; color: #b9b7b1; border-color: var(--line); background: transparent; }
.stepper__btn.is-done { background: var(--soft); border-color: var(--line-2); }
.stepper__btn.is-done::before { content: "✓ "; font-weight: 800; }
.stepper__btn.is-current { background: var(--ink); color: #fff; border-color: var(--ink); }
.stepper__btn:not(:disabled):hover { border-color: var(--ink); }

.survey { max-width: 820px; padding-top: clamp(28px, 5vw, 56px); }
.js .step { animation: stepIn .45s var(--ease) both; }
@keyframes stepIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.step__title { margin: 0 0 12px; font-size: clamp(30px, 5vw, 46px); font-weight: 850; font-weight: 800; line-height: 1.05; letter-spacing: -.02em; outline: none; }
.step__letter { color: #a3a19b; }
.step__lead { margin: 0 0 32px; color: var(--muted); font-size: 16px; max-width: 62ch; }

.q { border: 0; padding: 0; margin: 0 0 28px; min-width: 0; }
.qlist .q { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 20px 20px 18px; margin: 0 0 12px; transition: border-color .2s, box-shadow .2s; }
.qlist .q:has(input:checked) { border-color: var(--line-2); }
legend.q__legend { float: left; }
.q__legend + * { clear: both; }
.q__legend { display: flex; gap: 12px; padding: 0; margin: 0 0 14px; font-size: 16.5px; font-weight: 600; line-height: 1.4; width: 100%; }
.q--plain > .q__legend { font-size: 11px; letter-spacing: var(--track); text-transform: uppercase; color: var(--muted); font-weight: 600; }
.q__n { flex: none; min-width: 30px; font-size: 12px; font-weight: 800; letter-spacing: .06em; color: #a3a19b; padding-top: 3px; }
.q__t { flex: 1; }
.q__err { display: none; margin: 10px 0 0; font-size: 13px; color: var(--err); font-weight: 600; }
.q.is-invalid .q__err { display: block; }
.qlist .q.is-invalid, .q.is-invalid textarea { border-color: var(--err); box-shadow: 0 0 0 3px rgba(180,35,24,.08); }

.badge { display: inline-block; margin-left: 8px; padding: 2px 8px; font-style: normal; font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; background: var(--soft); border: 1px solid var(--line-2); border-radius: 99px; color: var(--muted); vertical-align: 2px; }

/* Κλίμακα 1‑3 */
.scale { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.scale__opt { position: relative; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.scale__opt input, .tile input, .chip input, .likert5__opt input, .nps__opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.scale__opt { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 10px 14px; border: 1px solid var(--line-2); border-radius: var(--r); background: #fff; transition: all .18s var(--ease); }
.scale__mark { flex: none; width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line-2); font-size: 12px; font-weight: 800; color: var(--muted); transition: all .18s var(--ease); }
.scale__lbl { font-size: 14px; font-weight: 600; line-height: 1.2; }
.scale__opt:hover { border-color: var(--ink); }
.scale__opt:has(input:focus-visible) { outline: 2px solid var(--ink); outline-offset: 2px; }
.scale__opt:has(input:checked) { background: var(--ink); border-color: var(--ink); color: #fff; }
.scale__opt:has(input:checked) .scale__mark { background: #fff; color: var(--ink); border-color: #fff; }
@media (max-width: 560px) {
  .qlist .q { padding: 16px 14px 14px; }
  .scale__opt { flex-direction: column; gap: 6px; padding: 10px 4px; text-align: center; min-height: 74px; justify-content: center; }
  .scale__lbl { font-size: 12.5px; }
  .q__legend { font-size: 15.5px; gap: 8px; }
}

/* Πλακίδια γραφεία/καταστήματα */
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.tile { position: relative; display: grid; gap: 4px; padding: 22px 20px 20px; min-height: 150px; align-content: end; background: #fff; border: 1px solid var(--line-2); border-radius: var(--r); cursor: pointer; transition: all .2s var(--ease); overflow: hidden; }
.tile__k { position: absolute; top: 16px; left: 20px; font-size: 11px; font-weight: 700; letter-spacing: var(--track); color: #a3a19b; }
.tile__t { font-size: clamp(22px, 4vw, 30px); font-weight: 800; letter-spacing: -.01em; }
.tile__d { font-size: 13px; color: var(--muted); }
.tile:hover { border-color: var(--ink); }
.tile:has(input:checked) { background: var(--ink); color: #fff; border-color: var(--ink); }
.tile:has(input:checked) .tile__d, .tile:has(input:checked) .tile__k { color: rgba(255,255,255,.7); }
.tile:has(input:focus-visible) { outline: 2px solid var(--ink); outline-offset: 2px; }

.loclist { scroll-margin-top: 150px; }
.js .loclist:not([hidden]) { animation: stepIn .35s var(--ease) both; }
.search { margin: 0 0 12px; }
.search__in { width: 100%; min-height: 48px; padding: 10px 14px 10px 40px; border: 1px solid var(--line-2); border-radius: var(--r); background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%236b6b68' stroke-width='2'%3E%3Ccircle cx='7' cy='7' r='5'/%3E%3Cpath d='M11 11l4 4'/%3E%3C/svg%3E") 14px center no-repeat; }
.search__in:focus { outline: none; border-color: var(--ink); }
.chips { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; }
.chip { position: relative; cursor: pointer; }
.chip span { display: flex; align-items: center; min-height: 48px; padding: 10px 14px 10px 38px; background: #fff; border: 1px solid var(--line-2); border-radius: var(--r); font-size: 13.5px; font-weight: 600; letter-spacing: .02em; transition: all .15s; position: relative; }
.chip span::before { content: ""; position: absolute; left: 14px; top: 50%; width: 14px; height: 14px; margin-top: -7px; border: 1px solid var(--line-2); border-radius: 50%; background: #fff; }
.chip:hover span { border-color: var(--ink); }
.chip input:checked + span { background: var(--ink); color: #fff; border-color: var(--ink); }
.chip input:checked + span::before { border-color: #fff; box-shadow: inset 0 0 0 3px var(--ink); background: #fff; }
.chip input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }
.chips__empty { color: var(--muted); font-size: 14px; }
@media (max-width: 560px) { .chips { grid-template-columns: 1fr; } .tiles { gap: 8px; } .tile { min-height: 124px; padding: 16px; } .tile__k { left: 16px; } }

.legend-scale { margin-top: 36px; padding: 20px; border: 1px dashed var(--line-2); border-radius: var(--r); }
.legend-scale .eyebrow { margin-bottom: 8px; }
.legend-scale ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 14px; }
.legend-scale b { display: inline-grid; place-items: center; width: 22px; height: 22px; margin-right: 4px; border-radius: 50%; background: var(--ink); color: #fff; font-size: 11px; }

/* Συνολική 1‑5 */
.likert5 { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.likert5__opt { position: relative; display: grid; gap: 10px; align-content: start; padding: 16px 12px; background: #fff; border: 1px solid var(--line-2); border-radius: var(--r); cursor: pointer; transition: all .18s var(--ease); }
.likert5__bar { display: flex; gap: 3px; }
.likert5__bar i { flex: 1; height: 6px; background: var(--line); border-radius: 1px; }
.likert5__bar i.on { background: var(--ink-2); }
.likert5__lbl { font-size: 13px; font-weight: 600; line-height: 1.25; }
.likert5__opt:hover { border-color: var(--ink); }
.likert5__opt:has(input:checked) { background: var(--ink); color: #fff; border-color: var(--ink); }
.likert5__opt:has(input:checked) .likert5__bar i { background: rgba(255,255,255,.25); }
.likert5__opt:has(input:checked) .likert5__bar i.on { background: #fff; }
.likert5__opt:has(input:focus-visible) { outline: 2px solid var(--ink); outline-offset: 2px; }
@media (max-width: 640px) {
  .likert5 { grid-template-columns: 1fr; }
  .likert5__opt { grid-template-columns: 90px 1fr; align-items: center; padding: 14px; }
}

/* 0‑10 */
.nps { display: grid; grid-template-columns: repeat(11, 1fr); gap: 6px; }
.nps__opt { position: relative; cursor: pointer; }
.nps__opt span { display: grid; place-items: center; height: 52px; background: #fff; border: 1px solid var(--line-2); border-radius: var(--r); font-weight: 800; font-size: 16px; transition: all .15s; }
.nps__opt:hover span { border-color: var(--ink); }
.nps__opt input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; transform: translateY(-2px); }
.nps__opt input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }
.nps__ends { display: flex; justify-content: space-between; margin-top: 8px; font-size: 12px; color: var(--muted); }
@media (max-width: 640px) {
  .nps { grid-template-columns: repeat(6, 1fr); }
  .nps__opt span { height: 48px; }
}

/* Ανοιχτές */
.q textarea {
  width: 100%; min-height: 120px; padding: 14px 16px; resize: vertical;
  background: #fff; border: 1px solid var(--line-2); border-radius: var(--r);
  line-height: 1.5; transition: border-color .15s, box-shadow .15s;
}
.q textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(11,11,11,.08); }
.ta__meta { display: flex; justify-content: space-between; align-items: start; gap: 12px; }
.ta__meta .q__err { margin-top: 6px; }
.ta__count { margin-left: auto; margin-top: 6px; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }

/* Επισκόπηση */
.review { list-style: none; margin: 0 0 24px; padding: 0; border-top: 1px solid var(--line); }
.review__row { display: grid; grid-template-columns: 52px 1fr auto; align-items: center; gap: 12px; padding: 14px 4px; border-bottom: 1px solid var(--line); }
.review__k { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-2); font-size: 12px; font-weight: 800; }
.review__row.is-ok .review__k { background: var(--ink); color: #fff; border-color: var(--ink); }
.review__row.is-missing .review__k { border-color: var(--err); color: var(--err); }
.review__t { font-weight: 700; display: grid; }
.review__s { font-weight: 500; color: var(--muted); font-size: 13px; }
.review__row.is-missing .review__s { color: var(--err); }
.note { padding: 18px 20px; background: var(--soft); border-left: 3px solid var(--ink); font-size: 14px; color: var(--ink-2); }

/* Sticky πλοήγηση */
.navbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: rgba(255,255,255,.97); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); backdrop-filter: blur(8px); }
.navbar__in { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 76px; max-width: 820px; }
.navbar__info { font-size: 12px; color: var(--muted); letter-spacing: .04em; text-align: center; flex: 1; }
html:not(.js) .navbar { position: static; }
html:not(.js) #btn-prev, html:not(.js) #btn-next { display: none; }
@media (max-width: 480px) { .navbar .btn { padding: 0 16px; } .navbar__info { font-size: 11px; } }

/* =====================================================================
   ADMIN
   ===================================================================== */
.page-admin { background: var(--bg); }
.awrap { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 var(--gut); }
.abar { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.abar__in { display: flex; align-items: center; gap: 24px; min-height: 64px; }
.abar__brand { display: flex; align-items: baseline; gap: 12px; text-decoration: none; }
.abar__tag { font-size: 10px; font-weight: 600; letter-spacing: var(--track); text-transform: uppercase; color: var(--muted); }
.anav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.anav a, .anav button { display: inline-flex; align-items: center; height: 64px; padding: 0 14px; font-size: 11px; font-weight: 600; letter-spacing: var(--track); text-transform: uppercase; text-decoration: none; border: 0; background: none; cursor: pointer; position: relative; color: var(--ink-2); }
.anav a::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 18px; height: 1px; background: var(--ink); transform: scaleX(0); transition: transform .25s var(--ease); transform-origin: left; }
.anav a:hover::after, .anav a.is-active::after { transform: scaleX(1); }
.anav a.is-active { color: var(--ink); }
.anav__out { margin: 0 0 0 8px; padding-left: 8px; border-left: 1px solid var(--line); }
.anav__out button { color: var(--muted); }
.abar__toggle { display: none; margin-left: auto; height: 40px; padding: 0 14px; border: 1px solid var(--line-2); background: #fff; font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; border-radius: var(--r); }
@media (max-width: 900px) {
  .abar__toggle { display: block; }
  .abar__in { flex-wrap: wrap; }
  .anav { display: none; width: 100%; flex-direction: column; align-items: stretch; padding-bottom: 12px; }
  .anav.is-open { display: flex; }
  .anav a, .anav button { height: 48px; border-top: 1px solid var(--line); }
  .anav a::after { display: none; }
  .anav a.is-active { background: var(--soft); }
  .anav__out { border: 0; margin: 0; padding: 0; }
}
.astatus { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-top: 16px; flex-wrap: wrap; }
.amain { padding-top: 20px; padding-bottom: 40px; }
.afoot { padding-bottom: 32px; }

.pill { display: inline-flex; align-items: center; gap: 8px; height: 26px; padding: 0 12px; border-radius: 99px; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.pill--on { background: var(--ok-soft); color: var(--ok); }
.pill--off { background: var(--soft); color: var(--muted); }

.ahead { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px 24px; flex-wrap: wrap; margin: 12px 0 22px; }
.ahead h1 { margin: 0 0 6px; font-size: clamp(30px, 4vw, 44px); font-weight: 800; letter-spacing: -.02em; line-height: 1.05; }
.ahead p { margin: 0; }
.ahead__act { display: flex; gap: 8px; flex-wrap: wrap; }
.count { display: inline-grid; place-items: center; min-width: 34px; height: 26px; padding: 0 8px; margin-left: 6px; border-radius: 99px; background: var(--ink); color: #fff; font-size: 13px; font-weight: 700; vertical-align: middle; letter-spacing: 0; }

.filters { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; align-items: end; padding: 16px; margin-bottom: 20px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); }
.filters label { display: grid; gap: 6px; }
.filters label > span { font-size: 10px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.filters input, .filters select { min-height: 40px; padding: 6px 10px; font-size: 14px; }
.filters__btns { display: flex; gap: 8px; }

.card { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: clamp(16px, 2.5vw, 26px); margin-bottom: 20px; }
.card--flush { padding: 0; }
.card--danger { border-color: #f0cdc8; }
.card__h { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.card__h h2 { margin: 0; font-size: 18px; font-weight: 800; letter-spacing: -.005em; }
.subh { margin: 22px 0 8px; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.grid2 { display: grid; gap: 20px; grid-template-columns: 1fr; }
.grid2 > .card { margin-bottom: 0; }
.grid2 + .card, .grid2 + .grid2 { margin-top: 20px; }
@media (min-width: 900px) { .grid2 { grid-template-columns: 1fr 1fr; } }
.grid2--top { align-items: start; }

.empty { text-align: center; padding: 64px 20px; background: #fff; border: 1px dashed var(--line-2); border-radius: var(--r); }
.empty h2 { margin: 0 0 8px; }

.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin-bottom: 20px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.kpi { display: grid; gap: 4px; align-content: start; padding: 20px 22px; background: #fff; }
.kpi__l { font-size: 10px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.kpi__v { font-size: clamp(34px, 4vw, 48px); font-weight: 800; line-height: 1; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.kpi__v small { font-size: .42em; font-weight: 600; color: var(--muted); letter-spacing: 0; margin-left: 2px; }
.kpi__s { font-size: 12.5px; color: var(--muted); }
@media (max-width: 900px) { .kpis { grid-template-columns: 1fr 1fr; } }

.tbl-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th { text-align: left; font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); padding: 10px 12px; border-bottom: 1px solid var(--line-2); white-space: nowrap; }
.tbl td { padding: 11px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tbl .w-bar { width: 46%; min-width: 220px; }
.tbl--list tbody tr { transition: background .15s; }
.tbl--list tr.is-link { cursor: pointer; }
.tbl--list tr.is-link:hover { background: var(--soft); }
.tbl--items .tbl__q { font-size: 13.5px; }
.qn { display: inline-block; min-width: 28px; font-size: 11px; font-weight: 800; color: #a3a19b; }
@media (max-width: 700px) {
  .tbl--sections, .tbl--items { display: block; }
  .tbl--sections thead { display: none; }
  .tbl--sections tbody, .tbl--items tbody { display: block; }
  .tbl--sections tr, .tbl--items tr { display: grid; grid-template-columns: 1fr auto; gap: 6px 10px; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .tbl--sections td, .tbl--items td { padding: 0; border: 0; }
  .tbl--sections td.w-bar, .tbl--items td.w-bar { grid-column: 1 / -1; width: auto; min-width: 0; }
}

/* Μπάρα κατανομής */
.dbar { display: flex; gap: 2px; height: 24px; border-radius: 3px; overflow: hidden; background: var(--soft); }
.dbar__s { display: grid; place-items: center; min-width: 3px; font-size: 11px; font-weight: 700; color: #fff; transition: width .6s var(--ease); width: 0; overflow: hidden; white-space: nowrap; }
.dbar__s--1 { background: var(--d1); }
.dbar__s--2 { background: var(--d2); color: var(--ink); }
.dbar__s--3 { background: var(--d3); }
.dbar__s:first-child { border-radius: 3px 0 0 3px; }
.dbar__s:last-child { border-radius: 0 3px 3px 0; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 0; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.sw { display: inline-block; width: 12px; height: 12px; border-radius: 2px; }
.sw--1 { background: var(--d1); } .sw--2 { background: var(--d2); } .sw--3 { background: var(--d3); }
.sw--det { background: var(--d1); } .sw--pas { background: var(--d2); } .sw--pro { background: var(--d3); }

.hbars { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.hbars li { display: grid; grid-template-columns: minmax(120px, 170px) 1fr 74px; align-items: center; gap: 12px; font-size: 13.5px; }
.hbars__t { height: 18px; background: var(--soft); border-radius: 0 3px 3px 0; overflow: hidden; }
.hbars__b { display: block; height: 100%; width: 0; background: var(--ink-2); border-radius: 0 3px 3px 0; transition: width .6s var(--ease); }
.hbars__v { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.hbars__v small { color: var(--muted); font-weight: 500; }
@media (max-width: 520px) { .hbars li { grid-template-columns: 1fr 64px; } .hbars__t { grid-column: 1 / -1; grid-row: 2; } }

.cols { display: grid; grid-template-columns: repeat(11, 1fr); gap: 4px; height: 190px; align-items: end; margin-bottom: 12px; }
.cols__c { display: grid; grid-template-rows: auto 1fr auto; height: 100%; text-align: center; }
.cols__v { font-size: 11px; font-weight: 700; color: var(--ink-2); min-height: 16px; }
.cols__b { align-self: end; width: 100%; background: var(--d2); border-radius: 3px 3px 0 0; height: 0; transition: height .6s var(--ease); }
.cols__c--det .cols__b { background: var(--d1); }
.cols__c--pro .cols__b { background: var(--d3); }
.cols__x { font-size: 12px; font-weight: 700; padding-top: 6px; border-top: 1px solid var(--line-2); color: var(--muted); }

.tag { display: inline-block; padding: 3px 9px; border-radius: 99px; background: var(--soft); font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); white-space: nowrap; }
.tag--store { background: #eef2f6; }
.dots { display: inline-flex; gap: 3px; }
.dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--line); }
.dots i.on { background: var(--ink); }
.nps-badge { display: inline-grid; place-items: center; width: 30px; height: 26px; border-radius: 3px; font-weight: 800; font-size: 13px; color: #fff; }
.nps-badge--det { background: var(--d1); } .nps-badge--pas { background: var(--d2); color: var(--ink); } .nps-badge--pro { background: var(--d3); }

.pager { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.pager a { display: grid; place-items: center; min-width: 38px; height: 38px; border: 1px solid var(--line-2); border-radius: var(--r); text-decoration: none; font-weight: 700; font-size: 13px; background: #fff; }
.pager a.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }

/* Μία απάντηση */
.resp { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: clamp(18px, 3vw, 32px); }
.resp__h { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding-bottom: 20px; border-bottom: 1px solid var(--ink); margin-bottom: 20px; }
.resp__t { margin: 0 0 4px; font-size: clamp(24px, 3vw, 32px); font-weight: 800; letter-spacing: -.01em; }
.resp__h p { margin: 0; }
.resp__kpi { display: flex; gap: 28px; margin: 0; }
.resp__kpi div { display: grid; gap: 2px; }
.resp__kpi dt { font-size: 10px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.resp__kpi dd { margin: 0; font-size: 28px; font-weight: 800; line-height: 1.1; }
.resp__kpi dd small { display: block; font-size: 12px; font-weight: 600; color: var(--muted); }
.resp__grid { display: grid; gap: 8px 32px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .resp__grid { grid-template-columns: 1fr 1fr; } }
.resp__sec h3, .resp__open h3 { margin: 12px 0 6px; font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.ans { list-style: none; margin: 0 0 8px; padding: 0; }
.ans li { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; break-inside: avoid; }
.ans__v { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 4px 10px; border-radius: 99px; white-space: nowrap; border: 1px solid; }
.ans__v--1 { color: var(--d1); border-color: var(--d1); }
.ans__v--2 { color: #5d5a53; border-color: var(--d2); }
.ans__v--3 { color: #fff; background: var(--d3); border-color: var(--d3); }
.resp__open { margin-top: 20px; padding-top: 12px; border-top: 1px solid var(--line-2); }
.oq { padding: 12px 0; border-bottom: 1px solid var(--line); break-inside: avoid; }
.oq__q { margin: 0 0 6px; font-size: 13px; font-weight: 700; color: var(--muted); }
.oq__a { margin: 0; font-size: 15px; white-space: normal; }
.danger-zone { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 20px; }

/* Σχόλια */
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.tabs__a { padding: 8px 14px; border: 1px solid var(--line-2); border-radius: 99px; background: #fff; font-size: 12.5px; font-weight: 600; text-decoration: none; }
.tabs__a:hover { border-color: var(--ink); }
.cmt { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.cmt li { padding: 14px 16px; background: var(--soft); border-left: 3px solid var(--ink-2); break-inside: avoid; }
.cmt p { margin: 0 0 8px; font-size: 15px; }
.cmt__m { font-size: 12px; color: var(--muted); }

/* Κατηγορίες */
.addloc { display: grid; grid-template-columns: 200px 1fr auto; gap: 12px; align-items: end; }
.addloc textarea { min-height: 46px; resize: vertical; }
@media (max-width: 700px) { .addloc { grid-template-columns: 1fr; } }
.locs { list-style: none; margin: 0; padding: 0; }
.locs li { border-bottom: 1px solid var(--line); }
.locs li.is-off .locrow__name { color: var(--muted); text-decoration: line-through; }
.locrow { display: grid; grid-template-columns: 58px 1fr 124px 44px 30px auto 34px; gap: 8px; align-items: center; padding: 8px 0; }
.locrow input, .locrow select { min-height: 36px; padding: 4px 8px; border: 1px solid transparent; border-radius: var(--r); background: transparent; font-size: 13.5px; width: 100%; }
.locrow input:hover, .locrow select:hover { border-color: var(--line); }
.locrow input:focus, .locrow select:focus { border-color: var(--ink); background: #fff; outline: none; }
.locrow__name { font-weight: 600; }
.locrow__sort { color: var(--muted); }
.locrow__n { font-size: 12px; text-align: center; color: var(--muted); font-variant-numeric: tabular-nums; }
.locrow .btn--xs[value="save"] { opacity: .35; }
.locrow.is-dirty .btn--xs[value="save"] { opacity: 1; }
@media (max-width: 1100px) and (min-width: 900px), (max-width: 620px) {
  .locrow { grid-template-columns: 54px 1fr 44px; }
  .locrow__type { grid-column: 2; }
  .locrow__n { display: none; }
  .locrow .btn--xs[value="save"] { grid-column: 2; justify-self: start; }
}
.switch { position: relative; display: inline-block; width: 40px; height: 22px; cursor: pointer; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch span { position: absolute; inset: 0; background: var(--line-2); border-radius: 99px; transition: .2s; }
.switch span::before { content: ""; position: absolute; left: 3px; top: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: .2s var(--ease); }
.switch input:checked + span { background: var(--ink); }
.switch input:checked + span::before { transform: translateX(18px); }
.switch input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }

/* Ρυθμίσεις */
.inline-form { display: flex; gap: 10px; flex-wrap: wrap; }
.inline-form input { flex: 1; min-width: 160px; width: auto; }
.code-in { max-width: 140px; font-size: 22px !important; font-weight: 800; letter-spacing: .4em; text-align: center; }
.admins { list-style: none; margin: 0 0 18px; padding: 0; }
.admins li { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.admins form { margin-left: auto; }
.admins .tag { margin-left: auto; }
.copy { cursor: pointer; padding: 3px 6px; background: var(--soft); border-radius: 3px; word-break: break-all; }
.copy.is-copied { background: var(--ok-soft); color: var(--ok); }
.copy.is-copied::after { content: " ✓"; }

/* Auth */
.admin-auth { min-height: 100vh; background: var(--ink); }
.auth { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; }
.auth-card { width: 100%; max-width: 420px; background: #fff; padding: clamp(24px, 5vw, 40px); border-radius: var(--r); }
.auth-card .brand { display: block; margin-bottom: 28px; }
.auth-card h1 { margin: 0 0 20px; font-size: 32px; font-weight: 800; letter-spacing: -.02em; }

/* Print preview bar */
.printbar { background: var(--ink); color: #fff; position: sticky; top: 0; z-index: 5; }
.printbar__in { display: flex; align-items: center; gap: 16px; min-height: 60px; flex-wrap: wrap; }
.printbar__hint { color: rgba(255,255,255,.65); flex: 1; }
.printbar .btn { background: #fff; color: var(--ink); }
.print-cover { padding: 28px 0 20px; border-bottom: 2px solid var(--ink); margin-bottom: 24px; }
.print-cover h1 { margin: 16px 0 4px; font-size: 32px; font-weight: 800; }
.print-page { margin-bottom: 24px; }

/* =====================================================================
   PRINT
   ===================================================================== */
@media print {
  @page { size: A4; margin: 14mm 12mm; }
  html, body { background: #fff !important; font-size: 11pt; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .no-print, .abar, .astatus, .afoot, .printbar, .navbar, .alert-ok { display: none !important; }
  .awrap { max-width: none; padding: 0; }
  .amain { padding: 0; }
  .card, .resp, .kpis { border-color: #d6d6d6; box-shadow: none; break-inside: avoid; }
  .card { padding: 12px 14px; margin-bottom: 12px; }
  .card:has(.tbl--items) { break-inside: auto; }
  .tbl tr { break-inside: avoid; }
  .page-break { break-before: page; }
  .grid2 { grid-template-columns: 1fr 1fr; gap: 12px; }
  .kpis { grid-template-columns: repeat(4, 1fr); }
  .kpi { padding: 12px; }
  .kpi__v { font-size: 26pt; }
  .ahead { margin: 0 0 12px; }
  .ahead h1 { font-size: 22pt; }
  .tbl .w-bar { width: 45%; }
  .resp__grid { grid-template-columns: 1fr 1fr; gap: 0 20px; }
  .ans li { padding: 2px 0; font-size: 8pt; line-height: 1.3; gap: 6px; }
  .ans__v { font-size: 6.5pt; padding: 1px 6px; }
  .resp__sec h3, .resp__open h3 { margin: 6px 0 2px; font-size: 8pt; }
  .resp__t { font-size: 16pt; }
  .resp__kpi dd { font-size: 16pt; }
  .resp__open { margin-top: 8px; padding-top: 4px; display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
  .resp__open h3 { grid-column: 1 / -1; }
  .oq { padding: 4px 0; }
  .oq__q { font-size: 7.5pt; margin-bottom: 2px; }
  .page-print .oq__a { font-size: 8.5pt; }
  .resp__h { padding-bottom: 10px; margin-bottom: 8px; }
  .resp { border: 0; padding: 0; }
  .print-page { break-before: page; margin: 0; }
  .print-cover { border-bottom: 0; }
  .oq__a, .cmt p { font-size: 10pt; }
  a { text-decoration: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
