:root {
  --bg: #eef3fb;
  --shell: #ffffff;
  --card: #ffffff;
  --ink: #0c1d35;
  --muted: #76a0c5;
  --soft: #f7fbff;
  --line: #dfeaf3;
  --brand: #479675;
  --brand-dark: #2e8265;
  --blue: #0b8df3;
  --purple: #4a44db;
  --gold: #f4b200;
  --red: #ff3150;
  --green-soft: #e8fbf4;
  --radius: 12px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  font-family: "Inter", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.35;
  -webkit-font-smoothing: antialiased;
  position: relative;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

[hidden] {
  display: none !important;
}

.auth-view {
  background: var(--bg);
}

@media (min-width: 768px) {
  .auth-view {
    min-height: 100vh;
    display: flex;
    flex-direction: row;
  }
}

.auth-benefits-panel {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  padding: 48px clamp(30px, 4vw, 60px);
  background: linear-gradient(135deg, #f4f7fc 0%, #e9eff7 100%);
  position: relative;
  overflow: hidden;
  color: var(--ink);
  border-right: 1px solid var(--line);
}

@keyframes float-orb-1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(40px, -30px) scale(1.15); }
}

@keyframes float-orb-2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-30px, 40px) scale(1.08); }
}

.auth-benefits-panel::before {
  content: "";
  position: absolute;
  top: -10%;
  right: -10%;
  width: 50%;
  height: 50%;
  background: radial-gradient(circle, rgba(71, 150, 117, 0.12) 0%, transparent 70%);
  filter: blur(50px);
  pointer-events: none;
  animation: float-orb-1 15s infinite ease-in-out;
}

.auth-benefits-panel::after {
  content: "";
  position: absolute;
  bottom: -10%;
  left: -10%;
  width: 45%;
  height: 45%;
  background: radial-gradient(circle, rgba(11, 141, 243, 0.1) 0%, transparent 70%);
  filter: blur(40px);
  pointer-events: none;
  animation: float-orb-2 18s infinite ease-in-out;
}

@media (min-width: 768px) {
  .auth-benefits-panel {
    display: flex;
    flex: 1;
  }
}

@media (min-width: 1024px) {
  .auth-benefits-panel {
    flex: 1.1;
  }
}

.auth-benefits-brand img {
  width: 124px;
  height: auto;
  display: block;
  margin-bottom: 24px;
}

.auth-benefits-title {
  font-family: "Inter", sans-serif;
  font-size: clamp(22px, 2vw, 28px);
  font-weight: 800;
  line-height: 1.25;
  color: var(--ink);
  margin: 0 0 32px 0;
  letter-spacing: -0.02em;
}

/* ── MOCK BROWSER DASHBOARD ──────────────────────────────── */
.mock-browser {
  width: 100%;
  max-width: 500px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 16px 40px rgba(12, 29, 53, 0.05);
  overflow: hidden;
  position: relative;
  margin: 0 auto;
}

.browser-header {
  height: 32px;
  padding: 0 12px;
  background: #f8fafc;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
}

.browser-dots {
  display: flex;
  gap: 5px;
}

.browser-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  display: block;
}

.browser-dot.red { background: #ff5f56; }
.browser-dot.yellow { background: #ffbd2e; }
.browser-dot.green { background: #27c93f; }

.browser-address {
  margin-left: 12px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 4px;
  font-size: 9px;
  color: var(--muted);
  padding: 1.5px 8px;
  font-family: monospace;
  flex: 1;
  max-width: 200px;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}

.mock-app-shell {
  display: flex;
  height: 250px;
}

.mock-sidebar {
  width: 40px;
  background: #ffffff;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 12px 0;
  gap: 10px;
}

.mock-sidebar-logo {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  background: var(--brand);
  margin-bottom: 8px;
}

.mock-sidebar-item {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  background: #f0f4f9;
}

.mock-sidebar-item.active {
  background: var(--brand);
  opacity: 0.2;
}

.mock-main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: var(--soft);
}

.mock-navbar {
  height: 36px;
  padding: 0 12px;
  background: #ffffff;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mock-nav-title {
  font-size: 10.5px;
  font-weight: 700;
  color: var(--ink);
}

.mock-nav-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.mock-search-bar {
  width: 50px;
  height: 14px;
  background: #f0f4f9;
  border-radius: 3px;
}

.mock-user-avatar {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #dfeaf3;
}

.mock-dashboard-body {
  padding: 10px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mock-assistant-banner {
  background: rgba(71, 150, 117, 0.06);
  border: 1px solid rgba(71, 150, 117, 0.12);
  border-radius: 6px;
  padding: 5px 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.mock-mascot-emoji {
  font-size: 11px;
}

.mock-assistant-text {
  font-size: 9px;
  color: var(--brand-dark);
  font-weight: 600;
}

.mock-dashboard-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  flex: 1;
}

.mock-kpi-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  transition: all 0.3s ease;
}

.mock-kpi-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.mock-kpi-label {
  font-size: 8px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
}

.mock-kpi-pulse {
  font-size: 8px;
  color: var(--brand);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 3px;
}

@keyframes mock-pulse {
  0% { box-shadow: 0 0 0 0 rgba(71, 150, 117, 0.4); }
  70% { box-shadow: 0 0 0 4px rgba(71, 150, 117, 0); }
  100% { box-shadow: 0 0 0 0 rgba(71, 150, 117, 0); }
}

.mock-kpi-pulse::before {
  content: "";
  display: block;
  width: 4px;
  height: 4px;
  background: var(--brand);
  border-radius: 50%;
  animation: mock-pulse 1.8s infinite;
}

.mock-kpi-alert {
  font-size: 7.5px;
  background: rgba(255, 49, 80, 0.08);
  color: var(--red);
  font-weight: 700;
  padding: 1px 3px;
  border-radius: 3px;
}

.mock-source-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 4px;
}

.mock-source-badge {
  font-size: 8px;
  background: #f0f4f9;
  color: var(--ink);
  padding: 2px 4px;
  border-radius: 3px;
  font-weight: 600;
}

.mock-chat-preview {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.mock-chat-bubble {
  font-size: 7.5px;
  padding: 3px 5px;
  border-radius: 5px;
  line-height: 1.2;
}

.mock-chat-bubble.user {
  background: #f0f4f9;
  color: var(--ink);
  align-self: flex-end;
}

.mock-chat-bubble.assistant {
  background: rgba(71, 150, 117, 0.08);
  color: var(--brand-dark);
  align-self: flex-start;
  font-weight: 500;
}

.mock-churn-list {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1;
  justify-content: center;
}

.mock-churn-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 7.5px;
  background: #f0f4f9;
  padding: 2.5px 5px;
  border-radius: 4px;
}

.mock-churn-name {
  font-weight: 600;
  color: var(--ink);
}

.mock-churn-pct {
  font-weight: 700;
  color: var(--red);
}

.mock-comp-overview {
  margin-top: 4px;
  border-top: 1px solid var(--line);
  padding-top: 4px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.mock-comp-badges {
  display: flex;
  gap: 3px;
}

.mock-comp-badge {
  font-size: 7px;
  padding: 1px 3px;
  border-radius: 2px;
  font-weight: 700;
}

.mock-comp-badge.us {
  background: rgba(71, 150, 117, 0.1);
  color: var(--brand);
}

.mock-comp-badge.them {
  background: rgba(255, 49, 80, 0.1);
  color: var(--red);
}

.mock-funnel-stages {
  display: flex;
  flex-direction: column;
  gap: 4px;
  justify-content: center;
  flex: 1;
}

.mock-funnel-bar {
  height: 8px;
  background: var(--blue);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.mock-funnel-bar.bar-1 { width: 90%; }
.mock-funnel-bar.bar-2 { width: 60%; }
.mock-funnel-bar.bar-3.active {
  width: 30%;
  background: var(--red);
}

/* ── WALKTHROUGH TOOLTIPS ────────────────────────────────── */
.walkthrough-tooltip {
  position: absolute;
  width: 176px;
  background: var(--ink);
  color: #ffffff;
  padding: 10px 12px;
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(12, 29, 53, 0.16);
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) translateY(8px);
  transition: opacity 0.4s ease, transform 0.4s ease;
  z-index: 10;
}

.walkthrough-tooltip::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: var(--ink);
}

.walkthrough-tooltip strong {
  display: block;
  font-size: 10px;
  color: var(--brand);
  margin-bottom: 2px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.walkthrough-tooltip p {
  margin: 0;
  font-size: 9.5px;
  color: #a9c6e2;
  line-height: 1.35;
}

.tooltip-sync { left: 20%; bottom: 106px; }
.tooltip-ai { left: 50%; bottom: 106px; }
.tooltip-funnel { left: 80%; bottom: 106px; }

/* ── ANIMATION KEYFRAMES & SYNC ────────────────────────── */
@keyframes card-active-1 {
  0%, 28%, 100% {
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(71, 150, 117, 0.12), 0 8px 16px rgba(12, 29, 53, 0.05);
    transform: translateY(-3px) scale(1.02);
  }
  33.3%, 95% {
    border-color: var(--line);
    box-shadow: none;
    transform: translateY(0) scale(1);
  }
}

@keyframes tooltip-active-1 {
  0%, 28%, 100% {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
  }
  33.3%, 95% {
    opacity: 0;
    transform: translateX(-50%) translateY(8px);
    pointer-events: none;
  }
}

@keyframes card-active-2 {
  0%, 28%, 66.6%, 100% {
    border-color: var(--line);
    box-shadow: none;
    transform: translateY(0) scale(1);
  }
  33.3%, 61.3% {
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(71, 150, 117, 0.12), 0 8px 16px rgba(12, 29, 53, 0.05);
    transform: translateY(-3px) scale(1.02);
  }
}

@keyframes tooltip-active-2 {
  0%, 28%, 66.6%, 100% {
    opacity: 0;
    transform: translateX(-50%) translateY(8px);
    pointer-events: none;
  }
  33.3%, 61.3% {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
  }
}

@keyframes card-active-3 {
  0%, 61.3%, 100% {
    border-color: var(--line);
    box-shadow: none;
    transform: translateY(0) scale(1);
  }
  66.6%, 95% {
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(71, 150, 117, 0.12), 0 8px 16px rgba(12, 29, 53, 0.05);
    transform: translateY(-3px) scale(1.02);
  }
}

@keyframes tooltip-active-3 {
  0%, 61.3%, 100% {
    opacity: 0;
    transform: translateX(-50%) translateY(8px);
    pointer-events: none;
  }
  66.6%, 95% {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
  }
}

.card-sync { animation: card-active-1 12s infinite ease-in-out; }
.tooltip-sync { animation: tooltip-active-1 12s infinite ease-in-out; }

.card-ai { animation: card-active-2 12s infinite ease-in-out; }
.tooltip-ai { animation: tooltip-active-2 12s infinite ease-in-out; }

.card-funnel { animation: card-active-3 12s infinite ease-in-out; }
.tooltip-funnel { animation: tooltip-active-3 12s infinite ease-in-out; }

/* ── BETA CARD & FORM WRAPPER ──────────────────────────── */
.auth-exchange-box {
  background: rgba(71, 150, 117, 0.04);
  border: 1px solid rgba(71, 150, 117, 0.12);
  border-left: 4px solid var(--brand);
  border-radius: 12px;
  padding: 16px 18px;
  margin-top: 32px;
  backdrop-filter: blur(10px);
  position: relative;
  z-index: 2;
}

.auth-exchange-box h4 {
  margin: 0 0 4px 0;
  font-size: 10.5px;
  color: var(--brand-dark);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 800;
}

.auth-exchange-box p {
  font-size: 12px;
  color: var(--ink);
  line-height: 1.45;
  margin: 0;
}

.auth-exchange-box strong {
  color: var(--ink);
  font-weight: 700;
}

.auth-form-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
  background: var(--bg);
  width: 100%;
  min-height: 100vh;
}

@media (min-width: 768px) {
  .auth-form-wrapper {
    flex: 1;
    min-height: 100vh;
  }
}

@media (min-width: 1024px) {
  .auth-form-wrapper {
    flex: 0.9;
  }
}

.auth-panel {
  width: min(100%, 480px);
  padding: 40px 36px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(43, 70, 99, 0.08);
}

@media (max-width: 767px) {
  .mobile-only-brand {
    display: block !important;
  }
  .mobile-only-brand img {
    width: 124px;
    height: auto;
    display: block;
    margin-bottom: 20px;
  }
  .auth-panel {
    padding: 30px 20px;
  }
}

.auth-kicker {
  color: var(--brand);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.auth-panel h1 {
  margin-top: 8px;
  font-size: 30px;
  line-height: 1.05;
}

.auth-form {
  margin-top: 24px;
  display: grid;
  gap: 14px;
}

.auth-form label {
  display: grid;
  gap: 7px;
  color: #52718f;
  font-size: 12px;
  font-weight: 700;
}

.auth-form input {
  height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  outline: 0;
}

.auth-form input:focus {
  border-color: rgba(71, 150, 117, 0.5);
  box-shadow: 0 0 0 4px rgba(71, 150, 117, 0.1);
}

.auth-submit {
  min-height: 44px;
  border: 0;
  border-radius: 10px;
  background: var(--brand);
  color: #fff;
  font-weight: 800;
}

.auth-submit.small-submit {
  min-width: 132px;
  padding: 0 16px;
}

.auth-switch {
  margin-top: 18px;
  color: #65809b;
  font-size: 13px;
}

.auth-switch button {
  border: 0;
  background: transparent;
  color: var(--brand-dark);
  font-weight: 800;
}

.dashboard-app {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 182px minmax(0, 1fr);
  gap: 18px;
  padding: 14px 12px 22px 0;
}

.sidebar {
  min-height: calc(100vh - 28px);
  padding: 26px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.brand img {
  width: 142px;
  height: auto;
  display: block;
}

.nav-list {
  display: grid;
  gap: 10px;
}

.nav-list.secondary {
  padding-top: 18px;
  border-top: 1px solid rgba(12, 29, 53, 0.18);
}

.nav-list a {
  min-height: 38px;
  padding: 0 14px;
  border-radius: 10px;
  color: #318463;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 500;
  transition: background 160ms ease, color 160ms ease;
}

.nav-list a span {
  width: 14px;
  height: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-list a span svg {
  width: 100%;
  height: 100%;
  display: block;
}

.nav-list a b {
  margin-left: auto;
  min-width: 20px;
  height: 16px;
  border-radius: 99px;
  display: grid;
  place-items: center;
  background: var(--brand);
  color: #fff;
  font-size: 10px;
}

.nav-list a:hover,
.nav-list a.active {
  color: #fff;
  background: var(--brand);
}

.copyright {
  margin-top: auto;
  color: #a1b2bf;
  font-size: 10px;
}

.dashboard-shell {
  width: 100%;
  min-width: 0;
  margin: 0 auto;
  padding: 24px 20px 34px;
  border-radius: 22px;
  background: var(--shell);
  box-shadow: 0 24px 70px rgba(43, 70, 99, 0.05);
}

.screen {
  display: none;
}

.screen.active {
  display: block;
}

.dashboard-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  font-size: 16px;
  font-weight: 600;
}

.screen-subtitle {
  max-width: 620px;
  margin-top: 8px;
  color: #6b91b5;
  font-size: 13px;
}

h2 {
  font-size: 14px;
  font-weight: 600;
}

.top-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.search-control {
  width: 178px;
  height: 34px;
  padding: 0 10px 0 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
  color: #7ca7ca;
}

.search-control input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: 10px;
}

.select-button,
.icon-button,
.region-button,
.avatar-button {
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--soft);
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.select-button {
  min-width: 90px;
  gap: 12px;
  padding: 0 12px;
  color: #294665;
  font-size: 11px;
}

#analysis-provider {
  min-width: 118px;
  color: var(--brand-dark);
  background: #edf8f3;
}

#dashboard-refresh-btn {
  min-width: auto;
  padding: 0 12px;
  gap: 6px;
}

