/* styles.css — PersonaGen Demo & Unified Portal — Requires tokens.css */

/* ── Base ── */
body { background:var(--bg); color:var(--text); font-family:var(--font-body); overflow-x:hidden; }
.grain-overlay { position:fixed; inset:0; pointer-events:none; z-index:0; opacity:0.025; background-image:url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E"); }
.cursor-glow { display:none; }

/* ── Layout ── */
.slide { padding:5rem 0; position:relative; z-index:1; }
.slide-inner { max-width:var(--container-xl); margin:0 auto; padding:0 2rem; }
.slide-hero { min-height:100vh; display:flex; flex-direction:column; align-items:center; justify-content:center; text-align:center; padding:6rem 2rem 4rem; }

/* ── Section labels ── */
.section-tag { display:inline-block; padding:4px 14px; border-radius:var(--radius-full); font-size:var(--text-xs); font-weight:700; letter-spacing:var(--tracking-widest); text-transform:uppercase; margin-bottom:1rem; }
.tag-pink    { background:var(--rose-soft);    color:var(--rose); }
.tag-green   { background:var(--success-soft); color:var(--success); }
.tag-blue    { background:var(--cyan-soft);    color:var(--cyan); }
.tag-violet  { background:var(--accent-soft);  color:var(--accent); }
.tag-orange  { background:var(--gold-soft);    color:var(--gold); }
.tag-teal    { background:var(--cyan-soft);    color:var(--cyan); }

/* ── Hero ── */
.hero-badge { display:inline-flex; align-items:center; gap:8px; padding:7px 18px; border-radius:var(--radius-full); background:var(--accent-soft); border:1px solid var(--accent-mid); font-size:var(--text-sm); font-weight:600; letter-spacing:var(--tracking-wider); text-transform:uppercase; color:var(--accent); margin-bottom:2rem; }
.hero-title { font-family:var(--font-display); font-size:clamp(2.6rem,6vw,4.8rem); font-weight:600; line-height:1.1; margin-bottom:1.5rem; }
.gradient-text { background:var(--gradient); -webkit-background-clip:text; -webkit-text-fill-color:transparent; background-clip:text; }
.hero-subtitle { max-width:560px; color:var(--text-muted); font-size:1.05rem; line-height:1.7; margin:0 auto 2.5rem; }
.hero-cta-row { display:flex; gap:1rem; justify-content:center; flex-wrap:wrap; margin-bottom:3rem; }
.hero-stats { display:grid; grid-template-columns:repeat(4,1fr); gap:1rem; max-width:700px; width:100%; }
.stat-card { background:var(--surface); border:1px solid var(--border); border-radius:var(--radius); padding:1.25rem 1rem; text-align:center; }
.stat-number { display:block; font-family:var(--font-display); font-size:2rem; font-weight:700; background:var(--gradient); -webkit-background-clip:text; -webkit-text-fill-color:transparent; background-clip:text; }
.stat-label { font-size:0.7rem; text-transform:uppercase; letter-spacing:0.1em; color:var(--text-dim); font-weight:600; margin-top:4px; display:block; }
.scroll-hint { margin-top:2rem; font-size:0.75rem; color:var(--text-dim); display:flex; align-items:center; gap:6px; }

/* ── Buttons ── */
.btn-primary { display:inline-flex; align-items:center; gap:8px; padding:12px 28px; border-radius:12px; background:var(--gradient-subtle); color:#fff; font-weight:600; font-size:0.9rem; text-decoration:none; border:none; cursor:pointer; transition:transform .2s,box-shadow .3s; font-family:var(--font-body); }
.btn-primary:hover { transform:translateY(-2px); box-shadow:var(--shadow-accent); }
.btn-ghost { display:inline-flex; align-items:center; gap:8px; padding:12px 28px; border-radius:12px; border:1px solid var(--border-strong); color:var(--text-muted); font-weight:600; font-size:0.9rem; text-decoration:none; cursor:pointer; background:transparent; transition:border-color .2s,color .2s; font-family:var(--font-body); }
.btn-ghost:hover { border-color:var(--accent-mid); color:var(--text); }
.btn-full { width:100%; justify-content:center; }
.btn-lg { padding:16px 40px; font-size:1rem; }

/* ── Section headings ── */
.section-title { font-family:var(--font-display); font-size:clamp(1.8rem,3.5vw,2.6rem); font-weight:600; line-height:1.2; margin-bottom:0.75rem; }
.subtitle-muted { color:var(--text-muted); font-size:0.7em; }
.section-lead { color:var(--text-muted); font-size:0.95rem; line-height:1.7; max-width:640px; margin-bottom:2.5rem; }

/* ── Glass card ── */
.glass-card { background:var(--surface); border:1px solid var(--border); border-radius:var(--radius); padding:1.75rem; }
.card-heading { font-size:0.95rem; font-weight:600; display:flex; align-items:center; gap:8px; margin-bottom:1.5rem; color:var(--text); }

/* ── Form fields ── */
.gen-field { margin-bottom:1.25rem; }
.gen-field label { display:block; font-size:0.72rem; font-weight:700; text-transform:uppercase; letter-spacing:0.1em; color:var(--text-dim); margin-bottom:0.5rem; }
select, input[type="text"] { width:100%; background:var(--surface-2); border:1px solid var(--border); border-radius:var(--radius-sm); padding:10px 14px; color:var(--text); font-family:var(--font-body); font-size:0.88rem; outline:none; transition:border-color .2s; }
select:focus, input[type="text"]:focus { border-color:var(--accent-mid); }
select option { background:var(--surface-2); }

/* ── Chips / platform toggles ── */
.platform-toggles { display:flex; flex-wrap:wrap; gap:6px; }
.chip { display:inline-flex; align-items:center; gap:5px; padding:6px 12px; border-radius:var(--radius-xs); font-size:0.76rem; font-weight:500; background:var(--surface-2); border:1px solid var(--border); color:var(--text-dim); cursor:pointer; transition:all .2s; user-select:none; }
.chip.active { border-color:var(--accent-mid); color:var(--accent); background:var(--accent-soft); }
.chip-dot { width:5px; height:5px; border-radius:50%; background:var(--text-dim); }
.chip.active .chip-dot { background:var(--accent); }

/* ── Scout layout ── */
.scout-layout { display:grid; grid-template-columns:1fr 1.3fr; gap:1.5rem; margin-bottom:1.5rem; }
.scout-mode-toggle { display:flex; gap:6px; }
.smt-btn { flex:1; padding:8px; border-radius:var(--radius-xs); border:1px solid var(--border); background:var(--surface-2); color:var(--text-dim); font-size:0.75rem; font-weight:500; cursor:pointer; display:flex; align-items:center; justify-content:center; gap:6px; transition:all .2s; font-family:var(--font-body); }
.smt-btn.active { border-color:var(--accent-mid); color:var(--accent); background:var(--accent-soft); }
.scout-url-row { display:flex; gap:8px; }
.scout-input { flex:1; }
.scout-btn { flex-shrink:0; padding:10px 14px; }
.scout-results { background:var(--surface); border:1px solid var(--border); border-radius:var(--radius); padding:1.75rem; min-height:280px; }

/* ── Placeholder ── */
.gen-placeholder { display:flex; flex-direction:column; align-items:center; justify-content:center; height:100%; min-height:200px; gap:1rem; text-align:center; }
.gen-placeholder-icon { color:var(--text-dim); opacity:0.4; }
.gen-placeholder p { color:var(--text-muted); font-size:0.9rem; line-height:1.6; }
.gen-placeholder span { color:var(--text-dim); font-size:0.8rem; }

/* ── Generator layout ── */
.generator-layout { display:grid; grid-template-columns:1fr 1.4fr; gap:1.5rem; }
.gen-panel { }
.gen-output { background:var(--surface); border:1px solid var(--border); border-radius:var(--radius); padding:1.75rem; min-height:380px; }

/* ── Trend strip ── */
.trend-strip { background:var(--surface); border:1px solid var(--border); border-radius:var(--radius); padding:1.25rem 1.5rem; }
.trend-strip-header { display:flex; align-items:center; justify-content:space-between; margin-bottom:0.75rem; }
.trend-strip-header h4 { font-size:0.85rem; font-weight:600; display:flex; align-items:center; gap:8px; color:var(--text); }
.trend-live-dot { font-size:0.72rem; color:var(--success); display:flex; align-items:center; gap:5px; }
.trend-ticker { display:flex; flex-wrap:wrap; gap:8px; }
.pulse-dot { display:inline-block; width:6px; height:6px; border-radius:50%; background:var(--success); animation:ambientPulse 2s infinite; box-shadow:0 0 6px rgba(52,211,153,.6); }

/* ── Influencer grid ── */
.influencer-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(280px,1fr)); gap:1.25rem; }
.inf-card { background:var(--surface); border:1px solid var(--border); border-radius:var(--radius); overflow:hidden; transition:border-color .3s,transform .3s; }
.inf-card:hover { border-color:var(--border-hover); transform:translateY(-3px); }
.inf-header { height:56px; position:relative; display:flex; align-items:flex-end; padding:0 1.25rem; }
.inf-avatar { width:40px; height:40px; border-radius:50%; display:flex; align-items:center; justify-content:center; font-weight:700; font-size:1rem; color:#fff; flex-shrink:0; position:relative; top:20px; box-shadow:0 2px 8px rgba(0,0,0,0.3); }
.inf-body { padding:1.75rem 1.25rem 1.25rem; }
.inf-name { font-weight:600; font-size:0.95rem; }
.inf-handle { font-size:0.75rem; color:var(--text-dim); margin-top:2px; margin-bottom:0.5rem; }
.inf-platforms { display:flex; gap:4px; flex-wrap:wrap; margin-bottom:.75rem; }
.inf-plat { font-size:0.65rem; padding:3px 8px; border-radius:4px; background:var(--surface-2); border:1px solid var(--border); color:var(--text-dim); }
.inf-bio { font-size:0.8rem; color:var(--text-muted); line-height:1.55; margin-bottom:0.75rem; }
.inf-meta { display:grid; grid-template-columns:repeat(3,1fr); gap:8px; margin-bottom:.75rem; }
.inf-stats { display:grid; grid-template-columns:repeat(3,1fr); gap:8px; margin-top:.75rem; }
.inf-stat { text-align:center; }
.inf-stat-num { display:block; font-size:0.85rem; font-weight:600; color:var(--text); }
.inf-stat-label { display:block; font-size:0.62rem; color:var(--text-dim); text-transform:uppercase; letter-spacing:.06em; margin-top:2px; }

/* ── Calendar ── */
.calendar-controls { margin-bottom:1.5rem; }
.cal-label { font-size:0.75rem; color:var(--text-dim); margin-right:.75rem; }
.cal-agent-selector { display:flex; align-items:center; flex-wrap:wrap; gap:.5rem; }
.cal-agent-btn { display:inline-flex; align-items:center; gap:8px; padding:7px 14px; border-radius:var(--radius-sm); border:1px solid var(--border); background:var(--surface); color:var(--text-muted); font-size:0.82rem; font-weight:500; cursor:pointer; transition:all .2s; font-family:var(--font-body); }
.cal-agent-btn.active { border-color:var(--accent-mid); color:var(--accent); background:var(--accent-soft); }
.cal-avatar { width:24px; height:24px; border-radius:50%; display:flex; align-items:center; justify-content:center; font-size:0.7rem; font-weight:700; color:#fff; }
.calendar-week { display:grid; grid-template-columns:repeat(7,1fr); gap:.5rem; }
.cal-day { background:var(--surface); border:1px solid var(--border); border-radius:var(--radius-sm); padding:.75rem .5rem; min-height:120px; }
.cal-day-name { font-size:0.65rem; text-transform:uppercase; letter-spacing:.1em; color:var(--text-dim); font-weight:700; margin-bottom:.5rem; }
.cal-post { font-size:0.7rem; padding:5px 7px; border-radius:5px; margin-bottom:4px; line-height:1.4; }

/* ── Dashboard ── */
.dash-kpi-row { display:grid; grid-template-columns:repeat(4,1fr); gap:1rem; margin-bottom:1.5rem; }
.dash-kpi { background:var(--surface); border:1px solid var(--border); border-radius:var(--radius); padding:1.25rem; display:flex; align-items:center; gap:1rem; }
.dash-kpi-icon { width:40px; height:40px; border-radius:var(--radius-sm); display:flex; align-items:center; justify-content:center; background:rgba(255,255,255,.04); color:var(--kpi-color,var(--accent)); flex-shrink:0; }
.dash-kpi-num { display:block; font-size:1.5rem; font-weight:700; font-family:var(--font-display); }
.dash-kpi-label { font-size:0.72rem; color:var(--text-dim); text-transform:uppercase; letter-spacing:.08em; font-weight:600; }
.dash-table-wrap { background:var(--surface); border:1px solid var(--border); border-radius:var(--radius); padding:1.5rem; margin-bottom:1.5rem; }
.dash-table-header { display:flex; align-items:center; justify-content:space-between; margin-bottom:1rem; }
.dash-table-header h3 { font-size:0.95rem; font-weight:600; }
.dash-table-filters { display:flex; gap:6px; }
.dash-filter { padding:5px 14px; border-radius:var(--radius-xs); border:1px solid var(--border); background:transparent; color:var(--text-dim); font-size:0.75rem; font-weight:600; cursor:pointer; transition:all .2s; font-family:var(--font-body); }
.dash-filter.active { border-color:var(--accent-mid); color:var(--accent); background:var(--accent-soft); }

/* ── Dashboard charts ── */
.dash-chart-row { display:grid; grid-template-columns:1.5fr 1fr; gap:1.25rem; }
.dash-chart-card { background:var(--surface); border:1px solid var(--border); border-radius:var(--radius); padding:1.75rem 1.75rem 1.5rem; overflow:hidden; }
.dash-chart-card h4 { font-size:0.8rem; font-weight:700; margin-bottom:1.25rem; color:var(--text-muted); text-transform:uppercase; letter-spacing:.1em; display:flex; align-items:center; gap:8px; }
.dash-chart-card h4::before { content:''; display:inline-block; width:3px; height:14px; border-radius:2px; background:var(--gradient-subtle); flex-shrink:0; }

/* Engagement trend (SVG line chart) */
.spark-chart { width:100%; aspect-ratio:2.8 / 1; overflow:visible; position:relative; }
.spark-chart svg { width:100%; height:100%; overflow:visible; display:block; }
.spark-bar { flex:1; border-radius:3px 3px 0 0; min-height:8px; opacity:.8; }
.spark-legend { display:flex; gap:1.25rem; margin-top:1rem; padding-top:.75rem; border-top:1px solid var(--border); flex-wrap:wrap; }
.spark-legend span { font-size:0.78rem; color:var(--text-muted); display:flex; align-items:center; gap:6px; font-weight:500; }
.spark-legend i { width:10px; height:10px; border-radius:50%; display:inline-block; box-shadow:0 0 6px currentColor; }

/* Platform distribution bars */
.platform-bars { display:flex; flex-direction:column; gap:.85rem; }
.plat-bar-row { display:grid; grid-template-columns:80px 1fr 40px; align-items:center; gap:.75rem; }
.plat-bar-label { font-size:0.8rem; color:var(--text-muted); font-weight:500; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.plat-bar-track { width:100%; background:var(--surface-2); border-radius:6px; height:14px; position:relative; overflow:hidden; }
.plat-bar-fill { height:14px; border-radius:6px; transition:width .8s cubic-bezier(.22,1,.36,1); box-shadow:0 0 8px rgba(255,255,255,0.06); }
.plat-bar-val { font-size:0.82rem; color:var(--text-dim); font-weight:700; text-align:right; font-family:var(--font-mono); }
.plat-bar-pct { font-size:0.78rem; color:var(--text-dim); width:36px; text-align:right; }

/* ── Agent table row ── */
.agent-row { display:grid; grid-template-columns:2fr 1fr 1fr 1fr 1fr; align-items:center; gap:1rem; padding:.75rem 0; border-bottom:1px solid var(--border); }
.agent-row:last-child { border-bottom:none; }
.agent-row-head { font-size:0.65rem; text-transform:uppercase; letter-spacing:.08em; color:var(--text-dim); font-weight:700; padding-bottom:.5rem; border-bottom:1px solid var(--border-strong); margin-bottom:.25rem; }
.ar-agent { display:flex; align-items:center; gap:10px; }
.ar-avatar { width:32px; height:32px; border-radius:50%; display:flex; align-items:center; justify-content:center; font-size:.75rem; font-weight:700; color:#fff; flex-shrink:0; }
.ar-name { font-size:.85rem; font-weight:600; }
.ar-niche { font-size:.7rem; color:var(--text-dim); }
.ar-num { font-size:.88rem; font-weight:600; }
.ar-status { display:inline-block; padding:3px 10px; border-radius:var(--radius-full); font-size:.68rem; font-weight:700; text-transform:uppercase; letter-spacing:.06em; }
.ar-status.active { background:var(--success-soft); color:var(--success); }
.ar-status.paused { background:var(--gold-soft); color:var(--gold); }
.ar-toggle { width:32px; height:18px; border-radius:9px; cursor:pointer; transition:background .2s; border:none; position:relative; }
.ar-toggle.on { background:var(--accent); }
.ar-toggle.off { background:var(--border-strong); }

/* ── Pipeline ── */
.pipeline-flow { display:flex; align-items:flex-start; gap:0; flex-wrap:wrap; margin-top:2rem; }
.pipe-step { flex:1; min-width:140px; background:var(--surface); border:1px solid var(--border); border-radius:var(--radius); padding:1.5rem 1.25rem; text-align:center; }
.pipe-icon { width:52px; height:52px; border-radius:50%; background:var(--accent-soft); display:flex; align-items:center; justify-content:center; margin:0 auto 1rem; color:var(--accent); border:1px solid var(--accent-mid); }
.pipe-step h3 { font-size:.9rem; font-weight:600; margin-bottom:.4rem; }
.pipe-step p { font-size:.78rem; color:var(--text-muted); line-height:1.55; }
.pipe-arrow { display:flex; align-items:center; padding:.5rem; color:var(--text-dim); flex-shrink:0; margin-top:2rem; }

/* ── Architecture ── */
.arch-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(220px,1fr)); gap:1.25rem; }
.arch-card { background:var(--surface); border:1px solid var(--border); border-radius:var(--radius); padding:1.75rem; transition:border-color .3s,transform .3s; }
.arch-card:hover { border-color:var(--border-hover); transform:translateY(-3px); }
.arch-icon { width:52px; height:52px; border-radius:var(--radius-sm); background:rgba(255,255,255,.04); display:flex; align-items:center; justify-content:center; color:var(--accent); margin-bottom:1rem; }
.arch-card h3 { font-size:.95rem; font-weight:600; margin-bottom:.4rem; }
.arch-card p { font-size:.82rem; color:var(--text-muted); line-height:1.6; }

/* ── Milestones / pricing ── */
.milestone-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:1.25rem; }
.milestone-card { background:var(--surface); border:1px solid var(--border); border-radius:var(--radius); padding:1.75rem; transition:border-color .3s; }
.milestone-card.featured { border-color:var(--accent-mid); box-shadow:var(--shadow-accent); }
.ms-phase { font-size:.65rem; font-weight:700; text-transform:uppercase; letter-spacing:.12em; color:var(--accent); margin-bottom:.4rem; }
.milestone-card h3 { font-size:1.05rem; font-weight:600; margin-bottom:1rem; }
.milestone-card ul { list-style:none; padding:0; margin-bottom:1.25rem; }
.milestone-card ul li { font-size:.82rem; color:var(--text-muted); padding:.3rem 0; padding-left:1rem; position:relative; line-height:1.5; }
.milestone-card ul li::before { content:''; position:absolute; left:0; color:var(--accent); font-weight:700; }
.ms-tag { display:inline-block; padding:4px 12px; border-radius:var(--radius-full); font-size:.65rem; font-weight:700; text-transform:uppercase; letter-spacing:.1em; background:var(--accent-soft); color:var(--accent); }

/* ── Final CTA ── */
.slide-cta { text-align:center; min-height:50vh; display:flex; align-items:center; justify-content:center; }

/* ── Agent file tabs (influencer cards) ── */
.agent-files { margin-top:.75rem; border-top:1px solid var(--border); padding-top:.75rem; }
.agent-file-tabs { display:flex; gap:4px; margin-bottom:.5rem; flex-wrap:wrap; }
.af-tab { display:inline-flex; align-items:center; gap:4px; padding:4px 10px; border-radius:var(--radius-xs); border:1px solid var(--border); background:var(--surface-2); color:var(--text-dim); font-size:0.68rem; font-weight:600; cursor:pointer; transition:all .2s; font-family:var(--font-mono); }
.af-tab.active { border-color:var(--accent-mid); color:var(--accent); background:var(--accent-soft); }
.af-tab:hover { color:var(--text-muted); }
.af-content { display:none; }
.af-content.active { display:block; }
.af-content pre { font-family:var(--font-mono); font-size:0.72rem; color:var(--text-muted); line-height:1.65; white-space:pre-wrap; word-wrap:break-word; background:var(--surface-2); border:1px solid var(--border); border-radius:var(--radius-sm); padding:1rem; max-height:280px; overflow-y:auto; }

/* ── Generator result output ── */
.gen-result { animation:fadeUp .5s ease; }
.gen-result-header { border-radius:var(--radius-sm); padding:1.25rem; margin-bottom:1rem; position:relative; overflow:hidden; }
.gen-result-avatar { width:48px; height:48px; border-radius:50%; display:flex; align-items:center; justify-content:center; font-weight:700; font-size:1.2rem; color:#fff; margin-bottom:0.75rem; box-shadow:0 2px 12px rgba(0,0,0,0.3); }
.gen-result-name { font-size:1.1rem; font-weight:600; color:var(--text); }
.gen-result-handle { font-size:0.8rem; color:var(--text-muted); margin-top:2px; }
.gen-result-bio { font-size:0.85rem; color:var(--text-muted); line-height:1.6; margin-bottom:1rem; padding-bottom:1rem; border-bottom:1px solid var(--border); }
.gen-result-stats { display:grid; grid-template-columns:repeat(3,1fr); gap:.75rem; margin-bottom:1.25rem; }
.gen-result-stat { background:var(--surface-2); border:1px solid var(--border); border-radius:var(--radius-sm); padding:.75rem; text-align:center; }
.gen-result-stat strong { display:block; font-size:0.9rem; font-weight:700; color:var(--text); margin-bottom:3px; }
.gen-result-stat span { display:block; font-size:0.65rem; color:var(--text-dim); text-transform:uppercase; letter-spacing:.08em; font-weight:600; }

/* ── Name checker ── */
.gen-name-check { margin-bottom:1.25rem; }
.gen-name-check h4 { font-size:0.85rem; font-weight:600; margin-bottom:.75rem; color:var(--text); }
.name-check-grid { display:grid; grid-template-columns:repeat(2,1fr); gap:.5rem; }
.name-check-item { display:flex; align-items:center; justify-content:space-between; gap:8px; padding:.6rem .75rem; background:var(--surface-2); border:1px solid var(--border); border-radius:var(--radius-xs); font-size:0.75rem; }
.nc-platform { color:var(--text-muted); font-weight:600; min-width:70px; }
.nc-handle { color:var(--text-dim); font-family:var(--font-mono); font-size:0.7rem; flex:1; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.nc-status { font-weight:700; font-size:0.7rem; white-space:nowrap; }
.nc-status.nc-available { color:var(--success); }
.nc-status.nc-taken { color:var(--rose); }

/* ── UGC preview ── */
.gen-ugc-preview { margin-bottom:1.25rem; }
.gen-ugc-preview h4 { font-size:0.85rem; font-weight:600; margin-bottom:.75rem; color:var(--text); display:flex; align-items:center; gap:8px; }
.ugc-card { background:var(--surface-2); border:1px solid var(--border); border-radius:var(--radius-sm); overflow:hidden; }
.ugc-brand-row { display:flex; align-items:center; justify-content:space-between; padding:.75rem 1rem; border-bottom:1px solid var(--border); }
.ugc-brand-tag { font-size:0.78rem; font-weight:600; color:var(--text); }
.ugc-format { font-size:0.7rem; color:var(--text-dim); font-weight:500; }
.ugc-script { background:var(--surface-3); padding:1rem; font-family:var(--font-mono); font-size:0.78rem; color:var(--text-muted); line-height:1.7; white-space:pre-wrap; border-radius:0; border:none; margin-top:0; }
.ugc-scene { margin-bottom:.35rem; }
.ugc-ts { color:var(--cyan); font-weight:600; margin-right:6px; }
.ugc-scene strong { color:var(--accent); }
.ugc-tags { padding:.6rem 1rem; font-size:0.75rem; color:var(--cyan); font-weight:500; border-top:1px solid var(--border); }

/* ── Sample content posts ── */
.gen-result-content { margin-top:1rem; }
.gen-result-content h4 { font-size:0.85rem; font-weight:600; margin-bottom:.75rem; color:var(--text); }
.gen-sample-post { background:var(--surface-2); border:1px solid var(--border); border-radius:var(--radius-sm); padding:1rem; margin-bottom:.5rem; }
.post-platform { font-size:0.72rem; font-weight:700; text-transform:uppercase; letter-spacing:.08em; color:var(--accent); margin-bottom:.4rem; }
.post-text { font-size:0.82rem; color:var(--text-muted); line-height:1.6; }

/* ── Scout report ── */
.scout-report { animation:fadeUp .5s ease; }
.scout-profile { display:flex; align-items:center; gap:14px; padding-bottom:1rem; margin-bottom:1rem; border-bottom:1px solid var(--border); }
.scout-profile-avatar { width:48px; height:48px; border-radius:50%; display:flex; align-items:center; justify-content:center; font-weight:700; font-size:1.2rem; color:#fff; flex-shrink:0; }
.scout-profile-info { flex:1; }
.scout-profile-name { font-size:1rem; font-weight:600; color:var(--text); }
.scout-profile-handle { font-size:0.78rem; color:var(--text-dim); }
.scout-profile-stats { display:flex; gap:1rem; margin-top:.5rem; font-size:0.78rem; color:var(--text-muted); flex-wrap:wrap; }
.scout-profile-stats strong { color:var(--text); font-weight:600; }
.scout-section { padding:1rem 0; border-bottom:1px solid var(--border); }
.scout-section-title { font-size:0.82rem; font-weight:600; color:var(--text); display:flex; align-items:center; gap:8px; margin-bottom:.75rem; }
.top-posts { display:grid; grid-template-columns:repeat(4,1fr); gap:.5rem; }
.top-post { position:relative; border-radius:var(--radius-xs); overflow:hidden; aspect-ratio:1; background:var(--surface-3); border:1px solid var(--border); }
.top-post-img { width:100%; height:100%; background:linear-gradient(135deg,var(--surface-2),var(--surface-3)); }
.top-post-overlay { position:absolute; bottom:0; left:0; right:0; padding:6px 8px; background:rgba(0,0,0,0.7); display:flex; align-items:center; gap:4px; }
.top-post-likes { font-size:0.68rem; color:#fff; font-weight:600; }
.winning-grid { display:grid; grid-template-columns:1fr 1fr; gap:.5rem; }
.winning-item { display:flex; align-items:center; gap:10px; padding:.5rem .75rem; background:var(--surface-2); border-radius:var(--radius-xs); border:1px solid var(--border); }
.winning-score { font-family:var(--font-mono); font-size:0.78rem; font-weight:700; min-width:28px; }
.winning-score.high { color:var(--success); }
.winning-score.mid { color:var(--gold); }
.winning-label { font-size:0.75rem; color:var(--text-muted); }
.pain-tags { display:flex; flex-wrap:wrap; gap:.4rem; }
.pain-tag { font-size:0.72rem; padding:4px 10px; border-radius:var(--radius-full); font-weight:600; }
.pain-tag.opp { background:var(--cyan-soft); color:var(--cyan); }
.pain-tag.gap { background:var(--rose-soft); color:var(--rose); }
.pain-tag.demand { background:var(--accent-soft); color:var(--accent); }
.train-btn { display:flex; align-items:center; justify-content:center; gap:8px; width:100%; padding:10px; border-radius:var(--radius-sm); border:none; background:var(--gradient-subtle); color:#fff; font-weight:600; font-size:0.82rem; cursor:pointer; transition:transform .2s,box-shadow .3s; font-family:var(--font-body); }
.train-btn:hover { transform:translateY(-2px); box-shadow:var(--shadow-accent); }

/* ── Keyword results ── */
.kw-results { animation:fadeUp .5s ease; }
.kw-header { margin-bottom:1rem; }
.kw-header h4 { font-size:0.9rem; font-weight:600; color:var(--text); margin-bottom:4px; }
.kw-header p { font-size:0.78rem; color:var(--text-dim); }
.kw-trend-list { margin-bottom:1rem; }
.kw-trend-item { display:flex; align-items:center; gap:10px; padding:.6rem .75rem; border-bottom:1px solid var(--border); }
.kw-trend-item:last-child { border-bottom:none; }
.kw-rank { font-family:var(--font-mono); font-size:0.75rem; font-weight:700; color:var(--text-dim); min-width:20px; text-align:center; }
.kw-info { flex:1; }
.kw-phrase { font-size:0.82rem; font-weight:600; color:var(--text); }
.kw-meta { font-size:0.7rem; color:var(--text-dim); margin-top:2px; }
.kw-match { font-size:0.68rem; font-weight:700; padding:3px 8px; border-radius:var(--radius-full); }
.kw-match.high { background:var(--success-soft); color:var(--success); }
.kw-match.mid { background:var(--gold-soft); color:var(--gold); }
.kw-match.low { background:rgba(255,255,255,0.05); color:var(--text-dim); }
.kw-profiles { background:var(--surface-2); border:1px solid var(--border); border-radius:var(--radius-sm); padding:1rem; margin-bottom:1rem; }
.kw-profiles-title { font-size:0.75rem; font-weight:600; color:var(--text-dim); text-transform:uppercase; letter-spacing:.08em; margin-bottom:.75rem; }
.kw-profile-row { display:flex; align-items:center; gap:10px; padding:.4rem 0; }
.kw-profile-av { width:28px; height:28px; border-radius:50%; display:flex; align-items:center; justify-content:center; font-size:0.65rem; font-weight:700; color:#fff; flex-shrink:0; }
.kw-profile-name { font-size:0.82rem; font-weight:600; color:var(--text); }
.kw-profile-handle { font-size:0.72rem; color:var(--text-dim); flex:1; }
.kw-profile-score { font-family:var(--font-mono); font-size:0.78rem; font-weight:700; color:var(--success); }

/* ── Dashboard table rows ── */
.dash-row { display:grid; grid-template-columns:2.5fr 1fr 1fr 1fr 1.2fr 0.6fr; align-items:center; gap:.75rem; padding:.65rem .5rem; border-bottom:1px solid var(--border); font-size:0.82rem; }
.dash-row:last-child { border-bottom:none; }
.dash-row.row-header { font-size:0.65rem; text-transform:uppercase; letter-spacing:.08em; color:var(--text-dim); font-weight:700; border-bottom:1px solid var(--border-strong); padding-bottom:.5rem; margin-bottom:.25rem; }
.dash-agent-cell { display:flex; align-items:center; gap:10px; }
.dash-agent-avatar { width:32px; height:32px; border-radius:50%; display:flex; align-items:center; justify-content:center; font-size:.72rem; font-weight:700; color:#fff; flex-shrink:0; }
.dash-agent-info { display:flex; flex-direction:column; min-width:0; }
.dash-agent-name { font-size:.85rem; font-weight:600; color:var(--text); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.dash-agent-niche { font-size:.7rem; color:var(--text-dim); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.dash-status { display:inline-flex; align-items:center; gap:4px; font-size:.65rem; font-weight:600; text-transform:uppercase; letter-spacing:.04em; }
.dash-status-dot { width:5px; height:5px; border-radius:50%; }
.dash-status.status-active { color:var(--success); }
.dash-status.status-active .dash-status-dot { background:var(--success); }
.dash-status.status-paused { color:var(--gold); }
.dash-status.status-paused .dash-status-dot { background:var(--gold); }
.dash-status.status-failing { color:var(--rose); }
.dash-status.status-failing .dash-status-dot { background:var(--rose); }
.dash-cell { font-size:.82rem; color:var(--text-muted); }
.dash-cell.positive { color:var(--success); }
.dash-cell.negative { color:var(--rose); }
.perf-bar-wrap { display:flex; align-items:center; gap:6px; }
.perf-bar-bg { flex:1; height:5px; background:var(--surface-3); border-radius:3px; overflow:hidden; }
.perf-bar { height:5px; border-radius:3px; transition:width .5s ease; }

/* ── Toggle switch ── */
.toggle { position:relative; display:inline-flex; align-items:center; cursor:pointer; width:36px; height:20px; }
.toggle input { opacity:0; width:0; height:0; position:absolute; }
.toggle-track { position:absolute; inset:0; border-radius:10px; background:var(--border-strong); transition:background .2s; }
.toggle input:checked ~ .toggle-track { background:var(--accent); }
.toggle-thumb { position:absolute; left:2px; top:2px; width:16px; height:16px; border-radius:50%; background:#fff; transition:transform .2s; box-shadow:0 1px 3px rgba(0,0,0,0.3); }
.toggle input:checked ~ .toggle-thumb { transform:translateX(16px); }

/* ── Trend tag chips ── */
.trend-tag { display:inline-flex; flex-direction:column; padding:8px 14px; border-radius:var(--radius-sm); font-size:.68rem; font-weight:500; background:var(--surface-2); border:1px solid var(--border); color:var(--text-muted); transition:border-color .2s; }
.trend-tag:hover { border-color:var(--border-hover); }
.trend-tag-name { font-weight:700; color:var(--text); font-size:0.78rem; margin-bottom:2px; }
.trend-tag-meta { font-size:0.65rem; color:var(--text-dim); }
.trend-tag-hot { color:var(--rose); font-weight:600; }

/* ── Calendar post types ── */
.cal-post { background:rgba(124,106,237,0.08); border-left:2px solid var(--accent); }
.cal-post-platform { font-size:0.62rem; font-weight:700; text-transform:uppercase; letter-spacing:.06em; color:var(--accent); margin-bottom:2px; }
.cal-post-desc { font-size:0.68rem; color:var(--text-muted); line-height:1.4; }
.cal-post-time { font-size:0.6rem; color:var(--text-dim); margin-top:3px; font-family:var(--font-mono); }
.cal-post.cal-tiktok { background:rgba(254,44,85,0.06); border-left-color:#fe2c55; }
.cal-post.cal-tiktok .cal-post-platform { color:#fe2c55; }
.cal-post.cal-twitter { background:rgba(29,161,242,0.06); border-left-color:#1da1f2; }
.cal-post.cal-twitter .cal-post-platform { color:#1da1f2; }
.cal-post.cal-linkedin { background:rgba(0,119,181,0.06); border-left-color:#0077b5; }
.cal-post.cal-linkedin .cal-post-platform { color:#0077b5; }
.cal-post.cal-youtube { background:rgba(255,0,0,0.05); border-left-color:#ff0000; }
.cal-post.cal-youtube .cal-post-platform { color:#ff0000; }

/* ── Hero background effects ── */
.hero-bg-grid { position:absolute; inset:0; background-image:radial-gradient(rgba(255,255,255,0.03) 1px,transparent 1px); background-size:28px 28px; pointer-events:none; }
.hero-glow { position:absolute; border-radius:50%; filter:blur(100px); pointer-events:none; }
.hero-glow-1 { width:500px; height:500px; background:var(--accent); opacity:0.06; top:-15%; left:15%; }
.hero-glow-2 { width:400px; height:400px; background:var(--cyan); opacity:0.04; bottom:10%; right:10%; }
.hero-glow-3 { width:350px; height:350px; background:var(--rose); opacity:0.03; top:30%; right:-5%; }

/* ── Typing cursor ── */
.typing-cursor::after { content:'▍'; animation:blink 1s step-end infinite; color:var(--accent); }
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0} }

/* ── Scroll reveal ── */
.reveal { opacity:0; transform:translateY(20px); transition:opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity:1; transform:translateY(0); }

/* ── Unified Portal Styles (Merged from portal.css) ── */

.portal-body { padding-top: 58px; }

/* Timeline Journey */
.journey { position: relative; }
.journey::before {
  content: '';
  position: absolute; left: 24px; top: 0; bottom: 0; width: 2px;
  background: linear-gradient(to bottom, var(--accent) 0%, var(--cyan) 40%, var(--gold) 70%, var(--success) 100%);
  opacity: 0.2;
}

.phase {
  position: relative;
  padding-left: 64px;
  padding-bottom: var(--space-12);
}
.phase:last-child { padding-bottom: 0; }

.phase-dot {
  position: absolute; left: 13px; top: 6px;
  width: 24px; height: 24px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: var(--text-xs); font-weight: var(--weight-bold);
  color: #fff; z-index: var(--z-content);
}

.phase-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.75rem;
  transition: border-color var(--ease-std), box-shadow var(--ease-std);
}
.phase-card:hover {
  border-color: var(--border-hover);
  box-shadow: 0 6px 30px rgba(124,106,237,0.05);
}

.phase-scope {
  display: inline-block;
  padding: 3px 10px; border-radius: var(--radius-xs);
  font-size: var(--text-xs); font-weight: var(--weight-semi);
  letter-spacing: var(--tracking-wide); text-transform: uppercase;
  margin-bottom: var(--space-3);
}

.scope-agreement  { background: var(--rose-soft);    color: var(--rose); }
.scope-onboarding { background: var(--accent-soft);  color: var(--accent); }
.scope-project    { background: var(--cyan-soft);    color: var(--cyan); }
.scope-golive     { background: var(--success-soft); color: var(--success); }

.phase-title { font-size: var(--text-lg); font-weight: var(--weight-semi); margin-bottom: var(--space-1); }
.phase-sub   { color: var(--text-muted); font-size: var(--text-base); margin-bottom: var(--space-4); line-height: var(--leading-relaxed); }

.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 5px 12px; border-radius: 7px;
  font-size: 0.76rem; font-weight: var(--weight-medium);
  background: var(--surface-2); border: 1px solid var(--border);
  color: var(--text-muted);
}
.tag .ico { font-size: 0.85rem; }

/* Gate dividers */
.gate {
  position: relative; padding-left: 64px; padding-bottom: var(--space-10);
  display: flex; align-items: center; gap: 12px;
}
.gate-line { flex: 1; height: 1px; background: var(--border); }
.gate-label {
  padding: 4px 14px; border-radius: var(--radius-xs);
  font-size: 0.7rem; font-weight: var(--weight-semi);
  letter-spacing: var(--tracking-wide); text-transform: uppercase;
  white-space: nowrap;
}
.gate-check { background: var(--accent-soft); color: var(--accent); }
.gate-final { background: var(--success-soft); color: var(--success); }

/* Expandable details */
.phase-details {
  margin-top: var(--space-4);
  border-top: 1px solid var(--border);
  padding-top: var(--space-4);
}
.phase-details summary {
  font-size: var(--text-base); font-weight: var(--weight-semi);
  color: var(--accent); cursor: pointer;
  list-style: none; display: flex; align-items: center; gap: 6px;
  transition: color var(--ease-fast);
}
.phase-details summary::-webkit-details-marker { display: none; }
.phase-details summary::before { content: '▸'; transition: transform 0.2s; display: inline-block; }
.phase-details[open] summary::before { transform: rotate(90deg); }
.phase-details summary:hover { color: var(--rose); }

.detail-content { padding-top: var(--space-4); }
.detail-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap-sm);
}
.detail-item {
  padding: 0.75rem 1rem; border-radius: var(--radius-sm);
  background: var(--surface-2); border: 1px solid var(--border);
}
.detail-item-label {
  font-size: var(--text-xs); font-weight: var(--weight-bold);
  text-transform: uppercase; letter-spacing: var(--tracking-wide);
  margin-bottom: var(--space-1);
}
.detail-item-label.rose   { color: var(--rose); }
.detail-item-label.accent { color: var(--accent); }
.detail-item-label.cyan   { color: var(--cyan); }
.detail-item-label.gold   { color: var(--gold); }
.detail-item-label.green  { color: var(--success); }
.detail-item-value {
  font-size: var(--text-base); color: var(--text-muted);
  line-height: var(--leading-relaxed);
}

/* Scoring grid */
.score-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap-md); }
.score-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: var(--space-6); text-align: center;
  transition: border-color var(--ease-std);
}
.score-card:hover { border-color: var(--border-hover); }
.score-num {
  font-family: var(--font-display);
  font-size: 2.2rem; font-weight: var(--weight-bold); line-height: 1;
}
.score-label { font-weight: var(--weight-semi); font-size: var(--text-base); margin: 0.35rem 0 0.15rem; }
.score-eta   { color: var(--accent); font-size: 0.78rem; font-weight: var(--weight-medium); }
.score-desc  { color: var(--text-muted); font-size: 0.75rem; margin-top: var(--space-1); }

/* Communication rows */
.comm-row {
  display: flex; align-items: center; gap: var(--space-4);
  padding: 1.1rem 1.4rem;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); margin-bottom: var(--gap-sm);
  transition: border-color var(--ease-std);
}
.comm-row:hover { border-color: var(--border-hover); }
.comm-ico {
  width: 40px; height: 40px; border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.15rem; flex-shrink: 0;
}
.comm-body         { flex: 1; }
.comm-body strong  { font-size: var(--text-base); font-weight: var(--weight-semi); }
.comm-body p       { color: var(--text-muted); font-size: 0.8rem; margin-top: 1px; }
.comm-sla          { padding: 3px 11px; border-radius: var(--radius-xs); font-size: 0.72rem; font-weight: var(--weight-semi); white-space: nowrap; }

/* Agreement clauses */
.clause-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--gap-md);
}
.clause-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: var(--space-6);
  transition: border-color var(--ease-std);
  border-left: 3px solid var(--accent);
}
.clause-card:hover { border-color: var(--border-hover); }
.clause-card:nth-child(2) { border-left-color: var(--cyan); }
.clause-card:nth-child(3) { border-left-color: var(--rose); }
.clause-card:nth-child(4) { border-left-color: var(--gold); }
.clause-card:nth-child(5) { border-left-color: var(--success); }
.clause-card:nth-child(6) { border-left-color: var(--accent); }
.clause-card:nth-child(7) { border-left-color: var(--cyan); }
.clause-card:nth-child(8) { border-left-color: var(--rose); }
.clause-ico   { font-size: 1.2rem; margin-bottom: var(--space-2); }
.clause-title { font-size: var(--text-base); font-weight: var(--weight-semi); margin-bottom: var(--space-1); }
.clause-desc  { font-size: 0.8rem; color: var(--text-muted); line-height: var(--leading-relaxed); }

/* Roadmap timeline */
.roadmap-track { position: relative; padding-bottom: var(--space-12); }
.roadmap-track::before {
  content: '';
  position: absolute; top: 28px; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--rose), var(--accent), var(--cyan), var(--gold), var(--success));
  opacity: 0.2; border-radius: 2px;
}
.roadmap-cols {
  display: grid; grid-template-columns: repeat(6, 1fr);
  gap: 0; position: relative;
}
.rm-col {
  display: flex; flex-direction: column; align-items: center;
  position: relative; padding: 0 0.5rem;
}
.rm-node {
  width: 56px; height: 56px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.15rem; border: 2px solid;
  background: var(--surface); margin-bottom: var(--space-4);
  position: relative; z-index: var(--z-content);
  transition: transform var(--ease-std), box-shadow var(--ease-std);
  cursor: default;
}
.rm-col:hover .rm-node { transform: scale(1.1); }
.rm-node.done   { border-color: var(--success); box-shadow: 0 0 20px rgba(52,211,153,0.15); }
.rm-node.active { border-color: var(--accent);  box-shadow: var(--shadow-accent); animation: rmPulse 2.5s infinite; }
.rm-node.next   { border-color: var(--cyan);    box-shadow: var(--shadow-cyan); }
.rm-node.future { border-color: var(--border);  opacity: 0.5; }

.rm-status-badge {
  font-size: var(--text-xs); font-weight: var(--weight-bold);
  text-transform: uppercase; letter-spacing: var(--tracking-wider);
  padding: 2px 8px; border-radius: var(--radius-full); margin-bottom: var(--space-2);
}
.rm-status-badge.done   { background: var(--success-soft); color: var(--success); }
.rm-status-badge.active { background: var(--accent-soft);  color: var(--accent); }
.rm-status-badge.next   { background: var(--cyan-soft);    color: var(--cyan); }
.rm-status-badge.future { background: rgba(255,255,255,0.05); color: var(--text-dim); }

.rm-phase-title { font-size: 0.78rem; font-weight: var(--weight-semi); text-align: center; margin-bottom: var(--space-1); line-height: var(--leading-snug); }
.rm-timeline    { font-size: var(--text-xs); color: var(--text-dim); margin-bottom: var(--space-2); }
.rm-items {
  font-size: 0.68rem; color: var(--text-muted);
  text-align: center; line-height: var(--leading-loose);
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 0.75rem; width: 100%;
}

/* Post-launch scaling */
.postlaunch-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: var(--gap-md); margin-top: var(--space-12);
}
.pl-quarter {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: var(--space-6); border-top: 3px solid;
}
.pl-quarter:nth-child(1) { border-top-color: var(--accent); }
.pl-quarter:nth-child(2) { border-top-color: var(--cyan); }
.pl-quarter:nth-child(3) { border-top-color: var(--gold); }
.pl-q-label { font-size: var(--text-xs); font-weight: var(--weight-bold); text-transform: uppercase; letter-spacing: var(--tracking-wider); color: var(--text-dim); margin-bottom: var(--space-1); }
.pl-q-title { font-size: var(--text-base); font-weight: var(--weight-semi); margin-bottom: var(--space-4); }
.pl-milestone {
  display: flex; align-items: flex-start; gap: 8px;
  font-size: 0.76rem; color: var(--text-muted);
  margin-bottom: var(--space-2); line-height: var(--leading-snug);
}
.pl-milestone::before { content: '→'; flex-shrink: 0; font-weight: var(--weight-bold); margin-top: 1px; }
.pl-quarter:nth-child(1) .pl-milestone::before { color: var(--accent); }
.pl-quarter:nth-child(2) .pl-milestone::before { color: var(--cyan); }
.pl-quarter:nth-child(3) .pl-milestone::before { color: var(--gold); }

/* ── PIN Gate styles ── */
#pin-gate {
  position: fixed; inset: 0; background: rgba(15,10,25,0.92); backdrop-filter: blur(12px);
  display: flex; align-items: center; justify-content: center; z-index: var(--z-modal);
  opacity: 1; transition: opacity 0.5s ease, pointer-events 0.5s;
}
#pin-gate.unlocked { opacity: 0; pointer-events: none; }
.pin-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 3rem 2rem; width: 100%; max-width: 400px; text-align: center;
  box-shadow: 0 20px 50px rgba(0,0,0,0.5); position: relative;
}
.pin-logo { font-size: 3rem; margin-bottom: 1rem; }
.pin-title { font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; margin-bottom: 0.5rem; }
.pin-desc { color: var(--text-muted); font-size: 0.85rem; margin-bottom: 2rem; line-height: 1.6; }
.pin-dots { display: flex; justify-content: center; gap: 1rem; margin-bottom: 1.5rem; }
.pin-dot {
  width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--border-strong);
  transition: all 0.2s ease;
}
.pin-dot.filled { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 10px var(--accent); }
.pin-dot.error { background: var(--rose); border-color: var(--rose); box-shadow: 0 0 10px var(--rose); animation: shake 0.3s ease; }
.pin-keypad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.75rem; max-width: 240px; margin: 0 auto 1.5rem; }
.pin-key {
  height: 56px; border-radius: 50%; border: 1px solid var(--border); background: var(--surface-2);
  color: var(--text); font-size: 1.25rem; font-weight: 600; cursor: pointer;
  display: flex; align-items: center; justify-content: center; transition: all 0.2s;
}
.pin-key:hover { background: var(--surface-3); border-color: var(--border-hover); transform: scale(1.05); }
.pin-key:active { transform: scale(0.95); }
.pin-error { color: var(--rose); font-size: 0.8rem; height: 16px; margin-bottom: 1rem; }

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-6px); }
  75% { transform: translateX(6px); }
}

