/* Tomi Full Demo — premium dark UI, multi-industry workspaces, recording playback */

:root {
  --bg: #07070b;
  --bg-raised: #0f0f17;
  --bg-sunk: #16161f;
  --bg-elev: #1c1c27;
  --border: #232333;
  --border-strong: #34344a;
  --text: #f7f7fa;
  --text-muted: #a7a7b8;
  --text-subtle: #6e6e83;
  --brand: #a855f7;
  --brand-2: #6366f1;
  --brand-3: #ec4899;
  --brand-cy: #22d3ee;
  --accent: #f59e0b;
  --good: #16a34a;
  --good-text: #4ade80;
  --bad: #ef4444;
  --bad-text: #fca5a5;
  --warn: #f59e0b;
  --shadow: 0 30px 60px -25px rgba(0,0,0,0.75);
  --shadow-brand: 0 20px 60px -20px rgba(168,85,247,0.45);
  --radius: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --t: 200ms cubic-bezier(0.4, 0, 0.2, 1);
  --grad: linear-gradient(135deg, #6366f1, #a855f7, #ec4899);
  --grad-soft: linear-gradient(135deg, rgba(99,102,241,0.18), rgba(236,72,153,0.18));
}

* { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0;
  font-family: 'Inter', -apple-system, system-ui, sans-serif;
  color: var(--text);
  background:
    radial-gradient(ellipse 90% 60% at 50% -10%, rgba(168,85,247,0.20), transparent 60%),
    radial-gradient(ellipse 70% 50% at 100% 100%, rgba(34,211,238,0.10), transparent 60%),
    radial-gradient(ellipse 70% 50% at 0% 100%, rgba(236,72,153,0.10), transparent 60%),
    var(--bg);
  background-attachment: fixed;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--brand); text-decoration: none; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; letter-spacing: -0.012em; }
h1 { font-size: 1.85rem; } h2 { font-size: 1.4rem; } h3 { font-size: 1.1rem; }
p { margin: 0 0 0.6rem; line-height: 1.55; }
code, kbd { font-family: 'JetBrains Mono', 'SF Mono', Consolas, monospace; font-size: 0.86em; }
.muted { color: var(--text-muted); }
.subtle { color: var(--text-subtle); font-size: 0.82rem; }
.hidden { display: none !important; }

