/* ==========================================================================
   SOFTWARE APP — design system (light, hand-written, no framework)
   Accent colour per software comes from --accent / --accent-rgb.
   ========================================================================== */

:root {
  --primary: #4F46E5; --primary-600: #4338CA; --primary-soft: #EEF2FF;
  --secondary: #06B6D4; --amber: #F59E0B; --ok: #16A34A; --warn: #F59E0B; --danger: #DC2626; --info: #0284C7;
  --bg: #F6F7FB; --card: #FFFFFF; --surface: #F8FAFC; --border: #E5E7EB; --border-2: #EEF0F4;
  --heading: #0F172A; --text: #334155; --muted: #64748B; --faint: #94A3B8;
  --accent: #4F46E5; --accent-rgb: 79,70,229;
  --a-soft: rgba(var(--accent-rgb), .09); --a-mid: rgba(var(--accent-rgb), .18);
  --r: 16px; --r-sm: 10px; --r-xs: 8px;
  --sh-1: 0 1px 2px rgba(15,23,42,.04), 0 1px 1px rgba(15,23,42,.03);
  --sh-2: 0 6px 24px -8px rgba(15,23,42,.10), 0 2px 6px -2px rgba(15,23,42,.05);
  --sh-3: 0 24px 60px -20px rgba(15,23,42,.25);
  --ease: cubic-bezier(.2,.8,.2,1);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-h: "Plus Jakarta Sans", var(--font);
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
  --nav-h: 68px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 15px/1.6 var(--font); color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; }
img, svg, video, canvas { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; transition: color .15s; }
a:hover { color: rgb(var(--accent-rgb)); filter: brightness(.9); }
h1, h2, h3, h4 { font-family: var(--font-h); color: var(--heading); line-height: 1.2; margin: 0 0 .4em; letter-spacing: -.01em; }
h1 { font-size: clamp(1.9rem, 4.2vw, 3.4rem); font-weight: 800; letter-spacing: -.025em; }
h2 { font-size: clamp(1.45rem, 2.6vw, 2.2rem); font-weight: 800; }
h3 { font-size: 1.08rem; font-weight: 700; }
p { margin: 0 0 1em; }
hr { border: 0; border-top: 1px solid var(--border); margin: 18px 0; }
code, .mono { font-family: var(--mono); }
code { background: var(--surface); border: 1px solid var(--border-2); padding: 1px 6px; border-radius: 6px; font-size: .88em; }
::selection { background: var(--a-mid); }