/* ── Platform view toggle ── */
.view-tabs-container {
  display: flex; justify-content: center; margin-bottom: 3rem; margin-top: 1rem;
}
.view-tabs {
  display: inline-flex; background: var(--surface-2); padding: 4px; border-radius: 14px; border: 1px solid var(--border);
}
.view-tab {
  padding: 10px 24px; border-radius: 11px; border: none; background: transparent;
  color: var(--text-dim); font-size: 0.88rem; font-weight: 600; cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1); font-family: var(--font-body);
}
.view-tab.active {
  background: var(--accent); color: #fff; box-shadow: var(--shadow-accent);
}

/* Tab contents and visibility controls */
.tab-content { display: none; }
.tab-content.active { display: block; animation: fadeIn 0.5s ease; }

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Social integrations page styles */
.integration-list { display: flex; flex-direction: column; gap: 1rem; }
.integration-item {
  display: flex; align-items: center; justify-content: space-between;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.25rem 1.5rem;
  transition: border-color 0.2s;
}
.integration-item:hover { border-color: var(--border-hover); }
.ii-left { display: flex; align-items: center; gap: 1rem; }
.ii-logo {
  width: 44px; height: 44px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; font-weight: 700; color: #fff;
}
.ii-details h4 { font-size: 0.95rem; font-weight: 600; margin-bottom: 2px; }
.ii-details p { font-size: 0.78rem; color: var(--text-dim); }
.ii-right { display: flex; align-items: center; gap: 1rem; }
.ii-status {
  padding: 4px 12px; border-radius: 100px; font-size: 0.72rem; font-weight: 700; text-transform: uppercase;
}
.ii-status.connected { background: var(--success-soft); color: var(--success); }
.ii-status.disconnected { background: rgba(255,255,255,0.05); color: var(--text-dim); }
.ii-btn {
  padding: 8px 16px; border-radius: 8px; border: 1px solid var(--border);
  background: var(--surface-2); color: var(--text); font-size: 0.78rem; font-weight: 600;
  cursor: pointer; transition: all 0.2s;
}
.ii-btn:hover { background: var(--surface-3); border-color: var(--border-hover); }
.ii-btn.btn-connect { background: var(--accent-soft); border-color: var(--accent-mid); color: var(--accent); }
.ii-btn.btn-connect:hover { background: rgba(124,106,237,0.25); }

