/* Θέμα: αντίγραφο από το Hairmony (app.css) — ίδια χρώματα, γραμματοσειρές, στρογγυλέματα, λογότυπο */
/* Hairmony — μεγάλα γράμματα, μεγάλα κουμπιά, καθαρή εικόνα */
:root {
  --bg: #f6f3ef;
  --paper: #ffffff;
  --ink: #2a211b;
  --muted: #74675c;
  --line: #e7dfd6;
  --plum: #6b4426;
  --gold: #c39a5f;
  --espresso: #33251c;
  --plum-2: #8a5a34;
  --plum-soft: #f2e8dc;
  --card: #2457c5;
  --card-soft: #e5ecfb;
  --cash: #1e8e4e;
  --cash-soft: #e2f4e9;
  --other: #7a5c8a;
  --other-soft: #efe8f3;
  --warn: #b86e00;
  --warn-soft: #fdf0dc;
  --danger: #c0303f;
  --danger-soft: #fbe6e8;
  --row: 64px;
  --radius: 14px;
  font-size: 18px;
  color-scheme: light;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; }
body {
  background: var(--bg); color: var(--ink);
  font-family: 'Commissioner', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.4; -webkit-font-smoothing: antialiased;
  overscroll-behavior-y: none;
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
input, select, textarea {
  width: 100%; padding: 14px 16px; border: 2px solid var(--line); border-radius: 12px;
  background: #fff; font-size: 1.05rem; min-height: 56px;
}
textarea { min-height: 110px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--plum-2); }
:focus-visible { outline: 3px solid var(--plum-2); outline-offset: 2px; }
label.f { display: block; margin: 14px 0 6px; font-weight: 600; color: var(--muted); font-size: .9rem; }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.hidden { display: none !important; }

/* ---------- Πλαίσιο εφαρμογής ---------- */
#app { min-height: 100%; display: flex; flex-direction: column; }
.topwrap { position: sticky; top: 0; z-index: 20; }
.top { background: #fff; color: var(--plum); border-bottom: 1px solid var(--line);
  padding: calc(env(safe-area-inset-top) + 6px) 16px 6px;
  display: flex; align-items: center; gap: 10px;
}
.top .home { flex: 1; min-width: 0; text-decoration: none; display: flex; }
.top .who { background: var(--plum-soft); border: 0; color: var(--plum); border-radius: 999px; padding: 8px 14px; font-weight: 700; font-size: .9rem; white-space: nowrap; }
.top .icon-btn { width: 46px; height: 46px; }

