/* FOMEDA Intelligence Console - application styles */

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: var(--accent-hover); text-decoration: none; }
a:hover { color: var(--accent); }

h1,h2,h3,h4,h5 { font-family: var(--font-display); font-weight: 600; line-height: 1.2; letter-spacing: -0.01em; }
h1 { font-size: 26px; } h2 { font-size: 20px; } h3 { font-size: 16px; }

.mono { font-family: var(--font-mono); }
.label {
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--text-tertiary);
}
.muted { color: var(--text-secondary); }
.dim { color: var(--text-tertiary); }

/* Scrollbar */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg-sunk); }
::-webkit-scrollbar-thumb { background: var(--border-light); border-radius: 6px; border: 2px solid var(--bg-sunk); }
::-webkit-scrollbar-thumb:hover { background: var(--border-strong); }
::selection { background: var(--accent-dim); color: #fff; }

/* ============ LOGIN ============ */
.login-page {
  min-height: 100vh; display: grid; place-items: center;
  background:
    radial-gradient(900px 500px at 50% -10%, rgba(37,99,235,0.16), transparent 60%),
    linear-gradient(180deg, #0c0c0e, #060607);
  position: relative; overflow: hidden;
}
.login-page::before {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 48px 48px; opacity: 0.18; mask-image: radial-gradient(circle at 50% 30%, #000, transparent 70%);
}
.login-card {
  position: relative; z-index: 1;
  width: 100%; max-width: 400px; margin: 24px;
  background: rgba(19,19,20,0.92); backdrop-filter: blur(8px);
  border: 1px solid var(--border-light); border-radius: var(--radius-lg);
  padding: 40px 36px; box-shadow: var(--shadow-lg);
}
.login-brand { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-bottom: 28px; text-align: center; }
.login-brand__mark, .brand__mark {
  display: grid; place-items: center; width: 44px; height: 44px;
  background: var(--accent); border-radius: var(--radius); color: #fff;
}
.login-brand__mark svg, .brand__mark svg { width: 22px; height: 22px; }
.brand__text { font-family: var(--font-display); font-weight: 700; font-size: 18px; letter-spacing: 0.02em; }
.login-brand__tagline { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-tertiary); }
.login-form { display: flex; flex-direction: column; gap: 16px; }
.login-error { background: var(--danger-dim); border: 1px solid rgba(239,68,68,0.4); color: #fecaca; padding: 10px 14px; border-radius: var(--radius-sm); font-size: 13px; margin-bottom: 16px; }
.login-success { background: var(--success-dim); border: 1px solid rgba(34,197,94,0.4); color: #bbf7d0; padding: 10px 14px; border-radius: var(--radius-sm); font-size: 13px; margin-bottom: 16px; }
.form-row { display: flex; justify-content: flex-end; }
.forgot-link { font-size: 12.5px; color: var(--text-tertiary); }
.login-footer { margin-top: 22px; text-align: center; color: var(--text-dim); font-size: 12px; }
.login-partners { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--border); text-align: center; }
.login-partners .label { display: block; margin-bottom: 10px; font-size: 10px; }
.login-partners__row { display: flex; align-items: center; justify-content: center; gap: 20px; flex-wrap: wrap; }
.partner-chip { background: #fff; border-radius: 4px; padding: 4px 10px; font-size: 11px; font-weight: 600; color: #111; display: inline-flex; align-items: center; height: 24px; }
/* Partner logos (transparent PNGs; -white variants for dark surfaces) */
.partner-logo { width: auto; opacity: 0.9; transition: opacity var(--transition); }
.partner-logo:hover { opacity: 1; }
.partner-logo--basic { height: 17px; }
.partner-logo--evolve { height: 28px; }
.partner-logo--ipsos { height: 38px; border-radius: 4px; }

/* ============ FORMS ============ */
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: 12px; font-weight: 500; color: var(--text-secondary); }
input[type=text], input[type=email], input[type=password], input[type=search], select, textarea {
  background: var(--bg-sunk); border: 1px solid var(--border-light); color: var(--text);
  border-radius: var(--radius-sm); padding: 10px 12px; font-size: 14px; font-family: var(--font-body);
  width: 100%; transition: border-color var(--transition), box-shadow var(--transition);
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-dim); }
input::placeholder { color: var(--text-dim); }

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-body); font-size: 13px; font-weight: 600;
  padding: 9px 16px; border-radius: var(--radius-sm); border: 1px solid transparent;
  cursor: pointer; transition: all var(--transition); white-space: nowrap; line-height: 1;
}
.btn svg { width: 15px; height: 15px; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); color: #fff; }
.btn-ghost { background: transparent; color: var(--text-secondary); border-color: var(--border-light); }
.btn-ghost:hover { background: var(--bg-hover); color: var(--text); }
.btn-outline { background: transparent; color: var(--accent-hover); border-color: var(--accent-line); }
.btn-outline:hover { background: var(--accent-dim); }
.btn-block { width: 100%; }
.btn-sm { padding: 6px 11px; font-size: 12px; }

