@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap");

:root {
  --bg: #06070d;
  --bg-elev: #11131f;
  --bg-elev-2: #171a2c;
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #eef1fb;
  --text-dim: #93a0c0;
  --brand: #7c5cff;
  --brand-2: #4f7dff;
  --brand-3: #22d3ee;
  --brand-dim: #3a3a80;
  --good: #2ee6a6;
  --good-glow: rgba(46, 230, 166, 0.45);
  --bad: #ff5d8f;
  --bad-glow: rgba(255, 93, 143, 0.45);
  --warn: #ffb84d;
  --warn-glow: rgba(255, 184, 77, 0.4);
  --radius: 16px;
  --shadow-lg: 0 30px 60px -20px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(255, 255, 255, 0.03) inset;
  --shadow-sm: 0 10px 24px -12px rgba(0, 0, 0, 0.55);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { color-scheme: dark; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ---------- Animated 3D background: drifting glow orbs + grid + noise ---------- */
.bg-scene {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  background: radial-gradient(ellipse 120% 80% at 50% -10%, #171a3a 0%, var(--bg) 55%);
  perspective: 1000px;
}

.bg-scene::before {
  content: "";
  position: absolute;
  inset: -10%;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 42px 42px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 20%, #000 0%, transparent 70%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 20%, #000 0%, transparent 70%);
  transform: rotateX(55deg) translateY(-10%);
  transform-origin: top center;
  animation: gridDrift 20s linear infinite;
}

@keyframes gridDrift {
  from { background-position: 0 0, 0 0; }
  to { background-position: 42px 84px, 42px 84px; }
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.55;
  will-change: transform;
}
.orb-1 { width: 520px; height: 520px; top: -180px; left: -120px; background: radial-gradient(circle, var(--brand) 0%, transparent 70%); animation: floatA 22s ease-in-out infinite; }
.orb-2 { width: 460px; height: 460px; top: 10%; right: -160px; background: radial-gradient(circle, var(--brand-3) 0%, transparent 70%); animation: floatB 26s ease-in-out infinite; }
.orb-3 { width: 420px; height: 420px; bottom: -200px; left: 20%; background: radial-gradient(circle, var(--brand-2) 0%, transparent 70%); animation: floatC 30s ease-in-out infinite; }

@keyframes floatA {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(60px, 40px) scale(1.12); }
}
@keyframes floatB {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-50px, 60px) scale(1.08); }
}
@keyframes floatC {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(40px, -50px) scale(1.15); }
}

.grain {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.035;
  mix-blend-mode: overlay;
  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='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

@media (prefers-reduced-motion: reduce) {
  .orb, .bg-scene::before { animation: none; }
}

a { color: var(--brand-3); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
}

header.topbar {
  border-bottom: 1px solid var(--border);
  background: rgba(10, 12, 22, 0.6);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  position: sticky;
  top: 0;
  z-index: 100;
}

header.topbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.brand {
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.01em;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand:hover { text-decoration: none; }
.brand .dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  display: inline-block;
  background: radial-gradient(circle at 35% 30%, #cfe0ff, var(--brand) 55%, var(--brand-2) 100%);
  box-shadow: 0 0 12px 2px rgba(124, 92, 255, 0.75);
  animation: pulseDot 2.4s ease-in-out infinite;
}
@keyframes pulseDot {
  0%, 100% { box-shadow: 0 0 10px 1px rgba(124, 92, 255, 0.65); }
  50% { box-shadow: 0 0 18px 5px rgba(124, 92, 255, 0.9); }
}

nav.links { display: flex; gap: 20px; align-items: center; }
nav.links a { color: var(--text-dim); font-size: 14px; font-weight: 500; transition: color .15s; }
nav.links a.active, nav.links a:hover { color: var(--text); text-decoration: none; }
nav.links a.active { position: relative; }
nav.links a.active::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: -21px;
  height: 2px;
  background: linear-gradient(90deg, var(--brand), var(--brand-3));
  box-shadow: 0 0 8px var(--brand);
}

.balance-pill {
  position: relative;
  background: linear-gradient(140deg, rgba(46, 230, 166, 0.16), rgba(46, 230, 166, 0.04));
  border: 1px solid rgba(46, 230, 166, 0.35);
  border-radius: 999px;
  padding: 7px 16px;
  font-size: 14px;
  font-weight: 700;
  color: var(--good);
  box-shadow: 0 0 0 1px rgba(46, 230, 166, 0.06) inset, 0 4px 18px -4px var(--good-glow);
  letter-spacing: 0.01em;
}

main { padding: 40px 0 90px; position: relative; z-index: 1; }

.hero { text-align: center; padding: 70px 0 46px; }
.hero h1 {
  font-size: 46px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
  background: linear-gradient(115deg, #ffffff 10%, var(--brand-3) 50%, var(--brand) 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 60px rgba(124, 92, 255, 0.25);
}
.hero p { color: var(--text-dim); font-size: 17px; max-width: 560px; margin: 0 auto 32px; line-height: 1.6; }

/* ---------- Buttons: layered depth + shine sweep + press feedback ---------- */
.btn {
  --btn-shadow: 0 1px 0 rgba(255, 255, 255, 0.25) inset, 0 -2px 0 rgba(0, 0, 0, 0.18) inset, 0 12px 24px -8px rgba(124, 92, 255, 0.55);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  border-radius: 11px;
  padding: 12px 22px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.01em;
  cursor: pointer;
  color: white;
  background: linear-gradient(150deg, var(--brand-2), var(--brand) 60%, #9b6bff);
  box-shadow: var(--btn-shadow);
  transform: translateY(0) translateZ(0);
  transition: transform .16s cubic-bezier(.2,.8,.2,1), box-shadow .16s, opacity .16s, filter .16s;
}
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, 0.35) 48%, transparent 66%);
  transform: translateX(-120%);
  transition: transform .6s ease;
  z-index: 1;
  pointer-events: none;
}
.btn:hover::before { transform: translateX(120%); }
.btn:hover { transform: translateY(-2px); box-shadow: 0 1px 0 rgba(255,255,255,.3) inset, 0 18px 30px -10px rgba(124, 92, 255, 0.65); text-decoration: none; }
.btn:active { transform: translateY(0) scale(.98); filter: brightness(.96); }