#dashboard-refresh-btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

#dashboard-refresh-icon {
  flex: 0 0 auto;
  transition: transform 0.3s ease;
}

@keyframes spin-icon {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

#dashboard-refresh-btn:disabled #dashboard-refresh-icon {
  animation: spin-icon 0.8s linear infinite;
}

.select-button.compact {
  height: 30px;
  min-width: auto;
  padding: 0 12px;
  color: #78a2c5;
  font-size: 10px;
}

select.select-button {
  cursor: pointer;
  font-family: inherit;
  font-weight: 500;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2378a2c5' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 10px;
  padding-right: 28px !important;
}

select.select-button:focus {
  border-color: var(--brand);
}

.icon-button,
.region-button,
.avatar-button {
  width: 34px;
}

.region-button {
  border-radius: 999px;
  color: #e72142;
  font-size: 10px;
  font-weight: 800;
}

.avatar-button {
  border-color: #0a1c35;
  border-radius: 999px;
  background: #0a1c35;
}

/* ── DROPDOWN & TIME FILTER ────────────────────────────────── */
.time-filter-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
}
.time-filter-dropdown {
  position: relative;
  display: inline-block;
}
.time-filter-menu {
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  z-index: 100;
  min-width: 140px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 10px 24px rgba(43, 70, 99, 0.08);
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.time-filter-menu[hidden] {
  display: none !important;
}
.time-filter-menu button {
  text-align: left;
  border: none;
  background: transparent;
  color: var(--ink);
  padding: 8px 12px;
  font-size: 11px;
  font-weight: 500;
  border-radius: 6px;
  cursor: pointer;
  width: 100%;
  transition: background 150ms;
}
.time-filter-menu button:hover {
  background: var(--soft);
  color: var(--brand-dark);
}
.time-filter-menu button.active {
  background: rgba(71, 150, 117, 0.08);
  color: var(--brand-dark);
  font-weight: 600;
}
.custom-range-picker {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 34px;
}
.custom-range-picker[hidden] {
  display: none !important;
}
.custom-range-picker span {
  font-size: 11px;
  color: #6b91b5;
}
.custom-range-picker.compact {
  height: 30px;
}
.date-input {
  height: 34px;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--soft);
  color: var(--ink);
  font-size: 11px;
  outline: none;
  font-family: inherit;
}
.date-input:focus {
  border-color: var(--brand);
}
.time-filter-wrapper.compact .date-input {
  height: 30px;
  font-size: 10px;
}

.assistant-banner {
  min-height: 58px;
  margin-bottom: 10px;
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  gap: 14px;
  color: #78a2c5;
  box-shadow: 0 8px 28px rgba(43, 70, 99, 0.035);
}

