:root {
  --navy: #0b1736;
  --navy-2: #132449;
  --ink: #17213a;
  --muted: #75809a;
  --line: #e7eaf1;
  --page: #f4f6fa;
  --surface: #ffffff;
  --mint: #2ed3b7;
  --mint-soft: #dff8f3;
  --blue: #4963ff;
  --blue-soft: #e9edff;
  --coral: #ff776a;
  --coral-soft: #fff0ed;
  --amber: #edae49;
  --violet: #8d69e8;
  --shadow: 0 12px 36px rgba(20, 34, 68, 0.07);
  --radius: 20px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  background: var(--page);
  color: var(--ink);
  font-family: "IBM Plex Sans Arabic", "DIN Next Arabic", "Segoe UI", Tahoma, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
svg { display: block; }

.skip-link {
  position: fixed;
  top: 12px;
  right: 12px;
  z-index: 1000;
  transform: translateY(-150%);
  padding: 10px 16px;
  border-radius: 10px;
  background: #fff;
  color: var(--navy);
}
.skip-link:focus { transform: translateY(0); }

.sidebar {
  position: fixed;
  inset: 0 0 0 auto;
  z-index: 20;
  display: flex;
  width: 258px;
  flex-direction: column;
  overflow-y: auto;
  padding: 28px 20px 22px;
  background:
    radial-gradient(circle at 105% 18%, rgba(46,211,183,.12), transparent 24%),
    linear-gradient(180deg, #0a1634 0%, #0c1939 100%);
  color: #fff;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  text-decoration: none;
  padding: 2px 4px 26px;
}
.brand-mark {
  position: relative;
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 13px;
  background: rgba(255,255,255,.08);
}
.brand-mark::before {
  position: absolute;
  width: 24px;
  height: 15px;
  border-radius: 50% 50% 48% 48%;
  background: var(--mint);
  content: "";
  transform: rotate(-2deg);
}
.brand-eye {
  position: relative;
  z-index: 1;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--navy);
  box-shadow: 2px -2px 0 -1px #fff;
}
.brand strong { display: block; font-size: 1.28rem; letter-spacing: -.02em; }
.brand small { display: block; margin-top: -2px; color: #91a0bf; font-size: .72rem; }
.nav-label {
  margin: 0 12px 10px;
  color: #6f7d9b;
  font-size: .72rem;
  font-weight: 700;
}
.main-nav { display: grid; gap: 4px; }
.nav-item {
  position: relative;
  display: flex;
  min-height: 46px;
  align-items: center;
  gap: 12px;
  padding: 0 13px;
  border-radius: 12px;
  color: #aeb8cc;
  font-size: .91rem;
  font-weight: 600;
  text-decoration: none;
  transition: .2s ease;
}
.nav-item svg { width: 20px; height: 20px; fill: currentColor; opacity: .9; }
.nav-item:hover { background: rgba(255,255,255,.055); color: #fff; }
.nav-item.is-active { background: rgba(46,211,183,.12); color: #fff; }
.nav-item.is-active::before {
  position: absolute;
  right: -20px;
  width: 3px;
  height: 22px;
  border-radius: 0 4px 4px 0;
  background: var(--mint);
  content: "";
}
.nav-count {
  margin-right: auto;
  min-width: 24px;
  padding: 1px 7px;
  border-radius: 999px;
  background: rgba(255,255,255,.09);
  color: #ced5e3;
  font-size: .72rem;
  text-align: center;
}
.nav-dot { width: 7px; height: 7px; margin-right: auto; border-radius: 50%; background: var(--coral); box-shadow: 0 0 0 4px rgba(255,119,106,.12); }
.sidebar-spacer { flex: 1; min-height: 40px; }
.side-insight { padding: 16px; border: 1px solid rgba(255,255,255,.08); border-radius: 15px; background: rgba(255,255,255,.035); }
.side-insight-head { display: flex; align-items: center; justify-content: space-between; font-size: .78rem; color: #b6c0d5; }
.side-insight-head strong { color: var(--mint); font-size: .92rem; }
.progress-track { height: 5px; margin: 10px 0; overflow: hidden; border-radius: 99px; background: rgba(255,255,255,.1); }
.progress-track span { display: block; height: 100%; border-radius: inherit; background: var(--mint); }
.side-insight p { margin: 0; color: #7f8eab; font-size: .72rem; }
.user-card { display: flex; align-items: center; gap: 10px; margin-top: 14px; padding: 10px 4px 0; border-top: 1px solid rgba(255,255,255,.06); }
.avatar { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 11px; background: linear-gradient(135deg, #5a6fff, #8b6be8); font-size: .82rem; font-weight: 800; }
.user-copy { min-width: 0; }
.user-copy strong, .user-copy small { display: block; }
.user-copy strong { font-size: .78rem; }
.user-copy small { color: #7785a2; font-size: .66rem; }

.app-shell { min-height: 100vh; margin-right: 258px; }
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: 1540px;
  margin: auto;
  padding: 28px 36px 16px;
}
.mobile-brand { display: none; }
.eyebrow-row { display: flex; align-items: center; gap: 12px; margin-bottom: 5px; }
.demo-chip, .updated-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  width: max-content;
  padding: 4px 9px;
  border: 1px solid #dfe5ef;
  border-radius: 999px;
  background: #fff;
  color: #68738a;
  font-size: .7rem;
  font-weight: 700;
}
.demo-chip span { width: 6px; height: 6px; border-radius: 50%; background: var(--amber); }
.last-update { color: #98a0b1; font-size: .72rem; }
.topbar h1 { margin: 0; color: var(--navy); font-size: clamp(1.55rem, 2.3vw, 2.05rem); line-height: 1.25; letter-spacing: -.04em; }
.topbar-copy > p { margin: 5px 0 0; color: var(--muted); font-size: .9rem; }
.top-actions { display: flex; align-items: center; gap: 10px; }
.icon-button {
  position: relative;
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: #6f7b93;
}
.icon-button svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.icon-button.dark { width: 30px; height: 30px; margin-right: auto; border: 0; background: transparent; color: #6f7d99; font-weight: 800; }
.notification-dot { position: absolute; top: 8px; right: 8px; width: 7px; height: 7px; border: 2px solid #fff; border-radius: 50%; background: var(--coral); }
.primary-button, .secondary-button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 17px;
  border-radius: 12px;
  font-size: .86rem;
  font-weight: 800;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.primary-button { border: 1px solid var(--navy); background: var(--navy); color: #fff; box-shadow: 0 8px 20px rgba(11,23,54,.16); }
.primary-button:hover { transform: translateY(-1px); background: #132550; box-shadow: 0 11px 24px rgba(11,23,54,.22); }
.primary-button svg, .secondary-button svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.secondary-button { border: 1px solid #dce1eb; background: #fff; color: var(--ink); box-shadow: 0 4px 14px rgba(20,34,68,.03); }
.secondary-button:hover { border-color: #bdc6d6; transform: translateY(-1px); }

main { max-width: 1540px; margin: auto; padding: 0 36px 38px; }
.section-block { padding-top: 28px; scroll-margin-top: 24px; }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 18px; }
.section-heading.compact { align-items: center; }
.section-kicker { margin: 0 0 2px; color: var(--blue); font-size: .7rem; font-weight: 900; letter-spacing: .02em; }
.section-heading h2 { margin: 0; color: var(--navy); font-size: 1.35rem; letter-spacing: -.03em; }
.section-heading > div > p:last-child:not(.section-kicker) { margin: 4px 0 0; color: var(--muted); font-size: .84rem; }
.period-switch { display: flex; padding: 3px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.period-switch button { min-width: 66px; padding: 6px 10px; border: 0; border-radius: 7px; background: transparent; color: #8a93a6; font-size: .72rem; font-weight: 700; }
.period-switch button.is-active { background: var(--navy); color: #fff; }

.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 14px; }
.metric-card {
  position: relative;
  min-height: 155px;
  overflow: hidden;
  padding: 18px;
  border: 1px solid #eaedf3;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 8px 28px rgba(19,36,73,.035);
}
.metric-card.primary-metric { border-color: transparent; background: linear-gradient(145deg, #101f43, #0b1736); color: #fff; box-shadow: 0 15px 35px rgba(11,23,54,.17); }
.metric-glow { position: absolute; left: -26px; bottom: -54px; width: 130px; height: 130px; border-radius: 50%; background: rgba(46,211,183,.14); filter: blur(2px); }
.metric-top { display: flex; align-items: center; justify-content: space-between; }
.metric-icon { display: grid; width: 35px; height: 35px; place-items: center; border-radius: 10px; }
.metric-icon svg { width: 18px; height: 18px; fill: currentColor; }
.metric-icon.navy { background: rgba(255,255,255,.1); color: var(--mint); }
.metric-icon.mint { background: var(--mint-soft); color: #159980; }
.metric-icon.coral { background: var(--coral-soft); color: var(--coral); }
.metric-icon.lilac { background: #f0ebff; color: var(--violet); }
.delta { display: inline-flex; align-items: center; gap: 2px; width: max-content; padding: 3px 7px; border-radius: 999px; font-size: .68rem; font-weight: 900; }
.delta svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 2; }
.delta.positive { background: #e4f8f3; color: #168d79; }
.primary-metric .delta.positive { background: rgba(46,211,183,.13); color: #71ead5; }
.delta.neutral { background: #f1edff; color: #7658cb; }
.metric-card > p { margin: 14px 0 0; color: #778197; font-size: .76rem; font-weight: 700; }
.primary-metric > p { color: #a9b5ce; }
.metric-value { display: block; margin: -1px 0 -2px; color: var(--navy); font-size: 2rem; line-height: 1.3; letter-spacing: -.05em; }
.primary-metric .metric-value { color: #fff; }
.metric-card > small { color: #a0a8b8; font-size: .68rem; }

.analytics-grid { display: grid; grid-template-columns: minmax(0,1.6fr) minmax(330px,.85fr); gap: 14px; margin-top: 14px; }
.panel { border: 1px solid #e9ecf2; border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); }
.growth-panel { padding: 21px 22px 16px; }
.panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.panel-label { margin: 0; color: #8a94a8; font-size: .7rem; font-weight: 700; }
.panel-head h3 { margin: 1px 0 0; color: var(--navy); font-size: .98rem; }
.legend { display: flex; flex-wrap: wrap; gap: 12px; padding-top: 5px; color: #828ba0; font-size: .65rem; }
.legend span { display: flex; align-items: center; gap: 5px; }
.legend-line { display: block; width: 13px; height: 3px; border-radius: 9px; }
.navy-line { background: var(--blue); }
.mint-line { background: var(--mint); }
.chart-summary { display: grid; grid-template-columns: auto auto 1fr; align-items: center; gap: 8px; margin-top: 13px; }
.chart-summary strong { color: var(--navy); font-size: 1.55rem; letter-spacing: -.04em; }
.chart-summary small { color: #9ba3b3; font-size: .67rem; }
.line-chart { position: relative; height: 211px; margin: 6px 0 0 28px; padding: 4px 0 22px; }
.line-chart svg { position: absolute; inset: 5px 0 25px; width: 100%; height: calc(100% - 30px); overflow: visible; }
.chart-gridlines { position: absolute; inset: 4px 0 25px; display: flex; flex-direction: column; justify-content: space-between; }
.chart-gridlines i { display: block; border-top: 1px dashed #e8ebf1; }
.chart-line { fill: none; stroke-width: 3; vector-effect: non-scaling-stroke; }
.main-line { stroke: var(--blue); }
.external-line { stroke: var(--mint); stroke-width: 2; stroke-dasharray: 5 5; }
.chart-area { fill: url(#areaNavy); }
.data-points circle { fill: #fff; stroke: var(--blue); stroke-width: 3; vector-effect: non-scaling-stroke; }
.y-label { position: absolute; left: -29px; color: #a9b0bd; font-size: .57rem; }
.y-1 { top: -1px; }.y-2 { top: 28%; }.y-3 { top: 54%; }.y-4 { top: 79%; }
.x-labels { position: absolute; right: 0; bottom: 0; left: 0; display: flex; justify-content: space-between; color: #9ba3b3; font-size: .58rem; }
.opportunity-panel { padding: 21px; }
.text-button { padding: 4px 0; border: 0; background: none; color: var(--blue); font-size: .7rem; font-weight: 800; }
.gap-list { display: grid; gap: 13px; margin-top: 18px; }
.gap-meta { display: flex; align-items: center; justify-content: space-between; font-size: .74rem; }
.gap-meta span { color: #536078; font-weight: 700; }
.gap-meta strong { color: var(--navy); }
.gap-track { height: 6px; margin: 5px 0 3px; overflow: hidden; border-radius: 99px; background: #eef0f4; }
.gap-track span { display: block; height: 100%; border-radius: inherit; }
.gap-row small { color: #9aa2b1; font-size: .61rem; }
.insight-callout { display: flex; gap: 9px; margin-top: 18px; padding: 11px 12px; border: 1px solid #d9f3ed; border-radius: 12px; background: #effbf8; }
.insight-callout p { margin: 0; color: #526176; font-size: .68rem; line-height: 1.55; }
.insight-callout p strong { display: block; color: #187d6d; }
.spark-icon { color: #20a990; }

.accounts-section { padding-top: 48px; }
.table-panel { overflow: hidden; }
.table-tools { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.search-box { position: relative; display: block; width: min(330px, 100%); }
.search-box svg { position: absolute; top: 50%; right: 12px; width: 17px; height: 17px; transform: translateY(-50%); fill: none; stroke: #9da5b4; stroke-width: 1.8; stroke-linecap: round; }
.search-box input { width: 100%; height: 40px; padding: 0 39px 0 13px; border: 1px solid #e1e5ec; border-radius: 10px; outline: none; background: #fafbfc; color: var(--ink); font-size: .76rem; }
.search-box input:focus { border-color: #aab6ff; background: #fff; box-shadow: 0 0 0 3px #eef0ff; }
.filter-pills { display: flex; gap: 5px; }
.filter-pills button { padding: 7px 11px; border: 1px solid transparent; border-radius: 9px; background: transparent; color: #7d879b; font-size: .7rem; font-weight: 700; }
.filter-pills button span { margin-right: 4px; color: #a6aebc; }
.filter-pills button.is-active { border-color: #e1e5ed; background: #f7f8fa; color: var(--navy); }
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th { padding: 12px 16px; background: #fafbfc; color: #8c95a7; font-size: .66rem; font-weight: 800; text-align: right; white-space: nowrap; }
td { padding: 14px 16px; border-top: 1px solid #eef0f4; color: #566177; font-size: .73rem; white-space: nowrap; }
tbody tr { transition: background .16s ease; }
tbody tr:hover { background: #fbfcff; }
.client-cell { display: flex; align-items: center; gap: 10px; min-width: 210px; }
.client-logo { display: grid; width: 38px; height: 38px; flex: 0 0 auto; place-items: center; border-radius: 11px; font-size: .9rem; font-weight: 900; }
.client-logo.peach { background: #ffebe7; color: #dc5d50; }
.client-logo.blue { background: #e8efff; color: #4266cf; }
.client-logo.green { background: #e2f6ef; color: #1b9276; }
.client-logo.purple { background: #f0eafd; color: #7b56c0; }
.client-logo.gold { background: #fff3dc; color: #b67a18; }
.client-cell strong, .client-cell small { display: block; }
.client-cell strong { color: var(--ink); font-size: .76rem; }
.client-cell small { margin-top: 1px; color: #9aa3b3; font-size: .64rem; }
.analysis-type { display: inline-flex; align-items: center; gap: 6px; }
.analysis-type i { width: 7px; height: 7px; border-radius: 50%; }
.analysis-type.connected i { background: var(--mint); box-shadow: 0 0 0 3px var(--mint-soft); }
.analysis-type.external i { background: var(--blue); box-shadow: 0 0 0 3px var(--blue-soft); }
.score-cell { display: flex; align-items: center; gap: 9px; }
.score-cell b { width: 22px; color: var(--navy); font-size: .78rem; }
.score-mini { width: 58px; height: 5px; overflow: hidden; border-radius: 99px; background: #eceff4; }
.score-mini span { display: block; height: 100%; border-radius: inherit; }
.growth-value { color: #178e78; font-weight: 900; }
.status-pill { display: inline-flex; align-items: center; justify-content: center; padding: 4px 8px; border-radius: 999px; font-size: .62rem; font-weight: 900; }
.status-pill.high { background: #fff0ed; color: #d95f53; }
.status-pill.medium { background: #fff5df; color: #ad7518; }
.status-pill.low { background: #edf0f5; color: #718098; }
.row-action { display: inline-flex; align-items: center; gap: 5px; padding: 6px 9px; border: 0; border-radius: 8px; background: #f1f4ff; color: #4e61d5; font-size: .65rem; font-weight: 800; }
.row-action:hover { background: #e5e9ff; }
.empty-state { padding: 50px 20px; text-align: center; }
.empty-state > span { display: grid; width: 44px; height: 44px; margin: 0 auto 8px; place-items: center; border-radius: 14px; background: #f1f3f7; color: #98a1b2; font-size: 1.3rem; }
.empty-state strong { display: block; color: var(--navy); }
.empty-state p { margin: 4px 0 0; color: var(--muted); font-size: .76rem; }
.table-footer { display: flex; align-items: center; justify-content: space-between; padding: 13px 18px; border-top: 1px solid var(--line); color: #8f98a9; font-size: .68rem; }
.pagination { display: flex; gap: 4px; direction: ltr; }
.pagination button { display: grid; width: 28px; height: 28px; place-items: center; border: 1px solid #e2e5eb; border-radius: 8px; background: #fff; color: #7c8799; font-size: .65rem; }
.pagination button.is-active { border-color: var(--navy); background: var(--navy); color: #fff; }

#insights { padding-top: 52px; }
.updated-pill { border: 0; background: #e8f7f3; color: #278c7b; }
.insight-grid { display: grid; grid-template-columns: 1.15fr 1fr 1fr; gap: 14px; }
.insight-card { position: relative; min-height: 242px; overflow: hidden; padding: 21px; border: 1px solid #e8ebf1; border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); }
.insight-card.dark-card { border: 0; background: linear-gradient(145deg, #101f42, #0b1736); color: #fff; }
.insight-number { position: absolute; top: 4px; left: 15px; color: #f1f3f7; font-size: 4.6rem; font-weight: 900; line-height: 1; letter-spacing: -.09em; }
.dark-card .insight-number { color: rgba(255,255,255,.055); }
.insight-tag { position: relative; display: inline-block; padding: 4px 8px; border-radius: 7px; background: #e4f8f3; color: #1b8a77; font-size: .62rem; font-weight: 900; }
.insight-tag.amber { background: #fff3dd; color: #a46d13; }
.insight-tag.violet { background: #f0ebff; color: #7655c7; }
.insight-card h3 { position: relative; max-width: 310px; margin: 17px 0 8px; color: var(--navy); font-size: 1.05rem; line-height: 1.45; }
.dark-card h3 { color: #fff; }
.insight-card > p { position: relative; max-width: 390px; margin: 0; color: #7b859a; font-size: .75rem; line-height: 1.75; }
.dark-card > p { color: #a5b0c6; }
.mini-bars { position: absolute; right: 22px; bottom: 20px; left: 22px; display: flex; height: 52px; align-items: flex-end; gap: 7px; border-bottom: 1px solid rgba(255,255,255,.08); }
.mini-bars i { flex: 1; max-width: 34px; border-radius: 5px 5px 0 0; background: linear-gradient(180deg, var(--mint), rgba(46,211,183,.25)); }
.time-band { position: absolute; right: 21px; bottom: 22px; left: 21px; display: grid; grid-template-columns: repeat(5,1fr); gap: 5px; }
.time-band span { padding: 12px 2px; border-radius: 8px; background: #f1f3f6; color: #8992a4; font-size: .59rem; text-align: center; }
.time-band span.hot { background: #ffe9c3; color: #9c6914; font-weight: 900; }
.conversion-flow { position: absolute; right: 21px; bottom: 21px; left: 21px; display: flex; align-items: center; justify-content: space-between; gap: 9px; padding: 10px; border-radius: 12px; background: #f7f8fb; }
.conversion-flow span { flex: 1; text-align: center; }
.conversion-flow b, .conversion-flow small { display: block; }
.conversion-flow b { color: #6247b2; font-size: 1rem; }
.conversion-flow small { color: #8d95a5; font-size: .58rem; }
.conversion-flow i { color: #c2c7d1; font-style: normal; }
.conversion-flow .weak b { color: var(--coral); }

.plans-section { padding-top: 52px; }
.plan-layout { display: grid; grid-template-columns: minmax(0,1.55fr) minmax(290px,.65fr); gap: 14px; }
.featured-plan, .quick-win-panel { border: 1px solid #e8ebf1; border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); }
.featured-plan { overflow: hidden; }
.plan-client-head { display: flex; align-items: center; gap: 12px; padding: 20px 22px; border-bottom: 1px solid var(--line); background: linear-gradient(90deg, #fff, #fbfcff); }
.plan-client-head > div:nth-child(2) { min-width: 0; }
.plan-client-head span { color: #8d96a8; font-size: .65rem; }
.plan-client-head h3 { margin: 1px 0 0; color: var(--navy); font-size: .96rem; }
.plan-score { margin-right: auto; text-align: center; }
.plan-score strong, .plan-score small { display: block; }
.plan-score strong { color: #168f79; font-size: 1.3rem; line-height: 1; }
.plan-score small { margin-top: 4px; }
.plan-roadmap { padding: 6px 22px; }
.roadmap-item { position: relative; display: grid; grid-template-columns: 29px 1fr auto; align-items: center; gap: 13px; padding: 15px 0; border-bottom: 1px solid #eef0f4; }
.roadmap-item:last-child { border-bottom: 0; }
.step-number { display: grid; width: 28px; height: 28px; place-items: center; border-radius: 9px; background: var(--navy); color: #fff; font-size: .68rem; font-weight: 900; }
.roadmap-item small, .roadmap-item strong, .roadmap-item p { display: block; }
.roadmap-item small { color: #8f98aa; font-size: .61rem; }
.roadmap-item strong { margin-top: 1px; color: var(--ink); font-size: .76rem; }
.roadmap-item p { margin: 2px 0 0; color: #8790a2; font-size: .66rem; }
.impact { padding: 4px 7px; border-radius: 7px; font-size: .59rem; font-weight: 900; }
.impact.high { background: #e3f7f2; color: #188a77; }
.impact.medium { background: #fff2db; color: #aa7218; }
.plan-footer { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 22px; border-top: 1px solid var(--line); background: #fafbfc; color: #7b8598; font-size: .67rem; }
.plan-footer b { color: #148b76; }
.small-button { min-height: 37px; padding: 0 13px; font-size: .68rem; }
.quick-win-panel { padding: 20px; }
.count-bubble { display: grid; width: 29px; height: 29px; place-items: center; border-radius: 9px; background: #eef1ff; color: #5365d8; font-size: .7rem; font-weight: 900; }
.quick-list { display: grid; gap: 0; margin: 14px 0 0; padding: 0; list-style: none; }
.quick-list li { display: flex; align-items: flex-start; gap: 10px; padding: 13px 0; border-bottom: 1px solid #eef0f4; }
.quick-list li:last-child { border-bottom: 0; }
.check-box { display: grid; width: 22px; height: 22px; flex: 0 0 auto; place-items: center; border-radius: 7px; background: #e3f7f2; color: #188a77; font-size: .67rem; font-weight: 900; }
.quick-list strong, .quick-list small { display: block; }
.quick-list strong { color: var(--ink); font-size: .69rem; line-height: 1.45; }
.quick-list small { margin-top: 3px; color: #949cab; font-size: .59rem; }
.page-footer { display: flex; justify-content: space-between; max-width: 1540px; margin: 0 auto; padding: 24px 36px 32px; color: #9aa2b2; font-size: .67rem; }

.modal-layer { position: fixed; inset: 0; z-index: 100; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(5,12,31,.68); backdrop-filter: blur(5px); }
.modal-card { position: absolute; top: 50%; left: 50%; width: min(680px, calc(100% - 30px)); max-height: calc(100vh - 34px); overflow-y: auto; padding: 28px; border-radius: 22px; background: #fff; box-shadow: 0 28px 90px rgba(4,10,28,.3); transform: translate(-50%,-50%); }
.modal-close { position: absolute; top: 17px; left: 17px; display: grid; width: 34px; height: 34px; place-items: center; border: 0; border-radius: 10px; background: #f1f3f6; color: #7b8496; font-size: 1.3rem; }
.modal-close.inline { position: static; margin-right: auto; }
.modal-step-indicator { display: flex; gap: 5px; margin-bottom: 20px; }
.modal-step-indicator span { width: 36px; height: 4px; border-radius: 99px; background: #e4e7ed; }
.modal-step-indicator span.is-active { background: var(--blue); }
.modal-card h2 { margin: 3px 0 0; color: var(--navy); font-size: 1.45rem; }
.modal-intro { max-width: 540px; margin: 7px 0 20px; color: #7b8598; font-size: .79rem; }
.analysis-choice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.analysis-choice { position: relative; display: grid; grid-template-columns: auto 1fr; gap: 10px; min-height: 210px; padding: 16px; border: 1.5px solid #e3e7ee; border-radius: 16px; background: #fff; color: inherit; text-align: right; }
.analysis-choice:hover { border-color: #bdc5d5; }
.analysis-choice.is-selected { border-color: var(--blue); background: #fafbff; box-shadow: 0 0 0 3px #edf0ff; }
.choice-icon { display: grid; width: 39px; height: 39px; place-items: center; border-radius: 11px; }
.choice-icon svg { width: 20px; height: 20px; fill: currentColor; }
.external-choice { background: #e9edff; color: #4f64dd; }
.connected-choice { background: #e3f8f3; color: #188e79; }
.choice-copy strong, .choice-copy small { display: block; }
.choice-copy strong { color: var(--navy); font-size: .86rem; }
.choice-copy small { color: #8992a4; font-size: .64rem; }
.choice-badge { position: absolute; top: 13px; left: 13px; padding: 3px 7px; border-radius: 6px; background: #eef0ff; color: #5364d0; font-size: .55rem; font-weight: 900; }
.choice-check { position: absolute; right: 16px; bottom: 15px; display: none; width: 21px; height: 21px; place-items: center; border-radius: 50%; background: var(--blue); color: #fff; font-size: .64rem; }
.analysis-choice.is-selected .choice-check { display: grid; }
.analysis-choice ul { grid-column: 1 / -1; margin: 10px 0 0; padding: 0 19px 0 0; color: #6f7990; font-size: .66rem; line-height: 1.9; }
.analysis-choice li::marker { color: var(--mint); }
.full-width { width: 100%; margin-top: 18px; }
.back-button { margin-bottom: 13px; padding: 0; border: 0; background: none; color: #6f7a90; font-size: .7rem; font-weight: 700; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-grid label { display: grid; gap: 5px; }
.form-grid label span { color: #586379; font-size: .7rem; font-weight: 800; }
.form-grid input, .form-grid select { width: 100%; height: 44px; padding: 0 12px; border: 1px solid #dfe3eb; border-radius: 10px; outline: none; background: #fafbfc; color: var(--ink); font-size: .76rem; }
.form-grid input:focus, .form-grid select:focus { border-color: #95a4ff; background: #fff; box-shadow: 0 0 0 3px #eef0ff; }
.full-field { grid-column: 1 / -1; }
.permission-note { display: flex; gap: 8px; margin-top: 13px; padding: 10px 12px; border-radius: 10px; background: #eef9f6; color: #4d706b; font-size: .66rem; }
.permission-note p { margin: 0; }

.detail-drawer { position: fixed; inset: 0; z-index: 90; pointer-events: none; visibility: hidden; }
.detail-drawer.is-open { pointer-events: auto; visibility: visible; }
.drawer-backdrop { position: absolute; inset: 0; background: rgba(5,12,31,.5); opacity: 0; backdrop-filter: blur(3px); transition: opacity .25s ease; }
.detail-drawer.is-open .drawer-backdrop { opacity: 1; }
.drawer-panel { position: absolute; top: 0; bottom: 0; left: 0; display: flex; width: min(620px, 100%); flex-direction: column; background: #fff; box-shadow: 24px 0 70px rgba(6,13,32,.22); transform: translateX(-102%); transition: transform .3s cubic-bezier(.2,.8,.2,1); }
.detail-drawer.is-open .drawer-panel { transform: translateX(0); }
.drawer-header { position: relative; display: flex; align-items: center; gap: 11px; padding: 20px 22px; border-bottom: 1px solid var(--line); }
.drawer-client { display: flex; align-items: center; gap: 11px; min-width: 0; }
.drawer-client small, .drawer-client span { color: #949cad; font-size: .61rem; }
.drawer-client h2 { margin: 0; color: var(--navy); font-size: .95rem; }
.drawer-header .status-pill { margin-right: auto; }
.drawer-body { flex: 1; overflow-y: auto; padding: 20px 22px; }
.drawer-score-area { display: grid; grid-template-columns: 130px 1fr; align-items: center; gap: 20px; padding: 19px; border-radius: 18px; background: #f6f8fb; }
.score-ring { display: grid; width: 116px; height: 116px; place-items: center; border-radius: 50%; background: conic-gradient(var(--mint) calc(var(--score) * 1%), #e3e8ee 0); }
.score-ring::before { position: absolute; width: 89px; height: 89px; border-radius: 50%; background: #f6f8fb; content: ""; }
.score-ring span { position: relative; z-index: 1; text-align: center; }
.score-ring strong, .score-ring small { display: block; }
.score-ring strong { color: var(--navy); font-size: 1.65rem; line-height: 1.1; }
.score-ring small { color: #8c95a7; font-size: .55rem; }
.score-copy h3 { margin: 9px 0 4px; color: var(--navy); font-size: .95rem; }
.score-copy p { margin: 0; color: #7b8598; font-size: .7rem; line-height: 1.7; }
.drawer-tabs { display: flex; gap: 4px; margin: 19px 0 14px; border-bottom: 1px solid var(--line); }
.drawer-tabs button { position: relative; flex: 1; padding: 9px 4px 11px; border: 0; background: none; color: #8a93a5; font-size: .68rem; font-weight: 800; }
.drawer-tabs button.is-active { color: var(--navy); }
.drawer-tabs button.is-active::after { position: absolute; right: 15%; bottom: -1px; left: 15%; height: 2px; border-radius: 4px 4px 0 0; background: var(--blue); content: ""; }
.drawer-tab-content { min-height: 290px; }
.diagnosis-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.diagnosis-card { padding: 13px; border: 1px solid #e7eaf0; border-radius: 13px; }
.diagnosis-card .diagnosis-head { display: flex; align-items: center; justify-content: space-between; }
.diagnosis-card span { color: #727d91; font-size: .66rem; font-weight: 700; }
.diagnosis-card b { color: var(--navy); font-size: .73rem; }
.diagnosis-card .mini-progress { height: 5px; margin-top: 9px; overflow: hidden; border-radius: 99px; background: #edf0f4; }
.diagnosis-card .mini-progress i { display: block; height: 100%; border-radius: inherit; background: var(--blue); }
.finding-list { display: grid; gap: 8px; margin-top: 13px; }
.finding { display: flex; align-items: flex-start; gap: 9px; padding: 11px; border-radius: 11px; background: #f7f8fa; }
.finding-icon { display: grid; width: 24px; height: 24px; flex: 0 0 auto; place-items: center; border-radius: 7px; background: #fff0ed; color: var(--coral); font-size: .67rem; font-weight: 900; }
.finding.good .finding-icon { background: #e3f7f2; color: #168c77; }
.finding strong, .finding small { display: block; }
.finding strong { color: var(--ink); font-size: .68rem; }
.finding small { margin-top: 2px; color: #8992a3; font-size: .61rem; line-height: 1.55; }
.content-list { display: grid; gap: 10px; }
.content-row { display: grid; grid-template-columns: 80px 1fr 42px; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid #eef0f4; }
.content-row span { color: #5c677c; font-size: .68rem; font-weight: 700; }
.content-row .content-track { height: 7px; overflow: hidden; border-radius: 99px; background: #eceff3; }
.content-row .content-track i { display: block; height: 100%; border-radius: inherit; background: var(--blue); }
.content-row b { color: var(--navy); font-size: .68rem; text-align: left; }
.audience-summary { display: grid; grid-template-columns: repeat(3,1fr); gap: 9px; }
.audience-box { padding: 14px 8px; border-radius: 13px; background: #f6f8fb; text-align: center; }
.audience-box b, .audience-box small { display: block; }
.audience-box b { color: var(--navy); font-size: .9rem; }
.audience-box small { color: #8e97a8; font-size: .58rem; }
.drawer-plan { display: grid; gap: 9px; }
.drawer-plan-item { display: grid; grid-template-columns: 25px 1fr auto; align-items: center; gap: 9px; padding: 11px; border: 1px solid #e9ecf1; border-radius: 12px; }
.drawer-plan-item > span:first-child { display: grid; width: 24px; height: 24px; place-items: center; border-radius: 7px; background: var(--navy); color: #fff; font-size: .6rem; }
.drawer-plan-item strong, .drawer-plan-item small { display: block; }
.drawer-plan-item strong { color: var(--ink); font-size: .67rem; }
.drawer-plan-item small { color: #8d96a7; font-size: .57rem; }
.drawer-plan-item em { color: #198b77; font-size: .58rem; font-style: normal; font-weight: 900; }
.drawer-footer { display: flex; justify-content: flex-end; gap: 8px; padding: 14px 22px; border-top: 1px solid var(--line); background: #fff; }

.toast { position: fixed; bottom: 24px; left: 24px; z-index: 150; display: flex; align-items: center; gap: 9px; min-width: 260px; padding: 12px 15px; border: 1px solid rgba(255,255,255,.12); border-radius: 13px; background: #101c38; color: #fff; box-shadow: 0 18px 45px rgba(5,12,31,.26); font-size: .75rem; font-weight: 700; opacity: 0; pointer-events: none; transform: translateY(18px); transition: .25s ease; }
.toast.is-visible { opacity: 1; transform: translateY(0); }
.toast-icon { display: grid; width: 24px; height: 24px; place-items: center; border-radius: 7px; background: var(--mint); color: var(--navy); font-weight: 900; }

@media (max-width: 1180px) {
  .metric-grid { grid-template-columns: repeat(2,1fr); }
  .insight-grid { grid-template-columns: 1fr 1fr; }
  .insight-card:first-child { grid-column: 1 / -1; }
  .plan-layout { grid-template-columns: 1fr; }
}

@media (max-width: 930px) {
  .sidebar { width: 82px; padding: 22px 12px; }
  .brand { justify-content: center; padding-bottom: 22px; }
  .brand > span:last-child, .nav-label, .nav-item span:not(.nav-dot), .side-insight, .user-copy, .icon-button.dark { display: none; }
  .nav-item { justify-content: center; padding: 0; }
  .nav-item.is-active::before { right: -12px; }
  .user-card { justify-content: center; }
  .app-shell { margin-right: 82px; }
  .analytics-grid { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .sidebar { display: none; }
  .app-shell { margin-right: 0; padding-bottom: 68px; }
  .topbar { align-items: flex-start; padding: 17px 16px 10px; }
  .mobile-brand { display: flex; align-items: center; gap: 8px; color: var(--navy); }
  .brand-mark.small { width: 34px; height: 34px; background: var(--navy); }
  .brand-mark.small::before { width: 21px; height: 13px; }
  .topbar-copy { order: 2; flex: 1; }
  .topbar h1 { font-size: 1.28rem; }
  .topbar-copy > p, .eyebrow-row .last-update, .top-actions .icon-button, .top-actions .primary-button svg { display: none; }
  .top-actions { order: 3; }
  .top-actions .primary-button { width: 42px; min-height: 42px; padding: 0; border-radius: 12px; font-size: 0; }
  .top-actions .primary-button::before { content: "+"; font-size: 1.3rem; }
  .mobile-brand { display: none; }
  main { padding: 0 14px 24px; }
  .section-block { padding-top: 22px; }
  .section-heading { align-items: flex-start; }
  .section-heading > .secondary-button { min-width: 42px; padding: 0 11px; font-size: 0; }
  .section-heading > .secondary-button svg { width: 18px; }
  .metric-grid { grid-template-columns: 1fr 1fr; gap: 9px; }
  .metric-card { min-height: 143px; padding: 14px; border-radius: 15px; }
  .metric-value { font-size: 1.65rem; }
  .metric-card > p { font-size: .68rem; }
  .analytics-grid { gap: 10px; }
  .growth-panel, .opportunity-panel { padding: 16px; border-radius: 16px; }
  .legend { display: none; }
  .line-chart { height: 190px; }
  .table-tools { align-items: stretch; flex-direction: column; padding: 13px; }
  .search-box { width: 100%; }
  .filter-pills { overflow-x: auto; }
  .filter-pills button { flex: 0 0 auto; }
  th, td { padding-right: 12px; padding-left: 12px; }
  .table-footer { flex-direction: column; gap: 11px; }
  .insight-grid { grid-template-columns: 1fr; gap: 10px; }
  .insight-card:first-child { grid-column: auto; }
  .insight-card { min-height: 230px; border-radius: 16px; }
  .plan-client-head { padding: 16px; }
  .plan-roadmap { padding: 4px 16px; }
  .roadmap-item { grid-template-columns: 26px 1fr; }
  .roadmap-item .impact { grid-column: 2; width: max-content; }
  .plan-footer { align-items: stretch; flex-direction: column; padding: 13px 16px; }
  .page-footer { flex-direction: column; gap: 4px; padding: 18px 14px 24px; }
  .analysis-choice-grid { grid-template-columns: 1fr; }
  .analysis-choice { min-height: 176px; }
  .form-grid { grid-template-columns: 1fr; }
  .full-field { grid-column: auto; }
  .drawer-score-area { grid-template-columns: 100px 1fr; gap: 13px; padding: 14px; }
  .score-ring { width: 94px; height: 94px; }
  .score-ring::before { width: 72px; height: 72px; }
  .score-ring strong { font-size: 1.35rem; }
  .drawer-tabs { overflow-x: auto; }
  .drawer-tabs button { flex: 0 0 90px; }
  .diagnosis-grid { grid-template-columns: 1fr; }
  .drawer-footer { padding: 11px 14px; }
  .drawer-footer button { flex: 1; padding-right: 8px; padding-left: 8px; font-size: .66rem; }
  .toast { right: 14px; bottom: 14px; left: 14px; min-width: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}

/* Private Laravel application */
.private-platform { min-height: 100vh; background: #f4f6fa; }
.private-header { position: sticky; top: 0; z-index: 50; display: flex; min-height: 76px; align-items: center; justify-content: space-between; gap: 24px; padding: 12px max(24px, calc((100vw - 1320px) / 2)); border-bottom: 1px solid #e5e9f1; background: rgba(255,255,255,.94); backdrop-filter: blur(15px); }
.private-brand, .auth-brand { display: flex; align-items: center; gap: 12px; color: var(--navy); text-decoration: none; }
.private-brand .brand-mark, .auth-brand .brand-mark { background: var(--navy); }
.private-brand strong, .private-brand small, .auth-brand strong, .auth-brand small { display: block; }
.private-brand strong, .auth-brand strong { font-size: 1.18rem; }
.private-brand small, .auth-brand small { color: var(--muted); font-size: .7rem; }
.header-user { display: flex; align-items: center; gap: 14px; }
.header-user > div strong, .header-user > div small { display: block; }
.header-user > div strong { color: var(--navy); font-size: .82rem; }
.header-user > div small { color: var(--muted); font-size: .67rem; }
.header-user form { margin: 0; }
.privacy-badge, .status-pill, .mini-lock, .secure-chip { display: inline-flex; align-items: center; width: max-content; padding: 5px 10px; border: 1px solid #dce3ef; border-radius: 999px; background: #fff; color: #63708a; font-size: .7rem; font-weight: 800; }
.privacy-badge::before, .secure-chip::before { width: 7px; height: 7px; margin-left: 6px; border-radius: 50%; background: var(--mint); content: ""; }
.privacy-badge.solid { border-color: #c9eee6; background: var(--mint-soft); color: #167f6d; }
.text-button { padding: 5px 8px; border: 0; background: transparent; color: #53617d; font-size: .76rem; font-weight: 800; text-decoration: none; }
.text-button:hover { color: var(--navy); }
.text-button.danger { color: #bd4d46; }
.private-main { width: min(1320px, calc(100% - 48px)); max-width: none; margin: 0 auto; padding: 38px 0 70px; }
.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.page-heading h1 { margin: 2px 0 3px; color: var(--navy); font-size: clamp(1.65rem, 3vw, 2.3rem); letter-spacing: -.04em; }
.page-heading p { margin: 0; color: var(--muted); font-size: .88rem; }
.back-link { display: block; margin-bottom: 12px; color: #52627e; font-size: .78rem; font-weight: 800; text-decoration: none; }
.flash { margin-bottom: 20px; padding: 14px 17px; border: 1px solid; border-radius: 13px; font-size: .83rem; }
.flash.success { border-color: #bde9df; background: #ebfaf7; color: #167563; }
.flash.error { border-color: #f3c9c5; background: #fff3f1; color: #a23f38; }
.flash ul { margin: 7px 0 0; padding-right: 20px; }
.private-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 24px; }
.private-metrics article { min-height: 132px; padding: 20px; border: 1px solid #e5e9f0; border-radius: 18px; background: #fff; box-shadow: 0 8px 28px rgba(19,36,73,.035); }
.private-metrics span, .private-metrics small { display: block; color: var(--muted); font-size: .74rem; }
.private-metrics strong { display: block; margin: 7px 0 2px; color: var(--navy); font-size: 2rem; line-height: 1.1; }
.private-metrics .date-value { font-size: 1.25rem; }
.two-column-section { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 18px; margin-bottom: 24px; }
.panel { padding: 22px; border: 1px solid #e5e9f0; border-radius: 18px; background: #fff; box-shadow: 0 8px 30px rgba(19,36,73,.035); }
.panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 18px; }
.panel-heading h2, .report-section h2 { margin: 1px 0 0; color: var(--navy); font-size: 1.2rem; }
.mini-lock { border-color: #dfe4ef; background: #f7f8fb; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; }
.form-grid label { display: grid; gap: 6px; color: #3b4760; font-size: .76rem; font-weight: 800; }
.form-grid .full { grid-column: 1 / -1; }
.form-grid input, .form-grid select { width: 100%; height: 44px; padding: 0 12px; border: 1px solid #dce1eb; border-radius: 10px; outline: none; background: #fbfcfe; color: var(--ink); font-size: .82rem; }
.form-grid input:focus, .form-grid select:focus { border-color: #7c8fff; box-shadow: 0 0 0 3px rgba(73,99,255,.09); }
.form-actions { display: flex; justify-content: flex-end; padding-top: 3px; }
.form-note { padding: 10px 12px; border-radius: 10px; background: #f5f7fb; color: var(--muted); font-size: .72rem; }
.table-panel { margin-bottom: 24px; }
.responsive-table { overflow-x: auto; }
.responsive-table table { width: 100%; border-collapse: collapse; min-width: 760px; }
.responsive-table th { padding: 10px 12px; border-bottom: 1px solid #e8ebf1; color: #8a94a8; font-size: .7rem; text-align: right; }
.responsive-table td { padding: 13px 12px; border-bottom: 1px solid #eff1f5; color: #3d4860; font-size: .8rem; }
.responsive-table tr:last-child td { border-bottom: 0; }
.responsive-table td strong, .responsive-table td small { display: block; }
.responsive-table td strong { color: var(--navy); }
.responsive-table td small { margin-top: 2px; color: var(--muted); font-size: .67rem; }
.status-pill { padding: 4px 9px; background: #f5f7fa; }
.status-pill.green { border-color: #bfece2; background: #eaf9f5; color: #147d6a; }
.status-pill.red { border-color: #f2cbc6; background: #fff1ef; color: #b54b43; }
.score-pill { display: inline-grid; place-items: center; padding: 5px 9px; border-radius: 8px; background: var(--blue-soft); color: #4157de; font-size: .75rem; font-weight: 900; }
.secondary-button.compact { min-height: 34px; padding: 0 12px; font-size: .72rem; text-decoration: none; }
.empty-state { grid-column: 1 / -1; padding: 34px; color: var(--muted); text-align: center; }
.empty-state strong { display: block; color: var(--navy); font-size: 1rem; }
.empty-state p { margin: 5px 0 0; font-size: .8rem; }
.data-trust-banner { display: flex; align-items: center; gap: 18px; margin-bottom: 18px; padding: 14px 18px; border: 1px solid #beece2; border-radius: 14px; background: #eafaf6; color: #246f63; }
.data-trust-banner strong { flex: 0 0 auto; color: #136f5e; font-size: .83rem; }
.data-trust-banner p { margin: 0; font-size: .76rem; }
.analysis-action { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin: 18px 0; }
.analysis-action h2 { margin: 2px 0; color: var(--navy); font-size: 1.18rem; }
.analysis-action p { margin: 0; color: var(--muted); font-size: .78rem; }
.report-block { display: grid; gap: 18px; }
.report-hero { display: flex; align-items: center; gap: 24px; padding: 26px; border-radius: 20px; background: linear-gradient(135deg, #0b1736, #152b57); color: #fff; }
.report-hero h2 { margin: 3px 0; font-size: 1.35rem; }
.report-hero p { margin: 0; color: #aebbd2; font-size: .78rem; }
.big-score { display: grid; width: 135px; height: 135px; flex: 0 0 auto; place-content: center; border: 8px solid rgba(46,211,183,.2); border-radius: 50%; text-align: center; }
.big-score strong { display: inline; color: var(--mint); font-size: 2.5rem; line-height: 1; }
.big-score span { color: #7c8da9; font-size: .76rem; }
.big-score small { display: block; margin-top: 4px; color: #b7c2d4; font-size: .65rem; }
.score-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; }
.score-grid article { padding: 16px; border: 1px solid #e6e9f0; border-radius: 14px; background: #fff; }
.score-grid span { color: var(--muted); font-size: .7rem; }
.score-grid strong { float: left; color: var(--navy); font-size: 1.25rem; }
.score-track { clear: both; height: 5px; margin-top: 13px; overflow: hidden; border-radius: 9px; background: #edf0f5; }
.score-track i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg,var(--blue),var(--mint)); }
.insight-columns { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.insight-box { padding: 20px; border: 1px solid; border-radius: 16px; }
.insight-box.positive { border-color: #c6ece4; background: #f0fbf8; }
.insight-box.warning { border-color: #f1ded0; background: #fff8f3; }
.insight-box h3 { margin: 0 0 9px; color: var(--navy); font-size: .95rem; }
.insight-box ul, .timeline ul { margin: 0; padding-right: 18px; color: #566178; font-size: .76rem; }
.insight-box li + li, .timeline li + li { margin-top: 5px; }
.report-section { padding: 24px; border: 1px solid #e5e9f0; border-radius: 18px; background: #fff; }
.recommendation-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 13px; margin-top: 17px; }
.recommendation-grid article { padding: 17px; border: 1px solid #e8ebf1; border-radius: 13px; background: #fbfcfe; }
.recommendation-grid .priority { display: inline-flex; padding: 3px 7px; border-radius: 99px; background: var(--coral-soft); color: #bc5148; font-size: .63rem; font-weight: 900; }
.recommendation-grid h3 { margin: 10px 0 5px; color: var(--navy); font-size: .88rem; }
.recommendation-grid p { margin: 0 0 10px; color: #626d82; font-size: .73rem; }
.recommendation-grid small { color: #748096; font-size: .67rem; }
.timeline { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; margin-top: 18px; }
.timeline article { display: flex; gap: 12px; }
.timeline-number { display: grid; width: 31px; height: 31px; flex: 0 0 auto; place-items: center; border-radius: 10px; background: var(--navy); color: #fff; font-size: .72rem; font-weight: 900; }
.timeline span { color: var(--blue); font-size: .67rem; font-weight: 900; }
.timeline h3 { margin: 2px 0 8px; color: var(--navy); font-size: .86rem; }
.history-note { color: var(--muted); font-size: .72rem; text-align: center; }
.account-card-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
.account-report-card { padding: 20px; border: 1px solid #e5e9f0; border-radius: 18px; background: #fff; box-shadow: var(--shadow); }
.account-card-head, .card-foot { display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.account-card-head strong, .account-card-head small { display: block; }
.account-card-head strong { color: var(--navy); font-size: 1rem; }
.account-card-head small, .card-foot span { color: var(--muted); font-size: .7rem; }
.platform-dot { display: inline-block; width: 8px; height: 8px; margin-left: 6px; border-radius: 50%; background: var(--blue); }
.platform-dot.instagram { background: #d34f84; }.platform-dot.tiktok { background: #12192c; }.platform-dot.youtube { background: #ef4139; }.platform-dot.linkedin { background: #2877b5; }.platform-dot.snapchat { background: #e3c900; }
.score-circle { display: grid; width: 48px; height: 48px; place-items: center; border: 5px solid #c9f1e8; border-radius: 50%; color: #188c77; font-size: .85rem; font-weight: 900; }
.account-stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 1px; margin: 18px 0; overflow: hidden; border: 1px solid #eaedf2; border-radius: 11px; background: #eaedf2; }
.account-stats div { padding: 11px; background: #fafbfd; }
.account-stats span, .account-stats strong { display: block; }
.account-stats span { color: var(--muted); font-size: .65rem; }.account-stats strong { margin-top: 2px; color: var(--navy); font-size: .92rem; }
.auth-page { display: grid; min-height: 100vh; place-items: center; padding: 24px; background: radial-gradient(circle at 15% 10%, rgba(46,211,183,.14), transparent 28%), linear-gradient(135deg,#08142f,#102348); }
.auth-panel { width: min(920px,100%); padding: 44px; border: 1px solid rgba(255,255,255,.16); border-radius: 26px; background: rgba(255,255,255,.98); box-shadow: 0 30px 80px rgba(0,0,0,.25); }
.auth-brand { margin-bottom: 45px; }
.auth-copy { max-width: 560px; }
.auth-copy h1 { margin: 13px 0 7px; color: var(--navy); font-size: clamp(2rem,5vw,3.3rem); line-height: 1.15; letter-spacing: -.055em; }
.auth-copy p { color: var(--muted); font-size: .9rem; }
.secure-chip { border-color: #c5eee5; background: #eafaf6; color: #167665; }
.auth-form { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; margin-top: 30px; padding-top: 25px; border-top: 1px solid #eaedf2; }
.auth-form label:not(.check-row) { display: grid; gap: 6px; color: #39465f; font-size: .76rem; font-weight: 800; }
.auth-form input[type=text], .auth-form input[type=password], .auth-form input:not([type]) { height: 48px; padding: 0 13px; border: 1px solid #d9dfeb; border-radius: 11px; background: #fafbfd; outline: none; }
.check-row { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: .72rem; }
.auth-form .wide { grid-column: 2; }
.field-error { grid-column: 1 / -1; margin: 0; color: #b84640; font-size: .72rem; }
.auth-foot { margin: 18px 0 0; color: #929bad; font-size: .7rem; }
.narrow-page { width: min(760px,100%); margin: 0 auto; }

@media (max-width: 900px) {
  .privacy-badge:not(.solid), .header-user > div { display: none; }
  .private-metrics, .score-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .two-column-section, .insight-columns, .account-card-grid { grid-template-columns: 1fr; }
  .recommendation-grid, .timeline { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .private-header { padding: 10px 16px; }
  .private-main { width: calc(100% - 28px); padding-top: 25px; }
  .header-user { gap: 3px; }.header-user .text-button { font-size: .65rem; padding: 4px; }
  .private-brand small { display: none; }
  .page-heading, .analysis-action, .data-trust-banner { align-items: flex-start; flex-direction: column; }
  .private-metrics, .score-grid, .form-grid { grid-template-columns: 1fr; }
  .form-grid .full { grid-column: auto; }
  .report-hero { align-items: flex-start; flex-direction: column; }
  .big-score { width: 112px; height: 112px; }
  .auth-panel { padding: 27px 20px; }.auth-brand { margin-bottom: 30px; }
  .auth-form { grid-template-columns: 1fr; }.auth-form .wide { grid-column: auto; }
}