/* layout utilities */
.container { width: min(1200px, 100% - 40px); margin-inline: auto; }
.narrow { max-width: 820px; }
.section { padding: 88px 0; }
.section-sm { padding: 48px 0; }
.soft-bg { background: linear-gradient(180deg, #fff, var(--surface)); border-block: 1px solid var(--border-2); }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 44px; }
.center { text-align: center; } .right { text-align: right; }
.muted { color: var(--muted); } .tiny { font-size: 12px; } .text-ok { color: var(--ok); }
.mt-1 { margin-top: 6px; } .mt-2 { margin-top: 12px; } .mt-3 { margin-top: 20px; } .mt-4 { margin-top: 32px; }
.mb-2 { margin-bottom: 12px; } .mb-3 { margin-bottom: 20px; }
.row { display: flex; align-items: center; } .gap { gap: 10px; } .wrap { flex-wrap: wrap; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.stack { display: grid; gap: 14px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.grid-main { display: grid; grid-template-columns: 1.6fr 1fr; gap: 20px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.span-2 { grid-column: span 2; }
[hidden] { display: none !important; }

/* ── buttons ─────────────────────────────────────────── */
.btn { --b: var(--accent); display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 42px; padding: 0 18px;
  border-radius: var(--r-sm); border: 1px solid transparent; font: 600 14px var(--font); cursor: pointer; white-space: nowrap;
  transition: transform .15s var(--ease), box-shadow .2s, background .2s, color .2s, border-color .2s; text-decoration: none; position: relative; overflow: hidden; }
.btn:active { transform: translateY(1px) scale(.99); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 6px 16px -6px rgba(79,70,229,.6); }
.btn-primary:hover { background: var(--primary-600); color: #fff; filter: none; }
.btn-accent { background: var(--accent); color: #fff; box-shadow: 0 8px 18px -8px rgba(var(--accent-rgb), .75); }
.btn-accent:hover { color: #fff; filter: brightness(.94); transform: translateY(-1px); box-shadow: 0 12px 24px -10px rgba(var(--accent-rgb), .8); }
.btn-outline { background: #fff; color: var(--accent); border-color: var(--a-mid); }
.btn-outline:hover { background: var(--a-soft); filter: none; }
.btn-ghost { background: transparent; color: var(--heading); border-color: var(--border); }
.btn-ghost:hover { background: #fff; color: var(--heading); filter: none; border-color: #d6d9e0; }
.btn-soft { background: var(--a-soft); color: var(--accent); }
.btn-soft:hover { background: var(--a-mid); filter: none; }
.btn-light { background: #fff; color: var(--heading); box-shadow: var(--sh-2); }
.btn-light:hover { color: var(--accent); filter: none; transform: translateY(-1px); }
.btn-danger { background: var(--danger); color: #fff; } .btn-danger:hover { color: #fff; filter: brightness(.92); }
.btn-lg { height: 50px; padding: 0 24px; font-size: 15px; border-radius: 12px; }
.btn-sm { height: 34px; padding: 0 12px; font-size: 13px; border-radius: 8px; }
.btn-block { width: 100%; }
.btn .ripple { position: absolute; border-radius: 50%; transform: scale(0); background: rgba(255,255,255,.45); animation: ripple .6s linear; pointer-events: none; }
.icon-btn { width: 40px; height: 40px; display: inline-grid; place-items: center; border-radius: 10px; border: 1px solid var(--border); background: #fff;
  color: var(--text); cursor: pointer; position: relative; transition: all .15s; }
.icon-btn:hover { color: var(--accent); border-color: var(--a-mid); background: var(--a-soft); filter: none; }
.icon-btn.sm { width: 32px; height: 32px; border-radius: 8px; font-size: 13px; }
.icon-btn.danger:hover { color: var(--danger); border-color: #fecaca; background: #fef2f2; }
.link-btn { background: none; border: 0; color: var(--accent); font: 600 14px var(--font); cursor: pointer; padding: 0; }
.link-btn:disabled { color: var(--faint); cursor: default; }
.tiny-link { font-size: 13px; font-weight: 600; }

/* ── forms ───────────────────────────────────────────── */
.field { display: grid; gap: 6px; }
.label { font-size: 13px; font-weight: 600; color: var(--heading); }
.input { width: 100%; min-height: 42px; padding: 10px 13px; border: 1px solid var(--border); border-radius: var(--r-sm); background: #fff;
  font: 14px var(--font); color: var(--heading); transition: border-color .15s, box-shadow .15s; }
.input:focus { outline: 0; border-color: rgba(var(--accent-rgb), .6); box-shadow: 0 0 0 4px rgba(var(--accent-rgb), .12); }
textarea.input { resize: vertical; line-height: 1.55; }
select.input { 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='%2364748B' stroke-width='2.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; padding-right: 34px; }
.input.color { padding: 4px; height: 42px; width: 64px; cursor: pointer; }
.input-sm { min-height: 34px; padding: 6px 10px; font-size: 13px; }
.input:disabled { background: var(--surface); color: var(--muted); }
.input-icon { position: relative; } .input-icon > i { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--faint); font-size: 14px; }
.input-icon .input { padding-left: 38px; }
input[type=range] { width: 100%; accent-color: var(--accent); }
.check { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; cursor: pointer; }
.check input { accent-color: var(--accent); width: 16px; height: 16px; }
.copy-field { display: flex; gap: 8px; }
.alert { padding: 12px 14px; border-radius: var(--r-sm); font-size: 14px; margin: 12px 0; display: flex; gap: 10px; align-items: flex-start; }
.alert-error { background: #FEF2F2; color: #991B1B; border: 1px solid #FECACA; }
.alert-ok { background: #F0FDF4; color: #166534; border: 1px solid #BBF7D0; }
.alert-info { background: #EFF6FF; color: #1E40AF; border: 1px solid #BFDBFE; }

/* ── cards & badges ──────────────────────────────────── */
.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--r); padding: 22px; box-shadow: var(--sh-1); }
.card.inner { box-shadow: none; background: var(--surface); padding: 18px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.card-head h3 { margin: 0; }
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--surface); color: var(--text); border: 1px solid var(--border-2); text-transform: capitalize; }
.badge-accent { background: var(--a-soft); color: var(--accent); border-color: transparent; }
.badge.lg { font-size: 14px; padding: 6px 14px; }
.badge.tone-won, .badge.tone-done, .badge.tone-paid, .badge.tone-published, .badge.status-closed, .badge.tone-active { background: #F0FDF4; color: #15803D; border-color: #DCFCE7; }
.badge.tone-lost, .badge.tone-high, .badge.tone-failed, .badge.tone-overdue { background: #FEF2F2; color: #B91C1C; border-color: #FEE2E2; }
.badge.tone-new, .badge.tone-open, .badge.status-open, .badge.tone-medium, .badge.tone-unpaid, .badge.tone-draft { background: #FFFBEB; color: #B45309; border-color: #FEF3C7; }
.badge.status-answered { background: #EFF6FF; color: #1D4ED8; }
.soon { font-style: normal; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; padding: 2px 6px; border-radius: 6px; background: #FEF3C7; color: #B45309; margin-left: auto; }
.chip-ai { font-style: normal; font-size: 10px; font-weight: 700; padding: 2px 7px; border-radius: 6px; background: linear-gradient(135deg, #7C3AED, #06B6D4); color: #fff; }
.chip-list { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px; border-radius: 999px; background: color-mix(in srgb, var(--c) 10%, #fff); color: var(--c); font-size: 13px; font-weight: 600; }

/* ── brand ───────────────────────────────────────────── */
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--heading); }
.brand:hover { color: var(--heading); filter: none; }
.brand b { display: block; font: 800 16px var(--font-h); letter-spacing: -.01em; }
.brand small { display: block; font-size: 11.5px; color: var(--muted); line-height: 1.2; }
.brand.light, .brand.light b { color: #fff; } .brand.light small { color: rgba(255,255,255,.75); }
.logo-mark { width: 36px; height: 36px; border-radius: 11px; display: inline-grid; place-items: center; color: #fff; flex: none;
  background: conic-gradient(from 210deg, #4F46E5, #7C3AED, #06B6D4, #4F46E5); box-shadow: 0 6px 16px -6px rgba(79,70,229,.7); }
.logo-mark svg { width: 20px; height: 20px; } .logo-mark.xs { width: 22px; height: 22px; border-radius: 7px; } .logo-mark.xs svg { width: 13px; }
.app-tile { --c: var(--accent); width: 44px; height: 44px; border-radius: 13px; display: inline-grid; place-items: center; flex: none; color: #fff; font-size: 18px;
  background: linear-gradient(145deg, color-mix(in srgb, var(--c) 82%, #fff), var(--c)); box-shadow: 0 8px 18px -10px var(--c), inset 0 1px 0 rgba(255,255,255,.25); }
.app-tile.sm { width: 36px; height: 36px; border-radius: 11px; font-size: 15px; } .app-tile.xs { width: 30px; height: 30px; border-radius: 9px; font-size: 13px; }
.app-tile.light { background: rgba(255,255,255,.18); box-shadow: inset 0 0 0 1px rgba(255,255,255,.3); }
.sa-link { color: var(--muted); } .sa-link:hover { color: var(--accent); }
.avatar { --h: 240; width: 34px; height: 34px; border-radius: 50%; display: inline-grid; place-items: center; flex: none; font: 700 13px var(--font);
  color: hsl(var(--h) 55% 35%); background: hsl(var(--h) 80% 92%); border: 2px solid #fff; box-shadow: 0 0 0 1px hsl(var(--h) 60% 85%); }
.avatar.lg { width: 44px; height: 44px; font-size: 15px; } .avatar.xl { width: 64px; height: 64px; font-size: 20px; }

/* ── top navigation ──────────────────────────────────── */
.topnav { position: sticky; top: 0; z-index: 50; height: var(--nav-h); background: rgba(255,255,255,.82); backdrop-filter: saturate(1.8) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s; }
.topnav.scrolled { border-color: var(--border); box-shadow: 0 6px 20px -16px rgba(15,23,42,.25); }
.nav-inner { height: 100%; display: flex; align-items: center; gap: 24px; }
.nav-links { display: flex; align-items: center; gap: 2px; margin-right: auto; }
.nav-link { padding: 8px 12px; border-radius: 9px; color: var(--text); font-weight: 500; font-size: 14px; background: none; border: 0; cursor: pointer; display: inline-flex; align-items: center; gap: 7px; font-family: var(--font); }
.nav-link:hover, .nav-link.active { color: var(--accent); background: var(--a-soft); filter: none; }
.nav-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.tiny { font-size: 10px; }
.dropdown { position: relative; }
.dropdown-menu { position: absolute; top: calc(100% + 10px); left: 0; min-width: 230px; background: #fff; border: 1px solid var(--border); border-radius: 14px;
  box-shadow: var(--sh-3); padding: 8px; opacity: 0; visibility: hidden; transform: translateY(-6px) scale(.98); transform-origin: top; transition: all .18s var(--ease); z-index: 60; }
.dropdown.open .dropdown-menu { opacity: 1; visibility: visible; transform: none; }
.dropdown-menu.right { left: auto; right: 0; }
.dropdown-menu > a { display: flex; align-items: center; gap: 10px; padding: 9px 11px; border-radius: 9px; color: var(--text); font-size: 14px; }
.dropdown-menu > a:hover { background: var(--surface); color: var(--accent); filter: none; }
.dropdown-menu > a.danger:hover { color: var(--danger); background: #FEF2F2; }
.dropdown-menu hr { margin: 6px 0; }
.dropdown-menu.mega { display: grid; grid-template-columns: 1fr 1fr; min-width: 440px; gap: 4px; }
.dropdown-menu.mega a i { width: 34px; height: 34px; display: grid; place-items: center; background: var(--a-soft); color: var(--accent); border-radius: 9px; }
.dropdown-menu.mega small { display: block; color: var(--muted); font-size: 12px; }
.menu-user { display: flex; gap: 10px; align-items: center; padding: 8px 10px 12px; border-bottom: 1px solid var(--border-2); margin-bottom: 6px; }
.menu-user small { display: block; color: var(--muted); font-size: 12px; }
.avatar-btn { display: inline-flex; align-items: center; gap: 8px; background: none; border: 1px solid var(--border); padding: 3px 10px 3px 3px; border-radius: 999px; cursor: pointer; font: 600 14px var(--font); color: var(--heading); }
.avatar-btn:hover { border-color: var(--a-mid); }
.launcher-menu { right: 0; left: auto; width: 360px; padding: 12px; }
.launcher-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; padding: 0 4px; }
.launcher-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; max-height: 320px; overflow: auto; margin-top: 8px; }
.launcher-grid a { display: grid; justify-items: center; gap: 6px; padding: 10px 4px; border-radius: 11px; color: var(--text); text-align: center; }
.launcher-grid a:hover { background: var(--surface); filter: none; }
.launcher-grid a .app-tile { width: 38px; height: 38px; font-size: 15px; }
.launcher-grid small { font-size: 11px; line-height: 1.2; }
.launcher-foot { display: flex; align-items: center; gap: 8px; justify-content: center; padding: 10px; margin-top: 8px; border-top: 1px solid var(--border-2); color: var(--muted); font-size: 13px; }

/* ── hero ────────────────────────────────────────────── */
.hero { position: relative; overflow: hidden; padding: 72px 0 64px; }
.hero-bg { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; animation: drift 18s ease-in-out infinite alternate; }
.blob.b1 { width: 520px; height: 520px; background: rgba(var(--accent-rgb), .30); top: -180px; right: -120px; }
.blob.b2 { width: 420px; height: 420px; background: rgba(6,182,212,.22); bottom: -200px; left: -120px; animation-delay: -6s; }
.grid-fade { position: absolute; inset: 0; background-image: linear-gradient(rgba(15,23,42,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(15,23,42,.045) 1px, transparent 1px);
  background-size: 44px 44px; mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%); }
.hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: #fff; border: 1px solid var(--border);
  color: var(--accent); font-size: 12.5px; font-weight: 700; box-shadow: var(--sh-1); margin-bottom: 18px; }
.lead { font-size: 1.12rem; color: var(--muted); max-width: 580px; }
.hero h1 { margin-bottom: 18px; }
.hero h1 .grad, .grad { background: linear-gradient(120deg, var(--accent), #7C3AED 55%, #06B6D4); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 26px 0 22px; }
.trust { display: flex; gap: 18px; flex-wrap: wrap; color: var(--muted); font-size: 13px; }
.trust i { color: var(--accent); margin-right: 4px; }
.shorten-box { display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 8px 8px 8px 16px; box-shadow: var(--sh-2); margin: 26px 0 22px; max-width: 560px; }
.shorten-box input { flex: 1; border: 0; outline: 0; font: 15px var(--font); min-width: 0; background: transparent; }
.shorten-box > i { color: var(--accent); } .shorten-box .prefix { color: var(--muted); font-size: 14px; white-space: nowrap; }
.visual-card { background: #fff; border: 1px solid var(--border); border-radius: 20px; box-shadow: var(--sh-3); overflow: hidden; }
.vc-bar, .code-bar { display: flex; align-items: center; gap: 6px; padding: 12px 14px; border-bottom: 1px solid var(--border-2); background: var(--surface); }
.vc-bar span, .code-bar span { width: 10px; height: 10px; border-radius: 50%; background: #E2E8F0; }
.vc-bar span:nth-child(1), .code-bar span:nth-child(1) { background: #FCA5A5; } .vc-bar span:nth-child(2), .code-bar span:nth-child(2) { background: #FCD34D; } .vc-bar span:nth-child(3), .code-bar span:nth-child(3) { background: #86EFAC; }
.vc-bar b, .code-bar b { margin-left: 8px; font-size: 12.5px; color: var(--muted); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vc-body { padding: 14px; display: grid; gap: 10px; }
.vc-row { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 12px; border: 1px solid var(--border-2); animation: slideUp .6s var(--ease) both; animation-delay: var(--d); }
.vc-row b { display: block; font-size: 14px; color: var(--heading); } .vc-row small { color: var(--muted); font-size: 12px; }
.vc-row .ok { margin-left: auto; color: var(--ok); }
.code-window { background: #0B1020; border-radius: 18px; overflow: hidden; box-shadow: var(--sh-3); border: 1px solid #1E293B; }
.code-window .code-bar { background: #111827; border-color: #1F2937; } .code-window .code-bar b { color: #94A3B8; }
.code-window pre { margin: 0; padding: 18px; color: #E2E8F0; font: 13px/1.7 var(--mono); overflow: auto; }
.code-window .copy-btn { margin-left: auto; }
.float { animation: floaty 6s ease-in-out infinite; }
.phone-mock { width: 270px; margin: 0 auto; border-radius: 38px; padding: 12px; background: #0F172A; box-shadow: var(--sh-3); position: relative; }
.phone-notch { width: 90px; height: 20px; background: #0F172A; border-radius: 0 0 14px 14px; position: absolute; top: 12px; left: 50%; transform: translateX(-50%); z-index: 2; }
.bio-preview { border-radius: 28px; padding: 40px 18px 26px; min-height: 470px; display: grid; justify-items: center; align-content: start; gap: 10px; text-align: center;
  background: linear-gradient(170deg, color-mix(in srgb, var(--accent) 18%, #fff), #fff 60%); }
.bio-preview small { color: var(--muted); margin-top: -6px; }
.bio-preview > a { display: block; width: 100%; padding: 12px; border-radius: 12px; background: #fff; border: 1px solid var(--border); color: var(--heading); font-weight: 600; font-size: 14px; box-shadow: var(--sh-1); }
.socials { display: flex; gap: 14px; font-size: 18px; color: var(--muted); margin-top: 6px; }

.page-hero { padding: 64px 0 18px; text-align: center; background: radial-gradient(ellipse 60% 100% at 50% 0%, var(--a-soft), transparent 70%); }
.page-hero .lead { margin: 0 auto; }

/* ── stats, tools, features, steps ───────────────────── */
.stats-strip { display: grid; grid-template-columns: repeat(4, 1fr); background: #fff; border: 1px solid var(--border); border-radius: var(--r); box-shadow: var(--sh-2); padding: 22px; margin-top: -20px; position: relative; z-index: 2; }
.stats-strip > div { text-align: center; border-right: 1px solid var(--border-2); }
.stats-strip > div:last-child { border: 0; }
.stats-strip b { display: block; font: 800 1.9rem var(--font-h); color: var(--heading); }
.stats-strip span { color: var(--muted); font-size: 13px; }
.tool-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.tool-card { position: relative; display: grid; gap: 6px; padding: 20px; background: #fff; border: 1px solid var(--border); border-radius: var(--r); color: var(--text);
  transition: transform .25s var(--ease), box-shadow .25s, border-color .25s; overflow: hidden; }
.tool-card::after { content: ""; position: absolute; inset: 0; background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 0%), var(--a-soft), transparent 45%); opacity: 0; transition: opacity .3s; pointer-events: none; }
.tool-card:hover { transform: translateY(-3px); box-shadow: var(--sh-2); border-color: var(--a-mid); color: var(--text); filter: none; }
.tool-card:hover::after { opacity: 1; }
.tool-card b { color: var(--heading); font-size: 15px; margin-top: 6px; } .tool-card small { color: var(--muted); font-size: 13px; }
.tool-card .soon, .tool-card .chip-ai { position: absolute; top: 16px; right: 16px; }
.tool-card .go { position: absolute; bottom: 18px; right: 18px; color: var(--accent); opacity: 0; transform: translateX(-6px); transition: all .25s; }
.tool-card:hover .go { opacity: 1; transform: none; }
.tool-icon { width: 44px; height: 44px; border-radius: 12px; display: inline-grid; place-items: center; background: var(--a-soft); color: var(--accent); font-size: 18px; flex: none; transition: transform .3s var(--ease); }
.tool-card:hover .tool-icon { transform: rotate(-6deg) scale(1.06); }
.tool-icon.sm { width: 34px; height: 34px; font-size: 14px; border-radius: 10px; } .tool-icon.lg { width: 64px; height: 64px; font-size: 26px; border-radius: 18px; margin: 0 auto 12px; }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 18px; }
.tabs.center { justify-content: center; }
.tab { padding: 8px 15px; border-radius: 999px; border: 1px solid var(--border); background: #fff; color: var(--text); font: 600 13px var(--font); cursor: pointer; transition: all .15s; display: inline-flex; gap: 7px; align-items: center; }
.tab:hover { border-color: var(--a-mid); color: var(--accent); }
.tab.active { background: var(--accent); border-color: var(--accent); color: #fff; box-shadow: 0 6px 14px -6px rgba(var(--accent-rgb), .7); }
.tabs.small .tab { padding: 5px 12px; font-size: 12px; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature { padding: 24px; border-radius: var(--r); background: #fff; border: 1px solid var(--border); transition: transform .25s var(--ease), box-shadow .25s; }
.feature:hover { transform: translateY(-3px); box-shadow: var(--sh-2); }
.feature h3 { margin-top: 14px; } .feature p { color: var(--muted); margin: 0; font-size: 14px; }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; counter-reset: s; }
.step { padding: 26px; background: #fff; border: 1px solid var(--border); border-radius: var(--r); position: relative; }
.step > span { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; font: 800 16px var(--font-h); color: #fff; background: linear-gradient(135deg, var(--accent), #7C3AED); margin-bottom: 14px; box-shadow: 0 8px 16px -8px rgba(var(--accent-rgb), .8); }
.step p { color: var(--muted); margin: 0; font-size: 14px; }

/* ── pricing ─────────────────────────────────────────── */
.billing-toggle { display: flex; width: max-content; margin: 0 auto 28px; padding: 4px; background: #fff; border: 1px solid var(--border); border-radius: 999px; box-shadow: var(--sh-1); }
.billing-toggle button { border: 0; background: none; padding: 9px 18px; border-radius: 999px; font: 600 14px var(--font); color: var(--text); cursor: pointer; transition: all .2s; }
.billing-toggle button.active { background: var(--heading); color: #fff; }
.billing-toggle em { font-style: normal; font-size: 11px; background: #DCFCE7; color: #15803D; padding: 2px 7px; border-radius: 999px; margin-left: 4px; }
.price-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; align-items: stretch; }
.price-card { position: relative; display: flex; flex-direction: column; padding: 26px; background: #fff; border: 1px solid var(--border); border-radius: 20px; transition: transform .25s var(--ease), box-shadow .25s; }
.price-card:hover { transform: translateY(-4px); box-shadow: var(--sh-2); }
.price-card.featured { border: 2px solid var(--accent); box-shadow: 0 20px 40px -20px rgba(var(--accent-rgb), .45); }
.price-card .ribbon { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--accent); color: #fff; font-size: 12px; font-weight: 700; padding: 4px 12px; border-radius: 999px; }
.price { display: flex; align-items: baseline; gap: 4px; margin: 6px 0 2px; }
.price span { font: 800 2.3rem var(--font-h); color: var(--heading); letter-spacing: -.02em; } .price small { color: var(--muted); }
.checks { list-style: none; padding: 0; margin: 16px 0 22px; display: grid; gap: 9px; flex: 1; }
.checks li { display: flex; gap: 10px; font-size: 14px; } .checks i { color: var(--ok); margin-top: 4px; font-size: 12px; }
.big-price { font: 800 2.2rem var(--font-h); color: var(--heading); }

/* ── faq, cta, footer ────────────────────────────────── */
.faq { display: grid; gap: 10px; }
.faq details { background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 0 18px; transition: box-shadow .2s; }
.faq details[open] { box-shadow: var(--sh-2); }
.faq summary { list-style: none; cursor: pointer; padding: 16px 0; font-weight: 600; color: var(--heading); display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary i { color: var(--accent); transition: transform .25s var(--ease); margin-top: 4px; }
.faq details[open] summary i { transform: rotate(45deg); }
.faq p { color: var(--muted); padding-bottom: 16px; margin: 0; }
.cta-band { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding: 40px 44px; border-radius: 24px; color: #fff; position: relative; overflow: hidden;
  background: linear-gradient(125deg, var(--accent), #7C3AED 60%, #06B6D4); box-shadow: 0 30px 60px -30px rgba(var(--accent-rgb), .8); }
.cta-band::before { content: ""; position: absolute; width: 380px; height: 380px; border-radius: 50%; background: rgba(255,255,255,.12); top: -200px; right: 10%; }
.cta-band h2 { color: #fff; margin: 0 0 6px; } .cta-band p { margin: 0; opacity: .9; }
.footer { background: #fff; border-top: 1px solid var(--border); padding: 56px 0 0; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr 1fr; gap: 28px; }
.footer h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--faint); margin-bottom: 14px; }
.footer-grid a:not(.brand) { display: block; color: var(--text); padding: 4px 0; font-size: 14px; }
.footer-grid a:not(.brand):hover { color: var(--accent); }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding: 22px 0; margin-top: 40px; border-top: 1px solid var(--border-2); font-size: 13px; color: var(--muted); }

/* ── auth ────────────────────────────────────────────── */
.auth-wrap { min-height: 100vh; display: grid; grid-template-columns: 1fr 1.1fr; }
.auth-art { position: relative; overflow: hidden; color: #fff; padding: 36px 44px; display: flex; flex-direction: column;
  background: radial-gradient(circle at 20% 10%, rgba(255,255,255,.18), transparent 40%), linear-gradient(150deg, var(--accent), #7C3AED 55%, #0EA5E9); }
.auth-art-copy { margin-top: auto; position: relative; z-index: 2; }
.auth-art h2 { color: #fff; font-size: clamp(1.6rem, 2.6vw, 2.4rem); max-width: 420px; }
.auth-art ul { list-style: none; padding: 0; display: grid; gap: 10px; opacity: .95; }
.auth-art li i { margin-right: 8px; }
.auth-orbit { position: absolute; width: 380px; height: 380px; right: -70px; top: 22%; border-radius: 50%; border: 1px dashed rgba(255,255,255,.35); animation: spin 40s linear infinite; }
.auth-orbit span { --a: calc(var(--i) * 45deg); position: absolute; left: 50%; top: 50%; width: 46px; height: 46px; margin: -23px; border-radius: 14px; display: grid; place-items: center; font-size: 17px;
  background: #fff; color: var(--c); box-shadow: 0 10px 24px -10px rgba(0,0,0,.4); transform: rotate(var(--a)) translate(190px) rotate(calc(-1 * var(--a))); }
.auth-orbit b { position: absolute; inset: 50%; width: 92px; height: 92px; margin: -46px; border-radius: 28px; display: grid; place-items: center; font-size: 34px; background: rgba(255,255,255,.18); backdrop-filter: blur(4px); box-shadow: inset 0 0 0 1px rgba(255,255,255,.35); }
.auth-main { display: grid; place-items: center; padding: 36px 20px; }
.auth-card { width: min(440px, 100%); }
.auth-card h1 { font-size: 1.9rem; }
.otp-inputs { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }
.otp-inputs input { height: 58px; text-align: center; font: 700 22px var(--mono); border: 1px solid var(--border); border-radius: 12px; outline: 0; transition: all .15s; background: #fff; color: var(--heading); width: 100%; }
.otp-inputs input:focus { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(var(--accent-rgb), .14); transform: translateY(-2px); }
.strength { height: 5px; background: var(--border-2); border-radius: 9px; overflow: hidden; } .strength span { display: block; height: 100%; width: 0; border-radius: 9px; transition: all .3s; }

/* ── panel shell (Razorpay-style) ─────────────────────── */
.panel-shell { display: grid; grid-template-columns: 264px 1fr; min-height: 100vh; }
.sidebar { position: sticky; top: 0; height: 100vh; background: #fff; border-right: 1px solid var(--border); display: flex; flex-direction: column; z-index: 40; }
.side-brand { padding: 18px 18px 14px; border-bottom: 1px solid var(--border-2); }
.side-brand b { font-size: 15px; }
.side-scroll { flex: 1; overflow-y: auto; padding: 10px 12px; }
.side-group { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--faint); padding: 14px 10px 6px; }
.side-link { position: relative; display: flex; align-items: center; gap: 11px; padding: 9px 11px; margin: 1px 0; border-radius: 10px; color: var(--text); font-size: 14px; font-weight: 500; transition: background .15s, color .15s; }
.side-link i { width: 18px; text-align: center; color: var(--faint); font-size: 14px; transition: color .15s; }
.side-link:hover { background: var(--surface); color: var(--heading); filter: none; } .side-link:hover i { color: var(--accent); }
.side-link.active { background: var(--a-soft); color: var(--accent); font-weight: 600; }
.side-link.active i { color: var(--accent); }
.side-link.active::before { content: ""; position: absolute; left: -12px; top: 8px; bottom: 8px; width: 3px; border-radius: 0 3px 3px 0; background: var(--accent); }
.plan-card { margin: 10px 14px; padding: 14px; border-radius: 14px; background: linear-gradient(160deg, var(--a-soft), #fff); border: 1px solid var(--border-2); }
.meter { height: 7px; border-radius: 99px; background: var(--border-2); overflow: hidden; }
.meter span { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--accent), #06B6D4); transition: width 1s var(--ease); }
.meter.lg { height: 10px; margin: 6px 0; }
.side-user { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-top: 1px solid var(--border-2); }
.side-user > div { flex: 1; min-width: 0; } .side-user b { display: block; font-size: 13px; color: var(--heading); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side-user small { display: block; font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.panel-main { min-width: 0; display: flex; flex-direction: column; }
.topbar { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 10px; height: 68px; padding: 0 26px; background: rgba(255,255,255,.88); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); }
.topbar-title { margin-right: auto; min-width: 0; }
.topbar-title small { color: var(--faint); font-size: 12px; } .topbar-title small a { color: var(--muted); }
.topbar-title h1 { font-size: 1.15rem; margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar-search { position: relative; width: 240px; } .topbar-search i { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--faint); font-size: 13px; }
.topbar-search input { width: 100%; height: 38px; border: 1px solid var(--border); border-radius: 10px; padding: 0 12px 0 34px; font: 13px var(--font); background: var(--surface); outline: 0; }
.topbar-search input:focus { border-color: var(--a-mid); background: #fff; }
.bell em { position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px; background: var(--danger); color: #fff; font: 700 10px/18px var(--font); font-style: normal; border: 2px solid #fff; }
.panel-content { padding: 26px; flex: 1; }
.side-overlay { display: none; }
.bottom-nav { position: fixed; bottom: 0; left: 0; right: 0; z-index: 45; display: none; justify-content: space-around; background: #fff; border-top: 1px solid var(--border); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); }
.bottom-nav a { display: grid; justify-items: center; gap: 2px; color: var(--muted); font-size: 11px; padding: 4px 8px; border-radius: 10px; }
.bottom-nav a i { font-size: 17px; } .bottom-nav a:hover { color: var(--accent); }

.welcome { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; padding: 24px 26px; border-radius: 20px; color: #fff; margin-bottom: 20px; position: relative; overflow: hidden;
  background: linear-gradient(120deg, var(--accent), #7C3AED 70%, #06B6D4); box-shadow: 0 20px 40px -24px rgba(var(--accent-rgb), .9); }
.welcome::after { content: ""; position: absolute; right: -60px; top: -80px; width: 260px; height: 260px; border-radius: 50%; background: rgba(255,255,255,.12); }
.welcome h2 { color: #fff; font-size: 1.45rem; margin: 0 0 4px; } .welcome p { margin: 0; opacity: .9; }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 20px; }
.stat { display: flex; gap: 14px; align-items: center; padding: 18px; background: #fff; border: 1px solid var(--border); border-radius: var(--r); box-shadow: var(--sh-1); }
.stat-icon { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; background: var(--a-soft); color: var(--accent); font-size: 18px; flex: none; }
.stat small { display: block; color: var(--muted); font-size: 12.5px; } .stat b { display: block; font: 800 1.45rem var(--font-h); color: var(--heading); line-height: 1.2; }
.stat em { font-style: normal; color: var(--faint); font-size: 12px; }
.bars { display: grid; grid-template-columns: repeat(14, 1fr); gap: 8px; align-items: end; height: 170px; padding-top: 10px; }
.bar { display: grid; grid-template-rows: 1fr auto; height: 100%; gap: 6px; text-align: center; }
.bar span { align-self: end; height: max(4px, var(--h)); border-radius: 8px 8px 4px 4px; background: linear-gradient(180deg, var(--accent), rgba(var(--accent-rgb), .45)); transform-origin: bottom; animation: grow .8s var(--ease) both; }
.bar small { font-size: 11px; color: var(--faint); }
.list { list-style: none; margin: 0; padding: 0; display: grid; }
.list li { display: flex; gap: 12px; align-items: center; padding: 11px 0; border-bottom: 1px solid var(--border-2); }
.list li:last-child { border: 0; } .list li > div { flex: 1; min-width: 0; }
.list b { display: block; font-size: 14px; color: var(--heading); font-weight: 600; } .list small { color: var(--muted); font-size: 12px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--a-mid); flex: none; } .dot.ok { background: var(--ok); }
.quick-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.quick { display: flex; align-items: center; gap: 10px; padding: 12px; border: 1px solid var(--border-2); border-radius: 12px; color: var(--heading); font-weight: 500; font-size: 14px; transition: all .2s; }
.quick:hover { border-color: var(--a-mid); background: var(--a-soft); filter: none; color: var(--heading); transform: translateY(-1px); }

/* ── tables, toolbars, drawer ────────────────────────── */
.table-wrap { overflow-x: auto; border: 1px solid var(--border-2); border-radius: 12px; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); background: var(--surface); padding: 11px 14px; border-bottom: 1px solid var(--border); white-space: nowrap; }
.table td { padding: 12px 14px; border-bottom: 1px solid var(--border-2); vertical-align: middle; }
.table tbody tr { transition: background .15s; } .table tbody tr:hover { background: #FAFBFD; }
.table tbody tr:last-child td { border-bottom: 0; }
.actions { display: flex; gap: 6px; justify-content: flex-end; white-space: nowrap; } .actions form { display: inline; }
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.search-inline { position: relative; display: flex; gap: 8px; flex: 1; max-width: 520px; }
.search-inline > i { position: absolute; left: 13px; top: 14px; color: var(--faint); font-size: 13px; } .search-inline .input:first-of-type { padding-left: 36px; }
.search-inline select { max-width: 170px; }
.import-box { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; padding: 12px; background: var(--surface); border-radius: 12px; margin-bottom: 14px; }
.import-box .input { max-width: 280px; }
.sum-strip { display: flex; gap: 14px; align-items: baseline; padding: 12px 16px; background: var(--a-soft); border-radius: 12px; margin-bottom: 14px; }
.sum-strip b { font: 800 1.2rem var(--font-h); color: var(--heading); }
.drawer { position: fixed; inset: 0; z-index: 70; background: rgba(15,23,42,.35); display: flex; justify-content: flex-end; animation: fade .2s; }
.drawer-card { width: min(460px, 100%); height: 100%; background: #fff; padding: 24px; overflow-y: auto; box-shadow: var(--sh-3); }
.pager { display: flex; gap: 6px; justify-content: center; margin-top: 18px; }
.pager a, .pager span { min-width: 36px; height: 36px; display: grid; place-items: center; border-radius: 9px; border: 1px solid var(--border); color: var(--text); font-size: 14px; background: #fff; }
.pager a.active { background: var(--accent); border-color: var(--accent); color: #fff; }

/* ── tool layout ─────────────────────────────────────── */
.tool-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 20px; align-items: start; }
.tool-title { display: flex; gap: 14px; align-items: center; margin-bottom: 14px; }
.tool-title h2 { font-size: 1.2rem; margin: 0; } .tool-title p { margin: 0; font-size: 13.5px; }
.tool-output { position: sticky; top: 90px; min-height: 360px; }
.output { min-height: 260px; }
.output-empty { display: grid; place-items: center; text-align: center; height: 260px; color: var(--faint); border: 2px dashed var(--border); border-radius: 14px; }
.output-empty i { font-size: 30px; margin-bottom: 10px; color: var(--a-mid); }
.prose { line-height: 1.75; color: var(--text); word-wrap: break-word; }
.prose h2, .prose h3, .prose h4 { margin: 1.1em 0 .45em; } .prose h2 { font-size: 1.35rem; } .prose h3 { font-size: 1.12rem; }
.prose ul, .prose ol { padding-left: 1.3em; } .prose li { margin: 4px 0; }
.prose blockquote { margin: 12px 0; padding: 8px 16px; border-left: 3px solid var(--accent); background: var(--surface); border-radius: 0 10px 10px 0; color: var(--muted); }
pre.code { position: relative; background: #0B1020; color: #E2E8F0; padding: 16px; border-radius: 12px; overflow: auto; font: 13px/1.65 var(--mono); }
pre.code code { background: none; border: 0; padding: 0; color: inherit; }
.copy-btn { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); color: #CBD5E1; border-radius: 8px; padding: 4px 9px; cursor: pointer; font-size: 12px; }
pre.code .copy-btn { position: absolute; top: 8px; right: 8px; }
.skeleton-block { display: grid; gap: 12px; }
.skeleton-block span { height: 14px; border-radius: 8px; background: linear-gradient(90deg, #EEF1F5 25%, #F8FAFC 50%, #EEF1F5 75%); background-size: 200% 100%; animation: shimmer 1.2s infinite; }
.skeleton-block span.short { width: 60%; }
.privacy-note { display: inline-flex; gap: 8px; align-items: center; font-size: 12.5px; color: var(--ok); background: #F0FDF4; padding: 6px 12px; border-radius: 999px; margin-bottom: 16px; }
.dropzone { display: grid; justify-items: center; gap: 6px; padding: 34px 20px; border: 2px dashed var(--border); border-radius: 16px; background: var(--surface); text-align: center; cursor: pointer; transition: all .2s; }
.dropzone i { font-size: 30px; color: var(--accent); margin-bottom: 4px; transition: transform .3s var(--ease); }
.dropzone b { color: var(--heading); } .dropzone small { color: var(--muted); }
.dropzone:hover, .dropzone.drag { border-color: var(--accent); background: var(--a-soft); } .dropzone.drag i { transform: translateY(-4px) scale(1.1); }
.file-list { list-style: none; padding: 0; margin: 12px 0; display: grid; gap: 8px; }
.file-list li { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--border-2); border-radius: 10px; background: #fff; font-size: 14px; cursor: grab; }
.file-list li .fname { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-list li.dragging { opacity: .5; }
.opts { margin: 14px 0; display: grid; gap: 12px; }
.result-box { margin-top: 18px; padding: 18px; border-radius: 14px; background: #F0FDF4; border: 1px solid #BBF7D0; display: grid; gap: 10px; animation: popIn .35s var(--ease); }
.result-box .res-item { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.result-box img { max-height: 120px; border-radius: 8px; border: 1px solid var(--border); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.code-area { min-height: 340px; font: 13px/1.6 var(--mono); white-space: pre; tab-size: 2; }
.status-line { margin-top: 10px; font-size: 13px; min-height: 20px; }
.status-line.ok { color: var(--ok); } .status-line.err { color: var(--danger); }
.qr-preview { display: grid; justify-items: center; align-content: start; padding: 20px; background: var(--surface); border-radius: 16px; }
.qr-box { padding: 14px; background: #fff; border-radius: 14px; box-shadow: var(--sh-2); min-width: 120px; min-height: 120px; display: grid; place-items: center; }
.qr-box img, .qr-box canvas { width: 100%; max-width: 300px; height: auto; }
.regex-out { padding: 14px; background: var(--surface); border-radius: 12px; white-space: pre-wrap; min-height: 80px; border: 1px solid var(--border-2); }
.regex-out mark { background: rgba(var(--accent-rgb), .2); color: var(--heading); border-radius: 4px; padding: 0 2px; }
.md-preview { padding: 16px; background: #fff; border: 1px solid var(--border); border-radius: var(--r-sm); min-height: 340px; overflow: auto; }
.playground { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.pg-preview { width: 100%; min-height: 440px; border: 1px solid var(--border); border-radius: 12px; background: #fff; }
.playground .code-area { min-height: 400px; }
.gen-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.grad-preview { height: 80px; border-radius: 12px; margin: 12px 0; }
.ce-wrap { display: grid; grid-template-columns: 300px 1fr; gap: 20px; }
.ce-tools { display: grid; gap: 12px; align-content: start; }
.ce-stage { background: repeating-conic-gradient(#F1F5F9 0 25%, #fff 0 50%) 0 0 / 20px 20px; border-radius: 14px; padding: 16px; display: grid; place-items: center; border: 1px solid var(--border); }
.ce-stage canvas { max-height: 560px; width: auto; box-shadow: var(--sh-3); border-radius: 6px; }
.sig-preview { min-height: 140px; background: #fff; }
.video-preview { width: 100%; max-height: 380px; border-radius: 12px; background: #000; margin-top: 12px; }
.rec-timer { font: 700 1.6rem var(--mono); color: var(--danger); }
.state { text-align: center; padding: 40px 20px; }
.state-icon { width: 68px; height: 68px; margin: 0 auto 16px; border-radius: 20px; display: grid; place-items: center; font-size: 26px; background: var(--a-soft); color: var(--accent); }
.state.warn .state-icon { background: #FFFBEB; color: #D97706; }
.state p { color: var(--muted); max-width: 460px; margin: 0 auto; }
.js-tool .tool-layout { grid-template-columns: 1fr 1fr; }
.guest-tool .tool-head { margin-bottom: 20px; } .guest-tool .tool-head h1 { font-size: 2rem; margin: 8px 0 4px; }

/* ── misc components ─────────────────────────────────── */
.thread { display: grid; gap: 14px; max-height: 480px; overflow-y: auto; padding: 4px; }
.msg { display: grid; gap: 4px; max-width: 80%; } .msg small { color: var(--faint); font-size: 11.5px; }
.msg .bubble { padding: 12px 15px; border-radius: 16px; font-size: 14px; line-height: 1.6; }
.msg.from-me { justify-self: end; text-align: right; } .msg.from-me .bubble { background: var(--accent); color: #fff; border-bottom-right-radius: 5px; text-align: left; }
.msg.from-them .bubble { background: var(--surface); border: 1px solid var(--border-2); border-bottom-left-radius: 5px; }
.notif-list { list-style: none; padding: 0; margin: 0; }
.notif-list li { display: flex; gap: 14px; align-items: flex-start; padding: 14px; border-radius: 12px; transition: background .15s; }
.notif-list li.unread { background: var(--a-soft); } .notif-list li > div { flex: 1; }
.notif-list p { margin: 2px 0; font-size: 14px; color: var(--muted); }
.profile-head { display: flex; gap: 16px; align-items: center; }
.danger-zone { padding: 18px; border: 1px solid #FECACA; border-radius: 14px; background: #FFF7F7; } .danger-zone h3 { color: var(--danger); }
.plan-big { display: flex; gap: 16px; align-items: center; } .plan-big b { display: block; font: 800 1.3rem var(--font-h); color: var(--heading); }
.checkout-card { max-width: 480px; margin: 20px auto; padding: 36px; }
.invoice-sheet { max-width: 800px; margin: 0 auto; padding: 36px; }
.contact-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 22px; }
.contact-side { display: grid; gap: 12px; align-content: start; }
.info-card { display: flex; gap: 14px; align-items: center; padding: 18px; background: #fff; border: 1px solid var(--border); border-radius: 14px; color: var(--text); }
.info-card > i { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; background: var(--a-soft); color: var(--accent); font-size: 18px; }
.info-card b { display: block; color: var(--heading); } .info-card span { color: var(--muted); font-size: 14px; }
.help-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.help-item h3 { margin: 0; } .small-steps { padding-left: 1.2em; color: var(--muted); font-size: 14px; }
.search-hero { position: relative; max-width: 560px; margin: 0 auto; } .search-hero i { position: absolute; left: 16px; top: 15px; color: var(--faint); } .search-hero .input { padding-left: 42px; height: 48px; border-radius: 14px; }
.kanban { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(250px, 1fr); gap: 14px; overflow-x: auto; padding-bottom: 10px; }
.kan-col { background: var(--surface); border: 1px solid var(--border-2); border-radius: 14px; padding: 12px; min-height: 300px; }
.kan-col h4 { display: flex; justify-content: space-between; font-size: 13px; margin: 2px 4px 12px; }
.kan-col.drop-over { background: var(--a-soft); border-color: var(--a-mid); }
.kan-card { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 12px; margin-bottom: 10px; cursor: grab; box-shadow: var(--sh-1); transition: transform .15s, box-shadow .15s; }
.kan-card:hover { box-shadow: var(--sh-2); transform: translateY(-1px); } .kan-card b { display: block; color: var(--heading); font-size: 14px; } .kan-card small { color: var(--muted); }
.audio-card { display: flex; align-items: center; gap: 14px; padding: 14px; border: 1px solid var(--border-2); border-radius: 14px; background: #fff; flex-wrap: wrap; }
.audio-card audio { flex: 1; min-width: 220px; height: 40px; }
.voice-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.voice-chip { display: flex; align-items: center; gap: 10px; padding: 12px; border: 1px solid var(--border); border-radius: 12px; background: #fff; cursor: pointer; transition: all .15s; }
.voice-chip input { display: none; } .voice-chip:has(input:checked) { border-color: var(--accent); background: var(--a-soft); box-shadow: 0 0 0 3px rgba(var(--accent-rgb), .12); }
.voice-chip b { text-transform: capitalize; color: var(--heading); }
.wave { display: inline-flex; gap: 3px; align-items: center; height: 22px; } .wave i { width: 3px; border-radius: 3px; background: var(--accent); animation: wave 1s ease-in-out infinite; }
.wave i:nth-child(2) { animation-delay: .1s } .wave i:nth-child(3) { animation-delay: .2s } .wave i:nth-child(4) { animation-delay: .3s } .wave i:nth-child(5) { animation-delay: .4s }
.counter { font-size: 12px; color: var(--muted); text-align: right; }
.chat-wrap { display: grid; grid-template-columns: 260px 1fr; gap: 16px; height: calc(100vh - 140px); min-height: 520px; }
.chat-list { overflow-y: auto; } .chat-list a { display: block; padding: 10px 12px; border-radius: 10px; color: var(--text); font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-list a.active, .chat-list a:hover { background: var(--a-soft); color: var(--accent); filter: none; }
.chat-main { display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.chat-msgs { flex: 1; overflow-y: auto; padding: 20px; display: grid; gap: 16px; align-content: start; }
.chat-msg { display: flex; gap: 12px; max-width: 860px; } .chat-msg.user { flex-direction: row-reverse; margin-left: auto; }
.chat-msg .bubble { padding: 12px 16px; border-radius: 16px; background: var(--surface); border: 1px solid var(--border-2); max-width: 100%; overflow-x: auto; }
.chat-msg.user .bubble { background: var(--accent); color: #fff; border-color: transparent; }
.chat-input { display: flex; gap: 10px; padding: 14px; border-top: 1px solid var(--border); background: #fff; }
.chat-input textarea { flex: 1; resize: none; max-height: 160px; }
.typing { display: inline-flex; gap: 4px; } .typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--faint); animation: blink 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: .2s } .typing i:nth-child(3) { animation-delay: .4s }
.modal { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; background: rgba(15,23,42,.45); backdrop-filter: blur(3px); padding: 20px; }
.modal-card { width: min(420px, 100%); background: #fff; border-radius: 20px; padding: 28px; text-align: center; box-shadow: var(--sh-3); }
.modal-icon { width: 56px; height: 56px; border-radius: 50%; margin: 0 auto 12px; display: grid; place-items: center; background: #FEF2F2; color: var(--danger); font-size: 22px; }
.modal-actions { display: flex; gap: 10px; justify-content: center; margin-top: 18px; }
.toasts { position: fixed; top: 18px; right: 18px; z-index: 100; display: grid; gap: 10px; width: min(380px, calc(100% - 36px)); }
.toast { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; background: #fff; border-radius: 14px; box-shadow: var(--sh-3); border: 1px solid var(--border); border-left: 4px solid var(--info); animation: toastIn .35s var(--ease); font-size: 14px; }
.toast.success { border-left-color: var(--ok); } .toast.error { border-left-color: var(--danger); } .toast.info { border-left-color: var(--info); }
.toast i { margin-top: 2px; } .toast.success i { color: var(--ok); } .toast.error i { color: var(--danger); } .toast.info i { color: var(--info); }
.toast.out { animation: toastOut .3s forwards; }
.whatsapp-fab { position: fixed; right: 20px; bottom: 20px; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: #22C55E; color: #fff; font-size: 26px; box-shadow: 0 12px 26px -10px rgba(34,197,94,.9); z-index: 40; animation: pulseRing 2.4s infinite; }
.whatsapp-fab:hover { color: #fff; transform: scale(1.06); }

/* ── portal specifics ────────────────────────────────── */
.portal-hero { text-align: center; padding: 88px 0 56px; }
.portal-hero .lead { margin: 0 auto 28px; }
.portal-search { max-width: 620px; margin: 0 auto; position: relative; }
.portal-search i { position: absolute; left: 20px; top: 19px; color: var(--faint); }
.portal-search input { width: 100%; height: 58px; border-radius: 18px; border: 1px solid var(--border); padding: 0 20px 0 50px; font: 16px var(--font); box-shadow: var(--sh-2); outline: 0; }
.portal-search input:focus { border-color: var(--a-mid); box-shadow: 0 0 0 5px var(--a-soft), var(--sh-2); }
.app-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 16px; }
.app-card { --c: var(--accent); position: relative; display: grid; gap: 10px; padding: 22px; background: #fff; border: 1px solid var(--border); border-radius: 18px; color: var(--text); transition: transform .25s var(--ease), box-shadow .25s, border-color .25s; overflow: hidden; }
.app-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: var(--c); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.app-card:hover { transform: translateY(-4px); box-shadow: 0 22px 40px -24px color-mix(in srgb, var(--c) 60%, transparent); border-color: color-mix(in srgb, var(--c) 30%, var(--border)); color: var(--text); filter: none; }
.app-card:hover::before { transform: scaleX(1); }
.app-card h3 { margin: 4px 0 0; } .app-card p { color: var(--muted); font-size: 13.5px; margin: 0; }
.app-card .meta { display: flex; gap: 8px; align-items: center; justify-content: space-between; margin-top: 4px; font-size: 12.5px; color: var(--faint); }
.app-card .open { color: var(--c); font-weight: 600; opacity: 0; transform: translateX(-6px); transition: all .25s; }
.app-card:hover .open { opacity: 1; transform: none; }
.cat-pills { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin: 26px 0 30px; }
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); margin-top: 44px; }
.marquee-track { display: flex; gap: 14px; width: max-content; animation: marquee 50s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee .app-tile { width: 54px; height: 54px; font-size: 21px; border-radius: 16px; }

/* ── admin ───────────────────────────────────────────── */
.admin-body { --accent: #4F46E5; --accent-rgb: 79,70,229; }
.cred-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(420px, 1fr)); gap: 18px; }
.cred-card { scroll-margin-top: 90px; }
.cred-card .card-head .app-tile { width: 40px; height: 40px; }
.cred-status { font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
.cred-status.on { background: #DCFCE7; color: #15803D; } .cred-status.off { background: #F1F5F9; color: var(--muted); }
.used-by { display: flex; gap: 6px; flex-wrap: wrap; margin: 6px 0 14px; }
.used-by span { font-size: 11.5px; padding: 3px 8px; border-radius: 6px; background: var(--surface); border: 1px solid var(--border-2); }
.secret-wrap { position: relative; } .secret-wrap .input { padding-right: 44px; font-family: var(--mono); font-size: 13px; }
.secret-wrap button { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); border: 0; background: none; color: var(--faint); cursor: pointer; padding: 6px; }
.test-result { font-size: 13px; margin-top: 10px; padding: 10px 12px; border-radius: 10px; display: none; }
.test-result.show { display: block; } .test-result.ok { background: #F0FDF4; color: #166534; } .test-result.err { background: #FEF2F2; color: #991B1B; }
.switch { position: relative; width: 44px; height: 24px; flex: none; } .switch input { opacity: 0; width: 0; height: 0; }
.switch span { position: absolute; inset: 0; background: #CBD5E1; border-radius: 99px; cursor: pointer; transition: .2s; }
.switch span::before { content: ""; position: absolute; width: 18px; height: 18px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: .2s var(--ease); box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.switch input:checked + span { background: var(--accent); } .switch input:checked + span::before { transform: translateX(20px); }
.setting-row { display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: 14px 0; border-bottom: 1px solid var(--border-2); }
.setting-row:last-child { border: 0; } .setting-row b { color: var(--heading); display: block; font-size: 14px; } .setting-row small { color: var(--muted); }

/* ── animations ──────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: var(--d, 0ms); }
.reveal.in { opacity: 1; transform: none; }
.fade-in { animation: fade .4s var(--ease); }
.pop-in { animation: popIn .45s var(--ease); }
.slide-in { animation: slideIn .35s var(--ease); }
@keyframes fade { from { opacity: 0 } to { opacity: 1 } }
@keyframes popIn { from { opacity: 0; transform: scale(.96) translateY(6px) } to { opacity: 1; transform: none } }
@keyframes slideIn { from { transform: translateX(40px); opacity: 0 } to { transform: none; opacity: 1 } }
@keyframes slideUp { from { opacity: 0; transform: translateY(14px) } to { opacity: 1; transform: none } }
@keyframes drift { from { transform: translate(0, 0) scale(1) } to { transform: translate(-40px, 30px) scale(1.1) } }
@keyframes floaty { 0%, 100% { transform: translateY(0) } 50% { transform: translateY(-12px) } }
@keyframes spin { to { transform: rotate(360deg) } }
@keyframes grow { from { transform: scaleY(0) } to { transform: scaleY(1) } }
@keyframes shimmer { to { background-position: -200% 0 } }
@keyframes ripple { to { transform: scale(4); opacity: 0 } }
@keyframes toastIn { from { opacity: 0; transform: translateX(30px) } to { opacity: 1; transform: none } }
@keyframes toastOut { to { opacity: 0; transform: translateX(30px) } }
@keyframes marquee { to { transform: translateX(-50%) } }
@keyframes wave { 0%, 100% { height: 6px } 50% { height: 22px } }
@keyframes blink { 0%, 80%, 100% { opacity: .25 } 40% { opacity: 1 } }
@keyframes pulseRing { 0% { box-shadow: 0 0 0 0 rgba(34,197,94,.5) } 70% { box-shadow: 0 0 0 16px rgba(34,197,94,0) } 100% { box-shadow: 0 0 0 0 rgba(34,197,94,0) } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } .reveal { opacity: 1; transform: none; } }

/* ── dark mode (admin toggle) ────────────────────────── */
.theme-dark { --bg: #0B1120; --card: #111827; --surface: #0F172A; --border: #1F2937; --border-2: #1A2333; --heading: #F1F5F9; --text: #CBD5E1; --muted: #94A3B8; }
.theme-dark .topnav, .theme-dark .topbar { background: rgba(17,24,39,.85); }
.theme-dark .sidebar, .theme-dark .footer, .theme-dark .tool-card, .theme-dark .feature, .theme-dark .price-card, .theme-dark .step, .theme-dark .app-card, .theme-dark .stat,
.theme-dark .dropdown-menu, .theme-dark .input, .theme-dark .btn-ghost, .theme-dark .icon-btn, .theme-dark .faq details, .theme-dark .stats-strip, .theme-dark .tab, .theme-dark .eyebrow,
.theme-dark .billing-toggle, .theme-dark .modal-card, .theme-dark .toast, .theme-dark .info-card, .theme-dark .drawer-card, .theme-dark .file-list li, .theme-dark .kan-card { background: var(--card); color: var(--text); }

/* ── print ───────────────────────────────────────────── */
@media print { .sidebar, .topbar, .bottom-nav, .no-print, .toasts { display: none !important; } .panel-shell { display: block; } .panel-content { padding: 0; } .card { border: 0; box-shadow: none; } }

/* ── responsive ──────────────────────────────────────── */
.show-sm, .show-md { display: none !important; }
@media (max-width: 1100px) {
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .feature-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 960px) {
  .show-md { display: inline-grid !important; } .bottom-nav.show-md { display: flex !important; }
  .panel-shell { grid-template-columns: 1fr; }
  .sidebar { position: fixed; left: 0; top: 0; width: 280px; transform: translateX(-100%); transition: transform .3s var(--ease); box-shadow: var(--sh-3); }
  .sidebar.open { transform: none; }
  .sidebar.open + .side-overlay { display: block; position: fixed; inset: 0; background: rgba(15,23,42,.4); z-index: 39; }
  .panel-content { padding: 18px 16px 90px; } .topbar { padding: 0 14px; }
  .hero-inner, .tool-layout, .grid-main, .contact-grid, .auth-wrap, .ce-wrap, .playground, .chat-wrap, .js-tool .tool-layout { grid-template-columns: 1fr; }
  .auth-art { display: none; } .tool-output { position: static; }
  .hero { padding: 40px 0; } .hero-visual { max-width: 520px; }
  .chat-wrap { height: auto; } .chat-list { max-height: 180px; }
}
@media (max-width: 720px) {
  .show-sm { display: inline-grid !important; } .hide-sm { display: none !important; }
  .nav-links { position: fixed; top: var(--nav-h); left: 0; right: 0; flex-direction: column; align-items: stretch; background: #fff; padding: 12px; border-bottom: 1px solid var(--border); box-shadow: var(--sh-3); display: none; }
  .nav-links.open { display: flex; } .dropdown-menu.mega { position: static; grid-template-columns: 1fr; min-width: 0; box-shadow: none; border: 0; }
  .nav-inner { gap: 10px; } .brand small { display: none; }
  .section { padding: 56px 0; } .stats-strip { grid-template-columns: 1fr 1fr; gap: 16px; } .stats-strip > div:nth-child(2) { border: 0; }
  .feature-grid, .grid-2, .grid-3, .form-grid, .split, .gen-grid, .footer-grid, .cred-grid { grid-template-columns: 1fr; } .span-2 { grid-column: auto; }
  .stat-grid { grid-template-columns: 1fr 1fr; gap: 10px; } .stat { padding: 14px; flex-direction: column; align-items: flex-start; gap: 8px; }
  .launcher-menu { position: fixed; left: 10px; right: 10px; width: auto; top: 70px; }
  .cta-band { padding: 28px; } .bars { gap: 4px; } .otp-inputs input { height: 50px; }
  .card { padding: 18px; } .container { width: calc(100% - 28px); }
}

/* ── v2 additions ─────────────────────────────────────── */
.announce { position: relative; z-index: 60; display: flex; justify-content: center; align-items: center; gap: 10px; padding: 9px 44px; background: var(--c); color: #fff; font-size: 13.5px; font-weight: 500; text-align: center; }
.announce a { color: #fff; font-weight: 700; text-decoration: underline; }
.announce button { position: absolute; right: 12px; background: none; border: 0; color: #fff; font-size: 20px; cursor: pointer; opacity: .8; }
.or-line { display: flex; align-items: center; gap: 12px; color: var(--faint); font-size: 12px; margin: 16px 0; }
.or-line::before, .or-line::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.newsletter { display: flex; gap: 8px; max-width: 340px; }
.meter-warn span { background: linear-gradient(90deg, #F59E0B, #DC2626); }
.fav-dot { position: absolute; top: -4px; right: -4px; font-style: normal; font-size: 10px; color: #F59E0B; }
.launcher-grid .app-tile { position: relative; }
.logo-img { height: 36px; width: auto; } .logo-img.xs { height: 22px; }
.ad-slot { margin: 20px auto; text-align: center; max-width: 970px; }
.bottom-nav.portal-bottom { display: none; }
@media (max-width: 720px) { .bottom-nav.portal-bottom.show-sm { display: flex !important; } body.portal { padding-bottom: 62px; } }
.fav-btn { position: absolute; top: 14px; right: 14px; background: #fff; border: 1px solid var(--border); width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; color: var(--faint); cursor: pointer; z-index: 2; }
.fav-btn.on { color: #F59E0B; border-color: #FDE68A; }
.steps-wizard { display: flex; gap: 8px; margin-bottom: 18px; } .steps-wizard span { flex: 1; padding: 8px 12px; border-radius: 10px; background: var(--surface); font-size: 13px; color: var(--muted); font-weight: 600; }
.steps-wizard span.on { background: var(--a-soft); color: var(--accent); }
.cert { max-width: 860px; margin: auto; padding: 50px; text-align: center; border: 10px double var(--accent); border-radius: 18px; background: #fff; }
.cert h1 { font-family: Georgia, serif; font-size: 2.4rem; } .cert .name { font: 700 2rem Georgia, serif; color: var(--accent); margin: 18px 0; }
.teleprompter { position: fixed; inset: 0; z-index: 95; background: #000; color: #fff; font-size: 42px; line-height: 1.6; padding: 30vh 10vw; overflow: hidden; }
.teleprompter .tp-text { transition: transform .1s linear; } .teleprompter .tp-bar { position: fixed; top: 12px; right: 12px; display: flex; gap: 8px; }
.cue-row { display: grid; grid-template-columns: 110px 110px 1fr 36px; gap: 8px; align-items: center; margin-bottom: 6px; }
.pdf-pages { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin-top: 14px; }
.pdf-page { position: relative; border: 1px solid var(--border); border-radius: 10px; background: #fff; padding: 6px; text-align: center; font-size: 12px; }
.pdf-page canvas { width: 100%; height: auto; border-radius: 6px; }
.edit-stage { position: relative; display: inline-block; border: 1px solid var(--border); box-shadow: var(--sh-2); }
.edit-stage canvas { display: block; max-width: 100%; }
.edit-item { position: absolute; cursor: move; border: 1px dashed var(--accent); padding: 2px 4px; background: rgba(255,255,255,.4); white-space: nowrap; }
.sign-pad { border: 2px dashed var(--border); border-radius: 12px; background: #fff; touch-action: none; width: 100%; height: 180px; }
.collage-preview canvas { max-width: 100%; border-radius: 12px; box-shadow: var(--sh-2); }
.kanban-col-title { display: flex; justify-content: space-between; }

/* ==========================================================================
   Components — part 2 (portal, account, tools, software-specific widgets)
   ========================================================================== */
.d-block { display: block; } .grow { flex: 1; min-width: 0; } .inline { display: inline; } .stretch { display: grid; gap: 4px; justify-items: center; text-align: center; color: inherit; }
.ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; max-width: 100%; }
.text-danger { color: var(--danger); } .text-warn { color: #B45309; } .mb-1 { margin-bottom: 6px; } .mb-4 { margin-bottom: 32px; }
.row-center { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; } .row-flex { display: inline-flex; align-items: center; gap: 10px; color: inherit; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.allow-copy { user-select: text !important; -webkit-user-select: text !important; }
.req { color: var(--danger); margin-left: 2px; }
.alert-warn { background: #FFFBEB; color: #92400E; border: 1px solid #FDE68A; }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; background: #fff; border: 1px solid var(--border); color: var(--heading); font-size: 13px; transition: all .18s var(--ease); }
.chip:hover { border-color: var(--a-mid); background: var(--a-soft); transform: translateY(-1px); }
.chip .link-btn { color: inherit; font-weight: 500; }
.inline-form { display: flex; align-items: center; gap: 8px; }
.input-group { display: flex; } .input-group > .input { border-radius: var(--r-sm) 0 0 var(--r-sm); } .input-group > :last-child { border-radius: 0 var(--r-sm) var(--r-sm) 0; border-left: 0; display: grid; place-items: center; padding: 0 12px; background: var(--surface); border: 1px solid var(--border); color: var(--muted); font-size: 13px; }
.segmented { display: inline-flex; padding: 4px; gap: 4px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; flex-wrap: wrap; }
.segmented > a, .segmented > button { border: 0; background: none; padding: 7px 14px; border-radius: 9px; color: var(--muted); font: 600 13px var(--font); cursor: pointer; }
.segmented > .active { background: #fff; color: var(--heading); box-shadow: var(--sh-1); }
.segmented.sm > a, .segmented.sm > button { padding: 5px 10px; font-size: 12.5px; }
.segmented > label { flex: 1; min-width: 150px; display: grid; gap: 2px; padding: 10px 12px; border-radius: 10px; cursor: pointer; border: 1px solid transparent; }
.segmented > label small { color: var(--muted); font-size: 12px; } .segmented > label input { display: none; }
.segmented > label:has(input:checked) { background: #fff; border-color: var(--a-mid); box-shadow: var(--sh-1); }
.tab-panel { animation: slideUp .3s var(--ease); }
.timeline { list-style: none; margin: 0; padding: 0 0 0 8px; border-left: 2px solid var(--border-2); }
.timeline li { position: relative; display: flex; gap: 12px; padding: 0 0 16px 18px; }
.timeline li > i { position: absolute; left: -15px; top: 0; width: 26px; height: 26px; border-radius: 50%; background: #fff; border: 2px solid var(--border); display: grid; place-items: center; font-size: 11px; color: var(--accent); }
.timeline li.warn > i { color: var(--danger); border-color: #FECACA; } .timeline li b { display: block; color: var(--heading); font-size: 14px; }
.progress-line, .meter.indeterminate { height: 6px; border-radius: 9px; background: var(--border-2); overflow: hidden; margin-top: 12px; }
.progress-line > span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--accent), #7C3AED); transition: width .25s var(--ease); }
.meter.indeterminate > span { display: block; width: 35%; height: 100%; background: var(--accent); animation: indet 1.3s ease-in-out infinite; }
@keyframes indet { 0% { margin-left: -35%; } 100% { margin-left: 100%; } }
.job-line { display: flex; align-items: center; gap: 8px; font-weight: 600; color: var(--heading); } .job-line.ok { color: var(--ok); } .job-line.bad { color: var(--danger); }
.result-media { width: 100%; max-height: 520px; object-fit: contain; border-radius: 12px; background: #0F172A; margin-top: 10px; }
.code-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; } .code-grid code { text-align: center; padding: 6px; font-size: 13px; }

/* portal */
.hero-inner { position: relative; z-index: 1; } .hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin: 18px 0 8px; }
.portal-search { position: relative; } .portal-search .btn { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); height: 36px; }
.banner-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.banner-card { min-height: 120px; padding: 22px; border-radius: var(--r); color: #fff; background: linear-gradient(135deg, var(--primary), #7C3AED) center/cover; display: flex; flex-direction: column; justify-content: flex-end; box-shadow: var(--sh-2); transition: transform .25s var(--ease); position: relative; overflow: hidden; }
.banner-card::before { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(15,23,42,.55), transparent 70%); }
.banner-card > * { position: relative; } .banner-card b { font: 800 19px var(--font-h); } .banner-card span { opacity: .85; font-size: 14px; } .banner-card:hover { color: #fff; transform: translateY(-3px); filter: none; }
.stats-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; background: #fff; border: 1px solid var(--border); border-radius: var(--r); box-shadow: var(--sh-1); }
.stats-row > div { padding: 22px; text-align: center; border-left: 1px solid var(--border-2); } .stats-row > div:first-child { border-left: 0; }
.stats-row b { display: block; font: 800 clamp(1.15rem, 2.2vw, 1.6rem) var(--font-h); color: var(--heading); } .stats-row span { color: var(--muted); font-size: 13px; }
.app-card.big p { min-height: 48px; } .mini-list { list-style: none; padding: 0; margin: 10px 0 14px; display: grid; gap: 4px; font-size: 13px; color: var(--text); } .mini-list i { color: var(--ok); margin-right: 4px; }
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: s; }
.step-card { position: relative; padding: 26px; background: #fff; border: 1px solid var(--border); border-radius: var(--r); box-shadow: var(--sh-1); transition: transform .25s var(--ease), box-shadow .25s; }
.step-card:hover { transform: translateY(-4px); box-shadow: var(--sh-2); }
.step-num { position: absolute; top: 16px; right: 18px; font: 800 44px var(--font-h); color: var(--a-soft); line-height: 1; }
.bundle-card { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 34px; border-radius: 22px; color: #fff; background: radial-gradient(120% 140% at 0% 0%, #6366F1 0%, #4338CA 45%, #1E1B4B 100%); box-shadow: var(--sh-3); position: relative; overflow: hidden; }
.bundle-card::after { content: ""; position: absolute; width: 340px; height: 340px; right: -80px; top: -120px; border-radius: 50%; background: radial-gradient(circle, rgba(236,72,153,.45), transparent 65%); }
.bundle-card > * { position: relative; z-index: 1; } .bundle-card h2 { color: #fff; } .bundle-card p { opacity: .85; margin: 0; }
.bundle-card.sm { padding: 20px 24px; border-radius: var(--r); } .bundle-card.sm b { font-size: 16px; }
.bundle-tiles { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; } .bundle-tiles .app-tile { background: rgba(255,255,255,.14); color: #fff; }
.bundle-tiles .more { display: grid; place-items: center; padding: 0 10px; border-radius: 10px; background: rgba(255,255,255,.14); font-weight: 700; font-size: 13px; }
.eyebrow.light { background: rgba(255,255,255,.15); color: #fff; }
.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.testi { margin: 0; padding: 24px; background: #fff; border: 1px solid var(--border); border-radius: var(--r); box-shadow: var(--sh-1); display: flex; flex-direction: column; gap: 14px; }
.testi blockquote { margin: 0; color: var(--heading); font-size: 15px; line-height: 1.65; flex: 1; } .testi figcaption { display: flex; align-items: center; gap: 10px; } .testi figcaption small { display: block; color: var(--muted); }
.stars { color: #F59E0B; font-size: 13px; letter-spacing: 2px; }
.state-box { text-align: center; padding: 40px 20px; color: var(--muted); } .state-box i { font-size: 34px; margin-bottom: 10px; color: var(--faint); }
.app-card-wrap { position: relative; } .app-card-wrap > .app-card { height: 100%; }
.fav-form { position: absolute; top: 14px; right: 14px; } .app-card-wrap .fav-form { top: 16px; right: 60px; }
.fav-btn { width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--border); background: #fff; color: var(--faint); cursor: pointer; display: grid; place-items: center; transition: transform .2s var(--ease), color .2s; }
.fav-btn:hover { transform: scale(1.1); color: #E11D48; } .fav-btn.on { color: #E11D48; border-color: #FECDD3; background: #FFF1F2; }
.pricing-table td { vertical-align: middle; } .app-tile.xs { width: 28px; height: 28px; font-size: 12px; border-radius: 8px; }
.result-list { display: grid; gap: 8px; }
.result-row { display: flex; align-items: center; gap: 14px; padding: 12px 16px; background: #fff; border: 1px solid var(--border); border-radius: 12px; color: inherit; transition: border-color .2s, transform .2s var(--ease); }
.result-row:hover { border-color: var(--a-mid); transform: translateX(3px); filter: none; } .result-row > span { flex: 1; min-width: 0; display: grid; } .result-row b { color: var(--heading); } .result-row small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: start; }
.value-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.value { display: grid; gap: 6px; padding: 18px; background: #fff; border: 1px solid var(--border); border-radius: var(--r); box-shadow: var(--sh-1); } .value b { color: var(--heading); }
.cat-overview { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; }
.cat-card { display: grid; gap: 8px; padding: 20px; background: #fff; border: 1px solid var(--border); border-radius: var(--r); color: inherit; transition: transform .25s var(--ease), box-shadow .25s; }
.cat-card:hover { transform: translateY(-3px); box-shadow: var(--sh-2); filter: none; } .cat-card b { color: var(--heading); }
.contact-tile { display: flex; align-items: center; gap: 14px; } .contact-tile small { display: block; }
.big-404 { display: flex; justify-content: center; align-items: center; gap: 10px; font: 800 clamp(5rem, 16vw, 9rem)/1 var(--font-h); color: var(--heading); margin-bottom: 10px; }
.spin-o { width: .8em; height: .8em; border-radius: 50%; background: linear-gradient(135deg, var(--primary), #EC4899); color: #fff; display: grid; place-items: center; font-size: .45em; animation: spin 6s linear infinite; }

.page-hero.sm { padding: 48px 0 24px; } .prose.card { padding: 32px; }
.prose h2 { font-size: 1.3rem; margin-top: 1.4em; } .prose ul { padding-left: 1.2em; }

/* auth extras */
.auth-wrap.single { grid-template-columns: 1fr; min-height: 100vh; background: radial-gradient(80% 60% at 50% 0%, var(--a-soft), transparent), var(--bg); }
.auth-wrap.single .auth-main { padding: 40px 16px; }
.consent-icons { display: flex; align-items: center; justify-content: center; gap: 14px; font-size: 18px; }
.checks.left { text-align: left; max-width: 340px; margin-inline: auto; } .checks.danger i.fa-xmark { color: var(--danger); }
.otp-input { letter-spacing: .5em; text-align: center; font: 700 22px var(--mono); }
.auth-center { min-height: 100vh; display: grid; place-items: center; padding: 20px; }

/* account dashboard */
.account-shell { display: grid; grid-template-columns: 250px 1fr; gap: 26px; padding: 30px 0 60px; align-items: start; }
.account-side { position: sticky; top: calc(var(--nav-h) + 16px); background: #fff; border: 1px solid var(--border); border-radius: var(--r); padding: 16px; box-shadow: var(--sh-1); }
.account-user { display: flex; align-items: center; gap: 12px; padding: 4px 4px 14px; border-bottom: 1px solid var(--border-2); margin-bottom: 8px; } .account-user > div { min-width: 0; } .account-user small { display: block; overflow: hidden; text-overflow: ellipsis; }
.account-nav { display: grid; gap: 2px; }
.account-nav a { display: flex; align-items: center; gap: 11px; padding: 9px 12px; border-radius: 10px; color: var(--text); font-weight: 500; font-size: 14px; transition: background .15s, color .15s; }
.account-nav a i { width: 18px; text-align: center; color: var(--faint); } .account-nav a span { flex: 1; }
.account-nav a:hover { background: var(--surface); color: var(--heading); filter: none; } .account-nav a.active { background: var(--a-soft); color: var(--accent); } .account-nav a.active i { color: var(--accent); }
.account-nav a.danger { color: var(--danger); } .account-nav a.danger i { color: #FCA5A5; }
.count { font-style: normal; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--accent); color: #fff; font-size: 11px; font-weight: 700; display: grid; place-items: center; }
.account-main { min-width: 0; } .page-title { margin-bottom: 18px; } .page-title h1 { font-size: 1.6rem; margin: 0; }
.kpi-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.launch-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.launch-tile { position: relative; display: grid; justify-items: center; gap: 6px; text-align: center; padding: 18px 10px; border-radius: 14px; border: 1px solid var(--border); background: #fff; color: inherit; transition: transform .2s var(--ease), border-color .2s, box-shadow .2s; }
.launch-tile:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--c) 35%, #fff); box-shadow: 0 12px 26px -16px var(--c); filter: none; }
.launch-tile b { color: var(--heading); font-size: 14px; } .launch-tile small { font-size: 12px; } .launch-tile .fav-dot { position: absolute; top: 10px; left: 10px; color: #E11D48; font-size: 11px; }
.launch-tile .fav-form { top: 8px; right: 8px; } .launch-tile .fav-btn { width: 26px; height: 26px; font-size: 11px; }
.usage-row { padding: 8px 0; border-bottom: 1px dashed var(--border-2); } .usage-row:last-child { border: 0; } .usage-row .meter { margin-top: 6px; }
.session-list { display: grid; gap: 10px; }
.session-row { display: flex; align-items: center; gap: 14px; padding: 14px; border: 1px solid var(--border); border-radius: 12px; } .session-row > div { flex: 1; min-width: 0; }
.session-row.current { border-color: var(--a-mid); background: var(--a-soft); }
.method-row { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--border-2); } .method-row:last-child { border: 0; } .method-row > div { flex: 1; }
.danger-card { border-color: #FECACA; } .tool-icon.danger { background: #FEF2F2; color: var(--danger); }

/* in-browser tools: PDF editor & signature */
.pdf-editor { display: grid; grid-template-columns: 300px 1fr; gap: 18px; margin-top: 16px; }
.pe-side { align-self: start; position: sticky; top: calc(var(--nav-h) + 12px); }
.pe-stage { background: #E2E8F0; border-radius: 14px; padding: 16px; overflow: auto; max-height: 80vh; display: flex; justify-content: center; }
.pe-page { position: relative; box-shadow: 0 10px 30px -10px rgba(15,23,42,.4); background: #fff; } .pe-page canvas { display: block; }
.pe-layer { position: absolute; inset: 0; cursor: crosshair; }
.pe-item { position: absolute; cursor: move; outline: 1px dashed transparent; touch-action: none; user-select: none; background-size: contain; background-repeat: no-repeat; line-height: 1.1; white-space: nowrap; font-family: Helvetica, Arial, sans-serif; }
.pe-item.sel, .pe-item:hover { outline-color: var(--accent); }
.pe-rect { border: 2px solid; } .pe-white { background: #fff; outline: 1px dashed #CBD5E1; }
.pe-handle { position: absolute; right: -6px; bottom: -6px; width: 12px; height: 12px; border-radius: 3px; background: var(--accent); cursor: nwse-resize; opacity: 0; } .pe-item.sel .pe-handle { opacity: 1; }
.pe-items { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; max-height: 180px; overflow: auto; }
.pe-items li { display: flex; align-items: center; justify-content: space-between; gap: 6px; font-size: 13px; padding: 6px 8px; border-radius: 8px; background: var(--surface); }
.sig-pad { width: 100%; height: 150px; border: 2px dashed var(--border); border-radius: 12px; background: #fff; touch-action: none; cursor: crosshair; }
.layout-picks, .symbol-picks { display: flex; flex-wrap: wrap; gap: 8px; }
.layout-pick, .symbol-pick { width: 54px; height: 54px; padding: 7px; border-radius: 12px; border: 2px solid var(--border); background: #fff; cursor: pointer; color: var(--muted); transition: all .15s; }
.layout-pick svg rect { fill: var(--border); } .layout-pick.active, .symbol-pick.active { border-color: var(--accent); color: var(--accent); background: var(--a-soft); } .layout-pick.active svg rect { fill: var(--accent); opacity: .7; }
.logo-stage { min-height: 220px; display: grid; place-items: center; padding: 24px; background: repeating-conic-gradient(#F1F5F9 0% 25%, #fff 0% 50%) 50% / 20px 20px; } .logo-stage svg { max-width: 100%; height: auto; max-height: 220px; }
.logo-variants { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.logo-variant { border: 1px solid var(--border); background: #fff; border-radius: 12px; padding: 10px; cursor: pointer; height: 90px; display: grid; place-items: center; transition: border-color .15s; } .logo-variant:hover { border-color: var(--accent); } .logo-variant svg { max-height: 70px; width: auto; max-width: 100%; }
.bc-canvas { width: 100%; height: auto; border-radius: 10px; box-shadow: 0 14px 30px -14px rgba(15,23,42,.35); }
.qd-frame { --c: var(--accent); display: inline-grid; justify-items: center; gap: 10px; padding: 16px; background: #fff; border-radius: 22px; box-shadow: var(--sh-2); }
.qd-frame b { display: block; width: 100%; text-align: center; padding: 10px; border-radius: 999px; background: var(--c); color: #fff; font: 800 15px var(--font-h); letter-spacing: .08em; }
.ab-compare { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 14px 0; } .ab-compare audio { width: 100%; }
.crud-layout { display: grid; grid-template-columns: 1fr 360px; gap: 18px; align-items: start; } .tool-form { display: grid; gap: 14px; }

/* uploads & files */
.upload-row { display: grid; grid-template-columns: 1fr auto 120px 46px; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; background: var(--surface); margin-top: 6px; font-size: 13px; }
.upload-row .fname { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .upload-row .meter { margin: 0; } .upload-row.done .pct { color: var(--ok); } .upload-row.failed { background: #FEF2F2; } .upload-row.failed .pct { color: var(--danger); }
.upload-queue { display: grid; gap: 6px; margin-bottom: 12px; } .q-item { display: flex; gap: 10px; align-items: center; font-size: 13px; }
.drive { position: relative; } .drop-overlay { position: absolute; inset: 0; z-index: 5; border: 3px dashed var(--accent); border-radius: var(--r); background: rgba(var(--accent-rgb), .08); display: grid; place-items: center; font: 700 18px var(--font-h); color: var(--accent); pointer-events: none; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 14px; } .crumbs a { color: var(--muted); } .crumbs a:last-child { color: var(--heading); font-weight: 600; }
.folder-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; margin-bottom: 14px; }
.folder-card { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 1px solid var(--border); border-radius: 12px; background: #fff; color: var(--heading); font-weight: 600; transition: border-color .15s, transform .15s; } .folder-card i { color: #F59E0B; font-size: 20px; } .folder-card:hover { border-color: var(--a-mid); transform: translateY(-2px); filter: none; }
.drive-table td { vertical-align: middle; } .drive-row:hover { background: var(--surface); } .file-name { display: flex; align-items: center; gap: 10px; min-width: 0; } .file-thumb { width: 38px; height: 38px; border-radius: 8px; object-fit: cover; background: var(--surface); display: grid; place-items: center; color: var(--muted); flex: none; }
.preview-modal .modal-card { max-width: 900px; width: 95vw; } .preview-body { max-height: 75vh; overflow: auto; } .preview-body img, .preview-body video { margin: auto; max-height: 70vh; } .preview-body iframe { width: 100%; height: 70vh; border: 0; }
.stack-bar { display: flex; height: 14px; border-radius: 9px; overflow: hidden; background: var(--border-2); } .stack-bar span { height: 100%; }
.legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: 13px; } .legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; }
.doc-toolbar { display: flex; flex-wrap: wrap; gap: 4px; padding: 8px; border: 1px solid var(--border); border-bottom: 0; border-radius: 12px 12px 0 0; background: var(--surface); position: sticky; top: var(--nav-h); z-index: 2; }
.doc-editor { border: 1px solid var(--border); border-radius: 0 0 12px 12px; background: #E2E8F0; padding: 24px; } .doc-page { max-width: 800px; min-height: 900px; margin: auto; background: #fff; padding: 64px 72px; box-shadow: var(--sh-2); outline: none; line-height: 1.7; }

/* media grids, galleries & templates */
.media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.media-item { position: relative; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; background: #fff; } .media-item img { width: 100%; aspect-ratio: 1; object-fit: cover; } .media-item .file-thumb { width: 100%; height: auto; aspect-ratio: 1; border-radius: 0; font-size: 28px; }
.masonry { columns: 4 240px; column-gap: 14px; } .masonry-item { break-inside: avoid; margin-bottom: 14px; border-radius: 14px; overflow: hidden; position: relative; background: #fff; box-shadow: var(--sh-1); }
.masonry-item img { width: 100%; height: auto; transition: transform .5s var(--ease); } .masonry-item:hover img { transform: scale(1.04); }
.tpl-picker { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.tpl-option, .tpl-card { display: block; border: 2px solid var(--border); border-radius: 14px; overflow: hidden; background: #fff; cursor: pointer; transition: border-color .2s, transform .2s var(--ease), box-shadow .2s; color: inherit; }
.tpl-option:hover, .tpl-card:hover { transform: translateY(-3px); box-shadow: var(--sh-2); filter: none; } .tpl-option:has(input:checked) { border-color: var(--accent); box-shadow: 0 0 0 4px var(--a-soft); } .tpl-option input { display: none; }
.tpl-thumb, .ds-thumb, .resume-thumb { position: relative; aspect-ratio: 4/3; overflow: hidden; background: var(--surface); }
.tpl-thumb iframe { width: 400%; height: 400%; transform: scale(.25); transform-origin: 0 0; border: 0; pointer-events: none; }
.ds-thumb img, .resume-thumb img { width: 100%; height: 100%; object-fit: cover; } .resume-thumb { aspect-ratio: 1/1.3; } .resume-paper { background: #fff; box-shadow: var(--sh-2); border-radius: 4px; }
.theme-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 12px; }
.theme-tile { display: grid; gap: 6px; padding: 8px; border: 2px solid var(--border); border-radius: 14px; cursor: pointer; text-align: center; font-size: 13px; } .theme-tile:has(input:checked) { border-color: var(--accent); } .theme-tile input { display: none; }
.theme-dot { width: 18px; height: 18px; border-radius: 50%; display: inline-block; border: 2px solid #fff; box-shadow: 0 0 0 1px var(--border); }
.swatch { display: inline-block; width: 16px; height: 16px; border-radius: 4px; vertical-align: middle; border: 1px solid var(--border); }
.compare { position: relative; overflow: hidden; border-radius: 14px; user-select: none; } .compare img { width: 100%; display: block; } .compare-after { position: absolute; inset: 0; overflow: hidden; border-right: 3px solid #fff; } .compare-after img { height: 100%; width: auto; max-width: none; }
.mask-editor { display: grid; grid-template-columns: 1fr 280px; gap: 16px; } .mask-stage { position: relative; background: repeating-conic-gradient(#F1F5F9 0% 25%, #fff 0% 50%) 50% / 18px 18px; border-radius: 14px; overflow: hidden; display: grid; place-items: center; } .mask-canvas { position: absolute; inset: 0; margin: auto; cursor: crosshair; opacity: .55; }
.thumb-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px; } .thumb { border: 1px solid var(--border); border-radius: 8px; overflow: hidden; background: #fff; text-align: center; font-size: 12px; } .thumb canvas, .thumb img { width: 100%; }
.progress { height: 8px; border-radius: 9px; background: var(--border-2); overflow: hidden; } .progress > span { display: block; height: 100%; background: var(--accent); transition: width .3s; }

/* design studio editor */
.ce-app { display: grid; grid-template-rows: auto 1fr; height: calc(100vh - 140px); min-height: 560px; border: 1px solid var(--border); border-radius: var(--r); overflow: hidden; background: #fff; }
.ce-top { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-bottom: 1px solid var(--border); flex-wrap: wrap; } .ce-body { display: grid; grid-template-columns: 240px 1fr 260px; min-height: 0; }
.ce-left, .ce-right { overflow: auto; padding: 12px; border-right: 1px solid var(--border); background: var(--surface); } .ce-right { border-right: 0; border-left: 1px solid var(--border); }
.ce-stage-wrap { overflow: auto; display: grid; place-items: center; background: #E2E8F0; padding: 24px; } .ce-add { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ce-layers { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; } .ce-layers li { padding: 6px 8px; border-radius: 8px; font-size: 13px; cursor: pointer; display: flex; gap: 8px; align-items: center; } .ce-layers li.sel, .ce-layers li:hover { background: var(--a-soft); }
.swatches { display: flex; flex-wrap: wrap; gap: 6px; } .swatches button { width: 24px; height: 24px; border-radius: 6px; border: 1px solid var(--border); cursor: pointer; }

/* website builder editor */
.wb-editor { position: fixed; inset: 0; z-index: 60; display: grid; grid-template-rows: auto 1fr; background: #fff; }
.wb-bar { display: flex; align-items: center; gap: 10px; padding: 8px 14px; border-bottom: 1px solid var(--border); background: #0F172A; color: #fff; flex-wrap: wrap; } .wb-bar .btn-ghost { color: #fff; border-color: rgba(255,255,255,.2); } .wb-bar select { max-width: 200px; }
.wb-visual, .wb-code { min-height: 0; } .wb-code { display: grid; grid-template-columns: 1fr 1fr; } .pg-editors { display: grid; grid-template-rows: auto 1fr; min-height: 0; } .pg-editors textarea { height: 100%; border-radius: 0; resize: none; }
.wb-preview-wrap iframe { width: 100%; height: 100%; border: 0; } .wb-fallback { padding: 40px; text-align: center; }
.site-switch { position: fixed; bottom: 14px; right: 14px; z-index: 9; }
.serp-preview { padding: 14px 16px; border: 1px solid var(--border); border-radius: 12px; background: #fff; font-family: Arial, sans-serif; } .serp-url { color: #188038; font-size: 13px; } .serp-title { color: #1a0dab; font-size: 19px; margin: 2px 0; } .serp-desc { color: #4d5156; font-size: 13.5px; }
.handle { cursor: grab; color: var(--faint); } .sortable-list > * { cursor: grab; } .sortable-list > .dragging { opacity: .5; }
.inbox { display: grid; grid-template-columns: 320px 1fr; border: 1px solid var(--border); border-radius: var(--r); overflow: hidden; background: #fff; min-height: 460px; }

/* writer, chat, video, voice */
.wizard-steps { display: flex; gap: 0; margin-bottom: 20px; counter-reset: w; }
.wizard-steps > * { flex: 1; position: relative; padding: 10px 12px 10px 44px; color: var(--muted); font-weight: 600; font-size: 14px; border-bottom: 3px solid var(--border); }
.wizard-steps > *::before { counter-increment: w; content: counter(w); position: absolute; left: 10px; top: 8px; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--border); font-size: 13px; }
.wizard-steps > .active, .wizard-steps > .done { color: var(--heading); border-color: var(--accent); } .wizard-steps > .active::before, .wizard-steps > .done::before { background: var(--accent); color: #fff; border-color: var(--accent); }
.input-title { font: 700 1.3rem var(--font-h); border: 0; border-bottom: 2px solid var(--border); border-radius: 0; padding: 6px 0; background: none; width: 100%; } .input-title:focus { outline: none; border-color: var(--accent); }
.example-bubble { padding: 10px 14px; border-radius: 14px 14px 14px 4px; background: var(--surface); border: 1px solid var(--border-2); font-size: 13.5px; }
.inline-rename { border: 1px solid transparent; background: none; font: inherit; padding: 2px 6px; border-radius: 6px; } .inline-rename:focus { border-color: var(--a-mid); background: #fff; outline: none; }
.scene-board { display: grid; gap: 12px; } .scene { display: grid; grid-template-columns: 40px 1fr 160px; gap: 12px; padding: 14px; border: 1px solid var(--border); border-radius: 14px; background: #fff; align-items: start; }
.render-progress { display: grid; justify-items: center; gap: 10px; padding: 30px; text-align: center; } .spinner-ring { width: 54px; height: 54px; border-radius: 50%; border: 4px solid var(--a-soft); border-top-color: var(--accent); animation: spin 1s linear infinite; }
.lib-item { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 12px; border: 1px solid var(--border); border-radius: 12px; background: #fff; } .lib-item audio { width: 100%; height: 36px; }
.cue-table input { width: 100%; } .cue-table td { padding: 4px; }

/* forms, CRM, learning, agency, SEO, api */
.form-card { max-width: 720px; margin: 30px auto; background: #fff; border-radius: 18px; box-shadow: var(--sh-2); padding: 32px; border-top: 6px solid var(--accent); }
.form-q { padding: 16px 0; border-bottom: 1px solid var(--border-2); } .form-q:last-of-type { border: 0; } .choice-list { display: grid; gap: 8px; }
.choice { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border: 1px solid var(--border); border-radius: 10px; cursor: pointer; transition: border-color .15s, background .15s; } .choice:has(input:checked) { border-color: var(--accent); background: var(--a-soft); }
.nps-scale { display: grid; grid-template-columns: repeat(11, 1fr); gap: 4px; } .nps-scale label { text-align: center; padding: 8px 0; border: 1px solid var(--border); border-radius: 8px; cursor: pointer; font-weight: 600; } .nps-scale label:has(input:checked) { background: var(--accent); color: #fff; border-color: var(--accent); } .nps-scale input { display: none; }
.star-rating { display: inline-flex; flex-direction: row-reverse; gap: 4px; font-size: 26px; } .star-rating input { display: none; } .star-rating label { color: #CBD5E1; cursor: pointer; } .star-rating label:hover, .star-rating label:hover ~ label, .star-rating input:checked ~ label { color: #F59E0B; }
.fb-field { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: start; padding: 12px; border: 1px solid var(--border); border-radius: 12px; background: #fff; margin-bottom: 8px; } .fb-opts { grid-column: 2 / -1; } .fb-req { font-size: 12px; }
.answer-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; max-height: 260px; overflow: auto; } .answer-list li { padding: 8px 10px; background: var(--surface); border-radius: 8px; font-size: 13.5px; }
.lesson-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; } .lesson-list li a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; color: inherit; } .lesson-list .num { width: 26px; height: 26px; border-radius: 50%; background: var(--a-soft); color: var(--accent); display: grid; place-items: center; font-size: 12px; font-weight: 700; }
.comment { display: flex; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--border-2); }
.prompt-card { padding: 16px; border: 1px solid var(--border); border-radius: 14px; background: #fff; display: grid; gap: 8px; }
.certificate { position: relative; max-width: 900px; margin: auto; aspect-ratio: 1.414; background: #fff; padding: 22px; box-shadow: var(--sh-3); }
.cert-inner { height: 100%; border: 3px double #B45309; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 30px; background: radial-gradient(circle at 50% 0, #FFFBEB, #fff 60%); }
.cert-kicker { letter-spacing: .3em; text-transform: uppercase; color: #B45309; font-weight: 700; font-size: 13px; } .cert-seal { width: 90px; height: 90px; border-radius: 50%; background: radial-gradient(circle, #F59E0B, #B45309); color: #fff; display: grid; place-items: center; font-size: 34px; margin-top: 18px; box-shadow: 0 0 0 6px #FEF3C7; }
.cert-foot { display: flex; justify-content: space-between; width: 100%; margin-top: auto; font-size: 13px; color: var(--muted); }
.booking { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; } .booking-cal, .booking-form { background: #fff; border: 1px solid var(--border); border-radius: var(--r); padding: 20px; }
.day-strip { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; } .day { flex: none; width: 70px; text-align: center; padding: 10px 0; border: 1px solid var(--border); border-radius: 12px; cursor: pointer; } .day:has(input:checked), .day.active { background: var(--accent); color: #fff; border-color: var(--accent); } .day input { display: none; }
.slot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(86px, 1fr)); gap: 8px; margin-top: 14px; } .slot { text-align: center; padding: 8px 0; border: 1px solid var(--border); border-radius: 10px; cursor: pointer; font-weight: 600; font-size: 13.5px; } .slot:has(input:checked) { background: var(--a-soft); border-color: var(--accent); color: var(--accent); } .slot input { display: none; }
.two-col { display: grid; grid-template-columns: 1.4fr 1fr; gap: 28px; align-items: start; } .sticky-side { position: sticky; top: calc(var(--nav-h) + 16px); }
.process-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; counter-reset: p; } .process-steps > * { padding: 18px; border-radius: 14px; background: var(--surface); }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; font-size: 14px; } .kv dt { color: var(--muted); } .kv dd { margin: 0; color: var(--heading); font-weight: 600; }
.mini-case, .pf-card { border-radius: 14px; overflow: hidden; background: #fff; border: 1px solid var(--border); }
.milestones { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; } .milestones li { display: flex; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 10px; background: var(--surface); }
.metric-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; } .metric { padding: 14px; border-radius: 12px; border: 1px solid var(--border); background: #fff; } .metric b { display: block; font: 800 1.3rem var(--font-h); color: var(--heading); }
.score-ring { --v: 0; --c: var(--ok); width: 130px; height: 130px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--c) calc(var(--v) * 1%), var(--border-2) 0); position: relative; font: 800 2rem var(--font-h); color: var(--heading); }
.score-ring::before { content: ""; position: absolute; inset: 10px; border-radius: 50%; background: #fff; } .score-ring > * { position: relative; }
.spark { display: inline-block; vertical-align: middle; }
.method-tag { display: inline-block; min-width: 54px; text-align: center; padding: 2px 6px; border-radius: 6px; font: 700 11px var(--mono); background: var(--surface); } .tone { font-weight: 700; }
.docs-layout { display: grid; grid-template-columns: 240px 1fr; gap: 30px; align-items: start; } .docs-nav { position: sticky; top: calc(var(--nav-h) + 16px); display: grid; gap: 2px; } .docs-nav a { padding: 7px 12px; border-radius: 8px; color: var(--text); font-size: 14px; } .docs-nav a.active, .docs-nav a:hover { background: var(--a-soft); color: var(--accent); } .docs-body { min-width: 0; }
.qr-card { text-align: center; } .link-row { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; padding: 10px; border: 1px solid var(--border); border-radius: 12px; background: #fff; margin-bottom: 8px; }
.stat-mini { display: grid; gap: 2px; padding: 12px 14px; border-radius: 12px; background: var(--surface); } .stat-mini b { font: 800 1.2rem var(--font-h); color: var(--heading); }
.stat-value { font: 800 1.5rem var(--font-h); color: var(--heading); }

/* admin extras */
.admin-search { position: relative; flex: 1; max-width: 420px; } .search-pop { position: absolute; top: calc(100% + 6px); left: 0; right: 0; background: #fff; border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--sh-3); z-index: 40; max-height: 420px; overflow: auto; padding: 6px; }
.search-pop a { display: flex; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 8px; color: var(--heading); font-size: 14px; } .search-pop a:hover { background: var(--surface); filter: none; }
.side-badge { margin-left: auto; font-size: 11px; padding: 1px 7px; border-radius: 999px; background: var(--danger); color: #fff; font-weight: 700; }
.stat-link { color: inherit; display: block; } .stat-link:hover { filter: none; } .stat-link:hover .card { border-color: var(--a-mid); }
.check-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; }
.menu-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.split-editor { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; } .compact td, .compact th { padding: 6px 10px; } .inline-auto { display: inline-flex; gap: 6px; align-items: center; }
.input-reveal { position: relative; } .chart { min-height: 220px; }
.sa-chart { position: relative; width: 100%; } .sa-chart svg { width: 100%; height: auto; overflow: visible; }
.ch-grid { stroke: var(--border-2); stroke-width: 1; } .ch-ax { fill: var(--faint); font-size: 11px; font-family: var(--font); }
.ch-line { fill: none; stroke: var(--accent); stroke-width: 2.4; stroke-linejoin: round; stroke-linecap: round; } .ch-area { fill: rgba(var(--accent-rgb), .12); }
.ch-dot { fill: #fff; stroke: var(--accent); stroke-width: 2; } .ch-cursor { stroke: var(--faint); stroke-dasharray: 3 3; }
.ch-tip { position: absolute; pointer-events: none; background: #0F172A; color: #fff; font-size: 12px; padding: 6px 9px; border-radius: 8px; white-space: nowrap; transform: translate(-50%, -120%); box-shadow: var(--sh-2); }
.admin-foot, .admin-bottom { font-size: 12.5px; color: var(--muted); }
.admin-sidebar { scrollbar-width: thin; }
.launcher-tools { display: grid; gap: 2px; padding: 6px 0 0; } .launcher-tools a { display: flex; align-items: center; gap: 8px; padding: 7px 10px; border-radius: 8px; color: var(--heading); font-size: 13px; } .launcher-tools a em { margin-left: auto; color: var(--muted); font-style: normal; font-size: 12px; } .launcher-tools a:hover { background: var(--surface); filter: none; }
.launcher-grid a.recent .app-tile { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--c); }

@media (max-width: 960px) {
  .account-shell { grid-template-columns: 1fr; } .account-side { position: static; } .account-nav { grid-auto-flow: column; grid-auto-columns: max-content; overflow-x: auto; padding-bottom: 4px; } .account-user { display: none; }
  .kpi-grid, .stats-row { grid-template-columns: 1fr 1fr; } .stats-row > div:nth-child(3) { border-left: 0; }
  .steps-grid, .testi-grid { grid-template-columns: 1fr; } .split, .value-grid, .two-col, .booking, .docs-layout, .crud-layout, .mask-editor, .split-editor { grid-template-columns: 1fr; }
  .pdf-editor { grid-template-columns: 1fr; } .pe-side { position: static; } .ce-body { grid-template-columns: 1fr; } .ce-left, .ce-right { max-height: 220px; } .inbox { grid-template-columns: 1fr; }
  .bundle-card { flex-direction: column; align-items: flex-start; } .docs-nav { position: static; grid-auto-flow: column; overflow-x: auto; }
}
@media (max-width: 620px) {
  .kpi-grid { grid-template-columns: 1fr 1fr; gap: 10px; } .code-grid { grid-template-columns: 1fr 1fr; } .ab-compare, .logo-variants { grid-template-columns: 1fr; }
  .upload-row { grid-template-columns: 1fr 60px; } .upload-row small, .upload-row .meter { display: none; } .scene { grid-template-columns: 1fr; } .nps-scale { grid-template-columns: repeat(6, 1fr); }
}
.portal-hero .hero-inner { display: block; max-width: 860px; margin: 0 auto; text-align: center; }
.portal-hero .portal-search { max-width: 620px; margin: 0 auto; } .portal-hero .marquee { margin-top: 36px; }