.assistant-mascot {
  width: 46px;
  height: 46px;
  border-radius: 999px;
  border: 2px solid #21c775;
  display: grid;
  place-items: center;
  color: var(--brand);
  background:
    radial-gradient(circle at 34% 35%, #fff 0 4px, transparent 5px),
    radial-gradient(circle at 64% 35%, #fff 0 4px, transparent 5px),
    linear-gradient(180deg, #dff9e9, #baf0cf);
  font-size: 11px;
  font-weight: 800;
  flex: 0 0 auto;
}

.assistant-banner p {
  font-size: 16px;
  line-height: 1.25;
}

.assistant-banner a,
.assistant-banner button {
  display: block;
  width: fit-content;
  padding: 0;
  border: 0;
  background: transparent;
  color: #318463;
  border-bottom: 1px solid rgba(49, 132, 99, 0.4);
  font-weight: 500;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 230px;
  gap: 18px;
}

.main-column,
.side-column {
  display: grid;
  gap: 16px;
  align-content: start;
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.kpi-card,
.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: 0 12px 30px rgba(43, 70, 99, 0.035);
}

.kpi-card {
  min-height: 124px;
  padding: 24px 16px 16px;
}

.kpi-top {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.kpi-icon {
  color: #fff;
  font-size: 14px;
  line-height: 1;
}

.kpi-icon.blue {
  color: var(--blue);
}

.kpi-icon.purple {
  color: var(--purple);
}

.kpi-icon.gold {
  color: var(--gold);
}

.trend {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 9px;
  font-weight: 700;
}

.trend::before {
  content: "↗";
  width: 17px;
  height: 17px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 10px;
}

.trend.positive {
  color: #1fc78a;
}

.trend.positive::before {
  background: #b8f5e5;
}

.trend.negative {
  color: var(--red);
}

.trend.negative::before {
  content: "↘";
  background: #ffd8df;
}

.kpi-card small,
.kpi-card p,
.axis-labels,
.dropoff-list span,
.risk-item b,
.panel-head small {
  color: var(--muted);
}

.kpi-card small {
  display: block;
  font-size: 10px;
  text-transform: uppercase;
}

.kpi-card strong {
  display: block;
  margin-top: 6px;
  font-size: clamp(19px, 2.2vw, 24px);
  font-weight: 500;
  line-height: 1.14;
  overflow-wrap: anywhere;
}

.kpi-card p {
  margin-top: 3px;
  font-size: 10px;
}

.panel {
  padding: 16px;
}

.chart-panel {
  min-height: 380px;
  padding-bottom: 12px;
}

.panel-head {
  display: flex;
  align-items: center;
  gap: 14px;
  justify-content: space-between;
  margin-bottom: 12px;
}

.chart-panel .panel-head {
  justify-content: flex-start;
}

.chart-panel .select-button {
  margin-left: auto;
}

.legend {
  display: flex;
  gap: 8px;
  align-items: center;
}

.legend span {
  width: 82px;
  height: 18px;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 5px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--muted);
  font-size: 9px;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 3px;
  display: inline-block;
}

.positive-dot {
  background: var(--brand);
}

.neutral-dot {
  background: var(--gold);
}

.negative-dot {
  background: var(--red);
}

.sentiment-chart {
  position: relative;
  width: 100%;
  max-height: 310px;
  overflow: visible;
}

.sentiment-chart svg {
  display: block;
  width: 100%;
  height: 310px;
  margin-top: 0;
}

.sentiment-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 4px;
}

.sentiment-stats article {
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--soft);
}

.sentiment-stats span {
  display: block;
  color: #6b91b5;
  font-size: 10px;
}

.sentiment-stats strong {
  display: block;
  margin-top: 2px;
  font-size: 15px;
}

.grid-lines path {
  fill: none;
  stroke: #e7eff6;
  stroke-width: 1;
}

.axis-labels {
  font-size: 10px;
  fill: #5f97c3;
}

.line {
  fill: none;
  stroke-width: 2.5;
}

.positive-line {
  stroke: var(--brand);
}

.neutral-line {
  stroke: var(--gold);
}

.negative-line {
  stroke: var(--red);
}

.points circle {
  cursor: help;
}

.visible-point {
  stroke: #fff;
  stroke-width: 2;
}

.hit-area {
  fill: transparent;
  stroke: transparent;
  pointer-events: all;
}

.positive-points .visible-point {
  fill: var(--brand);
}

.neutral-points .visible-point {
  fill: var(--gold);
}

.negative-points .visible-point {
  fill: var(--red);
}

.sentiment-point:hover .visible-point {
  r: 8;
  stroke-width: 3;
}

.chart-tooltip {
  position: absolute;
  top: 0;
  left: 0;
  width: min(300px, calc(100% - 16px));
  padding: 10px 12px;
  border-radius: 10px;
  background: #0e2038;
  color: #fff;
  box-shadow: 0 18px 40px rgba(12, 29, 53, 0.22);
  pointer-events: none;
  z-index: 5;
}

.chart-tooltip strong,
.chart-tooltip span {
  display: block;
}

.chart-tooltip strong {
  font-size: 12px;
  margin-bottom: 4px;
}

.chart-tooltip span {
  color: #c7d7e7;
  font-size: 11px;
  line-height: 1.35;
}

.empty-chart {
  fill: #7da6c8;
  font-size: 14px;
  text-anchor: middle;
}

.selected-month {
  stroke: #238fe7;
  stroke-dasharray: 4 4;
}

.tooltip rect {
  fill: #0e2038;
}

.tooltip text {
  fill: #b9c7d7;
  font-size: 9px;
}

.tooltip .tooltip-big {
  fill: #fff;
  font-size: 17px;
}

.tooltip .tooltip-change {
  fill: #22d08f;
}

.recommendations {
  min-height: 124px;
  padding: 14px 16px;
  background: var(--brand);
  color: #fff;
}

.recommendations h2 {
  margin-bottom: 10px;
  color: #fff;
}

.recommendations button {
  width: 100%;
  min-height: 26px;
  height: auto;
  padding: 6px 0;
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.35);
  background: transparent;
  color: #fff;
  text-align: left;
  font-size: 11px;
  line-height: 1.4;
}

.recommendations #recommendation-list {
  display: grid;
}

.churn-panel {
  min-height: 300px;
}

.churn-panel h2 {
  margin-bottom: 28px;
}

.risk-item {
  display: grid;
  gap: 6px;
  margin-bottom: 24px;
}

.risk-item span {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
}

.risk-item i,
.mention-bar {
  height: 6px;
  border-radius: 99px;
  overflow: hidden;
  background: #e6ecef;
}

.risk-item em,
.mention-bar em {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--red);
}

.lower-grid {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 16px;
  margin-top: 16px;
}

.funnel-panel,
.dropoff-panel {
  min-height: 300px;
}

.dots-button {
  border: 0;
  background: transparent;
  color: #7da6c8;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.funnel-chart {
  height: 260px;
  display: grid;
  grid-template-columns: 28px 1fr;
  grid-template-rows: 220px auto;
  gap: 8px 12px;
  align-items: end;
}

.funnel-axis {
  height: 220px;
  display: grid;
  align-content: space-between;
  color: #5f97c3;
  font-size: 10px;
}

.funnel-bars {
  height: 220px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
  align-items: end;
  background:
    linear-gradient(90deg, transparent 0 calc(20% - 1px), #edf3f8 calc(20% - 1px) 20%, transparent 20% calc(40% - 1px), #edf3f8 calc(40% - 1px) 40%, transparent 40% calc(60% - 1px), #edf3f8 calc(60% - 1px) 60%, transparent 60% calc(80% - 1px), #edf3f8 calc(80% - 1px) 80%, transparent 80%);
}

.funnel-bar {
  position: relative;
  min-height: 26px;
  border-radius: 8px 8px 0 0;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.funnel-bar:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
  box-shadow: 0 -4px 12px rgba(41, 70, 101, 0.12);
}

.funnel-bar.active {
  filter: brightness(1.18);
  outline: 2px solid var(--brand);
  outline-offset: -2px;
  box-shadow: 0 -6px 18px rgba(41, 70, 101, 0.2);
}

.funnel-bar b {
  position: absolute;
  top: -16px;
  left: 50%;
  transform: translateX(-50%);
  color: #6a9fca;
  font-size: 10px;
  font-weight: 500;
}

.funnel-labels {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
  align-items: start;
}

.funnel-label {
  text-align: center;
  font-size: 9px;
  color: #6a9fca;
  line-height: 1.25;
  padding: 4px 2px 0;
  word-break: break-word;
  cursor: pointer;
  transition: all 0.2s ease;
}

.funnel-label:hover {
  color: var(--brand);
}

.funnel-label.active {
  color: var(--brand);
  font-weight: 600;
}

.sign-up {
  background: var(--brand);
}

.verify {
  background: #559954;
}

.deposit {
  background: #8b9658;
}

.trade {
  background: var(--gold);
}

.repeat {
  background: #ff7280;
}

.dropoff-panel .panel-head {
  align-items: center;
}

.dropoff-panel .panel-head small {
  margin-left: auto;
  font-size: 10px;
}

.dropoff-list {
  display: grid;
  gap: 12px;
}

.dropoff-list article {
  min-height: 54px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(90px, 140px) 68px;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.dropoff-list article:hover {
  border-color: var(--brand);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(41, 70, 101, 0.05);
}

.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #f0f4f8;
  color: #3b5a78;
  border: 1px solid #d0dfeb;
  padding: 4px 10px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 500;
  animation: filterChipFadeIn 0.2s ease-out;
}

.filter-chip strong {
  font-weight: 600;
  color: var(--brand);
}

.filter-chip button {
  background: none;
  border: none;
  color: #728fae;
  font-size: 14px;
  cursor: pointer;
  padding: 0;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s ease;
}

.filter-chip button:hover {
  color: #ef4444;
}

@keyframes filterChipFadeIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

.filter-chip-rec {
  background: #e8f5ef;
  border-color: #b6ddd0;
  color: var(--brand-dark);
}

.filter-chip-rec strong {
  color: var(--brand-dark);
}

.dropoff-list strong {
  display: block;
  font-size: 11px;
  font-weight: 500;
}

.dropoff-list span {
  font-size: 10px;
}

.dropoff-list b {
  text-align: right;
  font-size: 11px;
  font-weight: 500;
}

.dropoff-list b span {
  font-weight: 400;
}

.integration-summary {
  min-width: 130px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  text-align: right;
  background: var(--soft);
}

.integration-summary strong {
  display: block;
  font-size: 24px;
  line-height: 1;
  color: var(--brand);
}

.integration-summary span {
  color: #6b91b5;
  font-size: 11px;
}

.integration-hero {
  margin: 14px 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.company-control-wrapper {
  display: flex;
  align-items: flex-end;
  gap: 10px;
}

.company-control-wrapper button {
  height: 38px;
  white-space: nowrap;
}

.company-control {
  min-width: 190px;
  display: grid;
  gap: 6px;
  color: #52718f;
  font-size: 11px;
  font-weight: 800;
}

.company-control input {
  height: 38px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 10px;
  outline: 0;
}

.company-control input:focus {
  border-color: rgba(71, 150, 117, 0.5);
  box-shadow: 0 0 0 4px rgba(71, 150, 117, 0.1);
}

.integration-hero p,
.placeholder-panel p {
  margin-top: 6px;
  color: #6b91b5;
  font-size: 13px;
}

.integration-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 14px;
}

.source-card {
  min-height: 176px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  display: grid;
  gap: 10px;
  align-content: start;
  box-shadow: 0 12px 30px rgba(43, 70, 99, 0.035);
  min-width: 0;
}

.source-card.connected {
  border-color: rgba(71, 150, 117, 0.38);
  background: linear-gradient(180deg, #fff, rgba(71, 150, 117, 0.06));
}

.source-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.source-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: #e9f7f1;
  color: var(--brand-dark);
  font-size: 12px;
  font-weight: 800;
}

.source-icon img {
  width: 22px;
  height: 22px;
  display: block;
  object-fit: contain;
}

.source-status {
  padding: 4px 8px;
  border-radius: 999px;
  background: #f0f5f8;
  color: #6b91b5;
  font-size: 10px;
  font-weight: 800;
}

.source-card.connected .source-status {
  background: #dff7ed;
  color: var(--brand-dark);
}

.source-status.status-coming-soon {
  background: #eef1f4;
  color: #7b8e9f;
}

.source-status.status-warning {
  background: #fff3cd;
  color: #856404;
}

.source-status.status-error {
  background: #f8d7da;
  color: #721c24;
}

.source-card.coming-soon {
  border-style: dashed;
  border-color: var(--line);
  opacity: 0.8;
  background: #fafbfc;
}

.source-card h3 {
  margin: 0;
  font-size: 16px;
}

.source-card p {
  color: #6b91b5;
  font-size: 12px;
}

.source-field {
  display: grid;
  gap: 6px;
  color: #52718f;
  font-size: 11px;
  font-weight: 800;
}

.source-field input {
  min-height: 36px;
  width: 100%;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  outline: 0;
}

.source-field textarea {
  min-height: 98px;
  width: 100%;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  outline: 0;
  resize: vertical;
}

.source-field input:focus,
.source-field textarea:focus {
  border-color: rgba(71, 150, 117, 0.5);
  box-shadow: 0 0 0 4px rgba(71, 150, 117, 0.1);
}

.source-note {
  padding: 9px 10px;
  border-radius: 10px;
  background: var(--soft);
  border: 1px solid var(--line);
}

.source-note.warning {
  background: #fff7e6;
  border-color: rgba(244, 178, 0, 0.45);
  color: #815c00;
}

.source-card button {
  align-self: end;
  min-height: 34px;
  border: 1px solid var(--brand);
  border-radius: 10px;
  background: var(--brand);
  color: #fff;
  font-weight: 800;
}

.source-card.connected button {
  border-color: var(--line);
  background: #fff;
  color: var(--brand-dark);
}

.source-card.coming-soon button {
  border-color: var(--line) !important;
  background: #f1f3f5 !important;
  color: #868e96 !important;
}

.placeholder-panel {
  margin-top: 16px;
}

.raw-summary-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 10px;
  margin: 14px 0;
}

