/* ============================================================
   EventHub — Design System
   Shared by public site + backoffice
   ============================================================ */

:root {
  --font-display: "Plus Jakarta Sans", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, sans-serif;

  --primary: #5145cd;
  --primary-600: #4638bb;
  --primary-700: #3a2da0;
  --primary-soft: #eeedfb;
  --primary-ring: rgba(81, 69, 205, .25);

  --accent: #f59e0b;
  --accent-soft: #fef3c7;

  --ink: #14151f;
  --ink-2: #3f4152;
  --muted: #6e7187;
  --faint: #a2a5b8;

  --line: #e7e8f0;
  --line-strong: #d8dae6;

  --bg: #f6f7fb;
  --surface: #ffffff;

  --success: #12855f;
  --success-soft: #e2f6ec;
  --warning: #b45309;
  --warning-soft: #fdf1dc;
  --danger: #c62b45;
  --danger-soft: #fce8ec;
  --info: #1d6fc2;
  --info-soft: #e3effb;

  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 18px;

  --shadow-xs: 0 1px 2px rgba(20, 21, 31, .06);
  --shadow-sm: 0 1px 3px rgba(20, 21, 31, .07), 0 1px 2px rgba(20, 21, 31, .05);
  --shadow-md: 0 10px 24px -6px rgba(20, 21, 31, .12), 0 4px 10px -4px rgba(20, 21, 31, .06);
  --shadow-lg: 0 24px 60px -12px rgba(30, 27, 75, .22);

  --sidebar-w: 264px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.2;
  letter-spacing: -.02em;
}

::selection { background: var(--primary); color: #fff; }

:focus-visible { outline: 3px solid var(--primary-ring); outline-offset: 2px; border-radius: 4px; }

.container { width: min(1160px, 92%); margin-inline: auto; }
.container--narrow { width: min(780px, 92%); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: var(--font-display);
  font-size: .93rem; font-weight: 600; line-height: 1;
  cursor: pointer; white-space: nowrap;
  transition: all .18s ease;
}
.btn svg { width: 17px; height: 17px; flex: none; }

.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 8px 18px -6px var(--primary-ring); }
.btn-primary:hover { background: var(--primary-600); transform: translateY(-1px); box-shadow: 0 12px 22px -6px var(--primary-ring); }

.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #26283a; transform: translateY(-1px); }

.btn-outline { background: transparent; border-color: var(--line-strong); color: var(--ink-2); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-soft); }

.btn-ghost { background: transparent; color: var(--muted); }
.btn-ghost:hover { color: var(--ink); background: rgba(20,21,31,.05); }

.btn-danger { background: var(--danger-soft); color: var(--danger); }
.btn-danger:hover { background: var(--danger); color: #fff; }

.btn-light { background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); }
.btn-light:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); }

.btn-glass { background: rgba(255,255,255,.14); color: #fff; border-color: rgba(255,255,255,.35); backdrop-filter: blur(6px); }
.btn-glass:hover { background: rgba(255,255,255,.24); }

.btn-sm { padding: 8px 14px; font-size: .85rem; }
.btn-block { width: 100%; }

.btn-icon {
  width: 34px; height: 34px; padding: 0; border-radius: 9px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line); background: #fff; color: var(--muted);
  transition: all .15s ease;
}
.btn-icon:hover { color: var(--primary); border-color: var(--primary); background: var(--primary-soft); }
.btn-icon.danger:hover { color: var(--danger); border-color: var(--danger); background: var(--danger-soft); }
.btn-icon svg { width: 16px; height: 16px; }