/* ---- Topbar ---- */
.topbar {
  position: sticky; top: 0; z-index: 80;
  backdrop-filter: blur(18px) saturate(180%);
  background: rgba(7,7,11,0.78);
  border-bottom: 1px solid var(--border);
  padding: 0.85rem 1.6rem;
  display: flex; align-items: center; gap: 1rem;
}
.brand-mark {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-weight: 800; font-size: 1.08rem; letter-spacing: -0.01em;
  cursor: pointer;
}
.brand-mark img { width: 30px; height: 30px; display: block; }
.brand-mark .brand-tag {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.spacer { flex: 1; }
.user-chip {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.3rem 0.85rem 0.3rem 0.35rem;
  border-radius: 999px;
  background: var(--bg-sunk); border: 1px solid var(--border);
  font-size: 0.85rem;
}
.user-chip .av {
  width: 26px; height: 26px; border-radius: 999px;
  background: var(--grad);
  display: grid; place-items: center;
  font-weight: 700; font-size: 0.72rem;
}

/* ---- Buttons ---- */
.btn {
  font: inherit; font-weight: 600; font-size: 0.92rem;
  padding: 0.6rem 1.05rem; border-radius: 11px;
  background: var(--bg-sunk); border: 1px solid var(--border);
  color: var(--text); cursor: pointer;
  transition: all var(--t);
  display: inline-flex; align-items: center; gap: 0.45rem;
}
.btn:hover { border-color: var(--border-strong); background: var(--bg-elev); }
.btn.primary {
  background: var(--grad);
  border-color: transparent; color: #fff; font-weight: 700;
  box-shadow: 0 10px 32px -10px rgba(168,85,247,0.55);
}
.btn.primary:hover { transform: translateY(-1px); }
.btn.ghost { background: transparent; }
.btn.danger { background: var(--bad); border-color: transparent; color: white; }
.btn.success { background: var(--good); border-color: transparent; color: white; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn.small { font-size: 0.82rem; padding: 0.4rem 0.7rem; }

input, select, textarea {
  width: 100%; font: inherit; font-size: 0.95rem;
  padding: 0.65rem 0.85rem; border-radius: 11px;
  background: var(--bg-sunk); border: 1px solid var(--border); color: var(--text);
  transition: border var(--t), box-shadow var(--t);
}
textarea { font-family: inherit; min-height: 100px; resize: vertical; }
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(168,85,247,0.18);
}
label {
  display: block; margin: 0.85rem 0 0.35rem;
  font-size: 0.76rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.07em; color: var(--text-muted);
}
.checkbox-line {
  display: flex; align-items: center; gap: 0.55rem;
  font-size: 0.9rem; color: var(--text); font-weight: 500;
  text-transform: none; letter-spacing: 0; margin: 0.85rem 0 0;
}
.checkbox-line input { width: auto; }

/* ---- Login ---- */
.login-shell {
  min-height: 100vh;
  display: grid; place-items: center; padding: 2rem 1rem;
}
.login-card {
  width: 100%; max-width: 440px;
  background: rgba(15,15,23,0.85);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 2.5rem 2rem;
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
}
.login-card h1 { font-size: 1.65rem; margin-bottom: 0.4rem; }
.login-card .lede { color: var(--text-muted); margin-bottom: 1.6rem; font-size: 0.93rem; line-height: 1.55; }

/* ---- Industry picker ---- */
.shell { max-width: 1240px; margin: 0 auto; padding: 2.8rem 1.6rem; }
.shell-hero h1 {
  font-size: 2.55rem; letter-spacing: -0.025em; line-height: 1.1;
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  margin-bottom: 0.5rem;
}
.shell-hero .lede { color: var(--text-muted); font-size: 1.05rem; max-width: 760px; margin-bottom: 2.4rem; line-height: 1.55; }

.industry-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.1rem;
}
.industry-card {
  position: relative; overflow: hidden;
  background: linear-gradient(180deg, rgba(168,85,247,0.06), rgba(99,102,241,0.04)), var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 1.6rem;
  cursor: pointer;
  transition: transform var(--t), border-color var(--t), box-shadow var(--t);
}
.industry-card::before {
  content: ''; position: absolute; inset: -1px;
  border-radius: var(--radius-xl);
  padding: 1px;
  background: linear-gradient(135deg, transparent 40%, var(--accent-color, var(--brand)));
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity var(--t);
  pointer-events: none;
}
.industry-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent-color, var(--brand));
  box-shadow: 0 24px 50px -22px var(--accent-color, var(--brand));
}
.industry-card:hover::before { opacity: 1; }
.industry-card .icon {
  font-size: 2.3rem;
  margin-bottom: 0.7rem;
  display: inline-block;
  filter: drop-shadow(0 6px 16px var(--accent-color, var(--brand)));
}
.industry-card h3 { font-size: 1.18rem; margin-bottom: 0.3rem; }
.industry-card p { color: var(--text-muted); font-size: 0.92rem; line-height: 1.5; margin-bottom: 0.6rem; }
.industry-card .badges { display: flex; gap: 0.35rem; flex-wrap: wrap; margin-top: 0.5rem; }
.industry-card .actions { display: flex; gap: 0.45rem; margin-top: 1rem; }