.raw-summary-grid article {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--soft);
}

.raw-summary-grid span {
  display: block;
  color: #6b91b5;
  font-size: 10px;
}

.raw-summary-grid strong {
  display: block;
  margin-top: 3px;
  font-size: 20px;
}

.raw-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.raw-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.raw-tabs button {
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: #52718f;
  font-size: 11px;
  font-weight: 800;
}

.raw-tabs button.active {
  border-color: var(--brand);
  background: var(--brand);
  color: #fff;
}

.raw-search {
  min-width: 220px;
  display: grid;
  gap: 5px;
  color: #52718f;
  font-size: 11px;
  font-weight: 800;
}

.raw-search input {
  height: 34px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  outline: 0;
}

.raw-table-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
}

.raw-table-head span {
  color: #6b91b5;
  font-size: 12px;
  font-weight: 700;
}

.raw-table {
  display: grid;
  gap: 10px;
  max-height: 650px;
  overflow: auto;
}

.raw-row {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr) 170px;
  gap: 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}

.raw-source strong,
.raw-record-main strong {
  display: block;
  font-size: 12px;
}

.raw-source span,
.raw-record-main p,
.raw-meta span,
.raw-meta b {
  color: #6b91b5;
  font-size: 11px;
}

.raw-record-main p {
  margin-top: 4px;
  overflow-wrap: anywhere;
}

.raw-record-main a {
  display: inline-flex;
  margin-top: 6px;
  color: var(--brand-dark);
  font-size: 11px;
  font-weight: 800;
}

.raw-meta {
  display: grid;
  gap: 4px;
  align-content: start;
  text-align: right;
}

.raw-meta b {
  font-weight: 600;
  overflow-wrap: anywhere;
}

.raw-empty {
  padding: 24px;
  border-radius: 10px;
  background: var(--soft);
  color: #6b91b5;
  text-align: center;
}

.reddit-panel {
  margin-top: 16px;
}

.reddit-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.reddit-summary article {
  padding: 10px;
  border-radius: 10px;
  background: var(--soft);
  border: 1px solid var(--line);
}

.reddit-summary article.clickable {
  cursor: pointer;
  transition: transform 150ms ease, border-color 150ms ease, background-color 150ms ease;
}

.reddit-summary article.clickable:hover {
  border-color: var(--brand);
  background: rgba(71, 150, 117, 0.05);
  transform: translateY(-2px);
}

.reddit-summary article.clickable.selected {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
  box-shadow: 0 4px 12px rgba(71, 150, 117, 0.2);
}

.reddit-summary article.clickable.selected span {
  color: rgba(255, 255, 255, 0.8);
}

.reddit-summary span {
  display: block;
  color: #6b91b5;
  font-size: 10px;
}

.reddit-summary strong {
  display: block;
  margin-top: 3px;
  font-size: 18px;
}

.reddit-list {
  display: grid;
  gap: 10px;
}

.reddit-list article {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  display: grid;
  gap: 6px;
}

.reddit-list a {
  font-size: 13px;
  font-weight: 700;
}

.reddit-list span,
.reddit-list p {
  color: #6b91b5;
  font-size: 11px;
}

.chat-layout {
  display: grid;
  gap: 14px;
}

.chat-thread {
  min-height: 420px;
  max-height: 520px;
  overflow: auto;
  display: grid;
  align-content: start;
  gap: 12px;
}

.chat-message {
  max-width: 78%;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--soft);
  border: 1px solid var(--line);
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.chat-message.user {
  justify-self: end;
  background: #e9f7f1;
  border-color: rgba(71, 150, 117, 0.24);
}

.chat-avatar {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  flex: 0 0 auto;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #fff;
}

.chat-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.chat-body {
  flex: 1 1 auto;
}

.chat-message strong {
  display: block;
  margin-bottom: 5px;
  font-size: 12px;
}

.chat-message p {
  color: #38526e;
  font-size: 13px;
  white-space: pre-wrap;
}

.chat-text {
  color: #38526e;
  font-size: 13px;
  line-height: 1.5;
}

.chat-text p {
  margin: 0 0 8px 0;
  color: #38526e;
  font-size: 13px;
  white-space: pre-wrap;
}

.chat-text p:last-child {
  margin-bottom: 0;
}

.chat-text ul {
  margin: 6px 0 10px 18px;
  padding: 0;
  list-style-type: disc;
}

.chat-text li {
  margin-bottom: 4px;
  font-size: 13px;
  color: #38526e;
}

.chat-text li strong {
  display: inline;
  margin-bottom: 0;
}

.chat-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.suggestion-chip {
  min-height: 28px;
  padding: 4px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #ffffff;
  color: #52718f;
  font-size: 11px;
  font-weight: 500;
  cursor: pointer;
  transition: all 150ms ease;
  box-shadow: 0 1px 2px rgba(12, 29, 53, 0.03);
}

.suggestion-chip:hover {
  border-color: var(--brand);
  background: rgba(71, 150, 117, 0.05);
  color: var(--brand-dark);
  transform: translateY(-1px);
  box-shadow: 0 3px 6px rgba(71, 150, 117, 0.1);
}

.suggestion-chip:active {
  transform: translateY(0);
}

.chat-composer {
  display: grid;
  gap: 8px;
}

.chat-composer label {
  color: #52718f;
  font-size: 12px;
  font-weight: 800;
}

.chat-composer div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.chat-composer input {
  height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  outline: 0;
}

.chat-composer input:focus {
  border-color: rgba(71, 150, 117, 0.5);
  box-shadow: 0 0 0 4px rgba(71, 150, 117, 0.1);
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  max-width: 300px;
  padding: 10px 14px;
  border-radius: 10px;
  background: #0e2038;
  color: #fff;
  font-size: 13px;
  z-index: 20;
  box-shadow: 0 18px 40px rgba(12, 29, 53, 0.22);
}

@media (max-width: 960px) {
  .dashboard-app {
    display: flex;
    flex-direction: column;
    padding: 0;
  }

  .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 1000;
    width: 280px;
    background: #ffffff;
    box-shadow: 20px 0 50px rgba(12, 29, 53, 0.08);
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    min-height: 100vh;
    padding: 26px 18px 18px;
    display: flex;
    flex-direction: column;
    gap: 24px;
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .sidebar .nav-list a {
    min-height: 44px;
    font-size: 13px;
  }

  .copyright {
    display: none;
  }

  .dashboard-shell {
    width: 100%;
    border-radius: 0;
    padding: 16px 12px;
  }

  .dashboard-grid,
  .lower-grid,
  .reddit-summary,
  .sentiment-stats,
  .raw-summary-grid,
  .raw-row {
    grid-template-columns: 1fr;
  }

  .raw-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .raw-search {
    min-width: 0;
  }

  .raw-meta {
    text-align: left;
  }
}

@media (max-width: 720px) {
  .dashboard-shell {
    padding: 18px 14px 26px;
  }

  .dashboard-top,
  .panel-head,
  .integration-hero {
    align-items: flex-start;
    flex-direction: column;
  }

  .top-controls {
    width: 100%;
    flex-wrap: wrap;
  }

  .search-control {
    width: 100%;
  }

  .assistant-banner {
    align-items: flex-start;
  }

  .assistant-banner p {
    font-size: 13px;
  }

  .kpi-grid {
    grid-template-columns: 1fr;
  }

  .chart-panel .panel-head,
  .dropoff-panel .panel-head {
    align-items: stretch;
  }

  .legend {
    flex-wrap: wrap;
  }

  .dropoff-list article {
    grid-template-columns: 1fr;
  }

  .dropoff-list b {
    text-align: left;
  }

  .chat-message {
    max-width: 100%;
  }

  .chat-composer div {
    grid-template-columns: 1fr;
  }
}

