:root {
  --bg: #0B0908;
  --bg-2: #14110F;
  --surface: #1C1714;
  --surface-2: #241E19;
  --line: rgba(246, 237, 227, .08);
  --ink: #F6EDE3;
  --muted: #B9A89A;
  --gold: #E8B86D;
  --pistachio: #8FDB93;
  --berry: #FF7A8A;
  --foam: #FFF7EE;
  --shadow: 0 24px 60px -28px rgba(0, 0, 0, .7);
  --radius: 22px;
  --font-display: "Playfair Display", Georgia, serif;
  --font: Karla, "Segoe UI", sans-serif;
  --z-nav: 40;
  --z-top: 30;
  --z-modal: 50;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; min-height: 100%; }
body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  background: var(--bg);
  color: var(--ink);
  touch-action: manipulation;
  overscroll-behavior: contain;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(900px 420px at 8% -10%, rgba(232, 184, 109, .16), transparent 55%),
    radial-gradient(700px 380px at 100% 0%, rgba(143, 219, 147, .08), transparent 50%),
    radial-gradient(600px 400px at 80% 100%, rgba(255, 122, 138, .07), transparent 45%);
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: .045;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
h1, h2, h3, .display {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -.02em;
  line-height: 1.15;
}
a { color: inherit; }
button, .btn, a.btn, .pos-product, .salon-card, .filter-chip, .sidebar a, .qty-btn {
  cursor: pointer;
}
.btn, button.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  min-height: 44px;
  border: 0;
  border-radius: 14px;
  padding: .7rem 1.05rem;
  font-weight: 700;
  font-size: 15px;
  font-family: inherit;
  text-decoration: none;
  transition: background .2s ease, color .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.btn-primary { background: var(--gold); color: #1A120C; }
.btn-primary:hover { background: #F3C984; }
.btn-accent { background: var(--pistachio); color: #102012; }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}
.btn-ghost:hover { background: rgba(255,255,255,.04); }
.btn-danger { background: var(--berry); color: #2A0B10; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, button:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}
.field, select.field, textarea.field, input.field {
  width: 100%;
  margin-top: .35rem;
  min-height: 44px;
  padding: .7rem .9rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--bg-2);
  color: var(--ink);
  font: inherit;
}
.field::placeholder { color: #8A7668; }
.card {
  background: linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.015));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  border-radius: 999px;
  padding: .28rem .75rem;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  text-decoration: none;
}
.flash { margin: 0 0 1rem; padding: .9rem 1.05rem; border-radius: 14px; border: 1px solid var(--line); }
.flash-success { background: rgba(143,219,147,.12); color: var(--pistachio); }
.flash-error { background: rgba(255,122,138,.12); color: var(--berry); }
.flash-warning { background: rgba(232,184,109,.14); color: var(--gold); }
.app { position: relative; z-index: 2; display: grid; min-height: 100vh; }
@media (min-width: 960px) { .app { grid-template-columns: 272px 1fr; } }
.sidebar {
  background: rgba(12, 10, 9, .92);
  border-right: 1px solid var(--line);
  padding: 1.35rem 1rem;
  display: flex;
  flex-direction: column;
}
@media (max-width: 959px) {
  .sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: min(288px, 86vw);
    z-index: var(--z-nav);
    transform: translateX(-105%);
    transition: transform .25s ease;
  }
  .sidebar.is-open { transform: none; }
  .nav-scrim {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.55);
    z-index: 35;
  }
  .nav-scrim.show { display: block; }
}
.sidebar a {
  display: flex;
  align-items: center;
  gap: .7rem;
  min-height: 44px;
  padding: .55rem .85rem;
  border-radius: 14px;
  text-decoration: none;
  color: var(--muted);
  margin-bottom: .15rem;
  transition: background .2s ease, color .2s ease;
}
.sidebar a.active, .sidebar a:hover { background: rgba(232,184,109,.14); color: var(--gold); }
.sidebar .brand { font-family: var(--font-display); font-size: 1.55rem; margin: 0; color: var(--foam); }
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .8rem;
  padding: .95rem 1.3rem;
  border-bottom: 1px solid var(--line);
  background: rgba(11,9,8,.75);
  backdrop-filter: blur(16px);
  position: sticky;
  top: 0;
  z-index: var(--z-top);
}
.menu-btn {
  display: none;
  min-width: 44px;
  min-height: 44px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  border-radius: 12px;
}
@media (max-width: 959px) { .menu-btn { display: inline-flex; } }
.main { padding: 1.35rem; }
.grid { display: grid; gap: 1rem; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
@media (min-width: 960px) {
  .split { grid-template-columns: minmax(0, 1.7fr) minmax(280px, 1fr); }
}
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; color: var(--muted); font-weight: 600; }
.table td, .table th { padding: .7rem 0; border-bottom: 1px solid var(--line); }
.pos-shell { position: relative; z-index: 2; min-height: 100vh; }
.pos-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .8rem;
  background: rgba(11,9,8,.92);
  color: var(--foam);
  padding: .75rem 1rem;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: var(--z-top);
}
.pos-top a {
  color: var(--muted);
  text-decoration: none;
  margin-right: .35rem;
  padding: .55rem .9rem;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  border-radius: 12px;
}
.pos-top a.on { background: var(--gold); color: #1A120C; font-weight: 700; }
.pos-grid { display: grid; min-height: calc(100vh - 64px); }
@media (min-width: 960px) { .pos-grid { grid-template-columns: 1fr 380px; } }
.pos-product {
  min-height: 108px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1rem;
  text-align: left;
  width: 100%;
  color: var(--ink);
  font: inherit;
  transition: border-color .2s ease, background .2s ease;
}
.pos-product:hover { border-color: var(--gold); background: var(--surface-2); }
.guest {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 2rem;
}
.guest .card { width: min(440px, 100%); padding: 1.7rem; }
.muted { color: var(--muted); font-size: 13px; }
.pad { padding: 1.25rem 1.35rem; }
.stack { display: flex; flex-direction: column; gap: .8rem; }
.row { display: flex; flex-wrap: wrap; gap: .55rem; align-items: center; }
.space { margin-top: 1.25rem; }
.w-full { width: 100%; }
.grow { flex: 1; }
.salon-card {
  min-height: 148px;
  padding: 1.2rem;
  text-decoration: none;
  display: block;
  transition: border-color .2s ease, background .2s ease;
}
.salon-card:hover { border-color: var(--gold); }
.salon-card.busy { border-color: var(--gold); background: rgba(232,184,109,.1); }
.modal {
  position: fixed;
  inset: 0;
  z-index: var(--z-modal);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: rgba(0,0,0,.62);
  padding: 1rem;
}
@media (min-width: 640px) { .modal { align-items: center; } }
.modal-box { width: min(540px, 100%); background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 1.35rem; }
.cart-line { background: var(--bg-2); border: 1px solid var(--line); border-radius: 16px; padding: .85rem; }
.qty-btn { width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--ink); font-size: 18px; }
.filter-chip {
  border: 1px solid var(--line);
  border-radius: 999px;
  min-height: 44px;
  padding: .45rem 1rem;
  font-weight: 700;
  background: var(--surface);
  color: var(--muted);
}
.filter-chip.on { background: var(--gold); color: #1A120C; border-color: transparent; }
.pay-box { border: 1px solid var(--line); border-radius: 14px; padding: .55rem; font-size: 12px; background: var(--bg-2); }
.sidebar-foot { border-top: 1px solid var(--line); padding: 1rem 0 0; margin-top: auto; }
.ok { color: var(--pistachio); }
.bad { color: var(--berry); }
.low { background: rgba(255,122,138,.06); }
.stat { padding: 1.2rem 1.3rem; }
.stat .k { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin: 0; }
.stat .v { font-size: 2rem; margin: .45rem 0 .2rem; }
.choice {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .6rem;
}
.choice label {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: .9rem;
  min-height: 72px;
  display: flex;
  flex-direction: column;
  gap: .2rem;
  cursor: pointer;
}
.choice input { accent-color: var(--gold); }
.choice label:has(input:checked) { border-color: var(--gold); background: rgba(232,184,109,.1); }
.icon { width: 18px; height: 18px; flex: none; }
.nav-ico { width: 18px; height: 18px; opacity: .85; }
.val-box {
  border-radius: 16px;
  padding: .85rem 1rem;
  background: rgba(232,184,109,.08);
  border: 1px dashed rgba(232,184,109,.35);
  font-size: 14px;
}
[x-cloak], [hidden] { display: none !important; }
@media print { .no-print { display: none !important; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
