/* ============================================================
   BMS · Client Hub — Futuristic dark design system
   Animated aurora background · glassmorphism · neon glow ·
   smooth transitions. Vanilla, mobile-first, performant.
   ============================================================ */

/* ---------- Design tokens ---------- */
:root {
  /* Brand / neon (overridable per business via --accent) */
  --accent: #7c83ff;
  --accent-600: #6366f1;
  --accent-400: #9aa0ff;
  --accent-2: #c084fc;
  --cyan: #22d3ee;
  --brand-grad: linear-gradient(135deg, #6366f1 0%, #a855f7 55%, #ec4899 100%);
  --glow: 0 0 0 1px rgba(124,131,255,.35), 0 8px 30px -6px rgba(124,131,255,.55);

  /* Dark surfaces */
  --bg: #06070f;
  --bg-2: #0a0c1a;
  --surface: rgba(255, 255, 255, .045);
  --surface-solid: #11131f;
  --surface-2: rgba(255, 255, 255, .07);
  --surface-3: rgba(255, 255, 255, .12);
  --border: rgba(255, 255, 255, .09);
  --border-strong: rgba(255, 255, 255, .16);
  --hairline: rgba(255, 255, 255, .07);

  /* Text */
  --text: #eef1fb;
  --text-muted: #a3abc7;
  --text-soft: #6e768f;

  /* Semantic (neon-on-dark) */
  --success: #34d399; --success-bg: rgba(52, 211, 153, .14);
  --danger: #fb7185;  --danger-bg: rgba(251, 113, 133, .14);
  --warning: #fbbf24; --warning-bg: rgba(251, 191, 36, .14);
  --info: #38bdf8;    --info-bg: rgba(56, 189, 248, .14);

  /* Shape & motion */
  --radius: 18px;
  --radius-sm: 12px;
  --radius-lg: 26px;
  --radius-pill: 999px;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, .35);
  --shadow: 0 10px 30px -8px rgba(0, 0, 0, .55);
  --shadow-lg: 0 30px 70px -20px rgba(0, 0, 0, .75);
  --ring: 0 0 0 3px rgba(124, 131, 255, .28);
  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);

  /* Layout */
  --maxw: 720px;
  --header-h: 62px;
  --nav-h: 70px;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);

  --font: "Outfit", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-display: "Space Grotesk", var(--font);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100dvh;
  overscroll-behavior-y: none;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: none; }
a { color: var(--accent-400); text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.15; font-weight: 700; letter-spacing: -.01em; }
::selection { background: rgba(124, 131, 255, .35); }
:focus-visible { outline: none; box-shadow: var(--ring); border-radius: var(--radius-sm); }
::-webkit-scrollbar { width: 0; height: 0; }

/* ============================================================
   ANIMATED BACKGROUND
   ============================================================ */
