/* Portfolio Page & Subpages Dedicated Stylesheet */

/* 1. Category Filter Controls */
.portfolio-filters-container {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
  margin-bottom: 3.5rem;
  padding: 0.5rem;
  border-radius: var(--radius-full);
  background-color: var(--color-surface);
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
  border: 1px solid var(--color-border);
}

.portfolio-filter-btn {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.65rem 1.5rem;
  border: none;
  background: transparent;
  color: var(--color-text-muted);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition);
}

.portfolio-filter-btn:hover {
  color: var(--color-accent);
}

.portfolio-filter-btn.active {
  background-color: #ffffff;
  color: var(--color-accent);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

/* 2. Modern Uniform Portfolio Card Grid */
.portfolio-grid-modern {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 4rem;
}

@media (max-width: 991px) {
  .portfolio-grid-modern {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .portfolio-grid-modern {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

/* 3. Project Card Styling */
.project-card-modern {
  background-color: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: var(--transition-premium);
  box-shadow: var(--shadow-sm);
  position: relative;
  cursor: pointer;
}

.project-card-modern:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg), 0 10px 30px rgba(232, 122, 30, 0.06);
  border-color: rgba(232, 122, 30, 0.25);
}

.project-card-modern .card-thumb {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
  background-color: #f8f9fa;
  border-bottom: 1px solid var(--color-border);
}

.project-card-modern .card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 1.5rem;
  background: #ffffff;
  transition: var(--transition-premium);
}

.project-card-modern:hover .card-thumb img {
  transform: scale(1.04);
}

.project-card-modern .card-content {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.project-card-modern .card-category-tag {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.5rem;
}

.project-card-modern .card-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 0.75rem;
}

.project-card-modern .card-desc {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.5;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

/* Glowing Highlight Metric Badge Pill */
.project-card-modern .card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.25rem;
  border-top: 1px solid var(--color-surface);
  margin-top: auto;
}

.project-card-modern .metric-badge-pill {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--color-accent);
  background-color: var(--color-accent-light);
  border: 1px solid rgba(232, 122, 30, 0.2);
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  box-shadow: 0 2px 10px rgba(232, 122, 30, 0.05);
}

.project-card-modern .card-link-arrow {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-text);
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  transition: var(--transition);
}

.project-card-modern .card-link-arrow::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 5;
}

.project-card-modern:hover .card-link-arrow {
  color: var(--color-accent);
}

/* 4. Case Study Details Redesign Styles */
.detail-content.case-study-detail-content {
  max-width: 100% !important;
  padding: 0 0 5rem 0 !important;
  gap: 0 !important;
}

.case-study-hero {
  background: linear-gradient(135deg, #0a0a0f 0%, #151622 100%);
  color: #ffffff;
  padding: 6.5rem 0 3.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  position: relative;
  overflow: hidden;
}

.results-graph-box {
  background: var(--color-surface);
  padding: 1.5rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  margin: 1.5rem 0 2rem 0;
}

.case-study-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 80% 20%, rgba(232, 122, 30, 0.08) 0%, transparent 50%);
  pointer-events: none;
}

.case-study-hero .breadcrumb-nav {
  margin-bottom: 1.5rem;
}

.case-study-hero .btn-back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
  font-weight: 600;
  transition: var(--transition);
}

.case-study-hero .btn-back:hover {
  color: #ffffff;
  transform: translateX(-4px);
}

.case-study-hero .hero-tag {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--color-accent);
  letter-spacing: 1.5px;
  background: rgba(232, 122, 30, 0.15);
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  display: inline-block;
  margin-bottom: 1rem;
}

.case-study-hero h1 {
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 1rem;
  letter-spacing: -0.5px;
}

.case-study-hero .hero-lead {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.7);
  max-width: 750px;
  line-height: 1.5;
  margin-bottom: 0;
}

/* 5. Metrics Dashboard Widget */
.dashboard-metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
  margin-bottom: 2.5rem;
}

@media (max-width: 900px) {
  .dashboard-metrics-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
}

@media (max-width: 480px) {
  .dashboard-metrics-grid {
    grid-template-columns: 1fr;
  }
}

.dashboard-metric-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  text-align: center;
  transition: var(--transition-premium);
  position: relative;
}

.dashboard-metric-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 10%;
  width: 80%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--color-accent), transparent);
  opacity: 0;
  transition: var(--transition);
}

.dashboard-metric-card:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(232, 122, 30, 0.2);
}

.dashboard-metric-card:hover::after {
  opacity: 1;
}

.dashboard-metric-card .metric-val {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--color-accent);
  line-height: 1.1;
  margin-bottom: 0.5rem;
  text-shadow: 0 0 20px rgba(232, 122, 30, 0.15);
}