.btn.secondary {
  background: linear-gradient(150deg, var(--bg-elev-2), var(--bg-elev));
  color: var(--text);
  border: 1px solid var(--border-strong);
  box-shadow: 0 1px 0 rgba(255,255,255,.06) inset, 0 10px 20px -10px rgba(0,0,0,.6);
}
.btn.secondary:hover { box-shadow: 0 1px 0 rgba(255,255,255,.08) inset, 0 14px 26px -10px rgba(0,0,0,.7); }

.btn.danger { background: linear-gradient(150deg, #ff7aa8, var(--bad) 70%); box-shadow: 0 1px 0 rgba(255,255,255,.25) inset, 0 12px 24px -8px var(--bad-glow); }
.btn.ghost { background: transparent; color: var(--text-dim); border: 1px solid var(--border); box-shadow: none; }
.btn.ghost:hover { color: var(--text); border-color: var(--border-strong); transform: translateY(-1px); }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none !important; filter: none !important; }
.btn.small { padding: 7px 14px; font-size: 13px; border-radius: 9px; }

/* ---------- Cards: glassmorphism + mouse-driven 3D tilt (see effects.js) ---------- */
.card {
  --mx: 50%;
  --my: 50%;
  --rx: 0deg;
  --ry: 0deg;
  position: relative;
  background:
    radial-gradient(560px circle at var(--mx) var(--my), rgba(124, 92, 255, 0.10), transparent 60%),
    linear-gradient(160deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.015));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 20px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--shadow-lg);
  transform: perspective(1000px) rotateX(var(--rx)) rotateY(var(--ry)) translateZ(0);
  transform-style: preserve-3d;
  transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s, border-color .35s;
}
.card:hover {
  border-color: var(--border-strong);
  box-shadow: 0 40px 80px -24px rgba(0, 0, 0, 0.7), 0 0 40px -12px rgba(124, 92, 255, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.04) inset;
}
.card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.22), transparent 40%, transparent 70%, rgba(124, 92, 255, 0.25));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.card h2, .card h3 { margin-top: 0; letter-spacing: -0.01em; }
.card > * { transform: translateZ(24px); }

.grid { display: grid; gap: 20px; }
.grid.cols-2 { grid-template-columns: 1fr 1fr; }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 720px) {
  .grid.cols-2, .grid.cols-3 { grid-template-columns: 1fr; }
}