/* AI Account Setup Section styling */
.ac-sidebar-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid transparent;
  background: transparent;
  cursor: pointer;
  width: 100%;
  transition: all 0.2s;
}
.ac-sidebar-item:hover {
  background: rgba(255,255,255,0.04);
}
.ac-sidebar-item.active {
  background: rgba(255,255,255,0.06);
  border-color: var(--border-hover);
}
.ac-sidebar-item.active .ac-item-name {
  color: #fff !important;
}
.ac-sidebar-item.active .ac-item-handle {
  color: var(--text-light) !important;
}
.ac-avatar-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.ac-status-badge {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 100px;
  text-transform: uppercase;
}
.ac-status-badge.connected {
  background: var(--success-soft);
  color: var(--success);
}
.ac-status-badge.disconnected {
  background: rgba(255,255,255,0.05);
  color: var(--text-dim);
}

/* FDA Warning label */
.fda-warning-box {
  background: rgba(244,63,94,0.06); border: 1px dashed var(--rose);
  border-radius: var(--radius-sm); padding: 1rem; margin-top: 1rem;
  font-size: 0.76rem; line-height: 1.5; color: var(--text-muted);
}
.fda-title { color: var(--rose); font-weight: 700; margin-bottom: 0.35rem; text-transform: uppercase; letter-spacing: 0.05em; display: flex; align-items: center; gap: 6px; }