/* ---------- Badges & chips ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 11px; border-radius: 999px;
  font-size: .74rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
}
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge-success { background: var(--success-soft); color: var(--success); }
.badge-warning { background: var(--warning-soft); color: var(--warning); }
.badge-danger  { background: var(--danger-soft);  color: var(--danger); }
.badge-info    { background: var(--info-soft);    color: var(--info); }
.badge-neutral { background: #eef0f6; color: var(--muted); }
.badge-primary { background: var(--primary-soft); color: var(--primary-600); }

.tag {
  display: inline-block; padding: 3px 10px; border-radius: 6px;
  background: var(--primary-soft); color: var(--primary-700);
  font-size: .76rem; font-weight: 600;
}

.chip-row { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  position: relative; cursor: pointer;
  padding: 8px 18px; border-radius: 999px;
  border: 1px solid var(--line-strong);
  font-size: .88rem; font-weight: 500; color: var(--ink-2);
  background: #fff;
  transition: all .15s ease;
  user-select: none;
}
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip:hover { border-color: var(--primary); color: var(--primary); }
.chip.is-checked, .chip:has(input:checked) { background: var(--primary); border-color: var(--primary); color: #fff; box-shadow: 0 6px 14px -6px var(--primary-ring); }

/* ---------- Forms ---------- */
.field { margin-bottom: 18px; }
.field > label {
  display: block; margin-bottom: 7px;
  font-size: .86rem; font-weight: 600; color: var(--ink-2);
}
.req::after { content: " *"; color: var(--danger); }

.input, .select, .textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: #fff;
  font: inherit; font-size: .95rem; color: var(--ink);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.textarea { min-height: 110px; resize: vertical; }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236e7187' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 38px; }

.input:focus, .select:focus, .textarea:focus {
  outline: none; border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--primary-ring);
}

.input-error { border-color: var(--danger) !important; }
.error-text { display: block; margin-top: 6px; font-size: .8rem; color: var(--danger); font-weight: 500; }

.check {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 13px 15px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: #fff; cursor: pointer; transition: all .15s ease;
}
.check:hover { border-color: var(--primary); }
.check input { margin-top: 3px; accent-color: var(--primary); width: 16px; height: 16px; flex: none; }
.check span b { display: block; font-size: .9rem; color: var(--ink); font-weight: 600; }
.check span small { color: var(--muted); font-size: .82rem; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
.form-grid .span-2 { grid-column: span 2; }

.search-box { position: relative; }
.search-box svg { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--faint); pointer-events: none; }
.search-box .input { padding-left: 38px; }