/* ============ APP SHELL ============ */
.app { display: grid; grid-template-columns: var(--sidebar-w) 1fr; min-height: 100vh; }
.sidebar {
  background: var(--bg-sunk); border-right: 1px solid var(--border);
  display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh;
}
.sidebar__brand { display: flex; align-items: center; gap: 10px; padding: 16px 18px; border-bottom: 1px solid var(--border); height: var(--topbar-h); }
.sidebar__brand .brand__mark { width: 32px; height: 32px; border-radius: 6px; }
.sidebar__brand .brand__mark svg { width: 17px; height: 17px; }
.sidebar__brand .brand__text { font-size: 15px; }
.sidebar__nav { flex: 1; overflow-y: auto; padding: 12px 10px; }
.nav-group__label { padding: 14px 10px 6px; font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-dim); }
.nav-item {
  display: flex; align-items: center; gap: 11px; padding: 9px 12px; border-radius: var(--radius-sm);
  color: var(--text-secondary); font-size: 13.5px; font-weight: 500; margin-bottom: 2px;
  transition: all var(--transition); cursor: pointer; position: relative;
}
.nav-item svg { width: 17px; height: 17px; flex-shrink: 0; }
.nav-item:hover { background: var(--bg-hover); color: var(--text); }
.nav-item.active { background: var(--accent-dim); color: var(--text); }
.nav-item.active::before { content: ""; position: absolute; left: 0; top: 8px; bottom: 8px; width: 3px; background: var(--accent); border-radius: 0 3px 3px 0; }
.nav-item__lock { margin-left: auto; opacity: 0.5; }
.nav-item__badge { margin-left: auto; font-family: var(--font-mono); font-size: 10px; background: var(--accent); color: #fff; padding: 1px 6px; border-radius: 10px; }
.sidebar__foot { padding: 12px 14px; border-top: 1px solid var(--border); }
.sidebar__partners { display: flex; align-items: center; gap: 14px; padding: 2px 4px 12px; opacity: 0.55; transition: opacity var(--transition); }
.sidebar__partners:hover { opacity: 0.9; }
.sidebar__partners img { width: auto; }
.sidebar__user { display: flex; align-items: center; gap: 10px; }
.avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--accent-dim); color: var(--accent-hover); display: grid; place-items: center; font-weight: 600; font-size: 13px; }
.sidebar__user-meta { overflow: hidden; }
.sidebar__user-name { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sidebar__user-sub { font-size: 11px; color: var(--text-tertiary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.main { display: flex; flex-direction: column; min-width: 0; }
.topbar {
  height: var(--topbar-h); border-bottom: 1px solid var(--border); background: rgba(10,10,10,0.8);
  backdrop-filter: blur(8px); position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 16px; padding: 0 24px;
}
.topbar__title { font-family: var(--font-display); font-weight: 600; font-size: 16px; }
.topbar__spacer { flex: 1; }

/* Segmented toggle (Federation / My Chain) */
.segmented { display: inline-flex; background: var(--bg-sunk); border: 1px solid var(--border-light); border-radius: var(--radius-sm); padding: 3px; gap: 2px; }
.segmented a, .segmented button { font-family: var(--font-body); font-size: 12.5px; font-weight: 600; color: var(--text-tertiary); padding: 5px 12px; border-radius: 4px; border: none; background: transparent; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.segmented a.active, .segmented button.active { background: var(--accent); color: #fff; }
.segmented svg { width: 14px; height: 14px; }

.content { padding: 24px; max-width: 1480px; width: 100%; }
.page-head { margin-bottom: 22px; }
.page-head h1 { margin-bottom: 4px; }
.page-head p { color: var(--text-secondary); font-size: 13.5px; }

/* ============ CARDS / GRID ============ */
.grid { display: grid; gap: 16px; }
.grid > * { min-width: 0; } /* prevent grid blowout from min-content (canvas/tables) */
.card canvas { max-width: 100%; }
/* Asymmetric split that collapses on mobile (ratio set per-page via --split) */
.grid-split { grid-template-columns: var(--split, 1.6fr) 1fr; }
/* Admin invite row: inline form that collapses on smaller screens */
.invite-grid { grid-template-columns: 1.2fr 1.4fr 1.2fr 0.8fr 0.8fr auto; gap: 12px; align-items: end; }
@media (max-width: 1100px) { .invite-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .invite-grid { grid-template-columns: 1fr; } }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; }
.card__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; flex-wrap: wrap; gap: 6px 10px; }
.card__title { font-family: var(--font-display); font-size: 14px; font-weight: 600; }
.card__sub { font-size: 12px; color: var(--text-tertiary); }

/* KPI stat card */
.stat { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 18px; position: relative; overflow: hidden; }
.stat__label { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-tertiary); }
.stat__value { font-family: var(--font-display); font-size: 28px; font-weight: 600; margin: 6px 0 2px; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.stat__delta { font-family: var(--font-mono); font-size: 12px; }
.stat__spark { position: absolute; left: 0; right: 0; bottom: 0; height: 30px; opacity: 0.8; pointer-events: none; }
.stat__spark canvas { width: 100% !important; height: 30px !important; }
.delta-up { color: var(--success); } .delta-down { color: var(--danger); } .delta-flat { color: var(--text-tertiary); }

/* ============ TABLES ============ */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); }
table.data { width: 100%; border-collapse: collapse; font-size: 13px; font-variant-numeric: tabular-nums; }
table.data thead th {
  background: var(--bg-elevated); text-align: left; padding: 10px 14px; font-family: var(--font-mono);
  font-size: 10.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-tertiary);
  border-bottom: 1px solid var(--border); white-space: nowrap; position: sticky; top: 0;
}
table.data tbody td { padding: 11px 14px; border-bottom: 1px solid var(--border); }
table.data tbody tr:last-child td { border-bottom: none; }
table.data tbody tr:hover { background: var(--bg-hover); }
table.data tr.is-self { background: var(--accent-dim); }
table.data tr.is-self:hover { background: rgba(37,99,235,0.2); }
.col-mono { font-family: var(--font-mono); }
.col-right { text-align: right; }
.col-num { font-family: var(--font-mono); text-align: right; font-variant-numeric: tabular-nums; }
/* header cells must win over `table.data thead th` (higher specificity) */
table.data thead th.col-right, table.data thead th.col-num { text-align: right; }