/* ── Onboarding Journey Timeline ── */
.journey { position: relative; }
.journey::before {
  content: '';
  position: absolute; left: 24px; top: 0; bottom: 0; width: 2px;
  background: linear-gradient(to bottom, var(--accent) 0%, var(--cyan) 40%, var(--gold) 70%, var(--success) 100%);
  opacity: 0.2;
}
.phase {
  position: relative;
  padding-left: 64px;
  padding-bottom: var(--space-12);
}
.phase:last-child { padding-bottom: 0; }
.phase-dot {
  position: absolute; left: 13px; top: 6px;
  width: 24px; height: 24px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: var(--text-xs); font-weight: var(--weight-bold);
  color: #fff; z-index: var(--z-content);
}
.phase-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.75rem;
  transition: border-color var(--ease-std), box-shadow var(--ease-std);
}
.phase-card:hover {
  border-color: var(--border-hover);
  box-shadow: 0 6px 30px rgba(124,106,237,0.05);
}
.phase-scope {
  display: inline-block;
  padding: 3px 10px; border-radius: var(--radius-xs);
  font-size: var(--text-xs); font-weight: var(--weight-semi);
  letter-spacing: var(--tracking-wide); text-transform: uppercase;
  margin-bottom: var(--space-3);
}
.scope-agreement  { background: var(--rose-soft);    color: var(--rose); }
.scope-onboarding { background: var(--accent-soft);  color: var(--accent); }
.scope-project    { background: var(--cyan-soft);    color: var(--cyan); }
.scope-golive     { background: var(--success-soft); color: var(--success); }