/* ── COMPETITOR ANALYSIS ───────────────────────────────────── */

.competitor-screen {
  display: none;
  gap: 20px;
}

.competitor-screen.active {
  display: grid;
}

.comp-overview {
  margin-bottom: 4px;
}

.comp-overview-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.comp-overview-sub {
  color: #6b91b5;
  font-size: 12px;
}

.comp-chart {
  display: flex;
  gap: 12px;
  align-items: flex-end;
  height: 200px;
  padding-top: 24px;
  padding-bottom: 28px;
  position: relative;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scroll-behavior: smooth;
}

/* Custom Sleek Scrollbar for Competitor Chart */
.comp-chart::-webkit-scrollbar {
  height: 5px;
}
.comp-chart::-webkit-scrollbar-track {
  background: transparent;
}
.comp-chart::-webkit-scrollbar-thumb {
  background: rgba(12, 29, 53, 0.1);
  border-radius: 4px;
}
.comp-chart::-webkit-scrollbar-thumb:hover {
  background: rgba(12, 29, 53, 0.25);
}

.comp-bar-group {
  flex: 1 0 70px;
  min-width: 70px;
  max-width: 110px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  position: relative;
  cursor: pointer;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.comp-bar-group.dimmed {
  opacity: 0.35;
}

.comp-bar-group.selected {
  opacity: 1;
  z-index: 2;
}

.comp-bar-stack {
  width: 24px;
  display: flex;
  flex-direction: column-reverse;
  gap: 2px;
  border-radius: 8px 8px 0 0;
  overflow: hidden;
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275), filter 0.2s ease, box-shadow 0.2s ease;
}

.competitor-screen.active .comp-bar-stack {
  transform: scaleY(1);
}

.comp-bar-group:hover .comp-bar-stack {
  filter: brightness(1.1);
  box-shadow: 0 4px 12px rgba(12, 29, 53, 0.15);
}

.comp-bar-group.selected .comp-bar-stack {
  box-shadow: 0 0 0 2px var(--brand), 0 4px 12px rgba(71, 150, 117, 0.25);
}

.comp-bar-pos {
  background: var(--brand);
}

.comp-bar-neu {
  background: var(--gold);
  opacity: 0.75;
}

.comp-bar-neg {
  background: var(--red);
  opacity: 0.85;
}

.comp-bar-label {
  position: absolute;
  bottom: -22px;
  left: 50%;
  transform: translate(-50%, 5px);
  white-space: nowrap;
  font-size: 10px;
  font-weight: 700;
  color: #5f97c3;
  max-width: 90px;
  overflow: hidden;
  text-overflow: ellipsis;
  opacity: 0;
  transition: opacity 0.5s ease, transform 0.5s ease, color 0.3s ease;
}

.competitor-screen.active .comp-bar-label {
  opacity: 1;
  transform: translate(-50%, 0);
}

.comp-bar-group.selected .comp-bar-label {
  color: var(--brand-dark);
}

.comp-bar-score {
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translate(-50%, 10px);
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.competitor-screen.active .comp-bar-score {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* Staggered entry animation delays */
.comp-bar-group:nth-child(1) .comp-bar-stack { transition-delay: 0.05s; }
.comp-bar-group:nth-child(2) .comp-bar-stack { transition-delay: 0.12s; }
.comp-bar-group:nth-child(3) .comp-bar-stack { transition-delay: 0.19s; }
.comp-bar-group:nth-child(4) .comp-bar-stack { transition-delay: 0.26s; }
.comp-bar-group:nth-child(5) .comp-bar-stack { transition-delay: 0.33s; }
.comp-bar-group:nth-child(6) .comp-bar-stack { transition-delay: 0.40s; }

.comp-bar-group:nth-child(1) .comp-bar-score { transition-delay: 0.25s; }
.comp-bar-group:nth-child(2) .comp-bar-score { transition-delay: 0.32s; }
.comp-bar-group:nth-child(3) .comp-bar-score { transition-delay: 0.39s; }
.comp-bar-group:nth-child(4) .comp-bar-score { transition-delay: 0.46s; }
.comp-bar-group:nth-child(5) .comp-bar-score { transition-delay: 0.53s; }
.comp-bar-group:nth-child(6) .comp-bar-score { transition-delay: 0.60s; }

.comp-bar-group:nth-child(1) .comp-bar-label { transition-delay: 0.15s; }
.comp-bar-group:nth-child(2) .comp-bar-label { transition-delay: 0.22s; }
.comp-bar-group:nth-child(3) .comp-bar-label { transition-delay: 0.29s; }
.comp-bar-group:nth-child(4) .comp-bar-label { transition-delay: 0.36s; }
.comp-bar-group:nth-child(5) .comp-bar-label { transition-delay: 0.43s; }
.comp-bar-group:nth-child(6) .comp-bar-label { transition-delay: 0.50s; }

.comp-bar-score.is-you {
  color: var(--brand-dark);
}

.comp-bar-score.positive-score {
  color: var(--brand);
}

.comp-bar-score.negative-score {
  color: var(--red);
}

.comp-bar-score.neutral-score {
  color: #a09040;
}

.comp-chart-legend {
  display: flex;
  gap: 12px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
}

.comp-chart-legend span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  color: var(--muted);
}

.comp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
}

.comp-card {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: 0 12px 30px rgba(43, 70, 99, 0.035);
  display: grid;
  gap: 14px;
  transition: box-shadow 300ms ease, transform 300ms ease, border-color 300ms ease, opacity 300ms ease;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.comp-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: var(--brand);
  border-radius: var(--radius) var(--radius) 0 0;
  opacity: 0.4;
  transition: opacity 0.3s ease, height 0.3s ease;
}

.comp-card.is-you::before {
  background: linear-gradient(90deg, var(--brand), #21c775);
  opacity: 1;
}

.comp-card:hover {
  box-shadow: 0 18px 50px rgba(43, 70, 99, 0.09);
  transform: translateY(-4px);
  border-color: rgba(71, 150, 117, 0.4);
}

.comp-card.dimmed {
  opacity: 0.4;
  filter: grayscale(20%);
}

.comp-card.selected {
  opacity: 1;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(71, 150, 117, 0.15), 0 18px 50px rgba(43, 70, 99, 0.09);
  transform: translateY(-2px);
}

.comp-card.selected::before {
  height: 5px;
  opacity: 1;
}

.comp-card.loading {
  opacity: 0.6;
  pointer-events: none;
}

.comp-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.comp-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.comp-you-badge {
  flex-shrink: 0;
  padding: 3px 8px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--brand), #21c775);
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.comp-mentions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.comp-stat {
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--soft);
  border: 1px solid var(--line);
}

.comp-stat span {
  display: block;
  font-size: 10px;
  color: #6b91b5;
  margin-bottom: 3px;
}

.comp-stat strong {
  display: block;
  font-size: 20px;
  font-weight: 600;
  line-height: 1;
}

.comp-delta {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 10px;
  font-weight: 700;
  margin-top: 3px;
}

.comp-delta.pos { color: var(--brand); }
.comp-delta.neg { color: var(--red); }
.comp-delta.neu { color: var(--muted); }

.comp-sentiment-bars {
  display: grid;
  gap: 8px;
}

.comp-sent-row {
  display: grid;
  grid-template-columns: 64px 1fr 30px;
  gap: 8px;
  align-items: center;
  font-size: 10px;
}

.comp-sent-row span {
  color: #6b91b5;
  text-transform: capitalize;
}

.comp-sent-track {
  height: 6px;
  border-radius: 99px;
  background: #e6ecef;
  overflow: hidden;
}

.comp-sent-fill {
  height: 100%;
  border-radius: inherit;
  transition: width 600ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

.comp-sent-fill.positive { background: var(--brand); }
.comp-sent-fill.neutral  { background: var(--gold); }
.comp-sent-fill.negative { background: var(--red); }

.comp-sent-row b {
  text-align: right;
  font-size: 10px;
  font-weight: 600;
  color: var(--ink);
}

.comp-score-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  font-size: 11px;
  color: #6b91b5;
}

.comp-score-row strong {
  font-size: 16px;
  font-weight: 700;
}

.comp-score-row strong.pos { color: var(--brand); }
.comp-score-row strong.neg { color: var(--red); }
.comp-score-row strong.neu { color: var(--muted); }

.comp-error {
  padding: 10px 12px;
  border-radius: 10px;
  background: #fff7e6;
  border: 1px solid rgba(244, 178, 0, 0.45);
  color: #815c00;
  font-size: 11px;
}

.comp-loading-bar {
  height: 4px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--brand) 0%, #21c775 50%, var(--brand) 100%);
  background-size: 200% 100%;
  animation: comp-shimmer 1.4s linear infinite;
}

@keyframes comp-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.comp-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 360px;
}

.comp-empty-inner {
  max-width: 420px;
  padding: 40px 36px;
  text-align: center;
  display: grid;
  gap: 14px;
  justify-items: center;
}

.comp-empty-icon {
  font-size: 48px;
  color: var(--muted);
  opacity: 0.5;
}

.comp-empty-inner h2 {
  font-size: 18px;
}

.comp-empty-inner p {
  color: #6b91b5;
  font-size: 13px;
}

/* ── COMPETITOR INSIGHTS (PROS / CONS) ───────────────────── */

.comp-insights {
  margin-top: 4px;
}

.comp-insights-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.comp-insights-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.comp-insights-col {
  display: grid;
  gap: 10px;
  align-content: start;
}

.comp-insights-col-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.comp-insights-col-head span {
  width: 20px;
  height: 20px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 900;
}

.comp-insights-col-head.pros {
  background: rgba(71, 150, 117, 0.1);
  color: var(--brand-dark);
}

.comp-insights-col-head.pros span {
  background: var(--brand);
  color: #fff;
}

.comp-insights-col-head.cons {
  background: rgba(255, 49, 80, 0.07);
  color: #b02040;
}