.bg-fx { position: fixed; inset: 0; z-index: -1; overflow: hidden; background:
    radial-gradient(120% 90% at 50% -10%, #131736 0%, var(--bg-2) 45%, var(--bg) 100%); }
.orb { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; mix-blend-mode: screen; will-change: transform; }
.orb-1 { width: 60vw; height: 60vw; max-width: 480px; max-height: 480px; left: -12vw; top: -8vh;
  background: radial-gradient(circle, #6366f1, transparent 70%); animation: drift1 22s var(--ease) infinite; }
.orb-2 { width: 55vw; height: 55vw; max-width: 440px; max-height: 440px; right: -14vw; top: 18vh;
  background: radial-gradient(circle, #a855f7, transparent 70%); animation: drift2 26s var(--ease) infinite; }
.orb-3 { width: 50vw; height: 50vw; max-width: 420px; max-height: 420px; left: 12vw; bottom: -14vh;
  background: radial-gradient(circle, #22d3ee, transparent 70%); animation: drift3 30s var(--ease) infinite; opacity: .4; }
@keyframes drift1 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(14vw, 10vh) scale(1.15); } }
@keyframes drift2 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(-12vw, 14vh) scale(1.2); } }
@keyframes drift3 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(10vw, -12vh) scale(1.1); } }

.grid-fx {
  position: absolute; inset: -2px;
  background-image:
    linear-gradient(rgba(124,131,255,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(124,131,255,.06) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(120% 80% at 50% 0%, #000 0%, transparent 70%);
  mask-image: radial-gradient(120% 80% at 50% 0%, #000 0%, transparent 70%);
}
.aurora {
  position: absolute; inset: -20% -20% auto -20%; height: 70%;
  background: conic-gradient(from 180deg at 50% 50%, transparent, rgba(124,131,255,.10), transparent, rgba(192,132,252,.10), transparent);
  filter: blur(40px); opacity: .5; animation: spin 40s linear infinite;
}
.stars {
  position: absolute; inset: 0; opacity: .5;
  background-image:
    radial-gradient(1px 1px at 20% 30%, #fff, transparent),
    radial-gradient(1px 1px at 70% 60%, #cfe, transparent),
    radial-gradient(1px 1px at 40% 80%, #fff, transparent),
    radial-gradient(1px 1px at 85% 25%, #dde, transparent),
    radial-gradient(1px 1px at 55% 15%, #fff, transparent),
    radial-gradient(1px 1px at 10% 70%, #cdf, transparent);
  background-repeat: repeat; animation: twinkle 6s ease-in-out infinite;
}
@keyframes twinkle { 0%,100% { opacity: .35; } 50% { opacity: .7; } }
.noise {
  position: absolute; inset: 0; opacity: .035; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ============================================================
   APP SHELL
   ============================================================ */
.hub { display: flex; flex-direction: column; min-height: 100dvh; }

.hub-header {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; gap: 12px;
  height: calc(var(--header-h) + var(--safe-top));
  padding: var(--safe-top) 16px 0;
  background: linear-gradient(180deg, rgba(10,12,26,.85), rgba(10,12,26,.55));
  backdrop-filter: saturate(160%) blur(16px);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  border-bottom: 1px solid var(--hairline);
}
.hub-header__brand { display: flex; align-items: center; gap: 10px; min-width: 0; color: var(--text); text-decoration: none; cursor: pointer; }
.hub-header__brand:active { opacity: .8; }
.hub-header__logo-wrap {
  position: relative; width: 38px; height: 38px; border-radius: 12px; flex: 0 0 auto;
  padding: 1.5px; background: var(--brand-grad); box-shadow: 0 0 18px -2px rgba(124,131,255,.6);
}
.hub-header__logo { width: 100%; height: 100%; border-radius: 10.5px; object-fit: cover; background: var(--surface-solid); }
.hub-header__name { font-family: var(--font-display); font-size: 1.05rem; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hub-header__spacer { flex: 1; }
.hub-header__action {
  width: 40px; height: 40px; display: grid; place-items: center; border-radius: var(--radius-pill);
  color: var(--text-muted); border: 1px solid transparent; transition: all .2s var(--ease);
}
.hub-header__action:hover, .hub-header__action:active { background: var(--surface-2); color: var(--text); border-color: var(--border); }
#langToggle { width: auto; gap: 5px; padding: 0 11px; display: inline-flex; }
.hub-header__lang { font-size: .7rem; font-weight: 700; letter-spacing: .04em; }

.hub-main {
  flex: 1; width: 100%; max-width: var(--maxw); margin: 0 auto;
  padding: 20px 16px calc(var(--nav-h) + var(--safe-bottom) + 28px);
}
@media (min-width: 760px) { .hub-main { padding-bottom: 44px; } }

/* ---------- Bottom nav ---------- */
.hub-nav {
  position: fixed; inset: auto 0 0 0; z-index: 40;
  display: flex; justify-content: space-around; align-items: stretch;
  height: calc(var(--nav-h) + var(--safe-bottom)); padding-bottom: var(--safe-bottom);
  background: linear-gradient(0deg, rgba(8,10,20,.92), rgba(8,10,20,.7));
  backdrop-filter: saturate(160%) blur(18px); -webkit-backdrop-filter: saturate(160%) blur(18px);
  border-top: 1px solid var(--hairline);
}
.hub-nav__pill { /* glowing top edge */
  position: absolute; top: -1px; left: 10%; right: 10%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(124,131,255,.8), rgba(192,132,252,.8), transparent);
  box-shadow: 0 0 12px rgba(124,131,255,.7);
}
.hub-nav__item {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  font-size: .66rem; font-weight: 600; color: var(--text-soft); position: relative;
  transition: color .25s var(--ease); padding-top: 6px;
}
.hub-nav__item i { font-size: 1.18rem; transition: transform .3s var(--ease-spring), filter .25s var(--ease); }
.hub-nav__item.is-active { color: var(--accent-400); }
.hub-nav__item.is-active i { transform: translateY(-3px) scale(1.12); filter: drop-shadow(0 4px 10px rgba(124,131,255,.8)); }
.hub-nav__item.is-active::before {
  content: ""; position: absolute; top: 0; width: 30px; height: 3px; border-radius: 3px;
  background: var(--brand-grad); box-shadow: 0 0 10px rgba(124,131,255,.9);
}
@media (min-width: 760px) {
  /* Centered floating dock. A DEFINITE width is required: inside the
     flex-column shell, the auto side margins cancel the default stretch,
     so max-width alone collapses the bar to its content width. */
  .hub-nav { position: sticky; bottom: 22px; width: min(460px, calc(100% - 32px));
    margin: 26px auto 0; height: 64px;
    border-radius: var(--radius-pill); border: 1px solid var(--border); box-shadow: var(--shadow-lg); }
}

/* ============================================================
   CARDS
   ============================================================ */
.card {
  position: relative; background: linear-gradient(160deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
  border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow-sm), inset 0 1px 0 rgba(255,255,255,.05);
  padding: 18px; transition: transform .25s var(--ease), border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.card + .card { margin-top: 14px; }
a.card:hover, button.card:hover { transform: translateY(-2px); border-color: var(--border-strong); box-shadow: var(--shadow), 0 0 24px -10px rgba(124,131,255,.5); }
.card__title { font-size: 1.05rem; margin-bottom: 4px; }
.card__sub { color: var(--text-muted); font-size: .9rem; }

.section-title {
  display: flex; align-items: center; gap: 8px; font-family: var(--font-display);
  font-size: .8rem; font-weight: 600; text-transform: uppercase; letter-spacing: .12em;
  color: var(--text-soft); margin: 24px 4px 12px;
}
.section-title:first-child { margin-top: 4px; }
.section-title i { color: var(--accent-400); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; border-radius: var(--radius-lg);
  background: var(--brand-grad); background-size: 180% 180%; color: #fff; padding: 26px 22px;
  box-shadow: 0 20px 50px -16px rgba(124,131,255,.55); animation: heroShift 12s ease infinite;
}
@keyframes heroShift { 0%,100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
.hero::after { content: ""; position: absolute; inset: 0; background: radial-gradient(120% 90% at 85% -20%, rgba(255,255,255,.35), transparent 55%); pointer-events: none; }
.hero::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.07) 1px, transparent 1px); background-size: 26px 26px; opacity: .5; -webkit-mask-image: radial-gradient(100% 100% at 100% 0, #000, transparent 70%); mask-image: radial-gradient(100% 100% at 100% 0, #000, transparent 70%); }
.hero h1 { font-size: 1.55rem; position: relative; }
.hero p { opacity: .94; position: relative; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  --b: var(--accent-600); --fg: #fff; position: relative; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 20px; border-radius: var(--radius-pill); background: var(--b); color: var(--fg);
  font-weight: 600; font-size: .95rem; line-height: 1; border: 1px solid transparent;
  transition: transform .15s var(--ease), box-shadow .25s var(--ease), filter .2s var(--ease);
}
.btn::after { /* shine sweep */
  content: ""; position: absolute; top: 0; left: -120%; width: 60%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.35), transparent);
  transform: skewX(-18deg); transition: left .6s var(--ease);
}
.btn:hover::after { left: 130%; }
.btn:hover { filter: brightness(1.08); }
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .5; pointer-events: none; }
.btn--block { width: 100%; }
.btn--lg { padding: 16px 24px; font-size: 1rem; }
.btn--grad { background: var(--brand-grad); box-shadow: 0 10px 28px -10px rgba(124,131,255,.8); }
.btn--grad:hover { box-shadow: 0 14px 36px -10px rgba(124,131,255,.95); }
.btn--ghost { background: var(--surface-2); color: var(--text); border-color: var(--border); }
.btn--ghost:hover { background: var(--surface-3); border-color: var(--border-strong); }
.btn--success { background: linear-gradient(135deg, #10b981, #34d399); color: #04130d; box-shadow: 0 10px 26px -12px rgba(52,211,153,.8); }
.btn--danger { background: linear-gradient(135deg, #f43f5e, #fb7185); box-shadow: 0 10px 26px -12px rgba(251,113,133,.7); }
.btn--outline { background: transparent; color: var(--accent-400); border: 1.5px solid var(--accent-600); }
.btn--outline:hover { background: rgba(124,131,255,.12); }

/* ============================================================
   FORMS
   ============================================================ */
.field { margin-bottom: 15px; }
.field__label { display: block; font-size: .82rem; font-weight: 600; color: var(--text-muted); margin-bottom: 7px; }
.input, .select, .textarea {
  width: 100%; padding: 13px 15px; background: var(--surface-2); color: var(--text);
  border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease);
}
.input::placeholder, .textarea::placeholder { color: var(--text-soft); }
.input:focus, .select:focus, .textarea:focus { border-color: var(--accent-600); box-shadow: var(--ring); background: var(--surface-3); }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23a3abc7' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; }
.select option { background: var(--surface-solid); color: var(--text); }
.textarea { resize: vertical; min-height: 92px; }
.field__hint { font-size: .76rem; color: var(--text-soft); margin-top: 6px; }
.field__error { font-size: .8rem; color: var(--danger); margin-top: 6px; }

/* intl-tel-input ships its wrapper as inline-block, which leaves the phone
   field narrower than full-width buttons below it. Force the injected
   wrapper to fill the field so the tel input and buttons line up.
   (!important: the plugin CSS is lazy-loaded AFTER hub.css.) */
.iti { display: block !important; width: 100%; }
.iti > .input, .iti input[type="tel"] { width: 100%; }

/* ---------- Badges ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 5px; padding: 5px 11px; border-radius: var(--radius-pill);
  font-size: .74rem; font-weight: 700; letter-spacing: .02em; border: 1px solid transparent; backdrop-filter: blur(4px);
}
.badge--success { background: var(--success-bg); color: var(--success); border-color: rgba(52,211,153,.3); }
.badge--danger { background: var(--danger-bg); color: var(--danger); border-color: rgba(251,113,133,.3); }
.badge--warning { background: var(--warning-bg); color: var(--warning); border-color: rgba(251,191,36,.3); }
.badge--info { background: var(--info-bg); color: var(--info); border-color: rgba(56,189,248,.3); }
.badge--muted { background: var(--surface-2); color: var(--text-muted); border-color: var(--border); }
.badge__dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 8px currentColor; animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .4; } }

/* ============================================================
   BOOKING WIZARD
   ============================================================ */
/* Sticky step actions: keep Back / Continue reachable without scrolling
   to the end of long service / professional lists that exceed the viewport. */
.bk-nav {
  position: sticky;
  bottom: calc(var(--nav-h) + var(--safe-bottom) + 10px);
  z-index: 25;
  display: flex; align-items: center; gap: 10px;
  margin-top: 18px; padding: 12px 0 6px;
}
.bk-nav::before {
  content: ""; position: absolute; inset: -6px -16px -2px; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, rgba(6,7,15,0), rgba(6,7,15,.82) 32%, rgba(6,7,15,.95));
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
@media (min-width: 760px) {
  /* On desktop the bottom nav is an in-flow centered dock (not a fixed
     overlay), so a sticky full-width action bar collides with it. Let the
     actions sit inline at the end of the step instead. */
  .bk-nav { position: static; }
  .bk-nav::before { display: none; }
}

/* ---------- Month calendar (date picker) ---------- */
.cal { padding: 16px 14px; }
.cal__head { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; }
.cal__title { flex: 1; text-align: center; font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; }
.cal__nav {
  width: 38px; height: 38px; flex: 0 0 auto; display: grid; place-items: center;
  border-radius: var(--radius-pill); color: var(--text-muted);
  border: 1px solid transparent; transition: all .2s var(--ease);
}
.cal__nav:hover:not(:disabled) { background: var(--surface-2); color: var(--text); border-color: var(--border); }
.cal__nav:disabled { opacity: .25; cursor: default; }
.cal__weekdays, .cal__grid { display: grid; grid-template-columns: repeat(7, 1fr); }
.cal__weekdays { margin-bottom: 6px; }
.cal__weekday { text-align: center; font-size: .72rem; font-weight: 600; letter-spacing: .02em; color: var(--text-soft); padding: 4px 0; }
.cal__grid { gap: 4px; }
.cal__day {
  aspect-ratio: 1 / 1; display: grid; place-items: center; border-radius: var(--radius-sm);
  font-weight: 600; font-size: .95rem; color: var(--text); border: 1.5px solid transparent;
  transition: background .15s var(--ease), border-color .15s var(--ease), transform .12s var(--ease);
}
.cal__day:hover:not(:disabled):not(.is-selected) { background: var(--surface-2); }
.cal__day:active:not(:disabled) { transform: scale(.92); }
.cal__day.is-muted, .cal__day:disabled { color: var(--text-soft); opacity: .35; cursor: default; }
.cal__day.is-today { border-color: var(--accent-600); color: var(--accent-400); }
.cal__day.is-selected, .cal__day.is-selected.is-today {
  background: var(--brand-grad); color: #fff; border-color: transparent;
  box-shadow: 0 8px 22px -8px rgba(124,131,255,.8);
}

/* ---------- Available time slots ---------- */
.slots-title { display: flex; align-items: center; gap: 8px; margin: 4px 2px 14px; font-size: .9rem; font-weight: 600; color: var(--text-muted); }
.slots-title i { color: var(--accent-400); }
.slots-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; }
.slot {
  padding: 13px 8px; border-radius: var(--radius-sm); background: var(--surface-2);
  border: 1.5px solid var(--border); color: var(--text); font-weight: 600; font-size: .9rem;
  text-align: center; transition: all .15s var(--ease);
}
.slot:hover:not(.is-on) { background: var(--surface-3); border-color: var(--border-strong); }
.slot:active { transform: scale(.96); }
.slot.is-on { background: var(--brand-grad); color: #fff; border-color: transparent; box-shadow: 0 8px 20px -8px rgba(124,131,255,.8); }

/* ============================================================
   BUSINESS PROFILE
   ============================================================ */
.biz-hero { position: relative; text-align: center; padding: 6px 0 2px; }
.biz-hero__top { position: absolute; top: 0; right: 0; display: flex; gap: 8px; }
.biz-round {
  width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%;
  background: var(--surface-2); border: 1px solid var(--border); color: var(--text-muted);
  transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .12s var(--ease);
}
.biz-round:hover { background: var(--surface-3); color: var(--text); }
.biz-round:active { transform: scale(.92); }
.biz-round.is-fav { background: var(--danger-bg); color: var(--danger); border-color: rgba(251,113,133,.4); }
.biz-hero__logo {
  width: 96px; height: 96px; border-radius: 24px; object-fit: cover; padding: 6px;
  margin: 8px auto 14px; background: #fff;
  box-shadow: var(--shadow), 0 0 44px -12px rgba(124,131,255,.7);
}
.biz-status {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 15px; margin-bottom: 12px;
  border-radius: var(--radius-pill); background: var(--surface-2); border: 1px solid var(--border);
  font-size: .82rem; font-weight: 600;
}
.biz-status__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--success); box-shadow: 0 0 8px currentColor; }
.biz-status.is-closed { color: var(--danger); }
.biz-status.is-closed .biz-status__dot { background: var(--danger); }
.biz-hero h1 { font-size: 1.9rem; margin-bottom: 8px; line-height: 1.1; }
.biz-meta { display: inline-flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px 9px; color: var(--text-muted); font-size: .92rem; }
.biz-meta i.fa-tag { color: var(--accent-400); }
.biz-meta .star { color: #f59e0b; }
.biz-addr { color: var(--text-muted); font-size: .9rem; margin-top: 10px; }
.biz-addr i { color: var(--accent-400); }

.biz-actions { display: flex; justify-content: space-around; gap: 4px; margin-top: 16px; padding: 16px 8px; }
.biz-act { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 8px; color: var(--text); }
.biz-act__icon {
  width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center;
  color: #fff; font-size: 1.2rem; box-shadow: var(--shadow-sm); transition: transform .15s var(--ease);
}
.biz-act:hover .biz-act__icon { transform: translateY(-2px); }
.biz-act:active .biz-act__icon { transform: scale(.92); }
.biz-act span:last-child { font-size: .72rem; font-weight: 600; color: var(--text-muted); white-space: nowrap; }
.biz-act--login .biz-act__icon, .biz-act--book .biz-act__icon { background: var(--brand-grad); }
.biz-act--call .biz-act__icon { background: linear-gradient(135deg, #10b981, #22c55e); }
.biz-act--dir .biz-act__icon { background: linear-gradient(135deg, #3b82f6, #2563eb); }
.biz-act--more .biz-act__icon { background: var(--surface-3); color: var(--text-muted); }

.biz-tabs { display: flex; gap: 8px; overflow-x: auto; padding: 4px 0 8px; margin: 20px 0 4px; -webkit-overflow-scrolling: touch; }
.biz-tab {
  flex: 0 0 auto; display: inline-flex; align-items: center; gap: 7px; padding: 9px 16px;
  border-radius: var(--radius-pill); background: var(--surface-2); border: 1px solid var(--border);
  color: var(--text-muted); font-weight: 600; font-size: .9rem; transition: all .2s var(--ease);
}
.biz-tab i { font-size: .88rem; }
.biz-tab:not(.is-active):hover { background: var(--surface-3); color: var(--text); }
.biz-tab.is-active { background: var(--brand-grad); color: #fff; border-color: transparent; box-shadow: 0 8px 20px -10px rgba(124,131,255,.85); }

/* Share sheet + "More" menu (inside modal) */
.share-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 6px; }
.share-opt {
  display: flex; flex-direction: column; align-items: center; gap: 7px; padding: 14px 4px;
  border-radius: var(--radius-sm); background: var(--surface-2); border: 1px solid var(--border);
  color: var(--text); font-size: .72rem; font-weight: 600; transition: background .15s var(--ease);
}
.share-opt:hover { background: var(--surface-3); }
.share-opt i { font-size: 1.5rem; }
.share-opt--wa i { color: #25d366; }
.share-opt--fb i { color: #1877f2; }
.share-opt--copy i { color: var(--accent-400); }
.menu-list { display: flex; flex-direction: column; gap: 2px; }
.menu-item { display: flex; align-items: center; gap: 13px; width: 100%; padding: 14px 12px; border-radius: var(--radius-sm); color: var(--text); font-weight: 600; text-align: left; transition: background .15s var(--ease); }
.menu-item:hover { background: var(--surface-2); }
.menu-item i { width: 22px; text-align: center; color: var(--accent-400); }

/* ============================================================
   TOASTS
   ============================================================ */
.toast-stack { position: fixed; left: 50%; top: calc(var(--safe-top) + 14px); transform: translateX(-50%); z-index: 90; display: flex; flex-direction: column; gap: 8px; width: min(92vw, 420px); }
.toast {
  display: flex; align-items: center; gap: 10px; padding: 13px 16px; border-radius: var(--radius-sm);
  background: rgba(20,23,38,.92); color: var(--text); border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-lg); backdrop-filter: blur(14px); animation: toast-in .35s var(--ease-spring);
}
.toast.is-out { animation: toast-out .25s var(--ease) forwards; }
.toast i { font-size: 1.15rem; }
.toast--success i { color: var(--success); filter: drop-shadow(0 0 6px rgba(52,211,153,.7)); }
.toast--danger i { color: var(--danger); filter: drop-shadow(0 0 6px rgba(251,113,133,.7)); }
.toast--info i { color: var(--info); }
.toast--warning i { color: var(--warning); }
@keyframes toast-in { from { opacity: 0; transform: translateY(-14px) scale(.96); } }
@keyframes toast-out { to { opacity: 0; transform: translateY(-14px); } }

/* ============================================================
   MODAL
   ============================================================ */
.modal-backdrop { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 20px; background: rgba(3,4,10,.7); backdrop-filter: blur(6px); animation: fade-in .2s var(--ease); }
.modal {
  width: min(94vw, 440px); max-height: 88dvh; overflow: auto; padding: 24px;
  background: linear-gradient(160deg, rgba(28,31,50,.96), rgba(17,19,31,.96));
  border: 1px solid var(--border-strong); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg), 0 0 60px -20px rgba(124,131,255,.5); animation: modal-in .3s var(--ease-spring);
}
.modal__title { font-size: 1.2rem; margin-bottom: 8px; }
.modal__text { color: var(--text-muted); }
.modal__actions { display: flex; gap: 10px; margin-top: 22px; }
.modal__actions .btn { flex: 1; }
@keyframes fade-in { from { opacity: 0; } }
@keyframes modal-in { from { opacity: 0; transform: translateY(18px) scale(.96); } }

/* ============================================================
   LOADER
   ============================================================ */
.hub-loader { position: fixed; inset: 0; z-index: 100; display: flex; flex-direction: column; align-items: center; justify-content: center; background: var(--bg); transition: opacity .4s var(--ease); }
.hub-loader.is-hidden { opacity: 0; pointer-events: none; }
.loader-core { position: relative; width: 76px; height: 76px; display: grid; place-items: center; }
.loader-ring { position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(from 0deg, transparent, var(--accent), var(--accent-2), transparent); -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 0); mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 0); animation: spin 1s linear infinite; }
.loader-logo { width: 42px; height: 42px; border-radius: 11px; object-fit: cover; }
.spinner { width: 40px; height: 40px; border-radius: 50%; border: 3px solid var(--border); border-top-color: var(--accent); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.skeleton { background: linear-gradient(100deg, var(--surface) 30%, var(--surface-2) 50%, var(--surface) 70%); background-size: 200% 100%; animation: shimmer 1.4s infinite; border-radius: var(--radius); border: 1px solid var(--hairline); }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ---------- States ---------- */
.state { text-align: center; padding: 48px 20px; color: var(--text-muted); }
.state__icon { width: 70px; height: 70px; margin: 0 auto 16px; border-radius: 50%; display: grid; place-items: center; font-size: 1.7rem; background: var(--surface-2); color: var(--accent-400); border: 1px solid var(--border); box-shadow: inset 0 0 20px -6px rgba(124,131,255,.5); }
.state__title { color: var(--text); font-size: 1.15rem; margin-bottom: 6px; font-family: var(--font-display); }

/* ============================================================
   UTILITIES
   ============================================================ */
.row { display: flex; align-items: center; gap: 10px; }
.between { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.col { display: flex; flex-direction: column; }
.gap-sm { gap: 8px; } .gap { gap: 14px; } .gap-lg { gap: 20px; }
.grid-2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }

/* Two-column form rows on phones; collapse to one on very narrow screens
   so inputs never overflow. Use .field--full to make a field span both. */
.form-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 14px; }
.form-grid > .field--full { grid-column: 1 / -1; }
@media (max-width: 359px) {
  .grid-2 { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
}
.muted { color: var(--text-muted); }
.soft { color: var(--text-soft); }
.small { font-size: .85rem; }
.center { text-align: center; }
.mt { margin-top: 14px; } .mt-lg { margin-top: 22px; }
.hidden { display: none !important; }
.fade-in { animation: fade-in .3s var(--ease); }

/* ---------- View transitions (staggered entrance) ---------- */
.view-enter > * { opacity: 0; animation: rise .5s var(--ease) forwards; }
.view-enter > *:nth-child(1) { animation-delay: .02s; }
.view-enter > *:nth-child(2) { animation-delay: .07s; }
.view-enter > *:nth-child(3) { animation-delay: .12s; }
.view-enter > *:nth-child(4) { animation-delay: .17s; }
.view-enter > *:nth-child(5) { animation-delay: .22s; }
.view-enter > *:nth-child(6) { animation-delay: .27s; }
.view-enter > *:nth-child(n+7) { animation-delay: .3s; }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .view-enter > * { opacity: 1; }
}