.tag {
  display: inline-block; padding: 0.18rem 0.55rem;
  border-radius: 999px; font-size: 0.7rem; font-weight: 600;
  background: rgba(168,85,247,0.15); border: 1px solid rgba(168,85,247,0.35); color: #d8b4fe;
}
.tag.cyan { background: rgba(34,211,238,0.15); border-color: rgba(34,211,238,0.4); color: #cffafe; }
.tag.pink { background: rgba(236,72,153,0.15); border-color: rgba(236,72,153,0.4); color: #fbcfe8; }
.tag.green { background: rgba(22,163,74,0.15); border-color: rgba(22,163,74,0.4); color: #86efac; }
.tag.gold { background: rgba(245,158,11,0.18); border-color: rgba(245,158,11,0.45); color: #fcd34d; }
.tag.lock::before { content: '🔒 '; }
.tag.dynamic::before { content: '✨ '; }

/* ---- Workspace (call view) ---- */
.workspace {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 1.1rem;
  padding: 1.3rem;
  height: calc(100vh - 65px);
}
.workspace.three-col {
  grid-template-columns: 1.4fr 1fr 360px;
}
@media (max-width: 1300px) { .workspace, .workspace.three-col { grid-template-columns: 1fr; height: auto; } }

.panel {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.1rem 1.25rem;
  display: flex; flex-direction: column;
  min-height: 0;
}
.panel-head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 0.9rem;
}
.panel-head h3 { font-size: 0.97rem; }
.panel-body { flex: 1; overflow-y: auto; padding-right: 0.3rem; }

/* Bank/scenario UI panel — bigger, hero feel */
.scenario-panel {
  background: linear-gradient(180deg, var(--bg-raised), var(--bg-sunk));
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 0;
  overflow: hidden;
  display: flex; flex-direction: column;
  min-height: 0;
}
.scenario-head {
  display: flex; align-items: center; gap: 0.7rem;
  padding: 1.1rem 1.4rem;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(135deg, rgba(168,85,247,0.10), rgba(99,102,241,0.08));
}
.scenario-head .icon { font-size: 1.7rem; }
.scenario-head h2 { font-size: 1.15rem; }
.scenario-head .subtle { font-size: 0.78rem; }
.scenario-body { flex: 1; overflow-y: auto; padding: 1.2rem 1.4rem; min-height: 0; }
/* The renderer dumps each industry's HTML straight into #scenarioBody, so the
   wrapper itself must be a height-constrained flex column for the inner
   .scenario-body (and .bank-tabs, headers, etc.) to lay out correctly. */
#scenarioBody {
  flex: 1; min-height: 0;
  display: flex; flex-direction: column;
  overflow: hidden;
}

/* Big call-to-action button per industry */
.ask-tomi-bar {
  display: flex; gap: 0.55rem; padding: 0.9rem 1.4rem;
  border-top: 1px solid var(--border);
  background: rgba(7,7,11,0.7);
  align-items: center;
  flex-wrap: wrap;
}
.ask-tomi-btn {
  background: var(--grad);
  color: #fff; font-weight: 800; font-size: 1.05rem;
  padding: 0.95rem 1.6rem; border-radius: 999px;
  border: none; cursor: pointer;
  box-shadow: 0 16px 40px -12px rgba(168,85,247,0.7);
  transition: all var(--t);
  display: inline-flex; align-items: center; gap: 0.55rem;
}
.ask-tomi-btn:hover { transform: translateY(-2px); box-shadow: 0 22px 50px -10px rgba(168,85,247,0.75); }
.ask-tomi-btn.live { background: linear-gradient(180deg, #ef4444, #b91c1c); }
.ask-tomi-btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* Call status pill */
.call-status {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.5rem 0.9rem; border-radius: 999px;
  background: var(--bg-sunk); border: 1px solid var(--border);
  font-size: 0.84rem;
}
.call-status .dot { width: 8px; height: 8px; border-radius: 999px; background: var(--text-subtle); }
.call-status.live .dot { background: var(--good); animation: pulse 1.4s infinite; }
.call-status.connecting .dot { background: var(--warn); animation: pulse 1s infinite; }
.call-status.error .dot { background: var(--bad); }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.35; } }

/* Transcript */
.transcript .turn {
  margin-bottom: 0.85rem; padding: 0.7rem 0.95rem;
  border-radius: 13px; font-size: 0.94rem; line-height: 1.55;
  border: 1px solid var(--border);
}
.transcript .turn.user    { background: rgba(34,211,238,0.08); border-color: rgba(34,211,238,0.28); }
.transcript .turn.assistant{ background: rgba(168,85,247,0.08); border-color: rgba(168,85,247,0.28); }
.transcript .turn.tool    { background: rgba(245,158,11,0.05); border-color: rgba(245,158,11,0.25); font-family: monospace; font-size: 0.82rem; opacity: 0.78; }
.transcript .turn .who {
  font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.09em;
  color: var(--text-muted); margin-bottom: 0.22rem;
}
.transcript .turn.user .who { color: var(--brand-cy); }
.transcript .turn.assistant .who { color: var(--brand); }

/* Summary panel */
.summary-card {
  background: var(--grad-soft), var(--bg-raised);
  border: 1px solid rgba(168,85,247,0.3);
  border-radius: var(--radius-lg);
  padding: 1rem 1.2rem;
  margin-bottom: 1rem;
}
.summary-card .head {
  font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.09em;
  color: var(--brand-3); margin-bottom: 0.45rem;
}
.summary-card h2 { font-size: 1.1rem; }

/* Key-value rows */
.kv {
  display: grid; grid-template-columns: max-content 1fr;
  gap: 0.4rem 0.85rem; font-size: 0.9rem; line-height: 1.55;
}
.kv dt { color: var(--text-muted); white-space: nowrap; }
.kv dd { margin: 0; }
.row { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; padding: 0.5rem 0; border-bottom: 1px solid var(--border); }
.row:last-child { border-bottom: none; }

.pill {
  display: inline-block; padding: 0.15rem 0.55rem;
  border-radius: 999px; font-size: 0.72rem; font-weight: 600;
  background: var(--bg-sunk); border: 1px solid var(--border); color: var(--text-muted);
}
.pill.ok  { background: rgba(22,163,74,0.16); border-color: rgba(22,163,74,0.4); color: var(--good-text); }
.pill.bad { background: rgba(239,68,68,0.16); border-color: rgba(239,68,68,0.4); color: var(--bad-text); }
.pill.warn{ background: rgba(245,158,11,0.16); border-color: rgba(245,158,11,0.4); color: #fcd34d; }
.pill.brand { background: rgba(168,85,247,0.16); border-color: rgba(168,85,247,0.4); color: #d8b4fe; }

.ticket {
  background: var(--bg-sunk);
  border: 1px dashed var(--border-strong);
  border-radius: 13px;
  padding: 1rem 1.1rem;
  font-size: 0.88rem;
  line-height: 1.6;
}
.ticket .ticket-head {
  font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.09em;
  color: var(--accent); margin-bottom: 0.5rem;
}

/* ============= BANK ============= */
.bank-header {
  background: linear-gradient(135deg, #0c4a6e 0%, #082f49 100%);
  color: #fff;
  padding: 1.6rem 1.8rem;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  display: flex; justify-content: space-between; align-items: center;
}
.bank-header .greeting { font-size: 0.78rem; opacity: 0.75; text-transform: uppercase; letter-spacing: 0.08em; }
.bank-header h2 { font-size: 1.3rem; margin: 0.2rem 0; }
.bank-header .branch { font-size: 0.82rem; opacity: 0.85; }
.bank-header .member { text-align: right; font-size: 0.82rem; opacity: 0.85; }
.bank-tabs { display: flex; gap: 0.4rem; padding: 0.75rem 1.4rem; border-bottom: 1px solid var(--border); background: var(--bg-elev); }
.bank-tab {
  padding: 0.55rem 1rem; border-radius: 10px; cursor: pointer; font-size: 0.88rem; font-weight: 600;
  background: transparent; color: var(--text-muted); border: 1px solid transparent;
  transition: all var(--t);
}
.bank-tab:hover { color: var(--text); }
.bank-tab.active { background: var(--bg-sunk); color: #fff; border-color: var(--border-strong); }
.account-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem; margin-bottom: 1.6rem;
}
.account-card {
  background: var(--bg-elev); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 1.1rem 1.2rem;
  transition: border-color var(--t), transform var(--t);
  cursor: pointer;
}
.account-card:hover { border-color: var(--brand-cy); transform: translateY(-2px); }
.account-card.selected { border-color: var(--brand-cy); box-shadow: 0 0 0 2px rgba(34,211,238,0.18); }
.account-card .acct-type { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.09em; color: var(--text-subtle); }
.account-card .acct-label { font-weight: 700; font-size: 1.02rem; margin: 0.15rem 0 0.3rem; }
.account-card .acct-number { font-family: monospace; font-size: 0.84rem; color: var(--text-muted); margin-bottom: 0.6rem; }
.account-card .acct-balance { font-size: 1.55rem; font-weight: 800; letter-spacing: -0.02em; }
.account-card .acct-balance.negative { color: #fca5a5; }
.account-card .acct-meta { font-size: 0.78rem; color: var(--text-muted); margin-top: 0.45rem; }

.tx-table {
  width: 100%; border-collapse: collapse; font-size: 0.9rem;
}
.tx-table th { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); padding: 0.6rem 0.4rem; text-align: left; border-bottom: 1px solid var(--border); }
.tx-table td { padding: 0.7rem 0.4rem; border-bottom: 1px solid var(--border); }
.tx-table .amt.pos { color: var(--good-text); font-weight: 600; }
.tx-table .amt.neg { color: #fca5a5; }
.tx-cat { display: inline-block; padding: 0.12rem 0.5rem; border-radius: 6px; background: var(--bg-sunk); font-size: 0.72rem; color: var(--text-muted); text-transform: capitalize; }

.advice-list .advice {
  background: rgba(34,211,238,0.07); border: 1px solid rgba(34,211,238,0.3);
  border-radius: 12px; padding: 0.85rem 1rem; margin-bottom: 0.6rem;
}
.advice .head { font-weight: 700; font-size: 0.95rem; margin-bottom: 0.3rem; }
.advice .save { float: right; color: var(--good-text); font-weight: 600; font-size: 0.85rem; }
.advice p { color: var(--text-muted); font-size: 0.88rem; margin: 0; }

/* ============= PIZZA ============= */
.pizza-hero {
  background: linear-gradient(135deg, #b91c1c 0%, #ea580c 100%); color: #fff;
  padding: 1.4rem 1.6rem; border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  display: flex; justify-content: space-between; align-items: center;
}
.pizza-hero h2 { font-size: 1.4rem; }
.pizza-hero .meta { font-size: 0.86rem; opacity: 0.9; }
.menu-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.8rem;
}
.menu-item {
  background: var(--bg-elev); border: 1px solid var(--border);
  border-radius: 12px; padding: 0.95rem;
  transition: border-color var(--t);
}
.menu-item:hover { border-color: #f97316; }
.menu-item .img { font-size: 2rem; margin-bottom: 0.4rem; }
.menu-item h4 { font-size: 0.98rem; }
.menu-item .desc { font-size: 0.82rem; color: var(--text-muted); margin: 0.25rem 0 0.5rem; line-height: 1.45; }
.menu-item .prices { font-size: 0.82rem; color: var(--text-muted); }
.cart-line {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0.55rem 0; border-bottom: 1px solid var(--border); font-size: 0.9rem;
}
.cart-line .desc { flex: 1; }
.cart-line .price { color: #fca5a5; font-weight: 600; }

/* ============= SECURITY ============= */
.alarm-banner {
  background: linear-gradient(135deg, #b91c1c 0%, #991b1b 100%); color: #fff;
  padding: 1.2rem 1.6rem; border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  display: flex; gap: 0.85rem; align-items: center;
}
.alarm-banner .pulse { width: 12px; height: 12px; border-radius: 999px; background: #fff; box-shadow: 0 0 0 0 rgba(255,255,255,0.6); animation: ring 1.4s infinite; }
@keyframes ring { 0% { box-shadow: 0 0 0 0 rgba(255,255,255,0.7); } 70% { box-shadow: 0 0 0 18px rgba(255,255,255,0); } }
.zone-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 0.6rem; }
.zone {
  padding: 0.7rem 0.9rem; border-radius: 11px;
  background: var(--bg-elev); border: 1px solid var(--border);
}
.zone.tripped { border-color: var(--bad); background: rgba(239,68,68,0.1); }
.zone.armed::before { content: '🔴 '; }
.zone:not(.armed)::before { content: '⚪ '; }
.zone .name { font-weight: 600; }
.zone .stat { font-size: 0.78rem; color: var(--text-muted); margin-top: 0.2rem; }

/* ============= RESTAURANT ============= */
.resto-hero { background: linear-gradient(135deg, #18181b 0%, #3f3f46 100%); color: #fff; padding: 1.5rem 1.8rem; border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
.resto-hero h2 { font-family: 'Playfair Display', serif; font-size: 1.6rem; }
.bookings-list .booking { padding: 0.7rem 0.9rem; background: var(--bg-elev); border: 1px solid var(--border); border-radius: 11px; margin-bottom: 0.5rem; display: flex; justify-content: space-between; align-items: center; font-size: 0.9rem; }
.booking.mine { border-color: var(--brand); background: rgba(168,85,247,0.07); }

/* ============= HEALTHCARE ============= */
.health-hero { background: linear-gradient(135deg, #064e3b 0%, #065f46 100%); color: #fff; padding: 1.5rem 1.7rem; border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
.appt-card { background: var(--bg-elev); border: 1px solid var(--border); border-radius: 12px; padding: 0.85rem 1rem; margin-bottom: 0.6rem; }
.lab-card { background: var(--bg-elev); border-left: 3px solid var(--good); padding: 0.7rem 0.9rem; margin-bottom: 0.5rem; border-radius: 8px; }
.lab-card.attention { border-left-color: var(--warn); }

/* ============= AUTO ============= */
.auto-hero { background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%); color: #fff; padding: 1.5rem 1.8rem; border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
.vehicle-card { display: flex; gap: 1rem; align-items: center; }
.vehicle-card .plate { font-family: monospace; padding: 0.3rem 0.65rem; background: rgba(255,255,255,0.12); border-radius: 6px; }

/* ============= REAL ESTATE ============= */
.realestate-hero { background: linear-gradient(135deg, #155e75 0%, #0e7490 100%); color: #fff; padding: 1.5rem 1.8rem; border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
.listing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1rem; }
.listing-card {
  background: var(--bg-elev); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden;
  transition: border-color var(--t), transform var(--t);
}
.listing-card:hover { transform: translateY(-3px); border-color: var(--brand-cy); }
.listing-card .hero-img { height: 110px; display: grid; place-items: center; font-size: 3rem;
  background: linear-gradient(135deg, rgba(34,211,238,0.18), rgba(168,85,247,0.18)); }
.listing-card .body { padding: 0.85rem 1rem; }
.listing-card .price { font-size: 1.3rem; font-weight: 800; color: #fff; }
.listing-card .addr { color: var(--text-muted); font-size: 0.86rem; margin: 0.15rem 0; }

/* ============= INSURANCE ============= */
.insurance-hero { background: linear-gradient(135deg, #5b21b6 0%, #6d28d9 100%); color: #fff; padding: 1.5rem 1.8rem; border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
.policy-card { background: var(--bg-elev); border: 1px solid var(--border); border-radius: 12px; padding: 1rem 1.15rem; margin-bottom: 0.6rem; }
.policy-card .label { font-weight: 700; font-size: 1rem; }
.policy-card .premium { float: right; color: var(--brand-cy); font-weight: 700; }

/* ============= HOTEL ============= */
.hotel-hero { background: linear-gradient(135deg, #831843 0%, #9d174d 100%); color: #fff; padding: 1.5rem 1.8rem; border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
.menu-section h4 { margin: 1rem 0 0.5rem; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); }

/* ============= RETAIL ============= */
.retail-hero { background: linear-gradient(135deg, #be185d 0%, #9d174d 100%); color: #fff; padding: 1.5rem 1.8rem; border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
.order-card { background: var(--bg-elev); border: 1px solid var(--border); border-radius: 12px; padding: 1rem 1.15rem; margin-bottom: 0.6rem; }
.order-card .order-id { font-family: monospace; color: var(--text-muted); font-size: 0.82rem; }

/* ============= DENTAL ============= */
.dental-hero { background: linear-gradient(135deg, #115e59 0%, #134e4a 100%); color: #fff; padding: 1.5rem 1.8rem; border-radius: var(--radius-lg) var(--radius-lg) 0 0; }

/* ============= LEGAL ============= */
.legal-hero { background: linear-gradient(135deg, #1f2937 0%, #374151 100%); color: #fff; padding: 1.5rem 1.8rem; border-radius: var(--radius-lg) var(--radius-lg) 0 0; font-family: 'Playfair Display', serif; }

/* ============= SAAS ============= */
.saas-hero { background: linear-gradient(135deg, #312e81 0%, #4338ca 100%); color: #fff; padding: 1.5rem 1.8rem; border-radius: var(--radius-lg) var(--radius-lg) 0 0; }

/* ============= HVAC ============= */
.hvac-hero { background: linear-gradient(135deg, #155e75 0%, #0c4a6e 100%); color: #fff; padding: 1.5rem 1.8rem; border-radius: var(--radius-lg) var(--radius-lg) 0 0; }

/* ---- Toasts ---- */
.toast-host { position: fixed; top: 1rem; right: 1rem; z-index: 1000; display: flex; flex-direction: column; gap: 0.5rem; max-width: 360px; }
.toast {
  background: var(--bg-raised); border: 1px solid var(--border); border-radius: 11px;
  padding: 0.7rem 1rem; box-shadow: var(--shadow); font-size: 0.88rem;
  animation: toast-in 200ms ease;
}
@keyframes toast-in { from { opacity: 0; transform: translateY(-8px);} to { opacity: 1; transform: translateY(0);} }
.toast.ok  { border-left: 3px solid var(--good); }
.toast.err { border-left: 3px solid var(--bad); }
.toast.info{ border-left: 3px solid var(--brand-cy); }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 9px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-subtle); }

/* ---- Admin tables ---- */
table.data { width: 100%; border-collapse: collapse; font-size: 0.92rem; background: var(--bg-raised); border-radius: var(--radius-lg); overflow: hidden; }
table.data th, table.data td { padding: 0.7rem 0.95rem; text-align: left; border-bottom: 1px solid var(--border); }
table.data th { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.07em; color: var(--text-muted); background: var(--bg-sunk); }
table.data tbody tr:hover { background: rgba(168,85,247,0.04); }
table.data td.actions { white-space: nowrap; text-align: right; }

/* ---- Stat cards ---- */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; margin-bottom: 2rem; }
.stat-card { background: var(--bg-raised); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.2rem 1.3rem; }
.stat-card .label { font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); font-weight: 700; }
.stat-card .value { font-size: 2.05rem; font-weight: 800; letter-spacing: -0.025em; margin-top: 0.4rem; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat-card .sub { font-size: 0.82rem; color: var(--text-muted); margin-top: 0.2rem; }

/* ---- Multi-select pills (for industry grants) ---- */
.industry-picker { display: flex; flex-wrap: wrap; gap: 0.4rem; padding: 0.5rem; background: var(--bg-sunk); border: 1px solid var(--border); border-radius: 11px; }
.industry-pick {
  display: inline-flex; align-items: center; gap: 0.35rem;
  padding: 0.4rem 0.75rem; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--border); background: var(--bg-elev);
  font-size: 0.85rem; user-select: none; transition: all var(--t);
}
.industry-pick.on { background: rgba(168,85,247,0.18); border-color: var(--brand); color: #fff; }
.industry-pick:hover { border-color: var(--brand); }

/* Dialog */
dialog {
  background: var(--bg-raised); color: var(--text); border: 1px solid var(--border);
  border-radius: var(--radius-xl); box-shadow: var(--shadow); padding: 0; max-width: 560px; width: 92vw;
}
dialog::backdrop { background: rgba(0,0,0,0.7); backdrop-filter: blur(8px); }
dialog form, dialog .dialog-body { padding: 1.6rem 1.7rem; }
dialog h3 { font-size: 1.2rem; margin-bottom: 0.6rem; }
dialog .actions { display: flex; justify-content: flex-end; gap: 0.55rem; margin-top: 1.3rem; }

/* Recording / review */
.review-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 1rem 0; }
.score-card { background: var(--bg-elev); border: 1px solid var(--border); border-radius: 11px; padding: 0.85rem 1rem; text-align: center; }
.score-card .label { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.07em; color: var(--text-muted); font-weight: 700; }
.score-card .val { font-size: 1.65rem; font-weight: 800; margin-top: 0.25rem; }
.score-card.good .val { color: var(--good-text); }
.score-card.warn .val { color: #fcd34d; }
.score-card.bad .val { color: var(--bad-text); }

.sentiment-bar { display: flex; height: 8px; border-radius: 8px; overflow: hidden; background: var(--bg-sunk); margin: 0.6rem 0; }
.sentiment-bar .seg { height: 100%; }
.sentiment-bar .seg.pos { background: var(--good); }
.sentiment-bar .seg.neu { background: var(--warn); }
.sentiment-bar .seg.neg { background: var(--bad); }

/* Password gate */
.gate-card { max-width: 400px; margin: 4rem auto; background: var(--bg-raised); border: 1px solid var(--border); border-radius: var(--radius-xl); padding: 2rem 1.8rem; }