.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; color: var(--text-dim); margin-bottom: 7px; font-weight: 500; }
.field input, .field select {
  width: 100%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 10px;
  padding: 11px 13px;
  font-size: 14px;
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.field input:hover, .field select:hover { border-color: var(--border-strong); }
.field input:focus, .field select:focus {
  outline: none;
  border-color: var(--brand);
  background: rgba(124, 92, 255, 0.06);
  box-shadow: 0 0 0 4px rgba(124, 92, 255, 0.18);
}

/* ---------- Combobox: searchable, richly-rendered dropdown (see combobox.js) ---------- */
.combo { position: relative; }
.combo .combo-native {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.combo-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 10px;
  padding: 9px 13px;
  font-size: 14px;
  font-family: inherit;
  cursor: pointer;
  text-align: left;
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.combo-trigger:hover { border-color: var(--border-strong); }
.combo-open .combo-trigger,
.combo-trigger:focus-visible {
  outline: none;
  border-color: var(--brand);
  background: rgba(124, 92, 255, 0.06);
  box-shadow: 0 0 0 4px rgba(124, 92, 255, 0.18);
}
.combo-disabled .combo-trigger { opacity: .5; cursor: not-allowed; }

.combo-trigger-icon { flex: none; display: flex; align-items: center; justify-content: center; font-size: 17px; line-height: 1; width: 22px; }
.combo-trigger-text { flex: 1; min-width: 0; display: flex; align-items: baseline; gap: 8px; }
.combo-trigger-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.combo-trigger-label.is-placeholder { color: var(--text-dim); font-weight: 400; }
.combo-trigger-meta { color: var(--text-dim); font-size: 12px; white-space: nowrap; }
.combo-caret { flex: none; color: var(--text-dim); transition: transform .2s; }
.combo-open .combo-caret { transform: rotate(180deg); color: var(--brand-3); }

.combo-panel {
  /* Portaled to <body> by combobox.js (see comment there) -- left/top/width
     are set inline per-instance since it's positioned against its trigger's
     live viewport coordinates, not a CSS-only relationship. */
  position: fixed;
  z-index: 200;
  background: linear-gradient(160deg, rgba(24, 26, 44, 0.97), rgba(15, 17, 30, 0.97));
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(124, 92, 255, 0.08);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 8px;
  opacity: 0;
  transform: translateY(-6px) scale(.98);
  pointer-events: none;
  transform-origin: top center;
  transition: opacity .15s ease, transform .15s cubic-bezier(.2,.8,.2,1);
}
.combo-panel.combo-open { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }

.combo-search-wrap { padding: 4px 4px 8px; }
.combo-search {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 13px;
  font-family: inherit;
}
.combo-search:focus { outline: none; border-color: var(--brand); }

.combo-list { max-height: 280px; overflow-y: auto; display: flex; flex-direction: column; gap: 2px; }
.combo-empty { padding: 18px 10px; text-align: center; color: var(--text-dim); font-size: 13px; }

.combo-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 9px;
  cursor: pointer;
  transition: background .1s;
}
.combo-row.active { background: rgba(124, 92, 255, 0.16); }
.combo-row.selected .combo-row-text { color: var(--brand-3); }
.combo-row.selected::after {
  content: "✓";
  color: var(--brand-3);
  font-size: 12px;
  font-weight: 700;
  margin-left: auto;
  padding-left: 6px;
}

.combo-row-icon { flex: none; display: flex; align-items: center; justify-content: center; font-size: 16px; width: 22px; }
.combo-emoji { font-size: 16px; line-height: 1; }
.combo-avatar {
  display: inline-flex; align-items: center; justify-content: center;
  width: 20px; height: 20px; border-radius: 6px;
  font-size: 11px; font-weight: 700; color: rgba(0,0,0,.75);
  box-shadow: 0 1px 0 rgba(255,255,255,.25) inset;
}

.combo-row-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.combo-row-top { display: flex; align-items: center; gap: 8px; min-width: 0; }
.combo-row-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13.5px; }
.combo-row-meta { flex: none; color: var(--text-dim); font-size: 12.5px; font-weight: 600; font-variant-numeric: tabular-nums; }

.combo-row-bar { display: block; height: 3px; border-radius: 999px; background: rgba(255,255,255,.07); overflow: hidden; }
.combo-row-bar span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--brand-3), var(--good)); box-shadow: 0 0 6px rgba(46, 230, 166, 0.6); }

