/* ========================================
   MARK ANALYST - MODERN DESIGN SYSTEM
   ======================================== */

/* --- CSS Variables & Design Tokens --- */
:root {
  /* Colors - Modern Light Theme */
  --primary-50: #f0f9ff;
  --primary-100: #e0f2fe;
  --primary-500: #0ea5e9;
  --primary-600: #0284c7;
  --primary-700: #0369a1;
  --primary-900: #0c4a6e;

  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-400: #94a3b8;
  --gray-500: #64748b;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1e293b;
  --gray-900: #0f172a;

  --success-500: #10b981;
  --warning-500: #f59e0b;
  --error-500: #ef4444;

  /* Typography */
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  /* Spacing Scale */
  --space-xs: 0.25rem;
  /* 4px */
  --space-sm: 0.5rem;
  /* 8px */
  --space-md: 1rem;
  /* 16px */
  --space-lg: 1.5rem;
  /* 24px */
  --space-xl: 2rem;
  /* 32px */
  --space-2xl: 3rem;
  /* 48px */
  --space-3xl: 4rem;
  /* 64px */

  /* Border Radius */
  --radius-sm: 0.375rem;
  /* 6px */
  --radius-md: 0.5rem;
  /* 8px */
  --radius-lg: 0.75rem;
  /* 12px */
  --radius-xl: 1rem;
  /* 16px */

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);

  /* Transitions */
  --transition-fast: 150ms ease-in-out;
  --transition-normal: 250ms ease-in-out;
  --transition-slow: 350ms ease-in-out;
}

.color-white {
  color: #FFF;
}

.green-border {
  border: 0.5px solid #04E137;
  border-radius: 13px;
}

.green-text {
  color: #31DF05;
}

.back-button {
  border-radius: 10px;
  border: 2px solid #1EC3FF;
  padding: 8px 20px;
  color: #1EC3FF;
  background-color: transparent;
  max-width: 185px;
  width: 100%;
  display: flex;
  justify-content: space-between;
}

/* --- Reset & Base Styles --- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  position: relative;
  font-family: var(--font-family);
  font-size: 1rem;
  line-height: 1.6;
  color: #FFF;
  background-color: #1F1F1F;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}


/* --- Typography --- */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: bold;
  line-height: 1.25;
  color: #FFF;
  margin-bottom: var(--space-md);
}

h1 {
  font-size: 45px;
  font-weight: 400;
}

h2 {
  font-size: 2rem;
}

h3 {
  font-size: 1.5rem;
}

h4 {
  font-size: 1.25rem;
}

h5 {
  font-size: 1.125rem;
}

h6 {
  font-size: 1rem;
}

.font-size-14 {
  font-size: 14px;
}

.font-size-16 {
  font-size: 16px;
}

.font-size-15 {
  font-size: 15px;
}

.font-weight-400 {
  font-weight: 400;
}

.font-weight-700 {
  font-weight: 700;
}

font-weight-500 {
  font-weight: 500;
}

/* Company Color Classes */
.brand_blue {
  background-color: #1C75D4 !important;
}

.magenta_pink {
  background-color: #C624B1 !important;
}

.crimson_red {
  background-color: #C62435 !important;
}

.purple_orchid {
  background-color: #9324C6 !important;
}

.indigo_violet {
  background-color: #6A3DE6 !important;
}

.teal_green {
  background-color: #12826F !important;
}

.emerald_green {
  background-color: #128224 !important;
}

.electric_blue {
  background-color: #2107E9 !important;
}

.burnt_orange {
  background-color: #BD520A !important;
}

/* Light background versions */
.brand_blue_light_background {
  background-color: rgba(28, 117, 212, 0.12);
}

.magenta_pink_light_background {
  background-color: rgba(198, 36, 177, 0.12);
}

.crimson_red_light_background {
  background-color: rgba(198, 36, 53, 0.12);
}

.purple_orchid_light_background {
  background-color: rgba(147, 36, 198, 0.12);
}

.indigo_violet_light_background {
  background-color: rgba(106, 61, 230, 0.12);
}

.teal_green_light_background {
  background-color: rgba(18, 130, 111, 0.12);
}

.emerald_green_light_background {
  background-color: rgba(18, 130, 36, 0.12);
}

.electric_blue_light_background {
  background-color: rgba(33, 7, 233, 0.12);
}

.burnt_orange_light_background {
  background-color: rgba(189, 82, 10, 0.12);
}

p {
  margin-bottom: var(--space-md);
  color: #FFF;
}

a:hover {
  text-decoration: none;
}

.general-btn {
  color: #1F1F1F;
  text-align: center;
  font-size: 13.79px;
  font-weight: 700;
  line-height: normal;
  border-radius: 48px;
  background: #1EC3FF;
  padding: 11px 40px;
  border: 1px solid #1EC3FF;
  text-decoration: none;
}

.general-btn:hover {
  background: transparent;
  color: #1EC3FF;
  text-decoration: none;
}

/*  
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}
*/




/* --- Header --- */
.site-header {
  background: #1e293b;
  border-bottom: 1px solid #334155;
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-md) var(--space-md);
}

.site-logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: #f1f5f9;
  text-decoration: none;
}

.site-logo:hover {
  color: #60a5fa;
  text-decoration: none;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.site-nav a {
  color: #cbd5e1;
  font-weight: 500;
  font-size: 0.95rem;
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.site-nav a:hover {
  color: #f1f5f9;
  background-color: #334155;
  text-decoration: none;
}

.site-nav .btn-primary {
  background-color: var(--primary-600);
  color: white;
  padding: var(--space-sm) var(--space-lg);
  border-radius: var(--radius-md);
  font-weight: 500;
}

.site-nav .btn-primary:hover {
  background-color: var(--primary-700);
  color: white;
  text-decoration: none;
}



/* --- Sidebar --- */
.site-sidebar {
  max-width: 250px;
  width: 100%;
  background: #131217;
  display: flex;
  flex-direction: column;
  gap: 115px;
}

.sidebar-bottom-wrapper {
  text-align: center;
  margin-bottom: 80px;
}

img.sidebar-logo {
  width: 100%;
  max-width: 175px;
}

.sidebar-logo-wrapper {
  text-align: center;
  display: flex;
  align-items: center;
  gap: 9px;
  justify-content: center;
  margin: 40px 0 50px;
}

.sidebar-s-logo {
  max-width: 27px;
  width: 100%;
}

img.sidebar-logo-bottom {
  max-width: 87px;
  width: 100%;
}

.sidebar-bottom-wrapper p {
  max-width: 185px;
  width: 100%;
  margin: 36px auto 0;
  color: #FFF;
  text-align: center;
  font-family: Inter;
  font-size: 12px;
  font-style: normal;
  font-weight: 400;
  line-height: 20px;
}

.sidebar-company {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 22px;
  justify-content: center;
  padding: 15px;
  border-radius: 17px;
}

.sidebar-company-icon {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  flex-shrink: 0;
}

.sidebar-company-name {
  color: #FFF;
  font-size: 18px;
  font-weight: 700;
  line-height: normal;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 30px;
  max-width: 210px;
  width: 100%;
  margin-top: 45px;
}

a.sidebar-link,
.sidebar-talk-ai-link {
  color: #FFF;
  font-family: Inter;
  font-size: 16px;
  font-style: normal;
  line-height: normal;
  padding: 10px 42px;
  border: 2px solid transparent;
  border-left: none;
  border-radius: 0 20px 20px 0;
  text-decoration: none;
  transition: all 0.25s ease;
  max-width: 100%;
  width: 100%;
}

a.sidebar-link.active,
a.sidebar-link:hover,
.sidebar-talk-ai-link:hover,
.sidebar-talk-ai-link.active {
  border-color: #04E137;
  background-color: #1B2A1E;
}


.content-card {
  padding: var(--space-2xl);
}

/* --- Bootstrap Card Dark Theme Overrides --- */
.card {
  background-color: #1e293b;
  border: 1px solid #334155;
  color: #e2e8f0;
}


.card-body {
  color: #e2e8f0;
}

.card-title,
.card-header h5 {
  color: #f1f5f9;
}

/* --- Footer --- */
.site-footer {
  color: #FFF;
  padding: var(--space-xl) 0;
  margin-top: auto;
  border-top: 4px solid;
  border-image: linear-gradient(90deg, #00E617 23.4%, #1EC3FF 60.92%) 1;
}

.site-footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-md);
}

.site-footer .container p {
  margin: 0;
}

.footer-links {
  display: flex;
  gap: var(--space-lg);
}

.footer-links a {
  color: #FFF;
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: var(--primary-500);
  text-decoration: none;
}


/* Reusable dark control style (can be applied to select, input, button, etc.) */
.ui-control-dark {
  width: 100%;
  padding: var(--space-md);
  border-radius: 13px;
  transition: all var(--transition-fast);
  color: #e2e8f0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #FFF;
  font-size: 16px;
  font-weight: 400;
  line-height: normal;
  border: 1px solid #444;
  background-color: #1E293B;

}

.ui-control-dark:focus,
.ui-control-dark:focus-visible {
  outline: none;
  border-color: #60a5fa;
  box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.2);
  background-color: #1e293b;
  color: #e2e8f0;
}

/* Reusable dark dropdown panel style */
.ui-dropdown-dark {
  border: 1px solid #475569;
  border-radius: 13px;
  background-color: #1e293b;
  color: #e2e8f0;
}

.ui-dropdown-dark .form-check-label {
  color: #e2e8f0;
}

/* form styles*/
/* --- Form Components --- */
.form-group {
  margin-bottom: var(--space-lg);
}

.form-label {
  display: block;
  font-weight: 500;
  color: #e2e8f0;
  margin-bottom: var(--space-sm);
  line-height: 1;
}

.form-control,
.form-select {
  width: 100%;
  padding: var(--space-md);
  border: 1px solid #475569;
  border-radius: var(--radius-md);
  font-size: 1rem;
  transition: all var(--transition-fast);
  background-color: #1e293b;
  color: #FFF;
}

.form-control:focus,
.form-select:focus {
  outline: none;
  border-color: #60a5fa;
  box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.2);
  background-color: #1e293b;
  color: #e2e8f0;
}

.form-control::placeholder {
  color: #94a3b8;
}

.form-select option {
  background-color: #1e293b;
  color: #e2e8f0;
}

select,
.form-select {
  appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg fill='white' height='20' viewBox='0 0 20 20' width='20' xmlns='http://www.w3.org/2000/svg'><path d='M5 7l5 5 5-5z'/></svg>");
  background-size: 16px;
  border-radius: 13px !important;
}

.form-control {
  border-radius: 13px !important;
}

/* --- Table Components --- */
.table {
  width: 100%;
  border-collapse: collapse;
  margin-top: var(--space-lg);
  background: #191122;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.table th,
.table td {
  padding: var(--space-md);
  text-align: left;
  border-bottom: 1px solid #334155;
  color: #e2e8f0;
  background-color: #191122;
  ;
}

.table th {
  background-color: #1e293b;
  font-weight: 600;
  color: #f1f5f9;
}

.table tbody tr:hover {
  background-color: #1e293b;
}

/* --- Alert Components --- */
.alert {
  padding: var(--space-md);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-lg);
  border: 1px solid;
}

.alert-success {
  background-color: #f0fdf4;
  border-color: #bbf7d0;
  color: #166534;
}

.alert-error {
  background-color: #fef2f2;
  border-color: #fecaca;
  color: #dc2626;
}

.alert-warning {
  background-color: #fffbeb;
  border-color: #fed7aa;
  color: #d97706;
}

/* --- Loading States --- */
.loading {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-2xl);
  color: #94a3b8;
}

.loading::after {
  content: '';
  width: 20px;
  height: 20px;
  border: 2px solid #475569;
  border-top: 2px solid #60a5fa;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-left: var(--space-sm);
}

/* --- Bootstrap Icons --- */
i.bi.bi-chat {
  margin-left: 10px;
}

i.bi.bi-arrow-repeat {
  margin-left: 10px;
}

.results-news-wrapper {
  margin-top: 20px;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}


/* --- Metric Cards (Dashboard) --- */
.metric-card {
  padding: var(--space-lg);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.metric-card-title {
  font-size: 15px;
  margin-bottom: 30px;
}

.metric-card-tooltip-icon {
  cursor: help;
  opacity: 0.75;
  font-size: 1rem;
}

.metric-card-tooltip-icon:hover {
  opacity: 1;
}

.metric-card-content {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  flex: 1;
}

.metric-entry {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-sm) 0;
}


