:root {
  --primary: #d6ff4b;
  --primary-ink: #111407;
  --secondary: #a9cc35;
  --background: #0b0c0e;
  --surface: #121417;
  --surface-raised: #191c20;
  --text: #f4f5f0;
  --muted: #969c94;
  --border: #282c30;
  --danger: #ff6b6b;
  --success: #70d997;
  --warning: #f7c66a;
  --radius: 18px;
  --shadow: 0 24px 70px rgba(0, 0, 0, .28);
  --max-width: 1180px;
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-soft: cubic-bezier(.4, 0, .2, 1);
}

* { box-sizing: border-box; }
html { color-scheme: dark; scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--background);
  color: var(--text);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto;
  height: 1px;
  background: var(--primary);
  opacity: .7;
  z-index: 20;
  transform-origin: left;
  animation: top-line-in .9s var(--ease-out) both;
}
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { color: inherit; }
img { max-width: 100%; }
.shell { width: min(100% - 32px, var(--max-width)); margin-inline: auto; }
.site-header { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--background) 90%, transparent); backdrop-filter: blur(16px); border-bottom: 1px solid var(--border); animation: header-in .6s var(--ease-out) both; }
.nav { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.brand { display: inline-flex; align-items: center; gap: 11px; font-weight: 750; letter-spacing: -.03em; }
.brand-mark { width: 29px; aspect-ratio: 1; border: 7px solid var(--primary); border-radius: 50%; position: relative; transition: transform .5s var(--ease-out), box-shadow .35s ease; }
.brand-mark::after { content: ""; position: absolute; width: 7px; height: 7px; background: var(--background); right: -7px; top: 4px; }
.brand:hover .brand-mark { transform: rotate(18deg); box-shadow: 0 0 22px color-mix(in srgb, var(--primary) 22%, transparent); }
.nav-links { display: none; align-items: center; gap: 6px; }
.nav-link { padding: 9px 12px; color: var(--muted); border-radius: 10px; font-size: .9rem; transition: color .2s ease, background-color .2s ease, transform .2s var(--ease-out); }
.nav-link:hover, .nav-link[aria-current="page"] { color: var(--text); background: var(--surface); }
.nav-link:hover { transform: translateY(-1px); }
.mobile-nav { position: fixed; z-index: 15; left: 12px; right: 12px; bottom: 12px; display: grid; grid-template-columns: repeat(4, 1fr); background: #16181b; border: 1px solid var(--border); border-radius: 16px; box-shadow: var(--shadow); padding: 7px; animation: mobile-nav-in .65s .14s var(--ease-out) both; }
.mobile-nav a { min-height: 48px; display: grid; place-items: center; color: var(--muted); font-size: .72rem; border-radius: 11px; }
.mobile-nav a { transition: color .2s ease, background-color .2s ease, transform .18s var(--ease-out); }
.mobile-nav a:active { transform: scale(.96); }
.mobile-nav a[aria-current="page"] { color: var(--primary); background: #202419; }
.page { padding: 48px 0 112px; }
.eyebrow { color: var(--primary); text-transform: uppercase; font-size: .72rem; font-weight: 800; letter-spacing: .14em; }
h1, h2, h3, p { margin-top: 0; }
h1 { max-width: 800px; margin-bottom: 14px; font-size: clamp(2.4rem, 9vw, 5.8rem); line-height: .96; letter-spacing: -.065em; }
h2 { font-size: clamp(1.5rem, 4vw, 2.4rem); letter-spacing: -.045em; }
h3 { font-size: 1rem; }
.lead { color: var(--muted); max-width: 600px; font-size: 1.02rem; }
.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: repeat(2, 1fr); }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; transition: transform .35s var(--ease-out), border-color .3s ease, box-shadow .35s ease, background-color .3s ease; }
.card:hover { border-color: #373c40; }
.card-accent { background: var(--primary); color: var(--primary-ink); border-color: var(--primary); }
.section { margin-top: 40px; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.section-head h2 { margin-bottom: 0; }
.metric { font-size: clamp(1.75rem, 5vw, 2.5rem); font-weight: 750; letter-spacing: -.05em; }
.metric-label { color: var(--muted); font-size: .78rem; }
.btn { min-height: 48px; border: 1px solid var(--border); border-radius: 12px; padding: 0 18px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--surface-raised); cursor: pointer; font-weight: 700; transition: transform .22s var(--ease-out), border-color .2s ease, opacity .2s ease, box-shadow .25s ease, background-color .2s ease; }
.btn:hover { transform: translateY(-1px); border-color: #444a4f; }
.btn:active { transform: translateY(0) scale(.975); }
.btn:focus-visible, input:focus-visible, a:focus-visible { outline: 3px solid color-mix(in srgb, var(--primary) 35%, transparent); outline-offset: 2px; }
.btn-primary { color: var(--primary-ink); background: var(--primary); border-color: var(--primary); }
.btn-primary:hover { box-shadow: 0 10px 28px color-mix(in srgb, var(--primary) 20%, transparent); }
.btn-quiet { background: transparent; }
.btn[disabled] { opacity: .55; cursor: wait; transform: none; }
.auth-layout { min-height: 100vh; display: grid; }
.auth-aside { display: none; padding: 48px; background: var(--surface); border-right: 1px solid var(--border); animation: auth-aside-in .8s var(--ease-out) both; }
.auth-aside blockquote { margin: auto 0 0; max-width: 500px; font-size: clamp(1.8rem, 4vw, 3.5rem); line-height: 1.05; letter-spacing: -.055em; }
.auth-main { display: grid; align-items: center; padding: 32px 20px; }
.auth-box { width: min(100%, 500px); margin-inline: auto; animation: auth-box-in .7s .08s var(--ease-out) both; }
.auth-box h1 { font-size: clamp(2.5rem, 11vw, 4.6rem); margin-top: 54px; }
.form { display: grid; gap: 16px; margin-top: 30px; }
.field { display: grid; gap: 7px; }
.field-row { display: grid; gap: 16px; }
label { font-size: .82rem; font-weight: 700; }
input { width: 100%; min-height: 50px; padding: 0 14px; color: var(--text); background: var(--surface); border: 1px solid var(--border); border-radius: 12px; transition: border-color .22s ease, background-color .22s ease, box-shadow .22s ease, transform .22s var(--ease-out); }
input:focus { background: var(--surface-raised); border-color: color-mix(in srgb, var(--primary) 65%, var(--border)); }
input::placeholder { color: #696e69; }
.field-error { min-height: 1em; color: var(--danger); font-size: .75rem; }
.form-note { color: var(--muted); font-size: .83rem; }
.form-note a { color: var(--text); text-decoration: underline; text-underline-offset: 4px; }
.message { display: none; padding: 12px 14px; border-radius: 12px; font-size: .86rem; }
.message.is-visible { display: block; animation: message-in .35s var(--ease-out) both; }
.message.error { color: #ffd9d9; background: #351c1f; border: 1px solid #603036; }
.message.success { color: #d8ffe4; background: #153021; border: 1px solid #28563a; }
.session-card { min-height: 260px; display: flex; flex-direction: column; justify-content: space-between; }
.session-date { font-size: clamp(3rem, 14vw, 6rem); font-weight: 800; line-height: .85; letter-spacing: -.08em; }
.session-date small { display: block; font-size: .2em; letter-spacing: .12em; margin-top: 14px; }
.progress { height: 7px; overflow: hidden; background: #292d24; border-radius: 99px; }
.progress > span { display: block; width: 0; height: 100%; background: var(--primary); border-radius: inherit; transition: width .4s ease; }
.status { display: inline-flex; padding: 5px 8px; border-radius: 7px; background: #242820; color: var(--primary); font-size: .68rem; font-weight: 800; letter-spacing: .08em; }
.skeleton { min-height: 80px; background: linear-gradient(90deg, var(--surface) 20%, var(--surface-raised) 50%, var(--surface) 80%); background-size: 300% 100%; animation: load 1.4s infinite; }
.toast-region { position: fixed; right: 16px; top: 88px; z-index: 30; display: grid; gap: 8px; }
.toast { padding: 12px 15px; background: var(--surface-raised); border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow); animation: toast-in .45s var(--ease-out) both; transition: opacity .25s ease, transform .3s var(--ease-out); }
.toast.is-leaving { opacity: 0; transform: translateX(12px) scale(.98); }
.toolbar { display: flex; flex-wrap: wrap; align-items: end; gap: 12px; }
.toolbar .field { min-width: min(100%, 190px); flex: 1; }
.list { display: grid; gap: 10px; }
.list-item { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; padding: 15px 0; border-bottom: 1px solid var(--border); }
.list-item:last-child { border-bottom: 0; }
.list-item p { margin: 3px 0 0; color: var(--muted); font-size: .85rem; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; }
.btn-small { min-height: 38px; padding: 0 12px; font-size: .8rem; }
.btn-danger { color: #ffd9d9; border-color: #603036; background: #351c1f; }
.hours-grid { display: grid; gap: 10px; }
.hours-row { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.hours-row .hours-fields { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.hours-row input[type="checkbox"] { width: 20px; min-height: 20px; accent-color: var(--primary); }
.timeline { display: grid; gap: 5px; }
.timeline-slot { display: grid; grid-template-columns: 64px 1fr auto; align-items: center; min-height: 52px; gap: 12px; padding: 0 14px; border: 1px solid var(--border); border-radius: 11px; background: var(--surface); transition: transform .25s var(--ease-out), border-color .25s ease, background-color .25s ease; }
.timeline-slot.blocked { border-color: #59343a; background: #24191c; }
.timeline-slot .slot-state { color: var(--success); font-size: .72rem; font-weight: 800; letter-spacing: .06em; }
.timeline-slot.blocked .slot-state { color: var(--danger); }
.timeline-slot.pending { border-color: #665026; background: #261f14; }
.timeline-slot.approved { border-color: #28563a; background: #14251a; }
.timeline-slot.completed { border-color: #334057; background: #171d28; }
.timeline-slot.pending .slot-state { color: var(--warning); }
.timeline-slot.approved .slot-state { color: var(--success); }
.timeline-slot.completed .slot-state { color: #9ab7ef; }
.customer-grid { display: grid; gap: 12px; grid-template-columns: 1fr; }
.avatar { width: 48px; aspect-ratio: 1; display: grid; place-items: center; border-radius: 50%; background: var(--primary); color: var(--primary-ink); font-weight: 850; }
.modal { width: min(92vw, 560px); padding: 0; color: var(--text); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.modal[open] { animation: modal-in .4s var(--ease-out) both; }
.modal::backdrop { background: rgba(0,0,0,.72); backdrop-filter: blur(4px); }
.modal[open]::backdrop { animation: backdrop-in .3s ease both; }
.modal-inner { padding: 22px; }
select, textarea { width: 100%; padding: 12px 14px; color: var(--text); background: var(--surface); border: 1px solid var(--border); border-radius: 12px; font: inherit; transition: border-color .22s ease, background-color .22s ease, box-shadow .22s ease; }
select:focus, textarea:focus { background: var(--surface-raised); border-color: color-mix(in srgb, var(--primary) 65%, var(--border)); }
textarea { min-height: 95px; resize: vertical; }
.slots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.slot-button { min-height: 46px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); cursor: pointer; font-weight: 750; transition: transform .22s var(--ease-out), color .22s ease, background-color .22s ease, border-color .22s ease, box-shadow .22s ease; }
.slot-button:hover, .slot-button[aria-pressed="true"] { color: var(--primary-ink); background: var(--primary); border-color: var(--primary); }
.slot-button:hover { transform: translateY(-2px); }
.slot-button[aria-pressed="true"] { transform: translateY(-1px); box-shadow: 0 8px 22px color-mix(in srgb, var(--primary) 17%, transparent); }
.booking-step { display: grid; gap: 18px; }
.booking-summary { position: sticky; top: 92px; }
.tabs { display: flex; gap: 7px; overflow-x: auto; padding-bottom: 4px; }
.tab { white-space: nowrap; min-height: 40px; padding: 0 14px; border: 1px solid var(--border); border-radius: 99px; background: transparent; color: var(--muted); cursor: pointer; transition: transform .22s var(--ease-out), color .22s ease, background-color .22s ease, border-color .22s ease; }
.tab[aria-selected="true"] { color: var(--primary-ink); background: var(--primary); border-color: var(--primary); }
.tab:active { transform: scale(.97); }
.booking-card { display: grid; gap: 16px; }
.booking-card-top { display: flex; align-items: start; justify-content: space-between; gap: 12px; }
.booking-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; color: var(--muted); font-size: .84rem; }
.status-PENDING { color: var(--warning); }
.status-APPROVED, .status-COMPLETED { color: var(--success); }
.status-DECLINED, .status-CANCELLED { color: var(--danger); }
.reward-card { min-height: 210px; display: flex; flex-direction: column; justify-content: space-between; }
.reward-card.locked { opacity: .62; }
.reward-lock { width: 38px; aspect-ratio: 1; display: grid; place-items: center; border: 1px solid var(--border); border-radius: 50%; font-weight: 850; }
.profile-hero { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; }
.profile-avatar { width: 92px; aspect-ratio: 1; display: grid; place-items: center; border-radius: 50%; color: var(--primary-ink); background: var(--primary); font-size: 2rem; font-weight: 850; }
.motion-reveal { opacity: 0; transform: translateY(12px); filter: blur(2px); transition: opacity .55s var(--ease-soft), transform .65s var(--ease-out), filter .55s ease; transition-delay: var(--motion-delay, 0ms); }
.motion-reveal.is-revealed { opacity: 1; transform: translateY(0); filter: blur(0); }
@keyframes load { to { background-position: -150% 0; } }
@keyframes top-line-in { from { transform: scaleX(0); opacity: 0; } }
@keyframes header-in { from { opacity: 0; transform: translateY(-8px); } }
@keyframes mobile-nav-in { from { opacity: 0; transform: translateY(18px) scale(.985); } }
@keyframes auth-aside-in { from { opacity: 0; transform: translateX(-12px); } }
@keyframes auth-box-in { from { opacity: 0; transform: translateY(14px); } }
@keyframes message-in { from { opacity: 0; transform: translateY(-5px); } }
@keyframes toast-in { from { opacity: 0; transform: translateX(14px) scale(.98); } }
@keyframes modal-in { from { opacity: 0; transform: translateY(12px) scale(.985); } }
@keyframes backdrop-in { from { opacity: 0; } }
@media (hover: hover) {
  .card:not(.card-accent):hover { transform: translateY(-2px); box-shadow: 0 18px 45px rgba(0, 0, 0, .16); }
  .timeline-slot:hover { transform: translateX(2px); }
}
@media (min-width: 720px) {
  .grid-2, .field-row { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
  .nav-links { display: flex; }
  .mobile-nav { display: none; }
  .page { padding-bottom: 64px; }
  .hours-row { grid-template-columns: 150px auto 1fr; }
  .hours-row .hours-fields { grid-column: auto; }
  .slots { grid-template-columns: repeat(5, 1fr); }
  .customer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1100px) { .customer-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 920px) {
  .auth-layout { grid-template-columns: minmax(360px, .9fr) 1.1fr; }
  .auth-aside { display: flex; flex-direction: column; }
  .auth-main { padding: 60px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .motion-reveal { opacity: 1 !important; transform: none !important; filter: none !important; }
}