.comp-insights-col-head.cons span {
  background: var(--red);
  color: #fff;
}

.comp-insights-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.comp-insights-list li {
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--soft);
  font-size: 12px;
  line-height: 1.45;
  color: var(--ink);
  animation: slide-in 280ms ease both;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), border-color 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease;
}

.comp-insights-list li.highlighted {
  transform: scale(1.02) translateX(6px);
  box-shadow: 0 4px 15px rgba(12, 29, 53, 0.05);
  z-index: 1;
}

.comp-insights-list li.dimmed {
  opacity: 0.45;
  transform: scale(0.98);
}

.comp-insights-list li strong {
  display: block;
  font-size: 11px;
  font-weight: 700;
  margin-bottom: 3px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #6b91b5;
}

.comp-insights-col:first-child .comp-insights-list li {
  border-color: rgba(71, 150, 117, 0.22);
  background: rgba(71, 150, 117, 0.04);
}

.comp-insights-col:first-child .comp-insights-list li.highlighted {
  border-color: rgba(71, 150, 117, 0.7) !important;
  background: rgba(71, 150, 117, 0.13) !important;
}

.comp-insights-col:last-child .comp-insights-list li {
  border-color: rgba(255, 49, 80, 0.15);
  background: rgba(255, 49, 80, 0.03);
}

.comp-insights-col:last-child .comp-insights-list li.highlighted {
  border-color: rgba(255, 49, 80, 0.6) !important;
  background: rgba(255, 49, 80, 0.09) !important;
}

.comp-insights-loading {
  height: 14px;
  border-radius: 6px;
  background: linear-gradient(90deg, #e4edf5 25%, #f0f6fb 50%, #e4edf5 75%);
  background-size: 200% 100%;
  animation: comp-shimmer 1.4s linear infinite;
}

@media (max-width: 720px) {
  .comp-insights-body {
    grid-template-columns: 1fr;
  }
}

/* ── SETTINGS SCREEN ─────────────────────────────────────── */

.settings-screen {
  display: none;
  gap: 20px;
}

.settings-screen.active {
  display: grid;
}

.settings-layout {
  display: grid;
  gap: 16px;
  max-width: 720px;
}

.settings-section {
  display: grid;
  gap: 14px;
}

.settings-section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.settings-desc {
  color: #6b91b5;
  font-size: 13px;
  margin-top: 4px;
}

.settings-field {
  display: grid;
  gap: 7px;
  color: #52718f;
  font-size: 12px;
  font-weight: 700;
}

.settings-field input {
  height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  outline: 0;
  font: inherit;
}

.settings-field input:focus {
  border-color: rgba(71, 150, 117, 0.5);
  box-shadow: 0 0 0 4px rgba(71, 150, 117, 0.1);
}

.comp-count-badge {
  flex-shrink: 0;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--soft);
  border: 1px solid var(--line);
  color: #52718f;
  font-size: 12px;
  font-weight: 700;
}

.competitor-list {
  display: grid;
  gap: 10px;
}

.competitor-input-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 38px;
  gap: 8px;
  align-items: center;
  animation: slide-in 220ms ease;
}

@keyframes slide-in {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.competitor-input-row input {
  height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  outline: 0;
  font: inherit;
}

.competitor-input-row input:focus {
  border-color: rgba(71, 150, 117, 0.5);
  box-shadow: 0 0 0 4px rgba(71, 150, 117, 0.1);
}

.comp-remove-button {
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--red);
  font-size: 18px;
  font-weight: 300;
  display: grid;
  place-items: center;
  transition: background 150ms, border-color 150ms;
}

.comp-remove-button:hover {
  background: #fff1f3;
  border-color: rgba(255, 49, 80, 0.4);
}

.comp-add-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 16px;
  border: 1.5px dashed var(--brand);
  border-radius: 10px;
  background: transparent;
  color: var(--brand-dark);
  font-size: 13px;
  font-weight: 600;
  justify-self: start;
  transition: background 160ms;
}

.comp-add-button:hover {
  background: rgba(71, 150, 117, 0.07);
}

.comp-add-button span {
  font-size: 20px;
  font-weight: 300;
  line-height: 1;
}

.comp-add-button:disabled {
  opacity: 0.4;
  pointer-events: none;
}



@media (max-width: 720px) {
  .comp-grid,
  .settings-layout {
    grid-template-columns: 1fr;
  }

  .comp-overview-head {
    flex-direction: column;
  }
}

/* ── USERS SCREEN & ACCESS CONTROL ───────────────────── */

.users-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 24px;
  align-items: start;
}

.users-list-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.users-table-container {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}

.users-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 13px;
}

.users-table th,
.users-table td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
}

.users-table th {
  background: var(--soft);
  color: var(--ink);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.5px;
}

.users-table tbody tr:last-child td {
  border-bottom: none;
}

.users-table tbody tr:hover {
  background: var(--soft);
}

/* Badges */
.role-badge {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  text-transform: capitalize;
}

.role-badge.admin {
  background: linear-gradient(135deg, #7f00ff, #e100ff);
  color: #fff;
}

.role-badge.integrator {
  background: linear-gradient(135deg, #00c6ff, #0072ff);
  color: #fff;
}

.role-badge.analyst {
  background: linear-gradient(135deg, #11998e, #38ef7d);
  color: #fff;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--ink);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.status-dot.active {
  background: #2ebd7f;
  box-shadow: 0 0 8px rgba(46, 189, 127, 0.6);
}

.status-dot.invited {
  background: var(--gold);
  box-shadow: 0 0 8px rgba(244, 178, 0, 0.6);
}

.status-dot.requested {
  background: var(--blue);
  box-shadow: 0 0 8px rgba(11, 141, 243, 0.6);
}

/* Forms in Invite Panel */
.invite-form {
  display: grid;
  gap: 16px;
  margin-top: 12px;
}

.form-group {
  display: grid;
  gap: 6px;
}

.form-group label {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
}

.form-group input,
.form-group select {
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  font: inherit;
  font-size: 13px;
  outline: none;
  transition: border-color 150ms;
}

.form-group input:focus,
.form-group select:focus {
  border-color: rgba(71, 150, 117, 0.5);
  box-shadow: 0 0 0 4px rgba(71, 150, 117, 0.1);
}

/* User Count Badge */
.user-count-badge {
  background: var(--soft);
  color: var(--ink);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 6px;
  border: 1px solid var(--line);
}

/* Restricted / Banner Overlay */
.restricted-banner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 32px 16px;
  border: 1px dashed var(--line);
  border-radius: 10px;
  background: var(--soft);
  text-align: center;
  color: var(--muted);
  margin-top: 12px;
}

.restricted-banner span {
  font-size: 28px;
}

.restricted-banner p {
  margin: 0;
  font-size: 13px;
  font-weight: 500;
}

.access-denied-screen {
  display: none;
  place-items: center;
  padding: 40px 20px;
}

.access-denied-screen.active {
  display: grid;
}

.access-denied-panel {
  width: min(100%, 460px);
  text-align: center;
  padding: 40px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 20px 50px rgba(12, 29, 53, 0.05);
}

.access-denied-panel .lock-icon {
  font-size: 48px;
  margin-bottom: 20px;
  animation: pulse-lock 2s infinite ease-in-out;
}

@keyframes pulse-lock {
  0% { transform: scale(1); }
  50% { transform: scale(1.08); }
  100% { transform: scale(1); }
}

.access-denied-panel h2 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--ink);
}

.access-denied-panel p {
  font-size: 14px;
  color: #52718f;
  line-height: 1.5;
  margin-bottom: 20px;
}

.access-denied-help {
  padding: 12px;
  border-radius: 10px;
  background: rgba(12, 29, 53, 0.04);
  font-size: 12px !important;
}

.access-denied-help p {
  margin: 0;
  font-size: 12px;
  color: var(--ink);
}

/* Sidebar locks indicator */
.nav-list a.nav-locked {
  opacity: 0.6;
}

.nav-list a.nav-locked::after {
  content: "🔒";
  margin-left: auto;
  font-size: 11px;
}

/* Actions user remove button */
.user-remove-btn {
  background: transparent;
  border: none;
  color: var(--red);
  font-size: 12px;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 6px;
  transition: background 150ms;
}

.user-remove-btn:hover {
  background: #fff1f3;
}

.user-remove-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  background: transparent !important;
}

/* Responsive adjustments */
@media (max-width: 800px) {
  .users-layout {
    grid-template-columns: 1fr;
  }
}

/* ── PROFILE SCREEN ────────────────────────────────────────── */
.profile-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: start;
}

@media (max-width: 960px) {
  .profile-layout {
    grid-template-columns: 1fr;
  }
}

.profile-avatar-container {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 24px;
  padding: 16px;
  background: var(--soft);
  border-radius: 12px;
  border: 1px solid var(--line);
}

.profile-avatar-preview-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.profile-avatar-preview {
  width: 72px;
  height: 72px;
  border-radius: 999px;
  background: #0a1c35;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 700;
  overflow: hidden;
  border: 3px solid var(--brand);
  background-size: cover;
  background-position: center;
}

.profile-avatar-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avatar-upload-label {
  font-size: 11px;
  color: var(--brand);
  cursor: pointer;
  font-weight: 600;
  transition: color 150ms ease;
}

.avatar-upload-label:hover {
  color: var(--brand-dark);
}

