/* =====================================================================
   PanelNest - purple glass on off-white
   Breakpoints: mobile < 640px, tablet 640-960px, laptop/desktop > 960px
   ===================================================================== */

/* ---------- Tokens ---------- */
:root {
  --bg: #F8F6FB;
  --ink: #1D1533;
  --ink-2: #4B4266;
  --muted: #6A6084;
  --violet: #6C3CF0;
  --violet-2: #7548F5;
  --violet-d: #4A22B8;
  --violet-dd: #2C1470;
  --lilac: #B9A2FF;
  --lilac-l: #ECE4FF;
  --glass: rgba(255, 255, 255, .58);
  --glass-strong: rgba(255, 255, 255, .82);
  --glass-b: rgba(255, 255, 255, .78);
  --glass-line: rgba(108, 60, 240, .16);
  --ok: #0F7A58;
  --warn: #9A5B00;
  --err: #B32D48;
  --shadow: 0 24px 60px -28px rgba(76, 34, 184, .45);
  --font-head: 'Sora', 'Segoe UI', system-ui, -apple-system, Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-body: 'DM Sans', 'Segoe UI', system-ui, -apple-system, Roboto, 'Helvetica Neue', Arial, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 6.5rem;
}
body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; }
h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.15;
  margin: 0 0 .6em;
  color: var(--ink);
}
h1 { font-size: clamp(2rem, 1.2rem + 3.2vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 1.1rem + 1.9vw, 2.5rem); }
h3 { font-size: 1.15rem; letter-spacing: -.01em; }
p { margin: 0 0 1rem; }
a { color: var(--violet-d); text-underline-offset: 3px; }
a:hover { color: var(--violet); }
ul, ol { margin: 0; padding: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: rgba(108, 60, 240, .22); }
:focus-visible { outline: 3px solid var(--violet); outline-offset: 3px; border-radius: 6px; }

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 1.25rem; }
.container.narrow { max-width: 820px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; left: 1rem; top: -4rem; z-index: 100;
  background: var(--violet-d); color: #fff; padding: .6rem 1rem; border-radius: 10px;
}
.skip-link:focus { top: 1rem; color: #fff; }
.muted { color: var(--muted); }
.icon {
  width: 1.2em; height: 1.2em; flex: 0 0 auto;
  fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}

/* ---------- Background glow ---------- */
.bg-orbs { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.orb { position: absolute; border-radius: 50%; }
.o1 {
  width: 62vmax; height: 62vmax; top: -26vmax; right: -16vmax;
  background: radial-gradient(circle at 40% 40%, rgba(139, 92, 255, .40), rgba(139, 92, 255, 0) 62%);
  animation: drift1 28s ease-in-out infinite alternate;
}
.o2 {
  width: 54vmax; height: 54vmax; bottom: -24vmax; left: -18vmax;
  background: radial-gradient(circle at 50% 50%, rgba(108, 60, 240, .28), rgba(108, 60, 240, 0) 62%);
  animation: drift2 34s ease-in-out infinite alternate;
}
.o3 {
  width: 34vmax; height: 34vmax; top: 40%; left: 34%;
  background: radial-gradient(circle at 50% 50%, rgba(196, 170, 255, .40), rgba(196, 170, 255, 0) 65%);
  animation: drift1 40s ease-in-out infinite alternate-reverse;
}
@keyframes drift1 { to { transform: translate3d(-6vmax, 5vmax, 0) scale(1.08); } }
@keyframes drift2 { to { transform: translate3d(7vmax, -4vmax, 0) scale(1.06); } }

main, .site-footer { position: relative; z-index: 1; }

/* ---------- Glass ---------- */
.glass {
  background: var(--glass);
  border: 1px solid var(--glass-b);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, .9);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  backdrop-filter: blur(18px) saturate(150%);
}
@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .glass { background: rgba(255, 255, 255, .9); }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 44px; padding: .7rem 1.4rem;
  border: 1px solid transparent; border-radius: 999px;
  font-weight: 600; font-size: .95rem; line-height: 1.1; text-decoration: none; text-align: center;
  cursor: pointer; white-space: nowrap;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background-color .2s, color .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--violet-2), #5A2BE0);
  box-shadow: 0 12px 26px -10px rgba(90, 43, 224, .7), inset 0 1px 0 rgba(255, 255, 255, .35);
}
.btn-primary:hover { color: #fff; box-shadow: 0 16px 30px -10px rgba(90, 43, 224, .8), inset 0 1px 0 rgba(255, 255, 255, .35); }
.btn-glass {
  color: var(--violet-d); background: rgba(255, 255, 255, .62); border-color: var(--glass-b);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.btn-glass:hover { background: rgba(255, 255, 255, .9); color: var(--violet-d); }
.btn-ghost { color: var(--ink-2); background: transparent; }
.btn-ghost:hover { background: var(--lilac-l); color: var(--violet-d); transform: none; }
.btn-light { color: var(--violet-d); background: #fff; box-shadow: 0 12px 26px -12px rgba(20, 5, 70, .6); }
.btn-light:hover { color: var(--violet-dd); }
.btn-danger { color: #9B1F39; background: rgba(179, 45, 72, .09); border-color: rgba(179, 45, 72, .25); }
.btn-danger:hover { background: rgba(179, 45, 72, .16); color: #7d1730; }
.btn-sm { min-height: 40px; padding: .5rem 1.05rem; font-size: .88rem; }
.btn-lg { min-height: 52px; padding: .9rem 1.7rem; font-size: 1rem; }
.btn-block { display: flex; width: 100%; }
.inline-form { display: inline; margin: 0; }

/* ---------- Header / nav ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  padding: max(.75rem, env(safe-area-inset-top)) 0 0;
}
.nav {
  position: relative;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .5rem .55rem .5rem 1.1rem;
  border-radius: 999px;
}
.brand {
  display: inline-flex; align-items: center; gap: .6rem;
  font-family: var(--font-head); font-weight: 700; font-size: 1.15rem; letter-spacing: -.02em;
  color: var(--ink); text-decoration: none;
}
.brand:hover { color: var(--ink); }
.logo-mark {
  width: 36px; height: 36px; border-radius: 50%; padding: 2.5px; flex: 0 0 auto;
  background: conic-gradient(from 210deg, #C9B5FF, #7548F5, #3B1BA8, #B58CFF, #C9B5FF);
  display: grid; place-items: center;
}
.logo-mark > span {
  width: 100%; height: 100%; border-radius: 50%; background: #fff; color: var(--violet);
  display: grid; place-items: center;
}
.logo-mark .icon { width: 16px; height: 16px; fill: currentColor; stroke: none; }
.nav-menu { display: flex; align-items: center; justify-content: space-between; flex: 1; gap: 1.5rem; margin-left: 1.5rem; }
.nav-links { display: flex; gap: .15rem; list-style: none; }
.nav-links a {
  display: block; padding: .5rem .85rem; border-radius: 999px;
  color: var(--ink-2); font-weight: 500; font-size: .95rem; text-decoration: none;
  transition: background-color .2s, color .2s;
}
.nav-links a:hover { background: var(--lilac-l); color: var(--violet-d); }
.nav-actions { display: flex; align-items: center; gap: .4rem; }
.nav-toggle {
  display: none; width: 44px; height: 44px; border-radius: 50%;
  border: 0; background: var(--lilac-l); color: var(--violet-d); cursor: pointer;
  align-items: center; justify-content: center;
}
.nav-toggle .icon { width: 22px; height: 22px; }
.nav-toggle .icon-close { display: none; }
.nav-open .nav-toggle .icon-open { display: none; }
.nav-open .nav-toggle .icon-close { display: block; }

/* ---------- Flash / alerts ---------- */
.flash-stack {
  position: fixed; top: calc(4.9rem + env(safe-area-inset-top)); left: 0; right: 0; z-index: 60;
  display: grid; gap: .5rem; justify-items: center; padding: 0 1rem; pointer-events: none;
}
.flash {
  pointer-events: auto; width: 100%; max-width: 620px;
  display: flex; align-items: flex-start; justify-content: space-between; gap: .8rem;
  padding: .85rem 1rem; border-radius: 16px; font-size: .95rem;
  background: var(--glass-strong); border: 1px solid var(--glass-b); border-left: 5px solid var(--violet);
  box-shadow: 0 18px 40px -18px rgba(44, 20, 112, .5);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  animation: flashIn .45s var(--ease) both;
}
.flash-success { border-left-color: var(--ok); }
.flash-error { border-left-color: var(--err); }
.flash-info { border-left-color: var(--violet); }
.flash-close {
  border: 0; background: transparent; cursor: pointer; font-size: 1.4rem; line-height: 1;
  color: var(--muted); padding: 0 .2rem; min-width: 28px; min-height: 28px;
}
.flash.is-out { opacity: 0; transform: translateY(-8px); transition: opacity .3s, transform .3s; }
@keyframes flashIn { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }

.alert { padding: .85rem 1rem; border-radius: 14px; margin-bottom: 1.2rem; font-size: .95rem; border: 1px solid transparent; }
.alert ul { list-style: none; display: grid; gap: .25rem; }
.alert-error { background: rgba(179, 45, 72, .08); border-color: rgba(179, 45, 72, .25); color: #8B1B33; }
.alert-warn { background: rgba(154, 91, 0, .09); border-color: rgba(154, 91, 0, .28); color: #7A4700; }
.alert a { color: inherit; font-weight: 600; }

/* ---------- Hero ---------- */
.hero { padding: 8.5rem 0 3.5rem; overflow-x: clip; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 3rem; align-items: center; }
.hero-anim { animation: rise .85s var(--ease) var(--d, 0ms) both; }
@keyframes rise { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }

.hero-pill {
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .4rem .95rem .4rem .8rem; margin-bottom: 1.2rem;
  border-radius: 999px; font-size: .88rem; font-weight: 500; color: var(--violet-d);
  background: rgba(255, 255, 255, .7); border: 1px solid var(--glass-line);
}
.live-dot { width: 9px; height: 9px; border-radius: 50%; background: #22B07D; box-shadow: 0 0 0 0 rgba(34, 176, 125, .55); animation: ping 2s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 9px rgba(34, 176, 125, 0); } 100% { box-shadow: 0 0 0 0 rgba(34, 176, 125, 0); } }

.hero-title { font-size: clamp(2rem, 1rem + 3.2vw, 3.2rem); line-height: 1.12; margin-bottom: 1.1rem; }
.hero-title-static { display: block; text-wrap: balance; }
.typed-line {
  display: block; min-height: 1.3em; margin-top: .1em;
  font-size: clamp(1.5rem, 1rem + 2.6vw, 3rem); white-space: nowrap;
}
.typed {
  background: linear-gradient(90deg, #6C3CF0, #A46BFF, #5A2BE0, #A46BFF, #6C3CF0);
  background-size: 250% auto;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  animation: shimmer 5s linear infinite;
}
.typed-line::after {
  content: ""; display: inline-block; width: 3px; height: .85em; margin-left: 5px;
  background: var(--violet); border-radius: 2px; vertical-align: -.05em;
  animation: blink 1s steps(1) infinite;
}
@keyframes shimmer { to { background-position: 250% center; } }
@keyframes blink { 50% { opacity: 0; } }

.hero-sub { font-size: 1.1rem; color: var(--ink-2); max-width: 34rem; margin-bottom: 1.6rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .8rem; margin-bottom: 1.6rem; }
.hero-points { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; color: var(--ink-2); font-size: .95rem; }
.hero-points li { display: flex; align-items: center; gap: .45rem; }
.hero-points .icon { color: var(--violet); }

/* Hero panel preview */
.hero-visual { position: relative; isolation: isolate; width: 100%; max-width: 500px; margin: 0 auto; padding: 1.2rem 0 2rem; }
.hero-visual::before {
  content: ""; position: absolute; inset: -6% -4%; z-index: -1;
  background:
    radial-gradient(closest-side at 30% 35%, rgba(117, 72, 245, .55), transparent 72%),
    radial-gradient(closest-side at 75% 70%, rgba(190, 150, 255, .55), transparent 72%);
}
.feed { padding: 1rem; border-radius: 28px; }
.feed-bar { display: flex; align-items: center; gap: .8rem; margin-bottom: 1rem; }
.dots { display: inline-flex; gap: 5px; }
.dots i { width: 9px; height: 9px; border-radius: 50%; background: #CDBDFF; }
.feed-url {
  flex: 1; min-width: 0; padding: .28rem .9rem; border-radius: 999px; font-size: .8rem; color: var(--muted);
  background: rgba(255, 255, 255, .8); overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.feed-head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem;
  padding: 1rem 1.1rem; margin-bottom: .9rem; border-radius: 20px;
  background: linear-gradient(140deg, rgba(255, 255, 255, .9), rgba(236, 228, 255, .8));
  border: 1px solid var(--glass-line);
}
.feed-label { margin: 0; font-size: .85rem; color: var(--muted); }
.feed-big { margin: 0; font-family: var(--font-head); font-weight: 700; font-size: 2rem; letter-spacing: -.03em; line-height: 1.2; font-variant-numeric: tabular-nums; }
.spark { width: 44%; max-width: 150px; height: auto; }
.feed-list { list-style: none; display: grid; gap: .6rem; }
.feed-item {
  display: flex; align-items: center; gap: .8rem; padding: .75rem .85rem;
  border-radius: 18px; background: rgba(255, 255, 255, .72); border: 1px solid rgba(255, 255, 255, .9);
}
.avatar {
  width: 40px; height: 40px; border-radius: 50%; flex: 0 0 auto; padding: 0;
  display: grid; place-items: center; font-family: var(--font-head); font-weight: 700; color: var(--violet-d);
  background: #fff; box-shadow: 0 0 0 2.5px #fff, 0 0 0 5px #A88BFF;
  margin: 0 .2rem 0 .2rem;
}
.av2 { box-shadow: 0 0 0 2.5px #fff, 0 0 0 5px #7548F5; }
.av3 { box-shadow: 0 0 0 2.5px #fff, 0 0 0 5px #C9B5FF; }
.feed-main { flex: 1; min-width: 0; }
.feed-title { margin: 0 0 .4rem; font-size: .9rem; font-weight: 500; line-height: 1.3; display: flex; justify-content: space-between; gap: .5rem; }
.feed-title span { color: var(--muted); font-variant-numeric: tabular-nums; }
.bar { height: 8px; border-radius: 99px; background: rgba(108, 60, 240, .12); overflow: hidden; }
.bar i {
  display: block; height: 100%; width: var(--w, 50%); border-radius: inherit;
  background: linear-gradient(90deg, #9C78FF, #6C3CF0); transform-origin: left center;
  animation: fill 1.6s var(--ease) .7s both;
}
@keyframes fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.pill { flex: 0 0 auto; padding: .22rem .65rem; border-radius: 999px; font-size: .75rem; font-weight: 700; }
.pill-run { background: rgba(108, 60, 240, .12); color: var(--violet-d); }
.pill-done { background: rgba(15, 122, 88, .13); color: var(--ok); }
.feed-note { margin: .8rem 0 0; text-align: center; font-size: .78rem; color: var(--muted); }

.float-chip {
  position: absolute; display: inline-flex; align-items: center; gap: .5rem;
  padding: .55rem .95rem; border-radius: 999px; font-size: .88rem; font-weight: 600; color: var(--ink);
  background: var(--glass-strong); white-space: nowrap;
  animation: floaty 6s ease-in-out infinite alternate;
}
.float-chip .icon { color: var(--violet); }
.fc-like { top: -.2rem; right: -.6rem; }
.fc-like .icon { fill: var(--violet); }
.fc-pay { bottom: -1.3rem; right: 1.2rem; animation-delay: -3s; }
@keyframes floaty { from { transform: translateY(0); } to { transform: translateY(-10px); } }

/* ---------- Platform marquee ---------- */
.platforms { padding: 1rem 0 1.5rem; }
.marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track { display: flex; width: max-content; animation: marquee 45s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-group { display: flex; gap: .7rem; padding-right: .7rem; list-style: none; }
.marquee-group li {
  white-space: nowrap; padding: .5rem 1.15rem; border-radius: 999px; font-weight: 500; color: var(--ink-2);
  background: rgba(255, 255, 255, .7); border: 1px solid var(--glass-line);
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { padding: 4.5rem 0; }
.section-tight { padding-top: 1.5rem; }
.section-head { max-width: 40rem; margin: 0 auto 2.5rem; text-align: center; }
.section-head p { color: var(--ink-2); font-size: 1.05rem; margin-bottom: 0; }

/* Bento features */
.bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 1rem; }
.bento-card { padding: 1.6rem; border-radius: 28px; min-width: 0; }
.bento-card h3 { margin: 1rem 0 .4rem; }
.bento-card p { color: var(--ink-2); margin: 0; }
.b-brand { grid-column: span 4; }
.b-services { grid-column: span 2; }
.b-orders { grid-column: span 2; }
.b-api { grid-column: span 4; }
.b-pay { grid-column: span 3; }
.b-support { grid-column: span 3; }

.icon-tile {
  display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 14px;
  color: var(--violet-d);
  background: linear-gradient(135deg, #fff, var(--lilac-l));
  border: 1px solid var(--glass-line); box-shadow: 0 8px 18px -10px rgba(108, 60, 240, .6);
}
.icon-tile .icon { width: 22px; height: 22px; }
.icon-tile.sm { width: 42px; height: 42px; }

.mini-browser { margin-top: 1.4rem; max-width: 440px; border-radius: 16px; overflow: hidden; border: 1px solid var(--glass-line); background: rgba(255, 255, 255, .72); }
.mini-bar { display: flex; align-items: center; gap: .35rem; padding: .55rem .8rem; background: rgba(108, 60, 240, .07); font-size: .78rem; color: var(--muted); }
.mini-bar i { width: 8px; height: 8px; border-radius: 50%; background: #CDBDFF; }
.mini-bar span { margin-left: .6rem; padding: .12rem .75rem; background: #fff; border-radius: 99px; }
.mini-body { padding: 1rem; display: grid; gap: .55rem; justify-items: start; }
.mini-logo { width: 34px; height: 34px; border-radius: 50%; background: conic-gradient(from 210deg, #C9B5FF, #7548F5, #3B1BA8, #C9B5FF); }
.mini-line { height: 8px; border-radius: 8px; background: rgba(108, 60, 240, .16); }
.w60 { width: 60%; } .w40 { width: 40%; }
.mini-btn { width: 92px; height: 26px; border-radius: 99px; background: linear-gradient(135deg, #8256FF, #5A2BE0); }

.mini-margin { margin-top: 1.2rem; display: grid; gap: .4rem; }
.mini-margin p { display: flex; justify-content: space-between; gap: .5rem; margin: 0; padding: .5rem .8rem; border-radius: 12px; background: rgba(255, 255, 255, .7); font-size: .9rem; color: var(--ink-2); }
.mini-margin b { color: var(--ink); font-variant-numeric: tabular-nums; }
.mini-margin .gain { background: rgba(15, 122, 88, .12); color: var(--ok); font-weight: 600; }
.mini-margin .gain b { color: var(--ok); }

.mini-flow { list-style: none; margin: 1.2rem 0 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.mini-flow li { padding: .3rem .75rem; border-radius: 99px; font-size: .8rem; color: var(--ink-2); background: rgba(255, 255, 255, .72); border: 1px solid var(--glass-line); }
.mini-flow li.on { background: var(--violet); color: #fff; border-color: transparent; }

.code {
  margin: 1.2rem 0 0; padding: 1rem 1.1rem; border-radius: 16px; overflow-x: auto;
  background: #26155A; color: #EDE6FF; font-size: .85rem; line-height: 1.75;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, 'Liberation Mono', monospace;
  -webkit-overflow-scrolling: touch;
}
.code code { font: inherit; white-space: pre; }
.c-mute { color: #A796DB; }

/* Stats */
.stats-band { padding: 1rem 0 2rem; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); list-style: none; padding: 1.75rem 1rem; border-radius: 28px; }
.stats li { padding: 0 1.4rem; text-align: center; }
.stats li + li { border-left: 1px solid var(--glass-line); }
.stat-num { margin: 0; font-family: var(--font-head); font-weight: 700; font-size: clamp(1.9rem, 1.4rem + 1.6vw, 2.8rem); letter-spacing: -.03em; color: var(--violet-d); line-height: 1.15; font-variant-numeric: tabular-nums; }
.stat-label { margin: .2rem 0 0; color: var(--ink-2); font-size: .95rem; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; list-style: none; }
.step { position: relative; padding: 1.5rem; border-radius: 26px; }
.step h3 { margin: 1rem 0 .4rem; }
.step p { margin: 0; color: var(--ink-2); font-size: .97rem; }
.step-no {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  font-family: var(--font-head); font-weight: 700; color: #fff;
  background: linear-gradient(135deg, var(--violet-2), #5A2BE0); box-shadow: 0 10px 20px -10px rgba(90, 43, 224, .8);
}
.step:not(:last-child)::after {
  content: ""; position: absolute; top: 2.5rem; right: -1rem; width: 1rem; height: 2px;
  background: linear-gradient(90deg, var(--lilac), transparent);
}

/* Plans */
.cycle {
  display: flex; width: max-content; max-width: 100%; margin: 0 auto 2rem; padding: .3rem; gap: .2rem;
  border-radius: 999px; background: rgba(255, 255, 255, .7); border: 1px solid var(--glass-line);
}
.cycle-btn {
  min-height: 42px; padding: .5rem 1.4rem; border: 0; border-radius: 999px; background: transparent;
  color: var(--ink-2); font-weight: 600; cursor: pointer; transition: background-color .25s, color .25s;
}
.cycle-btn.is-on { background: linear-gradient(135deg, var(--violet-2), #5A2BE0); color: #fff; box-shadow: 0 8px 18px -8px rgba(90, 43, 224, .8); }

.plans { display: grid; grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); gap: 1.25rem; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; padding: 1.9rem; border-radius: 30px; min-width: 0; }
.plan h3 { font-size: 1.3rem; margin-bottom: .2rem; }
.plan-tag { color: var(--ink-2); margin-bottom: 1.2rem; font-size: .97rem; }
.price { margin: 0; display: flex; align-items: baseline; flex-wrap: wrap; gap: .4rem; }
.price-amt { font-family: var(--font-head); font-weight: 700; font-size: clamp(2.1rem, 1.6rem + 1.4vw, 2.8rem); letter-spacing: -.03em; line-height: 1.1; }
.price-per { color: var(--muted); font-size: .95rem; }
.price-save { min-height: 1.5em; margin: .2rem 0 1rem; font-size: .9rem; font-weight: 600; color: var(--ok); }
.checks { list-style: none; display: grid; gap: .65rem; margin: 0 0 1.6rem; flex: 1; }
.checks li { display: flex; gap: .65rem; align-items: flex-start; font-size: .97rem; }
.checks .icon { margin-top: .22em; color: var(--violet); width: 1.05em; height: 1.05em; stroke-width: 2.6; }
.plan-badge {
  position: absolute; top: 1.2rem; right: 1.2rem; padding: .28rem .8rem; border-radius: 999px;
  font-size: .78rem; font-weight: 700; color: var(--violet-dd); background: #fff;
}
.plan-popular {
  color: #fff; border-color: rgba(255, 255, 255, .25);
  background: linear-gradient(160deg, #7B4DFF 0%, #4B25C2 58%, #33108F 100%);
  box-shadow: 0 34px 70px -28px rgba(60, 20, 170, .9), inset 0 1px 0 rgba(255, 255, 255, .35);
}
.plan-popular h3, .plan-popular .price-amt { color: #fff; }
.plan-popular .plan-tag, .plan-popular .price-per { color: rgba(255, 255, 255, .8); }
.plan-popular .price-save { color: #B9F5DC; }
.plan-popular .checks .icon { color: #CFC0FF; }
.empty { text-align: center; color: var(--ink-2); }

/* Compare */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table-wrap.glass { border-radius: 26px; }
.compare { width: 100%; border-collapse: collapse; }
.compare th, .compare td { padding: 1rem 1.3rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--glass-line); }
.compare thead th { font-family: var(--font-head); font-size: 1rem; }
.compare tbody th { font-weight: 600; color: var(--ink); width: 26%; }
.compare tbody td { color: var(--ink-2); }
.compare th:nth-child(2), .compare td:nth-child(2) { background: rgba(108, 60, 240, .07); color: var(--violet-dd); font-weight: 500; }
.compare tr:last-child th, .compare tr:last-child td { border-bottom: 0; }

/* FAQ */
.faq-list { display: grid; gap: .8rem; }
.faq { border-radius: 20px; padding: 0 1.4rem; }
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 1.1rem 0; cursor: pointer; list-style: none; font-weight: 600; font-family: var(--font-head); font-size: 1.02rem; letter-spacing: -.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq-icon { position: relative; flex: 0 0 auto; width: 26px; height: 26px; border-radius: 50%; background: var(--lilac-l); }
.faq-icon::before, .faq-icon::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 10px; height: 2px; margin: -1px 0 0 -5px;
  background: var(--violet-d); border-radius: 2px; transition: transform .3s var(--ease);
}
.faq-icon::after { transform: rotate(90deg); }
.faq[open] .faq-icon::after { transform: rotate(0); }
.faq p { margin: 0 0 1.2rem; color: var(--ink-2); max-width: 62ch; }

/* Contact + forms */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: start; }
.contact-copy p { color: var(--ink-2); font-size: 1.05rem; max-width: 30rem; }
.channels { list-style: none; display: grid; gap: .8rem; margin-top: 1.6rem; max-width: 26rem; }
.channels a {
  display: flex; align-items: center; gap: .9rem; padding: .8rem 1rem; border-radius: 18px; text-decoration: none; color: var(--ink);
  background: rgba(255, 255, 255, .65); border: 1px solid var(--glass-line); transition: transform .2s var(--ease), background-color .2s;
}
.channels a:hover { transform: translateX(4px); background: rgba(255, 255, 255, .9); }
.channels strong { display: block; line-height: 1.3; }
.channels em { display: block; font-style: normal; color: var(--muted); font-size: .9rem; overflow-wrap: anywhere; }

.form-card { padding: 1.7rem; border-radius: 28px; min-width: 0; }
.field { margin-bottom: 1.1rem; }
.field label { display: block; margin-bottom: .4rem; font-weight: 600; font-size: .93rem; }
.opt { font-weight: 400; color: var(--muted); }
.input {
  width: 100%; padding: .8rem 1rem; font-size: 1rem; color: var(--ink);
  background: rgba(255, 255, 255, .8); border: 1px solid rgba(108, 60, 240, .24); border-radius: 14px;
  transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.input::placeholder { color: #9A91B2; }
.input:hover { border-color: rgba(108, 60, 240, .45); }
.input:focus { outline: 2px solid transparent; border-color: var(--violet); background: #fff; box-shadow: 0 0 0 4px rgba(108, 60, 240, .18); }
textarea.input { resize: vertical; min-height: 7rem; }
select.input { appearance: none; -webkit-appearance: none; padding-right: 2.2rem; background-image: linear-gradient(45deg, transparent 50%, #6C3CF0 50%), linear-gradient(135deg, #6C3CF0 50%, transparent 50%); background-position: calc(100% - 18px) 55%, calc(100% - 13px) 55%; background-size: 5px 5px; background-repeat: no-repeat; }
.input-sm { padding: .5rem .8rem; font-size: .92rem; border-radius: 12px; min-height: 40px; }
.hint { display: block; margin-top: .35rem; color: var(--muted); font-size: .85rem; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { min-height: 1.4em; margin: .9rem 0 0; font-size: .95rem; }
.form-status.ok { color: var(--ok); }
.form-status.err { color: var(--err); }
.btn[disabled] { opacity: .65; cursor: progress; transform: none; }

.pw-wrap { position: relative; }
.pw-wrap .input { padding-right: 4.6rem; }
.pw-toggle {
  position: absolute; right: .45rem; top: 50%; transform: translateY(-50%);
  min-height: 36px; padding: 0 .75rem; border: 0; border-radius: 10px; cursor: pointer;
  font-size: .85rem; font-weight: 600; color: var(--violet-d); background: var(--lilac-l);
}

/* ---------- Auth ---------- */
.auth { min-height: 100vh; display: flex; align-items: center; padding: 7.5rem 0 3.5rem; }
.auth .container { display: flex; justify-content: center; }
.auth-card { width: 100%; max-width: 460px; padding: 2.1rem; border-radius: 30px; }
.auth-card h1 { font-size: 1.8rem; margin-bottom: .3rem; }
.auth-sub { color: var(--ink-2); margin-bottom: 1.5rem; }
.auth-alt { margin: 1.3rem 0 0; text-align: center; color: var(--ink-2); font-size: .95rem; }

/* ---------- Inner pages ---------- */
.page-section { padding: 7.5rem 0 4rem; min-height: 70vh; }
.page-head { margin-bottom: 1.8rem; }
.page-head h1 { font-size: clamp(1.8rem, 1.3rem + 2vw, 2.6rem); margin-bottom: .3rem; }
.page-head p { color: var(--ink-2); margin: 0; max-width: 40rem; }
.row-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.card-block { padding: 1.6rem; border-radius: 26px; margin-bottom: 1.25rem; min-width: 0; }
.card-block h2 { font-size: 1.3rem; margin-bottom: 1rem; }
.card-foot { margin: 1rem 0 0; font-size: .95rem; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; align-items: start; }
.two-col .card-block { margin-bottom: 0; }
.empty-state { text-align: center; padding: 1.5rem .5rem; }
.empty-state p { color: var(--ink-2); max-width: 28rem; margin: 0 auto 1.2rem; }
.kv { margin: 0; display: grid; gap: .8rem; }
.kv div { display: flex; justify-content: space-between; gap: 1rem; padding-bottom: .8rem; border-bottom: 1px solid var(--glass-line); }
.kv div:last-child { border-bottom: 0; padding-bottom: 0; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 500; text-align: right; overflow-wrap: anywhere; }

/* Rent page */
.rent-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 1.5rem; align-items: start; }
.rent-main .form-card { margin-bottom: 1.25rem; }
.group-title { font-size: 1.1rem; margin-bottom: 1rem; }
.choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: .75rem; }
.choices.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.choice { position: relative; display: block; cursor: pointer; }
.choice input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.choice-body {
  display: block; height: 100%; padding: 1rem; border-radius: 18px;
  border: 1.5px solid rgba(108, 60, 240, .2); background: rgba(255, 255, 255, .65);
  transition: border-color .2s, background-color .2s, box-shadow .2s;
}
.choice:hover .choice-body { border-color: rgba(108, 60, 240, .5); }
.choice input:checked + .choice-body { border-color: var(--violet); background: rgba(108, 60, 240, .09); box-shadow: 0 0 0 3px rgba(108, 60, 240, .16); }
.choice input:focus-visible + .choice-body { outline: 3px solid var(--violet); outline-offset: 2px; }
.choice-body strong { display: block; font-family: var(--font-head); font-size: 1.05rem; }
.choice-body em { display: block; font-style: normal; color: var(--ink-2); font-size: .9rem; margin: .15rem 0 .5rem; }
.choice-price { display: block; font-weight: 700; color: var(--violet-d); }
.rent-side { position: sticky; top: 6.5rem; }
.summary { padding: 1.6rem; border-radius: 26px; }
.summary h2 { font-size: 1.2rem; }
.summary dl { margin: 0 0 1rem; }
.summary dl div { display: flex; justify-content: space-between; gap: 1rem; padding: .6rem 0; border-bottom: 1px solid var(--glass-line); }
.summary dt { color: var(--muted); }
.summary dd { margin: 0; font-weight: 600; }
.summary .sum-total { border-bottom: 0; padding-top: .9rem; }
.summary .sum-total dd { font-family: var(--font-head); font-size: 1.5rem; color: var(--violet-d); }

/* Tables */
.data { width: 100%; border-collapse: collapse; font-size: .95rem; }
.data th { text-align: left; padding: .7rem .9rem; font-weight: 600; color: var(--ink-2); border-bottom: 1px solid var(--glass-line); white-space: nowrap; }
.data td { padding: .85rem .9rem; vertical-align: top; border-bottom: 1px solid rgba(108, 60, 240, .08); }
.data tr:last-child td { border-bottom: 0; }
.data small { display: block; color: var(--muted); font-size: .82rem; line-height: 1.4; overflow-wrap: anywhere; }
.data small.note { max-width: 24ch; font-style: italic; }
.status { display: inline-block; padding: .22rem .7rem; border-radius: 999px; font-size: .78rem; font-weight: 700; }
.status-pending { background: rgba(154, 91, 0, .12); color: #8A5200; }
.status-active { background: rgba(15, 122, 88, .13); color: var(--ok); }
.status-cancelled { background: rgba(179, 45, 72, .11); color: #9B1F39; }
.status-expired { background: rgba(106, 96, 132, .16); color: #4B4266; }
.row-form { display: flex; align-items: center; gap: .5rem; }

/* Admin */
.count { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 .35rem; border-radius: 99px; font-size: .75rem; background: #fff; color: var(--violet-d); }
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; margin-bottom: 1.25rem; }
.kpi { padding: 1.3rem; border-radius: 24px; }
.kpi-num { margin: 0; font-family: var(--font-head); font-weight: 700; font-size: 1.9rem; letter-spacing: -.03em; color: var(--violet-d); line-height: 1.2; }
.kpi-label { margin: .2rem 0 0; color: var(--ink-2); font-size: .92rem; }
.filters { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 1rem; }
.filter { padding: .4rem .95rem; border-radius: 999px; font-size: .88rem; font-weight: 600; text-decoration: none; color: var(--ink-2); background: rgba(255, 255, 255, .6); border: 1px solid var(--glass-line); }
.filter.is-on { background: var(--violet-d); color: #fff; border-color: transparent; }
.msg-list { display: grid; gap: 1rem; }
.msg { padding: 1.3rem 1.5rem; border-radius: 22px; }
.msg.is-new { border-left: 5px solid var(--violet); }
.msg header { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: .6rem; font-size: .93rem; }
.msg header strong { margin-right: .6rem; }
.msg time { color: var(--muted); }
.msg p { margin: 0 0 1rem; overflow-wrap: anywhere; }
.msg footer { display: flex; flex-wrap: wrap; gap: .5rem; }
.plans-note { margin-bottom: 1rem; }
.plan-forms { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.25rem; }
.plan-forms .card-block { margin-bottom: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.checks-row { display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; margin-bottom: 1.2rem; }
.check { display: inline-flex; align-items: center; gap: .5rem; font-size: .93rem; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--violet); }

/* ---------- Footer ---------- */
.site-footer { margin-top: 3rem; padding: 3rem 0 1.8rem; background: rgba(255, 255, 255, .5); border-top: 1px solid var(--glass-line); }
.footer-grid { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1.3fr; gap: 2rem; }
.footer-brand p { color: var(--ink-2); max-width: 28rem; margin: .9rem 0 0; font-size: .95rem; }
.footer-title { font-family: var(--font-head); font-size: .95rem; margin-bottom: .8rem; letter-spacing: -.01em; }
.footer-links { list-style: none; display: grid; gap: .5rem; font-size: .95rem; }
.footer-links a { color: var(--ink-2); text-decoration: none; overflow-wrap: anywhere; }
.footer-links a:hover { color: var(--violet); text-decoration: underline; }
.footer-bottom { margin-top: 2.2rem; padding-top: 1.3rem; border-top: 1px solid var(--glass-line); color: var(--muted); font-size: .9rem; }

/* ---------- Scroll reveal (only when JS is on) ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease) var(--rd, 0ms), transform .7s var(--ease) var(--rd, 0ms); }
.js .reveal.in { opacity: 1; transform: none; }

/* =====================================================================
   RESPONSIVE
   ===================================================================== */

/* Laptop / small desktop */
@media (max-width: 1100px) {
  .hero-grid { gap: 2rem; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 1.5rem; }
}

/* Tablet and below: collapsible menu, single-column layouts */
@media (max-width: 960px) {
  .nav { padding-left: 1rem; }
  .nav-toggle { display: inline-flex; }
  .nav-menu {
    position: absolute; left: 0; right: 0; top: calc(100% + .6rem); margin: 0;
    display: none; flex-direction: column; align-items: stretch; gap: 1rem; padding: 1rem;
    border-radius: 26px; background: rgba(255, 255, 255, .97); border: 1px solid var(--glass-line);
    box-shadow: 0 30px 60px -24px rgba(44, 20, 112, .55);
    max-height: calc(100vh - 6.5rem); overflow-y: auto;
  }
  .nav-open .nav-menu { display: flex; animation: flashIn .3s var(--ease) both; }
  .nav-links { flex-direction: column; gap: .1rem; }
  .nav-links a { padding: .8rem 1rem; font-size: 1rem; border-radius: 14px; }
  .nav-actions { flex-direction: column; align-items: stretch; gap: .5rem; padding-top: .8rem; border-top: 1px solid var(--glass-line); }
  .nav-actions .btn { width: 100%; min-height: 46px; }
  .nav-actions .inline-form { display: block; }

  .hero { padding-top: 7.5rem; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { text-align: center; }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .hero-cta, .hero-points { justify-content: center; }
  .hero-visual { max-width: 460px; }

  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .b-brand, .b-api { grid-column: span 2; }
  .b-services, .b-orders, .b-pay, .b-support { grid-column: span 1; }

  .stats { grid-template-columns: repeat(2, 1fr); row-gap: 1.5rem; }
  .stats li:nth-child(3) { border-left: 0; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .step::after { display: none; }

  .plans { grid-template-columns: minmax(0, 1fr); max-width: 520px; margin: 0 auto; }
  .contact-grid { grid-template-columns: 1fr; gap: 2rem; }
  .rent-grid { grid-template-columns: 1fr; }
  .rent-side { position: static; }
  .two-col { grid-template-columns: 1fr; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

/* Stacked tables + phones */
@media (max-width: 760px) {
  .responsive thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
  .responsive, .responsive tbody, .responsive tr, .responsive td { display: block; width: 100%; }
  .responsive tr { margin-bottom: .8rem; padding: .5rem 1rem; border-radius: 18px; background: rgba(255, 255, 255, .65); border: 1px solid var(--glass-line); }
  .responsive td { padding: .55rem 0; border-bottom: 1px dashed rgba(108, 60, 240, .14); }
  .responsive tr td:last-child { border-bottom: 0; }
  .responsive td::before { content: attr(data-label); display: block; margin-bottom: .1rem; font-size: .76rem; font-weight: 700; color: var(--muted); text-transform: none; letter-spacing: .01em; }
  .row-form { flex-wrap: wrap; }
  .row-form .input { flex: 1 1 150px; }
  .table-wrap:not(.glass) { overflow-x: visible; }
}

/* Mobile */
@media (max-width: 640px) {
  .container { padding: 0 1rem; }
  .section { padding: 3.2rem 0; }
  .section-head { margin-bottom: 1.8rem; }
  .hero { padding: 6.8rem 0 2rem; }
  .hero-sub { font-size: 1.02rem; }
  .hero-cta .btn { flex: 1 1 100%; }
  .hero-points { flex-direction: column; align-items: center; gap: .4rem; }
  .hero-visual { padding: 1.4rem 0; }
  .feed { padding: .8rem; border-radius: 24px; }
  .feed-big { font-size: 1.7rem; }
  .fc-like { right: -.2rem; top: -.4rem; }
  .fc-pay { right: .4rem; bottom: -1.3rem; }
  .feed-item { padding: .65rem; gap: .6rem; }
  .avatar { width: 34px; height: 34px; }
  .pill { font-size: .7rem; padding: .2rem .5rem; }

  .bento { grid-template-columns: minmax(0, 1fr); }
  .b-brand, .b-api, .b-services, .b-orders, .b-pay, .b-support { grid-column: span 1; }
  .bento-card { padding: 1.3rem; border-radius: 24px; }

  .stats { padding: 1.3rem .4rem; }
  .stats li { padding: 0 .6rem; }
  .steps { grid-template-columns: minmax(0, 1fr); }

  .plan { padding: 1.5rem; }
  .compare th, .compare td { padding: .8rem .75rem; font-size: .9rem; }
  .compare tbody th { width: 30%; }
  .faq { padding: 0 1.1rem; }
  .form-card, .summary, .card-block { padding: 1.3rem; }
  .auth { padding: 6.5rem 0 2.5rem; }
  .auth-card { padding: 1.5rem; border-radius: 26px; }
  .page-section { padding: 6.5rem 0 3rem; }
  .row-head .btn { width: 100%; }
  .choices.two { grid-template-columns: minmax(0, 1fr); }
  .kpis { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: .7rem; }
  .kpi { padding: 1rem; }
  .kpi-num { font-size: 1.5rem; }
  .field-row { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.6rem; }
  .flash-stack { top: calc(4.6rem + env(safe-area-inset-top)); }
}

@media (max-width: 380px) {
  .brand-name { font-size: 1.02rem; }
  .btn-lg { padding: .85rem 1.2rem; }
  .cycle-btn { padding: .5rem 1.1rem; }
}

/* Body scroll lock while mobile menu is open (class is set on <html>) */
html.nav-open body { overflow: hidden; }

/* =====================================================================
   PANEL MENU - hamburger (3 lines) + slide-out drawer
   Used by the user panel and the admin panel. Same purple glass theme.
   ===================================================================== */
.panel-nav { padding: .5rem .6rem; }
.panel-left { display: flex; align-items: center; gap: .75rem; min-width: 0; flex: 1 1 auto; }
.panel-right { display: flex; align-items: center; gap: .5rem; min-width: 0; flex: 0 0 auto; }
.brand small { opacity: .6; font-weight: 500; font-size: .78em; }

.hamburger {
  width: 44px; height: 44px; flex: 0 0 auto; border-radius: 50%; border: 0; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--lilac-l); color: var(--violet-d);
  transition: background-color .2s, transform .2s var(--ease), box-shadow .2s;
}
.hamburger:hover { background: #DFD2FF; box-shadow: 0 8px 18px -10px rgba(90, 43, 224, .7); }
.hamburger:active { transform: scale(.94); }
.hb-lines { position: relative; display: block; width: 20px; height: 14px; }
.hb-lines i {
  position: absolute; left: 0; width: 100%; height: 2px; border-radius: 2px; background: currentColor;
  transition: top .3s var(--ease), transform .3s var(--ease), opacity .2s;
}
.hb-lines i:nth-child(1) { top: 0; }
.hb-lines i:nth-child(2) { top: 6px; }
.hb-lines i:nth-child(3) { top: 12px; }
.drawer-open .hb-lines i:nth-child(1) { top: 6px; transform: rotate(45deg); }
.drawer-open .hb-lines i:nth-child(2) { opacity: 0; }
.drawer-open .hb-lines i:nth-child(3) { top: 6px; transform: rotate(-45deg); }

.panel-user {
  display: inline-flex; align-items: center; gap: .55rem; max-width: 100%;
  padding: .3rem .9rem .3rem .3rem; border-radius: 999px;
  background: rgba(255, 255, 255, .7); border: 1px solid var(--glass-line);
  font-size: .9rem; font-weight: 600; color: var(--ink-2);
}
.panel-user-dot {
  width: 30px; height: 30px; flex: 0 0 auto; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--font-head); font-size: .85rem; font-weight: 700; color: #fff;
  background: linear-gradient(135deg, var(--violet-2), #5A2BE0);
}
.panel-user-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 14ch; }
.panel-user-photo, .drawer-avatar-photo { object-fit: cover; background: #fff; }

.drawer-backdrop {
  position: fixed; inset: 0; z-index: 70;
  background: rgba(29, 21, 51, .38);
  -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
  opacity: 0; visibility: hidden;
  transition: opacity .3s var(--ease), visibility 0s linear .3s;
}
.drawer {
  position: fixed; top: 0; bottom: 0; right: 0; z-index: 80;
  width: min(320px, 86vw); display: flex; flex-direction: column; gap: 1rem;
  padding: max(1rem, env(safe-area-inset-top)) 1rem max(1rem, env(safe-area-inset-bottom));
  background: linear-gradient(180deg, rgba(236, 228, 255, .96), rgba(255, 255, 255, .98) 200px);
  border-left: 1px solid var(--glass-line); border-radius: 28px 0 0 28px;
  box-shadow: -30px 0 60px -30px rgba(44, 20, 112, .55);
  overflow-y: auto; overscroll-behavior: contain;
  transform: translateX(104%); visibility: hidden;
  transition: transform .38s var(--ease), visibility 0s linear .38s;
}
.drawer-open .drawer-backdrop { opacity: 1; visibility: visible; transition-delay: 0s; }
.drawer-open .drawer { transform: none; visibility: visible; transition-delay: 0s; }
html.drawer-open body { overflow: hidden; }

.drawer-head { display: flex; align-items: center; gap: .8rem; padding: .3rem .2rem .3rem .35rem; }
.drawer-avatar {
  width: 44px; height: 44px; flex: 0 0 auto; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--font-head); font-weight: 700; color: var(--violet-d); background: #fff;
  box-shadow: 0 0 0 2.5px #fff, 0 0 0 5px #A88BFF;
  margin-right: .2rem;
}
.drawer-who { flex: 1; min-width: 0; line-height: 1.3; }
.drawer-who strong { display: block; font-family: var(--font-head); font-size: 1rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.drawer-who small { display: block; color: var(--muted); font-size: .8rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.drawer-x {
  width: 40px; height: 40px; flex: 0 0 auto; border-radius: 50%; border: 0; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, .8); color: var(--violet-d);
}
.drawer-x:hover { background: #fff; }
.drawer-x .icon { width: 20px; height: 20px; }

.drawer-nav ul { list-style: none; display: grid; gap: .25rem; }
.drawer-link {
  display: flex; align-items: center; gap: .8rem; width: 100%; min-height: 48px;
  padding: .65rem .95rem; border-radius: 16px; border: 0; background: transparent;
  color: var(--ink-2); font-weight: 600; font-size: .98rem; text-decoration: none; text-align: left; cursor: pointer;
  transition: background-color .2s, color .2s, box-shadow .2s;
}
.drawer-link .icon { width: 20px; height: 20px; }
.dl-label { flex: 1; min-width: 0; }
.drawer-link:hover { background: var(--lilac-l); color: var(--violet-d); }
.drawer-link.is-on {
  color: #fff; background: linear-gradient(135deg, var(--violet-2), #5A2BE0);
  box-shadow: 0 12px 24px -12px rgba(90, 43, 224, .75), inset 0 1px 0 rgba(255, 255, 255, .3);
}
.drawer-link.is-on .count { background: #fff; color: var(--violet-d); }
.drawer-link:not(.is-on) .count { background: var(--violet); color: #fff; }
.drawer-foot { margin-top: auto; padding-top: .9rem; border-top: 1px solid var(--glass-line); display: grid; gap: .25rem; }
.drawer-foot .inline-form { display: block; }
.drawer-logout { color: #9B1F39; }
.drawer-logout:hover { background: rgba(179, 45, 72, .09); color: #7D1730; }

/* Page bits used by the split panel pages */
.kpi-num.is-sm { font-size: 1.4rem; line-height: 1.7; }
.msg-subject { font-weight: 700; margin: 0 0 .4rem; }
.pay-contact { display: flex; flex-wrap: wrap; gap: .5rem; }
.panel-footer { margin-top: 0; padding: 1.4rem 0 1.2rem; }
.panel-footer .footer-bottom { margin: 0; padding: 0; border-top: 0; }

@media (max-width: 520px) {
  .panel-user-name { display: none; }
  .panel-user { padding: .3rem; }
}

/* Without JavaScript the hamburger cannot open, so show the menu as a plain card instead */
.no-js .hamburger, .no-js .drawer-backdrop, .no-js .drawer-x { display: none; }
.no-js .drawer {
  position: static; transform: none; visibility: visible; width: auto; z-index: auto;
  margin: 5.5rem 1.25rem 0; border: 1px solid var(--glass-line); border-radius: 26px;
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
  .marquee { overflow-x: auto; }
  .marquee-track { animation: none; }
  .typed { animation: none; }
  .typed-line::after { animation: none; }
  .drawer, .drawer-backdrop, .hb-lines i { transition: none; }
}
