/* ==========================================================================
   Σύλλογος Γονέων & Κηδεμόνων — Stylesheet
   Mobile-first · Dark/Light · καθαρό, εύχρηστο περιβάλλον
   ========================================================================== */

:root {
  --bg: #f7f8fa;
  --surface: #ffffff;
  --surface-2: #f1f3f5;
  --text: #16191d;
  --muted: #6b7280;
  --border: #ecedf0;
  --primary: #11806c;
  --primary-ink: #ffffff;
  --primary-soft: #dff1ec;
  --ink: #18181b;
  --ink-ink: #ffffff;
  --accent: #ff8a5b;
  --accent-2: #ffb24d;
  --coral: #ef6f5e;
  --yes: #1ea672;
  --no: #e2685a;
  --grad-warm: linear-gradient(135deg, #ff8a5b 0%, #ffb24d 100%);
  --grad-teal: linear-gradient(135deg, #15937a 0%, #0e7a64 100%);
  --shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 4px 16px rgba(16, 24, 40, .06);
  --shadow-lg: 0 16px 48px rgba(16, 24, 40, .12);
  --shadow-warm: 0 8px 22px rgba(255, 138, 91, .22);
  --radius: 16px;
  --radius-sm: 11px;
  --tabbar-h: 64px;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

[data-theme="dark"] {
  --bg: #0c0d10;
  --surface: #141519;
  --surface-2: #1c1e23;
  --text: #e8e9ec;
  --muted: #9aa0a6;
  --border: #26282e;
  --primary: #2fc6a6;
  --primary-ink: #062019;
  --primary-soft: #11332b;
  --ink: #f4f4f5;
  --ink-ink: #18181b;
  --accent: #ff9a6b;
  --accent-2: #ffc06a;
  --coral: #f08a76;
  --yes: #3cc07e;
  --no: #ef8472;
  --grad-warm: linear-gradient(135deg, #ff8a5b 0%, #ffb24d 100%);
  --grad-teal: linear-gradient(135deg, #1aa588 0%, #138a72 100%);
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .32);
  --shadow-lg: 0 18px 48px rgba(0, 0, 0, .5);
  --shadow-warm: 0 8px 24px rgba(255, 138, 91, .18);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; height: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  overscroll-behavior-y: none;
}
button { font-family: inherit; cursor: pointer; }
svg { width: 1em; height: 1em; display: block; }

/* ---------- Splash ---------- */
#splash {
  position: fixed; inset: 0; z-index: 9999;
  display: grid; place-content: center; gap: 14px; justify-items: center;
  background: var(--bg);
}
#splash img { width: 84px; height: 84px; border-radius: 22px; box-shadow: var(--shadow); }
#splash p { color: var(--muted); margin: 0; font-size: 14px; }
.spinner {
  width: 30px; height: 30px; border-radius: 50%;
  border: 3px solid var(--border); border-top-color: var(--primary);
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loader { display: grid; place-items: center; padding: 40px 0; }

/* ==========================================================================
   AUTH
   ========================================================================== */
.auth {
  min-height: 100%; display: grid; place-items: center; padding: 24px 18px;
  background:
    radial-gradient(120% 80% at 50% -10%, var(--primary-soft), transparent 60%),
    var(--bg);
}
.auth__card {
  width: 100%; max-width: 380px; background: var(--surface);
  border: 1px solid var(--border); border-radius: 22px; padding: 26px 22px;
  box-shadow: var(--shadow-lg);
}
.auth__brand { text-align: center; margin-bottom: 18px; }
.auth__logo { width: 66px; height: 66px; border-radius: 18px; box-shadow: var(--shadow); }
.auth__title { font-size: 20px; margin: 12px 0 4px; line-height: 1.2; }
.auth__subtitle { color: var(--muted); margin: 0; font-size: 14px; }
.auth__switch {
  display: block; width: 100%; margin-top: 14px; background: none; border: none;
  color: var(--primary); font-size: 14px; font-weight: 600; padding: 8px;
}
.auth__demo {
  margin-top: 18px; padding-top: 16px; border-top: 1px dashed var(--border);
  display: grid; gap: 8px;
}
.auth__demo-title { font-size: 12px; font-weight: 700; color: var(--muted); margin: 0; text-transform: uppercase; letter-spacing: .04em; }
.auth__demo-btn {
  background: var(--surface-2); border: 1px solid var(--border); border-radius: 10px;
  padding: 9px 12px; font-size: 13px; color: var(--text); text-align: left;
}
.auth__demo-hint { font-size: 12px; color: var(--muted); margin: 2px 0 0; }

/* ---------- Fields & buttons ---------- */
.field { display: block; margin-bottom: 14px; }
.field__label { display: block; font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 6px; }
.input {
  width: 100%; padding: 12px 14px; font-size: 16px; color: var(--text);
  background: var(--surface); border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  transition: border-color .15s, box-shadow .15s;
}
.input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.input:disabled { background: var(--surface-2); color: var(--muted); }
.textarea { resize: vertical; min-height: 86px; line-height: 1.5; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 18px; border-radius: var(--radius-sm); border: 1.5px solid transparent;
  font-size: 15px; font-weight: 650; transition: transform .08s, filter .15s, background .15s;
}
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .6; cursor: default; }
.btn__icon { font-size: 18px; }
.btn--primary { background: var(--primary); color: var(--primary-ink); }
.btn--primary:hover { filter: brightness(1.05); }
.btn--ghost { background: var(--surface-2); color: var(--text); border-color: var(--border); }
.btn--danger { background: var(--no); color: #fff; }
.btn--block { width: 100%; }
.btn--sm { padding: 8px 13px; font-size: 13.5px; }

/* ==========================================================================
   APP SHELL
   ========================================================================== */
#app { min-height: 100%; }
.appbar {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 10px 14px; padding-top: max(10px, env(safe-area-inset-top));
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: saturate(1.2) blur(10px);
  border-bottom: 1px solid var(--border);
}
.appbar__brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.appbar__logo { width: 38px; height: 38px; border-radius: 11px; }
.appbar__name { font-size: 14px; font-weight: 700; margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 46vw; }
.appbar__role { font-size: 12px; color: var(--muted); margin: 0; }
.appbar__actions { display: flex; gap: 4px; }
.iconbtn {
  width: 38px; height: 38px; display: grid; place-items: center; font-size: 20px;
  background: transparent; border: none; border-radius: 10px; color: var(--text);
}
.iconbtn:hover { background: var(--surface-2); }

.content {
  padding: 16px 14px calc(var(--tabbar-h) + 24px);
  max-width: 640px; margin: 0 auto;
}
.view { display: grid; gap: 16px; animation: fade .25s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ---------- Bottom tab bar ---------- */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  height: calc(var(--tabbar-h) + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  display: flex; background: var(--surface); border-top: 1px solid var(--border);
}
.tab {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  background: none; border: none; color: var(--muted); font-size: 11px; font-weight: 600;
  padding: 8px 2px; transition: color .15s;
}
.tab__icon { font-size: 22px; }
.tab--active { color: var(--primary); }
.tab--active .tab__icon { transform: translateY(-1px); }

/* ==========================================================================
   DASHBOARD
   ========================================================================== */
.greeting__hello { font-size: 22px; font-weight: 750; margin: 0; }
.greeting__sub { color: var(--muted); margin: 2px 0 0; }

.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.stats--3 { grid-template-columns: repeat(3, 1fr); }
.stat {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 16px; display: grid; gap: 4px; box-shadow: var(--shadow);
}
.stat__icon { font-size: 22px; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 11px; }
.stat--teal .stat__icon { background: var(--primary-soft); color: var(--primary); }
.stat--amber .stat__icon { background: color-mix(in srgb, var(--accent) 22%, transparent); color: var(--accent); }
.stat--coral .stat__icon { background: color-mix(in srgb, var(--coral) 20%, transparent); color: var(--coral); }
.stat__value { font-size: 28px; font-weight: 750; line-height: 1; }
.stat__value--sm { font-size: 18px; }
.stat__label { font-size: 13px; color: var(--muted); }
.stat--wide { grid-column: 1 / -1; }
button.stat { text-align: left; font: inherit; color: inherit; width: 100%; }
button.stat:hover { border-color: var(--primary); }

.ministat {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 14px 8px; display: grid; gap: 4px; justify-items: center; box-shadow: var(--shadow); color: var(--text);
}
.ministat__icon { font-size: 22px; color: var(--primary); }
.ministat__value { font-size: 24px; font-weight: 750; }
.ministat__label { font-size: 12px; color: var(--muted); }

.progress { height: 9px; background: var(--surface-2); border-radius: 99px; overflow: hidden; margin: 6px 0 2px; }
.progress__bar { height: 100%; background: linear-gradient(90deg, var(--primary), var(--accent)); border-radius: 99px; transition: width .5s ease; }

.quick { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.quick__btn {
  display: flex; align-items: center; gap: 10px; padding: 14px; font-size: 14px; font-weight: 600;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); color: var(--text); box-shadow: var(--shadow);
}
.quick__icon { font-size: 20px; color: var(--primary); width: 36px; height: 36px; display: grid; place-items: center; background: var(--primary-soft); border-radius: 10px; }

.panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px; box-shadow: var(--shadow); display: grid; gap: 6px; }
.panel--quiet { box-shadow: none; background: transparent; border-style: dashed; }
.panel__head { display: flex; align-items: center; justify-content: space-between; }
.panel__title { font-size: 16px; margin: 0 0 4px; }
.link { background: none; border: none; color: var(--primary); font-weight: 600; font-size: 13px; }

.rowitem { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; background: none; border: none; padding: 10px 4px; border-radius: 10px; color: var(--text); }
.rowitem:hover { background: var(--surface-2); }
.rowitem__main { flex: 1; min-width: 0; }
.rowitem__title { margin: 0; font-weight: 600; font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rowitem__meta { margin: 2px 0 0; font-size: 12.5px; color: var(--muted); }
.rowitem__chev { color: var(--muted); font-size: 18px; }

.dot { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.dot--unread { background: var(--accent); }
.dot--read { background: var(--yes); }

.datechip { display: grid; place-items: center; background: var(--primary-soft); border-radius: 10px; padding: 6px 9px; min-width: 44px; }
.datechip--lg { min-width: 52px; padding: 8px 10px; }
.datechip__day { font-size: 18px; font-weight: 750; color: var(--primary); line-height: 1; }
.datechip__mon { font-size: 11px; color: var(--primary); text-transform: uppercase; }

/* ==========================================================================
   ΣΕΛΙΔΕΣ / ΛΙΣΤΕΣ
   ========================================================================== */
.pagehead { display: flex; align-items: center; justify-content: space-between; }
.pagehead__title { font-size: 22px; font-weight: 750; margin: 0; }
.subhint { color: var(--muted); font-size: 13.5px; margin: -8px 0 0; }
.fab-inline {
  width: 42px; height: 42px; border-radius: 13px; border: none; font-size: 22px;
  background: var(--primary); color: var(--primary-ink); display: grid; place-items: center; box-shadow: var(--shadow);
}
.list { display: grid; gap: 14px; }

.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 16px; box-shadow: var(--shadow); display: grid; gap: 8px;
}
.card--unread { border-left: 4px solid var(--accent); }
.card__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.card__title { font-size: 17px; margin: 0; line-height: 1.25; }
.card__meta { font-size: 13px; color: var(--muted); margin: 0; display: inline-flex; align-items: center; gap: 5px; }
.card__meta svg { font-size: 15px; }
.card__body { margin: 0; line-height: 1.55; font-size: 14.5px; }
.card__body--clamp { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card__img { width: 100%; border-radius: 12px; margin-top: 4px; }
.card__footer { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 4px; }
.card--msg { cursor: pointer; }
.card__open { display: inline-flex; align-items: center; gap: 4px; color: var(--primary); font-size: 13px; font-weight: 600; }
.card__open svg { font-size: 16px; }

.filechip {
  display: inline-flex; align-items: center; gap: 7px; padding: 9px 13px; align-self: start;
  background: var(--surface-2); border: 1px solid var(--border); border-radius: 10px;
  color: var(--text); text-decoration: none; font-size: 13.5px; font-weight: 600;
}
.filechip__icon { color: var(--coral); font-size: 17px; }

.badge { font-size: 11.5px; font-weight: 700; padding: 4px 9px; border-radius: 99px; white-space: nowrap; }
.badge--unread { background: var(--accent); color: #1c0f06; }
.badge--ok { background: color-mix(in srgb, var(--yes) 18%, transparent); color: var(--yes); }
.badge--open { background: color-mix(in srgb, var(--accent) 20%, transparent); color: var(--accent); }
.readtag { display: inline-flex; align-items: center; gap: 6px; color: var(--yes); font-size: 13.5px; font-weight: 600; }

.event__top { display: flex; gap: 12px; align-items: flex-start; }

/* choices (RSVP & vote) */
.choices { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding-top: 4px; }
.choice {
  display: flex; align-items: center; justify-content: center; gap: 7px;
  padding: 12px; border-radius: var(--radius-sm); border: 1.5px solid var(--border);
  background: var(--surface); color: var(--text); font-weight: 650; font-size: 14.5px;
}
.choice svg { font-size: 18px; }
.choice--yes { border-color: var(--yes); background: color-mix(in srgb, var(--yes) 14%, transparent); color: var(--yes); }
.choice--no { border-color: var(--no); background: color-mix(in srgb, var(--no) 14%, transparent); color: var(--no); }
.choice--vote:hover { border-color: var(--primary); }

/* poll results */
.results { display: grid; gap: 10px; padding-top: 4px; }
.resbar__head { display: flex; justify-content: space-between; font-size: 13.5px; font-weight: 600; margin-bottom: 4px; }
.resbar__pct { color: var(--muted); }
.resbar__track { height: 12px; background: var(--surface-2); border-radius: 99px; overflow: hidden; }
.resbar__fill { height: 100%; border-radius: 99px; transition: width .5s ease; }
.resbar__fill--yes { background: var(--yes); }
.resbar__fill--no { background: var(--no); }

/* empty state */
.empty { text-align: center; padding: 48px 20px; color: var(--muted); display: grid; gap: 8px; justify-items: center; }
.empty__icon { font-size: 44px; opacity: .5; }
.empty__title { font-weight: 650; color: var(--text); margin: 0; }
.empty__hint { font-size: 13.5px; margin: 0; }
.muted { color: var(--muted); font-size: 13.5px; margin: 0; }

/* ==========================================================================
   MODAL
   ========================================================================== */
.overlay {
  position: fixed; inset: 0; z-index: 100; display: grid; align-items: flex-end;
  background: rgba(12, 22, 30, .55); opacity: 0; transition: opacity .2s;
  padding: 0;
}
.overlay--show { opacity: 1; }
.modal {
  background: var(--surface); width: 100%; max-width: 560px; margin: 0 auto;
  border-radius: 22px 22px 0 0; box-shadow: var(--shadow-lg);
  max-height: 90vh; display: flex; flex-direction: column;
  transform: translateY(100%); transition: transform .25s ease;
}
.overlay--show .modal { transform: none; }
.modal__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 16px 18px 8px; }
.modal__title { font-size: 18px; margin: 0; }
.modal__close { background: none; border: none; font-size: 28px; line-height: 1; color: var(--muted); width: 36px; height: 36px; border-radius: 9px; }
.modal__close:hover { background: var(--surface-2); }
.modal__body { padding: 8px 18px 18px; overflow-y: auto; }
.modal__footer { display: flex; gap: 10px; padding: 12px 18px max(14px, env(safe-area-inset-bottom)); border-top: 1px solid var(--border); }
.modal__footer .btn { flex: 1; }

@media (min-width: 600px) {
  .overlay { align-items: center; padding: 24px; }
  .modal { border-radius: 22px; transform: translateY(20px) scale(.98); }
  .overlay--show .modal { transform: none; }
}

/* readers / participations groups */
.readgroup { margin-top: 14px; }
.readgroup__title { font-size: 13px; font-weight: 700; color: var(--muted); margin: 0 0 6px; text-transform: uppercase; letter-spacing: .03em; }
.readrow { display: flex; align-items: center; gap: 9px; padding: 7px 0; border-bottom: 1px solid var(--border); font-size: 14px; }
.readrow:last-child { border-bottom: none; }

/* thread (messages) */
.thread { display: grid; gap: 10px; }
.bubble { padding: 11px 13px; border-radius: 14px; max-width: 88%; }
.bubble--parent { background: var(--surface-2); justify-self: start; border-bottom-left-radius: 4px; }
.bubble--ds { background: var(--primary-soft); justify-self: end; border-bottom-right-radius: 4px; }
.bubble__name { font-size: 12px; font-weight: 700; color: var(--muted); margin: 0 0 3px; }
.bubble__text { margin: 0; font-size: 14.5px; line-height: 1.5; }
.bubble__time { font-size: 11px; color: var(--muted); display: block; margin-top: 4px; }
.thread__reply { margin-top: 16px; display: grid; gap: 10px; border-top: 1px solid var(--border); padding-top: 14px; }

/* profile */
.avatar { width: 78px; height: 78px; border-radius: 50%; background: var(--primary); color: var(--primary-ink); display: grid; place-items: center; font-size: 32px; font-weight: 700; margin: 0 auto; box-shadow: var(--shadow); }
.avatar--sm { width: 40px; height: 40px; font-size: 16px; box-shadow: none; }
.rolepill { text-align: center; color: var(--muted); font-weight: 600; margin: 8px 0 0; }
.setting { display: flex; align-items: center; gap: 12px; width: 100%; background: none; border: none; padding: 12px 4px; color: var(--text); border-radius: 10px; }
.setting:hover { background: var(--surface-2); }
.setting__icon { font-size: 20px; color: var(--primary); }
.setting__label { flex: 1; text-align: left; font-size: 14.5px; font-weight: 550; }

/* parents list / import */
.prow { display: flex; align-items: center; gap: 12px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 14px; box-shadow: var(--shadow); }
.prow__main { flex: 1; min-width: 0; }
.prow__name { margin: 0; font-weight: 650; font-size: 15px; }
.prow__meta { margin: 2px 0 0; font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hidden { display: none; }
.dropzone { width: 100%; display: grid; gap: 6px; justify-items: center; padding: 26px; border: 2px dashed var(--border); border-radius: var(--radius); background: var(--surface-2); color: var(--text); }
.dropzone__icon { font-size: 30px; color: var(--primary); }
.dropzone__text { font-weight: 650; }
.dropzone__hint { font-size: 12.5px; color: var(--muted); }
.importprev { margin-top: 12px; }
.minitable { display: grid; gap: 4px; margin-top: 6px; }
.minitable__row { display: grid; grid-template-columns: 1.2fr 1.6fr .9fr; gap: 6px; font-size: 12.5px; padding: 6px 8px; background: var(--surface-2); border-radius: 8px; }
.minitable__row span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ==========================================================================
   TOAST
   ========================================================================== */
#toast-host { position: fixed; left: 0; right: 0; bottom: calc(var(--tabbar-h) + 16px); z-index: 200; display: grid; gap: 8px; justify-items: center; pointer-events: none; padding: 0 16px; }
.toast {
  background: var(--text); color: var(--bg); padding: 11px 16px; border-radius: 12px;
  font-size: 14px; font-weight: 550; box-shadow: var(--shadow-lg); max-width: 92vw;
  opacity: 0; transform: translateY(12px); transition: opacity .25s, transform .25s;
}
.toast--show { opacity: 1; transform: none; }
.toast--success { background: var(--yes); color: #fff; }
.toast--error { background: var(--no); color: #fff; }
.toast--info { background: var(--primary); color: var(--primary-ink); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }

/* ===== SaaS v2 additions ===== */
.auth__links { display: grid; gap: 2px; margin-top: 10px; }
.banner { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--radius); margin-bottom: 4px; box-shadow: var(--shadow); }
.banner--warn { background: color-mix(in srgb, var(--accent) 16%, var(--surface)); border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent); }
.banner__icon { font-size: 22px; color: var(--accent); flex: none; }
.banner__main { flex: 1; min-width: 0; }
.banner__title { margin: 0; font-weight: 700; font-size: 14.5px; }
.banner__text { margin: 2px 0 0; font-size: 12.5px; color: var(--muted); }
.badge--muted { background: var(--surface-2); color: var(--muted); }
.is-locked { opacity: .55; }
.appbar__logo--super { display: grid; place-items: center; background: var(--primary); color: #fff; font-size: 20px; }
.card__open { cursor: pointer; }
select.input { 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) 1.2em, calc(100% - 13px) 1.2em; background-size: 5px 5px; background-repeat: no-repeat; }

/* ==========================================================================
   Multi-Tenant components (OrgHub)
   ========================================================================== */

/* ---- Γενική σελίδα (page head + list rows) ---- */
.page { display: grid; gap: 14px; }
.page__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.page__title { font-size: 19px; font-weight: 750; margin: 0; }
.page__actions { display: flex; gap: 8px; flex-wrap: wrap; }
.section__label { font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; margin: 6px 0 -4px; }
.small { font-size: 12.5px; }

.list__row { display: flex; align-items: center; gap: 12px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 10px 12px; box-shadow: var(--shadow); }
.list__main { flex: 1; min-width: 0; }
.list__title { margin: 0; font-weight: 650; font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.list__sub { margin: 1px 0 0; font-size: 12.5px; }

/* ---- Avatars (μικρά/μεγάλα/ουδέτερα) ---- */
.avatar--lg { width: 78px; height: 78px; font-size: 32px; }
.avatar:not(.avatar--lg) { width: 40px; height: 40px; font-size: 16px; box-shadow: none; margin: 0; flex: none; }
.avatar--muted { background: var(--surface-2); color: var(--muted); }

/* ---- Role badges ---- */
.badge--owner   { background: color-mix(in srgb, var(--primary) 18%, transparent); color: var(--primary); }
.badge--admin   { background: color-mix(in srgb, var(--accent) 20%, transparent); color: var(--accent); }
.badge--member  { background: var(--surface-2); color: var(--muted); }
.badge--readonly{ background: var(--surface-2); color: var(--muted); opacity: .8; }
.badge--muted   { background: var(--surface-2); color: var(--muted); }

.iconbtn--sm { width: 32px; height: 32px; font-size: 15px; flex: none; }

/* ---- Org switcher ---- */
.appbar__brand--tap { cursor: pointer; }
.orglist { display: grid; gap: 8px; }
.orglist__item { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; background: var(--surface); border: 1.5px solid var(--border); border-radius: var(--radius-sm); padding: 12px; color: var(--text); }
.orglist__item.is-active { border-color: var(--primary); background: var(--primary-soft); }
.orglist__icon { width: 38px; height: 38px; border-radius: 10px; background: var(--surface-2); display: grid; place-items: center; font-size: 19px; color: var(--primary); flex: none; }
.orglist__main { flex: 1; min-width: 0; }
.orglist__name { margin: 0; font-weight: 650; font-size: 14.5px; }
.orglist__meta { margin: 1px 0 0; font-size: 12px; color: var(--muted); }
.orglist__check { color: var(--primary); font-size: 18px; }

/* ---- Onboarding ---- */
.auth__card--wide { max-width: 460px; }
.onb__steps { display: grid; gap: 12px; margin: 4px 0 8px; }
.onb__step { display: flex; align-items: center; gap: 12px; text-align: left; }
.onb__icon { width: 40px; height: 40px; border-radius: 10px; background: var(--primary-soft); color: var(--primary); display: grid; place-items: center; font-size: 20px; flex: none; }
.onb__title { margin: 0; font-weight: 650; font-size: 14.5px; }
.onb__text { margin: 1px 0 0; font-size: 12.5px; }
.onb__trial { text-align: center; font-size: 13px; color: var(--primary); font-weight: 600; margin: 0 0 6px; }

/* ---- Auth: links, hints, errors, accept ---- */
.auth__links { text-align: center; margin-top: 12px; }
.linkbtn { background: none; border: none; color: var(--primary); font-weight: 600; font-size: 13.5px; padding: 6px; }
.auth__error { background: color-mix(in srgb, var(--no) 14%, var(--surface)); color: var(--no); border: 1px solid color-mix(in srgb, var(--no) 40%, transparent); border-radius: var(--radius-sm); padding: 10px 12px; font-size: 13.5px; margin: 0 0 12px; }
.auth__hints { margin-top: 16px; display: grid; gap: 6px; border-top: 1px dashed var(--border); padding-top: 12px; }
.auth__hintttl { font-size: 11.5px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; margin: 0 0 2px; }
.auth__hint { display: flex; justify-content: space-between; align-items: center; gap: 8px; background: var(--surface-2); border: none; border-radius: 9px; padding: 8px 11px; color: var(--text); }
.auth__hintrole { font-weight: 600; font-size: 13px; }
.auth__hintmail { font-size: 12px; color: var(--muted); }

/* ---- Cards (muted) & color input & settings rows ---- */
.card--muted { background: var(--surface-2); box-shadow: none; }
.input--color { height: 46px; padding: 4px; cursor: pointer; }

/* ---- Locked (write-gated) controls ---- */
.is-locked { opacity: .55; }

/* ==========================================================================
   Θετική, ζεστή αναβάθμιση εμφάνισης (OrgHub) — υπερισχύει των παραπάνω
   ========================================================================== */

/* Ζεστό «καλωσόρισμα» (hero) στην κορυφή κάθε κύριας οθόνης */
.greeting {
  background: var(--grad-warm);
  color: #fff;
  border-radius: var(--radius);
  padding: 18px 18px 20px;
  box-shadow: var(--shadow-warm);
  position: relative; overflow: hidden;
}
.greeting::after {
  content: ""; position: absolute; right: -28px; top: -28px;
  width: 130px; height: 130px; border-radius: 50%;
  background: rgba(255, 255, 255, .16);
}
.greeting__hello { color: #fff; position: relative; }
.greeting__sub { color: rgba(255, 255, 255, .92); position: relative; }

/* Κουμπιά κύριας ενέργειας: απαλό τιρκουάζ ντεγκραντέ + αίσθηση πατήματος */
.btn--primary {
  background: var(--grad-teal); color: #fff; border: none;
  box-shadow: 0 6px 16px rgba(19, 138, 114, .26);
  transition: transform .12s ease, filter .12s ease, box-shadow .12s ease;
}
.btn--primary:hover { filter: brightness(1.05); }
.btn--primary:active { transform: translateY(1px); box-shadow: 0 3px 10px rgba(19, 138, 114, .24); }

/* Χαρούμενες, απαλά χρωματιστές στατιστικές κάρτες */
.stat { transition: transform .15s ease, box-shadow .15s ease; }
.stat--teal  { background: color-mix(in srgb, var(--primary) 7%, var(--surface)); }
.stat--amber { background: color-mix(in srgb, var(--accent-2) 13%, var(--surface)); }
.stat--coral { background: color-mix(in srgb, var(--accent) 11%, var(--surface)); }
.stat--amber .stat__icon { background: color-mix(in srgb, var(--accent-2) 26%, transparent); color: #c97b16; }
button.stat:hover, .ministat:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
[data-theme="dark"] .stat--amber .stat__icon { color: var(--accent-2); }

/* Γρήγορες ενέργειες: λεπτή χρωματιστή πινελιά */
.quick__btn { transition: transform .12s ease, border-color .12s ease, background .12s ease; }
.quick__btn:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--primary) 45%, transparent); background: var(--primary-soft); }
.quick__icon { color: var(--primary); }

/* Κάρτες που ανοίγουν: ήπιο «σήκωμα» στο hover */
.card--msg, .orglist__item, .list__row { transition: transform .14s ease, box-shadow .14s ease, border-color .14s ease; }
.card--msg:hover, .list__row:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }

/* Ηλιόλουστο «λαμπύρισμα» πίσω από τη σύνδεση & το splash */
.auth { background: radial-gradient(135% 90% at 50% -10%, color-mix(in srgb, var(--accent) 18%, var(--bg)) 0%, var(--bg) 55%); }
.auth__logo { box-shadow: 0 8px 22px rgba(255, 138, 91, .28); border-radius: 22px; }
#splash { background: radial-gradient(120% 80% at 50% 0%, color-mix(in srgb, var(--accent) 14%, var(--bg)) 0%, var(--bg) 60%); }

/* Active καρτέλα: μικρό «φουσκωτό» pill για ζεστασιά */
.tab--active { color: var(--primary); }
.tab--active .tab__icon { transform: translateY(-2px); }

/* Επιβεβαιωτικά badges πιο χαρούμενα */
.badge--ok { background: color-mix(in srgb, var(--yes) 18%, transparent); color: var(--yes); }

/* Ήπιο animation εισόδου (σεβασμός σε reduced motion) */
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.greeting, .card, .panel, .stat, .auth__card { animation: rise .34s cubic-bezier(.2, .7, .3, 1) both; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ==========================================================================
   Αρχική σελίδα (home / landing) για επισκέπτες
   ========================================================================== */
.auth--home { display: block; place-content: normal; padding: 0; overflow-y: auto; }
.home { max-width: 540px; margin: 0 auto; padding: 30px 18px 52px; display: grid; gap: 28px; }
.home__hero { text-align: center; display: grid; gap: 14px; justify-items: center; padding: 10px 4px 4px; }
.home__logo { width: 76px; height: 76px; border-radius: 22px; box-shadow: var(--shadow-warm); }
.home__title { font-size: 30px; line-height: 1.15; font-weight: 800; margin: 0; letter-spacing: -.01em; }
.home__sub { font-size: 16px; line-height: 1.5; color: var(--muted); margin: 0; max-width: 38ch; }
.home__cta { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; width: 100%; margin-top: 4px; }
.home__cta .btn { flex: 1 1 150px; }
.home__trust { font-size: 12.5px; color: var(--muted); margin: 0; }
.home__block { display: grid; gap: 12px; }
.home__sectitle { font-size: 12px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); margin: 0; }
.home__features { display: grid; gap: 12px; }
.feat { display: flex; gap: 13px; align-items: flex-start; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 15px; box-shadow: var(--shadow); }
.feat__icon { width: 44px; height: 44px; flex: none; border-radius: 13px; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); }
.feat__icon svg { width: 22px; height: 22px; }
.feat__t { margin: 0; font-weight: 700; font-size: 15px; }
.feat__d { margin: 3px 0 0; font-size: 13.5px; line-height: 1.45; color: var(--muted); }
.home__steps { display: grid; gap: 12px; }
.step { display: flex; gap: 13px; align-items: center; }
.step__n { width: 30px; height: 30px; flex: none; border-radius: 50%; background: var(--grad-warm); color: #fff; font-weight: 800; font-size: 14px; display: grid; place-items: center; box-shadow: var(--shadow-warm); }
.step__t { margin: 0; font-size: 14.5px; line-height: 1.45; }
.home__foot { display: grid; gap: 12px; justify-items: center; text-align: center; padding-top: 4px; }
.home__foot .btn { width: 100%; }
.auth__back { justify-self: start; margin-bottom: 4px; }

/* ---- Τιμές & πλάνα (αρχική) ---- */
.home__plans { display: grid; gap: 12px; }
.plan { position: relative; background: var(--surface); border: 1.5px solid var(--border); border-radius: var(--radius); padding: 18px 16px; display: grid; gap: 10px; box-shadow: var(--shadow); }
.plan--hl { border-color: color-mix(in srgb, var(--primary) 55%, transparent); box-shadow: 0 8px 26px rgba(19, 138, 114, .14); }
.plan__tag { position: absolute; top: -10px; right: 14px; background: var(--grad-warm); color: #fff; font-size: 11px; font-weight: 800; padding: 3px 10px; border-radius: 99px; box-shadow: var(--shadow-warm); }
.plan__name { margin: 0; font-weight: 800; font-size: 16px; }
.plan__price { margin: 0; display: flex; align-items: baseline; gap: 2px; }
.plan__amount { font-size: 30px; font-weight: 800; color: var(--primary); }
.plan__per { font-size: 13px; color: var(--muted); }
.plan__feats { list-style: none; margin: 2px 0 4px; padding: 0; display: grid; gap: 7px; }
.plan__feats li { position: relative; padding-left: 22px; font-size: 13.5px; color: var(--text); line-height: 1.4; }
.plan__feats li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--yes); font-weight: 800; }
.btn--sm { padding: 10px 14px; font-size: 13.5px; }

/* ---- Footer αρχικής ---- */
.home__footer { text-align: center; border-top: 1px solid var(--border); padding-top: 22px; margin-top: 6px; display: grid; gap: 4px; }
.home__footer-brand { margin: 0; font-weight: 800; color: var(--primary); }
.home__footer-tag { margin: 0; font-size: 13px; color: var(--muted); }
.home__footer-copy { margin: 4px 0 0; font-size: 12px; color: var(--muted); }

/* ==========================================================================
   ΑΡΧΙΚΗ — Ανανεωμένο, πιο «premium» look (v2)
   ========================================================================== */
.auth--home { background:
   radial-gradient(1200px 420px at 50% -120px, color-mix(in srgb, var(--primary) 18%, transparent), transparent 70%),
   var(--bg); }
.home { max-width: 560px; gap: 34px; }

/* Hero */
.home__hero { gap: 16px; padding: 22px 6px 6px; }
.home__logo { width: 72px; height: 72px; border-radius: 20px; box-shadow: 0 12px 30px color-mix(in srgb, var(--primary) 30%, transparent); }
.home__pill { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 700; color: var(--primary);
  background: color-mix(in srgb, var(--primary) 12%, var(--surface)); border: 1px solid color-mix(in srgb, var(--primary) 22%, transparent);
  padding: 6px 12px; border-radius: 999px; }
.home__title { font-size: 34px; line-height: 1.12; font-weight: 850; letter-spacing: -.02em;
  background: linear-gradient(180deg, var(--text), color-mix(in srgb, var(--text) 70%, var(--primary)));
  -webkit-background-clip: text; background-clip: text; color: transparent; }
.home__sub { font-size: 16.5px; max-width: 40ch; }
.home__cta { gap: 12px; margin-top: 6px; }
.home__cta .btn { flex: 1 1 160px; padding: 13px 18px; font-weight: 700; border-radius: 14px; }
.home__cta .btn--primary { box-shadow: 0 10px 24px color-mix(in srgb, var(--primary) 32%, transparent); }

/* Section titles */
.home__sectitle { font-size: 12px; letter-spacing: .09em; position: relative; padding-left: 14px; }
.home__sectitle::before { content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

/* Features — πλέγμα 2 στηλών, πιο «κάρτα» */
.home__features { grid-template-columns: 1fr 1fr; gap: 10px; }
.home__features .feat:nth-child(5) { grid-column: 1 / -1; }
.feat { flex-direction: column; align-items: flex-start; gap: 10px; border-radius: 16px; padding: 16px; transition: transform .15s ease, box-shadow .15s ease; }
.feat:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(0,0,0,.08); }
.feat__icon { width: 42px; height: 42px; border-radius: 12px; background: var(--grad-teal, var(--primary-soft)); color: #fff; }
.feat__icon svg { width: 22px; height: 22px; }

/* Steps — κάθετη γραμμή χρόνου */
.home__steps { position: relative; padding-left: 6px; }
.step { align-items: flex-start; }
.step__n { background: var(--grad-warm); box-shadow: 0 6px 16px color-mix(in srgb, var(--accent) 40%, transparent); }
.step__t { padding-top: 4px; }

/* Πλάνα (σελίδα Τιμές) */
.plan { border-radius: 18px; }
.plan--hl { transform: scale(1.02); }

/* FAQ accordion */
.home__block details { transition: box-shadow .15s ease; }
.home__block details[open] { box-shadow: 0 8px 22px rgba(0,0,0,.07); }
.home__block summary { list-style: none; display: flex; justify-content: space-between; align-items: center; }
.home__block summary::-webkit-details-marker { display: none; }
.home__block summary::after { content: "+"; font-size: 20px; font-weight: 400; color: var(--primary); line-height: 1; }
.home__block details[open] summary::after { content: "−"; }

/* CTA band πριν το footer */
.home__foot { background: var(--grad-teal, var(--primary)); border-radius: 20px; padding: 22px 18px; color: #fff;
  box-shadow: 0 14px 34px color-mix(in srgb, var(--primary) 30%, transparent); }
.home__foot .btn--primary { background: #fff; color: var(--primary); }
.home__foot .btn--block { box-shadow: none; }
.home__foot .linkbtn { color: #fff; opacity: .95; }

/* Nav */
.home nav { backdrop-filter: blur(8px); }

/* Badge ειδοποιήσεων στο καμπανάκι */
.notif-badge { position: absolute; top: -2px; right: -2px; min-width: 16px; height: 16px; padding: 0 4px;
  display: flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 800; line-height: 1;
  color: #fff; background: var(--accent, #ff5a4d); border-radius: 999px; box-shadow: 0 0 0 2px var(--surface); }

/* ==========================================================================
   ΑΡΧΙΚΗ — επιπλέον ενότητες (demo, πριν/μετά, οθόνες, οργανισμοί, testimonials, GDPR)
   ========================================================================== */
/* Demo κάρτες */
.home__demos { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.demo-card { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 16px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 6px; text-align: center; }
.demo-card__emoji { font-size: 30px; }
.demo-card__t { margin: 2px 0 0; font-weight: 800; font-size: 15px; }
.demo-card__d { margin: 0 0 8px; font-size: 12.5px; color: var(--muted); line-height: 1.4; flex: 1; }

/* Πριν / Μετά */
.home__beforeafter { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ba { border-radius: 16px; padding: 14px; border: 1px solid var(--border); }
.ba--before { background: color-mix(in srgb, #e2574c 8%, var(--surface)); }
.ba--after { background: color-mix(in srgb, var(--primary) 9%, var(--surface)); }
.ba__h { margin: 0 0 8px; font-weight: 800; font-size: 14px; }
.ba__list { margin: 0; padding-left: 18px; display: grid; gap: 5px; font-size: 13px; line-height: 1.4; }
.ba--before .ba__list { color: color-mix(in srgb, #b23a30 80%, var(--text)); }

/* Οθόνες (στην πράξη) */
.home__screens { display: grid; gap: 8px; }
.screen-row { display: flex; gap: 12px; align-items: flex-start; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; box-shadow: var(--shadow); }
.screen-row__n { flex: 0 0 26px; height: 26px; border-radius: 8px; background: var(--grad-teal, var(--primary)); color: #fff; font-weight: 800; font-size: 13px; display: flex; align-items: center; justify-content: center; }
.screen-row__t { margin: 0; font-weight: 700; font-size: 14px; }
.screen-row__d { margin: 2px 0 0; font-size: 12.5px; color: var(--muted); line-height: 1.4; }

/* Για ποιους είναι */
.home__orgkinds { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
.orgkind { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 14px 8px; text-align: center; box-shadow: var(--shadow); }
.orgkind__e { font-size: 26px; }
.orgkind__t { margin: 6px 0 0; font-size: 12px; font-weight: 700; line-height: 1.25; }

/* Testimonials */
.home__testi { display: grid; gap: 10px; }
.testi { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 16px; box-shadow: var(--shadow); }
.testi__q { margin: 0 0 10px; font-size: 14px; line-height: 1.5; font-style: italic; }
.testi__n { margin: 0; font-weight: 800; font-size: 13.5px; }
.testi__r { margin: 1px 0 0; font-size: 12px; color: var(--muted); }

/* GDPR & Ασφάλεια */
.home__gdpr { display: grid; gap: 7px; }
.gdpr-row { display: flex; gap: 10px; align-items: center; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; font-size: 13.5px; }
.gdpr-row__c { flex: 0 0 20px; height: 20px; border-radius: 50%; background: var(--primary); color: #fff; font-weight: 800; font-size: 12px; display: flex; align-items: center; justify-content: center; }

@media (max-width: 360px) {
  .home__orgkinds { grid-template-columns: 1fr 1fr; }
}

/* ==========================================================================
   MOBILE HARDENING — εξάλειψη οριζόντιου scroll & responsive
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html, body { max-width: 100%; overflow-x: hidden; }
img, svg, video, canvas { max-width: 100%; height: auto; }
.content, .view, .page, .panel, .card, main { max-width: 100%; overflow-x: hidden; }
input, textarea, select, .input { max-width: 100%; }
.card__title, .card__meta, .list__title, .rowitem__title, .rowitem__meta, .appbar__name { overflow-wrap: anywhere; word-break: break-word; }
.appbar__actions { flex-wrap: nowrap; flex-shrink: 0; }
.appbar__brand { min-width: 0; }
.appbar__brandtext { min-width: 0; overflow: hidden; }
.appbar__name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 52vw; }
.page__head, .page__actions { flex-wrap: wrap; gap: 8px; }
.stats, .home__features, .home__demos, .home__beforeafter, .home__orgkinds, .home__testi { min-width: 0; }
pre, code { white-space: pre-wrap; word-break: break-word; }
table { display: block; max-width: 100%; overflow-x: auto; }
.btn { max-width: 100%; }
@media (max-width: 380px) {
  .home__demos, .home__beforeafter { grid-template-columns: 1fr; }
}

/* ==========================================================================
   DRAWER (hamburger μενού)
   ========================================================================== */
.drawer { position: fixed; inset: 0; background: rgba(0,0,0,.42); opacity: 0; transition: opacity .25s ease; z-index: 300; display: flex; justify-content: flex-end; }
.drawer.is-open { opacity: 1; }
.drawer__panel { width: min(84vw, 330px); max-width: 100%; height: 100%; background: var(--surface); box-shadow: -10px 0 40px rgba(0,0,0,.25); transform: translateX(100%); transition: transform .28s cubic-bezier(.4,0,.2,1); display: flex; flex-direction: column; overflow-y: auto; padding: 14px; }
.drawer.is-open .drawer__panel { transform: translateX(0); }
.drawer__head { padding: 6px 8px 14px; border-bottom: 1px solid var(--border); margin-bottom: 8px; }
.drawer__org { margin: 0; font-weight: 800; font-size: 16px; overflow-wrap: anywhere; }
.drawer__role { margin: 3px 0 0; font-size: 12px; color: var(--muted); }
.drawer__nav { display: flex; flex-direction: column; gap: 2px; }
.drawer__item { display: flex; align-items: center; gap: 13px; padding: 12px; border-radius: 12px; border: none; background: transparent; cursor: pointer; font-size: 14.5px; font-weight: 600; color: var(--text); text-align: left; width: 100%; transition: background .15s ease; }
.drawer__item:active, .drawer__item:hover { background: color-mix(in srgb, var(--primary) 8%, transparent); }
.drawer__item.is-active { background: color-mix(in srgb, var(--primary) 15%, transparent); color: var(--primary); }
.drawer__item--danger { color: #e2574c; }
.drawer__icon { flex: 0 0 22px; height: 22px; display: flex; align-items: center; justify-content: center; }
.drawer__icon svg { width: 20px; height: 20px; }
.drawer__sep { height: 1px; background: var(--border); margin: 8px 0; }

/* ==========================================================================
   GLOBAL SEARCH overlay
   ========================================================================== */
.gsearch { position: fixed; inset: 0; background: rgba(0,0,0,.42); opacity: 0; transition: opacity .2s ease; z-index: 320; display: flex; justify-content: center; align-items: flex-start; padding: 0; }
.gsearch.is-open { opacity: 1; }
.gsearch__panel { width: 100%; max-width: 560px; background: var(--surface); border-radius: 0 0 20px 20px; box-shadow: 0 18px 50px rgba(0,0,0,.28); transform: translateY(-14px); transition: transform .24s cubic-bezier(.4,0,.2,1); max-height: 86vh; display: flex; flex-direction: column; overflow: hidden; }
.gsearch.is-open .gsearch__panel { transform: translateY(0); }
.gsearch__bar { display: flex; align-items: center; gap: 10px; padding: 14px 14px; border-bottom: 1px solid var(--border); }
.gsearch__icon { display: flex; color: var(--muted); }
.gsearch__icon svg { width: 20px; height: 20px; }
.gsearch__input { flex: 1; border: none; background: transparent; font-size: 16px; color: var(--text); outline: none; min-width: 0; }
.gsearch__results { overflow-y: auto; padding: 8px; }
.gsearch__hint { text-align: center; color: var(--muted); padding: 26px 10px; font-size: 14px; margin: 0; }
.gsearch__group { display: flex; align-items: center; gap: 8px; margin: 12px 8px 4px; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.gsearch__gicon { display: flex; } .gsearch__gicon svg { width: 15px; height: 15px; }
.gsearch__item { display: flex; flex-direction: column; gap: 2px; width: 100%; text-align: left; background: transparent; border: none; border-radius: 12px; padding: 11px 12px; cursor: pointer; transition: background .14s ease; }
.gsearch__item:hover { background: color-mix(in srgb, var(--primary) 9%, transparent); }
.gsearch__ititle { font-size: 14.5px; font-weight: 700; color: var(--text); overflow-wrap: anywhere; }
.gsearch__isub { font-size: 12.5px; color: var(--muted); overflow-wrap: anywhere; }

/* ==========================================================================
   PREMIUM polish — βάθος καρτών & ομαλά animations
   ========================================================================== */
@keyframes ohFadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.view > .greeting, .view > .stats, .view > .quick, .view > .panel, .page > .card, .view > section, .list > .card { animation: ohFadeUp .32s ease both; }
.view > .panel:nth-child(2), .view > section:nth-child(2) { animation-delay: .04s; }
.view > .panel:nth-child(3), .view > section:nth-child(3) { animation-delay: .08s; }
.card { transition: transform .15s ease, box-shadow .15s ease; }
.card:hover { box-shadow: var(--shadow-lg); }
.stat { box-shadow: var(--shadow); }
.panel { box-shadow: var(--shadow); }

/* Μητρώο μελών — καρτέλα & clickable σειρά */
.list__tap { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; background: none; border: none; text-align: left; cursor: pointer; padding: 0; color: inherit; }
.list__tap:hover .list__title { color: var(--primary); }
.kv { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--border); }
.kv:last-child { border-bottom: none; }
.kv__k { font-size: 13px; color: var(--muted); font-weight: 600; flex: 0 0 auto; }
.kv__v { font-size: 13.5px; font-weight: 700; text-align: right; overflow-wrap: anywhere; }

/* «Η συνδρομή μου» */
.mysub__top { display: flex; }
.mysub__badge { display: inline-flex; align-items: center; gap: 7px; padding: 7px 13px; border-radius: 99px; font-weight: 800; font-size: 13.5px; }
.mysub__badge svg { width: 16px; height: 16px; }
.mysub__badge--ok { background: color-mix(in srgb, var(--primary) 16%, transparent); color: var(--primary); }
.mysub__badge--warn { background: color-mix(in srgb, var(--accent-2,#e0a44a) 22%, transparent); color: #b9791a; }
.mysub__badge--bad { background: color-mix(in srgb, var(--coral,#e2574c) 18%, transparent); color: #c4392f; }
.mysub__big { font-size: 28px; font-weight: 850; margin: 12px 0 0; }
.mysub__rows { margin-top: 12px; display: grid; gap: 2px; }
.mysub__row { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--border); }
.mysub__row:last-child { border-bottom: none; }
.mysub__k { color: var(--muted); font-size: 13px; font-weight: 600; }
.mysub__v { font-weight: 800; font-size: 14px; }
.mysub__hint { margin: 12px 0 0; font-size: 13px; line-height: 1.5; background: color-mix(in srgb, var(--accent-2,#e0a44a) 12%, var(--surface)); border: 1px solid color-mix(in srgb, var(--accent-2,#e0a44a) 30%, transparent); border-radius: 10px; padding: 10px 12px; }

/* Push prompt banner */
.pushprompt { position: fixed; left: 10px; right: 10px; bottom: calc(var(--tabbar-h) + 70px); z-index: 120; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow-lg); padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; animation: ohFadeUp .3s ease both; max-width: 560px; margin: 0 auto; }
.pushprompt__txt { display: flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 600; }
.pushprompt__txt svg { width: 18px; height: 18px; color: var(--primary); flex: 0 0 auto; }
.pushprompt__btns { display: flex; align-items: center; justify-content: flex-end; gap: 12px; }

/* ==========================================================================
   ✦ REDESIGN LAYER 2.0 — σύγχρονο SaaS (Linear/Notion/Stripe/Apple)
   Μόνο αισθητική/UX· καμία αλλαγή σε logic/routes/DB.
   ========================================================================== */
:root {
  --bg: #f6f7f9;
  --surface: #ffffff;
  --surface-2: #eef1f4;
  --text: #1b2530;
  --muted: #6b757e;
  --border: #e7eaef;
  --primary: #0f8a72;
  --primary-ink: #ffffff;
  --primary-soft: #d6efe8;
  --shadow: 0 1px 2px rgba(16,24,40,.04), 0 2px 6px rgba(16,24,40,.05);
  --shadow-lg: 0 12px 34px rgba(16,24,40,.14);
  --radius: 16px;
  --radius-sm: 12px;
}
body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; letter-spacing: -0.01em; }
h1, h2, h3, .greeting__hello, .page__title, .home__title, .panel__title { letter-spacing: -0.02em; }

/* Header: χαμηλότερο, μικρό logo */
.appbar { padding: 8px 14px; padding-top: max(8px, env(safe-area-inset-top)); }
.appbar__logo { width: 30px; height: 30px; border-radius: 9px; }
.appbar__name { font-size: 14.5px; }
.appbar__role { font-size: 11.5px; }
.appbar__actions { gap: 2px; }
.iconbtn { width: 36px; height: 36px; border-radius: 10px; transition: background .15s ease, color .15s ease; }

/* Περιεχόμενο πιο compact */
.content { padding: 14px 14px calc(var(--tabbar-h) + 22px); max-width: 680px; }
.view { gap: 13px; animation: fade .22s ease; }
.greeting__hello { font-size: 19px; font-weight: 780; }
.greeting__sub { font-size: 13px; }

/* Στατιστικά — compact premium */
.stats { gap: 9px; }
.stats--3 { gap: 8px; }
.stat { padding: 13px; border-radius: var(--radius); box-shadow: var(--shadow); gap: 3px; }
.stat__icon { width: 34px; height: 34px; font-size: 18px; border-radius: 10px; }
.stat__value { font-size: 22px; font-weight: 780; }
.stat__value--sm { font-size: 16px; }
.stat__label { font-size: 12px; }

/* Cards / panels — ήπιες σκιές, μεγάλο radius, compact */
.card { padding: 14px; border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--border); }
.panel { padding: 14px; border-radius: var(--radius); box-shadow: var(--shadow); }
.card:hover { box-shadow: var(--shadow-lg); }
.card__title { font-size: 15px; font-weight: 750; }
.card__meta { font-size: 12.5px; }

/* Λίστες — επίπεδες, hairline, compact */
.list { gap: 8px; }
.list__row { padding: 10px 12px; border-radius: 14px; box-shadow: none; border: 1px solid var(--border); transition: border-color .15s ease, background .15s ease; }
.list__row:hover { border-color: color-mix(in srgb, var(--primary) 32%, var(--border)); background: color-mix(in srgb, var(--primary) 3%, var(--surface)); }
.list__title { font-size: 14px; font-weight: 680; }
.list__sub { font-size: 12.5px; }

/* Buttons — ίδιο ύψος, icons αριστερά, variants */
.btn { height: 40px; padding: 0 16px; border-radius: 12px; font-weight: 650; font-size: 14.5px; transition: transform .12s ease, filter .18s ease, background .18s ease, box-shadow .18s ease; }
.btn--sm { height: 34px; padding: 0 12px; font-size: 13px; }
.btn--block { width: 100%; }
.btn--primary { box-shadow: 0 1px 2px rgba(16,24,40,.08); }
.btn--primary:hover { filter: none; background: color-mix(in srgb, var(--primary) 90%, #000 10%); }
.btn--ghost:hover { background: var(--surface-2); border-color: color-mix(in srgb, var(--primary) 22%, var(--border)); }
.btn__icon svg, .btn svg { width: 18px; height: 18px; }

/* Forms — λιγότερο ύψος, σταθερό spacing (16px font ώστε να μη ζουμάρει το iOS) */
.field { margin-bottom: 12px; }
.field__label { font-size: 12.5px; font-weight: 650; margin-bottom: 5px; }
.input { padding: 10px 13px; font-size: 16px; border-width: 1px; border-radius: 11px; }
.input:focus { box-shadow: 0 0 0 3px var(--primary-soft); }
.field__error { color: var(--no); font-size: 12px; margin-top: 5px; font-weight: 600; }

/* Bottom tabbar */
.tab { font-size: 10.5px; gap: 2px; }
.tab__icon svg { width: 22px; height: 22px; }

/* Drawer = sidebar: πιο στενό, accent active, hover */
.drawer__panel { width: min(82vw, 300px); padding: 12px; }
.drawer__item { padding: 11px 12px; border-radius: 11px; font-size: 14px; font-weight: 620; }
.drawer__item.is-active { background: color-mix(in srgb, var(--primary) 13%, transparent); color: var(--primary); position: relative; }
.drawer__item.is-active::before { content: ''; position: absolute; left: 0; top: 9px; bottom: 9px; width: 3px; border-radius: 0 3px 3px 0; background: var(--primary); }

/* Section labels & badges */
.section__label { font-size: 11px; letter-spacing: .06em; margin: 8px 0 0; }
.badge { border-radius: 8px; font-weight: 700; }
.page__title { font-size: 19px; font-weight: 800; }

/* Skeleton loading utility */
@keyframes shimmer { 0% { background-position: -200% 0; } 100% { background-position: 200% 0; } }
.skeleton { background: linear-gradient(90deg, var(--surface-2) 25%, color-mix(in srgb, var(--surface-2) 55%, #fff) 37%, var(--surface-2) 63%); background-size: 200% 100%; animation: shimmer 1.4s ease infinite; border-radius: 8px; min-height: 14px; }

/* Touch targets & motion */
.iconbtn, .tab, .btn, .drawer__item { -webkit-tap-highlight-color: transparent; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }

/* ==========================================================================
   ✦ REDESIGN 2.1 — Κάρτα «Σήμερα», modals, empty states, skeletons, dark
   ========================================================================== */
.today { gap: 10px; }
.today__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.today__item { display: flex; align-items: center; gap: 10px; padding: 11px; border-radius: 13px; border: 1px solid var(--border); background: var(--surface); cursor: pointer; text-align: left; transition: border-color .15s ease, background .15s ease, transform .12s ease; }
.today__item:hover { border-color: color-mix(in srgb, var(--primary) 32%, var(--border)); transform: translateY(-1px); }
.today__item--has { background: color-mix(in srgb, var(--primary) 4%, var(--surface)); }
.today__icon { width: 32px; height: 32px; flex: 0 0 32px; display: grid; place-items: center; border-radius: 9px; }
.today__icon svg { width: 17px; height: 17px; }
.today__icon--teal { background: var(--primary-soft); color: var(--primary); }
.today__icon--amber { background: color-mix(in srgb, var(--accent-2) 22%, transparent); color: #a9701a; }
.today__icon--coral { background: color-mix(in srgb, var(--coral) 18%, transparent); color: var(--coral); }
.today__n { font-size: 19px; font-weight: 820; margin: 0; line-height: 1; }
.today__l { font-size: 11.5px; color: var(--muted); margin: 2px 0 0; line-height: 1.2; }
.today__summary { font-size: 12.5px; color: var(--muted); margin: 2px 0 0; }
.pill { font-size: 11px; font-weight: 800; padding: 4px 10px; border-radius: 99px; white-space: nowrap; }
.pill--ok { background: var(--primary-soft); color: var(--primary); }
.pill--warn { background: color-mix(in srgb, var(--accent-2) 24%, transparent); color: #a9701a; }

/* Modals: μικρότερα, σύγχρονα, animated (centered σε tablet/laptop) */
.modal__title { font-size: 16px; font-weight: 800; }
@media (min-width: 640px) {
  .overlay { align-items: center; padding: 24px; }
  .modal { border-radius: 18px; max-width: 460px; opacity: 0; transform: translateY(10px) scale(.97); transition: transform .2s cubic-bezier(.4,0,.2,1), opacity .2s ease; }
  .overlay--show .modal { transform: none; opacity: 1; }
}

/* Empty states */
.empty { padding: 40px 20px; gap: 10px; }
.empty__icon { font-size: 40px; opacity: .35; }
.empty__title { font-weight: 750; font-size: 15px; }
.empty__hint { font-size: 13px; max-width: 280px; }

/* Skeletons */
.skeleton--line { height: 12px; border-radius: 6px; }
.skeleton--title { height: 18px; width: 55%; border-radius: 7px; }
.skeleton--card { height: 66px; border-radius: 14px; }
.skeleton-stack { display: grid; gap: 10px; }

/* ✦ Dark mode — ξανα-ορισμένο ΤΕΛΕΥΤΑΙΟ (νικά το redesign :root) */
[data-theme="dark"] {
  --bg: #0f1719;
  --surface: #161f23;
  --surface-2: #1e2a30;
  --text: #e9f0f2;
  --muted: #94a4ab;
  --border: #27353c;
  --primary: #2fc6a6;
  --primary-ink: #06201a;
  --primary-soft: #143a32;
  --shadow: 0 1px 2px rgba(0,0,0,.35), 0 4px 14px rgba(0,0,0,.35);
  --shadow-lg: 0 16px 44px rgba(0,0,0,.55);
}
[data-theme="dark"] .today__icon--amber, [data-theme="dark"] .pill--warn { color: var(--accent-2); }
[data-theme="dark"] .appbar { background: color-mix(in srgb, var(--surface) 86%, transparent); }

/* Page header (τίτλος + περιγραφή + κύρια ενέργεια) */
.pagehead { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 2px; }
.pagehead__text { min-width: 0; }
.pagehead__title { font-size: 20px; font-weight: 820; margin: 0; letter-spacing: -0.02em; }
.pagehead__sub { font-size: 13px; color: var(--muted); margin: 3px 0 0; line-height: 1.4; }
.pagehead__cta { flex: 0 0 auto; white-space: nowrap; }

/* KPI: μεταβολή + progress */
.stat__change { font-size: 11px; font-weight: 800; margin-top: 1px; display: inline-flex; align-items: center; gap: 3px; }
.stat__change--up { color: var(--yes); }
.stat__change--up::before { content: '▲'; font-size: 8px; }
.kpi-prog { display: grid; gap: 5px; margin: 2px 0 6px; }
.kpi-prog__head { display: flex; justify-content: space-between; align-items: baseline; }
.kpi-prog__pct { font-size: 13px; font-weight: 800; color: var(--primary); }

/* #35 Tabs */
.tabs { display: flex; gap: 4px; background: var(--surface-2); padding: 4px; border-radius: 12px; margin-bottom: 6px; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.tabs__tab { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px; padding: 7px 13px; border: none; background: transparent; border-radius: 9px; font-size: 13px; font-weight: 650; color: var(--muted); cursor: pointer; transition: background .15s ease, color .15s ease; white-space: nowrap; }
.tabs__tab.is-active { background: var(--surface); color: var(--text); box-shadow: var(--shadow); }
.tabs__count { font-size: 11px; background: color-mix(in srgb, var(--primary) 14%, transparent); color: var(--primary); padding: 1px 6px; border-radius: 99px; font-weight: 800; }

/* #35 Collapse / Accordion */
.collapse { border: 1px solid var(--border); border-radius: 14px; overflow: hidden; background: var(--surface); }
.collapse + .collapse { margin-top: 8px; }
.collapse__head { width: 100%; display: flex; align-items: center; gap: 8px; padding: 12px 14px; background: none; border: none; cursor: pointer; text-align: left; font-weight: 700; font-size: 14px; color: var(--text); }
.collapse__title { flex: 1; }
.collapse__count { font-size: 11px; background: var(--surface-2); color: var(--muted); padding: 1px 7px; border-radius: 99px; font-weight: 800; }
.collapse__chev { transition: transform .2s ease; color: var(--muted); font-size: 11px; }
.collapse.is-open .collapse__chev { transform: rotate(180deg); }
.collapse__body { display: none; padding: 0 12px 12px; }
.collapse.is-open .collapse__body { display: block; }

/* ==========================================================================
   #37 Responsive — tablet & laptop (αξιοποίηση πλάτους, κεντράρισμα)
   ========================================================================== */
.stats .stat--wide { grid-column: 1 / -1; }
@media (min-width: 768px) {
  .content { max-width: 760px; margin-inline: auto; padding-left: 18px; padding-right: 18px; }
  .view { gap: 16px; }
  .stats { grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .today__grid { grid-template-columns: repeat(4, 1fr); }
  .modal { max-width: 520px; }
}
@media (min-width: 1024px) {
  .content { max-width: 960px; padding-top: 18px; }
  .stats { grid-template-columns: repeat(4, 1fr); }
  .greeting__hello { font-size: 22px; }
  .pagehead__title { font-size: 22px; }
  .tabbar { left: 0; right: 0; max-width: 540px; margin-inline: auto; border-radius: 16px 16px 0 0; box-shadow: var(--shadow-lg); }
  .appbar__inner, .appbar { max-width: 100%; }
  /* Δύο στήλες για δευτερεύοντα panels στο dashboard */
  .view--cols2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
}
@media (min-width: 1280px) {
  .content { max-width: 1040px; }
}

/* #21 Breadcrumbs */
.crumbs { display: flex; align-items: center; gap: 7px; font-size: 12.5px; margin: -2px 0 2px; color: var(--muted); }
.crumbs__home { display: inline-flex; align-items: center; gap: 5px; background: none; border: none; color: var(--muted); font-size: 12.5px; font-weight: 650; cursor: pointer; padding: 2px 0; transition: color .15s ease; }
.crumbs__home:hover { color: var(--primary); }
.crumbs__ico svg { width: 14px; height: 14px; }
.crumbs__sep { color: var(--border); font-weight: 700; }
.crumbs__cur { color: var(--text); font-weight: 700; }

/* #19 Onboarding tips */
.onboard { gap: 8px; background: linear-gradient(180deg, color-mix(in srgb, var(--primary) 5%, var(--surface)), var(--surface)); }
.onboard .panel__title { display: flex; align-items: center; gap: 6px; }
.onboard__bar { height: 7px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.onboard__fill { height: 100%; background: var(--primary); border-radius: 99px; transition: width .4s ease; }
.onboard__steps { display: grid; gap: 7px; margin-top: 4px; }
.onboard__step { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; background: var(--surface); border: 1px solid var(--border); border-radius: 11px; padding: 10px 12px; cursor: pointer; font-size: 13.5px; font-weight: 650; color: var(--text); transition: border-color .15s ease, background .15s ease; }
.onboard__step:hover { border-color: color-mix(in srgb, var(--primary) 35%, var(--border)); }
.onboard__step.is-done { color: var(--muted); }
.onboard__check { width: 22px; height: 22px; flex: 0 0 22px; border-radius: 99px; border: 2px solid var(--border); display: grid; place-items: center; }
.onboard__step.is-done .onboard__check { background: var(--primary); border-color: var(--primary); color: #fff; }
.onboard__check svg { width: 13px; height: 13px; }
.onboard__label { flex: 1; }
.onboard__go { color: var(--primary); font-weight: 800; }

/* ==========================================================================
   #34 Final audit polish — συνέπεια κεφαλίδων & κουμπιών
   ========================================================================== */
.page__head { align-items: flex-start; margin-bottom: 2px; }
.page__title { font-weight: 820; }
.fab-inline { width: 40px; height: 40px; border-radius: 12px; flex: 0 0 auto; cursor: pointer; transition: transform .12s ease, filter .18s ease; }
.fab-inline:hover { transform: translateY(-1px); filter: brightness(.96); }
.fab-inline svg { width: 20px; height: 20px; }
/* Συνεπές κενό κορυφής σε όλες τις κεφαλίδες σελίδας */
.greeting, .pagehead, .page__head { margin-top: 0; }
.greeting { margin-bottom: 2px; }
/* Καθαρότερα linkbtn (π.χ. Διαγραφή/Απόρριψη με token χρώμα) */
.linkbtn { transition: opacity .15s ease; }
.linkbtn:hover { opacity: .75; }

/* QR Membership Card */
.mcard { position: relative; overflow: hidden; border-radius: 18px; padding: 18px; color: #fff; background: linear-gradient(135deg, var(--primary) 0%, color-mix(in srgb, var(--primary) 65%, #08362c) 100%); box-shadow: var(--shadow-lg); }
.mcard__sheen { position: absolute; inset: 0; background: radial-gradient(120% 80% at 100% 0%, rgba(255,255,255,.18), transparent 60%); pointer-events: none; }
.mcard__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; position: relative; }
.mcard__org { font-size: 16px; font-weight: 850; margin: 0; letter-spacing: -.01em; }
.mcard__label { font-size: 10.5px; letter-spacing: .14em; opacity: .8; margin: 2px 0 0; font-weight: 700; }
.mcard__logo { width: 34px; height: 34px; border-radius: 9px; background: rgba(255,255,255,.92); padding: 3px; object-fit: contain; }
.mcard__body { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; margin-top: 22px; position: relative; }
.mcard__name { font-size: 19px; font-weight: 820; margin: 0; }
.mcard__role { font-size: 12.5px; opacity: .85; margin: 2px 0 0; }
.mcard__meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; font-size: 11.5px; opacity: .92; align-items: center; }
.mcard__pill { background: rgba(255,255,255,.2); padding: 3px 9px; border-radius: 99px; font-weight: 700; }
.mcard__qr { width: 84px; height: 84px; flex: 0 0 84px; background: #fff; border-radius: 12px; padding: 6px; display: grid; place-items: center; }
.mcard__qr svg { width: 100%; height: 100%; display: block; }

/* Event attendance / check-in */
.attend__head { display: flex; align-items: center; gap: 8px; }
.attend__count { font-size: 22px; font-weight: 850; color: var(--primary); }

/* #8 Member CRM — tags & timeline */
.tagedit { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.tagchip { display: inline-flex; align-items: center; gap: 5px; background: var(--primary-soft); color: var(--primary); font-size: 12px; font-weight: 700; padding: 4px 9px; border-radius: 99px; }
.tagchip__x { background: none; border: none; color: var(--primary); cursor: pointer; font-size: 15px; line-height: 1; padding: 0; opacity: .7; }
.tagchip__x:hover { opacity: 1; }
.tagedit__input { border: 1px dashed var(--border); background: transparent; border-radius: 99px; padding: 4px 10px; font-size: 12px; min-width: 90px; outline: none; color: var(--text); }
.tagedit__input:focus { border-color: var(--primary); }
.timeline { display: grid; gap: 0; margin-top: 2px; }
.tl { display: flex; gap: 10px; padding: 8px 0; position: relative; }
.tl:not(:last-child)::before { content: ''; position: absolute; left: 13px; top: 32px; bottom: -8px; width: 2px; background: var(--border); }
.tl__dot { width: 28px; height: 28px; flex: 0 0 28px; border-radius: 99px; background: var(--surface-2); display: grid; place-items: center; color: var(--primary); z-index: 1; }
.tl__dot svg { width: 15px; height: 15px; }
.tl__label { font-size: 13.5px; font-weight: 650; margin: 0; }
.tl__meta { font-size: 12px; color: var(--muted); margin: 1px 0 0; }

/* Logo upload */
.logo-row { display: flex; align-items: center; gap: 14px; }
.logo-pic { width: 56px; height: 56px; border-radius: 14px; object-fit: cover; background: var(--surface-2); border: 1px solid var(--border); }
.logo-row__btns { display: flex; flex-direction: column; gap: 6px; }

/* Member-to-member chat */
.chatview { min-height: 60vh; }
.chat__thread { display: flex; flex-direction: column; gap: 8px; overflow-y: auto; max-height: calc(100vh - var(--tabbar-h) - 230px); padding: 4px 2px 8px; }
.chat__composer { position: sticky; bottom: calc(var(--tabbar-h) + 6px); display: flex; gap: 8px; background: var(--bg); padding: 8px 0 2px; }
.chat__input { flex: 1; min-width: 0; border: 1px solid var(--border); border-radius: 99px; padding: 11px 16px; font-size: 16px; background: var(--surface); color: var(--text); outline: none; }
.chat__input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.chat__send { width: 44px; height: 44px; flex: 0 0 44px; border: none; border-radius: 50%; background: var(--primary); color: var(--primary-ink); display: grid; place-items: center; cursor: pointer; transition: filter .15s ease; }
.chat__send:hover { filter: brightness(.95); }
.chat__send svg { width: 20px; height: 20px; }
.chatmsg { display: flex; flex-direction: column; align-items: flex-start; max-width: 84%; }
.chatmsg--mine { align-self: flex-end; align-items: flex-end; }
.chatmsg__author { font-size: 11px; font-weight: 700; color: var(--muted); margin: 0 0 2px 12px; }
.chatmsg__bubble { background: var(--surface); border: 1px solid var(--border); padding: 8px 12px; border-radius: 16px; border-bottom-left-radius: 5px; display: flex; align-items: flex-end; gap: 8px; box-shadow: var(--shadow); }
.chatmsg--mine .chatmsg__bubble { background: var(--primary); color: var(--primary-ink); border-color: transparent; border-bottom-left-radius: 16px; border-bottom-right-radius: 5px; }
.chatmsg__text { font-size: 14px; line-height: 1.4; overflow-wrap: anywhere; white-space: pre-wrap; }
.chatmsg__time { font-size: 10px; opacity: .6; flex: 0 0 auto; }

/* #9 Analytics charts */
.chartwrap { width: 100%; overflow: hidden; }
.chartwrap--donut { display: grid; place-items: center; }
.chart { width: 100%; height: auto; display: block; }
.chart--donut { max-width: 160px; margin: 0 auto; }
.chart__lbl { font-size: 9px; fill: var(--muted); }
.chart__val { font-size: 9px; fill: var(--text); font-weight: 700; }
.donut__big { font-size: 22px; font-weight: 850; fill: var(--primary); }
.donut__small { font-size: 9px; fill: var(--muted); }
.donutwrap { display: grid; gap: 8px; }
.legend { display: flex; flex-wrap: wrap; gap: 10px 14px; justify-content: center; margin-top: 6px; }
.legend__item { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); font-weight: 600; }
.legend__dot { width: 10px; height: 10px; border-radius: 3px; flex: 0 0 auto; }
.hbars { display: grid; gap: 9px; }
.hbar { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 8px; }
.hbar__lbl { font-size: 12.5px; font-weight: 600; grid-column: 1 / -1; margin-bottom: -4px; overflow-wrap: anywhere; }
.hbar__track { height: 9px; background: var(--surface-2); border-radius: 99px; overflow: hidden; }
.hbar__fill { height: 100%; background: var(--primary); border-radius: 99px; transition: width .5s ease; }
.hbar__val { font-size: 12px; font-weight: 800; color: var(--primary); }

/* ==========================================================================
   #12 Glassmorphism — frosted glass σε header/tabbar/drawer/modals/search
   ========================================================================== */
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .appbar {
    background: color-mix(in srgb, var(--surface) 70%, transparent);
    -webkit-backdrop-filter: saturate(1.6) blur(16px);
    backdrop-filter: saturate(1.6) blur(16px);
    border-bottom: 1px solid color-mix(in srgb, var(--border) 60%, transparent);
  }
  .tabbar {
    background: color-mix(in srgb, var(--surface) 76%, transparent);
    -webkit-backdrop-filter: saturate(1.6) blur(16px);
    backdrop-filter: saturate(1.6) blur(16px);
  }
  .drawer__panel {
    background: color-mix(in srgb, var(--surface) 86%, transparent);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
  }
  .gsearch__panel {
    background: color-mix(in srgb, var(--surface) 88%, transparent);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
  }
  .pushprompt {
    background: color-mix(in srgb, var(--surface) 82%, transparent);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
  }
  .overlay { -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
}

/* #5 Document Center */
.doc__ic { color: var(--primary); }
.doc__ic svg { width: 18px; height: 18px; }

/* Wallet-style membership card additions */
.mcard { border-top: 3px solid transparent; }
.mcard--active { border-top-color: #34d399; }
.mcard--pending { border-top-color: #fbbf24; }
.mcard--inactive { border-top-color: #f87171; }
.mcard__idrow { display: flex; align-items: center; gap: 10px; }
.mcard__photo { width: 40px; height: 40px; border-radius: 11px; flex: 0 0 40px; object-fit: cover; background: rgba(255,255,255,.2); }
.mcard__photo--ph { display: grid; place-items: center; font-weight: 800; font-size: 15px; color: #fff; }
.mcard__no { font-family: ui-monospace, 'SF Mono', monospace; letter-spacing: .04em; background: rgba(255,255,255,.16); padding: 3px 8px; border-radius: 7px; font-size: 11px; font-weight: 700; }
.mcard__exp { font-size: 11.5px; opacity: .9; margin: 8px 0 0; }
.mcard--active .mcard__pill { background: rgba(16,185,129,.34); }
.mcard--pending .mcard__pill { background: rgba(245,158,11,.36); }
.mcard--inactive .mcard__pill { background: rgba(239,68,68,.38); }

/* Member Portal quick links */
.portal-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 4px; }
.portal-link { display: flex; flex-direction: column; align-items: center; gap: 7px; padding: 14px 8px; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; cursor: pointer; transition: transform .12s ease, border-color .15s ease; box-shadow: var(--shadow); }
.portal-link:hover { transform: translateY(-2px); border-color: var(--primary); }
.portal-link__ic { width: 38px; height: 38px; border-radius: 11px; background: var(--primary-soft); color: var(--primary); display: grid; place-items: center; }
.portal-link__ic svg { width: 19px; height: 19px; }
.portal-link__lbl { font-size: 12px; font-weight: 650; text-align: center; color: var(--text); line-height: 1.2; }

/* QR Scanner (full-screen camera) */
.scan { position: fixed; inset: 0; z-index: 200; background: #000; display: flex; flex-direction: column; color: #fff; }
.scan__bar { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; padding-top: calc(14px + env(safe-area-inset-top)); }
.scan__title { font-weight: 700; font-size: 15px; }
.scan__close { background: rgba(255,255,255,.15); border: none; color: #fff; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; }
.scan__close svg { width: 20px; height: 20px; }
.scan__stage { flex: 1; position: relative; overflow: hidden; display: grid; place-items: center; }
.scan__video { width: 100%; height: 100%; object-fit: cover; }
.scan__frame { position: absolute; width: 62vw; max-width: 280px; aspect-ratio: 1; border: 3px solid rgba(255,255,255,.92); border-radius: 22px; box-shadow: 0 0 0 100vmax rgba(0,0,0,.45); }
.scan__status { text-align: center; padding: 14px 20px; font-size: 14px; opacity: .95; }
.scan__actions { display: flex; justify-content: center; padding: 0 16px calc(20px + env(safe-area-inset-bottom)); }

/* Verify result — φανάρι */
.verify { text-align: center; }
.verify__badge { display: inline-block; padding: 8px 16px; border-radius: 99px; font-weight: 800; font-size: 13px; letter-spacing: .04em; color: #fff; margin-bottom: 12px; }
.verify--green .verify__badge { background: #10b981; }
.verify--orange .verify__badge { background: #f59e0b; }
.verify--red .verify__badge { background: #ef4444; }
.verify__name { font-size: 19px; font-weight: 800; margin: 0 0 14px; }
.verify__rows { display: grid; gap: 8px; text-align: left; }
.verify__row { display: flex; justify-content: space-between; gap: 12px; padding: 9px 12px; background: var(--surface-2); border-radius: 10px; }
.verify__k { color: var(--muted); font-size: 13px; }
.verify__v { font-weight: 700; font-size: 13px; }

/* AI Assistant — floating button + panel */
.ai-fab { position: fixed; right: 16px; bottom: calc(var(--tabbar-h) + 16px); z-index: 150; width: 56px; height: 56px; border-radius: 50%; border: none; background: linear-gradient(135deg, var(--primary), color-mix(in srgb, var(--primary) 55%, #6d28d9)); color: #fff; display: grid; place-items: center; box-shadow: 0 8px 24px rgba(0,0,0,.25); cursor: pointer; transition: transform .15s ease; }
.ai-fab:hover { transform: scale(1.05); }
.ai-fab--open { transform: scale(.9); opacity: .55; }
.ai-fab svg { width: 26px; height: 26px; }
.ai-wrap { position: fixed; inset: 0; z-index: 160; display: none; align-items: flex-end; justify-content: center; background: rgba(0,0,0,.35); }
.ai-wrap--open { display: flex; }
.ai-panel { width: 100%; max-width: 440px; height: min(60vh, 520px); background: var(--surface); border-radius: 20px 20px 0 0; display: flex; flex-direction: column; overflow: hidden; box-shadow: 0 -8px 40px rgba(0,0,0,.3); animation: aiUp .22s ease; }
@keyframes aiUp { from { transform: translateY(24px); opacity: .6; } to { transform: none; opacity: 1; } }
@media (min-width: 600px) { .ai-wrap { justify-content: flex-end; padding: 0 16px calc(var(--tabbar-h) + 84px); background: rgba(0,0,0,.12); } .ai-panel { border-radius: 18px; height: min(64vh, 560px); } }
.ai-panel__bar { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid var(--border); }
.ai-panel__title { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; }
.ai-panel__spark { color: var(--primary); display: grid; } .ai-panel__spark svg { width: 18px; height: 18px; }
.ai-panel__close { background: var(--surface-2); border: none; border-radius: 50%; width: 32px; height: 32px; display: grid; place-items: center; cursor: pointer; color: var(--text); } .ai-panel__close svg { width: 17px; height: 17px; }
.ai-thread { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.ai-msg { max-width: 88%; font-size: 14px; line-height: 1.45; }
.ai-msg--user { align-self: flex-end; background: var(--primary); color: var(--primary-ink); padding: 9px 13px; border-radius: 15px; border-bottom-right-radius: 5px; }
.ai-msg--bot { align-self: flex-start; background: var(--surface-2); color: var(--text); padding: 10px 13px; border-radius: 15px; border-bottom-left-radius: 5px; }
.ai-rich p { margin: 0 0 4px; } .ai-rich p:last-child { margin: 0; }
.ai-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.ai-msg--bot .ai-chips { background: none; }
.ai-chip { background: var(--surface); border: 1px solid var(--border); border-radius: 99px; padding: 6px 11px; font-size: 12.5px; cursor: pointer; color: var(--text); }
.ai-chip:hover { border-color: var(--primary); color: var(--primary); }
.ai-list { margin-top: 8px; display: grid; gap: 5px; }
.ai-list__row { display: flex; justify-content: space-between; gap: 10px; background: var(--surface); border-radius: 9px; padding: 7px 10px; }
.ai-list__t { font-weight: 650; font-size: 13px; } .ai-list__s { font-size: 12px; color: var(--muted); }
.ai-confirm { margin: 6px 0; padding: 10px 12px; background: var(--surface); border: 1px dashed var(--primary); border-radius: 12px; font-size: 13.5px; }
.ai-actions { display: flex; gap: 8px; margin-top: 8px; }
.ai-open { margin-top: 8px; background: none; border: none; color: var(--primary); font-weight: 700; font-size: 13px; cursor: pointer; padding: 0; }
.ai-composer { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--border); }
.ai-input { flex: 1; min-width: 0; border: 1px solid var(--border); border-radius: 99px; padding: 10px 14px; font-size: 15px; background: var(--surface-2); color: var(--text); outline: none; }
.ai-input:focus { border-color: var(--primary); }
.ai-send { width: 42px; height: 42px; flex: 0 0 42px; border: none; border-radius: 50%; background: var(--primary); color: var(--primary-ink); display: grid; place-items: center; cursor: pointer; } .ai-send svg { width: 19px; height: 19px; }
.ai-typing { letter-spacing: 2px; }

/* Setup Wizard additions */
.onboard__pct { font-size: 18px; font-weight: 850; color: var(--primary); }
.onboard__spark { display: inline-grid; vertical-align: -3px; color: var(--primary); }
.onboard__spark svg { width: 16px; height: 16px; }

/* Inbox (ενοποιημένη επικοινωνία) */
.inbox__content { margin-top: 6px; }
.inbox__content .greeting { display: none; }
.inbox__content .chat__thread { max-height: calc(100vh - var(--tabbar-h) - 300px); }

/* In-app reminders */
.rem__bell { display: inline-grid; vertical-align: -3px; color: var(--accent-2, #f59e0b); }
.rem__bell svg { width: 16px; height: 16px; }
.reminders .rem__ic { color: var(--accent-2, #f59e0b); }
.reminders-strip { display: grid; gap: 8px; margin: 2px 0; }
.rem-pill { display: flex; align-items: center; gap: 9px; background: color-mix(in srgb, var(--accent-2, #f59e0b) 12%, var(--surface)); border: 1px solid color-mix(in srgb, var(--accent-2, #f59e0b) 32%, transparent); border-radius: 12px; padding: 10px 12px; font-size: 13.5px; font-weight: 600; }
.rem-pill__ic { display: grid; color: var(--accent-2, #f59e0b); flex: 0 0 auto; }
.rem-pill__ic svg { width: 17px; height: 17px; }

/* Document version badge */
.doc__ver { display: inline-block; margin-left: 7px; font-size: 10px; font-weight: 800; color: var(--primary); background: var(--primary-soft); padding: 1px 6px; border-radius: 6px; vertical-align: middle; }

/* Plan upsell row (gated feature) */
.upsell-row { display: flex; align-items: center; gap: 11px; padding: 12px; border: 1px dashed var(--border); border-radius: 12px; background: var(--surface-2); }
.upsell-row__ic { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; background: var(--primary-soft); color: var(--primary); flex: 0 0 auto; }
.upsell-row__ic svg { width: 18px; height: 18px; }
.upsell-row__t { font-weight: 700; font-size: 14px; }
.upsell-row__s { font-size: 12.5px; }

/* Payment card (IBAN / link ανά σύλλογο) */
.paycard__iban { display: flex; align-items: center; gap: 10px; justify-content: space-between; margin-top: 10px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 12px; padding: 10px 12px; }
.paycard__lbl { font-size: 11.5px; margin: 0 0 2px; }
.paycard__num { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-weight: 700; font-size: 14px; letter-spacing: .3px; word-break: break-all; }

/* Profile & member photos */
.avatar--photo { overflow: hidden; padding: 0; }
.avatar--photo img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.photo-edit { display: flex; gap: 8px; justify-content: center; align-items: center; margin: 8px 0 2px; }

/* Events calendar */
.cal { margin-top: 6px; }
.cal__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.cal__title { font-weight: 800; font-size: 16px; }
.cal__dow { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; margin-bottom: 4px; }
.cal__dow span { text-align: center; font-size: 11px; font-weight: 700; color: var(--muted); }
.cal__grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal__cell { position: relative; aspect-ratio: 1; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); display: flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; }
.cal__cell--empty { border: none; background: transparent; cursor: default; }
.cal__num { font-size: 13px; font-weight: 600; }
.cal__cell.has-ev { border-color: var(--primary); }
.cal__cell.is-today { background: var(--primary-soft); }
.cal__cell.is-sel { background: var(--primary); }
.cal__cell.is-sel .cal__num { color: #fff; }
.cal__dot { position: absolute; bottom: 5px; left: 50%; transform: translateX(-50%); min-width: 14px; height: 14px; padding: 0 3px; border-radius: 7px; background: var(--primary); color: #fff; font-size: 9px; font-weight: 800; display: grid; place-items: center; }
.cal__cell.is-sel .cal__dot { background: #fff; color: var(--primary); }
.cal__day { margin-top: 12px; }
.cal__day-h { font-weight: 800; font-size: 14px; margin: 0 0 8px; }

/* Multi-option polls */
.choices--multi { display: grid; gap: 8px; }
.choice__dot { width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--primary); display: inline-block; }
.resbar__fill--opt { background: var(--primary); }
.pollopts { display: grid; gap: 8px; }
.pollopt { display: flex; gap: 8px; align-items: center; }
.pollopt .input { flex: 1; }

/* Direct messages (1-to-1) */
.dm-row { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 9px 11px; cursor: pointer; }
.dm-row + .dm-row { margin-top: 6px; }
.dm-row__main { flex: 1; min-width: 0; }
.dm-row__name { font-weight: 700; font-size: 14px; }
.dm-row__last { font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dm-row__badge { background: var(--primary); color: #fff; font-size: 11px; font-weight: 800; min-width: 20px; height: 20px; border-radius: 10px; display: grid; place-items: center; padding: 0 5px; }
.dm-thread__head { display: flex; align-items: center; gap: 6px; margin-bottom: 8px; }
.dm-thread__name { font-weight: 800; font-size: 15px; }
.dm-thread { display: flex; flex-direction: column; gap: 6px; max-height: calc(100vh - var(--tabbar-h) - 320px); overflow-y: auto; padding: 4px 2px; }
.dmsg { display: flex; }
.dmsg--me { justify-content: flex-end; }
.dmsg__b { display: inline-block; max-width: 78%; padding: 8px 12px; border-radius: 14px; font-size: 14px; line-height: 1.35; word-break: break-word; }
.dmsg--them .dmsg__b { background: var(--surface-2); border-bottom-left-radius: 4px; }
.dmsg--me .dmsg__b { background: var(--primary); color: #fff; border-bottom-right-radius: 4px; }
.dm-composer { display: flex; gap: 8px; margin-top: 10px; }
.dm-composer .input { flex: 1; }
.dm-send { padding: 0 16px; }

/* ===== Community Hub ===== */
.toggle-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 4px 0; font-weight: 600; font-size: 14px; }
.toggle-row input[type="checkbox"] { width: 44px; height: 26px; appearance: none; background: var(--surface-2); border: 1px solid var(--border); border-radius: 13px; position: relative; cursor: pointer; transition: background .15s; flex: 0 0 auto; }
.toggle-row input[type="checkbox"]::after { content: ''; position: absolute; top: 2px; left: 2px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform .15s; box-shadow: 0 1px 3px rgba(0,0,0,.3); }
.toggle-row input[type="checkbox"]:checked { background: var(--primary); }
.toggle-row input[type="checkbox"]:checked::after { transform: translateX(18px); }

.composer__top { display: flex; gap: 10px; align-items: flex-start; }
.composer__top .textarea { flex: 1; }
.composer__bar { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; gap: 8px; }
.composer__preview { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.composer__thumb { position: relative; width: 84px; height: 84px; border-radius: 10px; overflow: hidden; }
.composer__thumb img { width: 100%; height: 100%; object-fit: cover; }
.composer__rm { position: absolute; top: 3px; right: 3px; width: 22px; height: 22px; border: none; border-radius: 50%; background: rgba(0,0,0,.6); color: #fff; cursor: pointer; display: grid; place-items: center; }
.composer__rm svg { width: 13px; height: 13px; }

.feed { display: grid; gap: 12px; margin-top: 12px; }
.feed__post { padding: 14px; }
.feed__head { display: flex; align-items: center; gap: 10px; }
.feed__meta { flex: 1; min-width: 0; }
.feed__author { font-weight: 700; font-size: 14px; }
.feed__time { font-size: 12px; }
.feed__body { margin: 10px 0 0; font-size: 14.5px; line-height: 1.45; white-space: pre-wrap; word-break: break-word; }
.feed__media { width: 100%; border-radius: 12px; margin-top: 10px; display: block; }
.feed__acts { display: flex; gap: 18px; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--border); }
.feed__act { display: flex; align-items: center; gap: 6px; background: none; border: none; cursor: pointer; color: var(--muted); font-weight: 700; font-size: 13px; padding: 2px 0; }
.feed__act svg { width: 18px; height: 18px; }
.feed__act.is-on { color: #e0245e; }
.feed__act.is-on .feed__heart svg { fill: #e0245e; stroke: #e0245e; }
.feed__comments { margin-top: 10px; display: grid; gap: 8px; }
.cmt { display: flex; gap: 8px; align-items: flex-start; }
.cmt__body { background: var(--surface-2); border-radius: 12px; padding: 7px 11px; font-size: 13.5px; }
.cmt__name { font-weight: 700; display: block; font-size: 12.5px; }
.cmt-add { display: flex; gap: 8px; }
.cmt-add .input { flex: 1; }
.avatar--xs { width: 28px; height: 28px; font-size: 12px; flex: 0 0 auto; }

/* Sponsors & Benefits */
.sponsors { padding: 13px 14px; margin-top: 12px; }
.sponsors__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.sponsors__title { font-size: 15px; font-weight: 800; }
.sponsors__strip { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 4px; -webkit-overflow-scrolling: touch; }
.sponsor-chip { flex: 0 0 auto; width: 96px; display: flex; flex-direction: column; align-items: center; gap: 6px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 12px; padding: 10px 8px; cursor: pointer; position: relative; }
.sponsor-chip__logo { width: 48px; height: 48px; border-radius: 10px; overflow: hidden; display: grid; place-items: center; background: var(--surface); }
.sponsor-chip__logo img { width: 100%; height: 100%; object-fit: cover; }
.sponsor-chip__logo--ph { font-weight: 800; font-size: 20px; color: var(--primary); background: var(--primary-soft); }
.sponsor-chip__name { font-size: 12px; font-weight: 600; text-align: center; line-height: 1.2; max-height: 2.4em; overflow: hidden; }
.sponsor-chip__badge { font-size: 9px; font-weight: 800; color: #fff; background: var(--primary); border-radius: 6px; padding: 1px 5px; }
.sponsor-detail { text-align: center; display: grid; gap: 10px; }
.sponsor-detail__logo { width: 88px; height: 88px; object-fit: cover; border-radius: 14px; margin: 0 auto; }
.sponsor-detail__offer { display: flex; align-items: center; gap: 8px; justify-content: center; background: var(--primary-soft); color: var(--primary); font-weight: 700; border-radius: 12px; padding: 10px; font-size: 14px; }
.sponsor-detail__offer svg { width: 18px; height: 18px; }
.sponsor-form__logorow { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.sponsor-form__logo { width: 56px; height: 56px; border-radius: 10px; overflow: hidden; display: grid; place-items: center; background: var(--surface-2); border: 1px solid var(--border); text-align: center; }
.sponsor-form__logo img { width: 100%; height: 100%; object-fit: cover; }

/* ============================================================
   LANDING PAGE REDESIGN (.lp)
   ============================================================ */
.auth--home { padding: 0 !important; max-width: 100% !important; }
.lp { width: 100%; }
.lp-sec { max-width: 1040px; margin: 0 auto; padding: 0 18px; }
.lp-sec { margin-top: 56px; }
.lp-eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: 11px; font-weight: 800; color: var(--primary); margin: 0 0 6px; text-align: center; }
.lp-h2 { font-size: clamp(22px, 5.4vw, 30px); font-weight: 850; letter-spacing: -.02em; text-align: center; margin: 0 0 18px; line-height: 1.15; }
.lp-lead { text-align: center; color: var(--muted); max-width: 620px; margin: -8px auto 18px; font-size: 15px; line-height: 1.5; }

/* nav */
.lp-nav { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 18px; background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: saturate(180%) blur(12px); border-bottom: 1px solid var(--border); max-width: 1040px; margin: 0 auto; }
.lp-nav__brand { display: flex; align-items: center; gap: 8px; background: none; border: none; cursor: pointer; padding: 0; color: inherit; flex: 0 0 auto; }
.lp-nav__brand img { width: 28px; height: 28px; border-radius: 8px; flex: 0 0 auto; }
.lp-nav__brand span { font-weight: 850; font-size: 17px; letter-spacing: -.02em; white-space: nowrap; }
.lp-nav__links { display: none; gap: 4px; flex: 0 0 auto; }
.lp-nav__link { background: none; border: none; cursor: pointer; color: var(--muted); font-weight: 600; font-size: 14px; padding: 7px 10px; border-radius: 8px; white-space: nowrap; }
.lp-nav__link:hover { color: var(--text); background: var(--surface-2); }
.lp-nav__right { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.lp-nav__login { display: none; background: none; border: none; cursor: pointer; color: var(--text); font-weight: 700; font-size: 14px; padding: 7px 8px; white-space: nowrap; }
.lp-nav__cta { white-space: nowrap; }
@media (min-width: 920px) { .lp-nav__links { display: flex; } .lp-nav__login { display: inline; } }

/* hero */
.lp-hero { text-align: center; padding: 40px 20px 8px; max-width: 760px; margin: 0 auto; }
.lp-hero__pill { display: inline-block; font-size: 12px; font-weight: 700; color: var(--primary); background: var(--primary-soft); border-radius: 999px; padding: 5px 13px; margin-bottom: 16px; }
.lp-hero__title { font-size: clamp(30px, 8vw, 52px); font-weight: 850; letter-spacing: -.03em; line-height: 1.05; margin: 0 0 14px; }
.lp-hero__sub { font-size: clamp(15px, 4vw, 18px); color: var(--muted); line-height: 1.5; margin: 0 auto 22px; max-width: 540px; }
.lp-hero__cta { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.lp-hero__cta .btn { min-width: 160px; }
.lp-hero__badges { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 18px; font-size: 13px; color: var(--muted); font-weight: 600; }

/* device mock */
.lp-device { display: flex; justify-content: center; margin: 8px auto 0; }
.lp-phone { width: 248px; background: #0d1117; border-radius: 34px; padding: 9px; box-shadow: 0 30px 60px -20px rgba(0,0,0,.4), 0 0 0 1px rgba(0,0,0,.06); position: relative; }
.lp-phone__notch { position: absolute; top: 16px; left: 50%; transform: translateX(-50%); width: 80px; height: 5px; background: #2b2f36; border-radius: 3px; z-index: 2; }
.lp-phone__screen { background: var(--bg); border-radius: 26px; overflow: hidden; height: 430px; padding: 22px 12px 12px; display: flex; flex-direction: column; gap: 10px; }
.lpm__top { display: flex; align-items: center; justify-content: space-between; padding: 2px 2px 6px; }
.lpm__brand { font-weight: 850; font-size: 15px; color: var(--primary); }
.lpm__bell { width: 18px; height: 18px; color: var(--muted); display: grid; }
.lpm__bell svg { width: 18px; height: 18px; }
.lpm__post { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 10px; display: grid; gap: 8px; }
.lpm__prow { display: flex; align-items: center; gap: 8px; }
.lpm__ava { width: 28px; height: 28px; border-radius: 50%; background: var(--primary-soft); flex: 0 0 auto; }
.lpm__meta { display: grid; gap: 4px; }
.lpm__line { height: 7px; border-radius: 4px; background: var(--surface-2); display: block; }
.lpm__img { height: 70px; border-radius: 10px; background: linear-gradient(135deg, var(--primary-soft), var(--surface-2)); }
.lpm__acts { display: flex; align-items: center; gap: 10px; }
.lpm__heart { color: #e0245e; display: grid; } .lpm__heart svg { width: 15px; height: 15px; fill: #e0245e; stroke: #e0245e; }
.lpm__cmt { color: var(--muted); display: grid; } .lpm__cmt svg { width: 15px; height: 15px; }
.lp-preview__demos { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 18px; }

/* metrics */
.lp-metrics { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; max-width: 640px; margin: 0 auto; }
@media (min-width: 720px) { .lp-metrics { grid-template-columns: repeat(4, 1fr); } }
.lp-metric { text-align: center; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 18px 10px; }
.lp-metric__v { display: block; font-size: clamp(24px, 6vw, 34px); font-weight: 850; color: var(--primary); letter-spacing: -.02em; }
.lp-metric__l { display: block; font-size: 12.5px; color: var(--muted); font-weight: 600; margin-top: 2px; }
.lp-metrics--agt .lp-metric { background: var(--primary-soft); border-color: transparent; }

/* agt */
.lp-agt__case { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 16px 18px; max-width: 520px; margin: 18px auto; }
.lp-agt__caseh { font-weight: 800; font-size: 15px; margin: 0 0 10px; }
.lp-check { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.lp-check li { position: relative; padding-left: 26px; font-size: 14px; line-height: 1.4; }
.lp-check li::before { content: '✓'; position: absolute; left: 0; top: 0; width: 18px; height: 18px; background: var(--primary-soft); color: var(--primary); border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 800; }

/* features */
.lp-feats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 720px) { .lp-feats { grid-template-columns: repeat(3, 1fr); } }
.lp-feat { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 18px; }
.lp-feat__ic { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--primary-soft); color: var(--primary); margin-bottom: 12px; }
.lp-feat__ic svg { width: 22px; height: 22px; }
.lp-feat__t { font-weight: 800; font-size: 15.5px; margin: 0 0 4px; }
.lp-feat__d { font-size: 13px; color: var(--muted); line-height: 1.45; margin: 0; }

/* kinds */
.lp-kinds { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 720px) { .lp-kinds { grid-template-columns: repeat(4, 1fr); } }
.lp-kind { text-align: center; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 22px 12px; }
.lp-kind__e { font-size: 34px; display: block; margin-bottom: 8px; }
.lp-kind__t { font-weight: 700; font-size: 14px; margin: 0; }

/* examples */
.lp-ex { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.lp-excard { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 20px 16px; text-align: center; }
.lp-excard__e { font-size: 32px; display: block; margin-bottom: 8px; }
.lp-excard__t { font-weight: 800; font-size: 15px; margin: 0 0 3px; }
.lp-excard__d { font-size: 12.5px; color: var(--muted); margin: 0; }

/* before/after */
.lp-ba { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; max-width: 720px; margin: 0 auto; }
.lp-ba__col { border-radius: 16px; padding: 18px; border: 1px solid var(--border); }
.lp-ba__col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; font-size: 13.5px; }
.lp-ba__h { font-weight: 850; font-size: 15px; margin: 0 0 12px; }
.lp-ba__col--before { background: color-mix(in srgb, #ef4444 8%, var(--surface)); }
.lp-ba__col--before .lp-ba__h { color: #ef4444; }
.lp-ba__col--after { background: color-mix(in srgb, var(--primary) 8%, var(--surface)); }
.lp-ba__col--after .lp-ba__h { color: var(--primary); }

/* trust */
.lp-trust__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; max-width: 680px; margin: 0 auto; }
.lp-trust__row { display: flex; align-items: center; gap: 10px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 13px 15px; font-size: 14px; font-weight: 600; }
.lp-trust__c { width: 22px; height: 22px; background: var(--primary-soft); color: var(--primary); border-radius: 50%; display: grid; place-items: center; font-weight: 800; flex: 0 0 auto; }

/* pricing */
.lp-pricing { display: grid; grid-template-columns: 1fr; gap: 14px; max-width: 360px; margin: 0 auto; }
@media (min-width: 820px) { .lp-pricing { grid-template-columns: repeat(3, 1fr); max-width: 1040px; align-items: start; } }
.lp-plan { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 22px 20px; }
.lp-plan--hl { border-color: var(--primary); box-shadow: 0 0 0 2px var(--primary-soft); }
.lp-plan__tag { position: absolute; top: -11px; left: 50%; transform: translateX(-50%); background: var(--primary); color: #fff; font-size: 11px; font-weight: 800; padding: 3px 12px; border-radius: 999px; }
.lp-plan__name { font-weight: 850; font-size: 18px; margin: 0; }
.lp-plan__price { margin: 6px 0 14px; }
.lp-plan__amt { font-size: 30px; font-weight: 850; letter-spacing: -.02em; }
.lp-plan__per { font-size: 13px; color: var(--muted); }
.lp-plan__feats { margin: 0 0 16px; }
.lp-plan__feats li { font-size: 13.5px; }

/* testimonials */
.lp-testi__track { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 18px 12px; margin: 0 -18px; -webkit-overflow-scrolling: touch; }
.lp-testi__card { scroll-snap-align: center; flex: 0 0 86%; max-width: 440px; background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 22px; margin: 0; }
@media (min-width: 720px) { .lp-testi__card { flex-basis: 420px; } }
.lp-testi__q { font-size: 16px; line-height: 1.5; margin: 0 0 14px; font-weight: 500; }
.lp-testi__by { display: flex; flex-direction: column; }
.lp-testi__n { font-weight: 800; font-size: 14px; }
.lp-testi__r { font-size: 12.5px; color: var(--muted); }

/* final cta */
.lp-final { margin-top: 60px; background: var(--primary); padding: 48px 22px; text-align: center; }
.lp-final__h { color: #fff; font-size: clamp(22px, 5.5vw, 30px); font-weight: 850; letter-spacing: -.02em; margin: 0 0 8px; }
.lp-final__sub { color: rgba(255,255,255,.9); font-size: 15px; margin: 0 auto 20px; max-width: 460px; line-height: 1.5; }
.lp-final__btn { background: #fff; color: var(--primary); font-weight: 800; min-width: 200px; }

/* footer */
.lp-foot { text-align: center; padding: 38px 20px; border-top: 1px solid var(--border); }
.lp-foot__brand { font-weight: 850; font-size: 18px; margin: 0 0 4px; }
.lp-foot__tag { color: var(--muted); font-size: 13px; margin: 0 0 14px; }
.lp-foot__links { display: flex; gap: 8px 18px; justify-content: center; flex-wrap: wrap; margin-bottom: 14px; }
.lp-foot__link { background: none; border: none; cursor: pointer; color: var(--muted); font-size: 13px; font-weight: 600; text-decoration: none; padding: 0; }
.lp-foot__link:hover { color: var(--primary); }
.lp-foot__copy { font-size: 12px; color: var(--muted); margin: 0; }

/* Community gallery ανά εκδήλωση (Phase 2b) */
.composer__ev { margin-top: 8px; }
.gallery__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 12px; }
.gallery__cell { padding: 0; border: none; background: none; cursor: pointer; border-radius: 10px; overflow: hidden; aspect-ratio: 1; }
.gallery__cell img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-overlay { position: fixed; inset: 0; z-index: 200; background: rgba(0,0,0,.88); display: grid; place-items: center; padding: 18px; cursor: zoom-out; animation: fadeIn .15s ease; }
.photo-overlay img { max-width: 100%; max-height: 100%; border-radius: 12px; }

/* Community Phase 3 — Αποτελέσματα & Εθελοντές */
.community-nav { display: flex; gap: 8px; margin: 4px 0 14px; flex-wrap: wrap; }
.community-nav__chip { display: inline-flex; align-items: center; gap: 6px; padding: 9px 14px; border-radius: 99px; border: 1px solid var(--border); background: var(--surface); color: var(--text); font-weight: 650; font-size: 13.5px; cursor: pointer; box-shadow: var(--shadow); white-space: nowrap; }
.community-nav__chip svg { width: 16px; height: 16px; }
.community-nav__chip:hover { background: var(--surface-2); }
.result-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--border); }
.result-row:first-of-type { border-top: none; }
.result-row__pos { font-size: 20px; min-width: 34px; text-align: center; font-weight: 800; color: var(--primary); }
.result-row__main { flex: 1; display: flex; flex-direction: column; }
.result-row__name { font-weight: 650; }
.result-row__detail { font-size: 12.5px; color: var(--muted); }
.vol__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.signup-row { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-top: 1px solid var(--border); }
.signup-row:first-child { border-top: none; }
.signup-row__icon svg { width: 18px; height: 18px; color: var(--primary); }
.signup-row__name { font-weight: 600; }
.iconbtn--sm { width: 30px; height: 30px; }

/* Template ταυτότητα στο dashboard */
.tmpl-pill { display: inline-block; margin-top: 8px; padding: 4px 12px; border-radius: 99px; font-size: 12px; font-weight: 700; letter-spacing: .2px; color: var(--primary); background: color-mix(in srgb, var(--primary) 12%, var(--surface)); border: 1px solid color-mix(in srgb, var(--primary) 24%, transparent); }

/* Template identity — hero, widget, community header */
.ihero { display: flex; align-items: center; gap: 14px; padding: 18px 18px; border-radius: 20px; margin: 4px 0 16px; color: #fff; background: linear-gradient(135deg, var(--from), var(--to)); box-shadow: 0 10px 26px rgba(0,0,0,.16); }
.ihero__badge { font-size: 34px; line-height: 1; width: 56px; height: 56px; display: grid; place-items: center; background: rgba(255,255,255,.18); border-radius: 16px; flex: none; }
.ihero__body { min-width: 0; }
.ihero__kicker { margin: 0 0 2px; font-size: 12px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; opacity: .92; }
.ihero__title { margin: 0; font-size: 21px; font-weight: 800; line-height: 1.15; }
.ihero__sub { margin: 3px 0 0; font-size: 13.5px; opacity: .94; }
.ipanel__grid { display: flex; gap: 8px; flex-wrap: wrap; }
.ipanel__chip { display: inline-flex; align-items: center; gap: 7px; padding: 10px 14px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface-2); color: var(--text); font-weight: 650; font-size: 13.5px; cursor: pointer; }
.ipanel__chip:hover { background: var(--surface); border-color: var(--primary); }
.ipanel__ic svg { width: 16px; height: 16px; }
.comm-hd { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px; margin: 4px 0 14px; background: var(--tint); border: 1px solid color-mix(in srgb, var(--ink) 14%, transparent); }
.comm-hd__emoji { font-size: 26px; line-height: 1; flex: none; }
.comm-hd__title { margin: 0; font-weight: 800; font-size: 16px; color: var(--ink); }
.comm-hd__sub { margin: 2px 0 0; font-size: 12.5px; color: var(--ink); opacity: .82; }
[data-theme="dark"] .comm-hd { background: color-mix(in srgb, var(--ink) 22%, var(--surface)); }
[data-theme="dark"] .comm-hd__title, [data-theme="dark"] .comm-hd__sub { color: #fff; }

/* Landing — 6 Templates section, architecture tree, powered-by */
.lp-tpl { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; margin-top: 18px; }
.lp-tcard { display: flex; flex-direction: column; gap: 8px; padding: 18px; border-radius: 18px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); }
.lp-tcard__e { font-size: 30px; line-height: 1; }
.lp-tcard__t { margin: 2px 0 0; font-weight: 800; font-size: 16px; }
.lp-tcard__d { margin: 0; font-size: 13px; color: var(--muted); flex: 1; }
.lp-tcard__feats { display: flex; flex-wrap: wrap; gap: 5px; margin: 4px 0 6px; }
.lp-tag { font-size: 11.5px; font-weight: 650; padding: 3px 9px; border-radius: 99px; background: var(--primary-soft); color: var(--primary); }
.lp-arch { margin-top: 26px; padding: 18px; border-radius: 18px; background: var(--surface-2); border: 1px solid var(--border); }
.lp-arch__h { margin: 0 0 12px; font-weight: 800; font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.lp-arch__root { display: inline-block; font-weight: 800; font-size: 15px; color: #fff; background: linear-gradient(135deg, var(--primary), color-mix(in srgb, var(--primary) 70%, #000)); padding: 8px 16px; border-radius: 12px; box-shadow: var(--shadow); }
.lp-arch__branch { margin: 6px 0 0 18px; padding-left: 20px; border-left: 2px solid var(--border); display: flex; flex-direction: column; gap: 8px; padding-top: 8px; }
.lp-arch__item { position: relative; }
.lp-arch__node, .lp-arch__child { position: relative; display: flex; align-items: center; gap: 9px; background: var(--surface); border: 1px solid var(--border); border-radius: 11px; padding: 9px 13px; font-weight: 650; }
.lp-arch__node::before, .lp-arch__child::before { content: ''; position: absolute; left: -22px; top: 50%; width: 20px; height: 2px; background: var(--border); }
.lp-arch__child { margin: 8px 0 0 26px; border-color: color-mix(in srgb, #e11d48 40%, var(--border)); color: #e11d48; }
.lp-arch__child::before { left: -28px; width: 26px; background: color-mix(in srgb, #e11d48 50%, var(--border)); }
.lp-arch__e { font-size: 18px; line-height: 1; }
.lp-arch__lbl { font-size: 14px; }
.lp-arch__demotag { margin-left: auto; font-size: 11px; font-weight: 800; padding: 2px 9px; border-radius: 99px; background: #e11d48; color: #fff; }
.lp-tcard__demos { display: flex; gap: 8px; }
.lp-tcard__demos .btn { flex: 1; }
.lp-pow { display: inline-block; margin-left: 10px; padding: 4px 12px; border-radius: 99px; background: linear-gradient(135deg, #f43f5e, #be123c); color: #fff; font-size: 12px; font-weight: 800; vertical-align: middle; }
.lp-agt__brand { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }

/* Landing v2 — clickable examples + compact features */
.lp-excard { cursor: pointer; text-align: center; width: 100%; font: inherit; transition: transform .12s ease, border-color .12s ease; }
.lp-excard:hover { transform: translateY(-2px); border-color: var(--primary); }
.lp-excard__go { display: inline-block; margin-top: 8px; font-size: 12.5px; font-weight: 800; color: var(--primary); }
.lp-feats--compact { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 12px; }
.lp-feats--compact .lp-feat { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; padding: 18px 12px; }
.lp-feats--compact .lp-feat__ic svg { width: 24px; height: 24px; color: var(--primary); }
.lp-feats--compact .lp-feat__t { margin: 0; font-weight: 700; font-size: 14px; }

/* ==========================================================================
   DESIGN SYSTEM v2 — premium SaaS (Adyen · Stripe · Linear · Notion · Framer)
   Μόνο design· καμία αλλαγή λειτουργικότητας.
   ========================================================================== */

/* ---- Τυπογραφία & ρυθμός ---- */
body { font-size: 15px; line-height: 1.6; letter-spacing: -.006em; }
h1, h2, h3 { letter-spacing: -.022em; }
.view { gap: 24px; }
.view > .panel, .view > .card, .view > section { margin: 0; }

/* ---- Κουμπιά: μεγαλύτερα, καθαρά, μονόχρωμο primary ---- */
.btn { padding: 13px 20px; border-radius: 12px; border-width: 1px; font-weight: 600; font-size: 15px; transition: transform .08s ease, background .15s ease, box-shadow .15s ease; }
.btn--primary { background: var(--ink); color: var(--ink-ink); border-color: var(--ink); box-shadow: none; }
.btn--primary:hover { filter: none; background: color-mix(in srgb, var(--ink) 86%, #fff); }
[data-theme="dark"] .btn--primary:hover { background: color-mix(in srgb, var(--ink) 86%, #000); }
.btn--ghost { background: var(--surface); color: var(--text); border-color: var(--border); box-shadow: var(--shadow); }
.btn--ghost:hover { background: var(--surface-2); }
.btn--sm { padding: 9px 15px; font-size: 13.5px; border-radius: 10px; }

/* ---- Κάρτες & panels: λιγότερα borders, περισσότερος αέρας ---- */
.card { border: none; box-shadow: var(--shadow); border-radius: var(--radius); padding: 22px; gap: 10px; }
.card--muted, .card--quiet { box-shadow: none; background: var(--surface-2); }
.card--unread { border-left: 3px solid var(--primary); }
.card__title { font-size: 17px; font-weight: 700; }
.panel { border: none; box-shadow: var(--shadow); border-radius: var(--radius); padding: 20px 22px; gap: 10px; }
.panel--quiet { box-shadow: none; background: transparent; border: none; padding: 4px 0; }
.panel__title { font-size: 13px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.filechip { border: none; background: var(--surface-2); }

/* ---- Στατιστικά: minimal, χωρίς κουτάκια/εικονίδια ---- */
.stats { gap: 8px 28px; }
.stat { background: transparent !important; border: none !important; box-shadow: none !important; padding: 4px 0 !important; gap: 4px; }
.stat__icon { display: none !important; }
.stat__value { font-size: 30px; font-weight: 760; letter-spacing: -.025em; }
.stat__label { font-size: 13px; color: var(--muted); }
button.stat:hover, .ministat:hover { transform: none !important; box-shadow: none !important; border-color: transparent !important; }
button.stat { position: relative; }

/* ---- Badges: λιγότερα χρώματα, πιο διακριτικά ---- */
.badge { font-size: 11px; font-weight: 600; padding: 3px 9px; background: var(--surface-2); color: var(--muted); }
.badge--unread, .badge--open, .badge--admin, .badge--owner { background: var(--surface-2); color: var(--text); }
.badge--ok { background: color-mix(in srgb, var(--yes) 12%, transparent); color: var(--yes); }

/* ---- Identity hero: πιο premium, απαλότερο ---- */
.ihero { border-radius: 22px; padding: 26px 24px; box-shadow: 0 10px 34px rgba(16, 24, 40, .12); }
.ihero__badge { background: rgba(255, 255, 255, .16); border-radius: 18px; }
.ihero__kicker { font-size: 11px; opacity: .9; }
.ihero__title { font-size: 24px; letter-spacing: -.025em; }
.ihero__sub { opacity: .95; }
.ipanel { box-shadow: var(--shadow); }
.ipanel__chip { background: var(--surface-2); border: none; }
.ipanel__chip:hover { background: color-mix(in srgb, var(--primary) 10%, var(--surface-2)); }

/* ---- Community header: flatter ---- */
.comm-hd { border: none; box-shadow: var(--shadow); }

/* ==========================================================================
   LANDING v2 — premium spacing + illustrated template cards
   ========================================================================== */
.lp-sec { margin-top: 76px; }
.lp-hero { padding-top: 64px; }
.lp-hero__title { letter-spacing: -.035em; }
.lp-h2 { font-size: clamp(24px, 5.4vw, 34px); letter-spacing: -.03em; margin-bottom: 22px; }
.lp-eyebrow { color: var(--muted); letter-spacing: .14em; }

/* Template cards: μεγαλύτερες, illustrated medallion, hover lift */
.lp-tpl { gap: 18px; margin-top: 22px; }
.lp-tcard { border: none; box-shadow: var(--shadow); border-radius: 22px; padding: 26px 24px; gap: 12px; transition: transform .16s ease, box-shadow .16s ease; }
.lp-tcard:hover { transform: translateY(-4px); box-shadow: 0 22px 56px rgba(16, 24, 40, .12); }
.lp-tcard__e { font-size: 28px; width: 62px; height: 62px; display: grid; place-items: center; border-radius: 18px; margin-bottom: 6px; box-shadow: inset 0 0 0 1px rgba(16,24,40,.05); }
.lp-tcard:nth-child(1) .lp-tcard__e { background: linear-gradient(135deg, #e8f0fe, #d6e4fd); }
.lp-tcard:nth-child(2) .lp-tcard__e { background: linear-gradient(135deg, #fff1e6, #ffe0cc); }
.lp-tcard:nth-child(3) .lp-tcard__e { background: linear-gradient(135deg, #ffe9ee, #ffd4df); }
.lp-tcard:nth-child(4) .lp-tcard__e { background: linear-gradient(135deg, #f7e8fe, #ecd4fd); }
.lp-tcard:nth-child(5) .lp-tcard__e { background: linear-gradient(135deg, #e6f6ef, #d0efe0); }
.lp-tcard:nth-child(6) .lp-tcard__e { background: linear-gradient(135deg, #e3f4f1, #cfece6); }
[data-theme="dark"] .lp-tcard__e { background: var(--surface-2) !important; }
.lp-tcard__t { font-size: 18px; font-weight: 750; }
.lp-tcard__d { font-size: 14px; }
.lp-tag { background: var(--surface-2); color: var(--muted); font-weight: 600; }

/* Example cards: flatter premium */
.lp-ex { gap: 16px; }
.lp-excard { border: none; box-shadow: var(--shadow); border-radius: 20px; padding: 24px; }
.lp-excard__e { font-size: 30px; }

/* Pricing & testimonials: λιγότερα borders */
.lp-plan { border: none; box-shadow: var(--shadow); border-radius: 20px; padding: 26px 22px; }
.lp-plan--hl { box-shadow: 0 18px 50px rgba(16, 24, 40, .14); }
.lp-testi__card { border: none; box-shadow: var(--shadow); border-radius: 18px; }
.lp-final { border-radius: 26px; }

/* Compact features: flatter, no boxes */
.lp-feats--compact .lp-feat { background: transparent; border: none; box-shadow: none; }
.lp-feats--compact .lp-feat__ic { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 14px; background: var(--surface-2); }

/* Auth segmented toggle (Email / Κινητό) */
.auth__seg { display: flex; gap: 4px; padding: 4px; background: var(--surface-2); border-radius: 12px; margin-bottom: 14px; }
.auth__segbtn { flex: 1; padding: 9px 12px; border: none; background: transparent; border-radius: 9px; font-weight: 650; font-size: 14px; color: var(--muted); }
.auth__segbtn.is-active { background: var(--surface); color: var(--text); box-shadow: var(--shadow); }

/* ==========================================================================
   HOMEPAGE PREMIUM REDESIGN v3 — hero visual, illustrated cards, Stripe pricing
   ========================================================================== */
.btn--lg { padding: 16px 26px; font-size: 16px; border-radius: 13px; }

/* ---- HERO XL (2 στήλες: copy + device mockup) ---- */
.lp-hero--xl { max-width: 1100px; margin: 0 auto; padding: 60px 20px 12px; display: grid; gap: 40px; text-align: center; }
.lp-hero--xl .lp-hero__pill { display: inline-block; background: var(--surface-2); color: var(--muted); border-radius: 99px; padding: 7px 16px; font-size: 13px; font-weight: 650; letter-spacing: 0; }
.lp-hero--xl .lp-hero__title { font-size: clamp(34px, 7vw, 60px); letter-spacing: -.04em; line-height: 1.02; margin: 18px 0 16px; }
.lp-hero--xl .lp-hero__sub { font-size: clamp(16px, 2.4vw, 20px); max-width: 600px; margin: 0 auto 26px; }
.lp-hero--xl .lp-hero__cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ---- Device mockups ---- */
.lp-mock { position: relative; display: flex; align-items: flex-end; justify-content: center; gap: 0; min-height: 300px; }
.lp-dev { position: relative; background: var(--surface); border-radius: 18px; box-shadow: 0 30px 70px rgba(16,24,40,.18); overflow: hidden; border: 1px solid var(--border); }
.lp-dev__tag { position: absolute; bottom: 6px; left: 0; right: 0; text-align: center; font-size: 10px; font-weight: 700; color: rgba(255,255,255,.9); text-transform: uppercase; letter-spacing: .08em; z-index: 2; }
.lp-dev--desktop { width: min(420px, 70vw); aspect-ratio: 16/10; border-radius: 16px; z-index: 1; }
.lp-dev--tablet { width: 150px; aspect-ratio: 3/4; margin-left: -56px; margin-bottom: 14px; transform: rotate(3deg); z-index: 2; display: none; }
.lp-dev--phone { width: 116px; aspect-ratio: 9/19; margin-right: -46px; margin-bottom: 20px; transform: rotate(-4deg); border-radius: 22px; z-index: 3; }
@media (min-width: 760px) { .lp-dev--tablet { display: block; } }

.lp-scr { width: 100%; height: 100%; display: flex; flex-direction: column; background: var(--surface); }
.lp-scr__hero { padding: 14px 14px 18px; display: flex; align-items: center; gap: 9px; color: #fff; }
.lp-scr__emoji { font-size: 20px; width: 34px; height: 34px; display: grid; place-items: center; background: rgba(255,255,255,.2); border-radius: 11px; flex: none; }
.lp-scr__ht { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.lp-scr__kick { font-size: 11px; font-weight: 800; opacity: .95; white-space: nowrap; }
.lp-scr__bar { width: 62px; height: 6px; border-radius: 4px; background: rgba(255,255,255,.55); }
.lp-scr__body { padding: 12px; display: flex; flex-direction: column; gap: 9px; flex: 1; }
.lp-scr__card { background: var(--surface-2); border-radius: 10px; padding: 10px; display: flex; flex-direction: column; gap: 6px; }
.lp-scr__card span { height: 6px; border-radius: 4px; background: color-mix(in srgb, var(--muted) 28%, transparent); }
.lp-scr__card span:first-child { width: 70%; }
.lp-scr__card span:last-child { width: 45%; }
.lp-scr__chips { display: flex; gap: 6px; }
.lp-scr__chips i { width: 30px; height: 16px; border-radius: 99px; background: var(--surface-2); }

/* ---- Template cards: illustrated «screenshot» header ---- */
.lp-tcard { padding: 0 !important; overflow: hidden; gap: 0 !important; }
.lp-tcard__visual { position: relative; padding: 22px 22px 26px; display: flex; align-items: flex-start; gap: 14px; min-height: 120px; }
.lp-tcard__visual .lp-tcard__e { background: rgba(255,255,255,.22) !important; color: #fff; width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; font-size: 28px; box-shadow: none !important; flex: none; margin: 0 !important; }
.lp-tcard__skel { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; flex: 1; }
.lp-tcard__skel span { height: 8px; border-radius: 5px; background: rgba(255,255,255,.45); }
.lp-tcard__skel span:nth-child(1) { width: 80%; }
.lp-tcard__skel span:nth-child(2) { width: 55%; }
.lp-tcard__skel span:nth-child(3) { width: 65%; background: rgba(255,255,255,.3); }
.lp-tcard__body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 10px; }
[data-theme="dark"] .lp-tcard__visual .lp-tcard__e { background: rgba(255,255,255,.2) !important; }

/* ---- Examples: dual demo buttons ---- */
.lp-excard { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.lp-excard__btns { display: flex; flex-direction: column; gap: 8px; width: 100%; margin-top: 10px; }
.lp-excard .lp-pow { margin: 2px 0 0; }

/* ---- Pricing: πιο premium (Stripe-like) ---- */
.lp-pricing { gap: 20px; }
.lp-plan { padding: 30px 26px; gap: 14px; }
.lp-plan__name { font-size: 15px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.lp-plan__amt { font-size: 40px; font-weight: 820; letter-spacing: -.03em; }
.lp-plan__feats { gap: 9px; margin: 4px 0 8px; }
.lp-plan--hl { transform: translateY(-6px); }

/* ---- Testimonials: 3 σταθερές κάρτες ---- */
.lp-testi__grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 760px) { .lp-testi__grid { grid-template-columns: repeat(3, 1fr); } }
.lp-testi__card { padding: 26px 24px; }
.lp-testi__q { font-size: 16px; line-height: 1.55; margin: 0 0 16px; }

/* ==========================================================================
   RACE COMMUNITY — hero, κάρτα αθλητή, badges (community experience)
   ========================================================================== */
.rc-wrap { display: grid; gap: 14px; }
.rc-hero { color: #fff; border-radius: 22px; padding: 22px; background: linear-gradient(140deg, var(--from), var(--to)); box-shadow: 0 16px 40px rgba(16,24,40,.18); display: grid; gap: 18px; }
.rc-hero__top { display: flex; align-items: center; gap: 14px; }
.rc-hero__emoji { font-size: 32px; width: 58px; height: 58px; display: grid; place-items: center; background: rgba(255,255,255,.18); border-radius: 18px; flex: none; }
.rc-hero__title { margin: 0; font-size: 23px; font-weight: 820; letter-spacing: -.02em; line-height: 1.1; }
.rc-hero__tag { margin: 3px 0 0; font-size: 13.5px; font-weight: 650; opacity: .92; text-transform: uppercase; letter-spacing: .06em; }
.rc-hero__stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; background: rgba(255,255,255,.14); border-radius: 16px; padding: 14px 8px; }
.rc-stat { display: flex; flex-direction: column; align-items: center; gap: 2px; text-align: center; }
.rc-stat__v { font-size: 26px; font-weight: 820; line-height: 1; letter-spacing: -.02em; }
.rc-stat__l { font-size: 11.5px; opacity: .9; line-height: 1.2; }
.rc-hero__cta { display: flex; gap: 8px; flex-wrap: wrap; }
.rc-cta { flex: 1; min-width: 120px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 12px 12px; border-radius: 13px; border: none; background: rgba(255,255,255,.95); color: #16191d; font-weight: 700; font-size: 13.5px; cursor: pointer; }
.rc-cta:hover { background: #fff; }
.rc-cta svg { width: 16px; height: 16px; }

.rc-athlete { display: grid; gap: 14px; }
.rc-athlete__row { display: flex; align-items: center; gap: 12px; }
.rc-athlete__info { flex: 1; min-width: 0; }
.rc-athlete__name { margin: 0; font-weight: 780; font-size: 17px; }
.rc-athlete__since { margin: 2px 0 0; font-size: 13px; color: var(--muted); }
.rc-athlete__stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 12px 0; }
.rc-am { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.rc-am__v { font-size: 22px; font-weight: 800; letter-spacing: -.02em; }
.rc-am__l { font-size: 12px; color: var(--muted); }
.rc-athlete__bt { margin: 0 0 8px; font-size: 13px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }

.badges { display: flex; flex-wrap: wrap; gap: 8px; }
.badge-chip { display: inline-flex; align-items: center; gap: 7px; padding: 8px 12px; border-radius: 99px; background: var(--surface-2); font-size: 13px; font-weight: 650; }
.badge-chip__e { font-size: 16px; line-height: 1; }
.badge-chip--locked { opacity: .42; filter: grayscale(1); }
.rc-profile-badges { margin-top: 2px; }

/* ==========================================================================
   ROUTES HUB — κάρτες διαδρομών, υψομετρικό προφίλ, POI
   ========================================================================== */
.routes { display: grid; gap: 16px; }
.route-card { padding: 0 !important; overflow: hidden; gap: 0 !important; }
.route-card__img { height: 150px; background-size: cover; background-position: center; }
.route-card__img--ph { display: grid; place-items: center; font-size: 44px; background: var(--surface-2); }
.route-card__body { padding: 18px 20px 20px; display: grid; gap: 12px; }
.route-card__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.route-stats { display: flex; gap: 22px; flex-wrap: wrap; }
.route-stat { display: flex; flex-direction: column; gap: 2px; }
.route-stat__v { font-size: 18px; font-weight: 800; letter-spacing: -.01em; display: inline-flex; align-items: center; gap: 6px; }
.route-stat__l { font-size: 11.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.route-dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.route-elev { color: var(--primary); background: var(--surface-2); border-radius: 12px; padding: 8px; }
.route-elev__svg { width: 100%; height: 70px; display: block; }
.route-poi__h { display: inline-flex; align-items: center; gap: 6px; margin: 0 0 6px; font-size: 12.5px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.route-poi__h svg { width: 15px; height: 15px; }
.route-poi__list { margin: 0; padding-left: 18px; display: grid; gap: 4px; font-size: 14px; line-height: 1.5; }

/* ==========================================================================
   RACE LIVE COMMUNITY — countdown, race calendar, leaderboards, social proof
   ========================================================================== */
.rc-live { display: grid; gap: 14px; margin-top: 4px; }
.rc-sec__h { margin: 0 0 12px; font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }

.rc-count { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.rc-count__kick { margin: 0; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.rc-count__title { margin: 4px 0 2px; font-size: 16px; font-weight: 760; line-height: 1.2; }
.rc-count__date { margin: 0; font-size: 13px; color: var(--muted); }
.rc-count__num { display: flex; flex-direction: column; align-items: center; flex: none; background: var(--ink); color: var(--ink-ink); border-radius: 16px; padding: 12px 18px; }
.rc-count__d { font-size: 30px; font-weight: 850; line-height: 1; letter-spacing: -.02em; }
.rc-count__u { font-size: 11px; opacity: .85; }

.rc-cal__list { display: grid; gap: 8px; }
.rc-cal__row { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; background: var(--surface-2); border: none; border-radius: 13px; padding: 10px 12px; cursor: pointer; }
.rc-cal__row:hover { background: color-mix(in srgb, var(--primary) 8%, var(--surface-2)); }
.rc-cal__date { display: flex; flex-direction: column; align-items: center; min-width: 42px; }
.rc-cal__day { font-size: 20px; font-weight: 820; line-height: 1; }
.rc-cal__mon { font-size: 11px; color: var(--muted); text-transform: uppercase; }
.rc-cal__t { margin: 0; font-weight: 650; font-size: 14.5px; }
.rc-cal__cat { font-size: 12px; color: var(--muted); }

.rc-boards { display: grid; grid-template-columns: 1fr; gap: 18px; }
@media (min-width: 560px) { .rc-boards { grid-template-columns: 1fr 1fr; } }
.rc-board__h { margin: 0 0 8px; font-weight: 700; font-size: 14px; }
.rc-board__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.rc-board__row { display: flex; align-items: center; gap: 10px; }
.rc-board__rank { width: 24px; text-align: center; font-weight: 800; font-size: 13px; color: var(--muted); flex: none; }
.rc-board__rank--top { font-size: 16px; }
.rc-board__name { flex: 1; min-width: 0; font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rc-board__c { font-size: 12.5px; color: var(--muted); font-weight: 600; }

.rc-newmem__row { display: flex; flex-wrap: wrap; gap: 8px; }
.avatar--sm { width: 38px; height: 38px; font-size: 14px; }

/* ---- Activity feed (Strava-style stream) ---- */
.rc-act__list { display: grid; gap: 2px; }
.rc-act__row { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; background: transparent; border: none; padding: 9px 4px; border-radius: 10px; cursor: default; }
.rc-act__row--btn { cursor: pointer; }
.rc-act__row--btn:hover { background: var(--surface-2); }
.rc-act__row + .rc-act__row { border-top: 1px solid var(--border); }
.rc-act__e { font-size: 18px; width: 36px; height: 36px; display: grid; place-items: center; background: var(--surface-2); border-radius: 50%; flex: none; }
.rc-act__main { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.rc-act__t { font-size: 14px; font-weight: 600; line-height: 1.35; }
.rc-act__ago { font-size: 12px; color: var(--muted); }