/* ---------- Λογότυπο: όπως η ταμπέλα του μαγαζιού ---------- */
.brand { display: inline-flex; flex-wrap: nowrap; align-items: center; gap: 4px; color: var(--plum); white-space: nowrap; }
.brand .script {
  font-family: 'Great Vibes', 'Snell Roundhand', 'Apple Chancery', cursive; font-weight: 400;
  font-size: 2.1rem; line-height: 1.25; letter-spacing: 0;
  background: linear-gradient(180deg, #8a5a34 0%, #5e3a20 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
  padding: 0 .08em .05em 0;
}
.brand .shears { width: 22px; height: 44px; flex: none; color: var(--gold); margin-left: -2px; }
.brand .by {
  font-family: 'Josefin Sans', 'Commissioner', sans-serif; font-weight: 600; font-size: .62rem; letter-spacing: .14em;
  line-height: 1.15; color: var(--plum-2); align-self: center;
}
.brand.lg .script { font-size: clamp(2.8rem, 14vw, 4.4rem); }
.brand.lg .shears { width: clamp(26px, 8vw, 40px); height: clamp(54px, 16vw, 82px); }
.brand.lg .by { font-size: clamp(.7rem, 2.6vw, 1rem); }
@media (max-width: 480px) { .top .brand .by { display: none; } }
.top .home { overflow: visible; }
.top .brand .shears { width: 18px; height: 38px; }
main { flex: 1; padding: 16px 16px calc(110px + env(safe-area-inset-bottom)); max-width: 1200px; width: 100%; margin: 0 auto; }

.tabs {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 30; background: #fff;
  border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(5, 1fr);
  padding-bottom: env(safe-area-inset-bottom);
}
.tabs a {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  padding: 10px 2px 8px; min-height: 72px; text-decoration: none; color: var(--muted); font-size: .78rem; font-weight: 600;
}
.tabs a svg { width: 28px; height: 28px; }
.tabs a.on { color: var(--plum); }
.tabs a.on svg { background: var(--plum-soft); border-radius: 12px; padding: 3px; width: 40px; }

.timers { display: flex; gap: 8px; overflow-x: auto; padding: 8px 16px; background: var(--espresso); }
.timer { flex: none; border: 0; border-radius: 999px; padding: 8px 16px; background: #fff; color: var(--ink); font-weight: 700; display: flex; gap: 8px; align-items: center; }
.timer.done { background: var(--danger); color: #fff; animation: pulse 1s infinite; }
@keyframes pulse { 50% { transform: scale(1.06); } }
@media (prefers-reduced-motion: reduce) { .timer.done { animation: none; } }
.offline { background: var(--warn-soft); color: var(--warn); padding: 10px 16px; font-weight: 600; text-align: center; }

/* ---------- Κουμπιά ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; padding: 12px 22px; border-radius: 14px; border: 2px solid transparent;
  background: var(--plum); color: #fff; font-weight: 700; font-size: 1.05rem; text-decoration: none;
}
.btn svg { width: 24px; height: 24px; flex: none; }
.btn.ghost { background: #fff; color: var(--plum); border-color: var(--line); }
.btn.soft { background: var(--plum-soft); color: var(--plum); }
.btn.danger { background: #fff; color: var(--danger); border-color: var(--danger-soft); }
.btn.block { width: 100%; }
.btn.big { min-height: 76px; font-size: 1.2rem; border-radius: 18px; }
.grid2 .btn { white-space: nowrap; gap: 8px; font-size: 1.05rem; }
.grid2 .btn.big { font-size: 1.12rem; }
.grid2 .btn svg { width: 22px; height: 22px; }
.btn.card { background: var(--card); }
.btn.cash { background: var(--cash); }
.btn:disabled { opacity: .5; }
.btn.sm { min-height: 44px; padding: 8px 14px; font-size: .95rem; border-radius: 12px; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.row > .grow { flex: 1; }
.grid2 { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 10px; }
.grid2 .btn { padding-left: 10px; padding-right: 10px; }
.icon-btn { width: 56px; height: 56px; border-radius: 14px; border: 2px solid var(--line); background: #fff; display: inline-flex; align-items: center; justify-content: center; color: var(--plum); flex: none; }
.icon-btn svg { width: 26px; height: 26px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  min-height: 52px; padding: 10px 16px; border-radius: 999px; border: 2px solid var(--line); background: #fff;
  font-weight: 600; font-size: 1rem; display: inline-flex; align-items: center; gap: 6px;
}
.chip b { font-weight: 800; }
.chip.on { background: var(--plum); border-color: var(--plum); color: #fff; }

.toast { position: fixed; left: 50%; bottom: calc(96px + env(safe-area-inset-bottom)); transform: translateX(-50%); background: var(--ink); color: #fff; padding: 14px 22px; border-radius: 14px; font-weight: 700; z-index: 80; max-width: 90vw; text-align: center; }
.toast.err { background: var(--danger); }

/* ---------- Σύνδεση ---------- */
.login { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 24px; background: #fff; color: var(--ink); text-align: center; }
.login h1 { font-size: 1.9rem; margin: 6px 0 4px; font-weight: 800; color: var(--plum); }
.login p { margin: 0 0 24px; color: var(--muted); font-size: 1.1rem; }
.login .brand { margin-bottom: 18px; }
.who-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; width: 100%; max-width: 480px; }
.who-grid button { min-height: 110px; border-radius: 20px; border: 2px solid var(--line); background: var(--bg); color: var(--ink); font-weight: 800; font-size: 1.3rem; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; }
.who-grid button i { width: 48px; height: 48px; border-radius: 50%; color: #fff; display: flex; align-items: center; justify-content: center; font-style: normal; font-size: 1.3rem; }
.dots { display: flex; gap: 16px; margin: 18px 0 26px; }
.dots i { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--plum); }
.dots i.on { background: var(--plum); }
.pad { display: grid; grid-template-columns: repeat(3, 84px); gap: 14px; }
.pad button { height: 84px; border-radius: 50%; border: 2px solid var(--line); background: var(--bg); color: var(--plum); font-size: 2rem; font-weight: 600; }
.pad button { touch-action: manipulation; user-select: none; -webkit-user-select: none; transition: background .08s, transform .08s; }
.pad button:active { background: var(--plum); color: #fff; transform: scale(.94); }
.dots.busy i.on { animation: blink .7s infinite alternate; }
@keyframes blink { to { opacity: .35; } }
.shake { animation: shake .35s; }
@keyframes shake { 25% { transform: translateX(-10px); } 75% { transform: translateX(10px); } }
.setup { background: var(--bg); color: var(--ink); min-height: 100vh; padding: 24px 16px; }
.setup .panel { max-width: 560px; margin: 0 auto 12px; }


/* ============================================================
   ✦ UI/UX POLISH LAYER — φινέτσα στο ύφος κορυφαίων εφαρμογών
   Μόνο εμφάνιση· καμία αλλαγή λειτουργίας. (έρχεται τελευταίο → υπερισχύει)
   ============================================================ */
:root {
  --radius: 18px;
  --sh-1: 0 1px 2px rgba(42,33,27,.08);
  --sh-2: 0 2px 8px rgba(42,33,27,.08);
  --sh-3: 0 10px 30px rgba(42,33,27,.16);
  --sh-plum: 0 6px 18px rgba(107,68,38,.28);
}
.stat, .kpi { border: 0; }

/* Κουμπιά: αίσθηση βάθους + πάτημα */
.btn { box-shadow: var(--sh-1); transition: transform .1s ease, filter .1s ease; }
.btn:not(.ghost):not(.soft) { box-shadow: var(--sh-plum); }
.btn:active { transform: translateY(1px) scale(.985); filter: brightness(.97); }
.btn.big { box-shadow: var(--sh-2); }
.btn:not(.ghost):not(.soft).big { box-shadow: var(--sh-plum); }
.icon-btn { box-shadow: var(--sh-1); transition: transform .12s, background .12s; }
.icon-btn:active { transform: scale(.92); }

/* Chips: πιο στρογγυλά, με αίσθηση */
.chip { transition: transform .1s, background .12s, border-color .12s, color .12s; }
.tabs a { position: relative; transition: color .15s; }
.tabs a svg { width: 26px; height: 26px; position: relative; z-index: 1; transition: transform .18s cubic-bezier(.2,.9,.3,1.3); }
.tabs a span { position: relative; z-index: 1; }
.tabs a.on svg { background: none; border-radius: 0; padding: 0; width: 26px; transform: translateY(-1px) scale(1.08); }
.tabs a.on::before {
  content: ''; position: absolute; top: 8px; left: 50%; transform: translateX(-50%);
  width: 52px; height: 36px; border-radius: 12px; background: var(--plum-soft); z-index: 0;
}
.tabs a:active svg { transform: scale(.9); }

/* Λίστες: διαφανές tap-feedback */
.li { transition: background .12s; }
.li:active { background: var(--plum-soft); }

.btn.other { background: var(--other); }

/* Λίστες, avatar, segmented — από το Hairmony */
.list { background: #fff; border-radius: var(--radius); border: 1px solid var(--line); overflow: hidden; }
.li { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line); width: 100%; background: none; border-left: 0; border-right: 0; border-top: 0; text-align: left; min-height: 72px; }
.li:last-child { border-bottom: 0; }
.li .main { flex: 1; min-width: 0; }
.li .t { font-weight: 700; font-size: 1.1rem; }
.li .s { color: var(--muted); font-size: .92rem; }
.li .end { text-align: right; font-weight: 700; }
.avatar { width: 46px; height: 46px; border-radius: 50%; background: var(--plum-soft); color: var(--plum); display: flex; align-items: center; justify-content: center; font-weight: 800; flex: none; }
.empty { padding: 28px 16px; text-align: center; color: var(--muted); }
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; background: #ece4da; border-radius: 14px; padding: 4px; margin: 14px 0; }
.seg button { border: 0; background: none; border-radius: 11px; min-height: 50px; font-weight: 700; color: var(--muted); white-space: nowrap; font-size: .95rem; padding: 0 4px; }
.seg button.on { background: #fff; color: var(--plum); box-shadow: 0 1px 2px rgba(42,33,27,.12); }
.avatar { background: linear-gradient(145deg, #f3e8da, #e9dcc9); box-shadow: inset 0 0 0 1px rgba(107,68,38,.08); }
.seg { box-shadow: inset 0 0 0 1px rgba(42,33,27,.04); }
.seg button.on { box-shadow: var(--sh-1); }
