/* ==========================================================================
   QueueEase — design system
   Inspired by modern SaaS leaders (Stripe, Calendly, Linear): soft gradients,
   generous whitespace, crisp cards and restrained, friendly colour.
   ========================================================================== */
:root {
  --ink: #141b34;
  --ink-2: #3b4562;
  --muted: #6b7591;
  --line: #e8eaf3;
  --line-2: #dfe2ee;
  --bg: #ffffff;
  --bg-soft: #f7f7fc;
  --bg-tint: #f4f2ff;

  --violet: #5b4ff5;
  --violet-d: #4a3fe0;
  --violet-50: #efedff;
  --coral: #ff6b4a;
  --coral-50: #fff0eb;
  --teal: #0fb5a0;
  --teal-50: #e6f8f5;
  --amber: #f2a516;
  --amber-50: #fff6e1;
  --pink: #e94b9b;
  --pink-50: #fdebf5;
  --blue: #2f86f6;
  --blue-50: #e8f2ff;
  --green: #16a36a;
  --green-50: #e7f7ef;
  --red: #e2453c;
  --red-50: #fdecea;

  --grad: linear-gradient(120deg, #5b4ff5 0%, #8b5cf6 45%, #e94b9b 100%);
  --radius: 18px;
  --radius-lg: 26px;
  --shadow-sm: 0 1px 2px rgba(20, 27, 52, .05), 0 2px 8px rgba(20, 27, 52, .04);
  --shadow: 0 10px 30px -12px rgba(20, 27, 52, .14), 0 2px 6px rgba(20, 27, 52, .04);
  --shadow-lg: 0 30px 60px -20px rgba(70, 55, 200, .28), 0 10px 25px -10px rgba(20, 27, 52, .12);
  --max: 1180px;
  --font: 'DM Sans', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --display: 'Bricolage Grotesque', 'DM Sans', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  background: var(--bg); color: var(--ink); font-family: var(--font);
  font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased;
}
main { flex: 1; }
a { color: var(--violet); text-decoration: none; }
a:hover { color: var(--violet-d); }
img, svg { max-width: 100%; }
h1, h2, h3, h4 { font-family: var(--display); letter-spacing: -.02em; line-height: 1.15; margin: 0 0 .4em; color: var(--ink); }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid rgba(91, 79, 245, .45); outline-offset: 2px; border-radius: 8px; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 10px; }
.skip-link:focus { top: 12px; color: #fff; }

/* tone helpers --------------------------------------------------------- */
.c-violet { background: var(--violet-50); color: var(--violet); }
.c-coral  { background: var(--coral-50);  color: var(--coral); }
.c-teal   { background: var(--teal-50);   color: var(--teal); }
.c-amber  { background: var(--amber-50);  color: #b27500; }
.c-pink   { background: var(--pink-50);   color: var(--pink); }
.c-blue   { background: var(--blue-50);   color: var(--blue); }
.c-green  { background: var(--green-50);  color: var(--green); }
.tone-0 { --t: var(--violet); --t50: var(--violet-50); }
.tone-1 { --t: var(--coral);  --t50: var(--coral-50); }
.tone-2 { --t: var(--teal);   --t50: var(--teal-50); }
.tone-3 { --t: var(--amber);  --t50: var(--amber-50); }
.tone-4 { --t: var(--pink);   --t50: var(--pink-50); }
.tone-5 { --t: var(--blue);   --t50: var(--blue-50); }

/* buttons ---------------------------------------------------------------- */
.btn {
  --b: var(--violet);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid transparent; border-radius: 12px; padding: 12px 20px;
  font: 600 15px/1.2 var(--font); cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn span[aria-hidden] { transition: transform .2s ease; }
.btn:hover span[aria-hidden] { transform: translateX(3px); }
.btn-primary { background: var(--violet); color: #fff; box-shadow: 0 6px 18px -6px rgba(91, 79, 245, .6), inset 0 1px 0 rgba(255,255,255,.15); }
.btn-primary:hover { background: var(--violet-d); color: #fff; transform: translateY(-1px); box-shadow: 0 10px 24px -8px rgba(91, 79, 245, .7); }
.btn-coral { background: var(--coral); color: #fff; box-shadow: 0 6px 18px -6px rgba(255, 107, 74, .6); }
.btn-coral:hover { background: #f2593a; color: #fff; transform: translateY(-1px); }
.btn-teal { background: var(--teal); color: #fff; }
.btn-teal:hover { background: #0aa08d; color: #fff; }
.btn-soft { background: var(--bg-soft); color: var(--ink); border-color: var(--line); }
.btn-soft:hover { background: #fff; color: var(--ink); border-color: var(--line-2); box-shadow: var(--shadow-sm); }
.btn-light { background: #fff; color: var(--violet); box-shadow: 0 8px 20px -8px rgba(0,0,0,.3); }
.btn-light:hover { color: var(--violet-d); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--ink-2); border-color: var(--line); }
.btn-ghost:hover { background: var(--bg-soft); color: var(--ink); }
.btn-danger-text { color: var(--red); }
.btn-danger-text:hover { color: var(--red); background: var(--red-50); border-color: #f6c9c5; }
.btn-sm { padding: 9px 14px; font-size: 14px; border-radius: 10px; }
.btn-lg { padding: 16px 26px; font-size: 16px; border-radius: 14px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .6; pointer-events: none; }

/* chips & badges --------------------------------------------------------- */
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); font-size: 13px; font-weight: 600; color: var(--ink-2); }
.chip-light { background: rgba(255,255,255,.15); border-color: rgba(255,255,255,.25); color: #fff; box-shadow: none; }
.eyebrow { display: inline-block; color: var(--violet); font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 10px; }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; text-transform: capitalize; background: var(--bg-soft); color: var(--ink-2); }
.badge-booked    { background: var(--violet-50); color: var(--violet); }
.badge-completed { background: var(--green-50); color: var(--green); }
.badge-cancelled { background: #f1f2f6; color: #7b8197; }
.badge-waiting   { background: var(--amber-50); color: #a86b00; }
.badge-called    { background: var(--teal-50); color: #08897a; }
.badge-live      { background: var(--green-50); color: var(--green); text-transform: none; }
.dot-live { width: 8px; height: 8px; border-radius: 50%; background: currentColor; display: inline-block; position: relative; flex: none; }
.chip .dot-live { color: var(--green); }
.dot-live::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: currentColor; animation: ping 1.8s cubic-bezier(0,0,.2,1) infinite; }
@keyframes ping { 75%, 100% { transform: scale(2.4); opacity: 0; } }

/* header ----------------------------------------------------------------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.78); backdrop-filter: saturate(180%) blur(14px); -webkit-backdrop-filter: saturate(180%) blur(14px); border-bottom: 1px solid rgba(232,234,243,.8); }
.header-inner { max-width: var(--max); margin: 0 auto; height: 72px; padding: 0 24px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 800; font-size: 22px; letter-spacing: -.03em; color: var(--ink); }
.logo:hover { color: var(--ink); }
.logo-mark { width: 34px; height: 34px; border-radius: 10px; background: var(--grad); display: inline-flex; flex-direction: column; justify-content: center; gap: 3px; padding: 0 8px; box-shadow: 0 6px 14px -6px rgba(91,79,245,.7); }
.logo-mark i { display: block; height: 3.5px; border-radius: 3px; background: #fff; }
.logo-mark i:nth-child(1) { width: 100%; }
.logo-mark i:nth-child(2) { width: 70%; opacity: .85; }
.logo-mark i:nth-child(3) { width: 40%; opacity: .7; }
.site-nav { display: flex; align-items: center; gap: 6px; }
.nav-link { padding: 8px 14px; border-radius: 10px; color: var(--ink-2); font-weight: 600; font-size: 15px; transition: background .2s, color .2s; }
.nav-link:hover { background: var(--bg-soft); color: var(--ink); }
.nav-link.is-active { color: var(--violet); background: var(--violet-50); }
.nav-form { margin: 0 0 0 4px; }
.nav-user { display: inline-flex; align-items: center; gap: 8px; padding: 4px 10px 4px 4px; margin-left: 6px; border-radius: 999px; background: var(--bg-soft); border: 1px solid var(--line); font-size: 14px; font-weight: 600; }
.nav-user-name { max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.avatar { width: 28px; height: 28px; border-radius: 50%; display: inline-grid; place-items: center; background: var(--grad); color: #fff; font-size: 13px; font-weight: 700; flex: none; }
.avatar-sm { width: 30px; height: 30px; font-size: 13px; }
.site-nav .btn { margin-left: 6px; }
.nav-toggle { display: none; }
.nav-burger { display: none; }

/* footer ----------------------------------------------------------------- */
.site-footer { background: #0f1430; color: #b8bfd9; margin-top: 40px; }
.page-home .site-footer { margin-top: 0; }
.footer-inner { max-width: var(--max); margin: 0 auto; padding: 56px 24px 36px; display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.footer-brand { max-width: 340px; }
.footer-brand .logo { color: #fff; }
.footer-brand p { margin-top: 14px; font-size: 15px; }
.footer-cols { display: flex; gap: 70px; }
.footer-cols h4 { color: #fff; font-family: var(--font); font-size: 13px; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 14px; }
.footer-cols a { display: block; color: #b8bfd9; padding: 4px 0; font-size: 15px; }
.footer-cols a:hover, .back-home:hover { color: #fff; }
.footer-bottom { max-width: var(--max); margin: 0 auto; padding: 20px 24px 28px; border-top: 1px solid rgba(255,255,255,.08); display: flex; justify-content: space-between; gap: 12px; font-size: 14px; }
.back-home { color: #d9dcff; font-weight: 600; }

/* ==========================================================================
   HOME
   ========================================================================== */
.hero { position: relative; overflow: hidden; padding: 80px 24px 90px; }
.hero-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; }
.b1 { width: 520px; height: 520px; background: #c9c3ff; top: -180px; left: -120px; animation: drift 18s ease-in-out infinite alternate; }
.b2 { width: 440px; height: 440px; background: #ffd0c2; top: 40px; right: -120px; animation: drift 22s ease-in-out infinite alternate-reverse; }
.b3 { width: 360px; height: 360px; background: #bdf1e8; bottom: -160px; left: 40%; animation: drift 20s ease-in-out infinite alternate; }
.grid-fade { position: absolute; inset: 0; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 48px 48px; mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 20%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 20%, transparent 75%); opacity: .55; }
@keyframes drift { to { transform: translate(40px, 30px) scale(1.08); } }
.hero-inner { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: 1.1fr .9fr; gap: 60px; align-items: center; }
.hero h1 { font-size: clamp(44px, 6.4vw, 84px); font-weight: 800; letter-spacing: -.045em; line-height: 1.02; margin: 22px 0 22px; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: 19px; color: var(--ink-2); max-width: 540px; line-height: 1.65; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin: 30px 0 26px; }
.trust { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; color: var(--ink-2); font-size: 14px; font-weight: 500; }
.tick { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: var(--green-50); color: var(--green); font-size: 11px; font-weight: 800; margin-right: 6px; }

.hero-visual { position: relative; padding: 30px 10px; }
.ticket { position: relative; background: rgba(255,255,255,.9); border: 1px solid rgba(255,255,255,.9); border-radius: var(--radius-lg); padding: 26px; box-shadow: var(--shadow-lg); backdrop-filter: blur(10px); animation: float 6s ease-in-out infinite; }
.ticket::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; background: linear-gradient(140deg, rgba(91,79,245,.5), rgba(233,75,155,.25), rgba(15,181,160,.35)); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; }
.ticket-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 22px; }
.ticket-svc { font-size: 13px; font-weight: 600; color: var(--muted); }
.ticket-main { display: flex; align-items: center; gap: 24px; }
.ticket-info { flex: 1; min-width: 0; }
.ticket-info h3 { font-size: 24px; margin-bottom: 4px; }
.ticket-info p { color: var(--muted); font-size: 14px; margin-bottom: 14px; }
.progress { height: 8px; border-radius: 99px; background: var(--violet-50); overflow: hidden; }
.progress span { display: block; height: 100%; border-radius: inherit; background: var(--grad); animation: grow 1.6s cubic-bezier(.2,.8,.2,1) both; }
@keyframes grow { from { width: 0 !important; } }
.ticket-meta { display: flex; justify-content: space-between; margin-top: 10px; font-size: 13px; color: var(--muted); }
.ticket-meta strong { color: var(--green); }

.ring { --p: 50; --size: 118px; width: var(--size); height: var(--size); flex: none; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--violet) calc(var(--p) * 1%), #ece9ff 0); position: relative; }
.ring::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(from 0deg, #5b4ff5, #8b5cf6, #e94b9b calc(var(--p) * 1%), transparent 0); }
.ring-inner { position: relative; width: calc(var(--size) - 20px); height: calc(var(--size) - 20px); border-radius: 50%; background: #fff; display: grid; place-content: center; text-align: center; box-shadow: inset 0 2px 6px rgba(20,27,52,.06); }
.ring-inner small { font-size: 9.5px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.ring-inner strong { font-family: var(--display); font-size: 38px; font-weight: 800; letter-spacing: -.04em; line-height: 1; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

.float-card { position: absolute; display: flex; align-items: center; gap: 12px; padding: 12px 16px; background: #fff; border-radius: 16px; border: 1px solid var(--line); box-shadow: var(--shadow); font-size: 14px; }
.float-card strong { display: block; font-size: 14px; }
.float-card small { color: var(--muted); font-size: 12px; }
.fc-icon { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; font-weight: 800; flex: none; }
.fc-1 { left: -34px; bottom: -14px; animation: float 7s ease-in-out infinite reverse; }
.fc-2 { right: -20px; top: -18px; animation: float 8s ease-in-out 1s infinite; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

.stats-band { max-width: var(--max); margin: -30px auto 0; position: relative; padding: 26px 30px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; width: calc(100% - 48px); }
.stats-band div { text-align: center; padding: 6px; }
.stats-band div + div { border-left: 1px solid var(--line); }
.stats-band strong { display: block; font-family: var(--display); font-size: 32px; font-weight: 800; letter-spacing: -.03em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stats-band span { color: var(--muted); font-size: 14px; }

.section { padding: 96px 24px; }
.section > * { max-width: var(--max); margin-left: auto; margin-right: auto; }
.section-tint { background: linear-gradient(180deg, var(--bg-soft), #fbfaff); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { text-align: center; max-width: 640px; margin-bottom: 52px; }
.section-head h2 { font-size: clamp(32px, 4vw, 46px); font-weight: 800; letter-spacing: -.035em; }
.section-head p { color: var(--muted); font-size: 18px; }

.steps { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; position: relative; }
.step { position: relative; padding: 30px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); transition: transform .25s, box-shadow .25s; }
.step:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.step-num { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; font-family: var(--display); font-weight: 800; font-size: 20px; margin-bottom: 18px; }
.step h3 { font-size: 21px; }
.step p { color: var(--muted); margin: 0; }

.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature { padding: 28px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); transition: transform .25s, box-shadow .25s, border-color .25s; }
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--line-2); }
.f-icon { width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; font-size: 24px; margin-bottom: 18px; }
.feature h3 { font-size: 20px; }
.feature p { color: var(--muted); margin: 0; font-size: 15px; }

.service-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.service-card { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 24px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); color: var(--ink); overflow: hidden; transition: transform .25s, box-shadow .25s, border-color .25s; }
.service-card::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--t); }
.service-card:hover { color: var(--ink); transform: translateY(-5px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--t) 35%, white); }
.s-icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; font-size: 24px; background: var(--t50); margin-bottom: 10px; }
.service-card h3 { font-size: 19px; margin: 0; }
.s-dur { color: var(--muted); font-size: 14px; }
.s-go { margin-top: 12px; color: var(--t); font-weight: 700; font-size: 14px; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.split-card { padding: 40px; border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.split-card h3 { font-size: 28px; font-weight: 800; letter-spacing: -.03em; }
.split-dark { background: radial-gradient(120% 120% at 100% 0%, #3b2fd1 0%, #1a1f4a 55%, #10142f 100%); color: #d6daf0; border-color: transparent; }
.split-dark h3 { color: #fff; }
.split-dark .eyebrow { color: #b4adff; }
.checklist { list-style: none; padding: 0; margin: 18px 0 28px; display: grid; gap: 12px; }
.checklist li { position: relative; padding-left: 32px; }
.checklist li::before { content: "✓"; position: absolute; left: 0; top: 1px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 800; background: var(--violet-50); color: var(--violet); }
.split-dark .checklist li::before { background: rgba(255,255,255,.12); color: #fff; }

.faq { max-width: 780px !important; display: grid; gap: 12px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 4px 22px; transition: box-shadow .2s, border-color .2s; }
.faq details[open] { box-shadow: var(--shadow); border-color: var(--line-2); }
.faq summary { cursor: pointer; list-style: none; padding: 16px 0; font-weight: 700; font-size: 17px; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--violet-50); color: var(--violet); font-size: 18px; transition: transform .25s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); padding-bottom: 12px; margin: 0; }

.cta { padding: 0 24px 96px; }
.cta-inner { max-width: var(--max); margin: 0 auto; text-align: center; padding: 70px 30px; border-radius: 32px; color: #fff; background: radial-gradient(60% 120% at 0% 0%, rgba(255,255,255,.18), transparent 60%), var(--grad); box-shadow: var(--shadow-lg); position: relative; overflow: hidden; }
.cta-inner::after { content: ""; position: absolute; width: 380px; height: 380px; border-radius: 50%; border: 60px solid rgba(255,255,255,.07); right: -120px; bottom: -180px; }
.cta h2 { color: #fff; font-size: clamp(32px, 4.5vw, 50px); font-weight: 800; letter-spacing: -.035em; }
.cta p { font-size: 18px; opacity: .9; margin-bottom: 28px; }

/* reveal animation (enabled by JS) */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.8,.2,1); }
.js .reveal.in { opacity: 1; transform: none; }

/* ==========================================================================
   AUTH
   ========================================================================== */
.auth-wrap { max-width: 1080px; width: calc(100% - 48px); margin: 48px auto; display: grid; grid-template-columns: 1fr 1fr; border-radius: 28px; overflow: hidden; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-lg); }
.auth-side { position: relative; padding: 48px; color: #fff; background: radial-gradient(80% 60% at 100% 100%, rgba(233,75,155,.55), transparent 60%), radial-gradient(70% 60% at 0% 0%, rgba(15,181,160,.35), transparent 60%), linear-gradient(150deg, #4c3ff0, #2a2189); overflow: hidden; }
.auth-side::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.18) 1px, transparent 1px); background-size: 22px 22px; opacity: .4; }
.auth-side-inner { position: relative; z-index: 1; height: 100%; display: flex; flex-direction: column; align-items: flex-start; }
.auth-side h2 { color: #fff; font-size: 38px; font-weight: 800; letter-spacing: -.035em; margin: 22px 0 26px; }
.auth-perks { list-style: none; padding: 0; margin: 0 0 32px; display: grid; gap: 14px; font-weight: 500; }
.auth-perks li { display: flex; align-items: center; gap: 12px; }
.auth-perks span { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: rgba(255,255,255,.14); }
.mini-ticket { margin-top: auto; align-self: flex-start; padding: 16px 20px; border-radius: 18px; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.22); backdrop-filter: blur(6px); display: grid; grid-template-columns: auto auto; column-gap: 14px; align-items: center; animation: float 6s ease-in-out infinite; }
.mini-ticket small { grid-column: 1 / -1; font-size: 11px; text-transform: uppercase; letter-spacing: .1em; opacity: .8; }
.mini-ticket strong { font-family: var(--display); font-size: 36px; line-height: 1.1; }
.mini-ticket span { font-size: 14px; opacity: .9; }
.auth-card { padding: 48px; }
.auth-card h1 { font-size: 36px; font-weight: 800; letter-spacing: -.035em; }
.back-link { display: flex; width: fit-content; font-size: 14px; font-weight: 600; color: var(--muted); margin-bottom: 26px; }
.back-link:hover { color: var(--violet); }
.switch-auth { text-align: center; margin: 24px 0 0; color: var(--muted); font-size: 15px; }
.switch-auth a { font-weight: 700; }

/* forms ------------------------------------------------------------------- */
.form { margin-top: 22px; }
.field { margin-bottom: 18px; }
.field > label, legend { display: block; font-size: 14px; font-weight: 700; color: var(--ink); margin-bottom: 8px; padding: 0; }
input:not([type=radio]):not([type=checkbox]), select { display: block; width: 100%; padding: 13px 15px; border: 1.5px solid var(--line-2); border-radius: 12px; background: #fff; font: 500 15px var(--font); color: var(--ink); transition: border-color .2s, box-shadow .2s; }
input::placeholder { color: #a5abc0; }
input:not([type=radio]):not([type=checkbox]):hover { border-color: #c9cde0; }
input:not([type=radio]):not([type=checkbox]):focus, select:focus { outline: none; border-color: var(--violet); box-shadow: 0 0 0 4px rgba(91,79,245,.14); }
.field-error { display: none; color: var(--red); font-size: 13px; margin-top: 6px; font-weight: 500; }
.field.has-error input { border-color: var(--red) !important; box-shadow: 0 0 0 4px rgba(226,69,60,.1) !important; }
.field.has-error .field-error { display: block; }
.hint { display: block; color: var(--muted); font-size: 13px; margin-top: 6px; }
.pw-wrap { position: relative; }
.pw-wrap input { padding-right: 70px !important; }
.pw-toggle { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); border: 0; background: var(--bg-soft); color: var(--ink-2); font: 600 13px var(--font); padding: 6px 10px; border-radius: 8px; cursor: pointer; }
.pw-toggle:hover { background: var(--violet-50); color: var(--violet); }
.pw-meter { height: 5px; background: var(--line); border-radius: 9px; margin-top: 10px; overflow: hidden; }
.pw-meter span { display: block; height: 100%; width: 0; border-radius: inherit; transition: width .3s, background .3s; }
fieldset { border: 0; margin: 0 0 18px; padding: 0; min-width: 0; }

.choice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.choice-grid legend { grid-column: 1 / -1; }
.choice { position: relative; cursor: pointer; }
.choice input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.choice-body { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 10px; align-items: center; padding: 12px; border: 1.5px solid var(--line-2); border-radius: 14px; background: #fff; transition: border-color .2s, background .2s, box-shadow .2s, transform .15s; height: 100%; }
.choice:hover .choice-body { border-color: color-mix(in srgb, var(--t) 45%, white); transform: translateY(-1px); }
.choice input:checked + .choice-body { border-color: var(--t); background: var(--t50); box-shadow: 0 0 0 3px color-mix(in srgb, var(--t) 18%, transparent); }
.choice input:focus-visible + .choice-body { outline: 3px solid rgba(91,79,245,.45); outline-offset: 2px; }
.choice-icon { grid-row: span 2; width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--t50); font-size: 18px; }
.choice input:checked + .choice-body .choice-icon { background: #fff; }
.choice-name { font-weight: 700; font-size: 14px; line-height: 1.25; }
.choice-meta { font-size: 12px; color: var(--muted); }

/* ==========================================================================
   APP (dashboard + staff)
   ========================================================================== */
.page-app, .page-auth, .page-message { background: linear-gradient(180deg, #f6f5ff 0, #fbfbfe 340px, #fff 100%); }
.workspace { max-width: var(--max); width: 100%; margin: 0 auto; padding: 40px 24px 60px; }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin-bottom: 26px; }
.page-head h1 { font-size: clamp(30px, 4vw, 42px); font-weight: 800; letter-spacing: -.035em; margin: 8px 0 6px; }
.page-head p { margin: 0; }
.crumbs { display: flex; gap: 8px; font-size: 14px; color: var(--muted); font-weight: 500; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--violet); }
.wave { display: inline-block; transform-origin: 70% 70%; animation: wave 2.4s ease-in-out 1; }
@keyframes wave { 0%,60%,100% { transform: rotate(0); } 10%,30% { transform: rotate(14deg); } 20% { transform: rotate(-8deg); } 40% { transform: rotate(-4deg); } 50% { transform: rotate(10deg); } }
.auto-refresh { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: 14px; font-weight: 600; color: var(--ink-2); cursor: pointer; box-shadow: var(--shadow-sm); user-select: none; }
.auto-refresh .dot-live { color: var(--green); }
.auto-refresh input { accent-color: var(--violet); margin: 0; }
.auto-refresh input:not(:checked) ~ .dot-live { color: #c3c7d6; }
.auto-refresh input:not(:checked) ~ .dot-live::after { animation: none; }

.notice { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 14px; background: var(--green-50); border: 1px solid #c4ebd6; color: #0f6a45; font-weight: 600; margin-bottom: 22px; animation: slideIn .4s ease both; }
.notice-icon { width: 26px; height: 26px; border-radius: 50%; background: var(--green); color: #fff; display: grid; place-items: center; font-size: 13px; flex: none; }
.notice span:nth-child(2) { flex: 1; }
.notice-close { border: 0; background: transparent; color: inherit; font-size: 22px; line-height: 1; cursor: pointer; padding: 0 4px; opacity: .6; }
.notice-close:hover { opacity: 1; }
@keyframes slideIn { from { opacity: 0; transform: translateY(-8px); } }

.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 22px; }
.stat { display: flex; align-items: center; gap: 14px; padding: 18px 20px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); position: relative; overflow: hidden; }
.stat::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--t); }
.stat-icon { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--t50); font-size: 22px; flex: none; }
.stat small { display: block; color: var(--muted); font-size: 13px; font-weight: 600; }
.stat strong { font-family: var(--display); font-size: 20px; letter-spacing: -.02em; }

.queue-list { display: grid; gap: 16px; margin-bottom: 22px; }
.live-ticket { display: flex; align-items: center; gap: 26px; padding: 24px 28px; border-radius: var(--radius-lg); background: radial-gradient(90% 140% at 100% 0%, rgba(233,75,155,.10), transparent 60%), radial-gradient(70% 120% at 0% 100%, rgba(91,79,245,.12), transparent 60%), #fff; border: 1px solid #e3e0ff; box-shadow: var(--shadow); }
.live-ticket .ring { --size: 110px; }
.live-ticket.is-called { border-color: #b8ece3; background: radial-gradient(90% 140% at 100% 0%, rgba(15,181,160,.15), transparent 60%), #fff; }
.live-ticket.is-called .ring::before { background: conic-gradient(var(--teal), #34d399, var(--teal)); }
.live-ticket.is-called .ring-inner strong { background: linear-gradient(120deg, var(--teal), #34d399); -webkit-background-clip: text; background-clip: text; }
.live-ticket.is-called .ring { animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(15,181,160,.35); } 50% { box-shadow: 0 0 0 14px rgba(15,181,160,0); } }
.lt-body { flex: 1; min-width: 0; }
.lt-body h2 { font-size: 26px; margin: 10px 0 4px; }
.lt-body p { margin: 0 0 4px; color: var(--ink-2); }
.badge-waiting .dot-live, .badge-called .dot-live { width: 7px; height: 7px; }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; align-items: start; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px; margin-bottom: 22px; box-shadow: var(--shadow-sm); }
.panel-head { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 4px; }
.panel-head h2 { font-size: 21px; margin: 2px 0 2px; }
.panel-head p { margin: 0; font-size: 15px; }
.p-icon { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; font-size: 21px; flex: none; }

.empty { text-align: center; padding: 34px 20px; margin-top: 18px; border: 1.5px dashed var(--line-2); border-radius: var(--radius); color: var(--muted); }
.empty > span { font-size: 34px; display: block; margin-bottom: 8px; }
.empty p { margin: 0; }
.empty-info { border-style: solid; border-color: #e3e0ff; background: var(--bg-tint); color: var(--ink-2); }

.table-wrap { overflow-x: auto; margin-top: 18px; }
.table { width: 100%; border-collapse: separate; border-spacing: 0; text-align: left; }
.table th { padding: 12px 16px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); background: var(--bg-soft); border-bottom: 1px solid var(--line); }
.table th:first-child { border-radius: 12px 0 0 12px; }
.table th:last-child { border-radius: 0 12px 12px 0; }
.table td { padding: 14px 16px; border-bottom: 1px solid var(--line); font-size: 15px; vertical-align: middle; }
.table tbody tr { transition: background .15s; }
.table tbody tr:hover { background: #fafaff; }
.table tbody tr:last-child td { border-bottom: 0; }
.table form { margin: 0; }
.td-action { text-align: right; }
.row-called { background: #f2fcfa; }
.cust { display: inline-flex; align-items: center; gap: 10px; }
.pos { display: inline-grid; place-items: center; min-width: 28px; height: 28px; border-radius: 8px; background: var(--bg-soft); font-weight: 700; font-size: 13px; }

.call-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; margin-top: 18px; }
.call-card { margin: 0; padding: 18px; border-radius: var(--radius); border: 1.5px solid var(--line); background: #fff; display: flex; flex-direction: column; gap: 10px; position: relative; overflow: hidden; transition: transform .2s, box-shadow .2s; }
.call-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--t); }
.call-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.call-card h3 { font-size: 17px; margin: 0; flex: 1; }
.call-top { display: flex; justify-content: space-between; align-items: center; }
.call-top .choice-icon { grid-row: auto; }
.call-count { font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: var(--t50); color: var(--ink-2); }
.call-card.is-empty .call-count { background: var(--bg-soft); color: var(--muted); }

/* message page */
.message-wrap { display: grid; place-items: center; padding: 70px 24px; }
.message-card { max-width: 520px; width: 100%; text-align: center; background: #fff; border: 1px solid var(--line); border-radius: 28px; padding: 50px 40px; box-shadow: var(--shadow-lg); }
.message-icon { width: 76px; height: 76px; border-radius: 24px; display: grid; place-items: center; margin: 0 auto 22px; font-size: 36px; background: var(--violet-50); }
.message-card h1 { font-size: 32px; font-weight: 800; letter-spacing: -.03em; }
.message-card p { font-size: 17px; }
.message-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 26px; }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1000px) {
  .hero-inner { grid-template-columns: 1fr; gap: 50px; }
  .hero-visual { max-width: 520px; margin: 0 auto; width: 100%; }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .auth-wrap { grid-template-columns: 1fr; max-width: 560px; }
  .auth-side { display: none; }
}
@media (max-width: 820px) {
  .nav-burger { display: inline-flex; flex-direction: column; justify-content: center; gap: 5px; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line); background: #fff; cursor: pointer; padding: 0 11px; }
  .nav-burger span { display: block; height: 2px; border-radius: 2px; background: var(--ink); transition: transform .25s, opacity .25s; }
  .site-nav { position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 4px; padding: 14px 20px 20px; background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); transform: translateY(-8px); opacity: 0; visibility: hidden; transition: .2s ease; }
  .nav-toggle:checked ~ .site-nav { transform: none; opacity: 1; visibility: visible; }
  .nav-toggle:checked + .nav-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle:checked + .nav-burger span:nth-child(2) { opacity: 0; }
  .nav-toggle:checked + .nav-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .nav-link { padding: 12px 14px; }
  .nav-user { margin: 6px 0; align-self: flex-start; }
  .site-nav .btn, .nav-form, .nav-form .btn { margin: 4px 0 0; width: 100%; }
  .two-col, .split, .steps, .stat-row { grid-template-columns: 1fr; }
  .stats-band { grid-template-columns: repeat(2, 1fr); row-gap: 18px; }
  .stats-band div:nth-child(3) { border-left: 0; }
  .section { padding: 70px 20px; }
  .split-card { padding: 30px; }
  .float-card { display: none; }
}
@media (max-width: 640px) {
  .hero { padding: 50px 20px 70px; }
  .lead { font-size: 17px; }
  .hero-ctas .btn { width: 100%; }
  .ticket-main { flex-direction: column; text-align: center; }
  .ticket-meta { justify-content: center; gap: 14px; }
  .service-grid, .feature-grid { grid-template-columns: 1fr; }
  .choice-grid { grid-template-columns: 1fr; }
  .auth-wrap { width: calc(100% - 32px); margin: 24px auto; }
  .auth-card { padding: 30px 22px; }
  .workspace { padding: 28px 16px 40px; }
  .panel { padding: 20px; }
  .live-ticket { flex-direction: column; text-align: center; padding: 24px 20px; }
  .live-ticket form, .live-ticket .btn { width: 100%; }
  .message-card { padding: 38px 22px; }
  .message-actions .btn { flex: 1 1 100%; }
  .footer-cols { gap: 40px; }
  .footer-bottom { flex-direction: column; }
  /* tables become cards */
  .table thead { display: none; }
  .table, .table tbody, .table tr, .table td { display: block; width: 100%; }
  .table tr { border: 1px solid var(--line); border-radius: 14px; padding: 6px 4px; margin-bottom: 12px; background: #fff; }
  .table td { border: 0; padding: 8px 14px; display: flex; justify-content: space-between; align-items: center; gap: 12px; text-align: right; }
  .table td::before { content: attr(data-label); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); text-align: left; }
  .table td[data-label=""]::before { content: none; }
  .table td.td-action:empty { display: none; }
  .table td.td-action { justify-content: flex-end; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* auth error alert */
.alert-error { display: flex; align-items: flex-start; gap: 12px; margin-top: 18px; padding: 14px 16px; border-radius: 14px; background: var(--red-50); border: 1px solid #f6c9c5; color: #a3261e; font-weight: 600; font-size: 15px; animation: slideIn .4s ease both; }
.alert-error a { color: #a3261e; text-decoration: underline; white-space: nowrap; }
.alert-icon { width: 24px; height: 24px; border-radius: 50%; background: var(--red); color: #fff; display: grid; place-items: center; font-size: 14px; font-weight: 800; flex: none; }