.metric-info {
  flex: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.metric-company-name {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex: 1;
}

.metric-color-indicator {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}

.metric-stats-wrapper {
  display: flex;
  flex: 1;
  gap: 10px;
}


.metric-growth {
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  color: #31DF05;
}

.metric-growth.text-success {
  color: #31DF05 !important;
}

.metric-growth.text-danger {
  color: #ef4444;
}

.metric-growth i {
  font-size: 1rem;
}

.graph-social-filters {
  padding: 10px;
}





/*
.platform-filter-btn.active,
.company-filter-btn.active,
.platform-filter-btn-popular.active {
    background-color: #ffffff;
    color: #1e293b;
}*/

.platform-filter-btn.active i.bi-facebook {
  color: #1877f2;
}

.platform-filter-btn.active i.bi-instagram {
  color: #e4405f;
}

.platform-filter-btn.active i.bi-linkedin {
  color: #0077b5;
}

.platform-filter-btn i {
  font-size: 1rem;
}

/* Icon colors for inactive buttons */
.platform-filter-btn:not(.active) i.bi-facebook {
  color: #1877f2;
}

.platform-filter-btn:not(.active) i.bi-instagram {
  color: #e4405f;
}

.platform-filter-btn:not(.active) i.bi-linkedin {
  color: #0077b5;
}

/* Icon colors for nav-tabs (Bootstrap tabs) */
.nav-link i.bi-facebook,
.platform-filter-btn-popular i.bi-facebook,
.competitor-filter-btn i.bi-facebook {
  color: #1877f2;
}

.nav-link i.bi-instagram,
.platform-filter-btn-popular i.bi-instagram,
.competitor-filter-btn i.bi-instagram {
  color: #e4405f;
}

.nav-link i.bi-linkedin,
.platform-filter-btn-popular i.bi-linkedin,
.competitor-filter-btn i.bi-linkedin {
  color: #0077b5;
}

.dashboard-graphs-container {
  margin: 50px 0;
}







.json-section {
  border: 1px solid #31DF05;
  border-radius: 35px;
  margin-bottom: 20px;
}



.json-section {
  padding: 20px;
}

.json-section-title {
  color: #31DF05;
}

.json-renderer-with-sidebar {
  display: flex;
}

.json-sidebar {
  max-width: 250px;
  width: 100%;
  padding-right: 10px;
}

.json-sidebar-link {
  color: #FFF;

}

.json-sidebar-link:hover {
  color: #fff;
  text-decoration: underline;
}

.json-sidebar-nav li {
  padding: 25px 0;
  border-bottom: 1px solid #334155;
}

.json-sidebar-nav {
  list-style: none;
  padding: 0;
}

li:not(:last-child) .json-object {
  border-bottom: 1px solid #FFF;
}

/* Analysis Company Cards Styles */
.analysis-company-card {
  background-color: #1a1a1a;
  border: 1px solid #31DF05;
  border-radius: 20px;
  padding: 16px;
  min-width: 250px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.analysis-company-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  flex-shrink: 0;
}

.analysis-company-name {
  color: white;
  font-weight: 500;
  margin-bottom: 4px;
}

.analysis-company-badge {
  color: white;
  padding: 4px 12px;
  border-radius: 40px;
  font-size: 11px;
}



.hub-analysis-table .btn.btn-sm.btn-primary {
  background: #1EC3FF;
  border-color: #1EC3FF;
  border-radius: 8px;
  color: #1F1F1F;
  font-size: 13.79px;
  font-weight: 700;
  line-height: normal;
  padding: 12px 40px;
}

.page-dashboard #dashboardFilters .row {
  margin-bottom: 30px;
}

a.competitor-filter-btn,
.platform-filter-btn,
.company-filter-btn,
.platform-filter-btn-popular,
.page-dashboard #platform-link-all,
.page-social-insights #platform-link-all {
  color: #FFF;
  border-radius: 7px;
  background: #302936;
  border: 1px solid transparent;
  padding: 6px 10px;
  text-decoration: none;
}

a.competitor-filter-btn.tutti-btn,
.dashboard-graphs-container #platform-link-all,
.dashboard-graphs-container #general-company-btn-all,
.dashboard-graphs-container #facebook-company-btn-all,
.dashboard-graphs-container #instagram-company-btn-all,
.dashboard-graphs-container #linkedin-company-btn-all,
.social-activity-filters #platform-link-all {
  border-radius: 11px;
  border: 1px solid #FFF;
  text-decoration: underline;
  text-underline-offset: 2px;
  background: transparent;
  color: #FFF;
}

.page-dashboard .platform-filter-btn.active,
.page-dashboard #platform-link-all.active,
.page-social-insights #platform-link-all.active,
.page-social-insights .platform-filter-btn.active,
.page-social-insights .platform-filter-btn-popular.active,
.page-social-activity .social-filter-buttons a.competitor-filter-btn.selected,
.page-ads-insights .competitor-filter-btn.selected {
  background: #FFF;
  color: #191122;
  text-decoration: none;
}



.page-dashboard .card-header-tabs .nav-link.active,
.page-social-insights .card-header-tabs .nav-link.active {
  color: black;
  background: #FFF;
}

.page-dashboard .card-header-tabs .nav-link,
.page-social-insights .card-header-tabs .nav-link {
  color: white;
  border: 1px solid #FFF;
}

.social-page-switch {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.social-page-switch-label {
  max-width: 183px;
  width: 100%;
  font-size: 20px;
  line-height: 21px;
}

.social-page-switch-control {
  display: flex;
  align-items: center;
  padding: 2px;
  border-radius: 12px;
  border: 1px solid #444;
  background: #14131a;
  max-width: 360px;
  width: 100%;
}

.social-page-switch-btn {
  flex: 1 1 0;
  border-radius: 5px;
  padding: 6px 16px;
  text-align: center;
  color: #f3f3f9;
  text-decoration: none;
  transition: background-color .2s ease, color .2s ease;
  font-size: 18px;
  line-height: 21px;
}

.social-page-switch-btn.active {
  background-color: #1EC3FF;
  color: #0f1720;
}

ul#graphTabs {
  margin-bottom: 30px;
}

.page-hub-analysis .subtitle {
  max-width: 470px;
}

.hub-analysis-types-box {
  max-width: 460px;
  border-radius: 19px;
  width: 100%;
  padding: 20px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #1F1F1F;
}

.hub-analysis-types-box li {
  color: #FFF;
  font-family: Inter;
  font-size: 13px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
}

.hub-analysis-types-box h5 {
  color: #FFF;
  font-family: Inter;
  font-size: 16px;
  font-style: normal;
  font-weight: 700;
  line-height: normal;
}

p.page-intro {
  max-width: 540px;
}

.analysis-section-features li {
  color: #FFF;
  font-family: Inter;
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
}

p.analysis-section-description {
  margin-bottom: 0;
}

.when-to-use-box {
  padding: 27px 35px;
  border-radius: 19px;
  border: 1px solid #31DF05;
  max-width: 550px;
  margin-bottom: 60px;
  margin-top: 35px;
}

.when-to-use-box li {
  color: #FFF;
  font-family: Inter;
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
}

.analysis-section {
  padding-top: 60px;
  border-top: 1px solid #B8B8B8;
}

.analysis-section.analysis-section-one-to-one {
  border-top: unset;
}

.hub-analysis-types-box-btn {
  background-color: #1EC3FF;
  border-radius: 10px;
  color: #1F1F1F;
  font-weight: 700;
  line-height: normal;
  padding: 10px 24px;
  border: 1px solid #1EC3FF
}

.hub-analysis-types-box-btn:hover {
  background-color: transparent;
  color: #1EC3FF;
  border: 1px solid #1EC3FF;
}

.hub-analysis-table .badge-competitor {
  padding: 7px 10px;
  font-size: 9.174px;
  line-height: normal;
}

/* Form styles */
.general-input {
  border: 1px solid #04E137;
  background: #FFF;
  border-radius: 0;
  padding: 13px 30px;
  color: #1F1F1F;
  max-width: 100%;
  width: 100%;
}

/* Login page styles */
.login-page,
.forgot-password-form,
.reset-password-form {
  max-width: 570px;
  margin: 0 auto;
  padding: 80px 0;
}

.login-page-logos {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 350px;
  width: 100%;
  margin: 0 auto;
}

.login-page-favicon {
  max-width: 45px;
  width: 100%;
}

.login-page-logo {
  max-width: 288px;
  width: 100%;
}

.login-page-heading {
  text-align: center;
  font-size: 45px;
  font-weight: 400;
  line-height: normal;
  margin: 55px auto;
}

.login-page-subheading {
  text-align: center;
  font-size: 25px;
  font-weight: 700;
  line-height: normal;
}

.login-page-form {
  max-width: 380px;
  width: 100%;
  margin: 0 auto;
}

.login-page-forgot-link {
  color: #1EC3FF;
  font-size: 12px;
  text-decoration: underline;
}

.login-page-remember-label span {
  font-size: 12px;
}

.login-page-remember-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 145px;
  width: 100%;
}

.login-page-remember-row {
  display: flex;
  justify-content: space-between;
  margin-top: 7px;
}

.login-submit-button,
.forgot-password-submit-button {
  text-align: center;
  margin-top: 35px;
}

.dashboard-ai-summary {
  padding: 20px;
}

.ai-summary-content {
  max-width: 85%;
  width: 100%;
}

.ai-summary-title {
  margin-bottom: 10px;
}

a#aiSummaryToggle {
  max-width: 90px;
  width: 100%;
}

.dashboard-metrics-cards {
  margin: 35px 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px 10px;
}

.dashboard-metrics-cards .single-card-wrapper {
  flex: 0 0 auto;
  width: 32%;
}

.list-grid-toggle button {
  border: 0;
  color: #939393;
  font-size: 25px;
  background: transparent !important;
  padding: 0;
}

.list-grid-toggle button.active {
  color: #FFF;
}

.list-grid-toggle .btn-group {
  gap: 10px;
}

/* ═══════════════════════════════════════════════════════════════
   STRATEEGO V2 — Light theme design system
   Scoped under body.strateego-v2 to avoid breaking old dark pages
   ═══════════════════════════════════════════════════════════════ */

body.strateego-v2 {
  --bg: #f5f5f3;
  --surface: #ffffff;
  --border: rgba(0, 0, 0, 0.08);
  --border-med: rgba(0, 0, 0, 0.12);
  --text: #1a1a1a;
  --muted: #666666;
  --faint: #aaaaaa;
  --co-crt: #7c5cfc;
  --co-csp: #3b82f6;
  --co-car: #0891b2;
  --co-crc: #16a34a;
  --danger: #dc2626;
  --warning: #d97706;
  --success: #16a34a;
  --gradient: linear-gradient(90deg, #7c5cfc, #00c896);

  background: var(--bg);
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  display: flex;
  min-height: 100vh;
}

/* ── LAYOUT ── */
body.strateego-v2 .sv2-wrapper {
  display: flex;
  min-height: 100vh;
  width: 100%;
}

body.strateego-v2 .sv2-main {
  flex: 1;
  min-width: 0;
  padding: 1.5rem 1.75rem 3rem;
}

/* ── SIDEBAR overrides for v2 ── */
body.strateego-v2 .site-sidebar {
  width: 220px;
  max-width: 220px;
  min-width: 220px;
  background: #ffffff;
  border-right: 0.5px solid rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  padding: 0;
  gap: 0;
}

body.strateego-v2 .sb-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 1.25rem 1.25rem 1rem;
  border-bottom: 0.5px solid rgba(0, 0, 0, 0.06);
}

body.strateego-v2 .sb-brand-mark {
  width: 28px;
  height: 28px;
  background: var(--gradient);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

body.strateego-v2 .sb-brand-mark svg {
  width: 14px;
  height: 14px;
  fill: #fff;
}

body.strateego-v2 .sb-brand-name {
  font-size: 14px;
  font-weight: 600;
  color: #1a1a1a;
  letter-spacing: -0.02em;
}

body.strateego-v2 .sb-brand-name span {
  color: var(--co-crt);
}

body.strateego-v2 .sb-client {
  margin: 12px 10px 4px;
  background: #f5f3ff;
  border-radius: 8px;
  padding: 8px 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

body.strateego-v2 .sb-client-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--co-crt);
  flex-shrink: 0;
}

