/* Touré Barbershop — light premium UI with glossy 3D surfaces in the logo colours.
   Brand: red #AB131C · blue #055DB7 · white. */
:root {
  --red: #AB131C; --red-l: #D63A43; --red-d: #6E0A10; --red-t: rgba(171, 19, 28, .1);
  --blue: #055DB7; --blue-l: #3D8BDB; --blue-d: #03417F; --blue-dd: #022B55; --blue-t: rgba(5, 93, 183, .09);
  --b900: #022B55; --b800: #03417F; --b600: #055DB7; --b500: #2C78C8; --b300: #6FA8E2; --b100: #D1E1F2;
  --bg: #F3F6FA; --bg2: #EAF0F7; --surface: #FFFFFF; --surface2: #F7F9FC; --surface3: #EEF3F9;
  --line: rgba(5, 93, 183, .13); --line2: rgba(5, 93, 183, .24);
  --text: #0B1D33; --text2: #34475F; --muted: #5E7088; --faint: #8B99AC;
  --ok: #17935A; --ok2: #0F6E42; --warn: #D08A12; --warn2: #8F5D07; --bad: #AB131C; --bad2: #6E0A10; --info: var(--blue);
  --ok-t: #0F7A45; --warn-t: #9A6200; --bad-t: #AB131C;
  --ghost-bg: linear-gradient(180deg, #FFFFFF, #EEF3F9); --ghost-tx: var(--blue-d);
  --r-sm: 12px; --r: 18px; --r-lg: 26px; --r-xl: 34px;
  --shadow: 0 18px 36px -22px rgba(2, 43, 85, .35), 0 2px 6px -2px rgba(2, 43, 85, .08);
  --glow: 0 18px 40px -14px rgba(5, 93, 183, .45);
  --font: 'Outfit', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font); color: var(--text); font-size: 16px; line-height: 1.45; min-height: 100vh;
  background:
    radial-gradient(1000px 560px at 92% -14%, rgba(5, 93, 183, .10), transparent 60%),
    radial-gradient(800px 480px at -10% 110%, rgba(171, 19, 28, .07), transparent 60%),
    var(--bg);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--blue); text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -.01em; }
