/* AI CLICKS PRO design system */
:root {
  --bg: #07080f; --bg-2: #0c0f1c; --panel: #121627; --panel-2: #181d33; --panel-3: #20263f; --line: #262d4a; --line-2: #343c5e;
  --text: #f1f3fb; --muted: #9aa3bf; --dim: #6b7391;
  --accent: #7c5cff; --accent-2: #22d3ee; --accent-3: #f472b6; --grad: linear-gradient(110deg, #7c5cff 0%, #4f7cff 45%, #22d3ee 100%);
  --ok: #22c55e; --warn: #f59e0b; --bad: #ef4444; --radius: 16px; --radius-sm: 10px;
  --shadow: 0 10px 40px rgba(0,0,0,.35); --glow: 0 0 0 1px rgba(124,92,255,.25), 0 10px 40px rgba(124,92,255,.18);
  --font: "Plus Jakarta Sans", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
html, body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.6 var(--font); -webkit-font-smoothing: antialiased; }
body { min-height: 100vh; overflow-x: hidden; }
body.public::before { content: ""; position: fixed; inset: -20% -10% auto -10%; height: 90vh; z-index: -1; pointer-events: none;
  background: radial-gradient(40% 50% at 20% 20%, rgba(124,92,255,.22), transparent 70%), radial-gradient(35% 45% at 85% 10%, rgba(34,211,238,.16), transparent 70%); }