body.strateego-v2 .sb-client-name {
  font-size: 12px;
  font-weight: 500;
  color: #5b21b6;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

body.strateego-v2 .sb-section {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #bbb;
  padding: 14px 14px 5px;
}

body.strateego-v2 .sb-nav {
  list-style: none;
  padding: 0 8px;
  margin: 0;
}

body.strateego-v2 .sb-nav li {
  margin-bottom: 2px;
}

body.strateego-v2 .sb-nav a,
body.strateego-v2 .sb-nav button.sb-nav-link {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 10px;
  border-radius: 7px;
  font-size: 13px;
  color: #555;
  text-decoration: none;
  transition: background .15s, color .15s;
  width: 100%;
  text-align: left;
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
}

body.strateego-v2 .sb-nav a:hover,
body.strateego-v2 .sb-nav button.sb-nav-link:hover {
  background: #f5f5f3;
  color: #1a1a1a;
}

body.strateego-v2 .sb-nav a.active,
body.strateego-v2 .sb-nav button.sb-nav-link.active {
  background: #f5f3ff;
  color: var(--co-crt);
  font-weight: 500;
}

body.strateego-v2 .sb-nav .nav-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  opacity: 0.5;
}

body.strateego-v2 .sb-nav a.active .nav-icon,
body.strateego-v2 .sb-nav button.sb-nav-link.active .nav-icon {
  opacity: 1;
}

body.strateego-v2 .sb-footer {
  margin-top: auto;
  padding: 14px;
  border-top: 0.5px solid rgba(0, 0, 0, 0.06);
}

body.strateego-v2 .sb-footer p {
  font-size: 10px;
  color: #ccc;
  line-height: 1.6;
  margin: 0;
}

/* ── TOPBAR / PILLS ── */
body.strateego-v2 .sv2-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 1.25rem;
  border-bottom: 0.5px solid rgba(0, 0, 0, 0.08);
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 10px;
}

body.strateego-v2 .sv2-page-title {
  font-size: 16px;
  font-weight: 600;
  color: #1a1a1a;
}

body.strateego-v2 .sv2-page-title span {
  font-size: 13px;
  font-weight: 400;
  color: #aaa;
  margin-left: 6px;
}

body.strateego-v2 .sv2-pills {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  align-items: center;
}

body.strateego-v2 .sv2-pill {
  font-size: 12px;
  padding: 4px 11px;
  border-radius: 20px;
  border: 0.5px solid rgba(0, 0, 0, 0.12);
  background: #fff;
  color: #666;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  font-family: inherit;
}

body.strateego-v2 .sv2-pill:hover {
  background: #f0f0f0;
  color: #1a1a1a;
}

body.strateego-v2 .sv2-pill.active {
  background: #f0f0f0;
  color: #1a1a1a;
  border-color: rgba(0, 0, 0, 0.22);
  font-weight: 500;
}

/* ── SECTION LABELS ── */
body.strateego-v2 .sv2-sec {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #aaa;
  margin: 1.5rem 0 .7rem;
}

body.strateego-v2 .sv2-sec-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 1.5rem 0 .7rem;
}

body.strateego-v2 .sv2-sec-row .sv2-sec {
  margin: 0;
}

body.strateego-v2 .sv2-sec-btn {
  font-size: 11px;
  color: var(--co-crt);
  font-weight: 500;
  cursor: pointer;
  padding: 4px 10px;
  border-radius: 12px;
  border: 0.5px solid rgba(124, 92, 252, .25);
  background: rgba(124, 92, 252, .05);
  white-space: nowrap;
  text-decoration: none;
  display: inline-block;
}

body.strateego-v2 .sv2-sec-btn:hover {
  background: rgba(124, 92, 252, .1);
}

/* ── AI SUMMARY BOX ── */
body.strateego-v2 .sv2-ai-box {
  background: #ffffff;
  border: 0.5px solid rgba(0, 0, 0, 0.08);
  border-left: 3px solid var(--co-crt);
  border-radius: 0 10px 10px 0;
  padding: 12px 16px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 1.5rem;
}

body.strateego-v2 .sv2-ai-lbl {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--co-crt);
  white-space: nowrap;
  padding-top: 2px;
  flex-shrink: 0;
}

body.strateego-v2 .sv2-ai-txt {
  font-size: 13px;
  color: #555;
  line-height: 1.65;
  flex: 1;
}

body.strateego-v2 .sv2-ai-txt strong {
  color: #1a1a1a;
  font-weight: 600;
}

body.strateego-v2 .sv2-ai-read-more {
  font-size: 12px;
  color: var(--co-crt);
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  padding-top: 2px;
  background: none;
  border: none;
  font-family: inherit;
  flex-shrink: 0;
}

body.strateego-v2 .sv2-ai-read-more:hover {
  text-decoration: underline;
}

/* ── COMPANY COLOR SYSTEM ── */
body.strateego-v2 .co-crt {
  color: var(--co-crt);
}

body.strateego-v2 .co-csp {
  color: var(--co-csp);
}

body.strateego-v2 .co-car {
  color: var(--co-car);
}

body.strateego-v2 .co-crc {
  color: var(--co-crc);
}

body.strateego-v2 .bg-crt {
  background: var(--co-crt);
}

body.strateego-v2 .bg-csp {
  background: var(--co-csp);
}

body.strateego-v2 .bg-car {
  background: var(--co-car);
}

body.strateego-v2 .bg-crc {
  background: var(--co-crc);
}

/* ── DELTA TRIANGLES ── */
body.strateego-v2 .sv2-tu {
  width: 0;
  height: 0;
  border-left: 3px solid transparent;
  border-right: 3px solid transparent;
  border-bottom: 5px solid #16a34a;
  display: inline-block;
}

body.strateego-v2 .sv2-td {
  width: 0;
  height: 0;
  border-left: 3px solid transparent;
  border-right: 3px solid transparent;
  border-top: 5px solid #dc2626;
  display: inline-block;
}

body.strateego-v2 .sv2-cu {
  color: #16a34a;
}

body.strateego-v2 .sv2-cd {
  color: #dc2626;
}

/* ── CI CARDS ── */
body.strateego-v2 .sv2-ci-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 10px;
}

body.strateego-v2 .sv2-ci-card {
  background: #fff;
  border: 0.5px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  padding: .9rem;
  position: relative;
}

body.strateego-v2 .sv2-ci-card.own {
  border-width: 1.5px;
}

body.strateego-v2 .sv2-ci-name {
  font-size: 11px;
  color: #999;
  margin-bottom: 5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

body.strateego-v2 .sv2-ci-score {
  font-size: 30px;
  font-weight: 500;
  line-height: 1;
  margin-bottom: 5px;
  color: #1a1a1a;
}

body.strateego-v2 .sv2-ci-bar-bg {
  height: 3px;
  background: rgba(0, 0, 0, 0.07);
  border-radius: 2px;
  margin-bottom: 7px;
}

body.strateego-v2 .sv2-ci-bar {
  height: 3px;
  border-radius: 2px;
}

body.strateego-v2 .sv2-ci-delta {
  font-size: 11px;
  display: flex;
  align-items: center;
  gap: 4px;
}

body.strateego-v2 .sv2-own-badge {
  position: absolute;
  top: 7px;
  right: 7px;
  font-size: 9px;
  font-weight: 600;
  padding: 2px 5px;
  border-radius: 3px;
  background: #ede9fe;
  color: #5b21b6;
}

/* ── CHART CARD ── */
body.strateego-v2 .sv2-chart-card {
  background: #fff;
  border: 0.5px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  padding: 1rem 1.125rem;
}

body.strateego-v2 .sv2-chart-title {
  font-size: 13px;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 2px;
}

body.strateego-v2 .sv2-chart-sub {
  font-size: 11px;
  color: #aaa;
  margin-bottom: .8rem;
}

body.strateego-v2 .sv2-leg-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 10px;
}

body.strateego-v2 .sv2-leg {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: #666;
  cursor: pointer;
  user-select: none;
}

body.strateego-v2 .sv2-leg.dim {
  opacity: .3;
}

body.strateego-v2 .sv2-leg-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

body.strateego-v2 .sv2-chart-wrap {
  position: relative;
  width: 100%;
  height: 220px;
}

/* ── METRICS GRID ── */
body.strateego-v2 .sv2-metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
}

body.strateego-v2 .sv2-mc {
  background: #fff;
  border: 0.5px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  padding: .9rem 1rem;
}

body.strateego-v2 .sv2-mc-label {
  font-size: 11px;
  color: #aaa;
  margin-bottom: 5px;
}

body.strateego-v2 .sv2-mc-val {
  font-size: 22px;
  font-weight: 500;
  line-height: 1;
  color: var(--co-crt);
}

body.strateego-v2 .sv2-mc-delta {
  font-size: 11px;
  display: flex;
  align-items: center;
  gap: 3px;
  margin-bottom: 9px;
}

body.strateego-v2 .sv2-mc-divider {
  height: .5px;
  background: rgba(0, 0, 0, 0.07);
  margin-bottom: 8px;
}

body.strateego-v2 .sv2-mc-comp-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 3px;
}

body.strateego-v2 .sv2-mc-comp-name {
  font-size: 11px;
  color: #aaa;
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: flex;
  align-items: center;
  gap: 5px;
}

body.strateego-v2 .sv2-mc-comp-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

body.strateego-v2 .sv2-mc-comp-val {
  font-size: 12px;
  font-weight: 500;
  color: #555;
  flex-shrink: 0;
}

body.strateego-v2 .sv2-mc-bar-bg {
  height: 3px;
  background: rgba(0, 0, 0, 0.05);
  border-radius: 2px;
  margin-bottom: 5px;
}

body.strateego-v2 .sv2-mc-bar {
  height: 3px;
  border-radius: 2px;
}

/* ── TWO COLUMN ── */
body.strateego-v2 .sv2-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 13px;
}

@media (max-width: 700px) {
  body.strateego-v2 .sv2-two-col {
    grid-template-columns: 1fr;
  }
}

/* ── INSIGHT CARDS ── */
body.strateego-v2 .sv2-ins-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 11px;
}

body.strateego-v2 .sv2-ic {
  background: #fff;
  border: 0.5px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  padding: .9rem 1rem;
}

body.strateego-v2 .sv2-ic.al {
  border-left: 3px solid #dc2626;
  border-radius: 0 12px 12px 0;
}

body.strateego-v2 .sv2-ic.wa {
  border-left: 3px solid #d97706;
  border-radius: 0 12px 12px 0;
}

body.strateego-v2 .sv2-ic.op {
  border-left: 3px solid #16a34a;
  border-radius: 0 12px 12px 0;
}

body.strateego-v2 .sv2-ic.ac {
  border-left: 3px solid var(--co-crt);
  border-radius: 0 12px 12px 0;
}

body.strateego-v2 .sv2-itag {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 5px;
}

body.strateego-v2 .sv2-itag.al {
  color: #dc2626;
}

body.strateego-v2 .sv2-itag.wa {
  color: #d97706;
}

body.strateego-v2 .sv2-itag.op {
  color: #16a34a;
}

body.strateego-v2 .sv2-itag.ac {
  color: var(--co-crt);
}

body.strateego-v2 .sv2-itag-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  flex-shrink: 0;
}

body.strateego-v2 .sv2-itit {
  font-size: 13px;
  font-weight: 500;
  color: #1a1a1a;
  line-height: 1.4;
  margin-bottom: 7px;
}

body.strateego-v2 .sv2-iprev {
  font-size: 12px;
  color: #666;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

body.strateego-v2 .sv2-ifull {
  font-size: 12px;
  color: #666;
  line-height: 1.6;
  display: none;
}

body.strateego-v2 .sv2-rm {
  font-size: 11px;
  color: var(--co-crt);
  cursor: pointer;
  margin-top: 6px;
  display: inline-block;
  font-weight: 500;
  background: none;
  border: none;
  padding: 0;
  font-family: inherit;
}

body.strateego-v2 .sv2-rm:hover {
  text-decoration: underline;
}

/* ── POST CARDS ── */
body.strateego-v2 .sv2-posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 11px;
}

body.strateego-v2 .sv2-post-card {
  background: #fff;
  border: 0.5px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  padding: .9rem;
  position: relative;
  overflow: hidden;
}

body.strateego-v2 .sv2-post-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
}

body.strateego-v2 .sv2-post-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

body.strateego-v2 .sv2-post-plat {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: #aaa;
}