.dashboard-metric-card .metric-lbl {
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* 6. Case Study Two-Column Grid */
.case-study-layout-grid {
  display: flex;
  gap: 3rem;
  margin-top: 3.5rem;
  margin-bottom: 4rem;
}

.case-study-main-col {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.case-study-sidebar-col {
  width: 320px;
  flex-shrink: 0;
}

@media (max-width: 991px) {
  .case-study-layout-grid {
    flex-direction: column;
    gap: 3rem;
  }
  .case-study-sidebar-col {
    width: 100%;
  }
}

/* Section Sub-Layouts */
.case-study-section-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 1rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.case-study-section-title::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background-color: var(--color-accent);
  border-radius: var(--radius-full);
}

.case-study-main-col p {
  color: var(--color-text-muted);
  font-size: 1rem;
  line-height: 1.65;
  margin-bottom: 1.25rem;
}

/* 7. Checklist Styling */
.case-study-checklist {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-top: 1rem;
  margin-bottom: 1.5rem;
}

.case-study-checklist li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.95rem;
  color: var(--color-text-muted);
}

.case-study-checklist li svg {
  width: 1.15rem;
  height: 1.15rem;
  color: var(--color-green);
  flex-shrink: 0;
  margin-top: 0.2rem;
}

/* 8. Fact File Sidebar Card */
.case-study-sidebar-card {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  position: sticky;
  top: 100px;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.case-study-sidebar-card h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.sidebar-info-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.sidebar-info-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.sidebar-info-value {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-text);
}

.sidebar-tech-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.25rem;
}

.sidebar-tech-pill {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-text-muted);
  background-color: #ffffff;
  border: 1px solid var(--color-border);
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
}

/* 9. Testimonial Design */
.testimonial-premium-box {
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-left: 4px solid var(--color-accent);
  border-radius: var(--radius-md);
  padding: 2rem;
  margin-top: 2rem;
  position: relative;
}

.testimonial-premium-box::before {
  content: '"';
  position: absolute;
  top: 0.5rem;
  left: 1rem;
  font-size: 5rem;
  font-family: Georgia, serif;
  color: rgba(232, 122, 30, 0.05);
  line-height: 1;
}

.testimonial-premium-box .quote-txt {
  font-family: var(--font-sans);
  font-size: 1.05rem;
  font-style: italic;
  line-height: 1.6;
  color: var(--color-text);
  margin-bottom: 1.25rem;
  position: relative;
  z-index: 1;
}

.testimonial-premium-box .quote-author {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.testimonial-premium-box .quote-author-name {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-text);
}

.testimonial-premium-box .quote-author-role {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  font-weight: 500;
}

/* Mobile Category Filter Scrollable Bar */
@media (max-width: 991px) {
  .portfolio-filters-container {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    width: 100%;
    max-width: 100%;
    justify-content: flex-start;
    padding: 0.5rem 1.5rem;
    border-radius: var(--radius-full);
    -webkit-overflow-scrolling: touch;
    gap: 0.5rem;
    margin-bottom: 2.5rem;
    scrollbar-width: none; /* Hide scrollbar for Firefox */
  }
  .portfolio-filters-container::-webkit-scrollbar {
    display: none; /* Hide scrollbar for Chrome/Safari/Opera */
  }
  .portfolio-filter-btn {
    flex-shrink: 0;
    padding: 0.5rem 1.25rem;
    font-size: 0.85rem;
  }
}

/* Responsive Case Study Hero & Spacing Details */
@media (max-width: 991px) {
  .case-study-hero {
    padding: 3.5rem 0 2.5rem;
  }
  .case-study-hero h1 {
    font-size: 1.95rem;
  }
  .case-study-hero .hero-lead {
    font-size: 0.95rem;
    line-height: 1.55;
  }
}

@media (max-width: 576px) {
  .case-study-hero {
    padding: 3rem 0 2rem;
  }
  .case-study-hero h1 {
    font-size: 1.65rem;
    line-height: 1.25;
  }
  .testimonial-premium-box {
    padding: 1.25rem;
    margin-top: 1.5rem;
  }
  .testimonial-premium-box .quote-txt {
    font-size: 0.95rem;
    line-height: 1.5;
  }
}

