/* 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; }

.panel { background: var(--paper); border-radius: var(--radius); padding: 16px; border: 1px solid var(--line); }
.panel + .panel { margin-top: 12px; }
h2 { font-size: 1.5rem; margin: 4px 0 14px; }
h3 { font-size: 1.15rem; margin: 22px 0 10px; }

/* ---------- Πλοήγηση ημέρας ---------- */
.daynav { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; }
.daynav .date { flex: 1; text-align: center; border: 0; background: none; padding: 4px; }
.daynav .date strong { display: block; font-size: 1.35rem; }
.daynav .date span { color: var(--muted); font-size: .95rem; }
.daynav input[type=date] { position: absolute; opacity: 0; pointer-events: none; width: 1px; height: 1px; }

.pickbar { background: var(--plum); color: #fff; border-radius: var(--radius); padding: 12px 16px; margin-bottom: 12px; display: flex; gap: 10px; align-items: center; font-weight: 600; }
.pickbar span { flex: 1; }

/* ---------- Πρόγραμμα ημέρας (σαν το τετράδιο) ---------- */
.sched { background: #fff; border-radius: var(--radius); border: 1px solid var(--line); }
.sched-head { display: grid; position: sticky; top: var(--top, 66px); border-radius: var(--radius) var(--radius) 0 0; z-index: 5; background: #fff; border-bottom: 2px solid var(--line); }
.sched-head .who { padding: 12px 8px; font-weight: 800; font-size: 1.1rem; text-align: center; border-left: 1px solid var(--line); }
.sched-head .who small { display: block; font-weight: 600; font-size: .78rem; color: var(--muted); }
.sched-body { display: grid; position: relative; }
.times { border-right: 1px solid var(--line); }
.times div { height: var(--row); font-size: .85rem; font-weight: 700; color: var(--muted); padding: 6px 6px 0; text-align: right; border-bottom: 1px solid var(--line); }
.times div.half { font-weight: 500; opacity: .75; }
.col { position: relative; border-left: 1px solid var(--line); }
.slot { height: var(--row); border-bottom: 1px solid var(--line); display: block; width: 100%; background: none; border-left: 0; border-right: 0; border-top: 0; padding: 0; }
.slot:nth-child(even) { background: #fbf9f6; }
.slot:active { background: var(--plum-soft); }
.slot.past { background: #f8f5f1; }
.slot.past:nth-child(even) { background: #f5f1ec; }
.times div.past { opacity: .55; }
.picking .slot:not(.past) { background: #f6ece0; }
.ap {
  position: absolute; left: 4px; right: 4px; border-radius: 10px; padding: 6px 8px 6px 12px;
  background: linear-gradient(var(--c-soft), var(--c-soft)), #fff; border: 0; text-align: left; overflow: hidden;
  box-shadow: inset 5px 0 0 var(--c, var(--plum));
  display: flex; flex-direction: column; justify-content: flex-start;
}
.ap .nm { font-weight: 800; font-size: 1rem; line-height: 1.15; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ap .fn { font-size: .9rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: -1px; }
.ap .sv { font-size: .85rem; font-weight: 600; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: flex; align-items: center; gap: 5px; }
.ap .pay { flex: none; width: 22px; height: 22px; border-radius: 8px; display: flex; align-items: center; justify-content: center; color: #fff; }
.ap .pay svg { width: 16px; height: 16px; }
.ap .pay.card { background: var(--card); }
.ap .pay.cash { background: var(--cash); }
.ap.paid { background: linear-gradient(rgba(30,142,78,.12), rgba(30,142,78,.12)), #fff; }
.ap.noshow { opacity: .5; }
.ap.noshow .nm { text-decoration: line-through; }
.nowline { position: absolute; left: 0; right: 0; height: 0; border-top: 3px solid var(--danger); z-index: 3; pointer-events: none; }
.nowline::before { content: ''; position: absolute; left: -2px; top: -8px; width: 13px; height: 13px; border-radius: 50%; background: var(--danger); }
.closed { text-align: center; padding: 40px 16px; }

/* ---------- Λίστες ---------- */
.search { position: relative; margin-bottom: 12px; }
.search input { padding-left: 54px; font-size: 1.15rem; min-height: 62px; border-radius: 16px; }
.search svg { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); width: 26px; height: 26px; color: var(--muted); }
.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); }

/* ---------- Καρτέλα πελάτισσας ---------- */
.client-head { display: flex; gap: 14px; align-items: center; margin-bottom: 14px; }
.client-head .avatar { width: 64px; height: 64px; font-size: 1.4rem; }
.client-head .who { flex: 1; min-width: 0; }
.client-head h2 { margin: 0; font-size: 1.45rem; line-height: 1.2; overflow-wrap: break-word; hyphens: none; }
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 12px; }
.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); }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 12px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px; text-align: center; }
.stat b { display: block; font-size: 1.3rem; }
.stat span { font-size: .8rem; color: var(--muted); }

.formula { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; margin-bottom: 12px; }
.formula .fh { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.formula .fh b { font-size: 1.1rem; }
.mix { width: 100%; border-collapse: collapse; margin: 10px 0; font-size: 1.05rem; }
.mix td { padding: 8px 4px; border-bottom: 1px dashed var(--line); }
.mix td:last-child { text-align: right; font-weight: 700; }
.mix tr.dev td { color: var(--plum); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0; }
.tag { background: var(--plum-soft); color: var(--plum); border-radius: 8px; padding: 4px 10px; font-weight: 700; font-size: .88rem; }
.tag.time { background: var(--warn-soft); color: var(--warn); }
.mixrow { display: grid; grid-template-columns: 1fr 120px 48px; gap: 8px; margin-bottom: 8px; }

/* ---------- Ταμείο ---------- */
.till { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .till { grid-template-columns: 1fr 1fr; } }
.person { background: #fff; border-radius: var(--radius); border: 1px solid var(--line); overflow: hidden; }
.person-h { padding: 14px 16px; color: #fff; display: flex; justify-content: space-between; align-items: baseline; }
.person-h b { font-size: 1.25rem; }
.person-h .tot { font-size: 1.8rem; font-weight: 800; }
.split { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid var(--line); }
.split div { padding: 10px 16px; display: flex; align-items: center; gap: 8px; font-weight: 700; }
.split div + div { border-left: 1px solid var(--line); }
.split svg { width: 22px; height: 22px; }
.line { display: flex; gap: 10px; padding: 10px 16px; border-bottom: 1px solid var(--line); align-items: center; }
.line:last-child { border-bottom: 0; }
.line .t { flex: 1; min-width: 0; }
.line .t small { display: block; color: var(--muted); }
.mi { width: 28px; height: 28px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; color: #fff; flex: none; }
.mi svg { width: 18px; height: 18px; }
.mi.card { background: var(--card); } .mi.cash { background: var(--cash); } .mi.none { background: var(--warn); }
.totals { margin-top: 12px; background: var(--plum); color: #fff; border-radius: var(--radius); padding: 16px; }
.totals .r { display: flex; justify-content: space-between; padding: 6px 0; font-size: 1.1rem; }
.totals .r.big { font-size: 1.5rem; font-weight: 800; border-top: 1px solid rgba(255,255,255,.25); margin-top: 6px; padding-top: 12px; }
.diff { margin-top: 10px; padding: 12px 16px; border-radius: 12px; font-weight: 800; font-size: 1.15rem; text-align: center; }
.diff.ok { background: var(--cash-soft); color: var(--cash); }
.diff.bad { background: var(--danger-soft); color: var(--danger); }

/* ---------- Προϊόντα ---------- */
.prods { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
.prod { background: #fff; border-radius: var(--radius); border: 1px solid var(--line); overflow: hidden; display: flex; flex-direction: column; }
.prod .ph { aspect-ratio: 1; background: #efe9e2 center/cover no-repeat; border: 0; width: 100%; display: flex; align-items: center; justify-content: center; color: var(--muted); }
.prod .ph svg { width: 40px; height: 40px; }
.prod .info { padding: 10px 12px 4px; flex: 1; }
.prod .info b { display: block; line-height: 1.2; }
.prod .info small { color: var(--muted); }
.prod .qty { display: grid; grid-template-columns: 52px 1fr 52px; align-items: center; border-top: 1px solid var(--line); }
.prod .qty button { height: 52px; border: 0; background: none; font-size: 1.6rem; font-weight: 700; color: var(--plum); }
.prod .qty span { text-align: center; font-weight: 800; font-size: 1.2rem; }
.prod.low { border-color: var(--warn); }
.badge { display: inline-block; background: var(--warn-soft); color: var(--warn); font-weight: 800; font-size: .8rem; padding: 3px 8px; border-radius: 6px; margin-top: 4px; }
.photo-pick { width: 100%; aspect-ratio: 4/3; border: 2px dashed var(--line); border-radius: 14px; background: #fbf9f6 center/contain no-repeat; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 6px; color: var(--muted); font-weight: 600; }

/* Προϊόντα σε λίστα */
.viewtoggle { display: inline-flex; flex: none; background: #ece4da; border-radius: 12px; padding: 3px; }
.viewtoggle button { width: 46px; height: 48px; border: 0; background: none; border-radius: 10px; color: var(--muted); display: inline-flex; align-items: center; justify-content: center; }
.viewtoggle button svg { width: 24px; height: 24px; }
.viewtoggle button.on { background: #fff; color: var(--plum); box-shadow: 0 1px 2px rgba(42,33,27,.12); }
.prow {
  display: grid; grid-template-columns: 64px minmax(0, 1fr); grid-template-areas: "th main" "th ctl";
  column-gap: 12px; row-gap: 6px; padding: 12px; border-bottom: 1px solid var(--line); align-items: start;
}
.prow:last-child { border-bottom: 0; }
.prow .thumb { grid-area: th; width: 64px; height: 64px; border-radius: 12px; border: 0; background: #efe9e2 center/cover no-repeat; display: flex; align-items: center; justify-content: center; color: var(--muted); }
.prow .thumb svg { width: 26px; height: 26px; }
.prow .pmain { grid-area: main; border: 0; background: none; text-align: left; padding: 0; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.prow .pmain .t { font-weight: 700; font-size: 1.05rem; line-height: 1.25; overflow-wrap: break-word; }
.prow .pmain .s { color: var(--muted); font-size: .88rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.prow .pctl { grid-area: ctl; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.prow .badge { margin: 0; }
.prow .qty { display: grid; grid-template-columns: 44px 38px 44px; align-items: center; border: 2px solid var(--line); border-radius: 12px; background: #fff; }
.prow .qty button { height: 44px; border: 0; background: none; font-size: 1.5rem; font-weight: 700; color: var(--plum); }
.prow .qty span { text-align: center; font-weight: 800; font-size: 1.1rem; }
.prow.low { background: var(--warn-soft); }

/* ---------- Έξοδα ---------- */
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 12px; }
.kpi { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px; }
.kpi span { font-size: .82rem; color: var(--muted); font-weight: 600; }
.kpi b { display: block; font-size: 1.25rem; }
.kpi.neg b { color: var(--danger); } .kpi.pos b { color: var(--cash); }
.check { width: 34px; height: 34px; border-radius: 50%; background: var(--cash); color: #fff; display: inline-flex; align-items: center; justify-content: center; }
.check svg { width: 20px; height: 20px; }

/* ---------- Φύλλα (bottom sheets) ---------- */
.scrim { position: fixed; inset: 0; background: rgba(42,33,27,.45); z-index: 50; display: flex; align-items: flex-end; justify-content: center; }
.sheet {
  background: var(--bg); width: 100%; max-width: 640px; max-height: 94vh; overflow-y: auto;
  border-radius: 24px 24px 0 0; padding: 10px 18px calc(24px + env(safe-area-inset-bottom));
  animation: up .22s ease-out;
}
@media (min-width: 700px) { .scrim { align-items: center; } .sheet { border-radius: 24px; } }
@keyframes up { from { transform: translateY(40px); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .sheet { animation: none; } }
.sheet .grab { width: 44px; height: 5px; border-radius: 3px; background: #d9cfc4; margin: 2px auto 12px; }
.sheet-h { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.sheet-h h2 { flex: 1; margin: 0; font-size: 1.35rem; }
.sheet .actions { position: sticky; bottom: calc(-24px - env(safe-area-inset-bottom)); background: var(--bg); padding: 14px 0 6px; margin-top: 16px; display: grid; gap: 10px; }
.picked { display: flex; align-items: center; gap: 12px; background: #fff; border: 2px solid var(--plum); border-radius: 14px; padding: 10px 12px; }
.picked .main { flex: 1; }
.results .li { min-height: 60px; padding: 10px 14px; }

.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; }

@media (min-width: 900px) {
  :root { --row: 64px; font-size: 20px; }
  .ap .nm { font-size: 1.1rem; }
  main { padding-left: 24px; padding-right: 24px; }
}

/* Μικρά κινητά: το λογότυπο και το κουμπί χρήστη να χωράνε */
@media (max-width: 430px) {
  .top .brand .script { font-size: 1.8rem; }
  .top .who { padding: 8px 12px; }
}
@media (max-width: 370px) {
  .top .who { display: none; }
}


/* ---------- Διορθώσεις κινητού ---------- */
/* iPhone: τα πεδία ημερομηνίας/ώρας να μη βγαίνουν έξω από το πλαίσιο */
input[type=date], input[type=time] { -webkit-appearance: none; appearance: none; min-width: 0; max-width: 100%; display: block; text-align: left; background: #fff; }
input::-webkit-date-and-time-value { text-align: left; }
.grid2 > * { min-width: 0; }
select { -webkit-appearance: none; appearance: none; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b4426' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center / 20px; padding-right: 44px; }
select:disabled, input:disabled { opacity: .45; }

/* Υπηρεσίες στο κλείσιμο ραντεβού: συμπαγές πλέγμα */
.svgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.svgrid .sv { min-height: 56px; border: 2px solid var(--line); background: #fff; border-radius: 14px; display: flex; align-items: center; gap: 8px; padding: 6px 10px; text-align: left; }
.svgrid .sv b { flex: none; min-width: 34px; height: 34px; padding: 0 6px; border-radius: 9px; background: var(--plum-soft); color: var(--plum); display: inline-flex; align-items: center; justify-content: center; font-weight: 800; }
.svgrid .sv span { font-weight: 600; font-size: .92rem; line-height: 1.15; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.svgrid .sv.on { background: var(--plum); border-color: var(--plum); color: #fff; }
.svgrid .sv.on b { background: rgba(255,255,255,.2); color: #fff; }

/* Φωτογραφία προϊόντος: μικρότερο πλαίσιο */
.photo-pick { aspect-ratio: auto; height: 170px; background-size: contain; }
.photo-pick svg { width: 44px; height: 44px; }

.totals .r b { white-space: nowrap; padding-left: 12px; }
.money, .num { white-space: nowrap; }

button, a { touch-action: manipulation; }

/* ---------- Πολύ στενές οθόνες (μεγάλα γράμματα στο iPhone) ---------- */
.kpi b { font-size: clamp(1rem, 4.6vw, 1.25rem); white-space: nowrap; }
.kpi { padding: 10px; min-width: 0; }
.fxrow { flex-wrap: wrap; row-gap: 8px; }
.fxrow .main { flex: 1 1 55%; }
@media (max-width: 359px) {
  .grid2:has(input) { grid-template-columns: minmax(0, 1fr); }
  .svgrid { grid-template-columns: minmax(0, 1fr); }
  .svgrid .sv { min-height: 50px; }
  .kpis { gap: 6px; }
  main { padding-left: 12px; padding-right: 12px; }
}

/* Εορτολόγιο */
.feast { display: flex; align-items: center; gap: 10px; width: 100%; border: 1px solid var(--line); background: #fff; border-radius: 14px; padding: 10px 12px; margin-bottom: 12px; text-align: left; }
.feast-ic { color: var(--gold); flex: none; display: inline-flex; }
.feast-ic svg { width: 24px; height: 24px; }
.feast-tx { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.feast-tx small { color: var(--muted); font-size: .8rem; font-weight: 600; }
.feast-tx b { color: var(--ink); font-weight: 700; font-size: .98rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.feast-n { flex: none; background: var(--plum); color: #fff; border-radius: 999px; padding: 4px 10px; font-weight: 700; font-size: .85rem; white-space: nowrap; }
.nd { display: inline-flex; align-items: center; gap: 6px; margin-top: 4px; color: var(--plum-2); font-weight: 600; font-size: .92rem; }
.nd svg { width: 18px; height: 18px; color: var(--gold); }

.backtoday { display: block; width: fit-content; margin: -6px auto 12px; padding: 6px 14px; border-radius: 999px; background: var(--plum-soft); color: var(--plum); font-weight: 700; font-size: .9rem; text-decoration: none; }
.daynav .date strong { white-space: nowrap; }

/* Τρίτος τρόπος πληρωμής: Άλλο */
.btn.other { background: var(--other); }
.mi.other, .ap .pay.other { background: var(--other); }
.split.one { grid-template-columns: 1fr; }

.fday { display: grid; grid-template-columns: 58px minmax(0, 1fr); gap: 10px; padding: 12px 0; border-top: 1px solid var(--line); }
.fday.first { border-top: 0; }
.fdate { text-align: center; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 6px 2px; align-self: start; }
.fdate b { display: block; font-size: 1.05rem; }
.fdate span { font-size: .78rem; color: var(--muted); font-weight: 600; }
.fnames { font-weight: 600; line-height: 1.35; }
.fcl { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 8px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 6px 6px 6px 12px; }
.fcl a:first-child { color: var(--plum); font-weight: 800; text-decoration: none; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fcl .btn { flex: none; }

/* ============================================================
   ✦ UI/UX POLISH LAYER — φινέτσα στο ύφος κορυφαίων εφαρμογών
   Μόνο εμφάνιση· καμία αλλαγή λειτουργίας. (έρχεται τελευταίο → υπερισχύει)
   ============================================================ */
:root {
  --radius: 18px;
  --sh-1: 0 1px 2px rgba(42,33,27,.05), 0 1px 3px rgba(42,33,27,.06);
  --sh-2: 0 2px 6px rgba(42,33,27,.06), 0 6px 16px rgba(42,33,27,.07);
  --sh-3: 0 8px 28px rgba(42,33,27,.12);
  --sh-plum: 0 6px 18px rgba(107,68,38,.28);
}
body { background: linear-gradient(180deg, #f8f5f1 0%, var(--bg) 100%); background-attachment: fixed; }

/* Κεφαλίδα: λεπτή σκιά αντί για σκληρή γραμμή */
.top { border-bottom: 0; box-shadow: 0 1px 0 rgba(42,33,27,.04), 0 2px 10px rgba(42,33,27,.04); backdrop-filter: saturate(1.2); }
.top .who { box-shadow: var(--sh-1); }

/* Κάρτες & πίνακες: απαλή σκιά, χωρίς σκληρό περίγραμμα */
.panel, .list, .sched, .person, .totals, .prod, .stat, .kpi, .formula, .seg, .feast {
  border-color: transparent; box-shadow: var(--sh-2);
}
.panel, .list, .sched, .prod, .formula, .feast { border: 1px solid rgba(231,223,214,.7); }
.stat, .kpi { border: 0; }

/* Κουμπιά: αίσθηση βάθους + πάτημα */
.btn { box-shadow: var(--sh-1); transition: transform .12s cubic-bezier(.2,.8,.2,1), box-shadow .15s, filter .15s; will-change: transform; }
.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; }
.chip:active { transform: scale(.95); }
.chip.on { box-shadow: var(--sh-plum); }

/* Κάτω μενού: πλωτή αίσθηση με ενεργό «χάπι» */
.tabs {
  border-top: 0; background: rgba(255,255,255,.88); backdrop-filter: saturate(1.4) blur(12px);
  box-shadow: 0 -1px 0 rgba(42,33,27,.05), 0 -8px 24px rgba(42,33,27,.06);
}
.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); }

/* Avatar: απαλή βαθμίδα */
.avatar { background: linear-gradient(145deg, #f3e8da, #e9dcc9); box-shadow: inset 0 0 0 1px rgba(107,68,38,.08); }

/* Αναζήτηση: πιο «μαξιλαρένιο» πεδίο */
.search input { box-shadow: var(--sh-1); border-color: transparent; background: #fff; transition: box-shadow .15s; }
.search input:focus { box-shadow: var(--sh-2), 0 0 0 3px rgba(138,90,52,.15); border-color: var(--plum-2); }

/* Πρόγραμμα ημέρας: ραντεβού σαν «κάρτες» με απαλή σκιά */
.ap { box-shadow: 0 1px 2px rgba(42,33,27,.08), 0 3px 10px rgba(42,33,27,.08); border-radius: 12px; transition: transform .1s; }
.ap:active { transform: scale(.98); }
.sched { overflow: hidden; }

/* Ταμείο: πιο πλούσιες «επικεφαλίδες» ατόμου */
.person-h { background-image: linear-gradient(135deg, rgba(255,255,255,.14), rgba(255,255,255,0)); }
.totals { background-image: linear-gradient(145deg, #764a2a, #5c3a20); }

/* Στατιστικά / KPI: ελαφριά βαθμίδα */
.stat, .kpi { background: linear-gradient(180deg, #fff, #fdfbf8); }

/* Φύλλα (bottom sheets): σκουρόχρωμο θολό φόντο + πιο μαλακή είσοδος */
.scrim { background: rgba(42,33,27,.5); backdrop-filter: blur(3px); }
.sheet { border-radius: 26px 26px 0 0; box-shadow: var(--sh-3); animation: sheetUp .26s cubic-bezier(.22,.9,.26,1); }
@media (min-width: 700px) { .sheet { border-radius: 26px; } }
@keyframes sheetUp { from { transform: translateY(48px); opacity: .6; } to { transform: none; opacity: 1; } }
.sheet .grab { background: #d9cfc4; }

/* Κενές καταστάσεις: πιο «ζεστές» */
.empty { color: var(--muted); font-size: 1rem; line-height: 1.5; }
.panel.empty { background: linear-gradient(180deg,#fff,#fbf8f4); }

/* Toast: σκιά + ελαφριά άνοδος */
.toast { box-shadow: var(--sh-3); border-radius: 16px; animation: toastIn .22s ease-out; }
@keyframes toastIn { from { transform: translate(-50%, 10px); opacity: 0; } }

/* Πληκτρολόγιο PIN: πιο «premium» */
.pad button { box-shadow: var(--sh-1); font-weight: 700; transition: transform .08s, background .08s, color .08s; }
.who-grid button { box-shadow: var(--sh-2); transition: transform .12s; }
.who-grid button:active { transform: scale(.97); }

/* Segmented control: ενεργό με σκιά */
.seg { box-shadow: inset 0 0 0 1px rgba(42,33,27,.04); }
.seg button.on { box-shadow: var(--sh-1); }

@media (prefers-reduced-motion: reduce) {
  .btn, .chip, .icon-btn, .ap, .tabs a svg, .who-grid button { transition: none; }
  .sheet, .toast { animation: none; }
}

/* Οδηγός χρήσης */
.g-hero { text-align: center; padding: 8px 0 14px; }
.g-hero .brand { justify-content: center; }
.g-h { font-size: 1.1rem; margin: 22px 0 10px; color: var(--plum); display: flex; align-items: center; gap: 8px; }
.g-h::before { content: ''; width: 4px; height: 20px; border-radius: 3px; background: var(--gold); }
.g-card { background: #fff; border-radius: 16px; padding: 14px 16px; margin-bottom: 10px; box-shadow: var(--sh-2); border: 1px solid rgba(231,223,214,.7); }
.g-card b { display: block; font-size: 1.05rem; margin-bottom: 4px; }
.g-card p { margin: 0; color: var(--ink); line-height: 1.55; }
.g-card b .g-badge, .g-badge { display: inline-block; vertical-align: middle; margin-left: 8px; background: var(--plum-soft); color: var(--plum); font-size: .68rem; font-weight: 800; letter-spacing: .02em; padding: 3px 8px; border-radius: 999px; }