body.strateego-v2 .sv2-plat-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

body.strateego-v2 .sv2-plat-dot.fb {
  background: #1877f2;
}

body.strateego-v2 .sv2-plat-dot.ig {
  background: #e1306c;
}

body.strateego-v2 .sv2-plat-dot.li {
  background: #0a66c2;
}

body.strateego-v2 .sv2-plat-dot.yt {
  background: #ff0000;
}

body.strateego-v2 .sv2-eng-badge {
  font-size: 11px;
  font-weight: 500;
  padding: 2px 8px;
  border-radius: 12px;
  background: #f5f5f3;
  color: #555;
}

body.strateego-v2 .sv2-post-co {
  font-size: 12px;
  font-weight: 500;
  margin-bottom: 7px;
  display: flex;
  align-items: center;
  gap: 6px;
}

body.strateego-v2 .sv2-post-co-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

body.strateego-v2 .sv2-post-txt {
  font-size: 12px;
  color: #666;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

body.strateego-v2 .sv2-post-date {
  font-size: 11px;
  color: #ccc;
  margin-top: 8px;
}

body.strateego-v2 .sv2-post-link {
  font-size: 11px;
  color: var(--co-crt);
  text-decoration: none;
  display: inline-block;
  margin-top: 8px;
}

body.strateego-v2 .sv2-post-link:hover {
  text-decoration: underline;
}

/* ── POST LIST VIEW ── */
body.strateego-v2 .sv2-posts-list {
  background: #fff;
  border: 0.5px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  overflow: hidden;
}

body.strateego-v2 .sv2-post-row {
  display: grid;
  grid-template-columns: 2fr 1fr 3fr 1fr 1fr;
  gap: 12px;
  padding: 10px 14px;
  align-items: center;
  border-bottom: 0.5px solid rgba(0, 0, 0, 0.05);
  font-size: 12px;
}

body.strateego-v2 .sv2-post-row:last-child {
  border-bottom: none;
}

body.strateego-v2 .sv2-post-row-header {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #aaa;
  background: #fafafa;
  border-bottom: 0.5px solid rgba(0, 0, 0, 0.07);
}

body.strateego-v2 .sv2-post-row-co {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
}

body.strateego-v2 .sv2-post-row-co-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

body.strateego-v2 .sv2-post-row-plat {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #666;
}

body.strateego-v2 .sv2-post-row-preview {
  color: #666;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

body.strateego-v2 .sv2-post-row-eng {
  font-weight: 500;
  color: #1a1a1a;
  text-align: right;
}

body.strateego-v2 .sv2-post-row-date {
  color: #aaa;
  text-align: right;
}

/* ── PAGINATOR ── */
body.strateego-v2 .sv2-paginator {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-top: 0.5px solid rgba(0, 0, 0, 0.08);
  font-size: 12px;
  color: #aaa;
}

body.strateego-v2 .sv2-pag-btns {
  display: flex;
  gap: 4px;
}

body.strateego-v2 .sv2-pag-btn {
  width: 30px;
  height: 30px;
  border-radius: 7px;
  border: 0.5px solid rgba(0, 0, 0, 0.12);
  background: #fff;
  font-size: 12px;
  color: #666;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
}

body.strateego-v2 .sv2-pag-btn.active {
  background: #f5f3ff;
  color: var(--co-crt);
  border-color: rgba(124, 92, 252, .3);
  font-weight: 600;
}

body.strateego-v2 .sv2-pag-btn:hover:not(.active) {
  background: #f5f5f3;
}

/* ── TABS BAR ── */
body.strateego-v2 .sv2-tabs-bar {
  display: flex;
  gap: 2px;
  margin-bottom: 1.5rem;
  border-bottom: 0.5px solid rgba(0, 0, 0, 0.08);
}

body.strateego-v2 .sv2-tab {
  font-size: 13px;
  font-weight: 500;
  color: #999;
  padding: 8px 14px;
  cursor: pointer;
  border: none;
  background: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  font-family: inherit;
  transition: color .15s;
}

body.strateego-v2 .sv2-tab:hover {
  color: #555;
}

body.strateego-v2 .sv2-tab.active {
  color: var(--co-crt);
  border-bottom-color: var(--co-crt);
}

body.strateego-v2 .sv2-tab-pane {
  display: none;
}

body.strateego-v2 .sv2-tab-pane.active {
  display: block;
}

/* ── SNAP TABLE ── */
body.strateego-v2 .sv2-snap-wrap {
  background: #fff;
  border: 0.5px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 1rem;
}

body.strateego-v2 .sv2-snap-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

body.strateego-v2 .sv2-snap-table th,
body.strateego-v2 .sv2-snap-table td {
  padding: 9px 12px;
  text-align: left;
  border-bottom: 0.5px solid rgba(0, 0, 0, 0.05);
  vertical-align: middle;
}

body.strateego-v2 .sv2-snap-table tr:last-child td {
  border-bottom: none;
}

body.strateego-v2 .sv2-snap-th {
  font-size: 11px;
  font-weight: 500;
  color: #aaa;
  background: #fafafa;
  border-bottom: 0.5px solid rgba(0, 0, 0, 0.07) !important;
}

body.strateego-v2 .sv2-snap-th.own-th {
  background: #f5f3ff;
  color: var(--co-crt);
  border-top: 2px solid var(--co-crt);
}

body.strateego-v2 .sv2-snap-label {
  font-size: 12px;
  color: #666;
  background: #fafafa;
}

body.strateego-v2 .sv2-snap-val {
  font-size: 14px;
  font-weight: 600;
}

body.strateego-v2 .sv2-snap-td.own-col {
  background: #faf9ff;
}

body.strateego-v2 .sv2-snap-delta {
  font-size: 10px;
  display: flex;
  align-items: center;
  gap: 3px;
  margin-top: 2px;
}

/* ── METRIC TABS (chart selector) ── */
body.strateego-v2 .sv2-metric-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

body.strateego-v2 .sv2-mtab {
  font-size: 12px;
  padding: 4px 11px;
  border-radius: 20px;
  border: 0.5px solid rgba(0, 0, 0, 0.12);
  background: #fff;
  color: #666;
  cursor: pointer;
  font-family: inherit;
  transition: all .15s;
}

body.strateego-v2 .sv2-mtab.active {
  background: #f5f3ff;
  color: var(--co-crt);
  border-color: rgba(124, 92, 252, .3);
  font-weight: 500;
}

/* ── ADS CARDS ── */
body.strateego-v2 .sv2-ads-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 11px;
}

body.strateego-v2 .sv2-ad-card {
  background: #fff;
  border: 0.5px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  padding: .9rem;
  position: relative;
  overflow: hidden;
}

body.strateego-v2 .sv2-ad-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
}

body.strateego-v2 .sv2-adp {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 5px;
  margin-bottom: 10px;
}

body.strateego-v2 .sv2-adp.g {
  background: rgba(66, 133, 244, .1);
  color: #4285f4;
  border: .5px solid rgba(66, 133, 244, .2);
}

body.strateego-v2 .sv2-adp.m {
  background: rgba(24, 119, 242, .1);
  color: #1877f2;
  border: .5px solid rgba(24, 119, 242, .2);
}

body.strateego-v2 .sv2-adco {
  font-size: 11px;
  color: #aaa;
  margin-bottom: 5px;
  display: flex;
  align-items: center;
  gap: 5px;
}

body.strateego-v2 .sv2-adco-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

body.strateego-v2 .sv2-adtit {
  font-size: 13px;
  font-weight: 500;
  color: #1a1a1a;
  line-height: 1.4;
  margin-bottom: 6px;
}

body.strateego-v2 .sv2-adbod {
  font-size: 12px;
  color: #666;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

body.strateego-v2 .sv2-addates {
  display: flex;
  gap: 14px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: .5px solid rgba(0, 0, 0, 0.06);
}

body.strateego-v2 .sv2-addl {
  font-size: 11px;
  color: #aaa;
}

body.strateego-v2 .sv2-addl span {
  display: block;
  color: #1a1a1a;
  font-size: 12px;
  font-weight: 500;
}

/* ── GAP ANALYSIS ── */
body.strateego-v2 .sv2-gap-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 9px;
}
body.strateego-v2 .sv2-gl {
  font-size: 12px;
  color: #666;
  width: 100px;
  flex-shrink: 0;
}
body.strateego-v2 .sv2-gb {
  flex: 1;
  display: flex;
  gap: 3px;
  align-items: center;
}
body.strateego-v2 .sv2-gbar {
  height: 7px;
  border-radius: 2px;
  min-width: 3px;
}
body.strateego-v2 .sv2-gs {
  font-size: 11px;
  color: #aaa;
  width: 28px;
  text-align: right;
  flex-shrink: 0;
}