.phase-title { font-size: var(--text-lg); font-weight: var(--weight-semi); margin-bottom: var(--space-1); }
.phase-sub   { color: var(--text-muted); font-size: var(--text-base); margin-bottom: var(--space-4); line-height: var(--leading-relaxed); }

.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 5px 12px; border-radius: 7px;
  font-size: 0.76rem; font-weight: var(--weight-medium);
  background: var(--surface-2); border: 1px solid var(--border);
  color: var(--text-muted);
}
.tag .ico { font-size: 0.85rem; }

/* ── Gate dividers ── */
.gate {
  position: relative; padding-left: 64px; padding-bottom: var(--space-10);
  display: flex; align-items: center; gap: 12px;
}
.gate-line { flex: 1; height: 1px; background: var(--border); }
.gate-label {
  padding: 4px 14px; border-radius: var(--radius-xs);
  font-size: 0.7rem; font-weight: var(--weight-semi);
  letter-spacing: var(--tracking-wide); text-transform: uppercase;
  white-space: nowrap;
}
.gate-check { background: var(--accent-soft); color: var(--accent); }
.gate-final { background: var(--success-soft); color: var(--success); }

/* ── Expandable details ── */
.phase-details {
  margin-top: var(--space-4);
  border-top: 1px solid var(--border);
  padding-top: var(--space-4);
}
.phase-details summary {
  font-size: var(--text-base); font-weight: var(--weight-semi);
  color: var(--accent); cursor: pointer;
  list-style: none; display: flex; align-items: center; gap: 6px;
  transition: color var(--ease-fast);
}
.phase-details summary::-webkit-details-marker { display: none; }
.phase-details summary::before { content: '▸'; transition: transform 0.2s; display: inline-block; }
.phase-details[open] summary::before { transform: rotate(90deg); }
.phase-details summary:hover { color: var(--rose); }