.avatar-presets {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.avatar-presets > span {
  font-size: 10px;
  color: #6b91b5;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.avatar-preset-list {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.preset-avatar {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 2px solid transparent;
  padding: 0;
  cursor: pointer;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  transition: transform 150ms ease, border-color 150ms ease;
  background: var(--brand);
}

.preset-avatar:hover {
  transform: scale(1.08);
}

.preset-avatar.active {
  border-color: var(--brand);
  box-shadow: 0 0 0 2px rgba(49, 132, 99, 0.25);
}

.preset-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.preset-avatar.blue { background: #3b82f6; }
.preset-avatar.emerald { background: #10b981; }
.preset-avatar.purple { background: #8b5cf6; }
.preset-avatar.amber { background: #f59e0b; }

.profile-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.profile-form .form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.profile-form label {
  font-size: 11px;
  font-weight: 600;
  color: #556c82;
}

.profile-form input,
.profile-form select {
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid var(--line);
  font-size: 12px;
  background: #fff;
  color: var(--ink);
  transition: border-color 150ms ease;
}

.profile-form input:focus,
.profile-form select:focus {
  border-color: var(--brand);
  outline: none;
}

.profile-form input:disabled {
  background: #f1f5f9;
  color: #94a3b8;
  cursor: not-allowed;
}

.field-hint {
  font-size: 10px;
  color: #8ba2b9;
  margin-top: 2px;
}

.logout-section {
  margin-top: 30px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.logout-section h3 {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 4px;
}

.logout-section p {
  font-size: 11px;
  color: #6b91b5;
  margin-bottom: 12px;
}

.logout-btn {
  background: #ef4444 !important;
  border-color: #ef4444 !important;
}

.logout-btn:hover {
  background: #dc2626 !important;
  border-color: #dc2626 !important;
}

.avatar-button {
  border-color: #0a1c35;
  border-radius: 999px;
  background: #0a1c35;
  background-size: cover;
  background-position: center;
  color: #fff;
  font-weight: 700;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 0;
}

.avatar-button img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Recommendation Drawer Styles */
.recommendation-drawer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1000;
  display: flex;
  justify-content: flex-end;
}

.recommendation-drawer[hidden] {
  display: none !important;
}

.drawer-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 32, 54, 0.4);
  backdrop-filter: blur(4px);
  animation: fadeInOverlay 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.drawer-content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 480px;
  height: 100%;
  background: #ffffff;
  box-shadow: -10px 0 30px rgba(15, 32, 54, 0.15);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  animation: slideInDrawer 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.drawer-header {
  padding: 24px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.drawer-badge {
  display: inline-block;
  background: #eef2f7;
  color: var(--brand);
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 8px;
  border-radius: 4px;
  margin-bottom: 8px;
}

.drawer-header h2 {
  font-size: 18px;
  font-weight: 700;
  color: #1f2d3d;
  margin: 0;
  line-height: 1.3;
}

.drawer-close {
  background: none;
  border: none;
  font-size: 28px;
  color: #728fae;
  cursor: pointer;
  padding: 0;
  line-height: 0.8;
  transition: color 0.15s ease;
}

.drawer-close:hover {
  color: var(--brand);
}

.drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.drawer-section h3 {
  font-size: 13px;
  font-weight: 600;
  color: #52718f;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 0 0 12px 0;
  border-bottom: 2px solid #f0f4f8;
  padding-bottom: 6px;
}

.action-plan-steps {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.plan-step {
  display: flex;
  gap: 12px;
  background: #fcfdfe;
  border: 1px solid #edf2f6;
  border-radius: 8px;
  padding: 12px;
}

.step-num {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--brand);
  color: #ffffff;
  font-size: 10px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.step-info strong {
  display: block;
  font-size: 12px;
  color: #1f2d3d;
  margin-bottom: 2px;
}

.step-info p {
  margin: 0;
  font-size: 11px;
  color: #5f7a94;
  line-height: 1.4;
}

.section-desc {
  margin: 0 0 12px 0;
  font-size: 11px;
  color: #728fae;
}

.supporting-records-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.supporting-row {
  border: 1px solid #edf2f6;
  border-radius: 8px;
  padding: 10px 12px;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.supporting-row:hover {
  border-color: #c5d8ea;
  box-shadow: 0 2px 8px rgba(15, 32, 54, 0.06);
}

.supporting-row-meta {
  display: flex;
  justify-content: space-between;
  font-size: 9px;
  color: #a0b6cc;
}

.supporting-row-meta strong {
  color: var(--brand);
  font-weight: 600;
}

.supporting-row-title {
  font-size: 11px;
  font-weight: 600;
  color: #1f2d3d;
}

.supporting-row-detail {
  font-size: 10px;
  color: #5f7a94;
  margin: 0;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.supporting-row-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
  padding-top: 6px;
  border-top: 1px solid #f0f4f8;
}

.evidence-link {
  font-size: 10px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 4px;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
  border: none;
  line-height: 1.4;
}

.evidence-link-external {
  background: #e8f5ef;
  color: var(--brand);
}

.evidence-link-external:hover {
  background: var(--brand);
  color: #ffffff;
}

.evidence-link-raw {
  background: #eef3fb;
  color: #4a6a88;
}

.evidence-link-raw:hover {
  background: #3b7dd8;
  color: #ffffff;
}

.drawer-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--line);
  background: #fbfcfd;
  display: flex;
  justify-content: flex-end;
}

.drawer-footer button {
  width: 100%;
}

@keyframes fadeInOverlay {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideInDrawer {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}

/* ── NOTIFICATIONS PANEL & BADGE ── */
.notif-wrapper {
  position: relative;
  display: inline-flex;
}

.notif-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--red);
  color: #fff;
  border-radius: 99px;
  font-size: 9px;
  font-weight: 700;
  min-width: 15px;
  height: 15px;
  padding: 0 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid var(--shell);
  box-shadow: 0 2px 4px rgba(255, 49, 80, 0.2);
}

.notif-panel {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 8px;
  width: 320px;
  max-height: 480px;
  overflow-y: auto;
  background: var(--shell);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(12, 29, 53, 0.15);
  z-index: 1000;
  display: flex;
  flex-direction: column;
}

.notif-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  font-weight: 700;
  color: var(--ink);
  font-size: 13px;
}

#notif-mark-all {
  background: none;
  border: none;
  color: var(--blue);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
}

#notif-mark-all:hover {
  text-decoration: underline;
}

.notif-empty {
  padding: 32px 16px;
  text-align: center;
  color: var(--muted);
}

.notif-empty span {
  font-size: 32px;
  display: block;
  margin-bottom: 8px;
}

.notif-empty p {
  margin: 0;
  font-size: 13px;
  font-weight: 500;
}

.notif-list {
  display: flex;
  flex-direction: column;
}

.notif-group {
  border-bottom: 1px solid var(--line);
}

.notif-group:last-child {
  border-bottom: none;
}

.notif-group-label {
  padding: 6px 16px;
  font-size: 10px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  background: var(--soft);
  letter-spacing: 0.05em;
}

.notif-item {
  display: flex;
  align-items: flex-start;
  padding: 12px 16px;
  border-bottom: 1px solid var(--soft);
  cursor: pointer;
  transition: background 0.15s ease;
  position: relative;
}

.notif-item:hover {
  background: var(--soft);
}

.notif-item.notif-urgent {
  background: rgba(255, 49, 80, 0.02);
}

.notif-item.notif-urgent:hover {
  background: rgba(255, 49, 80, 0.05);
}

.notif-icon {
  width: 28px;
  height: 28px;
  background: var(--soft);
  color: var(--brand);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-right: 12px;
  margin-top: 0;
  transition: all 0.2s ease;
}

.notif-icon svg {
  width: 14px;
  height: 14px;
  display: block;
}

/* Category-specific icon styling */
.notif-item[data-notif-category="Social"] .notif-icon {
  background: rgba(59, 130, 246, 0.08);
  color: #2563eb;
}
.notif-item[data-notif-category="Reviews"] .notif-icon {
  background: rgba(99, 102, 241, 0.08);
  color: #4f46e5;
}
.notif-item[data-notif-category="Documents"] .notif-icon {
  background: rgba(107, 114, 128, 0.08);
  color: #4b5563;
}
.notif-item[data-notif-category="Surveys"] .notif-icon {
  background: rgba(16, 185, 129, 0.08);
  color: #059669;
}
.notif-item[data-notif-category="Analysis"] .notif-icon {
  background: rgba(139, 92, 246, 0.08);
  color: #7c3aed;
}
.notif-item[data-notif-category="Recommendations"] .notif-icon {
  background: rgba(245, 158, 11, 0.08);
  color: #d97706;
}
.notif-item[data-notif-category="Drop-offs"] .notif-icon {
  background: rgba(249, 115, 22, 0.08);
  color: #ea580c;
}
.notif-item[data-notif-category="Competitors"] .notif-icon {
  background: rgba(139, 92, 246, 0.08);
  color: #7c3aed;
}
.notif-item[data-notif-category="Reports"] .notif-icon {
  background: rgba(16, 185, 129, 0.08);
  color: #059669;
}
.notif-item.notif-urgent .notif-icon {
  background: rgba(239, 68, 68, 0.08);
  color: #dc2626;
}

/* Report Card Icon Wrappers */
.report-type-icon-wrapper {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.report-type-icon-wrapper svg {
  width: 18px;
  height: 18px;
  display: block;
}

.competitor-report-icon {
  background: rgba(139, 92, 246, 0.08);
  color: #7c3aed;
}

.sentiment-report-icon {
  background: rgba(249, 115, 22, 0.08);
  color: #ea580c;
}

.full-report-icon {
  background: rgba(16, 185, 129, 0.08);
  color: #059669;
}

.notif-content {
  flex: 1;
  min-width: 0;
}

.notif-content strong {
  display: block;
  font-size: 12px;
  color: var(--ink);
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 2px;
}

.notif-content p {
  font-size: 11px;
  color: var(--muted);
  margin: 0;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.notif-dismiss {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 16px;
  cursor: pointer;
  padding: 2px 6px;
  line-height: 1;
  margin-left: 8px;
  align-self: center;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.notif-dismiss:hover {
  background: var(--line);
  color: var(--ink);
}

.notif-has-unread svg {
  color: var(--blue);
  animation: notif-bounce 1s ease infinite alternate;
}

@keyframes notif-bounce {
  0% { transform: translateY(0); }
  100% { transform: translateY(-2px); }
}

/* User Action Buttons on Users Page */
.user-action-btn {
  transition: opacity 0.15s ease;
}
.user-action-btn:hover {
  opacity: 0.9;
}
.user-action-btn:active {
  transform: scale(0.97);
}

/* Reports layout, card styles */
.report-card:hover {
  transform: translateY(-2px);
  border-color: var(--brand) !important;
  box-shadow: 0 4px 12px rgba(12, 29, 53, 0.06);
}

.report-card button:hover {
  background: var(--soft) !important;
  border-color: var(--brand) !important;
  color: var(--brand) !important;
}

.report-card button.delete-report-btn:hover {
  background: #fff1f3 !important;
  border-color: var(--red) !important;
  color: var(--red) !important;
}

#reports-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--brand);
  color: white;
  border-radius: 99px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  font-size: 10px;
  font-weight: 700;
  margin-left: auto;
  line-height: 1;
}

/* @media print layouts */
@media print {
  body.printing-report {
    background: white !important;
    color: black !important;
  }
  body.printing-report > *:not(#report-viewer-modal) {
    display: none !important;
  }
  body.printing-report #report-viewer-modal {
    position: absolute !important;
    left: 0 !important;
    top: 0 !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    z-index: 99999 !important;
    background: white !important;
  }
  body.printing-report #report-viewer-modal .drawer-overlay,
  body.printing-report #report-viewer-modal #report-viewer-close-btn,
  body.printing-report #report-viewer-modal .drawer-footer {
    display: none !important;
  }
  body.printing-report #report-viewer-modal .drawer-content {
    box-shadow: none !important;
    transform: none !important;
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    position: static !important;
    margin: 0 !important;
    padding: 0 !important;
    background: white !important;
  }
  body.printing-report #report-viewer-modal .drawer-body {
    overflow: visible !important;
    height: auto !important;
    padding: 0 !important;
  }
  body.printing-report #report-viewer-modal h4 {
    page-break-after: avoid;
  }
  body.printing-report #report-viewer-modal table {
    page-break-inside: avoid;
  }
}

