/* ============================================================
   Voodoo Pay Bot — design system
   Same tokens as voodoopay.online: ink + electric violet + hex-lime.
   Mobile first.
   ============================================================ */
:root {
  --ink: #0B0A14;
  --ink-2: #12101F;
  --ink-3: #1A1730;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --glass: rgba(255, 255, 255, 0.045);
  --glass-2: rgba(255, 255, 255, 0.075);
  --text: #F4F2FF;
  --muted: #A39FBF;
  --faint: #6E6A8A;
  --lime: #D4FF3A;
  --lime-ink: #151A00;
  --violet: #8C6CFF;
  --magenta: #FF4FB8;
  --ok: #4DFFB0;
  --warn: #FFC94D;
  --bad: #FF5C7A;
  --radius: 22px;
  --radius-sm: 14px;
  --font-display: 'Unbounded', 'Manrope', system-ui, sans-serif;
  --font-body: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--ink); overflow-x: hidden; }
body {
  margin: 0;
  min-height: 100dvh;
  background: var(--ink);
  color: var(--text);
  font: 500 16px/1.5 var(--font-body);
}
a { color: var(--lime); text-decoration: none; }
h1, h2, h3, h4 { margin: 0 0 6px; font-family: var(--font-display); font-weight: 600; letter-spacing: -0.02em; line-height: 1.15; }
p { margin: 0 0 12px; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.mono { font-family: var(--font-mono); font-size: 0.86em; word-break: break-all; }

/* Atmosphere (matches voodoopay.online) */
.aura { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.aura i { position: absolute; border-radius: 50%; filter: blur(70px); opacity: 0.55; will-change: transform; }
.aura i:nth-child(1) { width: 380px; height: 380px; left: -120px; top: -140px; background: var(--violet); animation: drift1 18s ease-in-out infinite alternate; }
.aura i:nth-child(2) { width: 300px; height: 300px; right: -120px; top: -40px; background: var(--magenta); opacity: 0.35; animation: drift2 22s ease-in-out infinite alternate; }
.aura i:nth-child(3) { width: 220px; height: 220px; left: 30%; top: 180px; background: var(--lime); opacity: 0.12; animation: drift1 26s ease-in-out infinite alternate-reverse; }
.grain { position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: 0.05; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
@keyframes drift1 { to { transform: translate(60px, 50px) scale(1.15); } }
@keyframes drift2 { to { transform: translate(-50px, 70px) scale(0.9); } }

/* Layout */
.shell { position: relative; z-index: 1; max-width: 480px; margin: 0 auto; padding: 24px 18px 48px; min-height: 100dvh; display: flex; flex-direction: column; }
.topbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 28px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); }
.brand .logo svg { width: 34px; height: 34px; display: block; filter: drop-shadow(0 6px 18px rgba(140, 108, 255, 0.45)); }
.brand b { font-family: var(--font-display); font-weight: 700; font-size: 18px; letter-spacing: -0.03em; }
.brand b span.lime { color: var(--lime); }
.brand small { display: block; font-size: 11px; color: var(--faint); font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; }

/* Cards */
.card { background: var(--glass); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; margin-bottom: 16px; scroll-margin-top: 18px; }
.card + .card { margin-top: 0; }
[id] { scroll-margin-top: 18px; }
.eyebrow { font: 700 11px/1 var(--font-body); letter-spacing: 0.16em; text-transform: uppercase; color: var(--lime); margin-bottom: 10px; display: block; }

/* Forms */
.field { margin-bottom: 16px; }
.field-label { display: block; font-size: 13px; font-weight: 700; color: var(--muted); letter-spacing: 0.01em; margin-bottom: 6px; }
.field-hint { font-size: 12.5px; color: var(--faint); margin-top: 6px; }

/* Info icon — tap to expand a short explanation, no JS needed (a <details>
   styled down to just the circled "i"). Drop it inline right after a
   label/eyebrow/toggle title: <span class="info">...markup below...</span> */
.label-row { display: flex; align-items: center; gap: 6px; margin-bottom: 6px; }
.label-row .field-label, .label-row .eyebrow { margin-bottom: 0; }
.info { display: inline-block; }
.info summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; width: 16px; height: 16px; border-radius: 50%; background: var(--glass-2); border: 1px solid var(--line-2); color: var(--faint); font: 700 11px/1 var(--font-body); user-select: none; }
.info summary::-webkit-details-marker, .info summary::marker { display: none; content: ""; }
.info[open] summary { background: var(--lime); border-color: var(--lime); color: var(--lime-ink); }
.info .info-pop { margin: 6px 0 2px; padding: 9px 11px; background: var(--ink-3); border: 1px solid var(--line-2); border-radius: var(--radius-sm); font-size: 12.5px; line-height: 1.45; color: var(--muted); max-width: 420px; }
.toggle-copy .info { margin-left: 4px; vertical-align: -3px; }
.input, select.input, textarea.input {
  width: 100%; min-height: 48px; padding: 12px 16px; border-radius: 14px;
  background: var(--glass-2); border: 1px solid var(--line); color: var(--text);
  font: 600 15px/1.3 var(--font-body); outline: none;
}
.input:focus { border-color: var(--violet); box-shadow: 0 0 0 4px rgba(140, 108, 255, 0.2); }
.input::placeholder { color: var(--faint); font-weight: 500; }
.input.mono-in { font-family: var(--font-mono); font-size: 14px; letter-spacing: 0.02em; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; width: 100%; padding: 0 20px; border-radius: 14px; border: 0;
  font: 700 15px/1 var(--font-body); cursor: pointer; text-align: center;
}
.btn.primary { background: var(--lime); color: var(--lime-ink); box-shadow: 0 10px 30px rgba(212, 255, 58, 0.22); }
.btn.violet { background: linear-gradient(135deg, var(--violet), var(--magenta)); color: #fff; }
.btn.ghost { background: var(--glass-2); border: 1px solid var(--line-2); color: var(--text); }
.btn.danger { background: rgba(255, 92, 122, 0.12); color: var(--bad); border: 1px solid rgba(255, 92, 122, 0.3); }
.btn.small { min-height: 38px; font-size: 13px; padding: 0 14px; width: auto; }

/* Pills / status */
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font: 700 11.5px/1 var(--font-body); text-transform: uppercase; letter-spacing: 0.04em; }
.pill.ok { color: var(--ok); background: rgba(77, 255, 176, 0.1); }
.pill.wait { color: var(--warn); background: rgba(255, 201, 77, 0.1); }
.pill.bad { color: var(--bad); background: rgba(255, 92, 122, 0.1); }
.pill.off { color: var(--faint); background: var(--glass-2); }