.detail-content { padding-top: var(--space-4); }
.detail-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap-sm);
}
.detail-item {
  padding: 0.75rem 1rem; border-radius: var(--radius-sm);
  background: var(--surface-2); border: 1px solid var(--border);
}
.detail-item-label {
  font-size: var(--text-xs); font-weight: var(--weight-bold);
  text-transform: uppercase; letter-spacing: var(--tracking-wide);
  margin-bottom: var(--space-1);
}
.detail-item-label.rose   { color: var(--rose); }
.detail-item-label.accent { color: var(--accent); }
.detail-item-label.cyan   { color: var(--cyan); }
.detail-item-label.gold   { color: var(--gold); }
.detail-item-label.green  { color: var(--success); }
.detail-item-value {
  font-size: var(--text-base); color: var(--text-muted);
  line-height: var(--leading-relaxed);
}

/* ── Benefits grid ── */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--gap-md);
}
.benefit {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.75rem;
  transition: transform var(--ease-std), border-color var(--ease-std);
}
.benefit:hover { transform: translateY(-3px); border-color: var(--border-hover); }
.benefit-ico {
  width: 44px; height: 44px; border-radius: 11px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; margin-bottom: var(--space-4);
}
.benefit h3 { font-size: var(--text-base); font-weight: var(--weight-semi); margin-bottom: var(--space-1); }
.benefit p  { color: var(--text-muted); font-size: var(--text-base); line-height: var(--leading-relaxed); }