/* Circular Text Emblem for Dr. Madhavi */
.dr-madhavi-avatar-emblem {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: var(--color-accent-light, rgba(232, 122, 30, 0.05));
  color: var(--color-accent, #e87a1e);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.8rem;
  border: 2px dashed rgba(232, 122, 30, 0.3);
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  box-shadow: 0 4px 12px rgba(232, 122, 30, 0.04);
}

.project-card-modern:hover .dr-madhavi-avatar-emblem {
  background: var(--color-accent, #e87a1e);
  color: #ffffff;
  border-color: var(--color-accent, #e87a1e);
  transform: scale(1.08) rotate(5deg);
  box-shadow: 0 10px 20px rgba(232, 122, 30, 0.2), 0 0 12px rgba(232, 122, 30, 0.1);
}

/* ==========================================================================
   Executive Analytics Tables & Performance Grids
   ========================================================================== */
.performance-grid-two {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.75rem;
  margin: 1.5rem 0 2rem 0;
  align-items: stretch;
}

.performance-grid-two > div {
  display: flex;
  flex-direction: column;
}

.table-section-heading {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.65rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-text, #17171c);
}

.table-section-heading svg {
  width: 18px;
  height: 18px;
  color: var(--color-accent, #e87a1e);
  flex-shrink: 0;
}

.performance-table-container,
.case-study-detail-content .table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 0.5rem 0 1.5rem 0;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  background-color: #ffffff;
  box-shadow: 0 4px 16px -2px rgba(15, 23, 42, 0.05), 0 2px 6px -1px rgba(15, 23, 42, 0.02);
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.performance-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.88rem;
  text-align: left;
  line-height: 1.5;
}

.performance-table thead {
  background-color: #f8fafc;
}

.performance-table th {
  background-color: #f8fafc;
  color: #475569;
  padding: 0.9rem 1.25rem;
  font-weight: 700;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-bottom: 2px solid #e2e8f0;
  white-space: nowrap;
}

.performance-table td {
  padding: 0.95rem 1.25rem;
  border-bottom: 1px solid #f1f5f9;
  color: #334155;
  vertical-align: middle;
  font-size: 0.88rem;
}

.performance-table tbody tr {
  transition: background-color 0.15s ease;
}

.performance-table tbody tr:hover {
  background-color: #f8fafc;
}

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

.performance-table strong {
  color: #0f172a;
  font-weight: 700;
}

/* Metric Badges & Highlight Tags */
.badge-winner {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  background: #ecfdf5;
  color: #047857;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: 9999px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  border: 1px solid #a7f3d0;
  margin-left: 0.4rem;
}

.badge-metric {
  display: inline-block;
  background: #eff6ff;
  color: #1d4ed8;
  font-weight: 700;
  font-size: 0.82rem;
  padding: 0.15rem 0.55rem;
  border-radius: 6px;
  border: 1px solid #bfdbfe;
}

.badge-sub {
  display: inline-block;
  font-size: 0.75rem;
  color: #64748b;
  margin-left: 0.35rem;
  font-weight: 500;
}

.badge-success {
  display: inline-block;
  background: #ecfdf5;
  color: #065f46;
  font-weight: 700;
  font-size: 0.82rem;
  padding: 0.2rem 0.6rem;
  border-radius: 6px;
  border: 1px solid #a7f3d0;
}

.channel-cell {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  color: #1e293b;
}

.channel-cell svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.account-link {
  color: var(--color-accent, #e87a1e);
  font-weight: 600;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.account-link:hover {
  text-decoration: underline;
}

/* ==========================================================================
   Executive SVG Analytics Graph Component
   ========================================================================== */
.analytics-graph-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 1.75rem;
  box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.05), 0 8px 10px -6px rgba(15, 23, 42, 0.02);
  margin: 1.75rem 0 2.25rem 0;
  position: relative;
  overflow: visible;
}

.analytics-graph-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #f1f5f9;
}

.graph-title-group h4 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 0.25rem;
  letter-spacing: -0.01em;
}

.graph-title-group p {
  font-size: 0.85rem;
  color: #64748b;
  margin-bottom: 0;
}

.graph-kpi-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
}

.graph-kpi-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 700;
  background: #f8fafc;
  color: #334155;
  border: 1px solid #e2e8f0;
}

.graph-kpi-pill.primary {
  background: rgba(232, 122, 30, 0.1);
  color: #c25e0e;
  border-color: rgba(232, 122, 30, 0.25);
}

.graph-kpi-pill.success {
  background: #ecfdf5;
  color: #047857;
  border-color: #a7f3d0;
}

.analytics-graph-wrapper {
  position: relative;
  width: 100%;
  margin: 0.5rem 0 1.25rem 0;
}

.analytics-graph-svg {
  width: 100%;
  height: auto;
  display: block;
  overflow: visible;
}

.analytics-graph-legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  padding-top: 1rem;
  margin-top: 0.5rem;
  border-top: 1px dashed #e2e8f0;
  font-size: 0.82rem;
  font-weight: 600;
  color: #475569;
}

.graph-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.graph-legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.graph-legend-dot.orange {
  background: #e87a1e;
  box-shadow: 0 0 8px rgba(232, 122, 30, 0.4);
}

.graph-legend-dot.emerald {
  background: #10b981;
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.4);
}

.graph-legend-dot.purple {
  background: #8b5cf6;
  box-shadow: 0 0 8px rgba(139, 92, 246, 0.4);
}