/* ============ BADGES ============ */
.badge { display: inline-flex; align-items: center; gap: 5px; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.04em; text-transform: uppercase; padding: 3px 8px; border-radius: 4px; font-weight: 600; }
.badge--blue { background: var(--accent-dim); color: var(--accent-hover); }
.badge--green { background: var(--success-dim); color: var(--success); }
.badge--amber { background: var(--warning-dim); color: var(--warning); }
.badge--red { background: var(--danger-dim); color: #fca5a5; }
.badge--gray { background: var(--bg-hover); color: var(--text-tertiary); }
.badge--self { background: var(--accent); color: #fff; }

/* CSS bar (no chart lib needed) */
.bar-track { display: block; background: var(--bg-sunk); border-radius: 4px; height: 8px; overflow: hidden; }
.bar-fill { display: block; height: 100%; background: var(--accent); border-radius: 4px; }
.bar-row { display: grid; grid-template-columns: 130px 1fr 56px; align-items: center; gap: 12px; padding: 6px 0; font-size: 13px; }
.bar-row__val { font-family: var(--font-mono); text-align: right; font-size: 12.5px; color: var(--text-secondary); font-variant-numeric: tabular-nums; }

/* Pills / tabs */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 18px; }
.tab { padding: 9px 14px; font-size: 13px; font-weight: 500; color: var(--text-tertiary); cursor: pointer; border-bottom: 2px solid transparent; }
.tab.active { color: var(--text); border-bottom-color: var(--accent); }

/* Callout */
.callout { background: var(--accent-dim); border: 1px solid var(--accent-line); border-radius: var(--radius); padding: 14px 16px; display: flex; gap: 12px; }
.callout > div { min-width: 0; }
.callout--insight .insight-line { padding: 3px 0; }
.callout--insight .insight-line + .insight-line { border-top: 1px dashed rgba(37,99,235,0.25); margin-top: 4px; padding-top: 7px; }

/* Chart export buttons (paid perk) */
.card__tools { display: inline-flex; gap: 4px; margin-left: auto; }
.card__head .card__sub + .card__tools { margin-left: 8px; }
.btn-chip { background: transparent; border: 1px solid var(--border-light); color: var(--text-tertiary); border-radius: 4px; padding: 2px 8px; font-size: 10.5px; font-family: var(--font-mono); letter-spacing: 0.04em; cursor: pointer; transition: all var(--transition); }
.btn-chip:hover { color: var(--text); border-color: var(--border-strong); background: var(--bg-hover); }
.callout svg { width: 18px; height: 18px; color: var(--accent-hover); flex-shrink: 0; margin-top: 1px; }
.callout__title { font-weight: 600; font-size: 13.5px; margin-bottom: 2px; }
.callout__body { font-size: 13px; color: var(--text-secondary); }

/* Tier lock overlay */
.locked { position: relative; }
.lock-note { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text-tertiary); background: var(--bg-elevated); border: 1px solid var(--border-light); padding: 4px 10px; border-radius: 20px; }
.lock-note svg { width: 13px; height: 13px; }