/* ── Scoring grid ── */
.score-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap-md); }
.score-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: var(--space-6); text-align: center;
  transition: border-color var(--ease-std);
}
.score-card:hover { border-color: var(--border-hover); }
.score-num {
  font-family: var(--font-display);
  font-size: 2.2rem; font-weight: var(--weight-bold); line-height: 1;
}
.score-label { font-weight: var(--weight-semi); font-size: var(--text-base); margin: 0.35rem 0 0.15rem; }
.score-eta   { color: var(--accent); font-size: 0.78rem; font-weight: var(--weight-medium); }
.score-desc  { color: var(--text-muted); font-size: 0.75rem; margin-top: var(--space-1); }

/* ── Communication rows ── */
.comm-row {
  display: flex; align-items: center; gap: var(--space-4);
  padding: 1.1rem 1.4rem;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); margin-bottom: var(--gap-sm);
  transition: border-color var(--ease-std);
}
.comm-row:hover { border-color: var(--border-hover); }
.comm-ico {
  width: 40px; height: 40px; border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.15rem; flex-shrink: 0;
}
.comm-body         { flex: 1; }
.comm-body strong  { font-size: var(--text-base); font-weight: var(--weight-semi); }
.comm-body p       { color: var(--text-muted); font-size: 0.8rem; margin-top: 1px; }
.comm-sla          { padding: 3px 11px; border-radius: var(--radius-xs); font-size: 0.72rem; font-weight: var(--weight-semi); white-space: nowrap; }

/* ── Agreement clause grid ── */
.clause-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--gap-md);
}
.clause-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: var(--space-6);
  transition: border-color var(--ease-std);
  border-left: 3px solid var(--accent);
}
.clause-card:hover { border-color: var(--border-hover); }
.clause-card:nth-child(2) { border-left-color: var(--cyan); }
.clause-card:nth-child(3) { border-left-color: var(--rose); }
.clause-card:nth-child(4) { border-left-color: var(--gold); }
.clause-card:nth-child(5) { border-left-color: var(--success); }
.clause-card:nth-child(6) { border-left-color: var(--accent); }
.clause-card:nth-child(7) { border-left-color: var(--cyan); }
.clause-card:nth-child(8) { border-left-color: var(--rose); }
.clause-ico   { font-size: 1.2rem; margin-bottom: var(--space-2); }
.clause-title { font-size: var(--text-base); font-weight: var(--weight-semi); margin-bottom: var(--space-1); }
.clause-desc  { font-size: 0.8rem; color: var(--text-muted); line-height: var(--leading-relaxed); }

/* ── Roadmap ── */
.roadmap-track { position: relative; padding-bottom: var(--space-12); }
.roadmap-track::before {
  content: '';
  position: absolute; top: 28px; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--rose), var(--accent), var(--cyan), var(--gold), var(--success));
  opacity: 0.2; border-radius: 2px;
}
.roadmap-cols {
  display: grid; grid-template-columns: repeat(6, 1fr);
  gap: 0; position: relative;
}
.rm-col {
  display: flex; flex-direction: column; align-items: center;
  position: relative; padding: 0 0.5rem;
}
.rm-node {
  width: 56px; height: 56px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.15rem; border: 2px solid;
  background: var(--surface); margin-bottom: var(--space-4);
  position: relative; z-index: var(--z-content);
  transition: transform var(--ease-std), box-shadow var(--ease-std);
  cursor: default;
}
.rm-col:hover .rm-node { transform: scale(1.1); }
.rm-node.done   { border-color: var(--success); box-shadow: 0 0 20px rgba(52,211,153,0.15); }
.rm-node.active { border-color: var(--accent);  box-shadow: var(--shadow-accent); animation: rmPulse 2.5s infinite; }
.rm-node.next   { border-color: var(--cyan);    box-shadow: var(--shadow-cyan); }
.rm-node.future { border-color: var(--border);  opacity: 0.5; }

@keyframes rmPulse {
  0%, 100% { box-shadow: 0 0 24px rgba(124,106,237,0.25); }
  50%      { box-shadow: 0 0 40px rgba(124,106,237,0.45); }
}

.rm-status-badge {
  font-size: var(--text-xs); font-weight: var(--weight-bold);
  text-transform: uppercase; letter-spacing: var(--tracking-wider);
  padding: 2px 8px; border-radius: var(--radius-full); margin-bottom: var(--space-2);
}
.rm-status-badge.done   { background: var(--success-soft); color: var(--success); }
.rm-status-badge.active { background: var(--accent-soft);  color: var(--accent); }
.rm-status-badge.next   { background: var(--cyan-soft);    color: var(--cyan); }
.rm-status-badge.future { background: rgba(255,255,255,0.05); color: var(--text-dim); }

.rm-phase-title { font-size: 0.78rem; font-weight: var(--weight-semi); text-align: center; margin-bottom: var(--space-1); line-height: var(--leading-snug); }
.rm-timeline    { font-size: var(--text-xs); color: var(--text-dim); margin-bottom: var(--space-2); }
.rm-items {
  font-size: 0.68rem; color: var(--text-muted);
  text-align: center; line-height: var(--leading-loose);
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 0.75rem; width: 100%;
}

/* ── Post-launch roadmap ── */
.postlaunch-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: var(--gap-md); margin-top: var(--space-12);
}
.pl-quarter {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: var(--space-6); border-top: 3px solid;
}
.pl-quarter:nth-child(1) { border-top-color: var(--accent); }
.pl-quarter:nth-child(2) { border-top-color: var(--cyan); }
.pl-quarter:nth-child(3) { border-top-color: var(--gold); }
.pl-q-label { font-size: var(--text-xs); font-weight: var(--weight-bold); text-transform: uppercase; letter-spacing: var(--tracking-wider); color: var(--text-dim); margin-bottom: var(--space-1); }
.pl-q-title { font-size: var(--text-base); font-weight: var(--weight-semi); margin-bottom: var(--space-4); }
.pl-milestone {
  display: flex; align-items: flex-start; gap: 8px;
  font-size: 0.76rem; color: var(--text-muted);
  margin-bottom: var(--space-2); line-height: var(--leading-snug);
}
.pl-milestone::before { content: '→'; flex-shrink: 0; font-weight: var(--weight-bold); margin-top: 1px; }
.pl-quarter:nth-child(1) .pl-milestone::before { color: var(--accent); }
.pl-quarter:nth-child(2) .pl-milestone::before { color: var(--cyan); }
.pl-quarter:nth-child(3) .pl-milestone::before { color: var(--gold); }

/* ── Tablet & Mobile Overrides ── */
@media (max-width: 900px) {
  .roadmap-cols { grid-template-columns: repeat(3,1fr); gap: 0.5rem; }
  .roadmap-track::before { display: none; }
  .postlaunch-grid { grid-template-columns: 1fr; }
  .score-grid { grid-template-columns: 1fr 1fr; }
  .comm-sla { display: none; }
}