.graph-legend-dot.pink {
  background: #ec4899;
  box-shadow: 0 0 8px rgba(236, 72, 153, 0.4);
}

.graph-legend-dot.dashed {
  width: 16px;
  height: 0;
  border-top: 2px dashed #94a3b8;
  border-radius: 0;
}

@media (max-width: 640px) {
  .analytics-graph-card {
    padding: 1.25rem;
  }
  .analytics-graph-header {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ==========================================================================
   Interactive Graph Controls, Tooltip & Crosshairs
   ========================================================================== */
.analytics-graph-card {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.graph-series-toggle {
  display: inline-flex;
  align-items: center;
  background: #f1f5f9;
  padding: 3px;
  border-radius: 9999px;
  gap: 3px;
  border: 1px solid #e2e8f0;
}

.series-btn {
  border: none;
  background: transparent;
  padding: 0.32rem 0.85rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: #64748b;
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  font-family: inherit;
  white-space: nowrap;
}

.series-btn:hover {
  color: #0f172a;
}

.series-btn.active {
  background: #ffffff;
  color: var(--color-accent, #e87a1e);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.graph-interactive-tooltip {
  position: absolute;
  top: 0;
  left: 0;
  transform: translate(-50%, -100%);
  background: rgba(15, 23, 42, 0.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #ffffff;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  font-size: 0.82rem;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.35), 0 8px 10px -6px rgba(0, 0, 0, 0.25);
  pointer-events: none;
  z-index: 60;
  min-width: 210px;
  max-width: 280px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: opacity 0.15s ease;
}

.graph-interactive-tooltip::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: var(--arrow-left, 50%);
  transform: translateX(-50%);
  border-width: 6px 6px 0 6px;
  border-style: solid;
  border-color: rgba(15, 23, 42, 0.96) transparent transparent transparent;
}

/* Flipped bottom state when data point is in top area of graph */
.graph-interactive-tooltip.tooltip-flip-bottom {
  transform: translate(-50%, 0);
}

.graph-interactive-tooltip.tooltip-flip-bottom::after {
  bottom: auto;
  top: -6px;
  border-width: 0 6px 6px 6px;
  border-color: transparent transparent rgba(15, 23, 42, 0.96) transparent;
}

.tooltip-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  padding-bottom: 0.4rem;
}

.tooltip-badge {
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  background: rgba(232, 122, 30, 0.25);
  color: #fb923c;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  letter-spacing: 0.05em;
}

.tooltip-phase {
  font-size: 0.85rem;
  font-weight: 700;
  color: #ffffff;
}

.tooltip-metrics {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.tooltip-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.8rem;
}

.tooltip-row .tooltip-label {
  color: #94a3b8;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

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

.tooltip-val {
  font-weight: 800;
  font-feature-settings: 'tnum';
  font-variant-numeric: tabular-nums;
  color: #f8fafc;
}

.val-primary {
  color: #fb923c;
}

.val-secondary {
  color: #34d399;
}

.tooltip-note {
  font-size: 0.72rem;
  color: #cbd5e1;
  margin-top: 0.5rem;
  padding-top: 0.45rem;
  border-top: 1px dashed rgba(255, 255, 255, 0.14);
  line-height: 1.4;
}

/* SVG Interactive Nodes */
.analytics-graph-svg circle:not(.graph-active-halo) {
  cursor: pointer;
  transition: r 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), stroke-width 0.2s ease, filter 0.2s ease;
}

.analytics-graph-svg circle:hover,
.analytics-graph-svg circle.node-active {
  r: 8.5px !important;
  stroke-width: 4px !important;
  filter: drop-shadow(0 0 8px rgba(232, 122, 30, 0.7));
}

.graph-crosshair-line {
  stroke-dasharray: 4 4;
  opacity: 0.75;
  transition: x1 0.1s ease, x2 0.1s ease;
}

.graph-active-halo {
  animation: haloPulse 1.8s infinite cubic-bezier(0.4, 0, 0.6, 1);
}

@keyframes haloPulse {
  0% { r: 9px; opacity: 0.9; stroke-width: 2px; }
  50% { r: 14px; opacity: 0.3; stroke-width: 3px; }
  100% { r: 9px; opacity: 0.9; stroke-width: 2px; }
}

.graph-legend-item {
  cursor: pointer;
  user-select: none;
  transition: all 0.2s ease;
  padding: 0.35rem 0.65rem;
  border-radius: 8px;
}

.graph-legend-item:hover {
  background: #f1f5f9;
}

.graph-legend-item.dimmed {
  opacity: 0.35;
  text-decoration: line-through;
}

@media (max-width: 640px) {
  .graph-series-toggle {
    width: 100%;
    justify-content: space-between;
  }
  .series-btn {
    flex: 1;
    text-align: center;
    padding: 0.35rem 0.4rem;
  }
}