/* Dashboard (demo) styles */
.app-body { background: #0a0e18; min-height: 100vh; display: flex; flex-direction: column; }
.app-top {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 20px; height: 56px; border-bottom: 1px solid var(--border);
  background: #0d1220; position: sticky; top: 0; z-index: 40;
}
.app-top .logo { font-size: 1.05rem; }
.demo-banner {
  background: linear-gradient(90deg, rgba(94,234,212,0.12), rgba(129,140,248,0.12));
  border-bottom: 1px solid var(--border);
  text-align: center; font-size: 0.85rem; color: var(--muted); padding: 7px 16px;
}
.demo-banner a { color: var(--aurora-1); }
.app-main { display: flex; flex: 1; }
.sidebar {
  width: 200px; border-right: 1px solid var(--border); background: #0d1220;
  padding: 18px 12px; flex-shrink: 0;
}
.sidebar a {
  display: block; color: var(--muted); text-decoration: none; font-size: 0.92rem;
  padding: 9px 12px; border-radius: 8px; margin-bottom: 2px;
}
.sidebar a.active { background: rgba(94,234,212,0.1); color: var(--aurora-1); }
.sidebar a:hover:not(.active) { background: rgba(255,255,255,0.04); color: var(--text); }
.sidebar .side-label { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; color: #64748b; padding: 14px 12px 6px; }
.app-content { flex: 1; padding: 24px; min-width: 0; }
.app-content h1 { font-size: 1.35rem; margin-bottom: 4px; }
.app-sub { color: var(--muted); font-size: 0.9rem; margin-bottom: 22px; }

/* KPI cards */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; margin-bottom: 24px; }
.kpi { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 16px 18px; }
.kpi .kpi-label { color: var(--muted); font-size: 0.8rem; margin-bottom: 6px; }
.kpi .kpi-value { font-size: 1.5rem; font-weight: 700; }
.kpi .kpi-delta { font-size: 0.8rem; margin-top: 4px; }
.up { color: #34d399; } .down { color: #f87171; } .flat { color: var(--muted); }

/* Panels */
.panel { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 20px; margin-bottom: 20px; }
.panel h2 { font-size: 1.05rem; margin-bottom: 14px; }
.panel-row { display: grid; grid-template-columns: 1.6fr 1fr; gap: 20px; align-items: start; }
@media (max-width: 980px) { .panel-row { grid-template-columns: 1fr; } }

/* SKU table */
.sku-table { width: 100%; border-collapse: collapse; font-size: 0.84rem; }
.sku-table th {
  text-align: left; color: #64748b; font-weight: 600; font-size: 0.75rem;
  text-transform: uppercase; letter-spacing: 0.05em;
  padding: 8px 10px; border-bottom: 1px solid var(--border); white-space: nowrap;
}
.sku-table td { padding: 10px 7px; border-bottom: 1px solid rgba(36,48,74,0.6); vertical-align: middle; white-space: nowrap; }
.sku-table tr:hover td { background: rgba(255,255,255,0.02); }
.sku-name { color: var(--text); font-weight: 600; }
.sku-id { color: #64748b; font-size: 0.78rem; }
.table-scroll { overflow-x: auto; }

/* Badges */
.badge-pill {
  display: inline-block; font-size: 0.72rem; font-weight: 700; border-radius: 20px;
  padding: 2px 10px; letter-spacing: 0.03em;
}
.b-win { background: rgba(52,211,153,0.15); color: #34d399; }
.b-lose { background: rgba(248,113,113,0.15); color: #f87171; }
.b-share { background: rgba(251,191,36,0.15); color: #fbbf24; }
.b-wfs { background: rgba(94,234,212,0.14); color: var(--aurora-1); }
.b-fba { background: rgba(129,140,248,0.16); color: #a5b4fc; }
.b-fbm { background: rgba(148,163,184,0.15); color: #94a3b8; }
.b-strategy { background: rgba(244,114,182,0.14); color: #f9a8d4; }
.price-you { font-weight: 700; }
.price-note { font-size: 0.75rem; color: #64748b; }

/* Competitor list */
.comp-list { list-style: none; }
.comp-list li {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 4px; border-bottom: 1px solid rgba(36,48,74,0.6); font-size: 0.88rem;
}
.comp-list li:last-child { border-bottom: none; }
.comp-left { display: flex; align-items: center; gap: 10px; }
.comp-name { color: var(--text); }
.comp-you { color: var(--aurora-1); font-weight: 700; }
.comp-price { font-weight: 600; }

/* Chart */
.chart-wrap { position: relative; }
.chart-legend { display: flex; gap: 18px; font-size: 0.8rem; color: var(--muted); margin-bottom: 10px; flex-wrap: wrap; }
.chart-legend span { display: inline-flex; align-items: center; gap: 6px; }
.dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.d-you { background: #5eead4; } .d-bb { background: #818cf8; } .d-low { background: #f87171; }

/* Event feed */
.feed { list-style: none; }
.feed li { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid rgba(36,48,74,0.6); font-size: 0.88rem; }
.feed li:last-child { border-bottom: none; }
.feed-time { color: #64748b; font-size: 0.78rem; white-space: nowrap; padding-top: 2px; width: 70px; flex-shrink: 0; }
.feed-tag {
  flex-shrink: 0; font-size: 0.7rem; font-weight: 700; border-radius: 6px; padding: 3px 8px;
  height: fit-content; text-transform: uppercase; letter-spacing: 0.04em;
}
.t-spiral { background: rgba(244,114,182,0.14); color: #f9a8d4; }
.t-window { background: rgba(251,191,36,0.14); color: #fbbf24; }
.t-bb { background: rgba(52,211,153,0.14); color: #34d399; }
.feed-text { color: var(--muted); }
.feed-text strong { color: var(--text); }

@media (max-width: 780px) { .sidebar { display: none; } }

/* ---- Marketing-page extras ---- */

/* Hero dashboard mockup */
.hero-mock {
  margin-top: 54px; border: 1px solid var(--border); border-radius: 16px;
  background: #0d1220; padding: 18px; box-shadow: 0 30px 80px rgba(0,0,0,0.5);
}
.mock-bar { display: flex; gap: 6px; margin-bottom: 14px; }
.mock-bar span { width: 10px; height: 10px; border-radius: 50%; background: #24304a; display: inline-block; }

/* Strategy cards on marketing pages */
.strategy-hero {
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 36px; margin-bottom: 26px;
  background: linear-gradient(135deg, rgba(94,234,212,0.05), rgba(129,140,248,0.05));
}
.strategy-hero h3 { font-size: 1.5rem; margin-bottom: 6px; }
.strategy-tag { color: var(--aurora-1); font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; }
.strategy-hero p { color: var(--muted); max-width: 720px; }
.strategy-points { margin: 18px 0 0 0; list-style: none; }
.strategy-points li { color: var(--muted); padding: 6px 0 6px 26px; position: relative; }
.strategy-points li::before { content: "✦"; position: absolute; left: 2px; color: var(--aurora-1); }
.research-note { font-size: 0.85rem; color: #64748b; margin-top: 16px; border-left: 2px solid var(--border); padding-left: 14px; }

/* Login */
.login-wrap { min-height: calc(100vh - 64px); display: flex; align-items: center; justify-content: center; padding: 40px 20px; }
.login-card { background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 40px; width: 100%; max-width: 420px; }
.login-card h1 { font-size: 1.5rem; margin-bottom: 6px; }
.login-card .login-sub { color: var(--muted); font-size: 0.92rem; margin-bottom: 26px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 0.85rem; color: var(--muted); margin-bottom: 6px; }
.field input {
  width: 100%; background: #0d1220; border: 1px solid var(--border); border-radius: 10px;
  padding: 12px 14px; color: var(--text); font-size: 0.95rem;
}
.field input:focus { outline: none; border-color: var(--aurora-1); }
.login-card .btn { width: 100%; text-align: center; margin-top: 6px; border: none; cursor: pointer; }
.login-divider { display: flex; align-items: center; gap: 12px; color: #64748b; font-size: 0.8rem; margin: 22px 0; }
.login-divider::before, .login-divider::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.login-note { text-align: center; color: #64748b; font-size: 0.82rem; margin-top: 20px; }
.login-note a { color: var(--aurora-1); }
.login-error { display: none; background: rgba(248,113,113,0.1); border: 1px solid rgba(248,113,113,0.3); color: #fca5a5; border-radius: 10px; padding: 10px 14px; font-size: 0.85rem; margin-bottom: 16px; }

/* ---- Depth pages (catalog / sku / settings / connections) ---- */
.filter-bar { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; align-items: center; }
.filter-bar input[type="search"] {
  background: #0d1220; border: 1px solid var(--border); border-radius: 8px;
  padding: 9px 12px; color: var(--text); font-size: 0.88rem; width: 240px;
}
.filter-bar input[type="search"]:focus { outline: none; border-color: var(--aurora-1); }
.chip {
  background: #0d1220; border: 1px solid var(--border); border-radius: 20px;
  color: var(--muted); font-size: 0.82rem; padding: 7px 14px; cursor: pointer; text-decoration: none;
}
.chip.on { border-color: var(--aurora-1); color: var(--aurora-1); background: rgba(94,234,212,0.08); }
.bulk-bar { display: flex; justify-content: space-between; align-items: center; color: var(--muted); font-size: 0.82rem; margin-top: 14px; }
.bulk-bar .pager a { color: var(--muted); text-decoration: none; padding: 5px 10px; border: 1px solid var(--border); border-radius: 6px; margin-left: 6px; font-size: 0.8rem; }
.bulk-bar .pager a.cur { color: var(--aurora-1); border-color: var(--aurora-1); }

/* SKU detail */
.sku-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; flex-wrap: wrap; margin-bottom: 20px; }
.sku-head h1 { margin-bottom: 2px; }
.crumb { font-size: 0.82rem; color: #64748b; margin-bottom: 10px; }
.crumb a { color: var(--muted); text-decoration: none; }
.crumb a:hover { color: var(--aurora-1); }
.sku-meta { display: flex; gap: 16px; color: var(--muted); font-size: 0.85rem; flex-wrap: wrap; margin-top: 6px; }

/* Forms */
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.f-field label { display: block; font-size: 0.8rem; color: var(--muted); margin-bottom: 6px; }
.f-field input, .f-field select {
  width: 100%; background: #0d1220; border: 1px solid var(--border); border-radius: 8px;
  padding: 10px 12px; color: var(--text); font-size: 0.9rem;
}
.f-field input:focus, .f-field select:focus { outline: none; border-color: var(--aurora-1); }
.f-help { font-size: 0.75rem; color: #64748b; margin-top: 5px; }
.form-actions { margin-top: 20px; display: flex; gap: 12px; align-items: center; }
.btn-save { background: linear-gradient(135deg, var(--aurora-1), var(--aurora-2)); color: #0b0f1a; border: none; border-radius: 9px; padding: 10px 22px; font-weight: 600; font-size: 0.9rem; cursor: pointer; }
.save-note { font-size: 0.8rem; color: #64748b; }

/* Toggle */
.toggle-row { display: flex; justify-content: space-between; align-items: center; padding: 14px 0; border-bottom: 1px solid rgba(36,48,74,0.6); }
.toggle-row:last-child { border-bottom: none; }
.toggle-row .t-label { color: var(--text); font-size: 0.92rem; }
.toggle-row .t-sub { color: #64748b; font-size: 0.8rem; margin-top: 2px; }
.switch { position: relative; width: 42px; height: 24px; flex-shrink: 0; }
.switch input { opacity: 0; width: 0; height: 0; }
.slider { position: absolute; inset: 0; background: #24304a; border-radius: 24px; transition: 0.2s; cursor: pointer; }
.slider::before { content: ""; position: absolute; width: 18px; height: 18px; left: 3px; top: 3px; background: #9aa7bd; border-radius: 50%; transition: 0.2s; }
.switch input:checked + .slider { background: rgba(94,234,212,0.35); }
.switch input:checked + .slider::before { transform: translateX(18px); background: var(--aurora-1); }

/* Connections */
.conn-card { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.conn-left { display: flex; align-items: center; gap: 14px; }
.conn-logo { width: 44px; height: 44px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 1.3rem; font-weight: 800; }
.cl-wm { background: rgba(94,234,212,0.12); color: var(--aurora-1); }
.cl-az { background: rgba(251,191,36,0.12); color: #fbbf24; }
.conn-name { font-weight: 700; }
.conn-sub { color: #64748b; font-size: 0.8rem; margin-top: 2px; }