/* ---------- Alerts ---------- */
.alert {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 14px 18px; border-radius: var(--radius);
  font-size: .92rem; font-weight: 500; margin-bottom: 20px;
  border: 1px solid transparent;
}
.alert svg { width: 19px; height: 19px; flex: none; margin-top: 1px; }
.alert-success { background: var(--success-soft); color: var(--success); border-color: #bfe8d4; }
.alert-error   { background: var(--danger-soft);  color: var(--danger);  border-color: #f5c6cf; }
.alert-info    { background: var(--info-soft);    color: var(--info);    border-color: #c4ddf3; }
.alert .alert-close { margin-left: auto; background: none; border: 0; color: inherit; opacity: .55; cursor: pointer; font-size: 1.1rem; line-height: 1; }
.alert .alert-close:hover { opacity: 1; }

/* ---------- Cards & panels ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-xs); overflow: hidden; }
.panel__head {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 18px 22px; border-bottom: 1px solid var(--line);
}
.panel__head h3 { font-size: 1.02rem; }
.panel__head p { font-size: .84rem; color: var(--muted); margin-top: 2px; }
.panel__body { padding: 22px; }

.empty-state { text-align: center; padding: 64px 24px; color: var(--muted); }
.empty-state svg { width: 52px; height: 52px; margin: 0 auto 14px; color: var(--faint); }
.empty-state h4 { font-size: 1.05rem; color: var(--ink); margin-bottom: 4px; }
.empty-state p { font-size: .9rem; max-width: 380px; margin-inline: auto; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; }
table.data { width: 100%; border-collapse: collapse; font-size: .92rem; }
table.data th {
  text-align: left; padding: 12px 22px;
  font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em;
  color: var(--faint);
  background: #fafbfe; border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
table.data td { padding: 14px 22px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.data tbody tr:last-child td { border-bottom: 0; }
table.data tbody tr { transition: background .12s ease; }
table.data tbody tr:hover { background: #fafaff; }
table.data td.num, table.data th.num { text-align: right; font-variant-numeric: tabular-nums; }

.cell-main { font-weight: 600; color: var(--ink); }
.cell-sub { font-size: .8rem; color: var(--muted); margin-top: 1px; }
.cell-actions { display: flex; gap: 7px; justify-content: flex-end; }

.row-total td { background: #fafbfe; font-weight: 700; }

/* ---------- Pagination ---------- */
.pagination { display: flex; justify-content: center; gap: 6px; margin-top: 26px; flex-wrap: wrap; }
.pagination a, .pagination span {
  min-width: 38px; height: 38px; padding: 0 12px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 10px; font-size: .88rem; font-weight: 600;
  border: 1px solid var(--line); background: #fff; color: var(--ink-2);
}
.pagination a:hover { border-color: var(--primary); color: var(--primary); }
.pagination .active span { background: var(--primary); border-color: var(--primary); color: #fff; }
.pagination .disabled span { color: var(--faint); background: #fafbfe; }
.pagination .dots span { border: 0; background: none; }

/* ============================================================
   PUBLIC SITE
   ============================================================ */

.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(20,21,31,.06);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 800; font-size: 1.18rem; color: var(--ink); letter-spacing: -.01em; }
.brand__mark {
  width: 36px; height: 36px; border-radius: 11px; flex: none;
  background: linear-gradient(135deg, var(--primary) 0%, #8b5cf6 100%);
  display: grid; place-items: center; color: #fff;
  box-shadow: 0 6px 14px -4px var(--primary-ring);
}
.brand__mark svg { width: 19px; height: 19px; }
.nav__links { display: flex; align-items: center; gap: 6px; }
.nav__link {
  padding: 9px 15px; border-radius: 999px;
  font-size: .92rem; font-weight: 500; color: var(--ink-2);
  transition: all .15s ease;
}
.nav__link:hover { color: var(--primary); background: var(--primary-soft); }
.nav__link.is-active { color: var(--primary); background: var(--primary-soft); font-weight: 600; }
.nav__actions { display: flex; align-items: center; gap: 12px; }
.nav__burger { display: none; background: none; border: 0; cursor: pointer; color: var(--ink); padding: 8px; }
.nav__burger svg { width: 26px; height: 26px; }

/* Hero */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(900px 480px at 85% -10%, rgba(139, 92, 246, .16), transparent 60%),
    radial-gradient(700px 420px at -10% 20%, rgba(81, 69, 205, .12), transparent 55%),
    linear-gradient(180deg, #fdfdff 0%, var(--bg) 100%);
  padding: 84px 0 96px;
}
.hero__inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero__badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 16px; border-radius: 999px;
  background: #fff; border: 1px solid var(--line);
  font-size: .82rem; font-weight: 600; color: var(--primary-700);
  box-shadow: var(--shadow-xs); margin-bottom: 22px;
}
.hero__badge svg { width: 15px; height: 15px; color: var(--accent); }
.hero h1 { font-size: clamp(2.3rem, 5vw, 3.4rem); font-weight: 800; }
.hero h1 em { font-style: normal; color: var(--primary); position: relative; }
.hero__lead { margin-top: 20px; font-size: 1.1rem; color: var(--muted); max-width: 520px; }
.hero__actions { display: flex; gap: 14px; margin-top: 34px; flex-wrap: wrap; }
.hero__proof { display: flex; align-items: center; gap: 14px; margin-top: 38px; }
.avatars { display: flex; }
.avatars span {
  width: 38px; height: 38px; border-radius: 50%;
  border: 2.5px solid #fff; margin-left: -10px;
  display: grid; place-items: center;
  font-size: .78rem; font-weight: 700; color: #fff;
}
.avatars span:first-child { margin-left: 0; }
.hero__proof p { font-size: .87rem; color: var(--muted); }
.hero__proof p b { color: var(--ink); }

/* Hero visual — floating cards */
.hero__visual { position: relative; min-height: 430px; }
.float-card {
  position: absolute; background: #fff; border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); border: 1px solid rgba(20,21,31,.05);
  animation: floaty 7s ease-in-out infinite;
}
.float-card.fc-1 { width: 300px; top: 6%; left: 8%; padding: 20px; z-index: 2; }
.float-card.fc-2 { width: 260px; bottom: 10%; left: 0; padding: 18px; animation-delay: -2.4s; z-index: 3; }
.float-card.fc-3 { width: 240px; top: 26%; right: 0; padding: 18px; animation-delay: -4.6s; }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-13px); } }

.fc-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.fc-icon { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; color: #fff; flex: none; }
.fc-icon svg { width: 20px; height: 20px; }
.fc-title { font-weight: 700; font-size: .92rem; }
.fc-sub { font-size: .78rem; color: var(--muted); }
.fc-bar { height: 7px; border-radius: 99px; background: #eef0f7; overflow: hidden; margin-top: 8px; }
.fc-bar i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--primary), #8b5cf6); }
.fc-price { text-align: right; font-family: var(--font-display); font-weight: 800; font-size: 1.25rem; }
.fc-check { display: flex; align-items: center; gap: 9px; font-size: .84rem; color: var(--ink-2); padding: 5px 0; }
.fc-check svg { width: 16px; height: 16px; color: var(--success); flex: none; }
.fc-badge { position: absolute; top: -13px; right: 16px; background: var(--accent); color: #fff; font-size: .7rem; font-weight: 800; letter-spacing: .05em; padding: 5px 12px; border-radius: 99px; box-shadow: 0 6px 14px -4px rgba(245,158,11,.5); }

/* Sections */
.section { padding: 96px 0; }
.section--tight { padding: 72px 0; }
.section--alt { background: linear-gradient(180deg, #fbfbfe, #f4f5fa); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 56px; }
.eyebrow {
  display: inline-block; padding: 6px 16px; border-radius: 999px;
  background: var(--primary-soft); color: var(--primary-700);
  font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em;
  margin-bottom: 16px;
}
.section-head h2 { font-size: clamp(1.7rem, 3.4vw, 2.35rem); font-weight: 800; }
.section-head p { margin-top: 14px; color: var(--muted); font-size: 1.02rem; }

.grid { display: grid; gap: 26px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* Feature cards */
.feat-card { padding: 30px 28px; transition: all .2s ease; }
.feat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.feat-icon {
  width: 50px; height: 50px; border-radius: 14px;
  display: grid; place-items: center; margin-bottom: 20px; color: #fff;
  box-shadow: 0 10px 20px -8px rgba(20,21,31,.25);
}
.feat-icon svg { width: 23px; height: 23px; }
.feat-card h3 { font-size: 1.08rem; margin-bottom: 8px; }
.feat-card p { font-size: .92rem; color: var(--muted); }

/* Service cards (public) */
.svc-card { display: flex; flex-direction: column; overflow: hidden; transition: all .2s ease; }
.svc-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.svc-thumb {
  height: 130px; display: grid; place-items: center; color: #fff; position: relative;
}
.svc-thumb svg { width: 44px; height: 44px; opacity: .95; }
.svc-thumb .tag { position: absolute; top: 14px; left: 14px; background: rgba(255,255,255,.92); }
.svc-body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.svc-body h3 { font-size: 1.06rem; margin-bottom: 8px; }
.svc-body p { font-size: .89rem; color: var(--muted); flex: 1; }
.svc-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 18px; padding-top: 16px; border-top: 1px dashed var(--line); }
.svc-price { font-family: var(--font-display); font-weight: 800; font-size: 1.18rem; color: var(--primary-700); }
.svc-unit { font-size: .78rem; color: var(--faint); font-weight: 500; }

/* Steps */
.steps { counter-reset: step; }
.step { position: relative; padding: 30px 28px; }
.step__num {
  counter-increment: step;
  width: 46px; height: 46px; border-radius: 14px;
  display: grid; place-items: center;
  background: var(--primary-soft); color: var(--primary-700);
  font-family: var(--font-display); font-weight: 800; font-size: 1.15rem;
  margin-bottom: 18px;
}
.step__num::before { content: counter(step, decimal-leading-zero); }
.step h3 { font-size: 1.05rem; margin-bottom: 8px; }
.step p { font-size: .91rem; color: var(--muted); }

/* Testimonials */
.quote-card { padding: 30px 28px; }
.quote-card .stars { display: flex; gap: 3px; color: var(--accent); margin-bottom: 16px; }
.quote-card .stars svg { width: 16px; height: 16px; }
.quote-card blockquote { font-size: .98rem; color: var(--ink-2); line-height: 1.7; }
.quote-who { display: flex; align-items: center; gap: 12px; margin-top: 20px; }
.quote-avatar { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 700; font-family: var(--font-display); flex: none; }
.quote-who b { display: block; font-size: .92rem; }
.quote-who small { color: var(--muted); font-size: .8rem; }

/* CTA band */
.cta-band {
  border-radius: 24px; padding: 64px 48px; text-align: center; color: #fff;
  background:
    radial-gradient(600px 300px at 90% -20%, rgba(139,92,246,.45), transparent 60%),
    radial-gradient(500px 280px at 8% 120%, rgba(245,158,11,.32), transparent 55%),
    linear-gradient(135deg, #211d47 0%, var(--primary-700) 55%, var(--primary) 100%);
  box-shadow: var(--shadow-lg);
  position: relative; overflow: hidden;
}
.cta-band h2 { color: #fff; font-size: clamp(1.6rem, 3.2vw, 2.2rem); font-weight: 800; }
.cta-band p { margin: 14px auto 30px; max-width: 520px; color: rgba(255,255,255,.82); font-size: 1.02rem; }
.cta-band .btn-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* Stats strip */
.stats-strip { display: grid; grid-template-columns: repeat(4, 1fr); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); }
.stats-strip > div { background: #fff; padding: 34px 20px; text-align: center; border-right: 1px solid var(--line); }
.stats-strip > div:last-child { border-right: 0; }
.stat-big { font-family: var(--font-display); font-size: 2rem; font-weight: 800; color: var(--primary-700); }
.stats-strip small { color: var(--muted); font-size: .86rem; font-weight: 500; }

/* Footer */
.footer { background: #12141f; color: #b9bccd; padding: 72px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 56px; }
.footer .brand { color: #fff; }
.footer p { font-size: .9rem; margin-top: 16px; max-width: 300px; color: #8b8fa5; }
.footer h4 { color: #fff; font-size: .95rem; margin-bottom: 18px; }
.footer li { margin-bottom: 11px; }
.footer a { font-size: .9rem; color: #8b8fa5; transition: color .15s; }
.footer a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 22px 0; display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; }
.footer-bottom small { color: #6d7188; font-size: .82rem; }

/* Page hero (inner public pages) */
.page-hero {
  background:
    radial-gradient(700px 340px at 90% -30%, rgba(139,92,246,.28), transparent 60%),
    radial-gradient(500px 300px at 0% 130%, rgba(245,158,11,.18), transparent 55%),
    linear-gradient(135deg, #1c1938 0%, #372a8c 60%, var(--primary) 100%);
  color: #fff; text-align: center; padding: 84px 0;
}
.page-hero h1 { color: #fff; font-size: clamp(1.9rem, 4vw, 2.7rem); font-weight: 800; }
.page-hero p { margin: 14px auto 0; max-width: 560px; color: rgba(255,255,255,.8); }
.crumbs { display: inline-flex; gap: 8px; align-items: center; margin-bottom: 18px; font-size: .84rem; color: rgba(255,255,255,.65); }
.crumbs a:hover { color: #fff; }

/* Booking form page */
.form-card { max-width: 860px; margin: -58px auto 0; position: relative; z-index: 5; }
.form-section-label {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-weight: 700; font-size: 1rem;
  margin: 30px 0 18px;
}
.form-section-label:first-child { margin-top: 0; }
.form-section-label i {
  width: 30px; height: 30px; border-radius: 9px; flex: none;
  background: var(--primary-soft); color: var(--primary-700);
  display: grid; place-items: center; font-style: normal; font-weight: 800; font-size: .85rem;
}
.thankyou { text-align: center; padding: 110px 0 120px; }
.thankyou__ring {
  width: 96px; height: 96px; border-radius: 50%; margin: 0 auto 28px;
  background: var(--success-soft); color: var(--success);
  display: grid; place-items: center;
  animation: pop .5s cubic-bezier(.34,1.56,.64,1);
}
.thankyou__ring svg { width: 44px; height: 44px; }
@keyframes pop { from { transform: scale(.4); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/* ============================================================
   AUTH
   ============================================================ */
.auth-wrap {
  min-height: 100vh; display: grid; place-items: center; padding: 40px 20px;
  background:
    radial-gradient(800px 400px at 110% -10%, rgba(139,92,246,.35), transparent 55%),
    radial-gradient(600px 350px at -10% 110%, rgba(245,158,11,.22), transparent 55%),
    linear-gradient(150deg, #17152f 0%, #2b2160 55%, var(--primary) 130%);
}
.auth-card {
  width: min(440px, 100%); background: #fff; border-radius: 22px;
  box-shadow: 0 40px 90px -20px rgba(10, 8, 40, .55);
  padding: 42px 38px;
}
.auth-brand { display: flex; justify-content: center; margin-bottom: 26px; }
.auth-card h1 { font-size: 1.5rem; text-align: center; }
.auth-card .auth-sub { text-align: center; color: var(--muted); font-size: .92rem; margin: 8px 0 28px; }
.auth-foot { text-align: center; margin-top: 22px; font-size: .88rem; color: var(--muted); }
.auth-foot a { color: var(--primary); font-weight: 600; }
.auth-demo {
  margin-top: 24px; padding: 14px 16px; border-radius: 12px;
  background: #fafbfe; border: 1px dashed var(--line-strong);
  font-size: .8rem; color: var(--muted); line-height: 1.6;
}
.auth-demo code { background: #eceefb; color: var(--primary-700); padding: 1px 7px; border-radius: 5px; font-size: .78rem; }

/* ============================================================
   BACKOFFICE
   ============================================================ */
.bo { display: flex; min-height: 100vh; }

.sidebar {
  width: var(--sidebar-w); flex: none;
  background: linear-gradient(180deg, #16182c 0%, #1b1e38 100%);
  color: #aeb2c9;
  display: flex; flex-direction: column;
  position: fixed; inset: 0 auto 0 0; z-index: 60;
  transition: transform .25s ease;
}
.sidebar__brand { display: flex; align-items: center; gap: 11px; padding: 22px 24px; color: #fff; font-family: var(--font-display); font-weight: 800; font-size: 1.14rem; }
.side-nav { flex: 1; padding: 8px 14px; overflow-y: auto; }
.side-label { padding: 18px 14px 8px; font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: #5d6180; }
.side-link {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 14px; margin-bottom: 3px; border-radius: 11px;
  font-size: .92rem; font-weight: 500; color: #aeb2c9;
  transition: all .15s ease;
}
.side-link svg { width: 19px; height: 19px; flex: none; opacity: .85; }
.side-link:hover { color: #fff; background: rgba(255,255,255,.06); }
.side-link.is-active { color: #fff; background: var(--primary); box-shadow: 0 8px 18px -6px rgba(81,69,205,.55); }
.side-link .count {
  margin-left: auto; background: rgba(255,255,255,.14); color: #dfe1ef;
  font-size: .72rem; font-weight: 700; padding: 2px 9px; border-radius: 99px;
}
.sidebar__foot { padding: 18px 14px; border-top: 1px solid rgba(255,255,255,.07); }
.side-user { display: flex; align-items: center; gap: 12px; padding: 8px 10px; }
.side-user img, .avatar-fallback {
  width: 38px; height: 38px; border-radius: 50%;
  background: linear-gradient(135deg, #8b5cf6, var(--primary));
  color: #fff; display: grid; place-items: center;
  font-weight: 700; font-family: var(--font-display); font-size: .9rem; flex: none;
}
.side-user div { line-height: 1.3; min-width: 0; }
.side-user b { display: block; color: #fff; font-size: .88rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side-user small { color: #7d819e; font-size: .74rem; }
.side-user form { margin-left: auto; }
.logout-btn { background: none; border: 0; color: #7d819e; cursor: pointer; padding: 8px; border-radius: 8px; display: grid; place-items: center; }
.logout-btn:hover { color: #ff8ba0; background: rgba(255,255,255,.06); }
.logout-btn svg { width: 18px; height: 18px; }

.main { flex: 1; margin-left: var(--sidebar-w); min-width: 0; display: flex; flex-direction: column; }

.topbar {
  position: sticky; top: 0; z-index: 40;
  height: 68px; background: rgba(255,255,255,.86); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  display: flex; align-items: center; gap: 18px; padding: 0 28px;
}
.topbar .search-box { width: min(360px, 40vw); }
.topbar-spacer { flex: 1; }
.topbar-burger { display: none; background: none; border: 0; color: var(--ink); cursor: pointer; padding: 6px; }
.topbar-burger svg { width: 24px; height: 24px; }

.content { padding: 30px 28px 60px; max-width: 1240px; width: 100%; margin-inline: auto; }

.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; flex-wrap: wrap; margin-bottom: 26px; }
.page-head h1 { font-size: 1.55rem; font-weight: 800; }
.page-head .crumb { display: flex; gap: 7px; font-size: .82rem; color: var(--muted); margin-bottom: 6px; }
.page-head .crumb a:hover { color: var(--primary); }
.page-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-bottom: 26px; }
.stat {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 22px; box-shadow: var(--shadow-xs);
  display: flex; flex-direction: column; gap: 4px;
  position: relative; overflow: hidden;
}
.stat__icon { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 10px; color: #fff; }
.stat__icon svg { width: 20px; height: 20px; }
.stat__value { font-family: var(--font-display); font-size: 1.65rem; font-weight: 800; letter-spacing: -.02em; }
.stat__label { font-size: .85rem; color: var(--muted); font-weight: 500; }
.stat__trend { font-size: .78rem; font-weight: 700; margin-top: 6px; }
.stat__trend.up { color: var(--success); }
.stat__trend.down { color: var(--danger); }

.toolbar { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; padding: 16px 22px; border-bottom: 1px solid var(--line); background: #fcfcff; border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
.toolbar .search-box { flex: 1; min-width: 200px; max-width: 320px; }
.toolbar .select { width: auto; min-width: 150px; }

.two-col { display: grid; grid-template-columns: 2fr 1fr; gap: 24px; align-items: start; }

.kv-list { display: flex; flex-direction: column; }
.kv { display: flex; justify-content: space-between; gap: 20px; padding: 13px 0; border-bottom: 1px dashed var(--line); font-size: .92rem; }
.kv:last-child { border-bottom: 0; }
.kv dt { color: var(--muted); flex: none; }
.kv dd { font-weight: 600; text-align: right; color: var(--ink); }

.avatar-stack { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 10px; background: var(--primary-soft); color: var(--primary-700); font-weight: 800; font-family: var(--font-display); font-size: .82rem; }

.item-table select, .item-table .input { padding: 8px 10px; font-size: .87rem; }
.item-table td { padding: 8px !important; }

.invoice-doc { max-width: 800px; margin-inline: auto; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 46px 50px; box-shadow: var(--shadow-sm); }
.inv-head { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; padding-bottom: 26px; border-bottom: 3px solid var(--primary); }
.inv-head h2 { font-size: 1.9rem; color: var(--primary-700); }
.inv-meta { text-align: right; font-size: .9rem; color: var(--muted); line-height: 1.8; }
.inv-meta b { color: var(--ink); }
.inv-parties { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; margin: 30px 0; font-size: .92rem; }
.inv-parties h4 { font-size: .74rem; text-transform: uppercase; letter-spacing: .1em; color: var(--faint); margin-bottom: 8px; }
.inv-parties b { display: block; font-size: 1rem; }
.inv-totals { margin-left: auto; width: 290px; margin-top: 18px; font-size: .95rem; }
.inv-totals .kv dd { font-variant-numeric: tabular-nums; }
.inv-totals .grand { font-size: 1.15rem; font-weight: 800; }
.inv-totals .grand dd { color: var(--primary-700); }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__visual { display: none; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .two-col { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .nav__links, .nav__actions .btn { display: none; }
  .nav__burger { display: block; }
  .nav--open .nav__links {
    display: flex; position: absolute; top: 72px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 4px;
    background: #fff; padding: 16px 20px 22px;
    border-bottom: 1px solid var(--line); box-shadow: var(--shadow-md);
  }
  .nav--open .nav__actions {
    display: flex; position: absolute; top: auto; margin-top: 210px; left: 20px; right: 20px;
  }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .stats-strip { grid-template-columns: 1fr 1fr; }
  .stats-strip > div:nth-child(2) { border-right: 0; }
  .stats-strip > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .footer-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .span-2 { grid-column: span 1; }

  .sidebar { transform: translateX(-100%); }
  body.side-open .sidebar { transform: translateX(0); box-shadow: 0 0 0 100vmax rgba(15,15,30,.5); }
  .main { margin-left: 0; }
  .topbar-burger { display: block; }
  .content { padding: 22px 16px 50px; }
  .topbar { padding: 0 16px; }
  .topbar .search-box { display: none; }
  .inv-parties { grid-template-columns: 1fr; }
  .invoice-doc { padding: 28px 22px; }
}

@media print {
  .sidebar, .topbar, .no-print, .alert, .page-actions { display: none !important; }
  .main { margin-left: 0 !important; }
  body { background: #fff; }
  .invoice-doc { border: 0; box-shadow: none; }
}
