:root {
  --plum: #8A5A43; --plum-d: #6A412F; --rose: #C48A72; --blush: #FBE3E9; --bg: #FFF9F7;
  --on-plum: #fff; --hdr: #8A5A43; --hdr2: #B98068; --on-hdr: #fff; --plum-soft: rgba(138,90,67,.12); --card: #FFFFFF;
  --ink: #2B1D24; --muted: #7D6B73; --line: #EADFE3; --ok: #2E7D5B; --ok-bg: #E4F3EC; --warn: #9A6200; --warn-bg: #FCF1DC;
  --bad: #B3261E; --bad-bg: #FBE7E5; --info-bg: #EEF1F8; --info: #34507F;
  --r: 14px; --serif: "Noto Serif", Georgia, serif; --sans: system-ui, Roboto, "Noto Sans", sans-serif;
  --tabh: 62px;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--ink); font: 16px/1.45 var(--sans); }
body { overscroll-behavior-y: none; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--plum); }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; margin: 0; line-height: 1.2; }
#app { min-height: 100%; display: flex; flex-direction: column; }

/* header */
#top { position: sticky; top: 0; z-index: 5; background: linear-gradient(135deg, var(--hdr), var(--hdr2)); color: var(--on-hdr); padding: 12px 16px 14px; }
#top .row { display: flex; align-items: center; gap: 10px; min-height: 36px; }
#top h1 { font-size: 20px; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#top .sub { font-size: 13px; opacity: .82; margin-top: 2px; }
#top .back, #top .act { background: rgba(255,255,255,.18); border: 0; color: var(--on-hdr); border-radius: 10px; height: 36px; min-width: 36px; padding: 0 10px; font-size: 15px; }
#top .ttl { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
#top .ttl h1 { flex: none; max-width: 100%; }
#top .badge-admin { font-size: 8.5px; line-height: 1.3; letter-spacing: .08em; text-transform: uppercase; background: #fff; color: var(--plum); border-radius: 4px; padding: 1px 5px; font-weight: 700; }

main { flex: 1; padding: 16px 16px calc(var(--tabh) + 24px); outline: none; }

/* tabs */
#tabs { position: fixed; bottom: 0; left: 0; right: 0; height: var(--tabh); background: #fff; border-top: 1px solid var(--line); display: flex; z-index: 6; padding-bottom: env(safe-area-inset-bottom); }
#tabs button { flex: 1; border: 0; background: none; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-size: 11.5px; color: var(--muted); position: relative; }
#tabs button svg { width: 22px; height: 22px; }
#tabs button.on { color: var(--plum); font-weight: 600; }
#tabs button.on::before { content: ""; position: absolute; top: 0; left: 28%; right: 28%; height: 3px; border-radius: 0 0 3px 3px; background: var(--plum); }
#tabs .dot { position: absolute; top: 7px; left: 56%; min-width: 17px; height: 17px; border-radius: 9px; background: var(--bad); color: #fff; font-size: 10.5px; display: flex; align-items: center; justify-content: center; padding: 0 4px; font-weight: 700; }