@media (max-width: 640px) {
  .detail-grid { grid-template-columns: 1fr; }
  .clause-grid { grid-template-columns: 1fr; }
  .roadmap-cols { grid-template-columns: repeat(2,1fr); }
  .score-grid { grid-template-columns: 1fr; }
  .benefits-grid { grid-template-columns: 1fr; }
}

/* ── Dashboard Sub-Tabs ── */
.dash-sub-tabs {
  display: inline-flex;
  gap: 0.35rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  padding: 0.35rem;
  border-radius: var(--radius);
  margin-bottom: 2rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
}

.dash-sub-tab-btn {
  background: none;
  border: none;
  color: var(--text-dim);
  font-family: inherit;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.5rem 1.1rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--ease-fast);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.dash-sub-tab-btn:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}

.dash-sub-tab-btn.active {
  color: var(--accent);
  background: var(--accent-soft);
}

/* ── REDESIGNED CLIENT PORTAL (SociaPlan style) ── */
.dashboard-layout {
  display: grid !important;
  grid-template-columns: 240px 1fr;
  min-height: 100vh;
  background: #0b0713;
  position: relative;
  z-index: 1;
}

.dash-sidebar {
  background: #0f0b1a;
  border-right: 1px solid rgba(255,255,255,0.05);
  padding: 1.5rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  height: 100vh;
  position: sticky;
  top: 0;
  overflow-y: auto;
  z-index: 100;
}

.dash-logo-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}
.dash-logo-ico {
  font-size: 1.5rem;
}
.dash-logo-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.dash-client-info {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 10px;
  padding: 8px 12px;
  margin-top: 0.5rem;
}
.dash-client-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--success);
}
.dash-client-name {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text);
}

.dash-menu {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.dash-menu-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  font-weight: 700;
  padding-left: 8px;
  margin-bottom: 0.5rem;
}
.dash-menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s;
  background: transparent;
  border: none;
  width: 100%;
  text-align: left;
}
.dash-menu-item:hover {
  background: rgba(255,255,255,0.03);
  color: var(--text);
}
.dash-menu-item.active {
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 600;
}

.dash-main {
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow-y: auto;
}

.dash-header {
  height: 70px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  background: #0b0713;
  position: sticky;
  top: 0;
  z-index: 10;
}
.dash-header-left {
  display: flex;
  flex-direction: column;
}
.dash-header-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
  margin: 0;
}
.dash-header-subtitle {
  font-size: 0.72rem;
  color: var(--text-dim);
  margin-top: 2px;
}

.dash-header-right {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}
.dash-search-wrap {
  position: relative;
  width: 240px;
}
.dash-search-input {
  width: 100%;
  background: rgba(255,255,255,0.03) !important;
  border: 1px solid rgba(255,255,255,0.05) !important;
  border-radius: 8px !important;
  padding: 7px 12px 7px 30px !important;
  font-size: 0.8rem !important;
  color: var(--text) !important;
}
.dash-search-ico {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.75rem;
  color: var(--text-dim);
}
.dash-header-btn {
  padding: 8px 16px;
  background: linear-gradient(135deg, var(--accent), #6366f1);
  border: none;
  border-radius: 8px;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s;
}
.dash-header-btn:hover {
  transform: translateY(-1px);
}
.dash-user-badge {
  display: flex;
  align-items: center;
  gap: 8px;
}
.dash-user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 600;
  font-size: 0.8rem;
}

.dash-workspace {
  display: grid;
  grid-template-columns: 1fr 300px;
  flex: 1;
  overflow: hidden;
  height: calc(100vh - 70px);
}
.dash-center-panel {
  padding: 2rem;
  overflow-y: auto;
}
.dash-right-panel {
  background: #0d0918;
  border-left: 1px solid rgba(255,255,255,0.05);
  padding: 1.5rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Sub-views content switching */
.portal-subview {
  display: none;
}
.portal-subview.active {
  display: block;
  animation: fadeIn 0.4s ease;
}

/* Scheduler / Weekly Calendar Styles */
.sched-container {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.sched-week-header {
  display: grid;
  grid-template-columns: 80px repeat(7, 1fr);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  padding-bottom: 0.75rem;
  margin-bottom: 0.5rem;
  text-align: center;
}
.sched-week-day {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.sched-day-name {
  font-size: 0.65rem;
  text-transform: uppercase;
  color: var(--text-dim);
  font-weight: 600;
}
.sched-day-num {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin-top: 2px;
}
.sched-day-num.active {
  color: var(--accent);
  background: var(--accent-soft);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sched-grid {
  display: grid;
  grid-template-columns: 80px repeat(7, 1fr);
  grid-auto-rows: 90px;
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.01);
  overflow-y: auto;
  position: relative;
}

.sched-time-col {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  color: var(--text-dim);
  font-family: var(--font-mono);
  border-right: 1px solid rgba(255,255,255,0.03);
  border-bottom: 1px solid rgba(255,255,255,0.03);
  background: rgba(255,255,255,0.01);
}

.sched-cell {
  border-right: 1px solid rgba(255,255,255,0.03);
  border-bottom: 1px solid rgba(255,255,255,0.03);
  position: relative;
  padding: 4px;
}
.sched-cell:last-child {
  border-right: none;
}

/* Sched block/card */
.sched-block {
  border-radius: 8px;
  padding: 6px;
  height: 100%;
  width: 100%;
  font-size: 0.65rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid transparent;
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
  overflow: hidden;
}
.sched-block:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}
.sched-block-title {
  font-weight: 600;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sched-block-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--text-dim);
  margin-top: 4px;
}
.sched-block-platform {
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.55rem;
}
.sched-block-thumb {
  width: 100%;
  height: 36px;
  background-size: cover;
  background-position: center;
  border-radius: 4px;
  margin-bottom: 4px;
}

/* Scheduled Blocks color variants */
.sb-ig { background: rgba(244,63,94,0.06); border-color: rgba(244,63,94,0.15); color: var(--rose); }
.sb-ig .sched-block-platform { color: var(--rose); }
.sb-tt { background: rgba(255,255,255,0.04); border-color: rgba(255,255,255,0.1); color: var(--text); }
.sb-tt .sched-block-platform { color: var(--text); }
.sb-yt { background: rgba(239,68,68,0.06); border-color: rgba(239,68,68,0.15); color: #ff3b30; }
.sb-yt .sched-block-platform { color: #ff3b30; }
.sb-tw { background: rgba(14,165,233,0.06); border-color: rgba(14,165,233,0.15); color: var(--cyan); }
.sb-tw .sched-block-platform { color: var(--cyan); }
.sb-ln { background: rgba(2,132,199,0.06); border-color: rgba(2,132,199,0.15); color: #0077b5; }
.sb-ln .sched-block-platform { color: #0077b5; }

/* Time line indicator marker */
.sched-time-indicator {
  position: absolute;
  left: 80px;
  right: 0;
  height: 2px;
  background: var(--accent);
  z-index: 5;
  pointer-events: none;
}
.sched-time-indicator::before {
  content: '';
  position: absolute;
  left: -4px;
  top: -3px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
}

/* Right-panel Media Widget */
.media-widget {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: var(--radius);
  padding: 1.25rem;
}
.media-widget-title {
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--text);
}
.media-widget-desc {
  font-size: 0.68rem;
  color: var(--text-dim);
  margin-bottom: 1rem;
}
.media-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
}
.media-item {
  aspect-ratio: 1;
  border-radius: 6px;
  background-size: cover;
  background-position: center;
  border: 1px solid rgba(255,255,255,0.05);
  cursor: grab;
  transition: transform 0.2s;
  background-color: var(--surface-2);
}
.media-item:hover {
  transform: scale(1.05);
  border-color: var(--accent-mid);
}

/* Right-panel Activity Widget */
.activity-widget {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: var(--radius);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.activity-featured-thumb {
  width: 100%;
  height: 120px;
  border-radius: var(--radius-sm);
  background-size: cover;
  background-position: center;
  border: 1px solid rgba(255,255,255,0.05);
  background-color: var(--surface-2);
}
.activity-eng-wrap {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.activity-eng-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-dim);
}
.activity-eng-val {
  color: var(--cyan);
  font-weight: 700;
}
.activity-eng-bar-bg {
  height: 6px;
  background: rgba(255,255,255,0.05);
  border-radius: 3px;
  overflow: hidden;
}
.activity-eng-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--cyan));
  border-radius: 3px;
  width: 74.92%;
}
.activity-stats-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  color: var(--text-muted);
  border-top: 1px solid rgba(255,255,255,0.05);
  padding-top: 0.75rem;
  margin-top: 0.25rem;
}
.activity-stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.activity-stat-num {
  font-weight: 700;
  color: var(--text);
}

/* Hide global layout components in Portal mode */
body.portal-active #footer,
body.portal-active header.pg-nav {
  display: none !important;
}

body.portal-active {
  padding-top: 0 !important;
}

.dash-workspace.no-right-sidebar {
  grid-template-columns: 1fr;
}
.dash-workspace.no-right-sidebar .dash-right-panel {
  display: none !important;
}