/* Alerts */
.alert { border-radius: 14px; padding: 12px 16px; font-size: 14px; margin-bottom: 16px; }
.alert.error { background: rgba(255, 92, 122, 0.1); color: var(--bad); border: 1px solid rgba(255, 92, 122, 0.25); }
.alert.warn { background: rgba(255, 201, 77, 0.1); color: var(--warn); border: 1px solid rgba(255, 201, 77, 0.25); }
.alert.ok { background: rgba(77, 255, 176, 0.1); color: var(--ok); border: 1px solid rgba(77, 255, 176, 0.25); }

/* Lists */
.list-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.list-row:last-child { border-bottom: 0; }

/* Credentials box */
.cred-box { background: var(--ink-3); border: 1px solid var(--line-2); border-radius: 16px; padding: 16px; margin-bottom: 10px; }
.cred-label { font-size: 11px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--faint); margin-bottom: 6px; }
.cred-value { font-family: var(--font-mono); font-size: 16px; font-weight: 700; color: var(--lime); word-break: break-all; }

footer.foot { margin-top: auto; padding-top: 32px; text-align: center; font-size: 12px; color: var(--faint); }
.foot-links { margin-top: 6px; }
.foot-links a { color: var(--faint); font-weight: 600; }
.foot-links a:hover { color: var(--lime); }
.foot-dot { margin: 0 6px; color: var(--faint); }