.combo-badge {
  flex: none;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #0a0e08;
  background: linear-gradient(120deg, var(--good), var(--brand-3));
  padding: 2px 6px;
  border-radius: 5px;
  box-shadow: 0 0 10px -2px var(--good-glow);
}

.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.spacer { flex: 1; }

table { width: 100%; border-collapse: separate; border-spacing: 0 6px; font-size: 14px; }
th, td { text-align: left; padding: 12px 14px; }
th { color: var(--text-dim); font-weight: 700; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; padding-bottom: 8px; }
tbody tr {
  background: rgba(255, 255, 255, 0.025);
  transition: background .15s, transform .15s;
}
tbody tr:hover { background: rgba(124, 92, 255, 0.08); transform: translateX(2px); }
tbody td:first-child { border-radius: 10px 0 0 10px; }
tbody td:last-child { border-radius: 0 10px 10px 0; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .03em;
  text-transform: uppercase;
}
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; box-shadow: 0 0 8px currentColor; }
.badge.pending { background: rgba(255, 184, 77, 0.14); color: var(--warn); border: 1px solid rgba(255, 184, 77, 0.3); }
.badge.received { background: rgba(46, 230, 166, 0.14); color: var(--good); border: 1px solid rgba(46, 230, 166, 0.3); }
.badge.finished { background: rgba(46, 230, 166, 0.14); color: var(--good); border: 1px solid rgba(46, 230, 166, 0.3); }
.badge.canceled, .badge.banned, .badge.timeout { background: rgba(255, 93, 143, 0.14); color: var(--bad); border: 1px solid rgba(255, 93, 143, 0.3); }

.msg { padding: 12px 16px; border-radius: 10px; font-size: 14px; margin-bottom: 16px; border: 1px solid transparent; backdrop-filter: blur(8px); }
.msg.error { background: rgba(255, 93, 143, 0.1); color: var(--bad); border-color: rgba(255, 93, 143, 0.3); box-shadow: 0 0 24px -8px var(--bad-glow); }
.msg.success { background: rgba(46, 230, 166, 0.1); color: var(--good); border-color: rgba(46, 230, 166, 0.3); box-shadow: 0 0 24px -8px var(--good-glow); }
.msg.info { background: rgba(124, 92, 255, 0.1); color: #b3a6ff; border-color: rgba(124, 92, 255, 0.3); box-shadow: 0 0 24px -8px rgba(124, 92, 255, 0.35); }

.muted { color: var(--text-dim); }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }

.empty { text-align: center; padding: 48px 0; color: var(--text-dim); }

.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 20px; }
.tabs button {
  background: none; border: none; color: var(--text-dim); padding: 11px 18px;
  cursor: pointer; font-size: 14px; font-weight: 600; border-bottom: 2px solid transparent; margin-bottom: -1px;
  transition: color .15s;
}
.tabs button:hover { color: var(--text); }
.tabs button.active { color: var(--text); border-bottom-color: var(--brand); text-shadow: 0 0 16px rgba(124, 92, 255, 0.6); }

.sms-item {
  background: linear-gradient(150deg, rgba(46, 230, 166, 0.08), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(46, 230, 166, 0.2);
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 8px;
  box-shadow: 0 8px 20px -12px var(--good-glow);
}
.sms-item .code {
  font-size: 22px;
  font-weight: 800;
  color: var(--good);
  letter-spacing: .06em;
  text-shadow: 0 0 18px var(--good-glow);
}

footer { text-align: center; color: var(--text-dim); font-size: 13px; padding: 34px 0; position: relative; z-index: 1; }

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--bg-elev-2); border-radius: 8px; border: 3px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: var(--brand-dim); }

/* ---------- Ripple effect spawned by effects.js on click ---------- */
.ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
  transform: scale(0);
  animation: rippleAnim .6s ease-out forwards;
  pointer-events: none;
}
@keyframes rippleAnim {
  to { transform: scale(2.6); opacity: 0; }
}