a { color: var(--accent-2); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }
h1, h2, h3, h4 { line-height: 1.2; letter-spacing: -.01em; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 16px; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.muted { color: var(--muted); } .dim { color: var(--dim); } .small { font-size: 13px; }
.center { text-align: center; }

/* Header / nav */
header.top { position: sticky; top: 0; z-index: 30; background: rgba(7,8,15,.78); backdrop-filter: blur(14px); border-bottom: 1px solid rgba(255,255,255,.06); }
header.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 66px; gap: 12px; }
.brand { display: flex; gap: 10px; align-items: center; font-weight: 800; letter-spacing: .3px; color: var(--text); font-size: 17px; white-space: nowrap; }
.brand:hover { text-decoration: none; }
.brand img { width: 34px; height: 34px; }
.brand b { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
nav.main { display: flex; align-items: center; gap: 4px; }
nav.main a { color: var(--muted); padding: 8px 12px; border-radius: 8px; font-weight: 500; }
nav.main a:hover, nav.main a.on { color: var(--text); background: rgba(255,255,255,.05); text-decoration: none; }
.menu-btn { display: none; background: none; border: 1px solid var(--line); color: var(--text); border-radius: 8px; padding: 7px 10px; font-size: 18px; cursor: pointer; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 12px; padding: 12px 20px; font: 600 15px var(--font);
  cursor: pointer; color: #fff; background: var(--grad); background-size: 140% 100%; transition: transform .15s, box-shadow .2s, background-position .4s; box-shadow: 0 6px 22px rgba(124,92,255,.35); text-decoration: none !important; }
.btn:hover { transform: translateY(-1px); background-position: 100% 0; box-shadow: 0 10px 30px rgba(124,92,255,.45); }
.btn.ghost { background: rgba(255,255,255,.04); border: 1px solid var(--line-2); color: var(--text); box-shadow: none; }
.btn.ghost:hover { background: rgba(255,255,255,.08); }
.btn.danger { background: linear-gradient(110deg, #ef4444, #f97316); box-shadow: 0 6px 22px rgba(239,68,68,.3); }
.btn.ok { background: linear-gradient(110deg, #16a34a, #22c55e); }
.btn.small { padding: 7px 13px; font-size: 13px; border-radius: 9px; }
.btn.block { width: 100%; }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.btn .spin { width: 16px; height: 16px; border: 2px solid rgba(255,255,255,.35); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Cards & layout */
.card { background: linear-gradient(180deg, rgba(255,255,255,.025), transparent), var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.card.glow { box-shadow: var(--glow); border-color: rgba(124,92,255,.45); }
.card h3:first-child, .card h2:first-child { margin-top: 0; }
.grid { display: grid; gap: 16px; }
.cols-2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.cols-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.cols-4 { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.between { justify-content: space-between; }
.section { padding: 80px 0; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 44px; }
.section-head h2 { font-size: clamp(28px, 4vw, 42px); margin: 10px 0; }
.eyebrow { display: inline-flex; gap: 8px; align-items: center; font-size: 12px; font-weight: 700; letter-spacing: 1.6px; text-transform: uppercase; color: var(--accent-2);
  background: rgba(34,211,238,.08); border: 1px solid rgba(34,211,238,.25); padding: 5px 12px; border-radius: 99px; }

/* Forms */
label { display: block; font-size: 13px; color: var(--muted); margin: 14px 0 6px; font-weight: 500; }
input, select, textarea { width: 100%; padding: 12px 14px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--bg-2); color: var(--text); font: 15px var(--font); transition: border-color .15s, box-shadow .15s; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(124,92,255,.2); }
textarea { min-height: 110px; resize: vertical; }
input[type=checkbox], input[type=radio] { width: 18px; height: 18px; accent-color: var(--accent); flex: 0 0 auto; }
input[type=range] { padding: 0; accent-color: var(--accent); }
input[type=color] { padding: 4px; height: 44px; }
.check { display: flex; gap: 10px; align-items: flex-start; color: var(--text); font-size: 14px; margin: 10px 0; cursor: pointer; }
.check input { margin-top: 2px; }
.err { color: #fca5a5; min-height: 1.3em; font-size: 14px; }
.okmsg { color: #86efac; min-height: 1.3em; font-size: 14px; }
.hint { font-size: 12px; color: var(--dim); margin-top: 4px; }

/* Stats & pills */
.stat { font-size: 28px; font-weight: 800; letter-spacing: -.02em; }
.stat-card { position: relative; overflow: hidden; }
.stat-card .k { color: var(--muted); font-size: 13px; }
.stat-card .ico { position: absolute; right: 14px; top: 14px; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: rgba(124,92,255,.14); color: #b9a8ff; font-size: 17px; }
.meter { height: 8px; background: var(--panel-3); border-radius: 99px; overflow: hidden; margin-top: 10px; }
.meter > div { height: 100%; background: var(--grad); border-radius: 99px; transition: width .5s; }
.meter.warn > div { background: linear-gradient(90deg, #f59e0b, #ef4444); }
.pill { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--panel-3); border: 1px solid var(--line-2); white-space: nowrap; }
.pill.done, .pill.paid, .pill.accepted, .pill.active, .pill.sent, .pill.SUCCESS { color: #86efac; border-color: rgba(34,197,94,.35); background: rgba(34,197,94,.1); }
.pill.error, .pill.failed, .pill.rejected, .pill.suspended, .pill.cancelled { color: #fca5a5; border-color: rgba(239,68,68,.35); background: rgba(239,68,68,.1); }
.pill.uploaded, .pill.compressed, .pill.created, .pill.pending, .pill.duplicate, .pill.PENDING, .pill.refunded, .pill.partially_refunded { color: #fcd34d; border-color: rgba(245,158,11,.35); background: rgba(245,158,11,.1); }
.pill.test { color: #fcd34d; } .pill.live { color: #86efac; }

/* Tables */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; color: var(--muted); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: .6px; }
th, td { padding: 11px 8px; border-bottom: 1px solid var(--line); vertical-align: middle; }
tr:last-child td { border-bottom: 0; }

/* App shell (dashboard/admin) */
.app { display: grid; grid-template-columns: 250px 1fr; min-height: 100vh; }
.side { background: var(--bg-2); border-right: 1px solid var(--line); padding: 18px 14px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.side .brand { padding: 4px 8px 20px; }
.side nav a { display: flex; gap: 12px; align-items: center; color: var(--muted); padding: 10px 12px; border-radius: 10px; font-weight: 500; margin-bottom: 2px; }
.side nav a:hover { background: rgba(255,255,255,.04); color: var(--text); text-decoration: none; }
.side nav a.on { background: linear-gradient(90deg, rgba(124,92,255,.22), rgba(124,92,255,.04)); color: var(--text); box-shadow: inset 2px 0 0 var(--accent); }
.side nav .ico { width: 20px; text-align: center; }
.side .who { margin-top: 24px; padding: 12px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line); font-size: 13px; }
.main { padding: 26px 28px 80px; min-width: 0; }
.main > .head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 22px; }
.main > .head h1 { font-size: 26px; margin: 0; }
.mobile-bar { display: none; }
.banner { border-radius: 14px; padding: 16px 18px; border: 1px solid; display: flex; gap: 14px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin-bottom: 18px; }
.banner.warn { background: rgba(245,158,11,.08); border-color: rgba(245,158,11,.35); }
.banner.info { background: rgba(124,92,255,.08); border-color: rgba(124,92,255,.35); }
.banner.bad { background: rgba(239,68,68,.08); border-color: rgba(239,68,68,.35); }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; border-bottom: 1px solid var(--line); margin-bottom: 18px; }
.tabs button { background: none; border: 0; color: var(--muted); padding: 10px 14px; font: 600 14px var(--font); cursor: pointer; border-bottom: 2px solid transparent; }
.tabs button.on { color: var(--text); border-color: var(--accent); }

/* Landing */
.hero { padding: 70px 0 40px; display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; }
.hero h1 { font-size: clamp(36px, 5.6vw, 64px); margin: 18px 0; font-weight: 800; letter-spacing: -.03em; }
.hero p.lead { color: var(--muted); font-size: 19px; max-width: 560px; margin: 0 0 30px; }
.hero .trust { display: flex; gap: 22px; margin-top: 28px; flex-wrap: wrap; color: var(--muted); font-size: 14px; }
.hero .trust b { color: var(--text); font-size: 20px; display: block; }
.hero-art { position: relative; }
.hero-art img { width: 100%; filter: drop-shadow(0 30px 60px rgba(124,92,255,.25)); animation: float 7s ease-in-out infinite; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
.feature .ic { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; font-size: 22px; background: rgba(124,92,255,.14); border: 1px solid rgba(124,92,255,.3); margin-bottom: 14px; }
.feature h3 { margin: 0 0 6px; font-size: 18px; }
.feature p { margin: 0; color: var(--muted); }
.steps { counter-reset: s; }
.step { position: relative; padding-left: 64px; }
.step::before { counter-increment: s; content: counter(s); position: absolute; left: 0; top: 0; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  font-weight: 800; background: var(--grad); box-shadow: 0 8px 24px rgba(124,92,255,.35); }
.cta { text-align: center; padding: 56px 24px; border-radius: 24px; background: radial-gradient(60% 120% at 50% 0%, rgba(124,92,255,.35), transparent), var(--panel); border: 1px solid rgba(124,92,255,.35); }

/* Pricing */
.plans { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); align-items: stretch; }
.plan { display: flex; flex-direction: column; position: relative; }
.plan .price { font-size: 38px; font-weight: 800; margin: 10px 0 2px; letter-spacing: -.02em; }
.plan .per { color: var(--muted); font-size: 14px; }
.plan ul { list-style: none; padding: 0; margin: 18px 0 22px; flex: 1; }
.plan li { padding: 6px 0 6px 26px; position: relative; color: #d6dbee; font-size: 14px; }
.plan li::before { content: "✓"; position: absolute; left: 0; color: var(--accent-2); font-weight: 800; }
.plan li.no { color: var(--dim); } .plan li.no::before { content: "–"; color: var(--dim); }
.plan .tag { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--grad); padding: 4px 14px; border-radius: 99px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.plan.sel { box-shadow: var(--glow); border-color: var(--accent); }

/* FAQ */
details { border: 1px solid var(--line); border-radius: 14px; padding: 4px 18px; background: var(--panel); margin-bottom: 10px; }
summary { cursor: pointer; padding: 14px 0; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 10px; }
summary::after { content: "+"; color: var(--accent-2); font-size: 20px; line-height: 1; }
details[open] summary::after { content: "–"; }
details p { color: var(--muted); margin: 0 0 16px; }

/* Legal pages */
.legal { max-width: 840px; margin: 0 auto; padding: 40px 16px 80px; }
.legal h1 { font-size: 36px; } .legal h2 { font-size: 21px; margin-top: 34px; }
.legal p, .legal li { color: #c9cfe3; }
.legal .note { border-left: 3px solid var(--warn); padding: 10px 14px; background: rgba(245,158,11,.06); border-radius: 0 10px 10px 0; }

/* Wizard */
.wizard { max-width: 760px; margin: 30px auto 80px; padding: 0 16px; }
.stepper { display: flex; gap: 6px; margin: 0 0 22px; }
.stepper div { flex: 1; text-align: center; font-size: 12px; color: var(--dim); }
.stepper div::before { content: ""; display: block; height: 5px; border-radius: 99px; background: var(--panel-3); margin-bottom: 8px; transition: background .3s; }
.stepper div.on { color: var(--text); } .stepper div.on::before { background: var(--grad); }
.stepper div.done::before { background: rgba(124,92,255,.55); }
.terms-box { max-height: 340px; overflow-y: auto; border: 1px solid var(--line); border-radius: 12px; padding: 16px; background: var(--bg-2); font-size: 14px; color: #c9cfe3; }
.terms-box h2 { font-size: 16px; } .terms-box h1 { font-size: 20px; }
.otp { letter-spacing: 12px; font-size: 26px; text-align: center; font-weight: 800; }
.logo-prev { width: 84px; height: 84px; border-radius: 16px; object-fit: contain; background: #fff; padding: 6px; border: 1px solid var(--line); }

/* Gallery & guest */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 8px; }
.gallery .ph { position: relative; aspect-ratio: 1; overflow: hidden; border-radius: 12px; background: var(--panel-2); cursor: pointer; }
.gallery img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s; }
.gallery .ph:hover img { transform: scale(1.04); }
.gallery .ph.new { animation: pop .6s ease; outline: 2px solid var(--accent-2); }
@keyframes pop { from { transform: scale(.85); opacity: 0; } to { transform: none; opacity: 1; } }
.lightbox { position: fixed; inset: 0; background: rgba(0,0,0,.94); display: none; align-items: center; justify-content: center; flex-direction: column; z-index: 50; padding: 16px; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 100%; max-height: 80vh; border-radius: 10px; }
.lightbox .bar { margin-top: 14px; display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.studio-head { display: flex; gap: 14px; align-items: center; }
.studio-head img { width: 54px; height: 54px; border-radius: 14px; object-fit: contain; background: #fff; padding: 4px; }
.cam-wrap { position: relative; width: 100%; max-width: 420px; margin: 0 auto; aspect-ratio: 3/4; border-radius: 22px; overflow: hidden; background: #000; }
.cam-wrap video, .cam-wrap canvas.overlay { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scaleX(-1); }
.cam-status { text-align: center; font-weight: 600; margin: 12px 0 4px; min-height: 1.5em; }
.cam-checks { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; font-size: 12px; }
.cam-checks span { padding: 3px 10px; border-radius: 99px; background: var(--panel-3); color: var(--dim); }
.cam-checks span.ok { background: rgba(34,197,94,.15); color: #86efac; }
.selfie-preview { width: 200px; height: 200px; border-radius: 50%; object-fit: cover; border: 3px solid var(--accent); display: block; margin: 12px auto; }
.live { display: inline-flex; gap: 6px; align-items: center; font-size: 13px; color: var(--ok); }
.live::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 8px var(--ok); animation: pulse 1.6s infinite; }
@keyframes pulse { 50% { opacity: .35; } }

/* Upload */
.drop { border: 2px dashed var(--line-2); border-radius: var(--radius); padding: 34px 20px; text-align: center; cursor: pointer; transition: border-color .2s, background .2s; }
.drop:hover, .drop.over { border-color: var(--accent); background: rgba(124,92,255,.06); }
.drop .big { font-size: 34px; }
.progress { height: 10px; background: var(--panel-3); border-radius: 99px; overflow: hidden; }
.progress > div { height: 100%; width: 0; background: var(--grad); transition: width .2s; }
.qr { background: #fff; border-radius: 14px; padding: 10px; width: 210px; max-width: 100%; }

/* Toast + loader */
#toast { position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%) translateY(120px); background: var(--panel-2); border: 1px solid var(--line-2); padding: 12px 18px; border-radius: 12px; z-index: 60;
  transition: transform .3s; box-shadow: var(--shadow); max-width: calc(100% - 32px); }
#toast.show { transform: translateX(-50%) translateY(0); }
#toast.bad { border-color: rgba(239,68,68,.5); }
.skeleton { background: linear-gradient(90deg, var(--panel-2) 25%, var(--panel-3) 50%, var(--panel-2) 75%); background-size: 200% 100%; animation: sk 1.3s infinite; border-radius: 10px; min-height: 20px; }
@keyframes sk { to { background-position: -200% 0; } }
.fade-in { animation: fin .45s ease both; }
@keyframes fin { from { opacity: 0; transform: translateY(8px); } }
.modal { position: fixed; inset: 0; background: rgba(0,0,0,.7); display: none; align-items: flex-start; justify-content: center; z-index: 45; padding: 5vh 16px; overflow-y: auto; }
.modal.open { display: flex; }
.modal .card { width: 100%; max-width: 640px; }

footer.site { border-top: 1px solid var(--line); margin-top: 60px; padding: 44px 0 30px; color: var(--muted); font-size: 14px; }
footer.site .cols { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 24px; }
footer.site h4 { color: var(--text); margin: 0 0 10px; font-size: 14px; }
footer.site a { display: block; color: var(--muted); padding: 3px 0; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding-top: 40px; }
  .hero-art { order: -1; max-width: 420px; margin: 0 auto; }
  .app { grid-template-columns: 1fr; }
  .side { position: fixed; z-index: 40; left: 0; top: 0; width: 270px; transform: translateX(-100%); transition: transform .25s; }
  .side.open { transform: none; box-shadow: var(--shadow); }
  .mobile-bar { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: rgba(7,8,15,.9); backdrop-filter: blur(10px); z-index: 30; }
  .main { padding: 18px 16px 70px; }
  footer.site .cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  nav.main { display: none; position: absolute; top: 66px; left: 0; right: 0; flex-direction: column; align-items: stretch; background: var(--bg-2); border-bottom: 1px solid var(--line); padding: 10px 16px 16px; }
  nav.main.open { display: flex; }
  .menu-btn { display: block; }
  .section { padding: 56px 0; }
  .gallery { grid-template-columns: repeat(3, 1fr); gap: 4px; }
  .card { padding: 18px; }
  .cols-2, .cols-3 { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { *, *::before { animation: none !important; transition: none !important; } }