/* Policy Links & Checkbox Styling */
.policy-trigger-btn:hover {
  color: var(--brand-strong) !important;
  text-decoration: underline !important;
}

.sidebar-footer .footer-links .policy-trigger-btn:hover {
  color: var(--ink) !important;
}

.auth-checkbox-label input[type="checkbox"]:focus {
  outline: 2px solid rgba(71, 150, 117, 0.3);
}

.legal-section-block {
  margin-bottom: 20px;
}

.legal-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 6px 0;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.legal-speak {
  font-family: monospace;
  font-size: 11px;
  color: var(--ink);
  background: var(--soft);
  border: 1.5px solid var(--line);
  padding: 12px;
  border-radius: 8px;
  margin-bottom: 8px;
  line-height: 1.5;
  white-space: pre-wrap;
}

.legal-means {
  font-size: 12px;
  color: var(--brand-strong);
  border-left: 3px solid var(--brand);
  padding-left: 10px;
  margin-bottom: 24px;
  line-height: 1.5;
  font-weight: 500;
}


/* ── HEATMAP FULL-PAGE MODE ─────────────────────────────────────────────── */

/* Show ALL screens stacked when heatmap is active */
#app-view.heatmap-mode .screen {
  display: block !important;
  position: relative;
  margin-top: 16px;
  padding-top: 28px;
  padding-bottom: 56px;
  border-top: 3px solid rgba(255, 100, 0, 0.5);
}

/* Orange section label via ::before */
#app-view.heatmap-mode .screen::before {
  content: "⬢ " attr(data-screen);
  position: absolute;
  top: -14px;
  left: 0;
  background: linear-gradient(90deg, rgba(255, 80, 0, 0.96) 0%, rgba(255, 160, 0, 0.92) 100%);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  padding: 3px 18px 3px 12px;
  border-radius: 0 20px 20px 0;
  box-shadow: 0 3px 10px rgba(255, 100, 0, 0.35);
  font-family: "Manrope", "Inter", sans-serif;
}

/* Heatmap type toggle button hover state */
#heatmap-type-click:hover,
#heatmap-type-scroll:hover {
  background: rgba(255, 255, 255, 0.18) !important;
}

/* ── SIGNUP PLANS SELECTOR ────────────────────────────────── */
.signup-plans-header {
  font-size: 11px;
  font-weight: 700;
  color: #52718f;
  margin-bottom: 8px;
  text-align: left;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.signup-plans-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}

.signup-plan-card {
  border: 1.5px solid var(--line);
  border-radius: 10px;
  padding: 12px;
  background: #ffffff;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
  text-align: left;
}

.signup-plan-card:hover:not(.coming-soon) {
  border-color: rgba(71, 150, 117, 0.4);
  background: var(--soft);
}

.signup-plan-card.selected {
  border-color: var(--brand);
  background: rgba(71, 150, 117, 0.03);
  box-shadow: 0 4px 12px rgba(71, 150, 117, 0.05);
}

.plan-card-main {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.plan-card-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.plan-card-left input[type="radio"] {
  width: 16px;
  height: 16px;
  accent-color: var(--brand);
  cursor: pointer;
  margin: 0;
  flex-shrink: 0;
}

.plan-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
}

.plan-card-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

.plan-price {
  font-size: 13px;
  font-weight: 800;
  color: var(--brand-dark);
}

.plan-badge {
  font-size: 8px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 1.5px 5px;
  border-radius: 4px;
  letter-spacing: 0.02em;
}

.plan-badge.coming {
  background: #f1f5f9;
  color: #64748b;
  border: 1px solid #e2e8f0;
}

.signup-plan-card.coming-soon {
  opacity: 0.65;
  background: #f8fafc;
  cursor: not-allowed;
  border-style: dashed;
}

.signup-plan-card.coming-soon * {
  pointer-events: none;
}

.plan-card-details {
  display: none;
  border-top: 1px solid var(--line);
  padding-top: 8px;
  margin-top: 2px;
}

.signup-plan-card.selected .plan-card-details {
  display: block;
}

.plan-tagline {
  display: block;
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 6px;
  font-style: italic;
}

.plan-features-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.plan-features-list li {
  font-size: 11px;
  color: #52718f;
  line-height: 1.35;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ── BETA SPOTS URGENCY BADGE ────────────────────────────────────── */
.beta-spots-urgency {
  margin: 6px 0 10px 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.15);
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 10.5px;
  font-weight: 700;
  color: #dc2626;
}

.beta-spots-urgency .pulse-dot {
  width: 6px;
  height: 6px;
  background-color: #dc2626;
  border-radius: 50%;
  animation: pulse-red 1.8s infinite;
}

@keyframes pulse-red {
  0% { transform: scale(1); opacity: 1; box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.4); }
  70% { transform: scale(1); opacity: 0.7; box-shadow: 0 0 0 6px rgba(220, 38, 38, 0); }
  100% { transform: scale(1); opacity: 1; box-shadow: 0 0 0 0 rgba(220, 38, 38, 0); }
}

/* ── MOBILE NAV BAR & HAMBURGER ───────────────────────────── */
.mobile-top-bar {
  display: none;
}

.mobile-nav-backdrop {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(12, 29, 53, 0.4);
  z-index: 999;
  opacity: 0;
  transition: opacity 0.3s ease;
  backdrop-filter: blur(4px);
}

.mobile-nav-backdrop.visible {
  opacity: 1;
}

@media (max-width: 960px) {
  .mobile-top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 56px;
    padding: 0 16px;
    background: #ffffff;
    border-bottom: 1.5px solid var(--line);
    position: sticky;
    top: 0;
    z-index: 99;
    width: 100%;
  }

  /* Hamburger Menu Button */
  .hamburger-btn {
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 4px;
    justify-content: center;
    align-items: center;
    width: 36px;
    height: 36px;
    z-index: 1001;
  }

  .hamburger-line {
    display: block;
    width: 20px;
    height: 2px;
    background-color: var(--ink);
    border-radius: 2px;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }

  /* Morphing hamburger lines into X when open */
  .hamburger-btn.open .hamburger-line:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }

  .hamburger-btn.open .hamburger-line:nth-child(2) {
    opacity: 0;
  }

  .hamburger-btn.open .hamburger-line:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }
}

/* ── 2FA SWITCH TOGGLE SLIDER STYLES ───────────────────────────────── */
.switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}
.switch input { 
  opacity: 0;
  width: 0;
  height: 0;
}
.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: .4s;
}
.slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: .4s;
  border-radius: 50%;
}
input:checked + .slider {
  background-color: var(--brand);
}
input:focus + .slider {
  box-shadow: 0 0 1px var(--brand);
}
input:checked + .slider:before {
  transform: translateX(20px);
}
.slider.round {
  border-radius: 24px;
}

/* ── BACKGROUND PDF UPLOAD WIDGET ────────────────────────── */
.pdf-upload-widget {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 340px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(12, 29, 53, 0.12);
  z-index: 9999;
  font-family: inherit;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.pdf-upload-header {
  padding: 12px 16px;
  background: var(--soft);
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.pdf-upload-header h4 {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
}
.pdf-upload-close-btn {
  background: transparent;
  border: none;
  color: var(--muted);
  font-size: 16px;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  transition: background 0.15s, color 0.15s;
  line-height: 1;
}
.pdf-upload-close-btn:hover {
  background: var(--line);
  color: var(--ink);
}
.pdf-upload-list {
  max-height: 240px;
  overflow-y: auto;
  padding: 8px 0;
}
.pdf-upload-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--soft);
}
.pdf-upload-item:last-child {
  border-bottom: none;
}
.pdf-upload-icon {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.pdf-upload-icon.gartner {
  background: rgba(11, 141, 243, 0.1);
  color: var(--blue);
}
.pdf-upload-icon.g2 {
  background: rgba(71, 150, 117, 0.1);
  color: var(--brand);
}
.pdf-upload-details {
  flex: 1;
  min-width: 0;
}
.pdf-upload-name {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 2px;
}
.pdf-upload-status {
  font-size: 10px;
  color: var(--muted);
  font-weight: 500;
}
.pdf-upload-status.success {
  color: var(--brand);
}
.pdf-upload-status.error {
  color: var(--red);
}
.pdf-upload-spinner {
  width: 14px;
  height: 14px;
  border: 2px solid var(--line);
  border-top-color: var(--brand);
  border-radius: 50%;
  animation: pdf-spin 0.8s linear infinite;
}
@keyframes pdf-spin {
  to { transform: rotate(360deg); }
}