h1 { font-size: clamp(26px, 3.4vw, 38px); }
h2 { font-size: clamp(20px, 2.4vw, 26px); }
h3 { font-size: 18px; }
p { margin: 0; }
.muted { color: var(--muted); } .faint { color: var(--faint); } .small { font-size: 13px; } .tiny { font-size: 11.5px; }
.num { font-variant-numeric: tabular-nums; }
.hidden { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
:focus-visible { outline: 3px solid var(--blue-l); outline-offset: 2px; border-radius: 10px; }
::selection { background: rgba(5, 93, 183, .22); }
::-webkit-scrollbar { width: 10px; height: 10px; } ::-webkit-scrollbar-thumb { background: #C3D3E6; border-radius: 10px; border: 2px solid var(--bg); }
.t-ok { color: var(--ok-t); } .t-bad { color: var(--bad-t); } .t-warn { color: var(--warn-t); }

/* brand stripe (barber pole) */
.pole-stripe { height: 6px; background: repeating-linear-gradient(-45deg, var(--red) 0 12px, #fff 12px 18px, var(--blue) 18px 30px, #fff 30px 36px); }

/* ───────── layout helpers ───────── */
.row { display: flex; align-items: center; gap: 12px; } .row.wrap { flex-wrap: wrap; } .row.between { justify-content: space-between; } .row.top { align-items: flex-start; }
.col { display: flex; flex-direction: column; gap: 12px; }
.grow { flex: 1; min-width: 0; }
.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.auto { grid-template-columns: repeat(auto-fill, minmax(var(--min, 220px), 1fr)); }
@media (max-width: 1100px) { .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .g2, .g3, .g4 { grid-template-columns: minmax(0, 1fr); } }
.stack > * + * { margin-top: 16px; }
.sep { height: 1px; background: var(--line); margin: 14px 0; border: 0; }

/* ───────── surfaces ───────── */
.card {
  position: relative; border-radius: var(--r-lg); padding: 20px;
  background: linear-gradient(180deg, #FFFFFF, #FBFCFE);
  border: 1px solid var(--line); box-shadow: var(--shadow), inset 0 1px 0 #fff;
}
.card.flat { background: var(--surface2); box-shadow: none; }
.card.tight { padding: 14px; }
.card h3 + * { margin-top: 12px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.panel-title { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 600; }

/* ───────── 3D buttons (glossy pills) ───────── */
.btn {
  --c1: #3D8BDB; --c2: #055DB7; --c3: #023F7D; --tx: #fff; --gl: rgba(5, 93, 183, .45);
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 22px; border-radius: 999px; border: 0; cursor: pointer; font-weight: 600; font-size: 16px; color: var(--tx);
  background: linear-gradient(180deg, var(--c1) 0%, var(--c2) 62%, var(--c2) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55), inset 0 -4px 10px rgba(0, 0, 0, .18), 0 5px 0 var(--c3), 0 14px 24px -10px var(--gl);
  transition: transform .12s var(--ease), box-shadow .12s var(--ease), filter .2s; user-select: none; white-space: nowrap; isolation: isolate;
  -webkit-tap-highlight-color: transparent;
}
.btn::before { content: ''; position: absolute; inset: 2px 10% auto 10%; height: 46%; border-radius: 999px; background: linear-gradient(180deg, rgba(255, 255, 255, .42), rgba(255, 255, 255, 0)); pointer-events: none; z-index: -1; }
.btn:hover { filter: brightness(1.06); }
.btn:active, .btn.pressed { transform: translateY(4px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), inset 0 -2px 6px rgba(0, 0, 0, .2), 0 1px 0 var(--c3), 0 6px 14px -8px var(--gl); }
.btn:disabled { filter: grayscale(.7) brightness(1.05); opacity: .6; cursor: not-allowed; transform: none; }
.btn .ic { width: 22px; height: 22px; filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .25)); }
.btn.sm { min-height: 40px; padding: 0 16px; font-size: 14.5px; gap: 8px; } .btn.sm .ic { width: 18px; height: 18px; }
.btn.xs { min-height: 34px; padding: 0 12px; font-size: 13.5px; gap: 6px; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), 0 3px 0 var(--c3), 0 8px 14px -8px var(--gl); } .btn.xs .ic { width: 16px; height: 16px; }
.btn.xs:active { transform: translateY(2px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .4), 0 1px 0 var(--c3); }
.btn.lg { min-height: 62px; padding: 0 30px; font-size: 18px; } .btn.lg .ic { width: 26px; height: 26px; }
.btn.block { width: 100%; }
.btn.red, .btn.accent { --c1: #D63A43; --c2: #AB131C; --c3: #6E0A10; --gl: rgba(171, 19, 28, .45); }
.btn.ok { --c1: #3CC17E; --c2: #17935A; --c3: #0D5E39; --gl: rgba(23, 147, 90, .4); }
.btn.bad { --c1: #D63A43; --c2: #AB131C; --c3: #6E0A10; --gl: rgba(171, 19, 28, .4); }
.btn.warn { --c1: #FFD27A; --c2: #E8A01F; --c3: #9A6200; --tx: #2B1A00; --gl: rgba(232, 160, 31, .35); }
.btn.light { --c1: #FFFFFF; --c2: #E3EDF8; --c3: #A9C3E0; --tx: var(--blue-d); --gl: rgba(5, 93, 183, .2); }
.btn.deep { --c1: #0B6BCB; --c2: #03417F; --c3: #022B55; --gl: rgba(3, 65, 127, .45); }
.btn.ghost {
  --c3: rgba(5, 93, 183, .22); --gl: transparent; color: var(--ghost-tx);
  background: var(--ghost-bg); box-shadow: inset 0 1px 0 #fff, inset 0 0 0 1px var(--line2), 0 4px 0 rgba(5, 93, 183, .16);
}
.btn.ghost::before { background: linear-gradient(180deg, rgba(255, 255, 255, .6), transparent); }
.btn.ghost.active { color: #fff; --c1: #3D8BDB; --c2: #055DB7; background: linear-gradient(180deg, var(--c1), var(--c2)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), 0 4px 0 #023F7D, 0 10px 20px -8px rgba(5, 93, 183, .5); }
.icon-btn { min-height: 44px; width: 44px; padding: 0; } .icon-btn.sm { min-height: 36px; width: 36px; } .icon-btn .ic { width: 20px; height: 20px; }
.linklike { background: none; border: 0; color: var(--blue); cursor: pointer; padding: 0; font-weight: 500; }

/* ───────── 3D orb icons ───────── */
.orb {
  --o1: #D1E1F2; --o2: #2C78C8; --o3: #03417F;
  position: relative; flex: none; width: 58px; height: 58px; border-radius: 20px; display: grid; place-items: center;
  background: radial-gradient(120% 120% at 28% 18%, #fff 0, var(--o1) 14%, var(--o2) 48%, var(--o3) 100%);
  box-shadow: inset 0 2px 1px rgba(255, 255, 255, .75), inset 0 -6px 12px rgba(2, 43, 85, .4), 0 10px 18px -8px rgba(2, 43, 85, .55);
}
.orb::after { content: ''; position: absolute; left: 14%; top: 7%; width: 46%; height: 26%; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 255, 255, .85), rgba(255, 255, 255, 0)); filter: blur(.5px); }
.orb .ic { width: 28px; height: 28px; color: #fff; filter: drop-shadow(0 2px 2px rgba(2, 43, 85, .45)); position: relative; z-index: 1; }
.orb.sm { width: 40px; height: 40px; border-radius: 14px; } .orb.sm .ic { width: 20px; height: 20px; }
.orb.xs { width: 30px; height: 30px; border-radius: 10px; } .orb.xs .ic { width: 16px; height: 16px; }
.orb.lg { width: 78px; height: 78px; border-radius: 26px; } .orb.lg .ic { width: 38px; height: 38px; }
.orb.red { --o1: #F6C9CC; --o2: #C8262F; --o3: #6E0A10; }
.orb.ok { --o1: #C9F2DC; --o2: #17935A; --o3: #0B4F30; }
.orb.bad { --o1: #F6C9CC; --o2: #C8262F; --o3: #6E0A10; }
.orb.warn { --o1: #FFF1CF; --o2: #E8A01F; --o3: #8A5A07; }
.orb.light { --o1: #ffffff; --o2: #D1E1F2; --o3: #6FA8E2; } .orb.light .ic { color: var(--blue-d); filter: none; }
.orb.deep { --o1: #6FA8E2; --o2: #03417F; --o3: #021B36; }
.ic { width: 20px; height: 20px; flex: none; display: inline-block; vertical-align: middle; }

/* ───────── big 3D tiles (reception home) ───────── */
.tiles { display: grid; gap: 18px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1100px) { .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .tiles { grid-template-columns: minmax(0, 1fr); } }
.tile {
  --t1: #2C78C8; --t2: #055DB7; --t3: #023F7D; --tx: #fff; --tg: rgba(5, 93, 183, .45);
  position: relative; overflow: hidden; border: 0; cursor: pointer; text-align: left; border-radius: var(--r-xl);
  min-height: 190px; padding: 22px; display: flex; flex-direction: column; justify-content: space-between; gap: 18px; color: var(--tx);
  background: linear-gradient(160deg, var(--t1) 0%, var(--t2) 70%, var(--t3) 100%);
  box-shadow: inset 0 1.5px 0 rgba(255, 255, 255, .55), inset 0 -10px 24px rgba(0, 0, 0, .18), 0 9px 0 var(--t3), 0 26px 40px -18px var(--tg);
  transition: transform .14s var(--ease), box-shadow .14s var(--ease);
}
.tile::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 55%; background: linear-gradient(180deg, rgba(255, 255, 255, .26), rgba(255, 255, 255, 0)); border-radius: var(--r-xl) var(--r-xl) 50% 50% / var(--r-xl) var(--r-xl) 18% 18%; pointer-events: none; }
.tile::after { content: ''; position: absolute; width: 180px; height: 180px; right: -50px; bottom: -70px; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 255, 255, .28), transparent); pointer-events: none; }
.tile:hover { transform: translateY(-3px); }
.tile:active { transform: translateY(7px); box-shadow: inset 0 1.5px 0 rgba(255, 255, 255, .45), inset 0 -6px 18px rgba(0, 0, 0, .2), 0 2px 0 var(--t3), 0 10px 20px -12px var(--tg); }
.tile .t-title { font-size: 22px; font-weight: 700; letter-spacing: .01em; text-transform: uppercase; line-height: 1.1; }
.tile .t-sub { font-size: 14px; opacity: .88; margin-top: 4px; }
.tile .t-badge { position: absolute; top: 18px; right: 18px; background: #fff; color: var(--red); font-weight: 700; border-radius: 999px; padding: 4px 12px; font-size: 14px; box-shadow: 0 4px 10px rgba(0, 0, 0, .2); }
.tile.c1 { --t1: #0B6BCB; --t2: #03417F; --t3: #021F3E; --tg: rgba(3, 65, 127, .5); }
.tile.c2 { --t1: #D63A43; --t2: #AB131C; --t3: #6E0A10; --tg: rgba(171, 19, 28, .45); }
.tile.c2 .orb { --o1: #fff; --o2: #D63A43; --o3: #6E0A10; }
.tile.c3 { --t1: #4B97E4; --t2: #055DB7; --t3: #023F7D; }
.tile.c4 { --t1: #FFFFFF; --t2: #EEF3F9; --t3: #B9CDE4; --tx: var(--blue-dd); --tg: rgba(5, 93, 183, .25); }
.tile.c4 .t-badge { background: var(--red); color: #fff; }
.tile.c4 .orb { --o1: #fff; --o2: #D63A43; --o3: #6E0A10; }
.mini-tiles { display: grid; gap: 14px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 900px) { .mini-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.mini-tile { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: var(--r-lg); cursor: pointer; border: 1px solid var(--line); text-align: left; color: var(--text);
  background: linear-gradient(180deg, #FFFFFF, #F2F6FB); box-shadow: inset 0 1px 0 #fff, 0 5px 0 rgba(5, 93, 183, .14), 0 16px 26px -18px rgba(2, 43, 85, .4); transition: transform .12s var(--ease); }
.mini-tile:active { transform: translateY(4px); box-shadow: inset 0 1px 0 #fff, 0 1px 0 rgba(5, 93, 183, .14); }
.mini-tile b { display: block; font-size: 16px; } .mini-tile span { font-size: 13px; color: var(--muted); }

/* ───────── stat cards ───────── */
.stat { position: relative; overflow: hidden; border-radius: var(--r-lg); padding: 18px 18px 16px; border: 1px solid var(--line);
  background: linear-gradient(170deg, #FFFFFF, #F5F8FC 70%);
  box-shadow: inset 0 1px 0 #fff, 0 5px 0 rgba(5, 93, 183, .1), 0 22px 36px -24px rgba(2, 43, 85, .45); }
.stat::after { content: ''; position: absolute; right: -40px; top: -40px; width: 140px; height: 140px; border-radius: 50%; background: radial-gradient(closest-side, rgba(5, 93, 183, .1), transparent); }
.stat .s-label { font-size: 13px; color: var(--text2); display: flex; align-items: center; gap: 8px; }
.stat .s-value { font-size: clamp(22px, 2.6vw, 30px); font-weight: 700; margin-top: 8px; letter-spacing: -.01em; font-variant-numeric: tabular-nums; color: var(--blue-dd); }
.stat .s-value small { font-size: 14px; font-weight: 500; color: var(--muted); margin-left: 4px; }
.stat .s-foot { font-size: 12.5px; color: var(--muted); margin-top: 6px; }
.stat.hl { background: linear-gradient(165deg, #2C78C8, #055DB7 55%, #03417F); border-color: transparent; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), 0 6px 0 #022B55, 0 22px 40px -16px rgba(5, 93, 183, .6); color: #fff; }
.stat.hl::after { background: radial-gradient(closest-side, rgba(255, 255, 255, .22), transparent); }
.stat.hl .s-value, .stat.hl .s-value small { color: #fff; }
.stat.hl .s-label, .stat.hl .s-foot { color: rgba(255, 255, 255, .88); }
.stat.okc .s-value { color: var(--ok-t); } .stat.badc .s-value { color: var(--bad-t); } .stat.warnc .s-value { color: var(--warn-t); }
/* tuile cliquable : toute la carte est un lien vers son détail */
a.stat { display: block; color: inherit; transition: transform .12s var(--ease), box-shadow .15s, border-color .15s; }
a.stat:hover { border-color: var(--line2); transform: translateY(-2px); box-shadow: inset 0 1px 0 #fff, 0 7px 0 rgba(5, 93, 183, .14), 0 26px 40px -22px rgba(2, 43, 85, .5); }
a.stat:active { transform: translateY(0); }
a.stat .s-go { position: absolute; top: 14px; right: 14px; opacity: .35; transition: opacity .15s, transform .15s; }
a.stat .s-go .ic { width: 18px; height: 18px; }
a.stat:hover .s-go { opacity: .9; transform: translateX(2px); }
a.stat.hl .s-go { color: #fff; }

/* ───────── forms ───────── */
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > label, .label { font-size: 13.5px; color: var(--text2); font-weight: 500; }
.input, select.input, textarea.input {
  width: 100%; min-height: 50px; padding: 12px 16px; border-radius: 16px; border: 1px solid var(--line2); outline: none;
  background: #fff; color: var(--text); font-size: 16px;
  box-shadow: inset 0 2px 5px rgba(2, 43, 85, .08); transition: border-color .15s, box-shadow .15s;
}
textarea.input { min-height: 96px; resize: vertical; line-height: 1.4; }
.input:focus { border-color: var(--blue); box-shadow: inset 0 2px 5px rgba(2, 43, 85, .06), 0 0 0 4px rgba(5, 93, 183, .16); }
.input::placeholder { color: var(--faint); }
select.input { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--blue) 50%), linear-gradient(135deg, var(--blue) 50%, transparent 50%), linear-gradient(180deg, #fff, #fff); background-position: calc(100% - 22px) 52%, calc(100% - 16px) 52%, 0 0; background-size: 6px 6px, 6px 6px, 100% 100%; background-repeat: no-repeat; padding-right: 40px; }
.input.sm { min-height: 40px; padding: 8px 12px; font-size: 15px; border-radius: 12px; }
.input-icon { position: relative; } .input-icon .ic { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--muted); } .input-icon .input { padding-left: 48px; }
.check { display: flex; align-items: center; gap: 12px; cursor: pointer; user-select: none; font-size: 15px; }
.check input { appearance: none; width: 26px; height: 26px; flex: none; border-radius: 9px; border: 1px solid var(--line2); background: #fff; box-shadow: inset 0 2px 4px rgba(2, 43, 85, .1); display: grid; place-items: center; cursor: pointer; }
.check input:checked { background: linear-gradient(180deg, #3D8BDB, #055DB7); border-color: transparent; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), 0 3px 0 #023F7D; }
.check input:checked::after { content: ''; width: 7px; height: 13px; border: solid #fff; border-width: 0 3px 3px 0; transform: rotate(45deg) translate(-1px, -1px); }
.switch { position: relative; width: 54px; height: 32px; flex: none; }
.switch input { appearance: none; width: 54px; height: 32px; border-radius: 999px; background: #CBD7E5; box-shadow: inset 0 2px 5px rgba(2, 43, 85, .25); cursor: pointer; margin: 0; transition: background .2s; }
.switch input::after { content: ''; position: absolute; top: 3px; left: 3px; width: 26px; height: 26px; border-radius: 50%; background: linear-gradient(180deg, #fff, #E6EDF6); box-shadow: 0 2px 4px rgba(2, 43, 85, .35); transition: transform .2s var(--ease); }
.switch input:checked { background: linear-gradient(180deg, #3D8BDB, #055DB7); } .switch input:checked::after { transform: translateX(22px); }

/* segmented choice tiles (payment, status, barber) */
.pay-badge { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--pb); flex: none; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 2px 4px rgba(2, 43, 85, .18); }
.pay-badge svg { width: 22px; height: 22px; display: block; }
.choices { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(var(--min, 140px), 1fr)); }
.choice {
  position: relative; display: flex; align-items: center; gap: 12px; padding: 14px; min-height: 64px; border-radius: 20px; cursor: pointer; text-align: left;
  border: 1px solid var(--line2); color: var(--text); background: linear-gradient(180deg, #FFFFFF, #F2F6FB);
  box-shadow: inset 0 1px 0 #fff, 0 4px 0 rgba(5, 93, 183, .14); transition: transform .1s var(--ease), box-shadow .1s, border-color .15s;
}
.choice:active { transform: translateY(3px); box-shadow: inset 0 1px 0 #fff, 0 1px 0 rgba(5, 93, 183, .14); }
.choice.on { color: #fff; border-color: transparent; background: linear-gradient(170deg, #3D8BDB, #055DB7 70%, #03417F); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), 0 4px 0 #022B55, 0 14px 26px -12px rgba(5, 93, 183, .6); }
.choice.on .muted, .choice.on .faint, .choice.on span.s { color: rgba(255, 255, 255, .85); }
.choice.dim { opacity: .5; }
.choice .tick { position: absolute; top: 8px; right: 8px; width: 22px; height: 22px; border-radius: 50%; background: var(--red); color: #fff; display: none; place-items: center; box-shadow: 0 2px 6px rgba(110, 10, 16, .4); }
.choice .tick .ic { width: 14px; height: 14px; }
.choice.on .tick { display: grid; }
.choice b { display: block; font-size: 15.5px; } .choice span.s { display: block; font-size: 12.5px; color: var(--muted); }

/* ───────── chips, badges, avatars ───────── */
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line2); background: #fff; color: var(--text2); font-size: 14px; cursor: pointer; white-space: nowrap; transition: all .15s; }
.chip.on { background: linear-gradient(180deg, #3D8BDB, #055DB7); color: #fff; border-color: transparent; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), 0 3px 0 #023F7D; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 10px; scrollbar-width: none; } .chips::-webkit-scrollbar { display: none; }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 600; white-space: nowrap; background: var(--blue-t); color: var(--blue-d); border: 1px solid rgba(5, 93, 183, .22); }
.badge::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.badge.plain::before { display: none; }
.badge.ok { background: rgba(23, 147, 90, .1); color: var(--ok-t); border-color: rgba(23, 147, 90, .28); }
.badge.bad { background: var(--red-t); color: var(--bad-t); border-color: rgba(171, 19, 28, .28); }
.badge.warn { background: rgba(232, 160, 31, .14); color: var(--warn-t); border-color: rgba(232, 160, 31, .35); }
.badge.grey { background: rgba(94, 112, 136, .1); color: var(--muted); border-color: rgba(94, 112, 136, .22); }
.badge.white { background: #fff; color: var(--blue-dd); border-color: var(--line); }
.avatar { flex: none; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; color: #fff; font-size: 16px; overflow: hidden;
  background: radial-gradient(120% 120% at 30% 20%, #E8F0F9 0, var(--ac, #055DB7) 45%, #022B55 100%); box-shadow: inset 0 2px 1px rgba(255, 255, 255, .5), 0 0 0 2px #fff, 0 6px 14px -6px rgba(2, 43, 85, .6); text-shadow: 0 1px 2px rgba(0, 0, 0, .35); }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar.lg { width: 76px; height: 76px; font-size: 26px; } .avatar.sm { width: 34px; height: 34px; font-size: 13px; }
.status-dot { width: 12px; height: 12px; border-radius: 50%; flex: none; box-shadow: 0 0 0 3px color-mix(in srgb, currentColor 18%, transparent); background: currentColor; }
.st-available { color: var(--ok); } .st-busy { color: var(--blue); } .st-break { color: var(--warn); } .st-absent, .st-off, .st-unavailable { color: var(--red); }
.price { font-weight: 700; font-variant-numeric: tabular-nums; color: var(--red); white-space: nowrap; }
.price small { font-weight: 500; font-size: .7em; color: var(--muted); margin-left: 3px; }

/* ───────── tables & lists ───────── */
.table-wrap { overflow-x: auto; border-radius: var(--r); border: 1px solid var(--line); background: #fff; }
table.t { width: 100%; border-collapse: collapse; font-size: 14.5px; min-width: 560px; }
table.t th { text-align: left; font-weight: 600; color: var(--muted); font-size: 12.5px; text-transform: uppercase; letter-spacing: .06em; padding: 12px 14px; background: var(--surface3); position: sticky; top: 0; border-bottom: 1px solid var(--line); }
table.t td { padding: 12px 14px; border-bottom: 1px solid rgba(5, 93, 183, .08); vertical-align: middle; }
table.t tr:last-child td { border-bottom: 0; }
table.t tbody tr { transition: background .12s; } table.t tbody tr:hover { background: rgba(5, 93, 183, .04); }
table.t tr.click { cursor: pointer; }
table.t td.r, table.t th.r { text-align: right; white-space: nowrap; }
table.t th { white-space: nowrap; } table.t td, table.t th { padding-left: 12px; padding-right: 12px; }
table.t tfoot td { font-weight: 700; background: var(--surface3); border-top: 1px solid var(--line2); }
.list { display: flex; flex-direction: column; gap: 10px; }
.item { display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: var(--r); border: 1px solid var(--line); background: #fff; }
.item.click { cursor: pointer; transition: transform .1s, border-color .15s, box-shadow .15s; } .item.click:hover { border-color: var(--line2); box-shadow: 0 8px 18px -12px rgba(2, 43, 85, .35); } .item.click:active { transform: scale(.995); }
.empty { text-align: center; padding: 36px 16px; color: var(--muted); }
.empty .orb { margin: 0 auto 14px; }

/* ───────── modal, sheet, toast ───────── */
.overlay { position: fixed; inset: 0; z-index: 100; background: rgba(2, 27, 54, .45); backdrop-filter: blur(6px); display: flex; align-items: center; justify-content: center; padding: 16px; animation: fade .18s ease; }
.modal { width: min(640px, 100%); max-height: calc(100vh - 32px); overflow: auto; border-radius: var(--r-xl); padding: 24px; animation: pop .22s var(--ease);
  background: #fff; border: 1px solid var(--line); border-top: 5px solid var(--blue); box-shadow: 0 40px 80px -24px rgba(2, 27, 54, .55); }
.modal.wide { width: min(980px, 100%); }
.modal-head { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; } .modal-head h2 { flex: 1; font-size: 22px; }
.modal-foot { display: flex; gap: 12px; justify-content: flex-end; margin-top: 22px; flex-wrap: wrap; }
@media (max-width: 640px) { .overlay { align-items: flex-end; padding: 0; } .modal { border-radius: var(--r-xl) var(--r-xl) 0 0; max-height: 92vh; padding: 20px 16px; } .modal-foot .btn { flex: 1; } }
@keyframes fade { from { opacity: 0; } } @keyframes pop { from { opacity: 0; transform: translateY(14px) scale(.98); } }
.toasts { position: fixed; z-index: 200; left: 50%; bottom: 22px; transform: translateX(-50%); display: flex; flex-direction: column; gap: 10px; align-items: center; pointer-events: none; width: min(520px, calc(100% - 32px)); }
.toast { pointer-events: auto; display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-radius: 18px; width: 100%; font-weight: 500; color: #fff;
  background: linear-gradient(180deg, #0A3768, #022B55); border: 1px solid rgba(255, 255, 255, .12); box-shadow: 0 20px 40px -12px rgba(2, 27, 54, .6); animation: pop .25s var(--ease); }
.toast.ok { box-shadow: inset 4px 0 0 #3CC17E, 0 20px 40px -12px rgba(2, 27, 54, .6); } .toast.bad { background: linear-gradient(180deg, #C21F28, #8E0F16); }
.spinner { width: 22px; height: 22px; border-radius: 50%; border: 3px solid rgba(5, 93, 183, .18); border-top-color: var(--red); animation: spin .8s linear infinite; }
.btn .spinner, .toast .spinner { border-color: rgba(255, 255, 255, .3); border-top-color: #fff; }
@keyframes spin { to { transform: rotate(360deg); } }
.skeleton { border-radius: 14px; background: linear-gradient(90deg, #E6EDF6, #F4F7FB, #E6EDF6); background-size: 200% 100%; animation: sh 1.3s infinite; min-height: 20px; }
@keyframes sh { to { background-position: -200% 0; } }

/* ───────── staff shell ───────── */
.shell { display: grid; grid-template-columns: 270px minmax(0, 1fr); min-height: 100vh; }
.side {
  --text: #FFFFFF; --text2: #D6E4F4; --muted: #9FB8D6; --faint: #7F9CC0; --line: rgba(255, 255, 255, .12); --line2: rgba(255, 255, 255, .22);
  --ghost-bg: rgba(255, 255, 255, .1); --ghost-tx: #fff;
  position: sticky; top: 0; height: 100vh; overflow-y: auto; padding: 20px 14px; color: var(--text);
  background: radial-gradient(500px 300px at 0% 0%, rgba(61, 139, 219, .35), transparent 70%), linear-gradient(180deg, #04478D, #022B55 70%, #021F3E);
  display: flex; flex-direction: column; gap: 4px; box-shadow: inset -6px 0 0 -2px var(--red);
}
.brand { display: flex; align-items: center; gap: 12px; padding: 6px 8px 18px; }
.brand-logo { width: 44px; height: 44px; border-radius: 14px; overflow: hidden; flex: none; display: grid; place-items: center; color: var(--blue); background: #fff; box-shadow: inset 0 0 0 1px rgba(5, 93, 183, .15), 0 8px 16px -8px rgba(2, 43, 85, .6); }
.brand-logo img { width: 100%; height: 100%; object-fit: contain; padding: 3px; }
.brand-logo .ic { width: 60%; height: 60%; }
.brand b { font-size: 17px; display: block; line-height: 1.15; } .brand span { font-size: 12px; color: var(--muted); }
.brand-wide { display: block; background: #fff; border-radius: 18px; padding: 10px 12px; margin: 0 4px 14px; box-shadow: 0 10px 22px -12px rgba(0, 0, 0, .55); }
.brand-wide img { width: 100%; height: auto; max-height: 96px; object-fit: contain; }
.nav-group { font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); padding: 16px 12px 6px; font-weight: 600; }
.nav-link { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; color: var(--text2); font-weight: 500; font-size: 15px; transition: background .12s, color .12s; position: relative; }
.nav-link:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.nav-link.on { color: #fff; background: linear-gradient(90deg, rgba(255, 255, 255, .2), rgba(255, 255, 255, .05)); box-shadow: inset 4px 0 0 var(--red); }
.nav-link .ic { width: 20px; height: 20px; color: #9CC4EE; }
.nav-link.on .ic { color: #fff; }
.nav-link .count { margin-left: auto; background: var(--red); color: #fff; font-size: 12px; font-weight: 700; padding: 1px 8px; border-radius: 999px; box-shadow: 0 0 0 2px rgba(255, 255, 255, .25); }
.main { min-width: 0; display: flex; flex-direction: column; }
.topbar { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 12px; padding: 14px 28px; background: rgba(255, 255, 255, .86); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.topbar .title { flex: 1; min-width: 0; } .topbar .title h1 { font-size: 22px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--blue-dd); } .topbar .title .muted { font-size: 13px; }
.page { padding: 26px 28px 110px; width: 100%; max-width: 1480px; margin: 0 auto; }
.demo-banner { background: repeating-linear-gradient(135deg, #FFF4D6 0 12px, #FFEBB8 12px 24px); color: #6B4500; border-bottom: 1px solid rgba(208, 138, 18, .35); padding: 7px 16px; text-align: center; font-size: 13px; font-weight: 600; letter-spacing: .02em; }
.bottom-nav { display: none; }
.menu-btn { display: none; }
@media (max-width: 980px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .side { position: fixed; inset: 0 auto 0 0; width: 290px; z-index: 90; transform: translateX(-105%); transition: transform .25s var(--ease); box-shadow: 30px 0 60px rgba(2, 27, 54, .45); }
  .side.open { transform: none; }
  .menu-btn { display: inline-flex; }
  .topbar { padding: 12px 16px; } .page { padding: 18px 16px 120px; }
  .bottom-nav { display: flex; position: fixed; z-index: 40; left: 10px; right: 10px; bottom: 10px; padding: 8px; gap: 4px; border-radius: 26px; background: rgba(255, 255, 255, .95); backdrop-filter: blur(14px); border: 1px solid var(--line2); box-shadow: 0 18px 36px -10px rgba(2, 43, 85, .4); }
  .bottom-nav a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 8px 4px; border-radius: 18px; color: var(--muted); font-size: 11.5px; font-weight: 500; }
  .bottom-nav a.on { color: #fff; background: linear-gradient(180deg, #3D8BDB, #055DB7); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), 0 3px 0 #023F7D; }
  .bottom-nav .ic { width: 22px; height: 22px; }
}
.scrim { position: fixed; inset: 0; z-index: 80; background: rgba(2, 27, 54, .4); }

/* notifications panel */
.bell { position: relative; } .bell .dot { position: absolute; top: -4px; right: -4px; min-width: 22px; height: 22px; border-radius: 999px; background: var(--red); color: #fff; font-size: 12px; font-weight: 700; display: grid; place-items: center; padding: 0 6px; box-shadow: 0 0 0 3px #fff; }
.npanel { position: fixed; z-index: 95; top: 70px; right: 16px; width: min(420px, calc(100vw - 32px)); max-height: calc(100vh - 100px); overflow: auto; border-radius: var(--r-lg); padding: 14px; background: #fff; border: 1px solid var(--line2); box-shadow: 0 30px 60px -20px rgba(2, 27, 54, .5); animation: pop .2s var(--ease); }
.notif { display: flex; gap: 12px; padding: 12px; border-radius: 16px; cursor: pointer; }
.notif:hover { background: rgba(5, 93, 183, .05); }
.notif.unread { background: rgba(5, 93, 183, .08); }
.prio { width: 10px; height: 10px; border-radius: 50%; margin-top: 6px; flex: none; }
.prio.p1 { background: var(--red); box-shadow: 0 0 0 3px var(--red-t); } .prio.p2 { background: var(--blue); box-shadow: 0 0 0 3px var(--blue-t); } .prio.p3 { background: var(--faint); }

/* ───────── new service wizard ───────── */
.wizard { display: grid; grid-template-columns: minmax(0, 1fr) clamp(300px, 30vw, 380px); gap: 22px; align-items: start; }
@media (max-width: 980px) { .wizard { grid-template-columns: minmax(0, 1fr); } }
.step-card { counter-increment: step; }
.step-h { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.step-n { width: 34px; height: 34px; border-radius: 12px; display: grid; place-items: center; font-weight: 700; color: #fff; background: linear-gradient(180deg, #3D8BDB, #055DB7); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), 0 3px 0 #023F7D; }
.step-n.done { background: linear-gradient(180deg, #3CC17E, #17935A); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), 0 3px 0 #0D5E39; }
.summary { position: sticky; top: 90px; border-top: 5px solid var(--red); }
.sum-line { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px dashed rgba(5, 93, 183, .18); }
.total-big { font-size: 40px; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; color: var(--blue-dd); }
.svc-tile { position: relative; padding: 14px; border-radius: 20px; cursor: pointer; text-align: left; border: 1px solid var(--line2); color: var(--text); min-height: 96px; display: flex; flex-direction: column; justify-content: space-between; gap: 8px;
  background: linear-gradient(180deg, #FFFFFF, #F2F6FB); box-shadow: inset 0 1px 0 #fff, 0 4px 0 rgba(5, 93, 183, .14); transition: transform .1s; }
.svc-tile:active { transform: translateY(3px); }
.svc-tile.on { color: #fff; border-color: transparent; background: linear-gradient(170deg, #3D8BDB, #055DB7 70%, #03417F); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), 0 4px 0 #022B55; }
.svc-tile .n { font-weight: 600; font-size: 15px; line-height: 1.2; } .svc-tile .p { font-weight: 700; font-size: 18px; color: var(--red); } .svc-tile .d { font-size: 12.5px; color: var(--muted); }
.svc-tile.on .p { color: #fff; } .svc-tile.on .d { color: rgba(255, 255, 255, .85); }
.qty { position: absolute; top: 10px; right: 10px; background: var(--red); color: #fff; font-weight: 700; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 14px; box-shadow: 0 2px 6px rgba(110, 10, 16, .4); }
.suggest { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 20; border-radius: 18px; overflow: hidden; background: #fff; border: 1px solid var(--line2); box-shadow: 0 20px 40px -12px rgba(2, 27, 54, .4); }
.suggest .item { border-radius: 0; border: 0; border-bottom: 1px solid var(--line); cursor: pointer; }
.suggest .item:hover, .suggest .item.hi { background: rgba(5, 93, 183, .07); }

/* ───────── calendar ───────── */
.cal { position: relative; display: grid; border-radius: var(--r); border: 1px solid var(--line); overflow: auto; background: #fff; max-height: calc(100vh - 230px); }
.cal-head { position: sticky; top: 0; z-index: 3; display: grid; background: var(--surface3); border-bottom: 1px solid var(--line); }
.cal-head > div { padding: 10px; display: flex; align-items: center; gap: 10px; font-weight: 600; border-left: 1px solid var(--line); min-width: 0; }
.cal-body { position: relative; display: grid; }
.cal-times { position: relative; }
.cal-time { position: absolute; left: 0; right: 0; font-size: 12px; color: var(--faint); padding: 0 8px; transform: translateY(-7px); text-align: right; }
.cal-col { position: relative; border-left: 1px solid var(--line); background-image: linear-gradient(rgba(5, 93, 183, .08) 1px, transparent 1px); }
.cal-off { position: absolute; left: 0; right: 0; background: repeating-linear-gradient(135deg, rgba(2, 43, 85, .05) 0 8px, transparent 8px 16px); pointer-events: none; }
.cal-ev { position: absolute; left: 5px; right: 5px; border-radius: 12px; padding: 6px 9px; font-size: 12.5px; overflow: hidden; cursor: pointer; color: #fff; border: 1px solid rgba(255, 255, 255, .4);
  background: linear-gradient(170deg, var(--ec, #2C78C8), #03417F); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .4), 0 6px 12px -6px rgba(2, 43, 85, .6); line-height: 1.25; transition: transform .1s; }
.cal-ev:hover { transform: scale(1.01); z-index: 2; }
.cal-ev b { display: block; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal-ev.s-cancelled, .cal-ev.s-no_show { color: var(--red-d); background: repeating-linear-gradient(135deg, rgba(171, 19, 28, .12) 0 6px, rgba(171, 19, 28, .05) 6px 12px); border-color: rgba(171, 19, 28, .35); opacity: .85; }
.cal-ev.s-done { background: linear-gradient(170deg, #2BAA6B, #0F6E42); }
.cal-ev.s-arrived, .cal-ev.s-in_progress { background: linear-gradient(170deg, #FFD27A, #E8A01F); color: #2B1A00; }
.cal-ev.s-pending { background: linear-gradient(170deg, #8A9BB3, #5E7088); }
.cal-now { position: absolute; left: 0; right: 0; height: 2px; background: var(--red); z-index: 2; pointer-events: none; }
.cal-now::before { content: ''; position: absolute; left: -5px; top: -4px; width: 10px; height: 10px; border-radius: 50%; background: var(--red); }

/* ───────── charts ───────── */
.chart { width: 100%; height: auto; display: block; overflow: visible; }
.chart text { fill: var(--muted); font-size: 11px; font-family: var(--font); }
.chart .grid-l { stroke: rgba(5, 93, 183, .1); }
.chart .donut-hole { fill: #fff; } .chart .donut-ring { stroke: rgba(5, 93, 183, .1); } .chart text.donut-total { fill: var(--blue-dd); }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 13px; color: var(--text2); }
.legend i { display: inline-block; width: 12px; height: 12px; border-radius: 4px; margin-right: 6px; vertical-align: -1px; }
.bars-h .bar-row { display: grid; grid-template-columns: 130px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 6px 0; font-size: 14px; }
.bar-track { height: 14px; border-radius: 999px; background: #E6EDF6; box-shadow: inset 0 2px 4px rgba(2, 43, 85, .12); overflow: hidden; }
.bar-fill { height: 100%; border-radius: 999px; background: linear-gradient(90deg, #03417F, #055DB7 50%, #6FA8E2); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45); }
.chart-tip { position: fixed; z-index: 300; pointer-events: none; padding: 8px 12px; border-radius: 12px; color: #fff; background: #022B55; border: 1px solid rgba(255, 255, 255, .15); font-size: 13px; box-shadow: 0 12px 24px -8px rgba(2, 27, 54, .5); }

/* ───────── client app ───────── */
.c-wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px 140px; }
.c-top { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 12px; padding: 12px 16px; background: rgba(255, 255, 255, .9); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); box-shadow: 0 4px 0 -1px transparent; }
.c-top::after { content: ''; position: absolute; left: 0; right: 0; bottom: -4px; height: 4px; background: repeating-linear-gradient(-45deg, var(--red) 0 10px, #fff 10px 14px, var(--blue) 14px 24px, #fff 24px 28px); }
.c-top .brand-logo { display: block; width: auto; height: auto; border-radius: 0; padding: 0; background: none; box-shadow: none; }
.c-top .brand-logo img { width: auto; height: 42px; max-width: none; padding: 0; }
.hero {
  --text: #fff; --text2: #E3EEFA; --muted: #C2D6EE; --faint: #A5C0E0; --line: rgba(255, 255, 255, .2); --line2: rgba(255, 255, 255, .3);
  --ghost-bg: rgba(255, 255, 255, .14); --ghost-tx: #fff;
  position: relative; overflow: hidden; border-radius: 0 0 var(--r-xl) var(--r-xl); margin: 4px -16px 0; padding: 46px 22px 34px; min-height: 360px; display: flex; flex-direction: column; justify-content: flex-end; color: #fff;
  background: radial-gradient(70% 90% at 85% 10%, rgba(111, 168, 226, .5), transparent 60%), radial-gradient(50% 70% at 0% 100%, rgba(171, 19, 28, .45), transparent 70%), linear-gradient(160deg, #055DB7, #03417F 55%, #021F3E);
}
.hero.has-cover { background-size: cover; background-position: center; }
.hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(2, 31, 62, 0) 30%, rgba(2, 31, 62, .82)); pointer-events: none; }
.hero > * { position: relative; z-index: 1; }
.hero-art { position: absolute; z-index: 0; right: -10px; top: 0; height: 100%; width: auto; max-width: 50%; opacity: .95; pointer-events: none; }
.hero h1 { font-size: clamp(32px, 6vw, 56px); line-height: 1.02; max-width: 640px; }
.hero p { color: var(--text2); max-width: 520px; margin-top: 10px; font-size: 17px; }
.hero .tagline { display: inline-block; margin-top: 12px; font-style: italic; font-weight: 500; letter-spacing: .02em; color: #fff; border-left: 4px solid var(--red-l); padding-left: 10px; }
.hero .cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.info-strip { display: grid; gap: 14px; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 20px; }
@media (max-width: 760px) { .info-strip { grid-template-columns: minmax(0, 1fr); } .hero-art { opacity: .35; max-width: 70%; } }
.svc-card { overflow: hidden; border-radius: var(--r-lg); border: 1px solid var(--line); background: #fff; box-shadow: var(--shadow); display: flex; flex-direction: column; transition: transform .15s var(--ease), box-shadow .15s; }
.svc-card:hover { transform: translateY(-3px); box-shadow: 0 24px 40px -22px rgba(2, 43, 85, .5); }
.svc-photo { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: radial-gradient(80% 80% at 70% 20%, rgba(111, 168, 226, .55), transparent 60%), linear-gradient(160deg, #055DB7, #022B55); display: grid; place-items: center; }
.svc-photo img { width: 100%; height: 100%; object-fit: cover; }
.svc-photo .ph { width: 58%; opacity: .95; }
.svc-photo .dur { position: absolute; left: 12px; bottom: 12px; color: var(--blue-dd); background: rgba(255, 255, 255, .92); backdrop-filter: blur(6px); border-radius: 999px; padding: 4px 10px; font-size: 13px; font-weight: 600; display: flex; gap: 6px; align-items: center; }
.svc-body { padding: 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.svc-body .price { font-size: 24px; }
.cart-bar {
  --text: #fff; --text2: #E3EEFA; --muted: #C2D6EE; --line: rgba(255, 255, 255, .2);
  position: fixed; z-index: 50; left: 50%; transform: translateX(-50%); bottom: 16px; width: min(720px, calc(100% - 24px)); display: flex; align-items: center; gap: 14px; padding: 12px 12px 12px 20px; border-radius: 28px; color: #fff;
  background: linear-gradient(170deg, #2C78C8, #055DB7 60%, #03417F); border: 1px solid rgba(255, 255, 255, .3); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), 0 8px 0 #022B55, 0 30px 50px -14px rgba(5, 93, 183, .55); animation: pop .3s var(--ease); }
.cart-bar .price { color: #fff; } .cart-bar .price small { color: var(--text2); }
.step-dots { display: flex; gap: 6px; } .step-dots i { width: 28px; height: 6px; border-radius: 999px; background: rgba(5, 93, 183, .16); } .step-dots i.on { background: linear-gradient(90deg, var(--red), var(--blue)); }
.slot-grid { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); }
.slot { min-height: 50px; border-radius: 16px; border: 1px solid var(--line2); background: linear-gradient(180deg, #FFFFFF, #F2F6FB); color: var(--text); font-weight: 600; cursor: pointer; box-shadow: inset 0 1px 0 #fff, 0 3px 0 rgba(5, 93, 183, .14); font-variant-numeric: tabular-nums; font-size: 16px; }
.slot.on { color: #fff; background: linear-gradient(170deg, #D63A43, #AB131C); border-color: transparent; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), 0 3px 0 #6E0A10; }
.day-pill { flex: none; width: 74px; padding: 10px 6px; border-radius: 20px; text-align: center; border: 1px solid var(--line2); cursor: pointer; background: linear-gradient(180deg, #FFFFFF, #F2F6FB); box-shadow: 0 3px 0 rgba(5, 93, 183, .14); color: var(--text); }
.day-pill b { display: block; font-size: 22px; } .day-pill span { font-size: 12px; color: var(--muted); text-transform: capitalize; }
.day-pill.on { color: #fff; background: linear-gradient(170deg, #3D8BDB, #055DB7); border-color: transparent; box-shadow: 0 3px 0 #023F7D; } .day-pill.on span { color: #fff; }
.day-pill.full { opacity: .4; cursor: not-allowed; }
.ticket { text-align: center; padding: 30px 20px; border-radius: var(--r-xl); color: #fff; background: linear-gradient(170deg, #2C78C8, #055DB7 60%, #03417F); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), 0 8px 0 #022B55, 0 30px 50px -14px rgba(5, 93, 183, .55); border-bottom: 6px solid var(--red); }
.ticket .n { font-size: 96px; font-weight: 800; line-height: 1; letter-spacing: -.03em; text-shadow: 0 6px 20px rgba(0, 0, 0, .3); }
.ticket .muted, .ticket .faint { color: rgba(255, 255, 255, .85); }
.foot { margin-top: 50px; padding: 26px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; text-align: center; }

/* ───────── login / setup ───────── */
.login-logo { display: block; width: min(300px, 80%); height: auto; margin: 0 auto 8px; }
.login-tagline { text-align: center; font-style: italic; color: var(--red); font-weight: 500; letter-spacing: .02em; margin-bottom: 18px; }

/* ───────── TV queue screen (dark blue for legibility from far away) ───────── */
.tv {
  --text: #fff; --text2: #E3EEFA; --muted: #A9C3E3; --faint: #86A6CF; --line: rgba(255, 255, 255, .14); --line2: rgba(255, 255, 255, .26);
  min-height: 100vh; padding: 3vw; display: grid; grid-template-rows: auto 1fr auto; gap: 2.5vw; color: #fff;
  background: radial-gradient(900px 600px at 90% -10%, rgba(61, 139, 219, .45), transparent 60%), radial-gradient(700px 500px at -10% 110%, rgba(171, 19, 28, .35), transparent 60%), linear-gradient(160deg, #03417F, #021F3E);
}
.tv .brand-logo { display: block; width: auto !important; height: auto !important; padding: .4vw .9vw; border-radius: 1vw; }
.tv .brand-logo img { width: auto; height: 5vw; max-width: none; padding: 0; }
.tv .chip { background: rgba(255, 255, 255, .1); color: #fff; border-color: rgba(255, 255, 255, .2); }
.push-invite { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 60; display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 18px; background: #fff; border: 1px solid var(--line2); box-shadow: 0 18px 40px -18px rgba(2, 43, 85, .5); }
.push-invite .grow b { font-size: 15px; }
@media (max-width: 640px) { .push-invite { left: 8px; right: 8px; bottom: 8px; padding: 10px 12px; } }
.tv-ticker { position: fixed; left: 0; right: 0; bottom: 0; height: 8vh; min-height: 56px; display: flex; align-items: center; overflow: hidden; z-index: 40; background: linear-gradient(90deg, #021B36, #022B55 50%, #021B36); border-top: 3px solid rgba(255, 255, 255, .22); box-shadow: 0 -10px 30px rgba(0, 0, 0, .28); }
.tv-ticker .track { display: inline-flex; white-space: nowrap; will-change: transform; animation: tv-marquee var(--dur, 45s) linear infinite; }
.tv-ticker .track > span { padding-right: 8vw; font-size: 3.1vh; font-weight: 700; letter-spacing: .01em; color: #fff; }
@keyframes tv-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
body.has-ticker .tv { padding-bottom: 10vh; }
.tv-sound { position: fixed; left: 2vw; bottom: calc(8vh + 2vh); z-index: 45; display: inline-flex; align-items: center; gap: 10px; padding: 12px 18px; border: 1px solid rgba(255, 255, 255, .35); border-radius: 999px; background: rgba(2, 27, 54, .82); color: #fff; font: inherit; font-size: 1.6vh; font-weight: 700; cursor: pointer; backdrop-filter: blur(8px); }
.tv-sound .ic { width: 2vh; height: 2vh; }
.tv-sound:hover { background: rgba(5, 93, 183, .9); }
@media (prefers-reduced-motion: reduce) { .tv-ticker .track { animation-duration: 120s; } }
.tv-now { display: grid; gap: 1.6vw; grid-template-columns: repeat(auto-fit, minmax(22vw, 1fr)); }
.tv-card { border-radius: 2vw; padding: 2vw; color: #fff; background: linear-gradient(170deg, #D63A43, #AB131C 70%); box-shadow: inset 0 2px 0 rgba(255, 255, 255, .45), 0 1vw 0 #5A080D; }
.tv-card .n { font-size: 6vw; font-weight: 800; line-height: 1; }
.tv-card .n .ic { width: 4.2vw; height: 4.2vw; }
.tv-list .tv-row { display: flex; align-items: center; gap: 2vw; padding: 1.2vw 1.6vw; border-radius: 1.4vw; background: rgba(255, 255, 255, .08); border: 1px solid var(--line); margin-bottom: 1vw; font-size: 2vw; }
.tv-list .tv-row.first { background: #fff; color: var(--blue-dd); border-color: #fff; }
.tv-list .tv-row.first .muted { color: var(--muted); }
.tv-row .n { font-size: 2.6vw; font-weight: 800; width: 7vw; color: #9CC4EE; }
.tv-row.first .n { color: var(--red); }
.tv-row.first .muted { color: #5E7088 !important; }

/* print */
@media print {
  body { background: #fff !important; color: #000; }
  .no-print { display: none !important; }
}

/* ───────── espace client : bonus, parrainage, notifications ───────── */.me-head {
  display: flex; align-items: center; gap: 16px; margin: 22px 0 6px; padding: 20px 22px;
  border-radius: var(--r-lg); background: linear-gradient(180deg, #FFFFFF, #F7FAFE);
  border: 1px solid var(--line); box-shadow: var(--shadow), inset 0 1px 0 #fff;
}
.avatar.xl { width: 64px; height: 64px; font-size: 22px; }
.points-pill {
  flex: none; display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-width: 92px; padding: 10px 16px; border-radius: 18px; color: #fff;
  background: linear-gradient(170deg, #3D8BDB, #055DB7 60%, #03417F);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), 0 5px 0 #022B55, 0 16px 26px -16px rgba(5, 93, 183, .7);
}
.points-pill b { font-size: 24px; line-height: 1.05; letter-spacing: -.02em; }
.points-pill span { font-size: 10.5px; text-transform: uppercase; letter-spacing: .14em; opacity: .9; }
.me-tabs { margin-top: 12px; }

.bonus-hero { color: #fff; background: linear-gradient(165deg, #2C78C8, #055DB7 55%, #022B55); border: none; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .4), 0 6px 0 #021F3D, 0 26px 40px -20px rgba(2, 43, 85, .65); }
.bonus-hero h3, .bonus-hero b, .bonus-hero .bonus-next { color: #fff; }
.bonus-hero .tiny, .bonus-hero .small, .bonus-hero .muted { color: rgba(255, 255, 255, .82); }
.bonus-num { font-size: 54px; font-weight: 800; line-height: 1; letter-spacing: -.03em; margin: 14px 0 4px; text-shadow: 0 8px 22px rgba(0, 0, 0, .28); }
.bonus-num small { font-size: 15px; font-weight: 600; margin-left: 8px; letter-spacing: 0; opacity: .85; }
.bonus-next { margin-top: 12px; }
.progress { position: relative; height: 10px; border-radius: 999px; background: rgba(255, 255, 255, .22); margin: 8px 0 6px; overflow: hidden; }
.progress > i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #FFD166, #fff); box-shadow: 0 0 12px rgba(255, 255, 255, .6); transition: width .5s var(--ease); }

.qr-card {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px;
  padding: 18px; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line);
  box-shadow: var(--shadow), inset 0 1px 0 #fff;
}
.qr-wrap { position: relative; width: 100%; max-width: 260px; aspect-ratio: 1; }
.qr-code { width: 100%; height: 100%; display: grid; place-items: center; padding: 10px; background: #fff; border-radius: 20px; border: 1px solid var(--line); }
.qr-code svg { display: block; width: 100%; height: 100%; }
.qr-logo {
  position: absolute; left: 50%; top: 50%; width: 17%; height: 17%; transform: translate(-50%, -50%);
  object-fit: contain; padding: 5px; background: #fff; border-radius: 50%;
  box-shadow: 0 0 0 4px #fff, 0 4px 12px rgba(2, 43, 85, .18);
}
.qr-title { font-size: 15px; margin-top: 4px; }
.ref-code {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; padding: 12px 16px;
  border-radius: 14px; border: 1.5px dashed var(--line2); background: var(--surface2);
}
.ref-code span { font-size: 11.5px; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); }
.ref-code b { font-size: 22px; letter-spacing: .18em; color: var(--blue-d); font-variant-numeric: tabular-nums; }
.ref-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 16px; }
.ref-stats > div { text-align: center; padding: 10px 6px; border-radius: 14px; background: var(--surface2); border: 1px solid var(--line); }
.ref-stats b { display: block; font-size: 20px; color: var(--blue-d); }
.ref-stats span { font-size: 11px; color: var(--muted); }
.steps-list { margin: 10px 0 0; padding-left: 20px; color: var(--text2); font-size: 14px; }
.steps-list li { margin-bottom: 6px; }

.item-btn { width: 100%; text-align: left; font: inherit; color: inherit; cursor: pointer; transition: transform .1s, border-color .15s, box-shadow .15s; }
.item-btn:hover { border-color: var(--line2); box-shadow: 0 8px 18px -12px rgba(2, 43, 85, .35); }
.item-btn:active { transform: scale(.995); }
.item.unread { background: linear-gradient(180deg, #F4F9FF, #fff); border-color: rgba(5, 93, 183, .3); }
.dot { flex: none; width: 9px; height: 9px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 4px var(--blue-t); }
@media (max-width: 640px) {
  .me-head { flex-wrap: wrap; }
  .me-head .points-pill { margin-left: auto; }
  .bonus-num { font-size: 44px; }
  /* En-tête client : la marque reste lisible, les actions passent sur une seconde ligne. */
  .c-top { flex-wrap: wrap; row-gap: 8px; gap: 8px; padding: 10px 12px; }
  .c-top > a:first-child { flex: 1 1 100%; min-width: 0; }
  .c-top .grow { display: none; }
  .c-top .brand-logo img { height: 34px; }
  .c-top #sname { font-size: 15px; max-width: 56vw; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .c-top #nav-menu { margin-left: auto; }
  .c-top .btn.sm { padding: 8px 11px; font-size: 13px; }
  .me-head h1 { font-size: 22px; }
}

/* ───────── relevés coiffeurs ───────── */
.rel-card { display: flex; flex-direction: column; gap: 10px; }
.rel-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 4px; }
.rel-kpis > div { padding: 9px 10px; border-radius: 12px; background: var(--surface2); border: 1px solid var(--line); }
.rel-kpis span { display: block; font-size: 10.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.rel-kpis b { font-size: 15px; }