/* Marketing home page: hero, action tiles, ticker */
.pill-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 4px; }
.pill.soon { color: var(--faint); background: var(--glass-2); border: 1px dashed var(--line-2); }

.hero { position: relative; padding: 8px 0 4px; }
.hero h1 { font-size: clamp(30px, 9vw, 42px); line-height: 1.05; letter-spacing: -0.04em; margin-bottom: 12px; }
.hero h1 em { font-style: normal; background: linear-gradient(95deg, var(--lime), #9BFFCF 45%, var(--violet)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { font-size: 15.5px; color: var(--muted); max-width: 38ch; margin-bottom: 0; clear: both; }
.hero-cta { display: flex; gap: 10px; margin-top: 20px; }
.hero-cta .btn { flex: 1; }
/* Floated (not absolutely positioned) so the eyebrow and headline wrap
   around it for as many lines as it's actually tall, then continue
   full-width — this keeps it clear of the text automatically at any
   viewport width or headline length, instead of a fixed padding guess. */
.sigil { float: right; width: 84px; height: 84px; margin: 0 0 10px 14px; opacity: 0.95; pointer-events: none; }
.sigil svg { width: 100%; height: 100%; overflow: visible; display: block; }
.sigil .orbit { transform-origin: 60px 60px; animation: vp-spin 16s linear infinite; }
.sigil .orbit.r { animation-duration: 26s; animation-direction: reverse; }
@keyframes vp-spin { to { transform: rotate(360deg); } }

.actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 22px 0 6px; }
.action {
  position: relative; overflow: hidden; display: grid; align-content: space-between; gap: 18px;
  min-height: 132px; padding: 16px; border-radius: var(--radius); color: var(--text);
  background: var(--glass); border: 1px solid var(--line);
}
.action .a-ic { width: 40px; height: 40px; border-radius: 13px; display: grid; place-items: center; }
.action h3 { font-size: 15px; margin-bottom: 2px; }
.action p { font-size: 12px; color: var(--muted); margin: 0; line-height: 1.35; }
.action::after { content: ''; position: absolute; width: 120px; height: 120px; right: -40px; top: -40px; border-radius: 50%; filter: blur(30px); opacity: 0.3; }
.action.lime .a-ic { background: var(--lime); color: var(--lime-ink); }
.action.lime::after { background: var(--lime); opacity: 0.16; }
.action.violet .a-ic { background: var(--violet); color: #fff; }
.action.violet::after { background: var(--violet); }
.action.pink .a-ic { background: var(--magenta); color: #fff; }
.action.pink::after { background: var(--magenta); }
.action.mint .a-ic { background: #4DFFB0; color: #002615; }
.action.mint::after { background: #4DFFB0; opacity: 0.2; }

.ticker { display: flex; gap: 26px; overflow: hidden; white-space: nowrap; margin: 22px -18px -4px; padding: 12px 0; border-block: 1px solid var(--line); color: var(--faint); font: 700 12px/1 var(--font-body); letter-spacing: 0.14em; text-transform: uppercase; mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.ticker div { display: flex; gap: 26px; animation: vp-marquee 30s linear infinite; flex: none; }
.ticker span::before { content: '✦'; color: var(--lime); margin-right: 26px; }
@keyframes vp-marquee { to { transform: translateX(-50%); } }

.section-anchor { scroll-margin-top: 24px; }

/* Dashboard tab nav */
.tabnav { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 14px; margin-bottom: 6px; -webkit-overflow-scrolling: touch; }
.tabnav::-webkit-scrollbar { display: none; }
.tabnav a { flex: 0 0 auto; padding: 9px 14px; border-radius: 999px; font: 700 13px/1 var(--font-body); color: var(--muted); background: var(--glass); border: 1px solid var(--line); white-space: nowrap; }
.tabnav a.active { color: var(--lime-ink); background: var(--lime); border-color: var(--lime); }

/* Checkbox / toggle rows */
.check-row { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.check-row:last-child { border-bottom: 0; }
.check-row input[type="checkbox"] { width: 20px; height: 20px; accent-color: var(--lime); flex: 0 0 auto; }
.check-row label { flex: 1; font-weight: 600; }

.toggle-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.toggle-row:last-child { border-bottom: 0; }
.toggle-row .toggle-copy b { display: block; font-size: 14.5px; }
.toggle-row .toggle-copy span { display: block; font-size: 12.5px; color: var(--faint); margin-top: 2px; }
.switch { position: relative; display: inline-block; width: 44px; height: 26px; flex: 0 0 auto; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch .track { position: absolute; inset: 0; background: var(--glass-2); border: 1px solid var(--line-2); border-radius: 999px; transition: background .15s; }
.switch .track::before { content: ""; position: absolute; width: 18px; height: 18px; left: 3px; top: 3px; background: var(--faint); border-radius: 50%; transition: transform .15s, background .15s; }
.switch input:checked + .track { background: rgba(212, 255, 58, 0.18); border-color: var(--lime); }
.switch input:checked + .track::before { transform: translateX(18px); background: var(--lime); }

/* Small inline entity rows with an edit link */
.entity-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.entity-row:last-child { border-bottom: 0; }
.entity-row .entity-main { display: flex; flex-direction: column; gap: 2px; }
.entity-row .entity-main b { font-size: 14.5px; }
.entity-row .entity-main span { font-size: 12.5px; color: var(--faint); }
.entity-row .entity-actions { display: flex; align-items: center; gap: 8px; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.inline-form { display: flex; gap: 8px; align-items: flex-end; flex-wrap: wrap; }
.inline-form .field { flex: 1 1 140px; margin-bottom: 0; }

.empty-note { color: var(--faint); font-size: 13.5px; padding: 6px 0 2px; }

/* Connections list (dashboard/connections.html): each platform collapses
   into a summary row, click to expand its settings — same visual weight
   as .card but collapsible. */
.connection-accordion { background: var(--glass); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 16px; overflow: hidden; }
.connection-accordion summary { list-style: none; cursor: pointer; padding: 22px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.connection-accordion summary::-webkit-details-marker { display: none; }
.connection-summary-left { display: flex; align-items: center; gap: 10px; }
.connection-accordion .chev { color: var(--faint); font-weight: 700; transition: transform .15s ease; font-size: 13px; }
.connection-accordion[open] .chev { transform: rotate(180deg); }
.connection-accordion-body { padding: 0 22px 22px; }
.connection-accordion-soon { opacity: 0.7; }

/* Category picker (coupons: tick a category to reveal its products) */
.category-picker { border: 1px solid var(--line); border-radius: var(--radius-sm); margin-bottom: 10px; overflow: hidden; }
.category-picker summary { list-style: none; cursor: pointer; padding: 12px 14px; font-weight: 700; font-size: 14.5px; background: var(--glass-2); display: flex; align-items: center; justify-content: space-between; }
.category-picker summary::-webkit-details-marker { display: none; }
.category-picker summary::after { content: "+"; color: var(--faint); font-weight: 700; }
.category-picker[open] summary::after { content: "\2212"; }
.category-picker-body { padding: 4px 14px 8px; }

/* Smaller nested accordion, e.g. a product inside a category. */
.product-picker { border: 1px solid var(--line); border-radius: 10px; margin: 8px 0; overflow: hidden; background: var(--glass); }
.product-picker summary { list-style: none; cursor: pointer; padding: 10px 12px; font-weight: 600; font-size: 13.5px; display: flex; align-items: center; justify-content: space-between; }
.product-picker summary::-webkit-details-marker { display: none; }
.product-picker summary::after { content: "+"; color: var(--faint); font-weight: 700; }
.product-picker[open] summary::after { content: "\2212"; }
.product-picker-body { padding: 2px 12px 10px; }
.product-picker .entity-row:first-child { padding-top: 4px; }

@media (min-width: 640px) {
  .shell { padding-top: 48px; }
}
