/* ML Enterprise Apps — design system */
[hidden] { display: none !important; }
:root {
  --ink: #0b1220;
  --navy: #0b1730;
  --navy-2: #12224a;
  --blue: #2563eb;
  --blue-2: #3b82f6;
  --cyan: #22d3ee;
  --teal: #14b8a6;
  --bg: #f6f8fc;
  --card: #ffffff;
  --text: #0f172a;
  --muted: #5b6b85;
  --line: #e5eaf3;
  --danger: #dc2626;
  --ok: #16a34a;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(15,23,42,.04), 0 8px 24px rgba(15,23,42,.06);
  --shadow-lg: 0 24px 60px rgba(2,8,23,.35);
  --font: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; }
a { color: var(--blue); text-decoration: none; }
img, svg { display: block; }
.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.ico { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Buttons & inputs */
button, .btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; border-radius: 10px; padding: 11px 20px; font: 600 15px var(--font);
  background: var(--blue); color: #fff; cursor: pointer; transition: transform .15s, background .15s, box-shadow .15s;
}
button:hover, .btn:hover { background: #1d4ed8; transform: translateY(-1px); box-shadow: 0 6px 18px rgba(37,99,235,.3); }
button:disabled { opacity: .55; cursor: default; transform: none; box-shadow: none; }
.btn-lg { padding: 14px 26px; font-size: 16px; }
.btn-ghost { background: rgba(255,255,255,.06); color: #fff; border: 1px solid rgba(255,255,255,.22); }
.btn-ghost:hover { background: rgba(255,255,255,.14); box-shadow: none; }
.btn-light { background: #eef3fc; color: var(--navy-2); }
.btn-light:hover { background: #e1eafa; box-shadow: none; }
.btn-danger { background: var(--danger); }
input, textarea, select {
  width: 100%; padding: 11px 13px; border: 1px solid var(--line); border-radius: 10px; font: 15px var(--font); color: var(--text); background: #fff;
  transition: border-color .15s, box-shadow .15s;
}
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--blue-2); box-shadow: 0 0 0 4px rgba(59,130,246,.15); }
textarea { resize: vertical; }
label { display: block; font-size: 13px; font-weight: 600; margin: 14px 0 6px; color: #334155; }
.error { color: var(--danger); font-size: 14px; min-height: 20px; margin-top: 10px; }
.success { color: var(--ok); font-size: 14px; margin-top: 10px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--blue); }

/* Top navigation */
.topbar { position: sticky; top: 0; z-index: 50; background: rgba(11,23,48,.92); backdrop-filter: blur(10px); border-bottom: 1px solid rgba(255,255,255,.06); }
.topbar .container { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; color: #fff; letter-spacing: -.01em; }
.brand-mark { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; background: linear-gradient(135deg, var(--blue), var(--cyan)); color: #fff; font-size: 14px; font-weight: 800; }
.brand small { display: block; font-size: 11px; font-weight: 600; color: #94a3b8; letter-spacing: .04em; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { color: #cbd5e1; font-size: 15px; font-weight: 500; }
.nav-links a:hover { color: #fff; }
.nav-cta { display: flex; gap: 10px; align-items: center; }
.menu-btn { display: none; background: transparent; padding: 8px; }
.menu-btn:hover { background: rgba(255,255,255,.1); box-shadow: none; transform: none; }

/* Hero */
.hero { position: relative; overflow: hidden; background: radial-gradient(1200px 600px at 85% -10%, rgba(34,211,238,.18), transparent 60%), radial-gradient(900px 500px at 0% 110%, rgba(37,99,235,.35), transparent 60%), var(--navy); color: #fff; padding: 80px 0 96px; }
.hero::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px); background-size: 44px 44px; mask-image: radial-gradient(ellipse at 60% 40%, #000 30%, transparent 75%); }
.hero .container { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 8px; border-radius: 999px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); font-size: 13px; color: #cbd5e1; }
.pill b { background: var(--teal); color: #042f2e; border-radius: 999px; padding: 2px 8px; font-size: 11px; }
.hero h1 { font-size: clamp(36px, 5vw, 58px); line-height: 1.05; letter-spacing: -.03em; margin: 20px 0 18px; }
.hero h1 .grad { background: linear-gradient(90deg, #60a5fa, var(--cyan)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { font-size: 19px; line-height: 1.6; color: #cbd5e1; margin: 0 0 30px; max-width: 560px; }
.hero .cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-points { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 30px; color: #94a3b8; font-size: 14px; }
.hero-points span { display: inline-flex; align-items: center; gap: 7px; }
.hero-points .ico { width: 18px; height: 18px; color: var(--teal); }

/* Product mockup in hero */
.mock { background: #0f1b38; border: 1px solid rgba(255,255,255,.1); border-radius: 16px; box-shadow: var(--shadow-lg); overflow: hidden; transform: perspective(1400px) rotateY(-6deg) rotateX(2deg); }
.mock-bar { display: flex; align-items: center; gap: 7px; padding: 12px 14px; background: #0b152d; border-bottom: 1px solid rgba(255,255,255,.07); }
.mock-bar i { width: 10px; height: 10px; border-radius: 50%; background: #334155; }
.mock-bar span { margin-left: 10px; font-size: 12px; color: #64748b; }
.mock-body { display: grid; grid-template-columns: 150px 1fr; min-height: 330px; }
.mock-side { border-right: 1px solid rgba(255,255,255,.07); padding: 14px 10px; }
.mock-side div { font-size: 12px; color: #94a3b8; padding: 8px 10px; border-radius: 8px; margin-bottom: 4px; }
.mock-side div.on { background: rgba(59,130,246,.18); color: #fff; }
.mock-chat { padding: 18px; display: flex; flex-direction: column; gap: 10px; }
.bub { max-width: 85%; padding: 10px 13px; border-radius: 12px; font-size: 13px; line-height: 1.45; }
.bub.u { align-self: flex-end; background: var(--blue); color: #fff; border-bottom-right-radius: 4px; }
.bub.a { background: #16244a; color: #dbe4f3; border: 1px solid rgba(255,255,255,.07); border-bottom-left-radius: 4px; }
.bub ol { margin: 6px 0 0; padding-left: 18px; }
.status-chip { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; font-size: 11px; color: #5eead4; background: rgba(20,184,166,.12); border: 1px solid rgba(20,184,166,.3); padding: 4px 10px; border-radius: 999px; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 3px rgba(20,184,166,.2); }

/* Trust strip */
.trust { background: #fff; border-bottom: 1px solid var(--line); }
.trust .container { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding: 26px 24px; }
.trust div { display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--muted); }
.trust b { display: block; font-size: 15px; color: var(--text); }
.trust .ico { color: var(--blue); width: 26px; height: 26px; flex: none; }

/* Sections */
.section { padding: 96px 0; }
.section.alt { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 52px; }
.section-head h2 { font-size: clamp(28px, 3.5vw, 40px); letter-spacing: -.02em; margin: 12px 0 14px; line-height: 1.15; }
.section-head p { color: var(--muted); font-size: 17px; line-height: 1.6; margin: 0; }
.grid { display: grid; gap: 22px; }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.service { transition: transform .2s, box-shadow .2s, border-color .2s; }
.service:hover { transform: translateY(-4px); border-color: #c7d7f5; box-shadow: 0 16px 40px rgba(15,23,42,.1); }
.service .icon-box { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: linear-gradient(135deg, #e0ebff, #dff7fb); color: var(--blue); margin-bottom: 18px; }
.service h3 { margin: 0 0 8px; font-size: 19px; }
.service p { color: var(--muted); margin: 0 0 14px; line-height: 1.6; font-size: 15px; }
.service ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 7px; }
.service li { font-size: 14px; color: #334155; display: flex; gap: 8px; align-items: flex-start; }
.service li::before { content: "✓"; color: var(--teal); font-weight: 800; }
.service.featured { background: linear-gradient(160deg, var(--navy-2), var(--navy)); color: #fff; border-color: transparent; }
.service.featured p, .service.featured li { color: #cbd5e1; }
.service.featured .icon-box { background: rgba(255,255,255,.1); color: var(--cyan); }
.tag { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #042f2e; background: var(--teal); padding: 3px 9px; border-radius: 999px; margin-left: 8px; vertical-align: middle; }

/* Split feature */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split h2 { font-size: clamp(28px, 3.3vw, 38px); letter-spacing: -.02em; margin: 12px 0 16px; line-height: 1.15; }
.split p { color: var(--muted); font-size: 17px; line-height: 1.65; }
.checks { list-style: none; padding: 0; margin: 24px 0 30px; display: grid; gap: 14px; }
.checks li { display: flex; gap: 14px; align-items: flex-start; }
.checks .ico { flex: none; color: var(--blue); background: #e8f0ff; border-radius: 9px; padding: 7px; width: 36px; height: 36px; }
.checks b { display: block; margin-bottom: 2px; }
.checks span { color: var(--muted); font-size: 15px; }
.panel { background: linear-gradient(160deg, #0f1f45, var(--navy)); border-radius: 18px; padding: 26px; box-shadow: var(--shadow-lg); color: #e2e8f0; }
.panel h4 { margin: 0 0 16px; font-size: 14px; color: #94a3b8; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.metric-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 16px; }
.metric { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08); border-radius: 12px; padding: 14px; }
.metric b { display: block; font-size: 22px; color: #fff; }
.metric small { color: #94a3b8; font-size: 12px; }
.agent-row { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.07); border-radius: 12px; margin-top: 8px; font-size: 14px; }
.agent-row .left { display: flex; align-items: center; gap: 10px; }
.agent-row .av { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; background: rgba(59,130,246,.2); color: #93c5fd; }
.agent-row .av .ico { width: 16px; height: 16px; }
.live { color: #5eead4; font-size: 12px; display: inline-flex; align-items: center; gap: 6px; }

/* Process */
.steps { counter-reset: s; }
.step { position: relative; }
.step::before { counter-increment: s; content: "0" counter(s); display: block; font-size: 14px; font-weight: 800; color: var(--blue); letter-spacing: .08em; margin-bottom: 14px; }
.step h3 { margin: 0 0 8px; font-size: 18px; }
.step p { margin: 0; color: var(--muted); line-height: 1.6; font-size: 15px; }

/* FAQ */
.faq { max-width: 780px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 18px 22px; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 16px; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::after { content: "+"; color: var(--blue); font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq p { color: var(--muted); line-height: 1.65; margin: 12px 0 0; }

/* Contact */
.contact { background: radial-gradient(800px 400px at 100% 0%, rgba(34,211,238,.14), transparent 60%), var(--navy); color: #fff; }
.contact .split p { color: #cbd5e1; }
.contact .card { color: var(--text); }
.contact-lines { display: grid; gap: 14px; margin-top: 26px; }
.contact-lines div { display: flex; align-items: center; gap: 12px; color: #e2e8f0; }
.contact-lines .ico { color: var(--cyan); }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

footer { background: #070f22; color: #94a3b8; font-size: 14px; }
footer .container { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 28px 24px; flex-wrap: wrap; }
footer a { color: #cbd5e1; }
footer nav { display: flex; gap: 22px; }

/* Auth */
.auth-page { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
.auth-side { background: radial-gradient(700px 400px at 100% 0%, rgba(34,211,238,.16), transparent 60%), var(--navy); color: #fff; padding: 40px 56px; display: flex; flex-direction: column; justify-content: space-between; }
.auth-side h2 { font-size: 34px; letter-spacing: -.02em; line-height: 1.15; margin: 0 0 14px; }
.auth-side p { color: #cbd5e1; font-size: 16px; line-height: 1.6; max-width: 440px; }
.auth-side .checks span { color: #94a3b8; }
.auth-side .checks .ico { background: rgba(59,130,246,.18); color: #93c5fd; }
.auth-main { display: grid; place-items: center; padding: 40px 24px; background: #fff; }
.auth { width: 100%; max-width: 400px; }
.auth h1 { margin: 0 0 6px; font-size: 28px; letter-spacing: -.02em; }
.auth .sub { color: var(--muted); margin: 0 0 18px; }
.auth form #submit { width: 100%; margin-top: 22px; padding: 13px; }
.switch { text-align: center; margin-top: 18px; font-size: 14px; color: var(--muted); }
.pw-wrap { position: relative; }
.pw-wrap button { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: auto; margin: 0; padding: 6px 10px; font-size: 13px; background: transparent; color: var(--muted); }
.pw-wrap button:hover { background: #f1f5f9; box-shadow: none; transform: translateY(-50%); }
.secure-note { display: flex; align-items: center; gap: 8px; justify-content: center; color: var(--muted); font-size: 13px; margin-top: 22px; }
.secure-note .ico { width: 16px; height: 16px; color: var(--ok); }

/* ===== App (client portal) ===== */
.app-shell { display: grid; grid-template-columns: 268px 1fr; height: 100vh; }
.side { background: var(--navy); color: #cbd5e1; display: flex; flex-direction: column; padding: 18px 14px; overflow-y: auto; }
.side .brand { padding: 4px 8px 22px; }
.side-label { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #64748b; margin: 18px 10px 8px; }
.nav-item { display: flex; align-items: center; gap: 11px; padding: 10px 12px; border-radius: 10px; color: #cbd5e1; cursor: pointer; font-size: 14.5px; font-weight: 500; border: 0; background: transparent; width: 100%; text-align: left; justify-content: flex-start; }
.nav-item:hover { background: rgba(255,255,255,.06); color: #fff; box-shadow: none; transform: none; }
.nav-item.active { background: rgba(59,130,246,.18); color: #fff; }
.nav-item .ico { width: 19px; height: 19px; flex: none; }
.nav-item .txt { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-foot { margin-top: auto; border-top: 1px solid rgba(255,255,255,.08); padding-top: 14px; display: flex; align-items: center; gap: 10px; }
.avatar { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: linear-gradient(135deg, var(--blue), var(--cyan)); color: #fff; font-weight: 700; font-size: 14px; flex: none; }
.side-foot .who { flex: 1; min-width: 0; }
.side-foot .who b { display: block; color: #fff; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-foot .who small { color: #64748b; font-size: 12px; }
.icon-btn { background: transparent; color: #94a3b8; padding: 8px; border-radius: 8px; }
.icon-btn:hover { background: rgba(255,255,255,.08); color: #fff; box-shadow: none; transform: none; }

.workspace { display: flex; flex-direction: column; min-width: 0; height: 100vh; overflow: hidden; }
.ws-head { height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 28px; background: #fff; border-bottom: 1px solid var(--line); flex: none; }
.ws-head h1 { font-size: 18px; margin: 0; letter-spacing: -.01em; }
.ws-head p { margin: 2px 0 0; color: var(--muted); font-size: 13.5px; }
.ws-body { flex: 1; overflow-y: auto; padding: 28px; }
.view { display: none; }
.view.on { display: block; }
#view-chat.on { display: flex; flex-direction: column; height: 100%; }

.welcome { background: linear-gradient(135deg, var(--navy-2), var(--navy)); color: #fff; border-radius: 18px; padding: 30px; margin-bottom: 26px; position: relative; overflow: hidden; }
.welcome::after { content: ""; position: absolute; right: -60px; top: -60px; width: 260px; height: 260px; border-radius: 50%; background: radial-gradient(circle, rgba(34,211,238,.25), transparent 70%); }
.welcome h2 { margin: 0 0 6px; font-size: 26px; letter-spacing: -.02em; }
.welcome p { margin: 0; color: #cbd5e1; }
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-bottom: 26px; }
.stat { display: flex; align-items: center; gap: 14px; }
.stat .icon-box { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: #e8f0ff; color: var(--blue); flex: none; }
.stat b { display: block; font-size: 22px; }
.stat small { color: var(--muted); }
.h-sec { font-size: 16px; margin: 0 0 14px; }
.agent-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.agent-card { cursor: pointer; display: flex; flex-direction: column; gap: 12px; transition: transform .2s, box-shadow .2s, border-color .2s; }
.agent-card:hover { transform: translateY(-3px); border-color: #c7d7f5; box-shadow: 0 14px 36px rgba(15,23,42,.1); }
.agent-card .top { display: flex; justify-content: space-between; align-items: center; }
.agent-card .av { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: linear-gradient(135deg, #e0ebff, #dff7fb); color: var(--blue); }
.agent-card h3 { margin: 0; font-size: 17px; }
.agent-card p { margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.55; flex: 1; }
.agent-card .go { color: var(--blue); font-weight: 600; font-size: 14px; display: inline-flex; gap: 6px; align-items: center; }
.badge { font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; display: inline-flex; align-items: center; gap: 6px; }
.badge.ok { background: #dcfce7; color: #166534; }
.badge.off { background: #f1f5f9; color: #64748b; }
.empty-state { text-align: center; padding: 50px 20px; color: var(--muted); }
.empty-state .icon-box { width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center; margin: 0 auto 16px; background: #e8f0ff; color: var(--blue); }
.empty-state .icon-box .ico { width: 30px; height: 30px; }
.empty-state h3 { color: var(--text); margin: 0 0 6px; }

/* Chat */
.chat-wrap { flex: 1; display: flex; flex-direction: column; min-height: 0; max-width: 900px; width: 100%; margin: 0 auto; }
.messages { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 18px; padding: 6px 4px 20px; }
.msg { display: flex; gap: 12px; align-items: flex-start; }
.msg .av { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; flex: none; font-size: 13px; font-weight: 700; }
.msg.assistant .av { background: linear-gradient(135deg, #e0ebff, #dff7fb); color: var(--blue); }
.msg.assistant .av .ico { width: 18px; height: 18px; }
.msg.user { flex-direction: row-reverse; }
.msg.user .av { background: linear-gradient(135deg, var(--blue), var(--cyan)); color: #fff; }
.msg .bubble { padding: 13px 16px; border-radius: 14px; line-height: 1.6; font-size: 15px; max-width: min(680px, 85%); word-wrap: break-word; }
.msg.assistant .bubble { background: #fff; border: 1px solid var(--line); border-top-left-radius: 4px; box-shadow: var(--shadow); }
.msg.user .bubble { background: var(--blue); color: #fff; border-top-right-radius: 4px; white-space: pre-wrap; }
.bubble p { margin: 0 0 8px; } .bubble p:last-child { margin: 0; }
.bubble ol, .bubble ul { margin: 6px 0 8px; padding-left: 22px; } .bubble li { margin: 3px 0; }
.bubble code { background: #f1f5f9; padding: 1px 6px; border-radius: 5px; font-size: 13.5px; font-family: Consolas, monospace; }
.typing-dots { display: inline-flex; gap: 4px; }
.typing-dots i { width: 7px; height: 7px; border-radius: 50%; background: #94a3b8; animation: blink 1.2s infinite; }
.typing-dots i:nth-child(2) { animation-delay: .2s; } .typing-dots i:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }
.suggest { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 14px 46px; }
.suggest button { background: #fff; color: var(--navy-2); border: 1px solid var(--line); font-weight: 500; font-size: 14px; padding: 8px 14px; border-radius: 999px; }
.suggest button:hover { border-color: var(--blue-2); color: var(--blue); background: #f5f9ff; box-shadow: none; }
.composer { display: flex; gap: 10px; align-items: flex-end; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 10px 10px 10px 16px; box-shadow: var(--shadow); }
.composer textarea { border: 0; padding: 8px 0; min-height: 26px; max-height: 180px; box-shadow: none !important; resize: none; }
.composer button { padding: 10px 14px; border-radius: 11px; }
.hint { text-align: center; color: #94a3b8; font-size: 12px; margin-top: 8px; }

/* Admin */
.tabs { display: flex; gap: 6px; background: #eef2f9; padding: 5px; border-radius: 12px; width: fit-content; margin-bottom: 22px; }
.tabs button { background: transparent; color: var(--muted); padding: 8px 16px; border-radius: 9px; font-size: 14px; }
.tabs button:hover { box-shadow: none; transform: none; color: var(--text); background: transparent; }
.tabs button.on { background: #fff; color: var(--text); box-shadow: var(--shadow); }
.pane { display: none; } .pane.on { display: block; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 12px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; }
tr:last-child td { border-bottom: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { font-size: 12.5px; padding: 5px 11px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: #334155; font-weight: 500; }
.chip:hover { border-color: var(--blue-2); background: #f5f9ff; color: var(--blue); box-shadow: none; transform: none; }
.chip.on { background: #dcfce7; border-color: #86efac; color: #166534; }
.toast { position: fixed; bottom: 24px; right: 24px; background: var(--navy); color: #fff; padding: 12px 18px; border-radius: 12px; box-shadow: var(--shadow-lg); font-size: 14px; opacity: 0; transform: translateY(10px); transition: all .25s; pointer-events: none; z-index: 100; }
.toast.show { opacity: 1; transform: none; }
.mobile-only { display: none; }

@media (max-width: 980px) {
  .hero .container, .split { grid-template-columns: 1fr; }
  .mock { transform: none; }
  .g3, .g4, .trust .container { grid-template-columns: 1fr 1fr; }
  .auth-page { grid-template-columns: 1fr; }
  .auth-side { display: none; }
}
@media (max-width: 760px) {
  .nav-links { display: none; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; gap: 0; background: var(--navy); padding: 8px 24px 18px; border-bottom: 1px solid rgba(255,255,255,.08); }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 0; width: 100%; }
  .menu-btn { display: inline-flex; }
  .topbar .brand small { display: none; }
  .topbar .brand { font-size: 16px; white-space: nowrap; }
  .nav-cta .btn { padding: 8px 14px; font-size: 14px; white-space: nowrap; }
  .hero { padding: 48px 0 64px; }
  .nav-cta .btn-ghost { display: none; }
  .g3, .g4, .trust .container, .row, .stat-row, .metric-row { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
  .app-shell { grid-template-columns: 1fr; }
  .side { position: fixed; inset: 0 auto 0 0; width: 268px; z-index: 60; transform: translateX(-100%); transition: transform .25s; }
  .side.open { transform: none; }
  .mobile-only { display: inline-flex; }
  .ws-body { padding: 18px; }
  .ws-head { padding: 0 16px; }
  .mock-body { grid-template-columns: 1fr; } .mock-side { display: none; }
}

/* ===== Contact options ===== */
.reach { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 26px; }
.reach-card { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: 14px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); color: #fff; text-align: left; font: inherit; cursor: pointer; transition: background .15s, border-color .15s, transform .15s; justify-content: flex-start; }
.reach-card:hover { background: rgba(255,255,255,.12); border-color: rgba(34,211,238,.5); transform: translateY(-2px); box-shadow: none; }
.reach-card b { display: block; font-size: 16px; }
.reach-card small { color: #94a3b8; font-size: 13.5px; font-weight: 500; }
.reach-ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: rgba(34,211,238,.14); color: var(--cyan); flex: none; }

/* ===== Live chat widget ===== */
.lc { position: fixed; right: 22px; bottom: 22px; z-index: 90; font-family: var(--font); }
.lc-fab { width: 60px; height: 60px; border-radius: 50%; padding: 0; background: linear-gradient(135deg, var(--blue), #0891b2); box-shadow: 0 10px 30px rgba(37,99,235,.45); position: relative; }
.lc-fab .ico { width: 26px; height: 26px; }
.lc-fab:hover { transform: scale(1.05); }
.lc.is-open .lc-fab { display: none; }
.lc-badge { position: absolute; top: 2px; right: 2px; width: 14px; height: 14px; border-radius: 50%; background: #ef4444; border: 2px solid #fff; }
.lc-panel { width: 370px; max-width: calc(100vw - 32px); height: 540px; max-height: calc(100vh - 44px); background: #fff; border-radius: 18px; box-shadow: 0 24px 70px rgba(2,8,23,.35); display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); }
.lc-panel[hidden] { display: none; }
.lc-head { display: flex; align-items: center; gap: 12px; padding: 16px; background: var(--navy); color: #fff; }
.lc-head b { display: block; font-size: 14.5px; }
.lc-head small { color: #94a3b8; font-size: 12.5px; display: flex; align-items: center; gap: 6px; }
.lc-dot { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; }
.lc-av { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: linear-gradient(135deg, var(--blue), var(--cyan)); font-weight: 800; font-size: 14px; flex: none; }
.lc-x { margin-left: auto; background: transparent; padding: 8px; color: #cbd5e1; }
.lc-x:hover { background: rgba(255,255,255,.1); box-shadow: none; transform: none; }
.lc-body { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 8px; background: var(--bg); }
.lc-msg { max-width: 82%; padding: 10px 13px; border-radius: 14px; font-size: 14.5px; line-height: 1.45; white-space: pre-wrap; word-wrap: break-word; }
.lc-msg.me { align-self: flex-end; background: var(--blue); color: #fff; border-bottom-right-radius: 4px; }
.lc-msg.them { align-self: flex-start; background: #fff; border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.lc-note { align-self: center; text-align: center; font-size: 12.5px; color: var(--muted); padding: 4px 10px; }
.lc-note.err { color: var(--danger); }
.lc-start { padding: 16px; overflow-y: auto; flex: 1; display: flex; flex-direction: column; gap: 10px; }
.lc-start p { margin: 0 0 4px; color: #334155; font-size: 14.5px; line-height: 1.5; }
.lc-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.lc-start button { width: 100%; }
.lc-hp { position: absolute; left: -9999px; }
.lc-err { color: var(--danger); font-size: 13px; min-height: 16px; }
.lc-alt { font-size: 13px; color: var(--muted); text-align: center; margin-top: auto; }
.lc-compose { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); background: #fff; }
.lc-compose[hidden] { display: none; }
.lc-compose textarea { resize: none; min-height: 42px; max-height: 120px; }
.lc-compose button { padding: 10px 13px; }

/* ===== Admin: inbox, forms ===== */
.inbox { display: grid; grid-template-columns: 320px 1fr; gap: 18px; height: calc(100vh - 200px); min-height: 420px; }
.inbox-list { overflow-y: auto; padding: 8px; }
.inbox-item { display: block; width: 100%; text-align: left; background: transparent; color: var(--text); padding: 12px; border-radius: 10px; border: 1px solid transparent; margin-bottom: 4px; justify-content: flex-start; }
.inbox-item:hover { background: var(--bg); box-shadow: none; transform: none; }
.inbox-item.on { background: #eaf1ff; border-color: #c9dbff; }
.inbox-item .t { display: flex; justify-content: space-between; gap: 8px; font-weight: 600; font-size: 14.5px; }
.inbox-item .p { color: var(--muted); font-size: 13px; margin-top: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 400; }
.inbox-item .when { color: #94a3b8; font-size: 12px; font-weight: 500; }
.unread { background: var(--blue); color: #fff; border-radius: 999px; font-size: 11px; padding: 1px 7px; margin-left: 6px; }
.thread { display: flex; flex-direction: column; overflow: hidden; padding: 0; }
.thread-head { padding: 14px 18px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.thread-head small { color: var(--muted); }
.thread-body { flex: 1; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 8px; background: var(--bg); }
.thread-body .lc-msg.me { align-self: flex-start; background: #fff; color: var(--text); border: 1px solid var(--line); border-bottom-left-radius: 4px; border-bottom-right-radius: 14px; }
.thread-body .lc-msg.them { align-self: flex-end; background: var(--blue); color: #fff; border: 0; border-bottom-right-radius: 4px; border-bottom-left-radius: 14px; }
.thread-body .stamp { font-size: 11px; color: #94a3b8; }
.thread-compose { display: flex; gap: 10px; padding: 12px; border-top: 1px solid var(--line); }
.thread-compose textarea { resize: none; }
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.toolbar input[type=search] { max-width: 280px; }
.badge.warn { background: #fef3c7; color: #92400e; }
.badge.free { background: #e0f2fe; color: #075985; }
.badge.paid { background: #ede9fe; color: #5b21b6; }
.badge.bad { background: #fee2e2; color: #991b1b; }
.modal-bg { position: fixed; inset: 0; background: rgba(2,8,23,.5); display: grid; place-items: center; z-index: 120; padding: 20px; }
.modal-bg[hidden] { display: none; }
.modal { width: 100%; max-width: 520px; max-height: calc(100vh - 40px); overflow-y: auto; }
.modal h3 { margin: 0 0 4px; }
.modal .actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 20px; flex-wrap: wrap; }
.modal .danger-zone { border-top: 1px solid var(--line); margin-top: 18px; padding-top: 14px; display: flex; gap: 8px; flex-wrap: wrap; }
.count-pill { background: #ef4444; color: #fff; font-size: 11px; font-weight: 700; border-radius: 999px; padding: 1px 7px; margin-left: auto; }
@media (max-width: 760px) {
  .reach { grid-template-columns: 1fr; }
  .inbox { grid-template-columns: 1fr; height: auto; }
  .inbox-list { max-height: 260px; }
  .thread { height: 70vh; }
  .lc { right: 12px; bottom: 12px; }
}
.lc-start[hidden], .lc-body[hidden] { display: none; }
a.nav-item { text-decoration: none; }
.reach > .reach-card, a.reach-card { text-decoration: none; }
.lc-msg a { color: inherit; text-decoration: underline; word-break: break-all; }