/* Illustrative-data banner */
.illus-tag { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--warning); background: var(--warning-dim); padding: 2px 8px; border-radius: 4px; }

/* Utilities */
.flex { display: flex; } .items-center { align-items: center; } .justify-between { justify-content: space-between; }
.gap-sm { gap: 8px; } .gap-md { gap: 16px; }
.mt-sm { margin-top: 8px; } .mt-md { margin-top: 16px; } .mt-lg { margin-top: 24px; }
.mb-sm { margin-bottom: 8px; } .mb-md { margin-bottom: 16px; } .mb-lg { margin-bottom: 24px; }
.text-c { text-align: center; }
.empty-state { text-align: center; padding: 48px 20px; color: var(--text-tertiary); }
.empty-state svg { width: 32px; height: 32px; margin-bottom: 12px; opacity: 0.5; }

/* Responsive */
@media (max-width: 1100px) { .grid-4 { grid-template-columns: repeat(2,1fr); } .grid-3 { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 860px) {
  .app { grid-template-columns: 1fr; }
  .sidebar { position: fixed; left: 0; top: 0; z-index: 50; transform: translateX(-100%); transition: transform var(--transition); width: 260px; }
  .sidebar.open { transform: translateX(0); }
  .grid-2, .grid-3, .grid-4, .grid-split { grid-template-columns: 1fr; }
}
.menu-toggle { display: none; background: none; border: none; color: var(--text); cursor: pointer; }
@media (max-width: 860px) { .menu-toggle { display: inline-flex; } }

/* Narrow phones: topbar tools scroll within the bar instead of widening the page */
@media (max-width: 640px) {
  .topbar { gap: 10px; padding: 0 14px; overflow-x: auto; scrollbar-width: none; }
  .topbar::-webkit-scrollbar { display: none; }
  .topbar__title { font-size: 14px; white-space: nowrap; }
  .segmented a, .segmented button { padding: 5px 9px; font-size: 12px; white-space: nowrap; }
  .cat-switch { margin-left: 8px; padding-left: 8px; }
  .content { padding: 16px 14px; }
}

/* Category switcher */
.cat-switch { display: inline-flex; align-items: center; gap: 8px; margin-left: 18px; padding-left: 18px; border-left: 1px solid var(--border); }
.cat-switch svg { width: 15px; height: 15px; color: var(--text-tertiary); }
.cat-select { background: var(--bg-sunk); border: 1px solid var(--border-light); color: var(--text); border-radius: var(--radius-sm); padding: 6px 28px 6px 10px; font-size: 12.5px; font-weight: 500; font-family: var(--font-body); width: auto; cursor: pointer; 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='%236E6E78' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 9px center; }
.cat-select:focus { box-shadow: 0 0 0 3px var(--accent-dim); }

/* Overview */
.overview-hero { padding: 28px 28px 32px; border: 1px solid var(--border); border-radius: var(--radius-lg); margin-bottom: 24px; background: radial-gradient(900px 300px at 0% -20%, rgba(37,99,235,0.14), transparent 60%), var(--bg-card); }
.overview-hero .label { display: block; margin-bottom: 12px; }
.overview-hero h1 { font-size: 34px; margin-bottom: 12px; }
.overview-hero p { color: var(--text-secondary); font-size: 15px; max-width: 760px; line-height: 1.6; }
.module-card { display: block; transition: transform var(--transition), border-color var(--transition); }
.module-card:hover { transform: translateY(-2px); border-color: var(--accent-line); }

/* Peer benchmark percentile bars */
.pbench-row { display: grid; grid-template-columns: 200px 1fr 130px; align-items: center; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.pbench-row:last-of-type { border-bottom: none; }
.pbench-name { font-weight: 600; font-size: 13px; }
.pbar { position: relative; height: 8px; background: var(--bg-sunk); border-radius: 4px; }
.pbar__iqr { position: absolute; height: 100%; background: var(--border-strong); border-radius: 4px; }
.pbar__median { position: absolute; width: 2px; height: 16px; top: -4px; background: var(--text-secondary); }
.pbar__you { position: absolute; width: 13px; height: 13px; border-radius: 50%; top: -3px; transform: translateX(-50%); background: var(--accent); border: 2px solid var(--text); box-shadow: 0 0 0 3px var(--accent-dim); }

/* Chat (Ask AI) */
.chat-wrap { display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.chat-msgs { height: 56vh; min-height: 360px; overflow-y: auto; padding: 20px; display: flex; flex-direction: column; gap: 16px; }
.chat-msg { display: flex; gap: 10px; max-width: 88%; }
.chat-msg.user { align-self: flex-end; flex-direction: row-reverse; }
.chat-av { width: 30px; height: 30px; border-radius: 8px; background: var(--accent-dim); color: var(--accent-hover); display: grid; place-items: center; flex-shrink: 0; }
.chat-av svg { width: 16px; height: 16px; }
.chat-bubble { background: var(--bg-elevated); border: 1px solid var(--border); border-radius: 12px; padding: 12px 15px; font-size: 14px; line-height: 1.6; }
.chat-msg.user .chat-bubble { background: var(--accent); color: #fff; border-color: transparent; }
.chat-suggest { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.suggest-chip { background: var(--bg-card); border: 1px solid var(--border-light); color: var(--text-secondary); border-radius: 20px; padding: 6px 12px; font-size: 12.5px; cursor: pointer; font-family: var(--font-body); transition: all var(--transition); }
.suggest-chip:hover { background: var(--accent-dim); color: var(--text); border-color: var(--accent-line); }
.chat-input { display: flex; gap: 10px; padding: 14px; border-top: 1px solid var(--border); background: var(--bg-sunk); }
.chat-input input { flex: 1; }
.chat-input .btn { padding: 9px 14px; }
.chat-sql { margin-top: 10px; font-size: 12px; }
.chat-sql summary { cursor: pointer; color: var(--text-tertiary); font-family: var(--font-mono); font-size: 11px; }
.chat-sql pre { background: var(--bg-sunk); border: 1px solid var(--border); border-radius: 6px; padding: 10px; margin-top: 8px; overflow-x: auto; font-family: var(--font-mono); font-size: 11.5px; color: var(--text-secondary); white-space: pre-wrap; }
.typing { display: inline-flex; gap: 4px; }
.typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--text-tertiary); animation: blink 1.2s infinite both; }
.typing span:nth-child(2) { animation-delay: 0.2s; } .typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes blink { 0%, 80%, 100% { opacity: 0.2; } 40% { opacity: 1; } }

/* Guided demo tour */
.tour-veil { position: fixed; inset: 0; background: rgba(4,4,6,0.6); z-index: 90; backdrop-filter: blur(1px); }
.tour-spot { position: relative; z-index: 95; box-shadow: 0 0 0 3px var(--accent), 0 0 36px rgba(37,99,235,0.45); border-radius: var(--radius); }
.tour-card {
  position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%);
  width: min(520px, calc(100vw - 32px)); z-index: 100;
  background: var(--bg-elevated); border: 1px solid var(--accent-line); border-radius: var(--radius-lg);
  padding: 18px 20px; box-shadow: var(--shadow-lg);
}
.tour-card__step { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.14em; color: var(--accent-hover); margin-bottom: 6px; }
.tour-card__title { font-family: var(--font-display); font-size: 16px; font-weight: 600; margin-bottom: 6px; }
.tour-card__body { font-size: 13px; color: var(--text-secondary); line-height: 1.6; }
.tour-card__actions { display: flex; justify-content: space-between; gap: 10px; margin-top: 14px; }

/* Paywall */
.paywall { max-width: 560px; margin: 40px auto; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 40px; text-align: center; }
.paywall__icon { width: 56px; height: 56px; border-radius: 50%; background: var(--accent-dim); display: grid; place-items: center; margin: 0 auto 18px; }
.paywall__icon svg { width: 26px; height: 26px; color: var(--accent-hover); }
.paywall__title { font-size: 20px; margin-bottom: 8px; }
.paywall__body { color: var(--text-secondary); font-size: 14px; margin-bottom: 24px; }
.paywall__features { display: grid; gap: 10px; text-align: left; max-width: 380px; margin: 0 auto 26px; }
.paywall__features div { display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--text-secondary); }
.paywall__features svg { width: 16px; height: 16px; color: var(--success); flex-shrink: 0; }
