:root {
  --bg: #09080b;
  --bg-2: #0f0d12;
  --panel: #141118;
  --panel-2: #1b1720;
  --card: #241a2b;
  --card-2: #2c2034;
  --line: rgba(196, 140, 255, 0.12);
  --line-2: rgba(196, 140, 255, 0.22);
  --text: #f4f0f8;
  --muted: #a69cb2;
  --dim: #6f6679;
  --accent: #a855f7;
  --accent-2: #c026d3;
  --accent-3: #6d28d9;
  --accent-soft: rgba(168, 85, 247, 0.16);
  --grad: linear-gradient(120deg, #6a00ff 0%, #9b1cff 45%, #d43bff 100%);
  --ok: #22c55e;
  --warn: #f59e0b;
  --danger: #ef4444;
  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 20px 60px -20px rgba(0, 0, 0, 0.7);
  --font: 'Outfit', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
/* Overflow set on <html> applies to the viewport: no sideways scrolling on phones, sticky headers keep working. */
html { -webkit-text-size-adjust: 100%; overflow-x: hidden; }
/* Navbar anchors (#funkcje, #jak): smooth scroll, sections land below the sticky nav */
html { scroll-behavior: smooth; scroll-padding-top: 104px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
.nav-links .link.active { color: var(--text); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: rgba(168, 85, 247, 0.45); }
.accent-text { color: var(--accent); }
.muted { color: var(--muted); }
.hidden { display: none !important; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 12px 22px; border-radius: 999px; border: 1px solid var(--line-2);
  background: var(--panel-2); color: var(--text); cursor: pointer; font-weight: 500;
  transition: transform .12s var(--ease, ease), background .15s, border-color .15s, opacity .15s;
  white-space: nowrap; user-select: none;
}
.btn:hover { border-color: rgba(196, 140, 255, 0.4); background: #221c29; }
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-primary, .btn-grad { background: #7c3aed; border-color: #8b5cf6; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18); color: #fff; }
.btn-primary:hover, .btn-grad:hover { background: #6d28d9; border-color: #7c3aed; }
.btn-danger { background: rgba(239, 68, 68, .12); border-color: rgba(239, 68, 68, .4); color: #fca5a5; }
.btn-danger:hover { background: rgba(239, 68, 68, .2); border-color: rgba(239, 68, 68, .6); }
.btn-ghost { background: transparent; border-color: transparent; }
.btn-ghost:hover { background: rgba(255,255,255,.05); border-color: transparent; }
.btn-sm { padding: 8px 14px; font-size: 14px; }
.btn-lg { padding: 16px 30px; font-size: 18px; }
.btn-icon { width: 44px; height: 44px; padding: 0; border-radius: 14px; }
.btn-block { width: 100%; }

/* ---------- Forms ---------- */
.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.field > label, .label { font-size: 14px; color: var(--muted); font-weight: 500; }
.hint { font-size: 13px; color: var(--dim); }
.input, .select, .textarea {
  width: 100%; padding: 13px 16px; border-radius: 14px; border: 1px solid var(--line);
  background: var(--bg-2); outline: none; transition: border-color .2s, box-shadow .2s;
}
.textarea { resize: vertical; min-height: 96px; }
.input:focus, .select:focus, .textarea:focus { border-color: rgba(168, 85, 247, .6); box-shadow: 0 0 0 4px rgba(168, 85, 247, .12); }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23a69cb2' stroke-width='3'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 40px; }
.select option { background: var(--panel); }
.input-group { display: flex; align-items: stretch; border: 1px solid var(--line); border-radius: 14px; background: var(--bg-2); overflow: hidden; transition: border-color .2s, box-shadow .2s; }
.input-group:focus-within { border-color: rgba(168, 85, 247, .6); box-shadow: 0 0 0 4px rgba(168, 85, 247, .12); }
.input-group .prefix { padding: 13px 0 13px 16px; color: var(--dim); white-space: nowrap; }
.input-group .input { border: 0; background: transparent; box-shadow: none; padding-left: 2px; }
.input-group .btn { border-radius: 0; border: 0; border-left: 1px solid var(--line); }

/* switch */
.switch { position: relative; display: inline-flex; width: 46px; height: 26px; flex: 0 0 auto; }
.switch input { opacity: 0; width: 0; height: 0; position: absolute; }
.switch span { position: absolute; inset: 0; border-radius: 99px; background: #2a2531; border: 1px solid var(--line); cursor: pointer; transition: background .2s; }
.switch span::after { content: ''; position: absolute; left: 3px; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: #cfc6d9; transition: transform .2s, background .2s; }
.switch input:checked + span { background: var(--accent); border-color: transparent; }
.switch input:checked + span::after { transform: translateX(20px); background: #fff; }
.switch input:focus-visible + span { box-shadow: 0 0 0 3px rgba(168, 85, 247, .35); }

.toggle-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.toggle-row:last-child { border-bottom: 0; }
.toggle-row .t { font-weight: 500; }
.toggle-row .d { font-size: 13px; color: var(--dim); }

/* range */
.range-row { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; align-items: center; margin-bottom: 16px; }
.range-row label { font-size: 14px; color: var(--muted); }
.range-row output { font-size: 13px; color: var(--text); background: var(--panel-2); border: 1px solid var(--line); padding: 2px 10px; border-radius: 99px; min-width: 52px; text-align: center; }
.range-row input { grid-column: 1 / -1; }
input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 99px; background: #2a2531; outline: none; }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; border-radius: 50%; background: #fff; border: 4px solid var(--accent); cursor: pointer; box-shadow: 0 0 12px rgba(168, 85, 247, .6); }
input[type=range]::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 4px solid var(--accent); cursor: pointer; }

/* color */
.color-field { display: flex; align-items: center; gap: 10px; padding: 8px 10px 8px 8px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg-2); }
.color-field input[type=color] { -webkit-appearance: none; appearance: none; width: 36px; height: 36px; border: 0; border-radius: 10px; padding: 0; background: none; cursor: pointer; flex: 0 0 auto; }
.color-field input[type=color]::-webkit-color-swatch-wrapper { padding: 0; }
.color-field input[type=color]::-webkit-color-swatch { border: 1px solid rgba(255,255,255,.15); border-radius: 10px; }
.color-field input[type=color]::-moz-color-swatch { border: 1px solid rgba(255,255,255,.15); border-radius: 10px; }
.color-field .input { border: 0; padding: 6px 4px; background: transparent; box-shadow: none !important; font-family: ui-monospace, monospace; font-size: 14px; }

/* ---------- Toast / modal ---------- */
.toasts { position: fixed; z-index: 1000; bottom: 20px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; gap: 10px; width: min(420px, calc(100% - 32px)); pointer-events: none; }
.toast { pointer-events: auto; display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-radius: 16px; background: rgba(28, 22, 34, .96); border: 1px solid var(--line-2); box-shadow: var(--shadow); backdrop-filter: blur(12px); animation: toast-in .25s ease; font-size: 15px; }
.toast i { font-size: 18px; }
.toast.ok i { color: var(--ok); }
.toast.err i { color: var(--danger); }
.toast.out { animation: toast-out .25s ease forwards; }
@keyframes toast-in { from { opacity: 0; transform: translateY(12px) scale(.98); } }
@keyframes toast-out { to { opacity: 0; transform: translateY(12px) scale(.98); } }

.modal-back { position: fixed; inset: 0; z-index: 900; background: rgba(5, 3, 8, .7); backdrop-filter: blur(6px); display: grid; place-items: center; padding: 16px; animation: fade .2s ease; }
.modal { width: min(520px, 100%); max-height: calc(100vh - 32px); overflow: auto; background: var(--panel); border: 1px solid var(--line-2); border-radius: 24px; padding: 24px; box-shadow: var(--shadow); animation: pop .22s ease; }
.modal h3 { margin: 0 0 6px; font-size: 22px; font-weight: 600; }
.modal .actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 20px; flex-wrap: wrap; }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.98); } }

/* ---------- Brand ---------- */
.brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 600; font-size: 24px; letter-spacing: -.01em; }
.brand img { width: 52px; height: auto; filter: drop-shadow(0 4px 14px rgba(155, 28, 255, .45)); }
.brand b { font-weight: 600; }
.brand .tld { color: var(--accent); }

/* ---------- Landing ---------- */
.bg-fx { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; background: radial-gradient(1200px 600px at 50% -10%, rgba(108, 30, 170, .35), transparent 60%), radial-gradient(800px 500px at 100% 40%, rgba(192, 38, 211, .12), transparent 60%), radial-gradient(700px 500px at 0% 70%, rgba(109, 40, 217, .14), transparent 60%), var(--bg); }
.bg-fx::before { content: ''; position: absolute; inset: 0; background-image: linear-gradient(rgba(196, 140, 255, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(196, 140, 255, .05) 1px, transparent 1px); background-size: 56px 56px; mask-image: radial-gradient(ellipse at 50% 20%, #000 20%, transparent 70%); }
.bg-fx .mark { position: absolute; width: 520px; opacity: .06; top: 4%; right: -140px; transform: rotate(-8deg); filter: blur(1px); }

.nav { position: sticky; top: 12px; z-index: 50; max-width: 1180px; margin: 12px auto 0; padding: 0 16px; }
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 12px 12px 24px; border-radius: 999px; background: rgba(18, 14, 22, .78); border: 1px solid var(--line); backdrop-filter: blur(16px); box-shadow: var(--shadow); }
.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a.link { padding: 10px 16px; border-radius: 99px; color: var(--muted); transition: color .2s, background .2s; }
.nav-links a.link:hover { color: var(--text); background: rgba(255,255,255,.04); }
.burger { display: none; background: none; border: 0; width: 48px; height: 48px; cursor: pointer; padding: 10px; }
.burger span { display: block; height: 3px; border-radius: 3px; background: var(--accent); margin: 6px 0; transition: transform .25s, opacity .25s; }
.burger.open span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }
.mobile-menu { display: none; }

.hero { max-width: 1180px; margin: 0 auto; padding: 96px 16px 40px; text-align: center; overflow-x: clip; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 6px 6px 14px; border-radius: 99px; background: rgba(255, 255, 255, .04); border: 1px solid var(--line); color: var(--muted); font-size: 14px; margin-bottom: 24px; }
.pill > i { color: #c084fc; font-size: 12px; }
.pill code { font-family: ui-monospace, 'JetBrains Mono', monospace; font-size: 12px; letter-spacing: .06em; padding: 2px 8px; border-radius: 99px; background: rgba(255, 255, 255, .06); border: 1px solid var(--line); color: #e9d5ff; }
.hero h1 { font-size: clamp(44px, 8vw, 92px); line-height: 1.02; letter-spacing: -.03em; font-weight: 500; margin: 0 auto 24px; max-width: 900px; }
.hero h1 .grad { color: #c084fc; }
.hero p.lead { font-size: clamp(18px, 2.4vw, 20px); line-height: 1.5; color: #cfc5da; max-width: 36rem; margin: 0 auto 32px; font-weight: 400; }
.hero-cta { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
.claim { margin: 32px auto 0; max-width: 520px; }
.claim .input-group { border-radius: 999px; padding: 6px; background: rgba(15, 13, 18, .8); }
.claim .prefix { padding: 12px 0 12px 18px; }
.claim .btn { border-radius: 999px !important; border: 0 !important; }

.showcase { position: relative; height: 520px; max-width: 980px; margin: 72px auto 0; perspective: 1400px; }
.phone { position: absolute; width: 260px; height: 480px; border-radius: 34px; overflow: hidden; border: 1px solid rgba(196, 140, 255, .35); box-shadow: 0 30px 80px -20px rgba(0,0,0,.9), 0 0 60px -20px rgba(168, 85, 247, .5); background: #111; transition: transform .6s cubic-bezier(.2,.8,.2,1); }
.phone .ph-bg { position: absolute; inset: 0; }
.phone .ph-card { position: absolute; left: 16px; right: 16px; top: 120px; padding: 54px 16px 18px; border-radius: 20px; background: rgba(10, 8, 14, .45); border: 1px solid rgba(255,255,255,.1); backdrop-filter: blur(10px); text-align: center; }
.phone .ph-av { position: absolute; top: -40px; left: 50%; transform: translateX(-50%); width: 80px; height: 80px; border-radius: 50%; border: 3px solid rgba(255,255,255,.15); display: grid; place-items: center; font-size: 30px; font-weight: 700; }
.phone .ph-name { font-size: 22px; font-weight: 600; }
.phone .ph-badges, .phone .ph-socials { display: flex; justify-content: center; gap: 8px; margin: 6px 0; font-size: 13px; }
.phone .ph-desc { font-size: 12px; color: rgba(255,255,255,.65); margin: 6px 0 12px; }
.phone .ph-socials { font-size: 20px; gap: 14px; margin: 12px 0; }
.phone .ph-btn { margin-top: 8px; padding: 10px; border-radius: 12px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.08); font-size: 12px; }
.phone .ph-views { position: absolute; left: 22px; bottom: 16px; font-size: 11px; color: rgba(255,255,255,.6); }
.phone.p1 { left: 50%; top: 40px; transform: translateX(-160%) rotateY(18deg) rotateZ(-6deg); }
.phone.p2 { left: 50%; top: 0; transform: translateX(-50%); z-index: 2; }
.phone.p3 { left: 50%; top: 40px; transform: translateX(60%) rotateY(-18deg) rotateZ(6deg); }
.showcase:hover .phone.p1 { transform: translateX(-170%) rotateY(10deg) rotateZ(-4deg); }
.showcase:hover .phone.p3 { transform: translateX(70%) rotateY(-10deg) rotateZ(4deg); }
/* Fade the bottom of the phones into whatever is behind them (no solid overlay box) */
.showcase { -webkit-mask-image: linear-gradient(#000 62%, transparent 96%); mask-image: linear-gradient(#000 62%, transparent 96%); }

.section { max-width: 1180px; margin: 0 auto; padding: 80px 16px; }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 48px; }
.section-head h2 { font-size: clamp(32px, 5vw, 52px); letter-spacing: -.03em; line-height: 1.05; margin: 0 0 12px; font-weight: 500; }
.section-head p { color: var(--muted); font-size: 18px; margin: 0; }
.eyebrow { color: var(--accent); font-weight: 500; font-size: 15px; margin-bottom: 12px; display: block; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stat { padding: 24px; border-radius: var(--radius); background: linear-gradient(180deg, rgba(36, 26, 43, .7), rgba(20, 17, 24, .7)); border: 1px solid var(--line); text-align: center; }
.stat .num { font-size: clamp(30px, 4vw, 44px); font-weight: 500; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.stat .lbl { color: var(--muted); }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature { padding: 28px; border-radius: 24px; background: rgba(20, 17, 24, .75); border: 1px solid var(--line); transition: transform .25s, border-color .25s, background .25s; }
.feature:hover { transform: translateY(-4px); border-color: var(--line-2); background: rgba(36, 26, 43, .75); }
.feature .ic { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; font-size: 22px; background: var(--accent-soft); color: #d8b4fe; margin-bottom: 16px; border: 1px solid var(--line-2); }
.feature h3 { margin: 0 0 8px; font-size: 20px; font-weight: 500; }
.feature p { margin: 0; color: var(--muted); }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: step; }
.step { padding: 28px; border-radius: 24px; border: 1px dashed var(--line-2); position: relative; }
.step::before { counter-increment: step; content: counter(step); position: absolute; top: -18px; left: 24px; width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; background: #7c3aed; font-weight: 600; }
.step h3 { margin: 8px 0 8px; font-size: 20px; font-weight: 500; }
.step p { color: var(--muted); margin: 0; }

.cta-box { text-align: center; padding: 64px 24px; border-radius: 32px; background: radial-gradient(600px 300px at 50% 0%, rgba(168, 85, 247, .35), transparent 70%), var(--panel); border: 1px solid var(--line-2); position: relative; overflow: hidden; }
.cta-box img { width: 140px; margin: 0 auto 16px; }
.cta-box h2 { font-size: clamp(30px, 5vw, 48px); margin: 0 0 12px; letter-spacing: -.03em; font-weight: 500; }
.cta-box p { color: var(--muted); margin: 0 auto 28px; max-width: 520px; font-size: 18px; }

.footer { border-top: 1px solid var(--line); margin-top: 40px; }
.footer-inner { max-width: 1180px; margin: 0 auto; padding: 32px 16px; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; color: var(--dim); font-size: 14px; }
.footer .brand { font-size: 20px; color: var(--text); }
.footer .brand img { width: 40px; }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Auth ---------- */
.auth-wrap { min-height: 100vh; display: grid; place-items: center; padding: 32px 16px; }
.auth-card { width: min(440px, 100%); padding: 34px 28px; border-radius: 28px; background: rgba(20, 17, 24, .85); border: 1px solid var(--line-2); box-shadow: var(--shadow); backdrop-filter: blur(14px); }
.auth-card .brand { display: flex; justify-content: center; margin-bottom: 22px; }
.auth-card h1 { margin: 0 0 6px; font-size: 28px; text-align: center; font-weight: 600; letter-spacing: -.02em; }
.auth-card .sub { text-align: center; color: var(--muted); margin: 0 0 26px; }
.auth-card .alt { text-align: center; color: var(--muted); margin-top: 20px; font-size: 15px; }
.auth-card .alt a { color: #d8b4fe; }
.form-err { display: none; padding: 12px 14px; border-radius: 12px; background: rgba(239, 68, 68, .1); border: 1px solid rgba(239, 68, 68, .35); color: #fca5a5; font-size: 14px; margin-bottom: 16px; }
.form-err.show { display: block; }
.pw-wrap { position: relative; }
.pw-wrap .input { padding-right: 48px; }
.pw-wrap button { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); background: none; border: 0; color: var(--dim); width: 38px; height: 38px; cursor: pointer; border-radius: 10px; }
.pw-wrap button:hover { color: var(--text); }

/* ---------- Responsive (landing) ---------- */
@media (max-width: 960px) {
  .features { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; gap: 30px; }
}
@media (max-width: 760px) {
  .nav-links { display: none; }
  .burger { display: block; }
  .mobile-menu { display: block; position: fixed; top: 96px; left: 16px; right: 16px; z-index: 49; padding: 12px; border-radius: 24px; background: rgba(18, 14, 22, .96); border: 1px solid var(--line); backdrop-filter: blur(16px); box-shadow: var(--shadow); transform: translateY(-12px); opacity: 0; pointer-events: none; transition: .25s; }
  .mobile-menu.open { transform: none; opacity: 1; pointer-events: auto; }
  .mobile-menu a { display: block; padding: 14px 16px; border-radius: 14px; font-size: 18px; }
  .mobile-menu a:hover { background: rgba(255,255,255,.04); }
  .mobile-menu .btn { margin-top: 8px; width: 100%; }
  .brand { font-size: 22px; }
  .brand img { width: 44px; }
  .hero { padding-top: 64px; }
  .features { grid-template-columns: 1fr; }
  .showcase { height: 520px; transform: scale(.82); transform-origin: top center; margin-top: 40px; margin-bottom: -94px; }
  .phone.p1 { transform: translateX(-118%) rotateY(18deg) rotateZ(-6deg); }
  .phone.p3 { transform: translateX(18%) rotateY(-18deg) rotateZ(6deg); }
  .showcase:hover .phone.p1 { transform: translateX(-118%) rotateY(18deg) rotateZ(-6deg); }
  .showcase:hover .phone.p3 { transform: translateX(18%) rotateY(-18deg) rotateZ(6deg); }
  .section { padding: 56px 16px; }
  .stat { padding: 20px 12px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; animation-delay: 0s !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; filter: none; }
}

/* =====================================================================
   Animations (all disabled by the prefers-reduced-motion rule above)
   ===================================================================== */
[hidden] { display: none !important; }

/* Motion system: one easing, short durations, no loops in chrome.
   Design pass based on unslop by Damir Sokolovsky (@heydamir), CC BY 4.0. */
:root { --ease: cubic-bezier(.22, 1, .36, 1); }
.bg-fx::after { content: ''; position: absolute; inset: -40%; background:
    radial-gradient(closest-side at 30% 35%, rgba(124, 58, 237, .22), transparent),
    radial-gradient(closest-side at 70% 60%, rgba(76, 29, 149, .2), transparent);
  filter: blur(30px); opacity: .8; }

@keyframes fadeUp { from { opacity: 0; translate: 0 8px; } }
.hero > * { animation: fadeUp .4s var(--ease) backwards; }
.hero > :nth-child(2) { animation-delay: .04s; }
.hero > :nth-child(3) { animation-delay: .08s; }
.hero > :nth-child(4) { animation-delay: .12s; }
.hero > :nth-child(n+5) { animation-delay: .16s; }

.btn { position: relative; }
.reveal { transition: opacity .4s var(--ease), transform .4s var(--ease); }

.feature .ic { transition: background .15s var(--ease), color .15s var(--ease); }
.feature:hover .ic { background: rgba(168, 85, 247, .2); color: #f3e8ff; }
.stat { transition: border-color .15s var(--ease); }
.stat:hover { border-color: var(--line-2); }

@keyframes cardIn { from { opacity: 0; translate: 0 8px; } }
.auth-card { animation: cardIn .35s var(--ease) backwards; }
.auth-card .brand img { width: 60px; }
.form-err.show { animation: shake .3s var(--ease); }
@keyframes shake { 25%, 75% { translate: -3px 0; } 50% { translate: 3px 0; } }

/* Invite code field on the register page */
.invite-field { padding: 14px; border-radius: 18px; border: 1px dashed rgba(168, 85, 247, .5); background: rgba(168, 85, 247, .06); }
.invite-field label i { color: #d8b4fe; margin-right: 4px; }
.invite-input { text-align: center; font-family: ui-monospace, 'JetBrains Mono', monospace; font-size: 19px; letter-spacing: .14em; text-transform: uppercase; }
.invite-input::placeholder { letter-spacing: .14em; opacity: .4; }

/* Modal + toast springs */
.toast { animation: toastIn .2s var(--ease); }
@keyframes toastIn { from { opacity: 0; translate: 0 8px; } }
.modal { animation: modalIn .25s var(--ease); }
@keyframes modalIn { from { opacity: 0; translate: 0 8px; } }

/* Announcement bar on public pages */
.announce.top { position: relative; z-index: 70; display: flex; align-items: center; justify-content: center; gap: 10px; padding: 10px 44px; font-size: 14px; text-align: center; background: linear-gradient(90deg, rgba(106, 0, 255, .35), rgba(212, 59, 255, .3)); border-bottom: 1px solid rgba(196, 140, 255, .3); color: #f3e8ff; }
.announce.top.success { background: linear-gradient(90deg, rgba(22, 163, 74, .3), rgba(34, 197, 94, .2)); }
.announce.top.warn { background: linear-gradient(90deg, rgba(217, 119, 6, .35), rgba(245, 158, 11, .25)); }
.announce.top button { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); background: none; border: 0; color: inherit; cursor: pointer; opacity: .7; width: 30px; height: 30px; }
.announce.top button:hover { opacity: 1; }

/* =====================================================================
   Purple scrollbars (Chrome/Edge/Safari get a gradient, Firefox a solid colour)
   ===================================================================== */
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: #0c0a10; }
::-webkit-scrollbar-thumb { background: linear-gradient(180deg, #7c3aed, #c026d3); border-radius: 99px; border: 2px solid #0c0a10; }
::-webkit-scrollbar-thumb:hover { background: linear-gradient(180deg, #8b5cf6, #e879f9); }
::-webkit-scrollbar-corner { background: transparent; }
@supports not selector(::-webkit-scrollbar) { html, * { scrollbar-color: #8b5cf6 #0c0a10; scrollbar-width: thin; } }
.sidebar::-webkit-scrollbar, .modal::-webkit-scrollbar, .table-wrap::-webkit-scrollbar { width: 7px; height: 7px; }
.sidebar::-webkit-scrollbar-track, .modal::-webkit-scrollbar-track, .table-wrap::-webkit-scrollbar-track { background: transparent; }
.sidebar::-webkit-scrollbar-thumb, .modal::-webkit-scrollbar-thumb, .table-wrap::-webkit-scrollbar-thumb { border: 0; }

/* =====================================================================
   Gold "Owner" badge (crown) — shimmering gold, everywhere it appears
   ===================================================================== */
[data-key="owner"] i {
  background: linear-gradient(110deg, #b8860b 0%, #ffd700 22%, #fff6c2 38%, #ffc800 52%, #b8860b 75%, #ffd700 100%);
  background-size: 250% auto; -webkit-background-clip: text; background-clip: text; color: transparent !important;
  filter: drop-shadow(0 0 6px rgba(255, 200, 0, .75)) !important; animation: goldShine 3s linear infinite;
}
@keyframes goldShine { to { background-position: 250% center; } }
.bic[data-key="owner"] { background: radial-gradient(circle, rgba(255, 200, 0, .18), rgba(255, 200, 0, .04)) !important; box-shadow: inset 0 0 0 1px rgba(255, 200, 0, .35); }

/* =====================================================================
   More animations
   ===================================================================== */
/* Switch knob */
.switch span::after { transition: transform .18s var(--ease), background .15s var(--ease); }

/* Confetti canvas */
.confetti { position: fixed; inset: 0; z-index: 2000; pointer-events: none; }

/* Skeleton loading blocks (dashboard) */
.skel { display: grid; gap: 18px; }
.skel .sk { border-radius: 26px; background: linear-gradient(100deg, #15121a 30%, #221b2a 50%, #15121a 70%); background-size: 300% 100%; animation: skel 1.3s ease-in-out infinite; }
@keyframes skel { from { background-position: 100% 0; } to { background-position: 0 0; } }
.skel .sk-title { height: 40px; width: 280px; border-radius: 14px; }
.skel .sk-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.skel .sk-card { height: 150px; }
.skel .sk-panel { height: 260px; }
@media (max-width: 760px) { .skel .sk-row { grid-template-columns: 1fr 1fr; } .skel .sk-card { height: 120px; } }

/* Landing page buttons (unslop light pass): solid accent with a top highlight, no coloured glow */
.landing .btn-primary, .landing .btn-grad { background: #7c3aed; border-color: transparent; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18); }
.landing .btn-primary:hover, .landing .btn-grad:hover { background: #6d28d9; filter: none; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22); }
.landing .btn:active { transform: scale(.98); }