/* ── MOMENTUM BADGES ── */
body.strateego-v2 .sv2-mr {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 0;
  border-bottom: 0.5px solid rgba(0, 0, 0, 0.05);
  gap: 7px;
  flex-wrap: wrap;
}
body.strateego-v2 .sv2-mr:last-child {
  border-bottom: none;
}
body.strateego-v2 .sv2-mr-co {
  font-size: 12px;
  color: #1a1a1a;
  display: flex;
  align-items: center;
  gap: 6px;
}
body.strateego-v2 .sv2-mr-co-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
body.strateego-v2 .sv2-mbs {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}
body.strateego-v2 .sv2-b {
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 500;
}
body.strateego-v2 .sv2-bu { background: #dcfce7; color: #15803d; }
body.strateego-v2 .sv2-bd { background: #fee2e2; color: #b91c1c; }
body.strateego-v2 .sv2-bn { background: #f3f4f6; color: #666; }

/* ── CHART TOOLTIP ── */
body.strateego-v2 .sv2-ttbox {
  position: absolute;
  background: #fff;
  border: 0.5px solid rgba(0, 0, 0, 0.14);
  border-radius: 10px;
  padding: 10px 13px;
  font-size: 12px;
  min-width: 160px;
  pointer-events: none;
  opacity: 0;
  transition: opacity .15s;
  z-index: 10;
  box-shadow: 0 4px 16px rgba(0, 0, 0, .1);
}
body.strateego-v2 .sv2-ttbox.show { opacity: 1; }
body.strateego-v2 .sv2-tt-co { font-size: 10px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; margin-bottom: 3px; }
body.strateego-v2 .sv2-tt-dt { font-size: 11px; color: #aaa; margin-bottom: 5px; }
body.strateego-v2 .sv2-tt-sc { font-size: 22px; font-weight: 500; line-height: 1; margin-bottom: 6px; }
body.strateego-v2 .sv2-tt-bg { display: inline-flex; align-items: center; gap: 3px; font-size: 11px; padding: 2px 7px; border-radius: 4px; font-weight: 500; }
body.strateego-v2 .sv2-tt-bg.up { background: #dcfce7; color: #15803d; }
body.strateego-v2 .sv2-tt-bg.dn { background: #fee2e2; color: #b91c1c; }
body.strateego-v2 .sv2-tt-bg.ne { background: #f3f4f6; color: #666; }

/* ── ADS EMPTY CARD ── */
body.strateego-v2 .sv2-ad-card--empty {
  border-color: rgba(220, 38, 38, .2);
  background: rgba(220, 38, 38, .02);
}
body.strateego-v2 .sv2-adp--alert {
  background: rgba(220, 38, 38, .08);
  color: #dc2626;
  border: .5px solid rgba(220, 38, 38, .2);
}

/* ── REVIEWS / REPUTATION ── */
body.strateego-v2 .sv2-reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(215px, 1fr));
  gap: 11px;
}

body.strateego-v2 .sv2-rev-card {
  background: #fff;
  border: 0.5px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  padding: .9rem;
  border-top-width: 3px;
}

body.strateego-v2 .sv2-rev-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 6px;
  gap: 8px;
}

body.strateego-v2 .sv2-rev-co {
  font-size: 12px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 5px;
}

body.strateego-v2 .sv2-rev-co-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

body.strateego-v2 .sv2-rev-date {
  font-size: 11px;
  color: #aaa;
  white-space: nowrap;
}

body.strateego-v2 .sv2-rev-author {
  font-size: 11px;
  color: #aaa;
  margin-bottom: 5px;
}

body.strateego-v2 .sv2-rev-stars {
  font-size: 12px;
  letter-spacing: 1px;
  margin-bottom: 6px;
  color: #f59e0b;
}

body.strateego-v2 .sv2-rev-txt {
  font-size: 12px;
  color: #666;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

body.strateego-v2 .sv2-sent {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 4px;
  margin-top: 7px;
}

body.strateego-v2 .sv2-sent.pos {
  background: #dcfce7;
  color: #15803d;
}

body.strateego-v2 .sv2-sent.neg {
  background: #fee2e2;
  color: #b91c1c;
}

body.strateego-v2 .sv2-sent.neu {
  background: #f3f4f6;
  color: #666;
}

/* ── KPI CARDS (Reputation) ── */
body.strateego-v2 .sv2-kpi-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
  margin-bottom: 1rem;
}

body.strateego-v2 .sv2-kpi-card {
  background: #fff;
  border: 0.5px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  padding: .9rem 1rem;
  border-top-width: 3px;
  position: relative;
}

body.strateego-v2 .sv2-kpi-card.own {
  background: #faf9ff;
}

body.strateego-v2 .sv2-kpi-label {
  font-size: 11px;
  color: #aaa;
  margin-bottom: 4px;
}

body.strateego-v2 .sv2-kpi-score {
  font-size: 28px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.02em;
  margin-bottom: 4px;
}

body.strateego-v2 .sv2-kpi-stars {
  font-size: 14px;
  letter-spacing: 1px;
  color: #f59e0b;
  margin-bottom: 6px;
}

body.strateego-v2 .sv2-kpi-reviews {
  font-size: 12px;
  color: #666;
  margin-bottom: 6px;
}

body.strateego-v2 .sv2-kpi-delta {
  font-size: 11px;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ── REPUTATION TABLE ── */
body.strateego-v2 .sv2-rep-table-wrap {
  background: #fff;
  border: 0.5px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  overflow: hidden;
}

body.strateego-v2 .sv2-rep-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

body.strateego-v2 .sv2-rep-table th {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #aaa;
  background: #fafafa;
  padding: 9px 12px;
  border-bottom: 0.5px solid rgba(0, 0, 0, 0.07);
  text-align: left;
}

body.strateego-v2 .sv2-rep-table td {
  padding: 9px 12px;
  border-bottom: 0.5px solid rgba(0, 0, 0, 0.05);
  color: #555;
  vertical-align: middle;
}

body.strateego-v2 .sv2-rep-table tr:last-child td {
  border-bottom: none;
}

body.strateego-v2 .sv2-rep-table .sv2-rev-co {
  font-size: 12px;
  font-weight: 500;
}

/* ── FILTER CONTROLS ── */
body.strateego-v2 .sv2-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 1rem;
  align-items: center;
}

body.strateego-v2 .sv2-filter-select {
  font-size: 12px;
  padding: 5px 10px;
  border-radius: 8px;
  border: 0.5px solid rgba(0, 0, 0, 0.12);
  background: #fff;
  color: #555;
  cursor: pointer;
  font-family: inherit;
  outline: none;
}

body.strateego-v2 .sv2-filter-select:focus {
  border-color: rgba(124, 92, 252, .4);
}

/* ── GRID/LIST TOGGLE ── */
body.strateego-v2 .sv2-view-toggle {
  display: flex;
  gap: 4px;
}

body.strateego-v2 .sv2-view-toggle button {
  width: 30px;
  height: 30px;
  border-radius: 7px;
  border: 0.5px solid rgba(0, 0, 0, 0.12);
  background: #fff;
  color: #aaa;
  cursor: pointer;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

body.strateego-v2 .sv2-view-toggle button.active {
  background: #f5f3ff;
  color: var(--co-crt);
  border-color: rgba(124, 92, 252, .3);
}

/* ── DISTRIBUTION BARS ── */
body.strateego-v2 .sv2-dist-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 9px;
}

body.strateego-v2 .sv2-dist-label {
  font-size: 12px;
  color: #666;
  width: 100px;
  flex-shrink: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

body.strateego-v2 .sv2-dist-bar-bg {
  flex: 1;
  height: 7px;
  background: rgba(0, 0, 0, 0.05);
  border-radius: 2px;
}

body.strateego-v2 .sv2-dist-bar {
  height: 7px;
  border-radius: 2px;
}

body.strateego-v2 .sv2-dist-val {
  font-size: 11px;
  color: #aaa;
  width: 26px;
  text-align: right;
  flex-shrink: 0;
}

/* ── STAR BREAKDOWN ── */
body.strateego-v2 .sv2-star-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 7px;
}

body.strateego-v2 .sv2-star-label {
  font-size: 12px;
  color: #f59e0b;
  width: 22px;
  flex-shrink: 0;
}

body.strateego-v2 .sv2-star-bar-bg {
  flex: 1;
  height: 6px;
  background: rgba(0, 0, 0, 0.05);
  border-radius: 2px;
}

body.strateego-v2 .sv2-star-bar {
  height: 6px;
  border-radius: 2px;
  background: #f59e0b;
}

body.strateego-v2 .sv2-star-count {
  font-size: 11px;
  color: #aaa;
  width: 26px;
  text-align: right;
  flex-shrink: 0;
}

/* ── EMPTY STATE ── */
body.strateego-v2 .sv2-empty {
  text-align: center;
  padding: 2.5rem 1rem;
  color: #aaa;
  font-size: 13px;
}

/* ── PLATFORM BUTTONS ── */
body.strateego-v2 .sv2-plat-btn {
  font-size: 12px;
  padding: 4px 11px;
  border-radius: 20px;
  border: 0.5px solid rgba(0, 0, 0, 0.12);
  background: #fff;
  color: #666;
  cursor: pointer;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

body.strateego-v2 .sv2-plat-btn.active {
  background: #f5f3ff;
  color: var(--co-crt);
  border-color: rgba(124, 92, 252, .3);
}

body.strateego-v2 .sv2-plat-btn.disabled {
  opacity: .4;
  cursor: not-allowed;
}

body.strateego-v2 .sv2-plat-dot-g {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4285f4;
  flex-shrink: 0;
}

body.strateego-v2 .sv2-coming-soon {
  font-size: 9px;
  background: #f3f4f6;
  color: #aaa;
  padding: 1px 5px;
  border-radius: 3px;
  margin-left: 2px;
}
/* ── CHART CARD HEADER (title+subtitle left, metric tabs right) ── */
body.strateego-v2 .sv2-cc-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: .75rem;
}
body.strateego-v2 .sv2-cc-header .sv2-metric-tabs {
  margin-bottom: 0;
}

/* ── SNAPSHOT ROW DOTS ── */
body.strateego-v2 .sv2-snap-label-inner {
  display: flex;
  align-items: center;
  gap: 7px;
}
body.strateego-v2 .sv2-snap-row-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* ── ACTIVITY CONTROLS ── */
body.strateego-v2 .sv2-activity-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  flex-wrap: wrap;
  gap: 8px;
}
body.strateego-v2 .sv2-activity-filters {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  align-items: center;
}

/* ── IMAGE PLACEHOLDER (activity cards) ── */
body.strateego-v2 .sv2-img-placeholder {
  width: 100%;
  border-radius: 8px;
  background: #f5f5f3;
  border: 0.5px solid rgba(0,0,0,0.07);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
  overflow: hidden;
  flex-shrink: 0;
  color: rgba(0,0,0,0.18);
}
body.strateego-v2 .sv2-img-placeholder svg { opacity: .35; }
body.strateego-v2 .sv2-img-placeholder.ratio-11  { aspect-ratio: 1 / 1; }
body.strateego-v2 .sv2-img-placeholder.ratio-191 { aspect-ratio: 1.91 / 1; }
body.strateego-v2 .sv2-img-placeholder.ratio-169 { aspect-ratio: 16 / 9; }

/* ── ADS ACTIVITY: img placeholder text ratio ── */
body.strateego-v2 .sv2-img-placeholder.ratio-text { height: 52px; background: repeating-linear-gradient(0deg, rgba(0,0,0,0.08) 0, rgba(0,0,0,0.08) 1px, transparent 1px, transparent 18px); }

/* ── ADS ACTIVITY: platform badge (on ad cards) ── */
body.strateego-v2 .sv2-plat-badge { display: inline-flex; align-items: center; gap: 4px; font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 3px 8px; border-radius: 5px; flex-shrink: 0; }
body.strateego-v2 .sv2-plat-badge.google { background: rgba(66,133,244,.1); color: #4285f4; border: .5px solid rgba(66,133,244,.2); }
body.strateego-v2 .sv2-plat-badge.meta { background: rgba(24,119,242,.1); color: #1877f2; border: .5px solid rgba(24,119,242,.2); }

/* ── ADS ACTIVITY: CRT alert box ── */
body.strateego-v2 .sv2-crt-alert { background: rgba(220,38,38,.03); border: 0.5px solid rgba(220,38,38,.15); border-left: 3px solid #dc2626; border-radius: 0 10px 10px 0; padding: 12px 16px; display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 1.25rem; flex-wrap: wrap; }
body.strateego-v2 .sv2-crt-alert-text { font-size: 13px; color: #666; line-height: 1.6; flex: 1; }
body.strateego-v2 .sv2-crt-alert-text strong { color: #dc2626; font-weight: 600; }
body.strateego-v2 .sv2-crt-alert-btn { font-size: 12px; font-weight: 600; color: #7c5cfc; padding: 6px 14px; border-radius: 20px; border: .5px solid rgba(124,92,252,.3); background: rgba(124,92,252,.05); white-space: nowrap; cursor: pointer; flex-shrink: 0; text-decoration: none; display: inline-block; }
body.strateego-v2 .sv2-crt-alert-btn:hover { background: rgba(124,92,252,.1); }

/* ── ADS ACTIVITY: stat row ── */
body.strateego-v2 .sv2-stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; margin-bottom: 1.25rem; }
body.strateego-v2 .sv2-stat-card { background: #fff; border: 0.5px solid rgba(0,0,0,0.08); border-radius: 12px; padding: .8rem 1rem; border-top-width: 3px; position: relative; }
body.strateego-v2 .sv2-stat-card.own { background: #faf9ff; }
body.strateego-v2 .sv2-stat-name { font-size: 11px; color: #aaa; margin-bottom: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
body.strateego-v2 .sv2-stat-val { font-size: 22px; font-weight: 700; line-height: 1; letter-spacing: -.02em; margin-bottom: 4px; }
body.strateego-v2 .sv2-stat-plat-row { display: flex; gap: 5px; margin: 5px 0 6px; flex-wrap: wrap; }
body.strateego-v2 .sv2-stat-plat-badge { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 600; padding: 3px 8px; border-radius: 5px; }
body.strateego-v2 .sv2-stat-plat-badge.google.active { background: rgba(66,133,244,.12); color: #4285f4; border: .5px solid rgba(66,133,244,.25); }
body.strateego-v2 .sv2-stat-plat-badge.meta.active { background: rgba(24,119,242,.12); color: #1877f2; border: .5px solid rgba(24,119,242,.25); }
body.strateego-v2 .sv2-stat-plat-badge.inactive { background: #f5f5f3; color: #ccc; border: .5px solid rgba(0,0,0,0.08); }
body.strateego-v2 .sv2-stat-delta { font-size: 11px; display: flex; align-items: center; gap: 3px; }
body.strateego-v2 .sv2-stat-sub { font-size: 11px; color: #666; }

/* ── ADS ACTIVITY: controls bar ── */
body.strateego-v2 .sv2-controls-bar { display: flex; align-items: center; justify-content: space-between; margin-bottom: .9rem; flex-wrap: wrap; gap: 8px; }
body.strateego-v2 .sv2-controls-left { display: flex; gap: 7px; flex-wrap: wrap; align-items: center; }
body.strateego-v2 .sv2-controls-right { display: flex; align-items: center; gap: 6px; }
body.strateego-v2 .sv2-results-count { font-size: 12px; color: #aaa; }

/* ── ADS ACTIVITY: full ad card components ── */
body.strateego-v2 .sv2-ad-top { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 10px; gap: 8px; }
body.strateego-v2 .sv2-ad-co { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; }
body.strateego-v2 .sv2-ad-co-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
body.strateego-v2 .sv2-ad-title { font-size: 14px; font-weight: 600; color: #1a1a1a; line-height: 1.35; margin-bottom: 7px; letter-spacing: -.01em; }
body.strateego-v2 .sv2-ad-body { font-size: 12px; color: #666; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 3; overflow: hidden; -webkit-box-orient: vertical; }
body.strateego-v2 .sv2-ad-footer { display: flex; gap: 14px; margin-top: 11px; padding-top: 11px; border-top: .5px solid rgba(0,0,0,0.08); }
body.strateego-v2 .sv2-ad-date { font-size: 11px; color: #aaa; }
body.strateego-v2 .sv2-ad-date span { display: block; color: #1a1a1a; font-size: 12px; font-weight: 500; }

/* ── ADS ACTIVITY: list view ── */
body.strateego-v2 .sv2-ads-list-wrap { background: #fff; border: 0.5px solid rgba(0,0,0,0.08); border-radius: 12px; overflow: hidden; }
body.strateego-v2 .sv2-ad-list-header { display: grid; grid-template-columns: 10px 130px 110px 120px 1fr 110px 110px; gap: 10px; padding: 9px 14px; border-bottom: 0.5px solid rgba(0,0,0,0.08); background: #f5f5f3; }
body.strateego-v2 .sv2-ad-list-header > div { font-size: 10px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #aaa; }
body.strateego-v2 .sv2-ad-list-row { display: grid; grid-template-columns: 10px 130px 110px 120px 1fr 110px 110px; gap: 10px; align-items: center; padding: 11px 14px; border-bottom: .5px solid rgba(0,0,0,0.08); transition: background .12s; }
body.strateego-v2 .sv2-ad-list-row:last-child { border-bottom: none; }
body.strateego-v2 .sv2-ad-list-row:hover { background: #f5f5f3; }
body.strateego-v2 .sv2-ad-list-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
body.strateego-v2 .sv2-ad-list-co { font-size: 12px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
body.strateego-v2 .sv2-ad-list-title { font-size: 12px; color: #1a1a1a; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
body.strateego-v2 .sv2-ad-list-body { font-size: 11px; color: #666; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
body.strateego-v2 .sv2-ad-list-dates { font-size: 11px; color: #aaa; }

/* ── REPUTATION: KPI tooltip ── */
body.strateego-v2 .sv2-kpi-tooltip { width: 14px; height: 14px; border-radius: 50%; background: #f5f5f3; border: 0.5px solid rgba(0,0,0,0.12); display: inline-flex; align-items: center; justify-content: center; font-size: 9px; color: #aaa; cursor: help; flex-shrink: 0; }

/* ═══════════════════════════════════════
   ADVISOR (chat) — full-height layout
   ═══════════════════════════════════════ */

/* Override wrapper/main for full-height chat */
body.strateego-v2.page-advisor { height: 100vh; overflow: hidden; }
body.strateego-v2.page-advisor .sv2-wrapper { height: 100vh; overflow: hidden; }
body.strateego-v2.page-advisor .sv2-main { padding: 0; display: flex; height: 100vh; overflow: hidden; }

/* ── Chat history sidebar ── */
body.strateego-v2 .adv-history { width: 210px; flex-shrink: 0; background: #fff; border-right: 0.5px solid rgba(0,0,0,0.08); display: flex; flex-direction: column; height: 100vh; overflow: hidden; }
body.strateego-v2 .adv-history-header { padding: .9rem 1rem; border-bottom: 0.5px solid rgba(0,0,0,0.08); display: flex; align-items: center; justify-content: space-between; flex-shrink: 0; }
body.strateego-v2 .adv-history-title { font-size: 13px; font-weight: 600; color: #1a1a1a; }
body.strateego-v2 .adv-new-btn { font-size: 12px; font-weight: 500; color: #7c5cfc; padding: 4px 10px; border-radius: 8px; border: 0.5px solid rgba(124,92,252,.25); background: rgba(124,92,252,.05); cursor: pointer; white-space: nowrap; text-decoration: none; }
body.strateego-v2 .adv-new-btn:hover { background: rgba(124,92,252,.1); }
body.strateego-v2 .adv-history-sec { font-size: 10px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: #bbb; padding: 10px 10px 4px; }
body.strateego-v2 .adv-history-list { flex: 1; overflow-y: auto; padding: 0 6px 1rem; }
body.strateego-v2 .adv-history-item { padding: 8px 10px; border-radius: 8px; cursor: pointer; margin-bottom: 1px; transition: background .12s; display: block; text-decoration: none; color: inherit; }
body.strateego-v2 .adv-history-item:hover { background: #f5f5f3; }
body.strateego-v2 .adv-history-item.active { background: #f5f3ff; }
body.strateego-v2 .adv-history-item-title { font-size: 12px; font-weight: 500; color: #1a1a1a; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 2px; }
body.strateego-v2 .adv-history-item.active .adv-history-item-title { color: #7c5cfc; }
body.strateego-v2 .adv-history-item-meta { font-size: 11px; color: #aaa; }

/* ── Chat main area ── */
body.strateego-v2 .adv-chat-main { flex: 1; min-width: 0; display: flex; flex-direction: column; height: 100vh; overflow: hidden; }
body.strateego-v2 .adv-topbar { padding: .9rem 1.25rem; border-bottom: 0.5px solid rgba(0,0,0,0.08); display: flex; align-items: center; justify-content: space-between; flex-shrink: 0; background: #fff; }
body.strateego-v2 .adv-topbar-left { display: flex; align-items: center; gap: 10px; }
body.strateego-v2 .adv-topbar-title { font-size: 14px; font-weight: 600; color: #1a1a1a; }
body.strateego-v2 .adv-context-chip { display: flex; align-items: center; gap: 5px; font-size: 11px; padding: 3px 9px; border-radius: 12px; background: #f5f3ff; color: #7c5cfc; border: .5px solid rgba(124,92,252,.2); }
body.strateego-v2 .adv-context-dot { width: 6px; height: 6px; border-radius: 50%; background: #7c5cfc; }
body.strateego-v2 .adv-topbar-right { display: flex; gap: 6px; }
body.strateego-v2 .adv-tb-btn { font-size: 11px; padding: 4px 10px; border-radius: 8px; border: 0.5px solid rgba(0,0,0,0.12); background: #fff; color: #666; cursor: pointer; text-decoration: none; white-space: nowrap; display: inline-block; }
body.strateego-v2 .adv-tb-btn:hover { background: #f5f5f3; }

/* ── Welcome screen ── */
body.strateego-v2 .adv-welcome { flex: 1; overflow-y: auto; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 2rem 1.5rem; gap: 0; }
body.strateego-v2 .adv-welcome-icon { width: 52px; height: 52px; background: linear-gradient(90deg,#7c5cfc,#00c896); border-radius: 14px; display: flex; align-items: center; justify-content: center; margin-bottom: 1rem; flex-shrink: 0; }
body.strateego-v2 .adv-welcome-icon svg { width: 26px; height: 26px; fill: #fff; }
body.strateego-v2 .adv-welcome-title { font-size: 20px; font-weight: 700; color: #1a1a1a; letter-spacing: -.02em; margin-bottom: 6px; text-align: center; }
body.strateego-v2 .adv-welcome-sub { font-size: 13px; color: #666; text-align: center; max-width: 380px; line-height: 1.65; margin-bottom: 2rem; }
body.strateego-v2 .adv-prompt-cats { display: flex; flex-direction: column; gap: 1.25rem; width: 100%; max-width: 640px; }
body.strateego-v2 .adv-prompt-cat-label { font-size: 10px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: #aaa; margin-bottom: .5rem; }
body.strateego-v2 .adv-prompt-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
body.strateego-v2 .adv-prompt-card { background: #fff; border: 0.5px solid rgba(0,0,0,0.08); border-radius: 10px; padding: .8rem 1rem; cursor: pointer; transition: all .15s; text-align: left; }
body.strateego-v2 .adv-prompt-card:hover { border-color: rgba(124,92,252,.3); background: #faf9ff; transform: translateY(-1px); box-shadow: 0 2px 8px rgba(0,0,0,.06); }
body.strateego-v2 .adv-prompt-card-icon { font-size: 16px; margin-bottom: 5px; }
body.strateego-v2 .adv-prompt-card-title { font-size: 12px; font-weight: 600; color: #1a1a1a; margin-bottom: 2px; line-height: 1.3; }
body.strateego-v2 .adv-prompt-card-desc { font-size: 11px; color: #aaa; line-height: 1.4; }

/* ── Messages area ── */
body.strateego-v2 .adv-messages { flex: 1; overflow-y: auto; padding: 1.25rem 1.5rem; display: none; flex-direction: column; gap: 1.25rem; }
body.strateego-v2 .adv-messages.visible { display: flex; }
body.strateego-v2 .adv-msg { display: flex; gap: 10px; align-items: flex-start; }
body.strateego-v2 .adv-msg.user { flex-direction: row-reverse; }
body.strateego-v2 .adv-msg-avatar { width: 30px; height: 30px; border-radius: 8px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 11px; font-weight: 700; }
body.strateego-v2 .adv-msg-avatar.ai { background: linear-gradient(90deg,#7c5cfc,#00c896); }
body.strateego-v2 .adv-msg-avatar.ai svg { width: 14px; height: 14px; fill: #fff; }
body.strateego-v2 .adv-msg-avatar.user { background: #f5f3ff; color: #7c5cfc; }
body.strateego-v2 .adv-msg-bubble { max-width: 72%; padding: .75rem 1rem; border-radius: 12px; font-size: 13px; line-height: 1.65; }
body.strateego-v2 .adv-msg.ai .adv-msg-bubble { background: #fff; border: 0.5px solid rgba(0,0,0,0.08); color: #1a1a1a; border-radius: 4px 12px 12px 12px; }
body.strateego-v2 .adv-msg.user .adv-msg-bubble { background: #7c5cfc; color: #fff; border-radius: 12px 4px 12px 12px; }
body.strateego-v2 .adv-msg-bubble strong { font-weight: 600; }
body.strateego-v2 .adv-msg-bubble ul { margin: 6px 0 6px 16px; }
body.strateego-v2 .adv-msg-bubble li { margin-bottom: 4px; }
body.strateego-v2 .adv-msg-bubble .adv-highlight { background: #f0fdf4; border-left: 3px solid #16a34a; border-radius: 0 6px 6px 0; padding: 8px 10px; margin: 8px 0; font-size: 12px; color: #1a1a1a; }
body.strateego-v2 .adv-msg-time { font-size: 10px; color: #aaa; margin-top: 4px; padding: 0 4px; }
body.strateego-v2 .adv-msg.user .adv-msg-time { text-align: right; }
body.strateego-v2 .adv-msg-bubble pre { white-space: pre-wrap; word-break: break-word; font-family: inherit; }
body.strateego-v2 .adv-msg-bubble h1,body.strateego-v2 .adv-msg-bubble h2,body.strateego-v2 .adv-msg-bubble h3,body.strateego-v2 .adv-msg-bubble h4,body.strateego-v2 .adv-msg-bubble h5,body.strateego-v2 .adv-msg-bubble h6 { margin: .4rem 0; line-height: 1.35; color: #1a1a1a; }
body.strateego-v2 .adv-msg-bubble p,body.strateego-v2 .adv-msg-bubble ul,body.strateego-v2 .adv-msg-bubble ol { margin-bottom: .6rem; color: #1a1a1a; }
body.strateego-v2 .adv-msg-bubble ol { padding-left: 1.2rem; }
body.strateego-v2 .adv-msg-bubble code { background: rgba(0,0,0,.06); padding: .1rem .3rem; border-radius: .25rem; font-size: .88rem; }

/* Typing indicator */
body.strateego-v2 .adv-typing { display: flex; align-items: center; gap: 4px; padding: .75rem 1rem; background: #fff; border: 0.5px solid rgba(0,0,0,0.08); border-radius: 4px 12px 12px 12px; width: fit-content; }
body.strateego-v2 .adv-typing-dot { width: 6px; height: 6px; border-radius: 50%; background: #aaa; animation: advTyping .8s infinite; }
body.strateego-v2 .adv-typing-dot:nth-child(2) { animation-delay: .15s; }
body.strateego-v2 .adv-typing-dot:nth-child(3) { animation-delay: .3s; }
@keyframes advTyping { 0%,80%,100%{transform:scale(1);opacity:.4;} 40%{transform:scale(1.2);opacity:1;} }

/* ── Input area ── */
body.strateego-v2 .adv-input-area { flex-shrink: 0; padding: .9rem 1.25rem 1.1rem; border-top: 0.5px solid rgba(0,0,0,0.08); background: #fff; }
body.strateego-v2 .adv-input-context { display: flex; align-items: center; gap: 6px; margin-bottom: .6rem; flex-wrap: wrap; }
body.strateego-v2 .adv-input-ctx-label { font-size: 11px; color: #aaa; }
body.strateego-v2 .adv-ctx-chip { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; padding: 3px 9px; border-radius: 12px; cursor: pointer; border: .5px solid rgba(0,0,0,0.12); background: #fff; color: #666; transition: all .12s; user-select: none; }
body.strateego-v2 .adv-ctx-chip.selected { background: #f5f3ff; color: #7c5cfc; border-color: rgba(124,92,252,.3); font-weight: 500; }
body.strateego-v2 .adv-ctx-chip-dot { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }
body.strateego-v2 .adv-quick-prompts { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: .5rem; }
body.strateego-v2 .adv-qp { font-size: 11px; padding: 4px 10px; border-radius: 20px; border: .5px solid rgba(0,0,0,0.12); background: #fff; color: #666; cursor: pointer; transition: all .12s; white-space: nowrap; }
body.strateego-v2 .adv-qp:hover { border-color: rgba(124,92,252,.3); background: #f5f3ff; color: #7c5cfc; }
body.strateego-v2 .adv-input-wrap { display: flex; align-items: flex-end; gap: 8px; background: #f5f5f3; border: 0.5px solid rgba(0,0,0,0.12); border-radius: 12px; padding: 8px 8px 8px 14px; transition: border-color .15s; }
body.strateego-v2 .adv-input-wrap:focus-within { border-color: rgba(124,92,252,.4); }
body.strateego-v2 .adv-chat-input { flex: 1; border: none; background: transparent; font-family: 'DM Sans', sans-serif; font-size: 13px; color: #1a1a1a; resize: none; outline: none; line-height: 1.5; max-height: 120px; min-height: 20px; }
body.strateego-v2 .adv-chat-input::placeholder { color: #aaa; }
body.strateego-v2 .adv-send-btn { width: 34px; height: 34px; border-radius: 9px; background: #7c5cfc; border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: opacity .15s, transform .15s; }
body.strateego-v2 .adv-send-btn:hover { opacity: .9; transform: scale(1.04); }
body.strateego-v2 .adv-send-btn:disabled { opacity: .35; cursor: not-allowed; transform: none; }
body.strateego-v2 .adv-send-btn svg { width: 16px; height: 16px; fill: #fff; }
body.strateego-v2 .adv-input-hint { font-size: 11px; color: #aaa; margin-top: 6px; text-align: center; }

@media (max-width: 1024px) { body.strateego-v2 .adv-history { display: none; } }

/* ══ INTELLIGENCE PAGE ══════════════════════════════════════════ */
body.strateego-v2 .int-situation-panel { background: var(--surface); border: 0.5px solid var(--border); border-radius: 12px; overflow: hidden; margin-bottom: 1.5rem; }
body.strateego-v2 .int-situation-header { background: #faf9ff; border-bottom: 0.5px solid var(--border); padding: 1rem 1.25rem; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
body.strateego-v2 .int-situation-label { font-size: 10px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--co-crt); }
body.strateego-v2 .int-situation-title { font-size: 15px; font-weight: 600; color: var(--text); margin-top: 2px; }
body.strateego-v2 .int-situation-body { padding: 1.25rem; }
body.strateego-v2 .int-stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 1rem; }
body.strateego-v2 .int-situ-card { background: var(--bg); border-radius: 10px; padding: .8rem 1rem; }
body.strateego-v2 .int-situ-label { font-size: 11px; color: var(--faint); margin-bottom: 4px; }
body.strateego-v2 .int-situ-val { font-size: 22px; font-weight: 700; letter-spacing: -.02em; line-height: 1; margin-bottom: 4px; color: var(--co-crt); }
body.strateego-v2 .int-situ-meta { font-size: 11px; color: var(--faint); }
body.strateego-v2 .int-direction-box { background: linear-gradient(135deg, #f5f3ff, #eef2ff); border: 0.5px solid rgba(124,92,252,.15); border-radius: 10px; padding: 1rem 1.25rem; display: flex; align-items: flex-start; gap: 12px; }
body.strateego-v2 .int-direction-icon { width: 36px; height: 36px; background: var(--co-crt); border-radius: 8px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
body.strateego-v2 .int-direction-label { font-size: 10px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--co-crt); margin-bottom: 4px; }
body.strateego-v2 .int-direction-text { font-size: 13px; color: var(--text); line-height: 1.65; font-weight: 500; }
body.strateego-v2 .int-direction-why { font-size: 12px; color: var(--muted); margin-top: 6px; line-height: 1.6; }
body.strateego-v2 .int-sec-num { font-size: 11px; font-weight: 700; color: var(--co-crt); }
body.strateego-v2 .int-type-tag { display: inline-flex; align-items: center; font-size: 10px; font-weight: 600; padding: 3px 8px; border-radius: 4px; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; }
body.strateego-v2 .int-type-cross { background: #dbeafe; color: #1e40af; }
body.strateego-v2 .int-type-oto { background: #ede9fe; color: #5b21b6; }
body.strateego-v2 .int-type-ped { background: #fef3c7; color: #92400e; }
body.strateego-v2 .int-type-other { background: var(--bg); color: var(--faint); border: .5px solid var(--border); }
body.strateego-v2 .int-co-chip { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 500; padding: 2px 8px; border-radius: 10px; background: var(--bg); border: .5px solid var(--border); margin: 2px; white-space: nowrap; }
body.strateego-v2 .int-co-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; display: inline-block; }
body.strateego-v2 .int-analysis-table { width: 100%; border-collapse: collapse; }
body.strateego-v2 .int-analysis-table th { font-size: 10px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); padding: 8px 14px; text-align: left; border-bottom: 0.5px solid var(--border); background: var(--bg); }
body.strateego-v2 .int-analysis-table td { padding: 12px 14px; border-bottom: 0.5px solid var(--border); font-size: 13px; vertical-align: middle; }
body.strateego-v2 .int-analysis-table tr:last-child td { border-bottom: none; }
body.strateego-v2 .int-analysis-table tr:hover td { background: #faf9ff; }
body.strateego-v2 .int-view-btn { font-size: 12px; font-weight: 500; color: var(--co-crt); padding: 5px 12px; border-radius: 8px; border: .5px solid rgba(124,92,252,.25); background: rgba(124,92,252,.05); text-decoration: none; display: inline-block; white-space: nowrap; transition: background .12s; }
body.strateego-v2 .int-view-btn:hover { background: rgba(124,92,252,.12); color: var(--co-crt); }
body.strateego-v2 .int-oto-tabs { display: flex; gap: 2px; border-bottom: 0.5px solid var(--border); padding-bottom: 0; margin-bottom: 1rem; flex-wrap: wrap; }
body.strateego-v2 .int-oto-tab { font-size: 13px; font-weight: 500; color: var(--faint); padding: 7px 14px; cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; transition: all .15s; display: flex; align-items: center; gap: 7px; user-select: none; }
body.strateego-v2 .int-oto-tab:hover { color: var(--muted); }
body.strateego-v2 .int-oto-tab.active { color: var(--co-crt); border-bottom-color: var(--co-crt); }
body.strateego-v2 .int-oto-content { display: none; }
body.strateego-v2 .int-oto-content.active { display: block; }
body.strateego-v2 .int-topics-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; margin-bottom: 1.25rem; }
body.strateego-v2 .int-topic-card { background: var(--surface); border: 0.5px solid var(--border); border-radius: 10px; padding: 1rem; border-left: 3px solid var(--co-crt); }
body.strateego-v2 .int-topic-title { font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 6px; line-height: 1.35; }
body.strateego-v2 .int-topic-meta { font-size: 11px; color: var(--muted); margin-bottom: 8px; display: flex; align-items: center; gap: 5px; flex-wrap: wrap; }
body.strateego-v2 .int-advisor-cta { background: linear-gradient(135deg, #f5f3ff, #eef2ff); border: 0.5px solid rgba(124,92,252,.2); border-radius: 10px; padding: 1rem 1.25rem; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 1.5rem; }
body.strateego-v2 .int-advisor-btn { font-size: 12px; font-weight: 600; color: var(--co-crt); padding: 7px 16px; border-radius: 20px; border: .5px solid rgba(124,92,252,.3); background: rgba(124,92,252,.06); white-space: nowrap; text-decoration: none; display: inline-block; flex-shrink: 0; transition: background .12s; }
body.strateego-v2 .int-advisor-btn:hover { background: rgba(124,92,252,.12); }
body.strateego-v2 .int-empty { text-align: center; padding: 3rem; color: var(--faint); font-size: 13px; }
@media (max-width: 680px) { body.strateego-v2 .int-stat-grid { grid-template-columns: 1fr 1fr; } }

/* ══ V2 PAGINATOR ═══════════════════════════════════════════════ */
body.strateego-v2 .sv2-paginator { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 0 0; flex-wrap: wrap; }
body.strateego-v2 .sv2-pag-info { font-size: 12px; color: var(--faint); }
body.strateego-v2 .sv2-pag-btns { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
body.strateego-v2 .sv2-pag-btn { width: 30px; height: 30px; border-radius: 7px; border: 0.5px solid var(--border-med); background: var(--surface); font-size: 12px; color: var(--muted); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; text-decoration: none; transition: background .12s, color .12s; user-select: none; }
body.strateego-v2 .sv2-pag-btn:hover:not(.disabled):not(.active) { background: var(--bg); color: var(--text); }
body.strateego-v2 .sv2-pag-btn.active { background: #f5f3ff; color: var(--co-crt); border-color: rgba(124,92,252,.3); font-weight: 600; cursor: default; }
body.strateego-v2 .sv2-pag-btn.disabled { opacity: .35; cursor: default; }

/* ══ ANALYSIS RESULT PAGE ══════════════════════════════════════ */
body.strateego-v2 .int-back-btn { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; color: var(--muted); text-decoration: none; margin-bottom: 1rem; padding: 5px 10px; border-radius: 8px; border: 0.5px solid var(--border-med); background: var(--surface); transition: background .12s; }
body.strateego-v2 .int-back-btn:hover { background: var(--bg); color: var(--text); }
body.strateego-v2 .int-analysis-header { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-bottom: 1.5rem; padding-bottom: 1rem; border-bottom: 0.5px solid var(--border); }
body.strateego-v2 .int-analysis-title { font-size: 16px; font-weight: 600; color: var(--text); }
body.strateego-v2 .int-analysis-meta { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
/* Competitor comp cards */
body.strateego-v2 .int-comp-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
body.strateego-v2 .int-comp-card { background: var(--bg); border-radius: 10px; padding: 1rem; border-left: 3px solid var(--faint); }
body.strateego-v2 .int-comp-card-name { font-size: 12px; font-weight: 600; margin-bottom: 6px; display: flex; align-items: center; gap: 7px; }
body.strateego-v2 .int-comp-card-desc { font-size: 12px; color: var(--muted); line-height: 1.5; }
/* Pressure table */
body.strateego-v2 .int-pressure-table { width: 100%; border-collapse: collapse; }
body.strateego-v2 .int-pressure-table th { font-size: 10px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); padding: 8px 12px; text-align: left; border-bottom: 0.5px solid var(--border); background: var(--bg); }
body.strateego-v2 .int-pressure-table td { padding: 11px 12px; border-bottom: 0.5px solid var(--border); font-size: 13px; vertical-align: top; }
body.strateego-v2 .int-pressure-table tr:last-child td { border-bottom: none; }
body.strateego-v2 .int-pressure-table tr:hover td { background: #faf9ff; }
body.strateego-v2 .int-pressure-name { font-weight: 600; color: var(--text); font-size: 13px; margin-bottom: 3px; }
body.strateego-v2 .int-pressure-why { font-size: 12px; color: var(--muted); line-height: 1.5; }
/* Strengths / weaknesses */
body.strateego-v2 .int-sw-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
body.strateego-v2 .int-sw-list { display: flex; flex-direction: column; gap: 8px; }
body.strateego-v2 .int-sw-item { display: flex; align-items: flex-start; gap: 9px; padding: 10px 12px; border-radius: 8px; background: var(--bg); }
body.strateego-v2 .int-sw-item.pos { background: #f0fdf4; }
body.strateego-v2 .int-sw-item.neg { background: #fff7f7; }
body.strateego-v2 .int-sw-icon { width: 18px; height: 18px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 1px; font-size: 10px; font-weight: 700; }
body.strateego-v2 .int-sw-icon.pos { background: #dcfce7; color: #15803d; }
body.strateego-v2 .int-sw-icon.neg { background: #fee2e2; color: #b91c1c; }
body.strateego-v2 .int-sw-text { font-size: 13px; color: var(--text); line-height: 1.55; }
@media (max-width: 600px) { body.strateego-v2 .int-sw-grid { grid-template-columns: 1fr; } }
/* Strategic delta grid */
body.strateego-v2 .int-delta-grid { display: grid; grid-template-columns: repeat(5,1fr); gap: 10px; margin-bottom: 1.25rem; }
body.strateego-v2 .int-delta-card { background: var(--bg); border-radius: 10px; padding: .8rem; text-align: center; }
body.strateego-v2 .int-delta-label { font-size: 10px; color: var(--faint); margin-bottom: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
body.strateego-v2 .int-delta-bar-wrap { height: 6px; background: rgba(0,0,0,.07); border-radius: 3px; margin-bottom: 6px; overflow: hidden; }
body.strateego-v2 .int-delta-bar-fill { height: 6px; border-radius: 3px; }
body.strateego-v2 .int-delta-status { font-size: 11px; font-weight: 600; }
body.strateego-v2 .int-delta-status.forte { color: var(--success); }
body.strateego-v2 .int-delta-status.medio { color: var(--warning); }
body.strateego-v2 .int-delta-status.debole { color: var(--danger); }
@media (max-width: 680px) { body.strateego-v2 .int-delta-grid { grid-template-columns: repeat(3,1fr); } }
/* Action rows */
body.strateego-v2 .int-action-rows { display: flex; flex-direction: column; gap: 8px; }
body.strateego-v2 .int-action-row { display: flex; align-items: flex-start; gap: 10px; padding: 10px 14px; border-radius: 8px; background: var(--bg); }
body.strateego-v2 .int-action-row.now { background: #f5f3ff; }
body.strateego-v2 .int-action-row.next { background: #f0fdf4; }
body.strateego-v2 .int-action-row.strategic { background: #fff7ed; }
body.strateego-v2 .int-action-timing { font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; min-width: 60px; padding-top: 2px; }
body.strateego-v2 .int-action-timing.now { color: var(--co-crt); }
body.strateego-v2 .int-action-timing.next { color: var(--success); }
body.strateego-v2 .int-action-timing.strategic { color: var(--warning); }
body.strateego-v2 .int-action-text { font-size: 13px; color: var(--text); line-height: 1.55; }
/* Alert flag */
body.strateego-v2 .int-alert-flag { background: #fff7f7; border: 0.5px solid rgba(220,38,38,.2); border-left: 3px solid var(--danger); border-radius: 0 8px 8px 0; padding: 10px 14px; display: flex; align-items: flex-start; gap: 10px; margin-top: 1rem; }
body.strateego-v2 .int-alert-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--danger); flex-shrink: 0; margin-top: 4px; }
body.strateego-v2 .int-alert-text { font-size: 13px; color: var(--text); line-height: 1.55; }
/* Direction box variant: don't-do */
body.strateego-v2 .int-dont-item { display: flex; align-items: flex-start; gap: 9px; padding: 10px 12px; border-radius: 8px; background: #fff7f7; border: 0.5px solid rgba(220,38,38,.1); margin-bottom: 6px; }
body.strateego-v2 .int-dont-label { font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--danger); white-space: nowrap; min-width: 30px; padding-top: 2px; }
body.strateego-v2 .int-dont-text { font-size: 13px; color: var(--text); line-height: 1.5; }
body.strateego-v2 .int-dont-why { font-size: 11px; color: var(--muted); margin-top: 2px; }
/* Two-col advantage map */
body.strateego-v2 .int-adv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
body.strateego-v2 .int-adv-col-label { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 8px; }
body.strateego-v2 .int-adv-col-label.us { color: var(--success); }
body.strateego-v2 .int-adv-col-label.them { color: var(--danger); }
@media (max-width: 600px) { body.strateego-v2 .int-adv-grid { grid-template-columns: 1fr; } }
/* CS direction box (PED) */
body.strateego-v2 .int-cs-direction { background: linear-gradient(135deg,#f0fdf4,#f5f3ff); border: 0.5px solid rgba(0,0,0,.06); border-radius: 10px; padding: 1rem 1.25rem; margin-bottom: 1rem; }
body.strateego-v2 .int-cs-direction-label { font-size: 10px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--success); margin-bottom: 6px; }
body.strateego-v2 .int-cs-direction-item { font-size: 13px; color: var(--text); line-height: 1.65; padding: 4px 0 4px 16px; position: relative; }
body.strateego-v2 .int-cs-direction-item::before { content: '·'; position: absolute; left: 4px; color: var(--success); font-weight: 700; }
/* Tone badges */
body.strateego-v2 .int-tone-row { display: flex; gap: 8px; flex-wrap: wrap; }
body.strateego-v2 .int-tone-badge { font-size: 12px; padding: 5px 12px; border-radius: 20px; background: var(--bg); border: .5px solid var(--border); color: var(--muted); }


/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE — V2 (strateego-v2 scoped)
   900px  = sidebar becomes overlay drawer + hamburger shows
   640px  = content padding, typography & grid fine-tuning
   480px  = small-mobile last-mile fixes
═══════════════════════════════════════════════════════════════ */

/* ── Mobile nav bar (hamburger + brand) ─────────────────────── */
body.strateego-v2 .sv2-mobile-nav {
  display: none;
  align-items: center;
  gap: 10px;
  padding-bottom: .875rem;
  border-bottom: 0.5px solid rgba(0,0,0,.07);
  margin-bottom: 1.25rem;
}
body.strateego-v2 .sv2-mobile-brand {
  font-size: 14px;
  font-weight: 600;
  color: #1a1a1a;
  letter-spacing: -.02em;
}
body.strateego-v2 .sv2-mobile-brand span { color: var(--co-crt); }

/* ── Hamburger button ──────────────────────────────────────── */
body.strateego-v2 .sb-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: 0.5px solid rgba(0,0,0,.12);
  background: #fff;
  cursor: pointer;
  color: #555;
  flex-shrink: 0;
  transition: background .15s;
}
body.strateego-v2 .sb-toggle:hover { background: #f5f5f3; }
body.strateego-v2 .sb-toggle svg {
  width: 18px;
  height: 18px;
  display: block;
}

/* ── Advisor topbar hamburger ──────────────────────────────── */
body.strateego-v2 .adv-sb-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 7px;
  border: 0.5px solid rgba(0,0,0,.1);
  background: transparent;
  cursor: pointer;
  color: #555;
  flex-shrink: 0;
}
body.strateego-v2 .adv-sb-toggle svg { width: 16px; height: 16px; display: block; }

/* ── Backdrop overlay ──────────────────────────────────────── */
body.strateego-v2 .sb-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.35);
  z-index: 149;
}
body.strateego-v2 .sb-backdrop.open { display: block; }

/* ════════════════════════
   BREAKPOINT  ≤ 900px
════════════════════════ */
@media (max-width: 900px) {

  /* Sidebar becomes a slide-in drawer */
  body.strateego-v2 .site-sidebar {
    position: fixed;
    left: -240px;
    top: 0;
    bottom: 0;
    height: 100dvh;
    z-index: 150;
    width: 220px;
    min-width: 220px;
    transition: left .25s ease;
    box-shadow: none;
  }
  body.strateego-v2 .site-sidebar.open {
    left: 0;
    box-shadow: 6px 0 28px rgba(0,0,0,.13);
  }

  /* Show mobile nav bar */
  body.strateego-v2 .sv2-mobile-nav { display: flex; }
  body.strateego-v2 .sb-toggle { display: flex; }

  /* Main content takes full width */
  body.strateego-v2 .sv2-main {
    padding: 1.25rem 1.25rem 2.5rem;
    width: 100%;
    min-width: 0;
  }

  /* Advisor: mobile-nav is hidden (advisor has its own topbar toggle) */
  body.strateego-v2.page-advisor .sv2-mobile-nav { display: none; }
  body.strateego-v2.page-advisor .sv2-main { padding: 0; }
  body.strateego-v2 .adv-sb-toggle { display: flex; }

  /* Advisor height adjustments */
  body.strateego-v2.page-advisor .adv-chat-main { height: 100dvh; }

  /* Tables: allow horizontal scroll */
  body.strateego-v2 .sv2-rep-table-wrap { overflow-x: auto; }
  body.strateego-v2 .sv2-rep-table { min-width: 500px; }
}

/* ════════════════════════
   BREAKPOINT  ≤ 640px
════════════════════════ */
@media (max-width: 640px) {

  body.strateego-v2 .sv2-main {
    padding: 1rem 1rem 2.5rem;
  }

  /* Topbar: stack title + pills */
  body.strateego-v2 .sv2-topbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding-bottom: 1rem;
    margin-bottom: 1.25rem;
  }
  body.strateego-v2 .sv2-pills { flex-wrap: wrap; }

  /* AI box: allow label to wrap */
  body.strateego-v2 .sv2-ai-box { flex-wrap: wrap; gap: 6px; }

  /* Stat grid: 2 cols on phones */
  body.strateego-v2 .int-stat-grid { grid-template-columns: 1fr 1fr; }

  /* Intelligence analysis table: horizontal scroll */
  body.strateego-v2 .sv2-chart-card { overflow-x: auto; }
  body.strateego-v2 .int-analysis-table { min-width: 480px; }

  /* Pressure table: horizontal scroll */
  body.strateego-v2 .int-pressure-table { min-width: 480px; }

  /* Wrap the pressure + analysis tables in a scroll container */
  body.strateego-v2 .int-table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

  /* Delta grid: 3→2 cols on small screens */
  body.strateego-v2 .int-delta-grid { grid-template-columns: repeat(2, 1fr); }

  /* Situation panel padding */
  body.strateego-v2 .int-situation-header { padding: .875rem 1rem; }
  body.strateego-v2 .int-situation-body { padding: .875rem 1rem; }

  /* Direction box */
  body.strateego-v2 .int-direction-box { flex-direction: column; gap: 8px; }

  /* OTO tabs: allow wrapping (already flex-wrap:wrap, just reduce padding) */
  body.strateego-v2 .int-oto-tab { padding: 6px 12px; font-size: 12px; }

  /* Topic cards: single column */
  body.strateego-v2 .int-topics-grid { grid-template-columns: 1fr; }

  /* Comp cards: single column */
  body.strateego-v2 .int-comp-cards { grid-template-columns: 1fr; }

  /* Analysis header: reduce font */
  body.strateego-v2 .int-analysis-title { font-size: 15px; }

  /* Action rows: reduce padding */
  body.strateego-v2 .int-action-row { padding: 9px 12px; }
  body.strateego-v2 .int-action-timing { min-width: 52px; font-size: 9px; }

  /* Advisor: wider message bubbles */
  body.strateego-v2 .adv-msg-bubble { max-width: 88%; }
  body.strateego-v2 .adv-topbar { flex-wrap: wrap; gap: 6px; padding: .75rem 1rem; }
  body.strateego-v2 .adv-input-area { padding: .75rem .875rem .9rem; }

  /* Paginator */
  body.strateego-v2 .sv2-paginator { flex-direction: column; align-items: flex-start; gap: 8px; }

  /* Reputation score grid */
  body.strateego-v2 .sv2-rep-score-grid { grid-template-columns: 1fr 1fr; }
}

/* ════════════════════════
   BREAKPOINT  ≤ 480px
════════════════════════ */
@media (max-width: 480px) {

  body.strateego-v2 .sv2-main { padding: .875rem .875rem 2rem; }

  /* Mobile nav tighter */
  body.strateego-v2 .sv2-mobile-nav { padding-bottom: .75rem; margin-bottom: 1rem; }

  /* Delta grid: all single column on very small */
  body.strateego-v2 .int-delta-grid { grid-template-columns: 1fr 1fr; }

  /* Stat grid: 2 columns */
  body.strateego-v2 .int-stat-grid { grid-template-columns: 1fr 1fr; }
  body.strateego-v2 .int-situ-val { font-size: 18px; }

  /* Pills: full width pill row */
  body.strateego-v2 .sv2-pill { font-size: 11px; padding: 4px 9px; }

  /* CI grid full width */
  body.strateego-v2 .sv2-ci-grid { grid-template-columns: 1fr 1fr; }

  /* Advisor context chips: hide on very small */
  body.strateego-v2 .adv-context-chip { display: none; }
}