/* ---------- Claude-powered support widget (see support-widget.js) ---------- */
.support-bubble {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 300;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(150deg, var(--brand-2), var(--brand) 60%, #9b6bff);
  box-shadow: 0 1px 0 rgba(255,255,255,.25) inset, 0 16px 32px -10px rgba(124, 92, 255, 0.6);
  transition: transform .2s cubic-bezier(.2,.8,.2,1);
}
.support-bubble:hover { transform: scale(1.08); }
.support-bubble.is-open { transform: scale(0.92); }

.support-panel {
  position: fixed;
  right: 24px;
  bottom: 92px;
  z-index: 300;
  width: min(360px, calc(100vw - 48px));
  height: min(500px, calc(100vh - 140px));
  display: flex;
  flex-direction: column;
  background: linear-gradient(160deg, rgba(24, 26, 44, 0.97), rgba(15, 17, 30, 0.97));
  border: 1px solid var(--border-strong);
  border-radius: 16px;
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(124, 92, 255, 0.08);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  opacity: 0;
  transform: translateY(12px) scale(.97);
  pointer-events: none;
  transform-origin: bottom right;
  transition: opacity .18s ease, transform .18s cubic-bezier(.2,.8,.2,1);
}
.support-panel.open { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }

.support-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  font-weight: 700;
}
.support-close { background: none; border: none; color: var(--text-dim); font-size: 20px; cursor: pointer; line-height: 1; }
.support-close:hover { color: var(--text); }

.support-body { flex: 1; overflow: hidden; display: flex; }
.support-messages { flex: 1; overflow-y: auto; padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; }

.support-msg { display: flex; }
.support-msg .support-bubble-text {
  max-width: 84%;
  padding: 9px 13px;
  border-radius: 12px;
  font-size: 13.5px;
  line-height: 1.5;
  white-space: pre-wrap;
}
.support-msg-assistant { justify-content: flex-start; }
.support-msg-assistant .support-bubble-text {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-bottom-left-radius: 3px;
}
.support-msg-user { justify-content: flex-end; }
.support-msg-user .support-bubble-text {
  background: linear-gradient(150deg, var(--brand-2), var(--brand));
  color: white;
  border-bottom-right-radius: 3px;
}
.support-msg.support-error .support-bubble-text { color: var(--bad); border-color: rgba(255, 93, 143, 0.35); }

.support-typing { display: inline-flex; gap: 4px; align-items: center; padding: 2px 0; }
.support-typing span {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--text-dim);
  animation: supportTyping 1.2s infinite ease-in-out;
}
.support-typing span:nth-child(2) { animation-delay: .15s; }
.support-typing span:nth-child(3) { animation-delay: .3s; }
@keyframes supportTyping {
  0%, 60%, 100% { opacity: .3; transform: translateY(0); }
  30% { opacity: 1; transform: translateY(-3px); }
}

.support-form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--border); }
.support-input {
  flex: 1;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 9px;
  padding: 9px 12px;
  font-size: 13.5px;
  font-family: inherit;
}
.support-input:focus { outline: none; border-color: var(--brand); background: rgba(124, 92, 255, 0.06); }

@media (max-width: 480px) {
  .support-panel { right: 12px; left: 12px; width: auto; bottom: 88px; }
  .support-bubble { right: 16px; bottom: 16px; }
}

/* ---------- Landing page: service grid + FAQ accordion ---------- */
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
}
.service-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 600;
  transition: border-color .15s, transform .15s, background .15s;
}
.service-chip:hover { border-color: var(--border-strong); background: rgba(124, 92, 255, 0.06); transform: translateY(-2px); }
.service-chip span { font-size: 17px; }

.faq details.card {
  padding: 0;
  margin-bottom: 12px;
  overflow: hidden;
}
.faq summary {
  cursor: pointer;
  padding: 18px 22px;
  font-weight: 700;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-size: 20px;
  font-weight: 400;
  color: var(--text-dim);
  transition: transform .2s;
  transform: translateZ(24px);
}
.faq details[open] summary::after { transform: translateZ(24px) rotate(45deg); }
.faq details p { margin: 0; padding: 0 22px 20px; }

/* ---------- Live activity feed (see activity-feed.js) ---------- */
.activity-feed { display: flex; flex-direction: column; gap: 2px; }
.activity-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 4px;
  border-bottom: 1px solid var(--border);
  font-size: 13.5px;
  animation: activityIn .4s ease both;
}
.activity-row:last-child { border-bottom: none; }
@keyframes activityIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}
.activity-flag { flex: none; font-size: 17px; }

.flag-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 17px;
  border-radius: 3px;
  font-size: 8.5px;
  font-weight: 800;
  letter-spacing: .01em;
  color: rgba(0, 0, 0, .72);
  box-shadow: 0 1px 0 rgba(255,255,255,.25) inset, 0 1px 3px rgba(0,0,0,.35);
}
.activity-text { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.activity-time { flex: none; font-size: 12px; }
