/* ایجنت‌خان — one stylesheet for the site, the dashboard and the admin panel. Dark by default; [data-theme=light]. */
@font-face { font-family: "Estedad"; src: url("/static/fonts/Estedad-wght.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --bg: #06060c; --bg2: #0b0b16; --card: rgba(255,255,255,.035); --card2: rgba(255,255,255,.06); --line: rgba(255,255,255,.085);
  --line2: rgba(255,255,255,.16); --text: #eeedf7; --muted: #9b99b4; --dim: #6c6a85;
  --a1: #8b5cff; --a2: #22d3ee; --a3: #f472b6; --ok: #34d399; --warn: #fbbf24; --bad: #fb7185;
  --grad: linear-gradient(120deg, var(--a1), var(--a2)); --grad3: linear-gradient(120deg, #8b5cff, #22d3ee 55%, #a3e635);
  --glass: rgba(14,14,26,.72); --shadow: 0 20px 60px -20px rgba(0,0,0,.7); --r: 18px; --r2: 26px;
  color-scheme: dark;
}
:root[data-theme="light"] {
  --bg: #f6f6fb; --bg2: #ffffff; --card: rgba(20,16,60,.035); --card2: rgba(20,16,60,.06); --line: rgba(20,16,60,.09);
  --line2: rgba(20,16,60,.18); --text: #15132b; --muted: #5d5a7a; --dim: #8b88a6; --glass: rgba(255,255,255,.78);
  --shadow: 0 20px 50px -24px rgba(40,30,120,.28); color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 15.5px/1.85 "Estedad", Tahoma, sans-serif; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { line-height: 1.35; margin: 0 0 .5em; font-weight: 800; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
code { font-family: ui-monospace, Menlo, monospace; font-size: .88em; background: var(--card2); padding: .1em .4em; border-radius: 6px; direction: ltr; unicode-bidi: isolate; }
pre { background: #0d0d1a; color: #d6d4f0; border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; overflow-x: auto; font-size: 13px; line-height: 1.7; text-align: left; }
pre code { background: none; padding: 0; }
::selection { background: rgba(139,92,255,.35); }
.wrap { width: min(1200px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(820px, 100% - 32px); margin-inline: auto; }
.grad { background: var(--grad3); -webkit-background-clip: text; background-clip: text; color: transparent; }
.muted { color: var(--muted); } .dim { color: var(--dim); } .center { text-align: center; }
.ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.bgfx { position: fixed; inset: 0; z-index: -1; pointer-events: none; background:
  radial-gradient(900px 520px at 85% -10%, rgba(139,92,255,.16), transparent 60%),
  radial-gradient(700px 500px at 5% 10%, rgba(34,211,238,.10), transparent 60%), var(--bg); }
.bgfx::after { content: ""; position: absolute; inset: 0; opacity: .5;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px; mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 65%); }

/* ── header ─────────────────────────────── */
.top { position: sticky; top: 0; z-index: 50; backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4);
  background: color-mix(in srgb, var(--bg) 70%, transparent); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 14px; height: 68px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 900; font-size: 20px; letter-spacing: -.02em; white-space: nowrap; }
.logo svg { width: 34px; height: 34px; flex: none; }
.logo small { display: block; font-size: 10.5px; font-weight: 500; color: var(--muted); letter-spacing: 0; margin-top: -6px; }
.nav { display: flex; gap: 2px; margin-inline-start: 18px; }
.nav a { padding: 7px 13px; border-radius: 10px; color: var(--muted); font-weight: 600; font-size: 14.5px; transition: .2s; }
.nav a:hover, .nav a.on { color: var(--text); background: var(--card2); }
.top .sp { flex: 1; }
.kbtn { display: flex; align-items: center; gap: 10px; height: 40px; padding: 0 12px; border-radius: 12px; background: var(--card);
  border: 1px solid var(--line); color: var(--dim); font: inherit; font-size: 13.5px; cursor: pointer; min-width: 190px; transition: .2s; }
.kbtn:hover { border-color: var(--line2); color: var(--muted); }
.kbtn kbd, .kbd { margin-inline-start: auto; font: 600 11px ui-monospace, monospace; padding: 2px 6px; border-radius: 6px; border: 1px solid var(--line2); color: var(--muted); direction: ltr; }
.ibtn { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; border: 1px solid var(--line); background: var(--card);
  color: var(--text); cursor: pointer; position: relative; flex: none; font-size: 17px; }
.ibtn:hover { border-color: var(--line2); }
.ibtn .dot { position: absolute; top: 7px; left: 8px; width: 8px; height: 8px; border-radius: 50%; background: var(--a3); box-shadow: 0 0 0 3px var(--bg); }
.burger { display: none; }
.mnav { display: none; }

/* ── buttons & form bits ─────────────────── */
.btn { --b: var(--grad); position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 20px;
  border-radius: 13px; border: 0; background: var(--b); color: #fff; font: 700 14.5px "Estedad", sans-serif; cursor: pointer; white-space: nowrap;
  box-shadow: 0 10px 30px -10px rgba(139,92,255,.65), inset 0 1px 0 rgba(255,255,255,.25); transition: transform .15s, box-shadow .2s, filter .2s; }
.btn:hover { transform: translateY(-1px); filter: brightness(1.08); box-shadow: 0 14px 36px -10px rgba(139,92,255,.8), inset 0 1px 0 rgba(255,255,255,.25); }
.btn:active { transform: translateY(0); }
.btn.ghost { background: var(--card); color: var(--text); border: 1px solid var(--line2); box-shadow: none; }
.btn.ghost:hover { background: var(--card2); }
.btn.sm { height: 36px; padding: 0 14px; font-size: 13.5px; border-radius: 11px; }
.btn.xs { height: 30px; padding: 0 11px; font-size: 12.5px; border-radius: 9px; }
.btn.lg { height: 54px; padding: 0 28px; font-size: 16px; border-radius: 16px; }
.btn.ok { --b: linear-gradient(120deg, #10b981, #22d3ee); box-shadow: 0 10px 30px -12px rgba(16,185,129,.6); }
.btn.bad { --b: linear-gradient(120deg, #f43f5e, #fb7185); box-shadow: none; }
.btn.block { width: 100%; }
.btn[disabled] { opacity: .5; pointer-events: none; }
label { display: block; font-weight: 600; font-size: 13.5px; margin: 0 0 6px; color: var(--muted); }
.field { margin-bottom: 16px; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=url], input[type=tel], input:not([type]), select, textarea {
  width: 100%; background: var(--card); border: 1px solid var(--line2); color: var(--text); border-radius: 12px; padding: 11px 14px;
  font: 500 15px "Estedad", sans-serif; outline: none; transition: border .2s, box-shadow .2s; }
textarea { min-height: 120px; resize: vertical; line-height: 1.8; }
input:focus, select:focus, textarea:focus { border-color: var(--a1); box-shadow: 0 0 0 4px rgba(139,92,255,.18); }
select option { background: var(--bg2); }
.hint { font-size: 12.5px; color: var(--dim); margin-top: 5px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.row3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 13px; border-radius: 999px; border: 1px solid var(--line2); background: var(--card);
  font-size: 13px; font-weight: 600; color: var(--muted); cursor: pointer; transition: .2s; user-select: none; white-space: nowrap; }
.chip:hover { color: var(--text); border-color: var(--a1); }
.chip.on, .chip:has(input:checked) { color: #fff; background: rgba(139,92,255,.22); border-color: var(--a1); }
.chip input { display: none; }

/* ── badges ─────────────────────────────── */
.badge { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 9px; border-radius: 8px; font-size: 11.5px; font-weight: 700;
  background: var(--card2); color: var(--muted); border: 1px solid var(--line); white-space: nowrap; }
.badge.k-agent { color: #c4b5fd; background: rgba(139,92,255,.14); border-color: rgba(139,92,255,.3); }
.badge.k-template { color: #67e8f9; background: rgba(34,211,238,.12); border-color: rgba(34,211,238,.28); }
.badge.k-service { color: #f9a8d4; background: rgba(244,114,182,.12); border-color: rgba(244,114,182,.28); }
.badge.ok { color: #6ee7b7; background: rgba(52,211,153,.12); border-color: rgba(52,211,153,.28); }
.badge.warn { color: #fcd34d; background: rgba(251,191,36,.12); border-color: rgba(251,191,36,.3); }
.badge.bad { color: #fda4af; background: rgba(251,113,133,.12); border-color: rgba(251,113,133,.3); }
:root[data-theme="light"] .badge.k-agent { color: #6d28d9; } :root[data-theme="light"] .badge.k-template { color: #0e7490; }
:root[data-theme="light"] .badge.k-service { color: #be185d; } :root[data-theme="light"] .badge.ok { color: #047857; }
:root[data-theme="light"] .badge.warn { color: #b45309; } :root[data-theme="light"] .badge.bad { color: #be123c; }

/* ── hero ───────────────────────────────── */
.hero { position: relative; padding: 70px 0 40px; overflow: hidden; }
.hero canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; opacity: .9; }
.hero .wrap { position: relative; z-index: 1; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 8px; border-radius: 999px; background: var(--glass); border: 1px solid var(--line2);
  font-size: 13px; font-weight: 600; color: var(--muted); backdrop-filter: blur(10px); }
.eyebrow b { background: var(--grad); color: #fff; font-size: 11px; padding: 2px 9px; border-radius: 999px; }
.hero h1 { font-size: clamp(34px, 6.4vw, 72px); font-weight: 900; line-height: 1.2; letter-spacing: -.03em; margin: 22px 0 16px; max-width: 900px; }
.hero .lead { font-size: clamp(16px, 2vw, 19px); color: var(--muted); max-width: 640px; margin-bottom: 30px; }
.askbox { position: relative; max-width: 760px; border-radius: 22px; padding: 1.5px; background: conic-gradient(from var(--ang, 0deg), var(--a1), var(--a2), var(--a3), var(--a1));
  animation: spin 6s linear infinite; box-shadow: 0 30px 90px -30px rgba(139,92,255,.7); }
@property --ang { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
@keyframes spin { to { --ang: 360deg; } }
.askbox form { display: flex; align-items: center; gap: 10px; background: var(--bg2); border-radius: 21px; padding: 10px 10px 10px 10px; }
.askbox .spark { font-size: 22px; padding-inline-start: 8px; }
.askbox input { border: 0 !important; background: transparent !important; box-shadow: none !important; font-size: 17px; padding: 10px 4px; min-width: 0; }
.askbox .btn { flex: none; }
.examples { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; max-width: 760px; }
.examples button { font: inherit; }
.heroStats { display: flex; flex-wrap: wrap; gap: 34px; margin-top: 42px; }
.heroStats div { font-size: 13px; color: var(--muted); }
.heroStats b { display: block; font-size: 30px; font-weight: 900; color: var(--text); line-height: 1.3; }

.hero .hgrid { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 40px; align-items: center; }
.hgrid > div { min-width: 0; }
.examples .chip { white-space: normal; text-align: right; line-height: 1.6; }
.demo { position: relative; border-radius: 26px; padding: 18px; background: var(--glass); border: 1px solid var(--line2); backdrop-filter: blur(18px);
  box-shadow: 0 40px 100px -30px rgba(139,92,255,.55); transform: perspective(1200px) rotateY(10deg) rotateX(4deg); animation: float 7s ease-in-out infinite; }
@keyframes float { 50% { transform: perspective(1200px) rotateY(6deg) rotateX(2deg) translateY(-10px); } }
.demo .dh { display: flex; align-items: center; gap: 10px; padding-bottom: 12px; border-bottom: 1px solid var(--line); margin-bottom: 12px; font-size: 13px; }
.demo .dh b { font-size: 14px; } .demo .dh .badge { margin-inline-start: auto; }
.demo .msg { max-width: 82%; padding: 9px 13px; border-radius: 16px; font-size: 13.4px; line-height: 1.75; margin-bottom: 9px; opacity: 0; transform: translateY(8px); transition: .5s; }
.demo .msg.in { background: var(--card2); border-bottom-right-radius: 5px; }
.demo .msg.out { margin-inline-start: auto; background: linear-gradient(120deg, rgba(139,92,255,.35), rgba(34,211,238,.25)); border-bottom-left-radius: 5px; }
.demo .msg.show { opacity: 1; transform: none; }
.demo .steps { display: flex; gap: 6px; flex-wrap: wrap; margin: 4px 0 10px; }
.demo .steps span { font-size: 11.5px; padding: 3px 9px; border-radius: 8px; background: var(--card); border: 1px solid var(--line); color: var(--dim); transition: .3s; }
.demo .steps span.on { color: var(--text); border-color: var(--a2); background: rgba(34,211,238,.1); }
.demo .steps span.ok { color: var(--ok); border-color: rgba(52,211,153,.4); }
.demo .typing { display: inline-flex; gap: 4px; } .demo .typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); animation: blink 1s infinite; }
.demo .typing i:nth-child(2) { animation-delay: .15s; } .demo .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 50% { opacity: .2; } }
.demo .foot3 { display: flex; justify-content: space-between; font-size: 12px; color: var(--dim); border-top: 1px solid var(--line); padding-top: 10px; margin-top: 6px; }

/* ── pulse ticker ───────────────────────── */
.ticker { border-block: 1px solid var(--line); background: color-mix(in srgb, var(--bg2) 60%, transparent); overflow: hidden; position: relative; }
.ticker .lbl { position: absolute; inset-block: 0; right: 0; z-index: 2; display: flex; align-items: center; gap: 8px; padding: 0 18px; font-weight: 800; font-size: 13px;
  background: linear-gradient(270deg, var(--bg2) 70%, transparent); }
.live { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 rgba(52,211,153,.7); animation: ping 1.8s infinite; display: inline-block; }
@keyframes ping { 70% { box-shadow: 0 0 0 10px rgba(52,211,153,0); } 100% { box-shadow: 0 0 0 0 rgba(52,211,153,0); } }
.ticker .track { display: flex; gap: 46px; padding: 13px 0; white-space: nowrap; width: max-content; animation: marquee 60s linear infinite; }
.ticker:hover .track { animation-play-state: paused; }
.ticker .track a { color: var(--muted); font-size: 13.5px; } .ticker .track a:hover { color: var(--text); }
.ticker .track i { font-style: normal; color: var(--dim); margin-inline-start: 8px; font-size: 12px; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(50%); } }

/* ── sections ───────────────────────────── */
section.s { padding: 70px 0; }
.shead { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 28px; flex-wrap: wrap; }
.shead h2 { font-size: clamp(24px, 3.4vw, 36px); margin: 0; }
.shead p { margin: 6px 0 0; color: var(--muted); max-width: 560px; }
.kicker { font-size: 12.5px; font-weight: 800; letter-spacing: .08em; color: var(--a2); margin-bottom: 8px; display: block; }
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s, transform .7s cubic-bezier(.2,.8,.2,1); }
.reveal.in { opacity: 1; transform: none; }

/* three ways */
.ways { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.way { position: relative; padding: 28px; border-radius: var(--r2); background: var(--card); border: 1px solid var(--line); overflow: hidden; transition: .3s; }
.way::before { content: ""; position: absolute; width: 260px; height: 260px; border-radius: 50%; top: -120px; left: -80px; background: var(--g); filter: blur(60px); opacity: .35; transition: .4s; }
.way:hover { border-color: var(--line2); transform: translateY(-3px); } .way:hover::before { opacity: .55; }
.way .ico { position: relative; width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; font-size: 26px; background: var(--card2); border: 1px solid var(--line2); margin-bottom: 18px; }
.way h3 { position: relative; font-size: 21px; } .way p { position: relative; color: var(--muted); margin-bottom: 16px; }
.way a.more { position: relative; font-weight: 700; color: var(--text); font-size: 14px; }
.way a.more::after { content: " ←"; transition: .2s; } .way:hover a.more::after { margin-inline-start: 6px; }

/* categories */
.cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.cat { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); transition: .2s; }
.cat:hover { border-color: var(--a1); background: var(--card2); transform: translateY(-2px); }
.cat .e { font-size: 24px; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--card2); flex: none; }
.cat b { display: block; font-size: 14px; line-height: 1.5; } .cat small { color: var(--dim); font-size: 12px; }

/* listing cards */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 18px; }
.lc { --h: 260; position: relative; display: flex; flex-direction: column; border-radius: var(--r2); background: var(--card); border: 1px solid var(--line); overflow: hidden;
  transition: transform .25s, border-color .25s, box-shadow .25s; transform-style: preserve-3d; }
.lc:hover { border-color: hsla(var(--h), 90%, 65%, .5); box-shadow: 0 24px 60px -28px hsla(var(--h), 90%, 55%, .55); }
.lc::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 50%), hsla(var(--h), 90%, 70%, .12), transparent 45%); }
.lc:hover::after { opacity: 1; }
.lc .art { position: relative; height: 150px; overflow: hidden;
  background: radial-gradient(120% 140% at 100% 0%, hsla(var(--h), 90%, 62%, .55), transparent 55%),
              radial-gradient(90% 120% at 0% 100%, hsla(calc(var(--h) + 60), 90%, 60%, .4), transparent 55%), #0c0b19; }
:root[data-theme="light"] .lc .art { background: radial-gradient(120% 140% at 100% 0%, hsla(var(--h), 90%, 70%, .6), transparent 55%),
              radial-gradient(90% 120% at 0% 100%, hsla(calc(var(--h) + 60), 90%, 70%, .45), transparent 55%), #f0eefb; }
.lc .art img { width: 100%; height: 100%; object-fit: cover; }
.lc .art .glyph { position: absolute; right: 18px; bottom: 16px; width: 58px; height: 58px; border-radius: 18px; display: grid; place-items: center; font-size: 28px;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.22); backdrop-filter: blur(8px); }
.lc .art .mini { position: absolute; left: 16px; bottom: 30px; display: flex; align-items: center; gap: 0; }
.lc .art .mini span { width: 26px; height: 26px; border-radius: 8px; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.22); display: grid; place-items: center; font-size: 13px; }
.lc .art .mini i { width: 16px; height: 2px; background: linear-gradient(90deg, rgba(255,255,255,.1), rgba(255,255,255,.6), rgba(255,255,255,.1)); background-size: 200% 100%; animation: flowl 1.6s linear infinite; }
@keyframes flowl { to { background-position: -200% 0; } }
.lc .tags { position: absolute; top: 14px; right: 14px; display: flex; gap: 6px; }
.lc .tags .badge { background: rgba(10,10,20,.55); backdrop-filter: blur(8px); border-color: rgba(255,255,255,.18); }
:root[data-theme="light"] .lc .tags .badge { background: rgba(255,255,255,.8); }
.lc .bd { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.lc h3 { font-size: 17px; margin: 0 0 6px; } .lc p { color: var(--muted); font-size: 13.8px; line-height: 1.8; margin: 0 0 14px; flex: 1;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.lc .ft { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 14px; border-top: 1px dashed var(--line2); font-size: 13px; }
.lc .ft .price { font-weight: 800; font-size: 14.5px; } .lc .ft .price.free { color: var(--ok); }
.seller { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); font-size: 12.5px; min-width: 0; }
.seller .av { width: 22px; height: 22px; border-radius: 50%; background: var(--grad); display: grid; place-items: center; font-size: 11px; color: #fff; font-weight: 800; flex: none; overflow: hidden; }
.seller .av img { width: 100%; height: 100%; object-fit: cover; }
.vtick { color: var(--a2); font-size: 13px; }
.plats { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.plats span { font-size: 11.5px; color: var(--dim); background: var(--card2); border-radius: 7px; padding: 1px 8px; }

/* catalogue */
.cathead { padding: 46px 0 10px; }
.cathead h1 { font-size: clamp(28px, 4.5vw, 46px); }
.filters { position: sticky; top: 68px; z-index: 20; padding: 14px 0; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.filters .wrap { display: flex; gap: 10px; align-items: center; overflow-x: auto; scrollbar-width: none; }
.filters .wrap::-webkit-scrollbar { display: none; }
.filters form { display: contents; }
.filters input[type=search] { width: 240px; flex: none; height: 38px; padding: 0 14px; border-radius: 11px; background: var(--card); border: 1px solid var(--line2); color: var(--text); font: inherit; font-size: 14px; outline: none; }
.filters select { width: auto; flex: none; height: 38px; padding: 0 12px; font-size: 13.5px; }
.seg { display: inline-flex; padding: 3px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); flex: none; }
.seg a { padding: 5px 13px; border-radius: 9px; font-size: 13.5px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.seg a.on { background: var(--card2); color: var(--text); box-shadow: inset 0 0 0 1px var(--line2); }
.empty { text-align: center; padding: 70px 20px; color: var(--muted); border: 1px dashed var(--line2); border-radius: var(--r2); }
.empty .e { font-size: 44px; margin-bottom: 10px; }

/* listing page */
.lhero { --h: 260; position: relative; padding: 46px 0 40px; overflow: hidden; }
.lhero::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(800px 400px at 90% 0%, hsla(var(--h), 90%, 60%, .22), transparent 60%), radial-gradient(600px 400px at 0% 100%, hsla(calc(var(--h) + 60), 90%, 60%, .14), transparent 60%); }
.crumbs { font-size: 13px; color: var(--dim); margin-bottom: 18px; } .crumbs a:hover { color: var(--text); }
.lhero .head { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: start; }
.lhero h1 { font-size: clamp(28px, 4.4vw, 48px); margin: 14px 0 12px; }
.lhero .tag { font-size: 18px; color: var(--muted); }
.buybox { position: sticky; top: 90px; padding: 22px; border-radius: var(--r2); background: var(--glass); border: 1px solid var(--line2); backdrop-filter: blur(16px); box-shadow: var(--shadow); }
.plan { display: block; position: relative; padding: 16px 18px; border-radius: 16px; border: 1px solid var(--line2); background: var(--card); margin-bottom: 10px; cursor: pointer; transition: .2s; }
.plan:hover { border-color: var(--a1); }
.plan:has(input:checked) { border-color: var(--a1); background: rgba(139,92,255,.1); box-shadow: 0 0 0 3px rgba(139,92,255,.15); }
.plan input { position: absolute; opacity: 0; }
.plan .pt { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.plan b { font-size: 15px; } .plan .pp { font-weight: 900; font-size: 18px; } .plan .pp small { font-size: 12px; color: var(--muted); font-weight: 500; }
.plan ul { margin: 8px 0 0; padding: 0 18px 0 0; color: var(--muted); font-size: 13px; }
.trust { display: grid; gap: 8px; margin-top: 16px; font-size: 12.8px; color: var(--muted); }
.trust div { display: flex; gap: 8px; align-items: center; }
.layout2 { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; }
.box { padding: 26px; border-radius: var(--r2); background: var(--card); border: 1px solid var(--line); margin-bottom: 20px; }
.box h2 { font-size: 20px; } .box h3 { font-size: 17px; }
.prose { font-size: 16px; line-height: 2.05; }
.prose h2 { font-size: 23px; margin: 1.6em 0 .6em; } .prose h3 { font-size: 19px; margin: 1.4em 0 .5em; }
.prose ul, .prose ol { padding-inline-start: 22px; } .prose li { margin-bottom: 6px; }
.prose a { color: var(--a2); border-bottom: 1px solid rgba(34,211,238,.35); } .prose a:hover { border-color: var(--a2); }
.prose strong { color: var(--text); }

/* flow diagram */
.flow { position: relative; display: flex; align-items: stretch; gap: 0; padding: 8px 0; }
.flow .node { position: relative; flex: 1; min-width: 0; text-align: center; padding: 0 6px; }
.flow .node .ic { position: relative; z-index: 1; width: 64px; height: 64px; margin: 0 auto 12px; border-radius: 20px; display: grid; place-items: center; font-size: 28px;
  background: var(--bg2); border: 1px solid var(--line2); box-shadow: 0 0 0 6px var(--bg), 0 16px 40px -18px rgba(139,92,255,.7); }
.flow .node .ic::after { content: attr(data-n); position: absolute; top: -8px; left: -8px; width: 22px; height: 22px; border-radius: 50%; background: var(--grad); color: #fff;
  font-size: 11px; font-weight: 800; display: grid; place-items: center; }
.flow .node b { display: block; font-size: 14px; line-height: 1.5; } .flow .node small { display: block; color: var(--dim); font-size: 12.3px; line-height: 1.6; margin-top: 3px; }
.flow .node .tool { display: inline-block; margin-top: 6px; font-size: 11px; color: var(--a2); background: rgba(34,211,238,.08); border-radius: 6px; padding: 0 7px; }
.flow::before { content: ""; position: absolute; top: 40px; right: 8%; left: 8%; height: 2px; background: var(--line2); }
.flow::after { content: ""; position: absolute; top: 39px; right: 8%; left: 8%; height: 4px; border-radius: 4px;
  background: linear-gradient(270deg, transparent, var(--a1), var(--a2), transparent); background-size: 30% 100%; background-repeat: no-repeat;
  animation: travel 2.8s cubic-bezier(.6,0,.4,1) infinite; filter: drop-shadow(0 0 6px var(--a2)); }
@keyframes travel { from { background-position: 115% 0; } to { background-position: -15% 0; } }

.faq details { border-bottom: 1px solid var(--line); padding: 14px 0; } .faq summary { cursor: pointer; font-weight: 700; list-style: none; display: flex; justify-content: space-between; }
.faq summary::after { content: "+"; color: var(--dim); font-size: 20px; line-height: 1; } .faq details[open] summary::after { content: "−"; }
.faq details p { color: var(--muted); margin: 10px 0 0; }
.stars { color: #fbbf24; letter-spacing: 1px; }
.review { padding: 14px 0; border-bottom: 1px solid var(--line); } .review:last-child { border: 0; }

/* advisor */
.adv { padding: 60px 0 90px; }
.adv h1 { font-size: clamp(30px, 5vw, 54px); font-weight: 900; }
.advbox { border-radius: var(--r2); padding: 1.5px; background: conic-gradient(from var(--ang, 0deg), var(--a1), var(--a2), var(--a3), var(--a1)); animation: spin 6s linear infinite; }
.advbox form { background: var(--bg2); border-radius: calc(var(--r2) - 1px); padding: 18px; }
.advbox textarea { border: 0 !important; box-shadow: none !important; background: transparent !important; font-size: 17px; min-height: 110px; padding: 6px; }
.advbox .bar { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.thinking { display: none; padding: 30px 0; } .thinking.on { display: block; }
.orb { width: 90px; height: 90px; margin: 0 auto 24px; border-radius: 50%; position: relative;
  background: radial-gradient(circle at 35% 30%, #fff8, transparent 30%), conic-gradient(from var(--ang), var(--a1), var(--a2), var(--a3), var(--a1));
  animation: spin 2.4s linear infinite, breathe 2s ease-in-out infinite; filter: drop-shadow(0 0 30px rgba(139,92,255,.7)); }
@keyframes breathe { 50% { transform: scale(1.08); } }
.tsteps { max-width: 420px; margin: 0 auto; display: grid; gap: 10px; }
.tsteps div { display: flex; gap: 10px; align-items: center; color: var(--dim); font-size: 14px; transition: .4s; }
.tsteps div.on { color: var(--text); } .tsteps div.done { color: var(--ok); }
.tsteps div::before { content: "○"; width: 18px; } .tsteps div.on::before { content: "◌"; animation: spin2 1s linear infinite; display: inline-block; }
.tsteps div.done::before { content: "✓"; }
@keyframes spin2 { to { transform: rotate(360deg); } }
.result { display: none; } .result.on { display: block; animation: rise .6s cubic-bezier(.2,.8,.2,1); }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } }
.rhead { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 8px; }
.vflow { display: grid; gap: 0; }
.vflow .st { display: grid; grid-template-columns: 54px 1fr; gap: 16px; position: relative; padding-bottom: 22px; opacity: 0; animation: rise .5s forwards; }
.vflow .st:not(:last-child)::before { content: ""; position: absolute; right: 26px; top: 54px; bottom: 0; width: 2px; background: linear-gradient(var(--a1), var(--a2)); opacity: .5; }
.vflow .st .ic { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; font-size: 24px; background: var(--card2); border: 1px solid var(--line2); }
.vflow .st b { display: block; font-size: 16px; } .vflow .st p { margin: 2px 0 0; color: var(--muted); font-size: 14px; }

/* requests */
.rq { display: block; padding: 20px 22px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); margin-bottom: 12px; transition: .2s; }
.rq:hover { border-color: var(--line2); background: var(--card2); }
.rq .t { display: flex; justify-content: space-between; gap: 14px; align-items: start; }
.rq h3 { font-size: 16.5px; margin: 0 0 4px; } .rq p { color: var(--muted); font-size: 13.8px; margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.rq .meta { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12.5px; color: var(--dim); margin-top: 10px; }
.offer { padding: 18px; border-radius: 16px; border: 1px solid var(--line2); background: var(--card); margin-bottom: 12px; }
.offer .t { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.offer .pp { font-size: 18px; font-weight: 900; }

/* builders & mag */
.bcard { display: flex; gap: 16px; align-items: center; padding: 20px; border-radius: 20px; background: var(--card); border: 1px solid var(--line); transition: .2s; }
.bcard:hover { border-color: var(--line2); transform: translateY(-2px); }
.bcard .av, .bigav { width: 60px; height: 60px; border-radius: 18px; background: var(--grad); display: grid; place-items: center; color: #fff; font-weight: 900; font-size: 22px; flex: none; overflow: hidden; }
.bcard .av img, .bigav img { width: 100%; height: 100%; object-fit: cover; }
.bigav { width: 96px; height: 96px; border-radius: 28px; font-size: 36px; }
.acard { --h: 260; display: flex; flex-direction: column; border-radius: var(--r2); overflow: hidden; background: var(--card); border: 1px solid var(--line); transition: .25s; }
.acard:hover { transform: translateY(-3px); border-color: var(--line2); }
.acard .art { height: 130px; position: relative; background: radial-gradient(100% 140% at 100% 0%, hsla(var(--h), 90%, 60%, .5), transparent 60%), var(--bg2); }
.acard .art span { position: absolute; bottom: 14px; right: 18px; }
.acard .bd { padding: 18px 20px; } .acard h3 { font-size: 17px; } .acard p { color: var(--muted); font-size: 13.8px; margin: 0; }
.article-hero { --h: 260; padding: 56px 0 30px; background: radial-gradient(700px 300px at 80% 0%, hsla(var(--h), 90%, 60%, .2), transparent 60%); }
.article-hero h1 { font-size: clamp(28px, 4.6vw, 46px); }

/* CTA band */
.band { position: relative; border-radius: 32px; padding: 56px 40px; overflow: hidden; background: #0d0b1f; border: 1px solid var(--line2); color: #fff; }
.band::before { content: ""; position: absolute; inset: 0; background: radial-gradient(500px 300px at 85% 20%, rgba(139,92,255,.55), transparent 60%), radial-gradient(500px 300px at 10% 100%, rgba(34,211,238,.35), transparent 60%); }
.band > * { position: relative; } .band h2 { font-size: clamp(26px, 4vw, 40px); } .band p { color: #c9c6e6; max-width: 560px; }

/* footer */
footer.foot { border-top: 1px solid var(--line); padding: 50px 0 30px; margin-top: 60px; color: var(--muted); font-size: 14px; }
footer .cols { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr 1.2fr; gap: 30px; }
footer h4 { color: var(--text); font-size: 14px; margin-bottom: 12px; } footer .cols a { display: block; padding: 3px 0; } footer a:hover { color: var(--text); }
footer .legal { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-size: 12.5px; color: var(--dim); }

/* toast & palette */
.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 100; padding: 13px 20px; border-radius: 14px; background: var(--glass); border: 1px solid var(--line2);
  backdrop-filter: blur(16px); box-shadow: var(--shadow); font-weight: 600; font-size: 14.5px; max-width: calc(100% - 32px); animation: rise .4s; }
.pal { position: fixed; inset: 0; z-index: 90; display: none; align-items: start; justify-content: center; padding-top: 12vh; background: rgba(4,4,10,.6); backdrop-filter: blur(6px); }
.pal.on { display: flex; }
.pal .in { width: min(640px, calc(100% - 24px)); border-radius: 20px; background: var(--bg2); border: 1px solid var(--line2); box-shadow: 0 40px 120px -20px rgba(0,0,0,.8); overflow: hidden; }
.pal input { border: 0 !important; border-bottom: 1px solid var(--line) !important; border-radius: 0 !important; box-shadow: none !important; font-size: 17px; padding: 18px 20px; background: transparent !important; }
.pal .res { max-height: 52vh; overflow-y: auto; padding: 8px; }
.pal .it { display: flex; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 12px; cursor: pointer; }
.pal .it.on, .pal .it:hover { background: var(--card2); }
.pal .it .e { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; background: var(--card2); flex: none; font-size: 17px; }
.pal .it b { display: block; font-size: 14.5px; line-height: 1.5; } .pal .it small { color: var(--dim); font-size: 12.5px; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 470px; }
.pal .it .k { margin-inline-start: auto; font-size: 11px; color: var(--dim); flex: none; }
.pal .foot2 { padding: 10px 16px; border-top: 1px solid var(--line); font-size: 12px; color: var(--dim); display: flex; gap: 16px; }

/* auth */
.authp { min-height: calc(100vh - 68px); display: grid; place-items: center; padding: 40px 0; }
.authc { width: min(440px, 100% - 32px); padding: 34px; border-radius: 28px; background: var(--glass); border: 1px solid var(--line2); backdrop-filter: blur(18px); box-shadow: var(--shadow); }
.authc h1 { font-size: 26px; }

/* ── dashboard & admin ──────────────────── */
.dash { display: grid; grid-template-columns: 250px 1fr; gap: 26px; padding: 26px 0 60px; align-items: start; }
.side { position: sticky; top: 90px; padding: 14px; border-radius: 22px; background: var(--card); border: 1px solid var(--line); }
.side .me { display: flex; gap: 12px; align-items: center; padding: 8px 8px 16px; border-bottom: 1px solid var(--line); margin-bottom: 10px; }
.side .me .av { width: 44px; height: 44px; border-radius: 14px; background: var(--grad); display: grid; place-items: center; color: #fff; font-weight: 900; overflow: hidden; flex: none; }
.side .me .av img { width: 100%; height: 100%; object-fit: cover; }
.side .me b { display: block; font-size: 14.5px; line-height: 1.5; } .side .me small { color: var(--dim); font-size: 12px; }
.side a { display: flex; align-items: center; gap: 11px; padding: 10px 12px; border-radius: 12px; color: var(--muted); font-weight: 600; font-size: 14.3px; transition: .15s; }
.side a:hover { background: var(--card2); color: var(--text); }
.side a.on { background: linear-gradient(120deg, rgba(139,92,255,.22), rgba(34,211,238,.1)); color: var(--text); box-shadow: inset 0 0 0 1px rgba(139,92,255,.35); }
.side a .n { margin-inline-start: auto; font-size: 11px; background: var(--a3); color: #fff; border-radius: 99px; padding: 0 7px; }
.side .grp { font-size: 11.5px; color: var(--dim); font-weight: 700; padding: 14px 12px 4px; }
.dtitle { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-bottom: 20px; flex-wrap: wrap; }
.dtitle h1 { font-size: 26px; margin: 0; } .dtitle p { margin: 2px 0 0; color: var(--muted); font-size: 14px; }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 18px; }
.kpi { position: relative; padding: 18px 18px 14px; border-radius: 20px; background: var(--card); border: 1px solid var(--line); overflow: hidden; }
.kpi::before { content: ""; position: absolute; width: 140px; height: 140px; top: -70px; left: -40px; border-radius: 50%; background: var(--g, var(--a1)); filter: blur(50px); opacity: .22; }
.kpi .l { font-size: 12.8px; color: var(--muted); font-weight: 600; display: flex; align-items: center; gap: 6px; }
.kpi .v { font-size: 26px; font-weight: 900; margin: 4px 0 2px; line-height: 1.4; }
.kpi .v small { font-size: 13px; font-weight: 600; color: var(--muted); }
.kpi .s { font-size: 12px; color: var(--dim); }
.kpi svg.spark { position: absolute; left: 12px; bottom: 12px; width: 90px; height: 32px; opacity: .9; }
.panels { display: grid; grid-template-columns: 1.6fr 1fr; gap: 16px; margin-bottom: 16px; }
.pnl { padding: 20px; border-radius: 20px; background: var(--card); border: 1px solid var(--line); min-width: 0; }
.pnl h3 { font-size: 15.5px; display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 14px; }
.pnl h3 small { font-weight: 500; color: var(--dim); font-size: 12.5px; }
.chart { width: 100%; height: 220px; position: relative; } .chart svg { width: 100%; height: 100%; overflow: visible; }
.chart .tip { position: absolute; pointer-events: none; padding: 6px 10px; border-radius: 9px; background: var(--bg2); border: 1px solid var(--line2); font-size: 12px; white-space: nowrap; transform: translate(50%, -120%); display: none; box-shadow: var(--shadow); }
.donut { display: flex; gap: 18px; align-items: center; } .donut svg { width: 130px; height: 130px; flex: none; }
.legend { display: grid; gap: 8px; font-size: 13px; } .legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-inline-end: 7px; }
.feed .it { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 13.8px; }
.feed .it:last-child { border: 0; }
.feed .it .d { width: 9px; height: 9px; border-radius: 50%; background: var(--a1); margin-top: 9px; flex: none; box-shadow: 0 0 0 4px rgba(139,92,255,.15); }
.feed .it.new .d { background: var(--a3); box-shadow: 0 0 0 4px rgba(244,114,182,.18); }
.feed .it small { display: block; color: var(--dim); font-size: 12px; }
.bars .b { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; margin-bottom: 12px; font-size: 13.3px; }
.bars .b .tr { grid-column: 1 / -1; height: 7px; border-radius: 9px; background: var(--card2); overflow: hidden; }
.bars .b .tr i { display: block; height: 100%; border-radius: 9px; background: var(--grad); transform-origin: right; animation: grow 1.2s cubic-bezier(.2,.8,.2,1); }
@keyframes grow { from { transform: scaleX(0); } }
table.t { width: 100%; border-collapse: collapse; font-size: 13.8px; }
table.t th { text-align: right; font-weight: 700; color: var(--dim); font-size: 12.3px; padding: 10px 12px; border-bottom: 1px solid var(--line2); white-space: nowrap; }
table.t td { padding: 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.t tr:hover td { background: var(--card); }
.tw { overflow-x: auto; border-radius: 18px; border: 1px solid var(--line); background: var(--card); }
.acts { display: flex; gap: 6px; flex-wrap: wrap; } .acts form { display: inline; }
.pcard { display: grid; grid-template-columns: 64px 1fr auto; gap: 16px; align-items: center; padding: 18px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); margin-bottom: 12px; }
.pcard .th { --h: 260; width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center; font-size: 26px; background: radial-gradient(circle at 70% 20%, hsla(var(--h), 90%, 65%, .6), transparent 70%), var(--bg2); border: 1px solid var(--line2); }
.pcard h3 { font-size: 15.5px; margin: 0 0 2px; } .pcard .meta { font-size: 12.5px; color: var(--dim); display: flex; gap: 12px; flex-wrap: wrap; }
.deliv { margin-top: 12px; padding: 14px; border-radius: 14px; background: rgba(52,211,153,.07); border: 1px solid rgba(52,211,153,.25); font-size: 14px; white-space: pre-wrap; grid-column: 1 / -1; }
.mobtabs { display: none; }

@media (max-width: 1000px) {
  .nav, .kbtn span.t { display: none; } .kbtn { min-width: 0; width: 40px; padding: 0; justify-content: center; } .kbtn kbd { display: none; }
  .burger { display: grid; }
  .mnav.on { display: block; position: fixed; inset: 68px 0 auto 0; z-index: 49; background: var(--bg2); border-bottom: 1px solid var(--line); padding: 10px 16px 18px; }
  .mnav a { display: block; padding: 12px 6px; border-bottom: 1px solid var(--line); font-weight: 700; }
  .ways { grid-template-columns: 1fr; }
  .hero .hgrid { grid-template-columns: minmax(0, 1fr); } .demo { display: none; }
  .lhero .head, .layout2 { grid-template-columns: 1fr; } .buybox { position: static; }
  footer .cols { grid-template-columns: 1fr 1fr; }
  .dash { grid-template-columns: 1fr; } .side { display: none; }
  .mobtabs { display: flex; gap: 6px; overflow-x: auto; padding: 4px 0 14px; scrollbar-width: none; }
  .mobtabs a { flex: none; padding: 7px 14px; border-radius: 11px; background: var(--card); border: 1px solid var(--line); font-size: 13.5px; font-weight: 600; color: var(--muted); }
  .mobtabs a.on { color: var(--text); border-color: var(--a1); }
  .kpis { grid-template-columns: 1fr 1fr; } .panels { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 15px; }
  .top .wrap { height: 62px; gap: 8px; } .logo small { display: none; } .logo { font-size: 18px; }
  .top .btn.sm { padding: 0 11px; }
  .mnav.on { top: 62px; } .filters { top: 62px; }
  .hero { padding: 44px 0 28px; } .heroStats { gap: 20px; } .heroStats b { font-size: 24px; }
  .askbox form { flex-wrap: wrap; } .askbox input { flex: 1 1 70%; } .askbox .btn { width: 100%; }
  section.s { padding: 48px 0; }
  .row2, .row3 { grid-template-columns: 1fr; }
  .flow { flex-direction: column; gap: 18px; } .flow::before, .flow::after { display: none; }
  .flow .node { display: grid; grid-template-columns: 60px 1fr; text-align: right; gap: 12px; align-items: center; }
  .flow .node .ic { margin: 0; width: 56px; height: 56px; }
  .band { padding: 38px 22px; border-radius: 24px; }
  .box { padding: 20px; } .authc { padding: 26px 20px; }
  .pcard { grid-template-columns: 52px 1fr; } .pcard .th { width: 52px; height: 52px; } .pcard > .acts { grid-column: 1 / -1; }
  .kpi .v { font-size: 21px; } .kpi svg.spark { display: none; }
  .filters input[type=search] { width: 170px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } .reveal { opacity: 1; transform: none; } }