/* building blocks */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 14px; margin-bottom: 12px; }
.card.tap { cursor: pointer; }
.card.tap:active { background: #FFF8FA; }
.muted { color: var(--muted); }
.small { font-size: 13.5px; }
.tiny { font-size: 12px; }
.row { display: flex; align-items: center; gap: 10px; }
.between { justify-content: space-between; }
.grow { flex: 1; min-width: 0; }
.wrap { flex-wrap: wrap; }
.mt { margin-top: 12px; } .mt2 { margin-top: 20px; } .mb { margin-bottom: 12px; }
.center { text-align: center; }
.price { font-weight: 700; color: var(--plum); white-space: nowrap; }
.section-title { font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin: 20px 2px 8px; }
.hero { background: linear-gradient(160deg, var(--blush), #fff); border: 1px solid var(--line); border-radius: 18px; padding: 18px; margin-bottom: 16px; }
.hero h2 { font-size: 22px; color: var(--plum-d); }
.hero.logo-hero { background: #fff; text-align: center; padding: 10px 16px 18px; }
.hero .logo { display: block; width: 100%; max-width: 300px; height: auto; margin: 0 auto 4px; }
#top .music { font-size: 18px; }
#top .music.off { opacity: .55; text-decoration: line-through; }
input[type=range] { width: 100%; accent-color: var(--plum); }
.svc h3 { font-size: 17px; }
.svc .desc { margin: 6px 0 10px; font-size: 14.5px; color: #4A3A42; }
.chip { display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; border-radius: 99px; padding: 3px 9px; background: var(--blush); color: var(--plum-d); font-weight: 600; white-space: nowrap; }
.chip.ok { background: var(--ok-bg); color: var(--ok); } .chip.warn { background: var(--warn-bg); color: var(--warn); }
.chip.bad { background: var(--bad-bg); color: var(--bad); } .chip.info { background: var(--info-bg); color: var(--info); }
.chip.grey { background: #EFEAEC; color: #5d5157; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 18px; border-radius: 12px; border: 0; background: var(--plum); color: var(--on-plum); font-weight: 600; font-size: 16px; text-decoration: none; }
.btn:active { background: var(--plum-d); }
.btn[disabled] { opacity: .45; }
.btn.block { width: 100%; }
.btn.sec { background: var(--blush); color: var(--plum-d); }
.btn.ghost { background: transparent; color: var(--plum); border: 1.5px solid var(--line); }
.btn.danger { background: var(--bad); }
.btn.danger-ghost { background: transparent; color: var(--bad); border: 1.5px solid #F0C9C5; }
.btn.sm { min-height: 38px; padding: 0 12px; font-size: 14.5px; border-radius: 10px; }
.btns { display: flex; gap: 10px; flex-wrap: wrap; }
.btns > .btn { flex: 1 1 140px; }

/* forms */
label.f { display: block; margin-bottom: 14px; }
label.f > span { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
label.f > span em { font-weight: 400; color: var(--muted); font-style: normal; }
.in, select.in, textarea.in { width: 100%; min-height: 48px; border: 1.5px solid var(--line); background: #fff; border-radius: 12px; padding: 10px 12px; font-size: 16px; }
textarea.in { min-height: 84px; resize: vertical; }
.in:focus { outline: none; border-color: var(--rose); box-shadow: 0 0 0 3px rgba(181,72,111,.15); }
.in.err { border-color: var(--bad); }
.ferr { color: var(--bad); font-size: 13.5px; margin-top: 5px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; margin: 6px 0 14px; }
.check input { width: 22px; height: 22px; margin: 0; flex: none; accent-color: var(--plum); }
.grid2 { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 10px; }
.grid2 > * { min-width: 0; }
input[type=date].in { min-width: 0; -webkit-appearance: none; appearance: none; }
.switch { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; }
.switch input { width: 46px; height: 26px; accent-color: var(--plum); }

/* steps */
.steps { display: flex; gap: 6px; margin-bottom: 14px; }
.steps i { flex: 1; height: 5px; border-radius: 3px; background: var(--line); }
.steps i.on { background: var(--plum); }
.pick { border: 1.5px solid var(--line); background: #fff; border-radius: var(--r); padding: 12px 14px; margin-bottom: 10px; display: flex; gap: 12px; align-items: center; width: 100%; text-align: left; }
.pick.sel { border-color: var(--plum); background: #FFF6F9; box-shadow: 0 0 0 2px var(--plum-soft) inset; }
.summary { background: var(--blush); border-radius: var(--r); padding: 12px 14px; margin-bottom: 14px; font-size: 14.5px; }
.summary b { color: var(--plum-d); }

/* calendar */
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.cal-head h3 { font-size: 18px; text-transform: capitalize; }
.cal-head button { width: 42px; height: 42px; border-radius: 12px; border: 1.5px solid var(--line); background: #fff; font-size: 18px; }
.cal-head button[disabled] { opacity: .35; }
.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal .dow { text-align: center; font-size: 12px; color: var(--muted); font-weight: 600; padding: 4px 0; }
.cal button { aspect-ratio: 1 / 1; border: 0; border-radius: 12px; background: transparent; font-size: 15px; position: relative; color: #b9adb2; }
.cal button.av { background: #fff; color: var(--ink); border: 1.5px solid var(--line); font-weight: 600; }
.cal button.av::after { content: ""; position: absolute; bottom: 5px; left: 50%; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%; background: var(--ok); }
.cal button.full { color: #b9adb2; text-decoration: line-through; }
.cal button.today { box-shadow: 0 0 0 2px var(--rose) inset; }
.cal button.sel { background: var(--plum); color: var(--on-plum); border-color: var(--plum); }
.cal button.sel::after { background: #fff; }
.legend { display: flex; gap: 14px; font-size: 12.5px; color: var(--muted); margin: 8px 2px 0; }
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: 8px; }
.slots button { min-height: 46px; border-radius: 12px; border: 1.5px solid var(--line); background: #fff; font-weight: 600; font-size: 15.5px; }
.slots button.sel { background: var(--plum); color: var(--on-plum); border-color: var(--plum); }
.slot-group { font-size: 13px; color: var(--muted); font-weight: 600; margin: 14px 2px 8px; }

/* states */
.empty { text-align: center; color: var(--muted); padding: 28px 12px; }
.empty .ic { font-size: 34px; margin-bottom: 6px; }
.note { border-radius: 12px; padding: 12px 14px; font-size: 14.5px; margin-bottom: 12px; background: var(--info-bg); color: var(--info); }
.note.warn { background: var(--warn-bg); color: #6E4700; }
.note.bad { background: var(--bad-bg); color: var(--bad); }
.note.ok { background: var(--ok-bg); color: #1F5C42; }
.spinner { width: 28px; height: 28px; border: 3px solid var(--line); border-top-color: var(--plum); border-radius: 50%; animation: spin .8s linear infinite; margin: 30px auto; }
@keyframes spin { to { transform: rotate(360deg); } }
.success-ic { width: 72px; height: 72px; border-radius: 50%; background: var(--ok-bg); color: var(--ok); display: flex; align-items: center; justify-content: center; margin: 8px auto 12px; }
.code { font-family: ui-monospace, monospace; font-size: 26px; letter-spacing: .18em; font-weight: 700; color: var(--plum-d); background: #fff; border: 2px dashed var(--rose); border-radius: 12px; padding: 8px 14px; display: inline-block; }
dl.kv { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; font-size: 15px; }
dl.kv dt { color: var(--muted); } dl.kv dd { margin: 0; font-weight: 600; text-align: right; }
.hours-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.hours-table td { padding: 7px 0; border-bottom: 1px solid var(--line); }
.hours-table td:last-child { text-align: right; font-weight: 600; }
.hours-table tr.today td { color: var(--plum); }
.list-item { display: flex; align-items: center; gap: 12px; padding: 13px 14px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); margin-bottom: 8px; width: 100%; text-align: left; }
.list-item .chev { color: #c4b6bc; font-size: 20px; }
.avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--blush); color: var(--plum); display: flex; align-items: center; justify-content: center; font-weight: 700; flex: none; }

/* admin schedule */
.seg { display: flex; background: #EFE6EA; border-radius: 12px; padding: 4px; margin-bottom: 12px; }
.seg button { flex: 1; border: 0; background: none; border-radius: 9px; min-height: 38px; font-weight: 600; color: var(--muted); }
.seg button.on { background: #fff; color: var(--plum); box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.datenav { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.datenav .lbl { flex: 1; text-align: center; font-weight: 700; font-size: 15.5px; }
.datenav button { height: 42px; min-width: 42px; border-radius: 12px; border: 1.5px solid var(--line); background: #fff; font-size: 17px; padding: 0 10px; }
.appt { display: flex; gap: 12px; padding: 12px 12px 12px 10px; background: #fff; border: 1px solid var(--line); border-left: 5px solid var(--plum); border-radius: 12px; margin-bottom: 8px; width: 100%; text-align: left; }
.appt .t { width: 52px; flex: none; font-weight: 700; font-size: 15px; }
.appt .t small { display: block; font-weight: 500; color: var(--muted); font-size: 12.5px; }
.appt.cancelled { border-left-color: #c9bcc2; opacity: .7; }
.appt.cancelled .nm { text-decoration: line-through; }
.appt.completed { border-left-color: var(--ok); }
.appt.no_show { border-left-color: var(--warn); }
.gap { font-size: 13px; color: var(--ok); padding: 6px 12px; margin-bottom: 8px; border: 1.5px dashed #BFE0D0; border-radius: 12px; background: #F6FBF8; }
.blockrow { font-size: 13.5px; color: #5d5157; padding: 9px 12px; margin-bottom: 8px; border-radius: 12px; background: repeating-linear-gradient(135deg, #F3EEF0, #F3EEF0 8px, #ECE4E8 8px, #ECE4E8 16px); }
.weekday { margin-bottom: 14px; }
.weekday-h { display: flex; justify-content: space-between; align-items: baseline; padding: 8px 2px; border-bottom: 2px solid var(--line); margin-bottom: 8px; }
.weekday-h b { font-size: 15.5px; }
.weekday-h.today b { color: var(--plum); }
.mini { display: flex; gap: 10px; padding: 9px 10px; border-radius: 10px; background: #fff; border: 1px solid var(--line); margin-bottom: 6px; width: 100%; text-align: left; font-size: 14.5px; }
.mini .t { font-weight: 700; width: 46px; flex: none; }
.fab { position: fixed; right: 18px; bottom: calc(var(--tabh) + 18px); width: 58px; height: 58px; border-radius: 18px; border: 0; background: var(--plum); color: var(--on-plum); font-size: 30px; box-shadow: 0 6px 18px rgba(92,31,58,.35); z-index: 4; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 12px; }
.stats div { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px; text-align: center; }
.stats b { display: block; font-size: 19px; color: var(--plum-d); }
.stats span { font-size: 12px; color: var(--muted); }
.log { font-size: 13px; color: var(--muted); border-left: 2px solid var(--line); padding-left: 10px; }
.log div { margin-bottom: 5px; }
.dayrow { border-bottom: 1px solid var(--line); padding: 12px 0; }
.dayrow:last-child { border-bottom: 0; }
.iv { display: flex; gap: 6px; align-items: center; margin-top: 8px; }
.iv select { flex: 1; min-height: 42px; padding: 6px 8px; }
.iv .x { width: 42px; height: 42px; border-radius: 10px; border: 1.5px solid var(--line); background: #fff; color: var(--bad); font-size: 18px; flex: none; }
.addlink { background: none; border: 0; color: var(--plum); font-weight: 600; padding: 8px 0 0; font-size: 14.5px; }

/* sheet / dialog */
.backdrop { position: fixed; inset: 0; background: rgba(43,29,36,.45); z-index: 20; display: flex; align-items: flex-end; animation: fade .15s ease; }
.sheet { background: var(--bg); width: 100%; max-height: 92vh; overflow-y: auto; border-radius: 20px 20px 0 0; padding: 10px 16px calc(18px + env(safe-area-inset-bottom)); animation: up .2s ease; }
.sheet .grip { width: 40px; height: 5px; background: #D9CCD2; border-radius: 3px; margin: 2px auto 12px; }
.sheet h2 { font-size: 20px; margin-bottom: 12px; }
.dialog-wrap { align-items: center; justify-content: center; padding: 24px; }
.dialog { background: #fff; border-radius: 18px; padding: 20px; width: 100%; max-width: 380px; animation: up .18s ease; }
.dialog h2 { font-size: 19px; margin-bottom: 8px; }
.dialog p { margin: 0 0 16px; color: #4A3A42; }
@keyframes fade { from { opacity: 0; } }
@keyframes up { from { transform: translateY(24px); opacity: .6; } }
#toast { position: fixed; left: 16px; right: 16px; bottom: calc(var(--tabh) + 14px); z-index: 30; display: flex; justify-content: center; pointer-events: none; }
#toast div { background: #2B1D24; color: #fff; padding: 12px 16px; border-radius: 12px; font-size: 14.5px; box-shadow: 0 6px 20px rgba(0,0,0,.2); animation: up .18s ease; max-width: 520px; }
#toast div.bad { background: var(--bad); }
.hide { display: none !important; }
.foot { text-align: center; margin-top: 26px; font-size: 13px; color: var(--muted); }
.foot button { background: none; border: 0; color: var(--muted); text-decoration: underline; font-size: 13px; padding: 10px; }

/* theme settings */
.swatches { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-bottom: 4px; }
.sw { border: 1.5px solid var(--line); border-radius: 12px; padding: 6px; background: #fff; font-size: 11.5px; line-height: 1.2; color: var(--ink); }
.sw i { display: block; height: 30px; border-radius: 8px; margin-bottom: 5px; }
.sw.on { border-color: var(--plum); box-shadow: 0 0 0 2px var(--plum-soft); font-weight: 700; }
.colorrow { display: flex; align-items: center; gap: 12px; padding: 8px 0; }
.colorrow input[type=color] { width: 54px; height: 44px; border: 1.5px solid var(--line); border-radius: 12px; padding: 3px; background: #fff; flex: none; }
.colorrow + .colorrow { border-top: 1px solid var(--line); }

/* schedule time grid */
.tg { border: 1px solid var(--line); border-radius: 12px; background: #fff; overflow: hidden; }
.tg-head, .tg-body { display: grid; grid-template-columns: 42px repeat(var(--cols), minmax(0, 1fr)); }
.tg-head { background: #FAF6F4; border-bottom: 1px solid var(--line); }
.tg-head div { font-size: 12px; font-weight: 700; padding: 7px 3px; text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tg-head div + div { border-left: 1px solid var(--line); }
.tg-head small { display: block; font-weight: 500; color: var(--muted); font-size: 10.5px; overflow: hidden; text-overflow: ellipsis; }
.tg-body { position: relative; }
.tg-times { position: relative; }
.tg-times span { position: absolute; right: 5px; font-size: 11px; color: var(--muted); transform: translateY(2px); }
.tg-col { position: relative; border-left: 1px solid var(--line); background: repeating-linear-gradient(135deg, #F4EFEC 0 6px, #EDE6E2 6px 12px); }
.tg-open { position: absolute; left: 0; right: 0; background: #fff; }
.tg-hl { position: absolute; left: 0; right: 0; border-top: 1px solid #F1E9EC; }
.tg-free { position: absolute; left: 3px; right: 3px; border: 1.5px dashed #A9D8C1; background: #F1FAF5; color: var(--ok); border-radius: 8px; font-size: 12px; font-weight: 700; z-index: 2; padding: 0; }
.tg-free:active { background: #DDF3E7; }
.tg-free.past { opacity: .4; }
.tg-brk { position: absolute; left: 0; right: 0; background: repeating-linear-gradient(135deg, #EEE7EA 0 5px, #E4DADF 5px 10px); font-size: 11px; color: #6d5f66; display: flex; align-items: center; justify-content: center; z-index: 1; overflow: hidden; text-align: center; }
.tg-brk.cl { background: repeating-linear-gradient(135deg, #F6E3E1 0 5px, #EFD3D0 5px 10px); color: var(--bad); }
.tg-appt { position: absolute; left: 3px; right: 3px; border: 0; border-radius: 8px; background: var(--plum); color: var(--on-plum); font-size: 11.5px; padding: 3px 6px; overflow: hidden; z-index: 3; text-align: left; line-height: 1.25; display: flex; flex-direction: column; box-shadow: 0 1px 2px rgba(0,0,0,.12); }
.tg-appt b, .tg-appt span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tg-appt span { opacity: .85; }
.tg-appt.completed { background: var(--ok); color: #fff; }
.tg-appt.no_show { background: var(--warn); color: #fff; }
.tg-prep { position: absolute; left: 3px; right: 3px; background: repeating-linear-gradient(135deg, var(--plum-soft) 0 4px, transparent 4px 8px); z-index: 2; border-radius: 0 0 6px 6px; }
.tg-now { position: absolute; left: 42px; right: 0; border-top: 2px solid var(--bad); z-index: 4; pointer-events: none; }
.tg-now::before { content: ""; position: absolute; left: -5px; top: -5px; width: 8px; height: 8px; border-radius: 50%; background: var(--bad); }
.tg-legend { color: var(--muted); font-size: 11.5px; white-space: nowrap; }
.tg-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin: 0 3px 0 6px; vertical-align: -1px; }
.tg-legend .lf { background: #F1FAF5; border: 1.5px dashed #A9D8C1; }
.tg-legend .lb { background: var(--plum); }
.tg-legend .lx { background: #E4DADF; }

/* «Τελευταίες δουλειές» carousel + full-screen viewer */
.gal { margin: 0 -16px 6px; }
.gal-track { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 2px 16px 6px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.gal-track::-webkit-scrollbar { display: none; }
.gal-s { flex: 0 0 78%; scroll-snap-align: center; margin: 0; aspect-ratio: 4 / 5; border-radius: 16px; overflow: hidden; position: relative; background: var(--blush); box-shadow: 0 2px 8px rgba(0,0,0,.08); }
.gal-s img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gal-s figcaption, .v-s figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 12px 10px; color: #fff; font-size: 14px; font-weight: 600; background: linear-gradient(transparent, rgba(0,0,0,.55)); }
.gal-dots { display: flex; justify-content: center; gap: 6px; margin-top: 4px; }
.gal-dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--line); transition: all .2s; }
.gal-dots i.on { width: 18px; border-radius: 4px; background: var(--plum); }
.backdrop.viewer-wrap { background: #000; align-items: stretch; }
.viewer { position: relative; width: 100%; height: 100%; }
.v-track { display: flex; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.v-track::-webkit-scrollbar { display: none; }
.v-s { flex: 0 0 100%; height: 100%; margin: 0; scroll-snap-align: center; position: relative; display: flex; align-items: center; justify-content: center; }
.v-s img { max-width: 100%; max-height: 100%; object-fit: contain; }
.v-close { position: absolute; top: 14px; right: 14px; z-index: 2; width: 42px; height: 42px; border-radius: 50%; border: 0; background: rgba(255,255,255,.18); color: #fff; font-size: 20px; }
.v-count { position: absolute; top: 24px; left: 18px; color: #fff; font-size: 14px; opacity: .8; }
/* admin gallery list */
.gal-admin { display: flex; gap: 12px; align-items: center; padding: 10px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); margin-bottom: 8px; }
.gal-admin img { width: 72px; height: 90px; object-fit: cover; border-radius: 10px; flex: none; background: var(--blush); }
.gal-admin .tools { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.upload-btn { position: relative; overflow: hidden; }
.upload-btn input { position: absolute; inset: 0; opacity: 0; }
.img-preview { width: 100%; max-height: 50vh; object-fit: contain; border-radius: 12px; background: #f4f0ee; margin-bottom: 12px; }

/* social links */
.social { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: -4px 0 14px; }
.soc { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 99px; background: #fff; border: 1.5px solid var(--line); color: var(--ink); text-decoration: none; font-size: 13.5px; font-weight: 600; }
.soc:active { background: var(--blush); }

/* ---------- assistant chat ---------- */
.ai-fab { position: fixed; right: 16px; bottom: calc(var(--tabh) + 16px + env(safe-area-inset-bottom)); width: 56px; height: 56px; border-radius: 50%; border: 0; background: var(--plum); color: var(--on-plum); font-size: 26px; box-shadow: 0 6px 18px rgba(60,30,20,.35); z-index: 5; display: flex; align-items: center; justify-content: center; animation: fabin .3s ease; }
.ai-fab:active { transform: scale(.94); }
@keyframes fabin { from { transform: scale(.6); opacity: 0; } to { transform: none; opacity: 1; } }
.chat { display: flex; flex-direction: column; gap: 8px; padding-bottom: 76px; }
.msg { max-width: 86%; padding: 10px 13px; border-radius: 16px; line-height: 1.45; font-size: 15px; word-wrap: break-word; }
.msg.bot { align-self: flex-start; background: #fff; border: 1px solid var(--line); border-bottom-left-radius: 5px; }
.msg.me { align-self: flex-end; background: var(--plum); color: var(--on-plum); border-bottom-right-radius: 5px; white-space: pre-wrap; }
.msg .muted { color: inherit; opacity: .7; }
.typing { display: flex; gap: 4px; padding: 14px; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--plum); opacity: .35; animation: blink 1s infinite; }
.typing i:nth-child(2) { animation-delay: .2s; } .typing i:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 50% { opacity: 1; } }
.chat-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip-btn { border: 1.5px solid var(--plum); background: #fff; color: var(--plum-d); border-radius: 99px; padding: 7px 12px; font: inherit; font-size: 13.5px; font-weight: 600; text-decoration: none; }
.chip-btn:active { background: var(--plum-soft); }
.chat-bar { position: fixed; left: 0; right: 0; bottom: calc(var(--tabh) + env(safe-area-inset-bottom)); display: flex; gap: 8px; padding: 8px 12px; background: var(--bg, #faf6f4); border-top: 1px solid var(--line); z-index: 5; }
.chat-bar .in { flex: 1; margin: 0; border-radius: 99px; }
.chat-bar .btn { border-radius: 50%; width: 46px; min-width: 46px; height: 46px; padding: 0; font-size: 18px; }
.faq-item { border: 1px solid var(--line); border-radius: 12px; padding: 10px; margin-bottom: 10px; }
.pw { position: relative; }
.pw .in { padding-right: 48px; }
.pw-eye { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); border: 0; background: none; font-size: 20px; width: 42px; height: 42px; }
.warn-t { color: var(--warn, #9a6200); font-weight: 600; margin-top: 3px; }
.fab-lock { bottom: calc(var(--tabh) + 88px); width: 48px; height: 48px; right: 23px; border-radius: 16px; font-size: 20px; background: #fff; color: var(--plum-d); border: 1.5px solid var(--plum); }
button.tg-brk { border: 0; padding: 0 2px; font: inherit; font-size: 11px; font-weight: 600; cursor: pointer; }
button.blockrow { border: 0; font: inherit; }
.tg-body { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.tg-free.pressing, .tg-brk.pressing { transform: scale(.94); background: var(--plum-soft, #f3e6e0); transition: transform .5s ease, background .5s ease; }
[data-lpd] { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
[data-lpd].pressing { background: var(--plum-soft, #f3e6e0); border-radius: 10px; transition: background .5s ease; }
/* app feel: no text selection / callout on long press (fields stay editable & pasteable) */
body { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; -webkit-tap-highlight-color: transparent; }
input, textarea, select, [contenteditable], .selectable { -webkit-user-select: text; user-select: text; -webkit-touch-callout: default; }
/* month view */
.mcal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.mcal .dow { text-align: center; font-size: 12px; font-weight: 700; color: var(--muted); padding: 2px 0 4px; }
.mday { position: relative; min-height: 54px; border: 1px solid var(--line); background: #fff; border-radius: 10px; padding: 4px 0 0; display: flex; flex-direction: column; align-items: center; font: inherit; color: inherit; -webkit-user-select: none; user-select: none; }
.mday .dn { font-weight: 700; font-size: 15px; }
.mday .cnt { margin-top: 3px; min-width: 22px; height: 20px; padding: 0 5px; border-radius: 99px; background: var(--plum); color: var(--on-plum); font-size: 12px; font-weight: 700; line-height: 20px; }
.mday .mk { font-size: 12px; color: var(--muted); }
.mday.today { border: 2px solid var(--plum); }
.mday.sel { box-shadow: 0 0 0 2px var(--rose) inset; }
.mday.closed { background: repeating-linear-gradient(135deg, #F3EEF0 0 6px, #ECE4E8 6px 12px); color: #8b7d84; }
.mday.locked { background: repeating-linear-gradient(135deg, #F6E3E1 0 6px, #EFD3D0 6px 12px); }
.mday.past { opacity: .6; }
.mday.pressing { transform: scale(.94); transition: transform .5s ease; }
.seg button { font-size: 14px; }
.backup-card { border: 1.5px solid var(--plum); }
.steps-list { margin: 0 0 10px; padding-left: 20px; line-height: 1.45; }
.steps-list li { margin-bottom: 6px; }
.mono { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 11.5px; white-space: pre; }
.sms-prev { background: #E9F7EE; border-radius: 14px 14px 14px 4px; padding: 10px 12px; font-size: 14px; line-height: 1.4; white-space: pre-wrap; -webkit-user-select: text; user-select: text; }

/* nail photos (customer adds, studio sees) */
.photo-pick { display: flex; flex-wrap: wrap; gap: 8px; }
.photo-pick .ph { position: relative; width: 86px; height: 86px; border-radius: 12px; overflow: hidden; background: var(--line); }
.photo-pick .ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-pick .ph-x { position: absolute; top: 4px; right: 4px; width: 26px; height: 26px; border-radius: 50%; border: 0; background: rgba(0,0,0,.6); color: #fff; font-size: 13px; line-height: 26px; padding: 0; }
.photo-pick .ph-add { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-size: 26px; cursor: pointer; border: 2px dashed var(--plum); background: transparent; color: var(--plum); }
.photo-pick .ph-add span { font-size: 12px; font-weight: 600; }
.photo-pick .ph-add input { position: absolute; inset: 0; opacity: 0; }
.appt-photos { display: flex; gap: 8px; flex-wrap: wrap; margin: 6px 0 2px; }
.appt-photos img { width: 92px; height: 92px; object-fit: cover; border-radius: 10px; cursor: zoom-in; }

/* pull to refresh */
#ptr { position: fixed; top: calc(env(safe-area-inset-top) + 64px); left: 50%; z-index: 40; width: 40px; height: 40px; border-radius: 50%; background: #fff; box-shadow: 0 2px 10px rgba(0,0,0,.18); display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 22px; font-weight: 700; pointer-events: none; transform: translate(-50%, -50px); }
#ptr.ready { color: var(--plum); }
#ptr.spin span { display: inline-block; animation: ptrspin .8s linear infinite; color: var(--plum); }
@keyframes ptrspin { to { transform: rotate(360deg); } }
.section-title .linkish { border: 0; background: none; padding: 0; font: inherit; letter-spacing: inherit; text-transform: inherit; color: inherit; }
.section-title.today { color: var(--plum); }
#top .act.undo { font-size: 20px; font-weight: 700; margin-left: auto; }
.foot button.admin-in { font-size: 16px; font-weight: 600; padding: 12px 16px; }
#top .act.save { font-size: 17px; }
#top .act.undo.off, #top .act.save.busy { opacity: .45; }

/* 2.7.3: landscape (phone on its side) — slimmer bars so the content gets the height */
@media (orientation: landscape) and (max-height: 520px) {
  :root { --tabh: 46px; }
  #top { padding: 6px 16px 6px; }
  #top .row { min-height: 30px; }
  #top h1 { font-size: 17px; }
  #top .sub { display: none; }
  #top .ttl { flex-direction: row; align-items: center; gap: 8px; }
  #top .back, #top .act { height: 30px; min-width: 30px; }
  #tabs button { flex-direction: row; gap: 6px; font-size: 12.5px; }
  #tabs button svg { width: 20px; height: 20px; }
  #tabs .dot { top: 4px; }
  .sheet { max-height: 96vh; }
  #ptr { top: calc(env(safe-area-inset-top) + 44px); }
}

/* 2.10.0 voice assistant — bottom panel; the schedule stays usable above it */
#top .act.mic { font-size: 16px; }
.voice { position: fixed; left: 8px; right: 8px; bottom: calc(8px + env(safe-area-inset-bottom)); z-index: 60; max-width: 560px; margin: 0 auto;
  background: var(--card, #fff); border-radius: 18px; box-shadow: 0 8px 30px rgba(0,0,0,.25); padding: 10px 12px 12px; border: 2px solid transparent; transition: border-color .2s; }
.voice.on { border-color: #e0457b; } .voice.think { border-color: #c9a227; } .voice.talk { border-color: #6a5acd; }
.voice .v-head { display: flex; align-items: center; gap: 8px; }
.voice .v-st { flex: 1; font-size: 13px; color: var(--muted, #777); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.voice .v-x { background: none; border: 0; font-size: 18px; color: var(--muted, #777); padding: 2px 6px; }
.voice .v-log { max-height: 30vh; overflow-y: auto; margin: 8px 0; display: flex; flex-direction: column; gap: 6px; }
.voice .v-b { padding: 7px 11px; border-radius: 14px; font-size: 14.5px; line-height: 1.35; max-width: 88%; }
.voice .v-b.me { align-self: flex-end; background: #f3e6ec; } .voice .v-b.me.part { opacity: .6; font-style: italic; }
.voice .v-b.ai { align-self: flex-start; background: #eef0f6; }
.voice .v-hint { font-size: 13px; color: var(--muted, #777); }
.voice .v-yn { display: flex; gap: 8px; margin-bottom: 8px; } .voice .v-yn .btn { flex: 1; }
.voice .v-ctl { display: flex; align-items: center; gap: 10px; justify-content: center; }
.voice .v-type { flex: 1; display: flex; gap: 6px; } .voice .v-type .in { flex: 1; margin: 0; }
.voice .v-kb { background: none; border: 1px solid #ddd; border-radius: 12px; height: 44px; width: 44px; font-size: 18px; }
.voice .v-mic { height: 60px; width: 60px; border-radius: 50%; border: 0; font-size: 26px; color: #fff; background: #e0457b; box-shadow: 0 3px 10px rgba(224,69,123,.4); }
.voice.on .v-mic { animation: vpulse 1.2s infinite; }
.voice.think .v-mic { background: #c9a227; } .voice.talk .v-mic { background: #6a5acd; }
@keyframes vpulse { 0% { box-shadow: 0 0 0 0 rgba(224,69,123,.55); } 100% { box-shadow: 0 0 0 18px rgba(224,69,123,0); } }

/* 2.11.0 Nailbook plans & payments */
.plan-card { border-left: 5px solid #9aa0a6; }
.plan-card.plan-pro { border-left-color: #3f7fd9; } .plan-card.plan-ultra { border-left-color: #8a4fd0; }
.plan-table { padding: 0; overflow-x: auto; }
.plan-table table { width: 100%; border-collapse: collapse; font-size: 13px; }
.plan-table th, .plan-table td { padding: 7px 8px; border-bottom: 1px solid var(--line, #eee); text-align: center; }
.plan-table td:first-child, .plan-table th:first-child { text-align: left; }
.plan-table th { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; }
.plan-table .cur { background: rgba(138, 79, 208, .08); font-weight: 700; }
.chip.danger { background: #fde4e4; color: #b3261e; }
.pay-row { display: flex; align-items: center; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--line, #eee); }
.pay-row:last-child { border-bottom: 0; }
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.stat { background: var(--card, #fff); border-radius: 14px; padding: 10px 12px; box-shadow: 0 1px 4px rgba(0,0,0,.06); }
.stat b { font-size: 18px; }
.pay-card { border: 2px solid var(--plum, #8A5A43); }
ol.steps { padding-left: 18px; margin: 0; } ol.steps li { margin: 6px 0; }
code.sel { user-select: all; -webkit-user-select: all; word-break: break-all; background: #f6f1f3; padding: 2px 5px; border-radius: 6px; font-size: 12px; }
ol.steps { display: block; } ol.steps li { display: list-item; }
.pay-status { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; justify-content: space-between; }
.otp-card { border: 2px solid var(--plum-soft, rgba(138,90,67,.2)); }
.otp-in { font-size: 26px; letter-spacing: .45em; text-align: center; font-weight: 700; }

/* 📊 στατιστικά ημέρας */
.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.stat-grid .stat b { font-size: 22px; display: block; }
.stat .up { color: #2e7d32; } .stat .down { color: #c62828; }
.wk-bars { display: flex; align-items: flex-end; justify-content: space-between; gap: 6px; height: 110px; }
.wk-bars .wk { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 3px; }
.wk-bars .wk i { display: block; width: 100%; max-width: 28px; border-radius: 6px 6px 2px 2px; background: var(--accent, #c48a9a); opacity: .45; }
.wk-bars .wk.on i { opacity: 1; } .wk-bars .wk .n { font-size: 12px; font-weight: 600; }
#top .act.dstat { font-size: 16px; }
.hidden { display: none !important; }

/* 2.11.1 βοηθός: πληκτρολόγηση */
.voice .v-chips { display: flex; gap: 6px; overflow-x: auto; margin: 2px 0 8px; scrollbar-width: none; }
.voice .v-chips::-webkit-scrollbar { display: none; }
.voice .v-chip { flex: 0 0 auto; border: 1px solid #e6d3db; background: #fff; border-radius: 16px; padding: 6px 10px; font-size: 13px; color: var(--accent-ink, #8a5a44); }
.voice .v-bar { display: flex; align-items: center; gap: 8px; }
.voice .v-bar .in { flex: 1; margin: 0; height: 46px; border-radius: 23px; padding: 0 16px; min-width: 0; }
.voice .v-send { display: none; height: 46px; width: 46px; flex: 0 0 46px; border-radius: 50%; border: 0; background: var(--accent, #8a5a44); color: #fff; font-size: 18px; }
.voice .v-bar.has .v-send { display: block; } .voice .v-bar.has .v-mic { display: none; }
.voice .v-mic.sm { height: 46px; width: 46px; flex: 0 0 46px; font-size: 20px; }
.voice .v-mode { font-size: 11.5px; color: var(--muted, #999); text-align: center; margin-top: 6px; }

/* 2.12.0: full menu title above the header buttons (admin / staff) */
#top.tline { padding-top: 8px; }
#top .ttl-top { display: flex; align-items: center; gap: 8px; min-width: 0; margin: 0 0 6px; }
#top .ttl-top h1 { font-size: 16.5px; flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#top .ttl-top .badge-admin { flex: none; }
#top.tline .row { justify-content: flex-end; }

/* 2.12.0 Nail Book: start screen + brand line */
#splash { position: fixed; inset: 0; z-index: 9999; background: #2a1a24; overflow: hidden; transition: opacity .4s; }
#splash.out { opacity: 0; pointer-events: none; }
#splash .sp-bg { position: absolute; inset: -24px; background: url(../img/nailbook-splash.jpg) center / cover; filter: blur(18px) brightness(.65); }
#splash .sp-img { position: absolute; left: 0; right: 0; top: 50%; width: 100%; transform: translateY(-55%); box-shadow: 0 10px 30px rgba(0,0,0,.4); }
#splash .sp-bar { position: absolute; left: 25%; right: 25%; bottom: 100px; height: 4px; border-radius: 2px; background: rgba(255,255,255,.3); overflow: hidden; }
#splash .sp-bar i { display: block; height: 100%; width: 0; border-radius: 2px; background: #F472B6; animation: nbbar 1.9s ease-out forwards; }
@keyframes nbbar { to { width: 100%; } }
#splash .sp-brand { position: absolute; left: 0; right: 0; bottom: 56px; }
.nb-brand, #splash .sp-brand { display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 12.5px; color: var(--muted, #8b7d82); }
#splash .sp-brand { color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,.5); font-size: 13px; }
.nb-brand img, #splash .sp-brand img { width: 20px; height: 20px; display: block; }
.nb-brand .a, #splash .sp-brand .a { font-style: italic; color: #3B1530; }
#splash .sp-brand .a { color: #fff; }
.nb-brand .b, #splash .sp-brand .b { font-style: italic; color: #EC4899; margin-left: -3px; }
.nb-brand span, #splash .sp-brand span { opacity: .5; }
.nb-brand { padding: 18px 0 8px; }
.nb-brand.pad { padding-bottom: 96px; }
/* «Σχετικά» */
.ab-hero { text-align: center; padding: 16px 0 6px; }
.ab-hero img { width: 84px; height: 84px; filter: drop-shadow(0 6px 14px rgba(219,39,119,.25)); }
.ab-name { font-size: 28px; font-style: italic; font-weight: 800; margin-top: 6px; letter-spacing: -.3px; }
.ab-name .a { color: #3B1530; } .ab-name .b { color: #DB2777; }
.ab-ver { font-size: 13px; color: var(--muted); margin-top: 2px; }
.ab-row { display: flex; justify-content: space-between; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.ab-row:last-child { border: 0; } .ab-row span { color: var(--muted); }
.sig { display: flex; gap: 10px; align-items: center; }
.sig .ic { width: 34px; height: 34px; border-radius: 50%; background: #e7f4ea; color: #2e7d32; display: flex; align-items: center; justify-content: center; font-size: 18px; flex: 0 0 34px; }
.sig.bad .ic { background: #fdecea; color: #c62828; } .sig.web .ic { background: #eef1f6; color: #4a5a78; }
.fp { font-family: ui-monospace, Menlo, monospace; font-size: 11.5px; color: #6d6066; word-break: break-all; background: #faf6f7; border-radius: 8px; padding: 8px 10px; margin-top: 8px; }
.ab-copy { text-align: center; font-size: 12px; color: var(--muted); margin: 14px 0 4px; }

/* 2.12.0 SMS step */
.mfa-card { max-width: 420px; margin: 18px auto 10px; }
.mfa-head { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 4px 0 2px; }
.mfa-head img { width: 38px; height: 38px; } .mfa-head b { font-style: italic; font-size: 24px; } .mfa-head .a { color: #3B1530; } .mfa-head .b { color: #DB2777; margin-left: -4px; }
.mfa-in { font-size: 26px; letter-spacing: 10px; text-align: center; font-weight: 700; }
.note.ok { background: #e7f4ea; color: #1e5b24; }
#splash .sp-brand b.a { color: #fff; }
/* 2.13.0 Supervisor & ξεκλειδώματα */
.unlock-one { border: 2px solid var(--brand, #c2407e); text-align: center; margin-top: 10px; }
.unlock-one .price { font-size: 26px; font-weight: 800; color: var(--brand, #c2407e); margin: 6px 0 2px; }
.unlock-one .price small { font-size: 13px; font-weight: 500; color: #8a7380; }
.sup-row { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line, #eee); }
.sup-row:last-child { border-bottom: 0; }
.sup-row .mt-s { margin-top: 4px; }
.plan-table tr.un td { background: #eaf7ee; }
.sup-ro { background: #fff4e5; border-left: 4px solid #e08a00; }
.ro { opacity: .55; }
.btns.wrap { flex-wrap: wrap; }
/* 2.13.0 βοηθός: αυτόματη αποστολή υπαγόρευσης, μεγάλα Ναι/Όχι */
.v-auto { margin: 6px 4px 0; }
.v-auto i { display: block; height: 5px; border-radius: 3px; background: var(--brand, #c2407e); transform-origin: left; animation: vauto linear forwards; }
.v-auto span { display: block; font-size: 11.5px; color: #8a7380; text-align: center; margin-top: 4px; }
@keyframes vauto { from { transform: scaleX(1); } to { transform: scaleX(0); } }
.v-yn.big { display: flex; gap: 8px; }
.v-yn.big .btn { flex: 1; padding: 14px 8px; font-size: 16px; font-weight: 700; }
.v-yn.big .btn.ok { background: #1f9d55; border-color: #1f9d55; color: #fff; }
.q-card.open { border-left: 4px solid var(--brand, #c2407e); }
/* 2.13.0 πιο έντονο «‹ Πίσω» */
#top .back { background: #fff !important; color: var(--brand, #c2407e) !important; font-weight: 800; font-size: 22px !important; line-height: 1; min-width: 46px !important; box-shadow: 0 2px 6px rgba(0,0,0,.18); }
#top .back:active { transform: scale(.94); }
/* 2.13.0 QR A5 & μέγεθος */
.qr-prev iframe { width: 100%; aspect-ratio: 148 / 230; border: 1px solid var(--line, #eee); border-radius: 12px; background: #eee; }
.zoom-row { display: flex; flex-wrap: wrap; gap: 6px; }
.zoom-row .btn { flex: 1 1 28%; padding: 10px 4px; }
.zoom-demo { padding: 10px; border: 1px dashed var(--line, #ddd); border-radius: 10px; }
