/* Clean Light Theme - Production Ready & Mobile Optimized */

/* Light theme background image */
html[data-theme="light"] body {
  /* background-image: url("/images/light-bg-image.png") !important; */
  background-color: #ffffff;
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  background-attachment: fixed !important;
}

/* Basic light theme colors */

/* Transparent divs */

/* Header styling - Pink header */
html[data-theme="light"] header {
  background: #ff006e !important;
  border-bottom: 1px solid #e2e8f0;
}

html[data-theme="light"] header div {
  background: transparent !important;
  background-color: transparent !important;
}

/* Footer styling */
html[data-theme="light"] footer {
  background: #ffffff !important;
  border-top: 1px solid #e2e8f0;
  color: #0f172a;
}

/* Text colors */
html[data-theme="light"] h1,
html[data-theme="light"] h2,
html[data-theme="light"] h3 {
  color: #0f172a !important;
}

html[data-theme="light"] p {
  color: #334155 !important;
}

/* Hero section text - white on pink header */
html[data-theme="light"] header h1,
html[data-theme="light"] header p,
html[data-theme="light"] header span {
  color: #ffffff !important;
}

/* Footer Base Styles - Light Theme */
html[data-theme="light"] #site-footer {
  margin-top: 120px;
  padding: 60px 20px 30px;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  background: transparent !important;
}

html[data-theme="light"] .footer-container {
  max-width: 1200px;
  margin: 0 auto;
}

/* Footer Grid - Responsive */
html[data-theme="light"] .footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  margin-bottom: 60px;
}

@media (max-width: 768px) {
  html[data-theme="light"] .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

html[data-theme="light"] .footer-column h3 {
  color: #0f172a !important;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 20px;
}

html[data-theme="light"] .footer-column a {
  color: #64748b !important;
  text-decoration: none;
}

html[data-theme="light"] .footer-column a:hover {
  color: #3b82f6 !important;
}

html[data-theme="light"] .footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  color: #64748b !important;
}

/* Remove white backgrounds from footer elements */
html[data-theme="light"] .footer-column ul,
html[data-theme="light"] .footer-column li {
  background: transparent !important;
}

/* Override div transparency for footer */
html[data-theme="light"] #site-footer div,
html[data-theme="light"] .footer-container div,
html[data-theme="light"] .footer-grid div,
html[data-theme="light"] .footer-column div {
  background: transparent !important;
  background-color: transparent !important;
}

/* Nav styling - White text on pink header */
html[data-theme="light"] nav,
html[data-theme="light"] nav a,
html[data-theme="light"] nav span,
html[data-theme="light"] nav div {
  color: #ffffff !important;
}

html[data-theme="light"] nav a:hover {
  color: rgba(255, 255, 255, 0.8) !important;
}

/* Logo text */
html[data-theme="light"] .text-2xl {
  color: #ffffff !important;
}

html[data-theme="light"] .text-yellow-300 {
  color: #ffffff !important;
}

/* User email */
html[data-theme="light"] #user-email {
  color: #ffffff !important;
}

/* Theme Toggle Button - Mobile Optimized */
#theme-toggle {
  z-index: 99999;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
  position: relative;
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
}

@media (max-width: 640px) {
  #theme-toggle {
    width: 3rem;
    height: 3rem;
  }
}

#theme-toggle i {
  font-size: 1.5rem;
  color: white;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 2;
  position: relative;
}

@media (max-width: 640px) {
  #theme-toggle i {
    font-size: 1.25rem;
  }
}

#theme-toggle:hover {
  transform: scale(1.1);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
  border-color: rgba(255, 255, 255, 0.5);
}

@media (hover: none) {
  #theme-toggle:hover {
    transform: none;
  }
}

#theme-toggle:active {
  transform: scale(0.95);
}

/* Morphing animation on click */
#theme-toggle.morphing {
  animation: morph 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes morph {
  0% {
    border-radius: 50%;
    transform: rotate(0deg) scale(1);
  }
  25% {
    border-radius: 30%;
    transform: rotate(90deg) scale(1.15);
  }
  50% {
    border-radius: 20%;
    transform: rotate(180deg) scale(0.9);
  }
  75% {
    border-radius: 30%;
    transform: rotate(270deg) scale(1.1);
  }
  100% {
    border-radius: 50%;
    transform: rotate(360deg) scale(1);
  }
}

#theme-toggle.morphing i {
  animation: iconSpin 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes iconSpin {
  0% {
    transform: rotate(0deg) scale(1);
    opacity: 1;
  }
  50% {
    transform: rotate(180deg) scale(0);
    opacity: 0;
  }
  51% {
    transform: rotate(-180deg) scale(0);
    opacity: 0;
  }
  100% {
    transform: rotate(0deg) scale(1);
    opacity: 1;
  }
}

/* Light theme specific button styling */
html[data-theme="light"] #theme-toggle {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(255, 0, 110, 0.3);
  box-shadow: 0 8px 16px rgba(255, 0, 110, 0.2);
}

html[data-theme="light"] #theme-toggle i {
  color: #ff006e;
}

html[data-theme="light"] #theme-toggle:hover {
  background: rgba(255, 255, 255, 1);
  border-color: rgba(255, 0, 110, 0.5);
  box-shadow: 0 12px 24px rgba(255, 0, 110, 0.3);
}

/* Dial Icons - Mobile Optimized */
html[data-theme="light"] .dial .w-16,
html[data-theme="light"] .dial .w-20 {
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15) !important;
  border: 2px solid rgba(255, 255, 255, 0.8);
}

/* Colorful dial icons - solid colors */
html[data-theme="light"] .dial-container:nth-child(1) .w-20 {
  background: #ff006e !important;
}

html[data-theme="light"] .dial-container:nth-child(2) .w-16 {
  background: #06ffa5 !important;
}

html[data-theme="light"] .dial-container:nth-child(3) .w-16 {
  background: #a855f7 !important;
}

html[data-theme="light"] .dial-container:nth-child(4) .w-16 {
  background: #ff6b00 !important;
}

html[data-theme="light"] .dial-container:nth-child(5) .w-16 {
  background: #0096ff !important;
}

html[data-theme="light"] .dial-container:nth-child(6) .w-16 {
  background: #4361ee !important;
}

html[data-theme="light"] .dial-container:nth-child(7) .w-16 {
  background: #ff5400 !important;
}

/* Make dial text visible */
html[data-theme="light"] .dial h3 {
  color: #0f172a !important;
}

html[data-theme="light"] .dial p {
  color: #64748b !important;
}

/* Core Web Vitals text */
html[data-theme="light"] .dial .text-gray-600 {
  color: #64748b !important;
}

/* Feature card icons */
html[data-theme="light"] .card-hover:nth-child(1) .w-16,
html[data-theme="light"] .card-hover:nth-child(1) .bg-gradient-to-br {
  background: #ff006e !important;
}

html[data-theme="light"] .card-hover:nth-child(2) .w-16,
html[data-theme="light"] .card-hover:nth-child(2) .bg-gradient-to-br {
  background: #0096ff !important;
}

html[data-theme="light"] .card-hover:nth-child(3) .w-16,
html[data-theme="light"] .card-hover:nth-child(3) .bg-gradient-to-br {
  background: #a855f7 !important;
}

/* Glass effect cards */
html[data-theme="light"] .glass-effect,
html[data-theme="light"] .dial-face {
  background: rgba(255, 255, 255, 0.8) !important;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 0, 0, 0.1);
}

/* Mobile optimizations */
@media (max-width: 640px) {
  html[data-theme="light"] #site-footer {
    margin-top: 60px;
    padding: 40px 15px 20px;
  }

  html[data-theme="light"] .footer-column h3 {
    font-size: 16px;
  }
}

/* Prevent text size adjustment on mobile */
html[data-theme="light"] {
  -webkit-text-size-adjust: 100%;
  -moz-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

/* Smooth scrolling */
@media (prefers-reduced-motion: no-preference) {
  html[data-theme="light"] {
    scroll-behavior: smooth;
  }
}

/* Accessibility - Focus styles */
html[data-theme="light"] *:focus-visible {
  outline: 2px solid #ff006e;
  outline-offset: 2px;
}

/* Performance - GPU acceleration for animations */
#theme-toggle,
#theme-toggle i {
  will-change: transform;
}

#theme-toggle.morphing {
  will-change: transform, border-radius;
}

/* Hero input section - Mobile friendly */
@media (max-width: 768px) {
  html[data-theme="light"] .max-w-2xl .flex {
    flex-direction: column !important;
    gap: 0.5rem;
  }

  html[data-theme="light"] #url-input {
    width: 100% !important;
    padding: 1rem !important;
    font-size: 14px !important;
  }

  html[data-theme="light"] #analyze-btn {
    width: 100% !important;
    margin-left: 0 !important;
    padding: 1rem !important;
    font-size: 14px !important;
  }

  html[data-theme="light"] #analyze-btn i {
    margin-right: 0.5rem;
  }
}

/* Fix theme toggle z-index - make it come to front */
#theme-toggle {
  z-index: 9999 !important;
  position: relative !important;
}

/* Also fix the parent container */
.fixed.top-4.left-4 {
  z-index: 9999 !important;
}

#theme-toggle {
  z-index: 9999 !important;
  position: relative !important;
}

/* Also fix the parent container */
.fixed.top-4.left-4 {
  z-index: 9999 !important;
}

/*************************INFLUERNCER SCOREBOARD*****************************/
#influencer-scoreboard {
  margin: 40px 0;
  padding: 40px;
  background: #fe2e6d;
  border: 2px solid rgba(139, 92, 246, 0.3);
  border-radius: 24px;
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.5),
    0 0 40px rgba(139, 92, 246, 0.2);
  backdrop-filter: blur(20px);
}

.influencer-glass-card {
  position: relative;
  overflow: hidden;
}

.influencer-glass-card::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    transparent,
    rgba(139, 92, 246, 0.1),
    transparent
  );
  animation: shine 6s infinite linear;
}

@keyframes shine {
  0% {
    transform: translateX(-100%) translateY(-100%) rotate(45deg);
  }
  100% {
    transform: translateX(100%) translateY(100%) rotate(45deg);
  }
}

/* Status Badge */

.status-glow {
  position: absolute;
  inset: -2px;
  background: linear-gradient(135deg, #ec4899, #f59e0b);
  border-radius: inherit;
  filter: blur(8px);
  opacity: 0.6;
  z-index: -1;
}

/* Viral Metrics Grid */
.viral-metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin: 40px 0;
}

@media (max-width: 1200px) {
  .viral-metrics-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

.viral-metric-card {
  background: rgba(30, 41, 59, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 24px;
  transition: all 0.3s ease;
}

.viral-metric-card:hover {
  transform: translateY(-5px);
  border-color: rgba(59, 130, 246, 0.5);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.viral-metric-card.featured {
  border: 2px solid rgba(245, 158, 11, 0.5);
  box-shadow: 0 10px 30px rgba(245, 158, 11, 0.2);
}

.metric-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}

.metric-icon {
  font-size: 24px;
}

.metric-header h4 {
  flex: 1;
  margin: 0;
  font-size: 1.1rem;
  color: #f8fafc;
}

.metric-trend {
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
}

.metric-trend.up {
  background: rgba(16, 185, 129, 0.2);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.metric-trend.down {
  background: rgba(239, 68, 68, 0.2);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.metric-value {
  margin: 20px 0;
  display: flex;
  align-items: baseline;
}

.value-number {
  font-size: 48px;
  font-weight: 900;
  background: linear-gradient(135deg, #8b5cf6, #ec4899);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.value-unit {
  font-size: 18px;
  color: #94a3b8;
  margin-left: 4px;
}

.metric-meter {
  margin: 20px 0;
}

.meter-bar {
  height: 8px;
  background: linear-gradient(90deg, #10b981, #f59e0b);
  border-radius: 4px;
  margin-bottom: 8px;
  position: relative;
  overflow: hidden;
}

.meter-bar::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.4),
    transparent
  );
  animation: shimmer 2s infinite;
}

.meter-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: #94a3b8;
}

.meter-labels span:last-child {
  color: #ec4899;
  font-weight: 700;
}

@keyframes shimmer {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

/* Money Calculator */
.metric-money {
  margin: 20px 0;
}

.money-current {
  display: flex;
  align-items: baseline;
  margin-bottom: 15px;
}

.money-amount {
  font-size: 36px;
  font-weight: 900;
  color: #f59e0b;
  line-height: 1;
}

.money-label {
  color: #94a3b8;
  margin-left: 4px;
}

.money-potential {
  margin-top: 20px;
}

.potential-bar {
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  margin-bottom: 8px;
  position: relative;
}

.potential-fill {
  height: 100%;
  background: linear-gradient(90deg, #f59e0b, #fbbf24);
  border-radius: 3px;
  position: relative;
  overflow: hidden;
}

.potential-fill::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.4),
    transparent
  );
  animation: shimmer 2s infinite;
}

.potential-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.875rem;
  color: #94a3b8;
}

.potential-labels span:nth-child(3) {
  color: #f59e0b;
  font-weight: 700;
}

.money-breakdown {
  margin-top: 20px;
  padding-top: 15px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.breakdown-item {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
}

.breakdown-label {
  color: #94a3b8;
  font-size: 0.875rem;
}

.breakdown-value {
  font-weight: 700;
  font-size: 0.875rem;
}

.breakdown-value.premium {
  color: #8b5cf6;
}

.breakdown-value.high {
  color: #10b981;
}

/* Competition Section */
.competition-section {
  margin: 40px 0;
  padding: 30px;
  background: #fe2e6d;
  border-radius: 20px;
  border: 1px solid rgba(139, 92, 246, 0.2);
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}

.section-header h3 {
  margin: 0;
  font-size: 1.5rem;
  background: linear-gradient(135deg, #ec4899, #8b5cf6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.compare-btn {
  padding: 12px 24px;
  background: linear-gradient(135deg, #8b5cf6, #6366f1);
  color: white;
  border: none;
  border-radius: 12px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
}

.compare-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(139, 92, 246, 0.4);
}

.competitor-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

@media (max-width: 768px) {
  .competitor-grid {
    grid-template-columns: 1fr;
  }
}

.competitor-card {
  background: rgba(21, 27, 46, 0.8);
  border: 2px solid transparent;
  border-radius: 16px;
  padding: 24px;
  transition: all 0.3s ease;
}

.competitor-card.rival {
  border-color: rgba(239, 68, 68, 0.3);
}

.competitor-card.target {
  border-color: rgba(59, 130, 246, 0.3);
}

.competitor-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.competitor-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
}

.competitor-avatar {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 700;
  color: white;
}

.competitor-info {
  flex: 1;
}

.competitor-info h4 {
  margin: 0 0 4px 0;
  color: #f8fafc;
  font-size: 1.2rem;
}

.competitor-niche {
  color: #94a3b8;
  font-size: 0.875rem;
}

.competitor-status {
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.rival .competitor-status {
  background: rgba(239, 68, 68, 0.2);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.target .competitor-status {
  background: rgba(59, 130, 246, 0.2);
  color: #3b82f6;
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.comparison-metrics {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.comparison-metric {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
}

.comparison-metric.win {
  border-left: 3px solid #10b981;
}

.comparison-metric.lose {
  border-left: 3px solid #ef4444;
}

.metric-name {
  color: #cbd5e1;
  font-size: 0.875rem;
}

.metric-value {
  font-weight: 700;
  font-size: 0.875rem;
}

.win .metric-value {
  color: #10b981;
}

/* Share Section */
.share-section {
  margin: 40px 0;
  padding: 30px;
  background: rgba(30, 41, 59, 0.5);
  border-radius: 20px;
  border: 1px solid rgba(139, 92, 246, 0.2);
}

.share-options {
  display: flex;
  gap: 12px;
}

.share-btn {
  padding: 10px 20px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  color: #cbd5e1;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
}

.share-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}

.share-btn.instagram:hover {
  background: linear-gradient(135deg, #833ab4, #e1306c, #f77737);
  color: white;
  border-color: transparent;
}

.share-btn.twitter:hover {
  background: #1da1f2;
  color: white;
  border-color: transparent;
}

.share-btn.story:hover {
  background: linear-gradient(135deg, #8b5cf6, #ec4899);
  color: white;
  border-color: transparent;
}

.share-preview {
  margin-top: 30px;
  display: flex;
  justify-content: center;
}

.share-card {
  width: 300px;
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  position: relative;
}

html.new-ui .share-card {
  background: #151b2e;
  border: 2px solid #1e2539;
}

.share-card-header {
  height: 120px;
  position: relative;
  overflow: hidden;
}

.share-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #6366f1, #8b5cf6, #ec4899);
  opacity: 0.8;
}

.share-score {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 60px;
  font-weight: 900;
  color: white;
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.share-badge {
  position: absolute;
  bottom: 20px;
  left: 0;
  right: 0;
  text-align: center;
  padding: 8px 16px;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  font-weight: 700;
  font-size: 0.875rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  backdrop-filter: blur(10px);
}

.share-card-body {
  padding: 30px;
}

.share-card-body h4 {
  margin: 0 0 15px 0;
  color: #1e293b;
  font-size: 1.3rem;
  line-height: 1.4;
}

html.new-ui .share-card-body h4 {
  color: #f8fafc;
}

.share-stats {
  color: #64748b;
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 20px;
}

html.new-ui .share-stats {
  color: #cbd5e1;
}

.share-hashtags {
  color: #8b5cf6;
  font-size: 0.875rem;
  font-weight: 600;
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid rgba(139, 92, 246, 0.2);
}

.share-watermark {
  position: absolute;
  bottom: 10px;
  right: 15px;
  color: rgba(0, 0, 0, 0.3);
  font-size: 0.75rem;
  font-weight: 600;
}

html.new-ui .share-watermark {
  color: rgba(255, 255, 255, 0.3);
}

/* Tier Progress */
.tier-progress-section {
  margin-top: 40px;
  padding: 30px;
  background: rgba(30, 41, 59, 0.5);
  border-radius: 20px;
  border: 1px solid rgba(139, 92, 246, 0.2);
}

.tier-progress-section h3 {
  margin: 0 0 30px 0;
  color: #f8fafc;
  font-size: 1.3rem;
  text-align: center;
}

.tier-progress {
  display: flex;
  justify-content: space-between;
  position: relative;
  margin: 40px 0 20px;
}

.tier-progress::before {
  content: "";
  position: absolute;
  top: 24px;
  left: 0;
  right: 0;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  z-index: 1;
}

.tier-progress-bar {
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  margin: 30px 0 20px;
  overflow: hidden;
}

.tier-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #10b981, #3b82f6, #8b5cf6);
  border-radius: 4px;
  position: relative;
  overflow: hidden;
}

.tier-progress-fill::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  animation: shimmer 3s infinite;
}

.tier-marker {
  position: relative;
  z-index: 2;
  text-align: center;
}

.tier-dot {
  width: 20px;
  height: 20px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  margin: 0 auto 10px;
  border: 3px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.tier-marker.active .tier-dot {
  background: linear-gradient(135deg, #8b5cf6, #ec4899);
  border-color: rgba(139, 92, 246, 0.5);
  box-shadow: 0 0 20px rgba(139, 92, 246, 0.5);
  transform: scale(1.2);
}

.tier-label {
  font-size: 0.875rem;
  color: #94a3b8;
  margin-bottom: 4px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.tier-marker.active .tier-label {
  color: #8b5cf6;
  font-weight: 800;
}

.tier-score {
  font-size: 0.75rem;
  color: #64748b;
  font-weight: 600;
}

.tier-tip {
  margin-top: 20px;
  padding: 15px;
  background: rgba(139, 92, 246, 0.1);
  border: 1px solid rgba(139, 92, 246, 0.2);
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.tip-icon {
  font-size: 20px;
  flex-shrink: 0;
}

.tip-text {
  color: #cbd5e1;
  font-size: 0.95rem;
  line-height: 1.5;
}

/* Viral Indicator */
.viral-indicator {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 100;
}

.viral-hot {
  animation: pulseFire 1.5s ease-in-out infinite;
}

@keyframes pulseFire {
  0%,
  100% {
    opacity: 0.7;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.1);
  }
}

/* Prediction Items */
.metric-prediction,
.metric-comparison,
.platform-rating {
  margin-top: 15px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.875rem;
}

.prediction-icon,
.comparison-icon {
  font-size: 16px;
  flex-shrink: 0;
}

.prediction-text,
.comparison-text {
  color: #cbd5e1;
  line-height: 1.4;
}

/* Algorithm Tips */
.algorithm-tips {
  margin: 15px 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tip-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  background: rgba(59, 130, 246, 0.1);
  border-radius: 8px;
  font-size: 0.875rem;
}

.tip-icon {
  color: #3b82f6;
  font-size: 14px;
}

.tip-text {
  color: #cbd5e1;
}

.platform-rating {
  background: rgba(236, 72, 153, 0.1);
  border: 1px solid rgba(236, 72, 153, 0.2);
  margin-top: 15px;
}

.rating-label {
  color: #ec4899;
  font-weight: 700;
  font-size: 0.875rem;
}

/* Detail Items */
.metric-details {
  margin: 15px 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.detail-item {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.detail-label {
  color: #94a3b8;
  font-size: 0.875rem;
}

.detail-value {
  color: #f8fafc;
  font-weight: 700;
  font-size: 0.875rem;
}

/* Progress to Target */
.progress-to-target {
  margin-top: 20px;
}

.progress-bar {
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  margin-bottom: 10px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #3b82f6, #8b5cf6);
  border-radius: 4px;
  position: relative;
}

.progress-fill::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.4),
    transparent
  );
  animation: shimmer 2s infinite;
}

.progress-text {
  text-align: center;
  color: #3b82f6;
  font-weight: 700;
  font-size: 0.875rem;
  margin-bottom: 15px;
}

.next-steps {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  background: rgba(59, 130, 246, 0.1);
  border-radius: 8px;
  margin-top: 10px;
}

.step-icon {
  color: #10b981;
  font-size: 16px;
}

.step-text {
  color: #cbd5e1;
  font-size: 0.875rem;
}

/* Add to your CSS file */
.comparison-metric .metric-value.higher {
  color: #ef4444; /* Red - rival is beating you */
}

.comparison-metric .metric-value.lower {
  color: #10b981; /* Green - you're beating rival */
}

.comparison-metric .metric-value.equal {
  color: #6b7280; /* Gray - equal */
}

.progress-fill {
  background: linear-gradient(90deg, #3b82f6, #8b5cf6);
  height: 8px;
  border-radius: 4px;
  transition: width 1s ease;
}

.competitor-card {
  background: white;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  border: 1px solid #e5e7eb;
}

.competitor-card.rival {
  border-left: 4px solid #ef4444; /* Red border for rival */
}

.competitor-card.target {
  border-left: 4px solid #10b981; /* Green border for target */
}

.competitor-status {
  background: #f3f4f6;
  color: #6b7280;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: bold;
  text-transform: uppercase;
}

.competitor-card.rival .competitor-status {
  background: #fee2e2;
  color: #dc2626;
}

.competitor-card.target .competitor-status {
  background: #d1fae5;
  color: #059669;
}

/* Share card styling */
.share-card {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  max-width: 400px;
  margin: 0 auto;
}

.share-card-header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 30px 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.share-gradient {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    45deg,
    rgba(255, 255, 255, 0.1) 25%,
    transparent 25%
  );
  background-size: 20px 20px;
}

.share-score {
  font-size: 64px;
  font-weight: bold;
  color: white;
  margin: 0;
  text-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  position: relative;
  z-index: 1;
}

.share-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.2);
  color: white;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: bold;
  margin-top: 10px;
  backdrop-filter: blur(10px);
  position: relative;
  z-index: 1;
}

.share-card-body {
  padding: 25px;
  text-align: center;
}

.share-card-body h4 {
  margin: 0 0 15px 0;
  color: #333;
  font-size: 20px;
}

.share-stats {
  color: #666;
  line-height: 1.6;
  margin-bottom: 20px;
  font-size: 16px;
}

.share-hashtags {
  color: #8b5cf6;
  font-size: 14px;
  line-height: 1.4;
}

.share-watermark {
  text-align: center;
  padding: 15px;
  color: #999;
  font-size: 12px;
  border-top: 1px solid #eee;
}

/* Share buttons */
.share-options {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

.share-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px;
  border: none;
  border-radius: 10px;
  font-weight: bold;
  cursor: pointer;
  transition: transform 0.2s;
}

.share-btn:hover {
  transform: translateY(-2px);
}

.share-btn.instagram {
  background: linear-gradient(45deg, #405de6, #833ab4, #fd1d1d);
  color: white;
}

.share-btn.twitter {
  background: #1da1f2;
  color: white;
}

.share-btn.story {
  background: linear-gradient(45deg, #ff0066, #ff9900);
  color: white;
}

/* Tier progress styling */
.tier-progress {
  display: flex;
  justify-content: space-between;
  position: relative;
  margin: 20px 0 10px;
}

.tier-marker {
  text-align: center;
  position: relative;
  z-index: 2;
  flex: 1;
}

.tier-dot {
  width: 16px;
  height: 16px;
  background: #e5e7eb;
  border-radius: 50%;
  margin: 0 auto 8px;
  border: 3px solid white;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.tier-dot.active {
  background: #10b981;
  transform: scale(1.2);
}

.tier-dot.current {
  background: #3b82f6;
  transform: scale(1.3);
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.2);
}

.tier-label {
  font-size: 12px;
  font-weight: 600;
  color: #6b7280;
  margin-bottom: 4px;
}

.tier-marker.current .tier-label {
  color: #111827;
  font-weight: 700;
}

.tier-score {
  font-size: 11px;
  color: #9ca3af;
}

.tier-progress-bar {
  position: absolute;
  top: 8px;
  left: 0;
  right: 0;
  height: 4px;
  background: #e5e7eb;
  border-radius: 2px;
  z-index: 1;
}

.tier-progress-fill {
  height: 100%;
  border-radius: 2px;
  background: linear-gradient(90deg, #10b981, #3b82f6);
  transition: width 1s ease;
}

.tier-tip {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #f3f4f6;
  padding: 12px 16px;
  border-radius: 10px;
  margin-top: 20px;
  font-size: 14px;
}

.tip-icon {
  font-size: 18px;
}

/* Tier Progress Section */
.tier-progress-section {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 24px;
  margin: 24px 0;
}

.tier-progress-section h3 {
  margin: 0 0 24px 0;
  font-size: 18px;
  font-weight: 600;
  color: #fff;
}

/* Tier Progress Container */
.tier-progress {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 40px 0 20px;
  margin-bottom: 16px;
}

/* Progress Bar Background */
.tier-progress-bar {
  position: absolute;
  top: 48px;
  left: 0;
  right: 0;
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  z-index: 1;
}

/* Progress Bar Fill */
.tier-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
  border-radius: 3px;
  transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.tier-progress-fill::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 12px;
  height: 12px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 0 12px rgba(102, 126, 234, 0.8);
}

/* Tier Marker */
.tier-marker {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex: 1;
}

/* Tier Dot */
.tier-dot {
  width: 16px;
  height: 16px;
  background: rgba(255, 255, 255, 0.2);
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  transition: all 0.3s ease;
}

.tier-marker.active .tier-dot {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-color: #fff;
  box-shadow: 0 0 12px rgba(102, 126, 234, 0.6);
  transform: scale(1.2);
}

.tier-marker.completed .tier-dot {
  background: #10b981;
  border-color: #10b981;
}

/* Tier Label */
.tier-label {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.6);
  text-align: center;
  white-space: nowrap;
  transition: color 0.3s ease;
}

.tier-marker.active .tier-label,
.tier-marker.completed .tier-label {
  color: #fff;
}

/* Tier Score */
.tier-score {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.4);
  text-align: center;
  transition: color 0.3s ease;
}

.tier-marker.active .tier-score,
.tier-marker.completed .tier-score {
  color: rgba(255, 255, 255, 0.7);
}

/* Tier Tip */
.tier-tip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: rgba(102, 126, 234, 0.1);
  border: 1px solid rgba(102, 126, 234, 0.2);
  border-radius: 8px;
}

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

.tip-text {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
}

/* Responsive Design */
@media (max-width: 768px) {
  .tier-progress {
    padding: 30px 0 16px;
  }

  .tier-label {
    font-size: 11px;
  }

  .tier-score {
    font-size: 10px;
  }

  .tier-dot {
    width: 12px;
    height: 12px;
  }

  .tier-progress-bar {
    top: 38px;
    height: 4px;
  }
}

/* Enhanced Score Arc Container */
.score-showcase-enhanced {
  position: relative;
  width: 450px;
  height: 600px;
  margin: 2rem auto;
  isolation: isolate;
}

.score-arc-container-enhanced {
  position: relative;
  width: 100%;
  height: 100%;
}

/* Enhanced SVG Styling */
.score-arc-svg-enhanced {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 10px 30px rgba(99, 102, 241, 0.2));
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* Progress Arc Animation */
.score-arc-progress-enhanced {
  filter: url(#glowFilter);
  opacity: 0;
  animation:
    arc-appear 0.8s ease-out forwards,
    pulse-glow 3s ease-in-out infinite 1s;
}

@keyframes arc-appear {
  from {
    opacity: 0;
    stroke-dashoffset: 534;
  }
  to {
    opacity: 1;
    stroke-dashoffset: 0;
  }
}

@keyframes pulse-glow {
  0%,
  100% {
    filter: url(#glowFilter);
  }
  50% {
    filter: url(#glowFilter) brightness(1.3);
  }
}

/* Inner Glow Arc */
.score-arc-inner-glow {
  animation: inner-glow-pulse 4s ease-in-out infinite;
}

@keyframes inner-glow-pulse {
  0%,
  100% {
    opacity: 0.2;
  }
  50% {
    opacity: 0.5;
  }
}

/* Indicator Dots Animation */
.score-indicators .indicator {
  animation:
    indicator-pop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards,
    indicator-breathe 3s ease-in-out infinite;
  opacity: 0;
}

.score-indicators .indicator:nth-child(1) {
  animation-delay: 0.2s;
}
.score-indicators .indicator:nth-child(2) {
  animation-delay: 0.4s;
}
.score-indicators .indicator:nth-child(3) {
  animation-delay: 0.6s;
}

@keyframes indicator-pop {
  from {
    opacity: 0;
    transform: scale(0);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes indicator-breathe {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.3);
  }
}

/* Center Display - Glass Morphism */
.score-center-display {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
}

.score-center-glass {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  width: 180px;
  height: 180px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 20px 40px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  position: relative;
  overflow: hidden;
  animation: glass-appear 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  opacity: 0;
  transform: scale(0.8);
}

@keyframes glass-appear {
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.score-center-glass::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(
    from 0deg,
    transparent,
    rgba(139, 92, 246, 0.1),
    rgba(236, 72, 153, 0.1),
    rgba(245, 158, 11, 0.1),
    transparent
  );
  animation: rotate 10s linear infinite;
}

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

/* Score Number Animation */
.score-main {
  display: flex;
  align-items: baseline;
  margin-bottom: 8px;
  position: relative;
  z-index: 2;
}

.score-number {
  font-size: 56px;
  font-weight: 900;
  background: linear-gradient(135deg, #8b5cf6, #ec4899, #f59e0b);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: score-pop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards 0.8s;
  transform: scale(0);
  line-height: 1;
}

@keyframes score-pop {
  from {
    transform: scale(0);
  }
  to {
    transform: scale(1);
  }
}

.score-percent {
  font-size: 24px;
  font-weight: 700;
  color: #8b5cf6;
  margin-left: 4px;
  opacity: 0;
  animation: fade-in 0.3s ease-out forwards 1.2s;
}

.score-label {
  margin-bottom: 12px;
  position: relative;
  z-index: 2;
}

/* .score-text {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  background: linear-gradient(135deg, #6b7280, #9ca3af);
  -webkit-background-clip: text;
  background-clip: text;
  color: #0f172a !important;
  opacity: 0;
  animation: slide-up 0.4s ease-out forwards 1s;
} */
html[data-theme="light"] .score-text {
  color: #0f172a !important;
  background: none !important;
  -webkit-background-clip: unset !important;
  background-clip: unset !important;
}

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

/* Mini Stats */
.score-mini-stats {
  display: flex;
  gap: 16px;
  position: relative;
  z-index: 2;
  opacity: 0;
  animation: fade-in 0.4s ease-out forwards 1.4s;
}

.mini-stat {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 600;
}

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

.stat-dot.perf {
  background: linear-gradient(135deg, #10b981, #34d399);
  animation: dot-pulse 2s ease-in-out infinite;
}

.stat-dot.mobile {
  background: linear-gradient(135deg, #3b82f6, #60a5fa);
  animation: dot-pulse 2s ease-in-out infinite 0.3s;
}

@keyframes dot-pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.3);
  }
}

.stat-label {
  color: #6b7280;
}

.stat-value {
  color: #1f2937;
  font-weight: 800;
}

/* Floating Elements */
.floating-element {
  position: absolute;
  border-radius: 50%;
  background: linear-gradient(135deg, #8b5cf6, #ec4899);
  opacity: 0.1;
  filter: blur(20px);
  animation: float-around 20s linear infinite;
}

.floating-element.f1 {
  width: 60px;
  height: 60px;
  top: 20%;
  left: 20%;
  animation-delay: 0s;
}

.floating-element.f2 {
  width: 40px;
  height: 40px;
  top: 60%;
  left: 70%;
  background: linear-gradient(135deg, #ec4899, #f59e0b);
  animation-delay: -5s;
}

.floating-element.f3 {
  width: 30px;
  height: 30px;
  top: 80%;
  left: 30%;
  background: linear-gradient(135deg, #f59e0b, #8b5cf6);
  animation-delay: -10s;
}

@keyframes float-around {
  0% {
    transform: translate(0, 0) rotate(0deg);
  }
  25% {
    transform: translate(50px, -50px) rotate(90deg);
  }
  50% {
    transform: translate(0, -100px) rotate(180deg);
  }
  75% {
    transform: translate(-50px, -50px) rotate(270deg);
  }
  100% {
    transform: translate(0, 0) rotate(360deg);
  }
}

/* Data Update Animation */
@keyframes data-update {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
  }
}

.data-updating {
  animation: data-update 0.5s ease-in-out;
}

/* Responsive */
@media (max-width: 768px) {
  .score-showcase-enhanced {
    width: 400px;
    height: 4s00px;
  }

  .score-center-glass {
    width: 140px;
    height: 140px;
  }

  .score-number {
    font-size: 42px;
  }

  .score-percent {
    font-size: 20px;
  }

  .score-text {
    font-size: 12px;
  }
}

/* Remove background from ALL score-related parents */
.score-main,
.score-center-glass,
.score-center-display,
.score-arc-container-enhanced,
.score-showcase-enhanced,
[class*="score-"]:not(#score-circle-enhanced) {
  background: transparent !important;
  background-color: transparent !important;
}

/* PERMANENT: Fix score number background and layout */
#score-circle-enhanced {
  /* Solid background matching your page */
  background: white !important;
  background-color: white !important;

  /* For dark mode */
  .dark & {
    background: #0f172a !important; /* slate-900 */
    background-color: #0f172a !important;
  }

  /* Block parent transparency */
  isolation: isolate !important;
  position: relative !important;
  z-index: 100 !important;
  mix-blend-mode: normal !important;

  /* Gradient text */
  background: linear-gradient(135deg, #8b5cf6, #ec4899, #f59e0b) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  color: transparent !important;

  /* Better sizing and spacing */
  padding: 0.5rem 1rem !important;
  border-radius: 0.5rem !important;
  font-size: 4rem !important; /* Make number bigger */
  line-height: 1 !important;
  display: inline-block !important;
  margin: 0 auto !important;
}

/* Fix the percent sign */
.score-percent {
  font-size: 2rem !important;
  vertical-align: super !important;
  margin-left: 0.5rem !important;
}

/* Center and space everything better */
.score-center-display {
  display: flex !important;
  flex-direction: column !important;
  background: #ffffff;
  background-color: #ffffff;
  align-items: center !important;
  justify-content: center !important;
  gap: 1.5rem !important; /* Space between elements */
  padding: 2rem !important;
}

/* Make the glass container bigger */
.score-center-glass {
  min-width: 290px !important;
  min-height: 290px !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 1.5rem !important;
  padding: 2rem !important;
}

/* Move description above the cards vertically */
.score-description {
  position: relative !important;
  top: -150px !important; /* Move UP above cards */
  margin-bottom: -30px !important; /* Compensate for the move */
}

/* Ensure it stays visible */
.description-text {
  /* background: rgba(255, 255, 255, 0.95) !important; */
  background: transparent !important;
  backdrop-filter: blur(10px) !important;
  padding: 1rem 1.5rem !important;
  border-radius: 1rem !important;
  border: 1px solid rgba(255, 255, 255, 0.3) !important;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1) !important;
}

/* Move score arc container up 50px */
.score-arc-container-enhanced {
  position: relative !important;
  top: -50px !important; /* Move UP */
  margin-bottom: -50px !important; /* Prevent pushing content down */
  padding-top: 250;
}

/* Optional: If it has margin/padding reducing effectiveness */
.score-arc-container-enhanced {
  margin-top: -20px !important;
  padding-top: 100 !important;
}

#influencer-scoreboard {
  min-height: calc(100% + 1.5rem) !important;
  height: auto !important;
}

html[data-theme="light"] #influencer-scoreboard .score-text {
  color: #0f172a !important;
  background: none !important;
  background-image: none !important;
  -webkit-background-clip: unset !important;
  background-clip: unset !important;
  -webkit-text-fill-color: #0f172a !important;
}

/* Force score-text to be visible in light mode */
html[data-theme="light"] #influencer-scoreboard .score-text {
  color: #0f172a !important;
  background: none !important;
  background-image: none !important;
  -webkit-background-clip: unset !important;
  -webkit-text-fill-color: #0f172a !important;
  background-clip: unset !important;
}

/* Dark mode score-text */

/* Force dark text in light theme */
body:not(.dark) .score-showcase-enhanced * {
  color: #1f2937 !important;
}

/* Ensure proper dark theme */
.dark .score-showcase-enhanced .score-number {
  color: #ffffff !important;
}

#score-circle-enhanced {
  color: #000000 !important;
  opacity: 1 !important;
  visibility: visible !important;
}

.score-showcase-enhanced * {
  color: #000000 !important;
  background-color: transparent !important;
}

/* Remove transparent styles if they exist */
.score-showcase-enhanced [style*="transparent"],
.score-showcase-enhanced [style*="rgba(0,0,0,0)"],
.score-showcase-enhanced [style*="opacity: 0"] {
  color: inherit !important;
  opacity: 1 !important;
}

/* Theme-aware colors using CSS variables */
.score-showcase-enhanced {
  --score-primary: #1f2937;
  --score-secondary: #6b7280;
  --score-accent: #8b5cf6;
}

.dark .score-showcase-enhanced {
  --score-primary: #f9fafb;
  --score-secondary: #9ca3af;
  --score-accent: #a78bfa;
}

.score-showcase-enhanced .score-number {
  color: var(--score-primary);
  font-size: 48px;
  font-weight: 700;
}

.score-showcase-enhanced .score-text {
  color: var(--score-secondary);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* FIX LIGHT THEME ONLY - Don't touch dark theme */
body:not(.dark) #score-circle-enhanced,
html:not(.dark) #score-circle-enhanced,
.theme-light #score-circle-enhanced {
  color: #000000 !important;
}

body:not(.dark) .score-showcase-enhanced .score-number,
.theme-light .score-showcase-enhanced .score-number {
  color: #000000 !important;
}

/* Debug: Add border to see element */
.share-score {
  /* color: #000000 !important; */
  color: #ffffff;
}

/* Clean Light Theme - Production Ready & Mobile Optimized */

/* Light theme background image */
html[data-theme="light"] body {
  background-image: url("/images/light-bg-image.png") !important;
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  background-attachment: fixed !important;
}

/* Basic light theme colors */
html[data-theme="light"] {
  background: #f8fafc;
  color: #0f172a;
}

/* Transparent divs */

/* Header styling - Pink header */
html[data-theme="light"] header {
  background: #ff006e !important;
  border-bottom: 1px solid #e2e8f0;
}

html[data-theme="light"] header div {
  background: transparent !important;
  background-color: transparent !important;
}

/* Footer styling */
html[data-theme="light"] footer {
  background: #ffffff !important;
  border-top: 1px solid #e2e8f0;
  color: #0f172a;
}

/* Text colors */
html[data-theme="light"] h1,
html[data-theme="light"] h2,
html[data-theme="light"] h3 {
  color: #0f172a !important;
}

html[data-theme="light"] p {
  color: #334155 !important;
}

/* Hero section text - white on pink header */
html[data-theme="light"] header h1,
html[data-theme="light"] header p,
html[data-theme="light"] header span {
  color: #ffffff !important;
}

/* Footer Base Styles - Light Theme */
html[data-theme="light"] #site-footer {
  margin-top: 120px;
  padding: 60px 20px 30px;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  background: transparent !important;
}

html[data-theme="light"] .footer-container {
  max-width: 1200px;
  margin: 0 auto;
}

/* Footer Grid - Responsive */
html[data-theme="light"] .footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  margin-bottom: 60px;
}

@media (max-width: 768px) {
  html[data-theme="light"] .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

html[data-theme="light"] .footer-column h3 {
  color: #0f172a !important;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 20px;
}

html[data-theme="light"] .footer-column a {
  color: #64748b !important;
  text-decoration: none;
}

html[data-theme="light"] .footer-column a:hover {
  color: #3b82f6 !important;
}

html[data-theme="light"] .footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  color: #64748b !important;
}

/* Remove white backgrounds from footer elements */
html[data-theme="light"] .footer-column ul,
html[data-theme="light"] .footer-column li {
  background: transparent !important;
}

/* Override div transparency for footer */
html[data-theme="light"] #site-footer div,
html[data-theme="light"] .footer-container div,
html[data-theme="light"] .footer-grid div,
html[data-theme="light"] .footer-column div {
  background: transparent !important;
  background-color: transparent !important;
}

/* Nav styling - White text on pink header */
html[data-theme="light"] nav,
html[data-theme="light"] nav a,
html[data-theme="light"] nav span,
html[data-theme="light"] nav div {
  color: #ffffff !important;
}

html[data-theme="light"] nav a:hover {
  color: rgba(255, 255, 255, 0.8) !important;
}

/* Logo text */
html[data-theme="light"] .text-2xl {
  color: #ffffff !important;
}

html[data-theme="light"] .text-yellow-300 {
  color: #ffffff !important;
}

/* User email */
html[data-theme="light"] #user-email {
  color: #ffffff !important;
}

/* Theme Toggle Button - Mobile Optimized */
#theme-toggle {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
  position: relative;
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
}

@media (max-width: 640px) {
  #theme-toggle {
    width: 3rem;
    height: 3rem;
  }
}

#theme-toggle i {
  font-size: 1.5rem;
  color: white;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 2;
  position: relative;
}

@media (max-width: 640px) {
  #theme-toggle i {
    font-size: 1.25rem;
  }
}

#theme-toggle:hover {
  transform: scale(1.1);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
  border-color: rgba(255, 255, 255, 0.5);
}

@media (hover: none) {
  #theme-toggle:hover {
    transform: none;
  }
}

#theme-toggle:active {
  transform: scale(0.95);
}

/* Morphing animation on click */
#theme-toggle.morphing {
  animation: morph 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes morph {
  0% {
    border-radius: 50%;
    transform: rotate(0deg) scale(1);
  }
  25% {
    border-radius: 30%;
    transform: rotate(90deg) scale(1.15);
  }
  50% {
    border-radius: 20%;
    transform: rotate(180deg) scale(0.9);
  }
  75% {
    border-radius: 30%;
    transform: rotate(270deg) scale(1.1);
  }
  100% {
    border-radius: 50%;
    transform: rotate(360deg) scale(1);
  }
}

#theme-toggle.morphing i {
  animation: iconSpin 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes iconSpin {
  0% {
    transform: rotate(0deg) scale(1);
    opacity: 1;
  }
  50% {
    transform: rotate(180deg) scale(0);
    opacity: 0;
  }
  51% {
    transform: rotate(-180deg) scale(0);
    opacity: 0;
  }
  100% {
    transform: rotate(0deg) scale(1);
    opacity: 1;
  }
}

/* Light theme specific button styling */
html[data-theme="light"] #theme-toggle {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(255, 0, 110, 0.3);
  box-shadow: 0 8px 16px rgba(255, 0, 110, 0.2);
}

html[data-theme="light"] #theme-toggle i {
  color: #ff006e;
}

html[data-theme="light"] #theme-toggle:hover {
  background: rgba(255, 255, 255, 1);
  border-color: rgba(255, 0, 110, 0.5);
  box-shadow: 0 12px 24px rgba(255, 0, 110, 0.3);
}

/* Dial Icons - Mobile Optimized */
html[data-theme="light"] .dial .w-16,
html[data-theme="light"] .dial .w-20 {
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15) !important;
  border: 2px solid rgba(255, 255, 255, 0.8);
}

/* Colorful dial icons - solid colors */
html[data-theme="light"] .dial-container:nth-child(1) .w-20 {
  background: #ff006e !important;
}

html[data-theme="light"] .dial-container:nth-child(2) .w-16 {
  background: #06ffa5 !important;
}

html[data-theme="light"] .dial-container:nth-child(3) .w-16 {
  background: #a855f7 !important;
}

html[data-theme="light"] .dial-container:nth-child(4) .w-16 {
  background: #ff6b00 !important;
}

html[data-theme="light"] .dial-container:nth-child(5) .w-16 {
  background: #0096ff !important;
}

html[data-theme="light"] .dial-container:nth-child(6) .w-16 {
  background: #4361ee !important;
}

html[data-theme="light"] .dial-container:nth-child(7) .w-16 {
  background: #ff5400 !important;
}

/* Make dial text visible */
html[data-theme="light"] .dial h3 {
  color: #0f172a !important;
}

html[data-theme="light"] .dial p {
  color: #64748b !important;
}

/* Core Web Vitals text */
html[data-theme="light"] .dial .text-gray-600 {
  color: #64748b !important;
}

/* Feature card icons */
html[data-theme="light"] .card-hover:nth-child(1) .w-16,
html[data-theme="light"] .card-hover:nth-child(1) .bg-gradient-to-br {
  background: #ff006e !important;
}

html[data-theme="light"] .card-hover:nth-child(2) .w-16,
html[data-theme="light"] .card-hover:nth-child(2) .bg-gradient-to-br {
  background: #0096ff !important;
}

html[data-theme="light"] .card-hover:nth-child(3) .w-16,
html[data-theme="light"] .card-hover:nth-child(3) .bg-gradient-to-br {
  background: #a855f7 !important;
}

/* Glass effect cards */
html[data-theme="light"] .glass-effect,
html[data-theme="light"] .dial-face {
  background: rgba(255, 255, 255, 0.8) !important;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 0, 0, 0.1);
}

/* Mobile optimizations */
@media (max-width: 640px) {
  html[data-theme="light"] #site-footer {
    margin-top: 60px;
    padding: 40px 15px 20px;
  }

  html[data-theme="light"] .footer-column h3 {
    font-size: 16px;
  }
}

/* Prevent text size adjustment on mobile */
html[data-theme="light"] {
  -webkit-text-size-adjust: 100%;
  -moz-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

/* Smooth scrolling */
@media (prefers-reduced-motion: no-preference) {
  html[data-theme="light"] {
    scroll-behavior: smooth;
  }
}

/* Accessibility - Focus styles */
html[data-theme="light"] *:focus-visible {
  outline: 2px solid #ff006e;
  outline-offset: 2px;
}

/* Performance - GPU acceleration for animations */
#theme-toggle,
#theme-toggle i {
  will-change: transform;
}

#theme-toggle.morphing {
  will-change: transform, border-radius;
}

/* Hero input section - Mobile friendly */
@media (max-width: 768px) {
  html[data-theme="light"] .max-w-2xl .flex {
    flex-direction: column !important;
    gap: 0.5rem;
  }

  html[data-theme="light"] #url-input {
    width: 100% !important;
    padding: 1rem !important;
    font-size: 14px !important;
  }

  html[data-theme="light"] #analyze-btn {
    width: 100% !important;
    margin-left: 0 !important;
    padding: 1rem !important;
    font-size: 14px !important;
  }

  html[data-theme="light"] #analyze-btn i {
    margin-right: 0.5rem;
  }
}

/* Fix theme toggle z-index - make it come to front */
#theme-toggle {
  z-index: 9999 !important;
  position: relative !important;
}

/* Also fix the parent container */
.fixed.top-4.left-4 {
  z-index: 9999 !important;
}

#theme-toggle {
  z-index: 9999 !important;
  position: relative !important;
}

/* Also fix the parent container */
.fixed.top-4.left-4 {
  z-index: 9999 !important;
}

/*************************INFLUERNCER SCOREBOARD*****************************/

.influencer-glass-card {
  position: relative;
  overflow: hidden;
}

.influencer-glass-card::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    transparent,
    rgba(139, 92, 246, 0.1),
    transparent
  );
  animation: shine 6s infinite linear;
}

@keyframes shine {
  0% {
    transform: translateX(-100%) translateY(-100%) rotate(45deg);
  }
  100% {
    transform: translateX(100%) translateY(100%) rotate(45deg);
  }
}

/* Status Badge */

.status-glow {
  position: absolute;
  inset: -2px;
  background: linear-gradient(135deg, #ec4899, #f59e0b);
  border-radius: inherit;
  filter: blur(8px);
  opacity: 0.6;
  z-index: -1;
}

/* Viral Metrics Grid */
.viral-metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin: 40px 0;
}

@media (max-width: 1200px) {
  .viral-metrics-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

.viral-metric-card {
  background: rgba(30, 41, 59, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 24px;
  transition: all 0.3s ease;
}

.viral-metric-card:hover {
  transform: translateY(-5px);
  border-color: rgba(59, 130, 246, 0.5);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.viral-metric-card.featured {
  border: 2px solid rgba(245, 158, 11, 0.5);
  box-shadow: 0 10px 30px rgba(245, 158, 11, 0.2);
}

.metric-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}

.metric-icon {
  font-size: 24px;
}

.metric-header h4 {
  flex: 1;
  margin: 0;
  font-size: 1.1rem;
  color: #f8fafc;
}

.metric-trend {
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
}

.metric-trend.up {
  background: rgba(16, 185, 129, 0.2);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.metric-trend.down {
  background: rgba(239, 68, 68, 0.2);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.metric-value {
  margin: 20px 0;
  display: flex;
  align-items: baseline;
}

.value-number {
  font-size: 48px;
  font-weight: 900;
  background: linear-gradient(135deg, #8b5cf6, #ec4899);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.value-unit {
  font-size: 18px;
  color: #94a3b8;
  margin-left: 4px;
}

.metric-meter {
  margin: 20px 0;
}

.meter-bar {
  height: 8px;
  background: linear-gradient(90deg, #10b981, #f59e0b);
  border-radius: 4px;
  margin-bottom: 8px;
  position: relative;
  overflow: hidden;
}

.meter-bar::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.4),
    transparent
  );
  animation: shimmer 2s infinite;
}

.meter-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: #94a3b8;
}

.meter-labels span:last-child {
  color: #ec4899;
  font-weight: 700;
}

@keyframes shimmer {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

/* Money Calculator */
.metric-money {
  margin: 20px 0;
}

.money-current {
  display: flex;
  align-items: baseline;
  margin-bottom: 15px;
}

.money-amount {
  font-size: 36px;
  font-weight: 900;
  color: #f59e0b;
  line-height: 1;
}

.money-label {
  color: #94a3b8;
  margin-left: 4px;
}

.money-potential {
  margin-top: 20px;
}

.potential-bar {
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  margin-bottom: 8px;
  position: relative;
}

.potential-fill {
  height: 100%;
  background: linear-gradient(90deg, #f59e0b, #fbbf24);
  border-radius: 3px;
  position: relative;
  overflow: hidden;
}

.potential-fill::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.4),
    transparent
  );
  animation: shimmer 2s infinite;
}

.potential-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.875rem;
  color: #94a3b8;
}

.potential-labels span:nth-child(3) {
  color: #f59e0b;
  font-weight: 700;
}

.money-breakdown {
  margin-top: 20px;
  padding-top: 15px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.breakdown-item {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
}

.breakdown-label {
  color: #94a3b8;
  font-size: 0.875rem;
}

.breakdown-value {
  font-weight: 700;
  font-size: 0.875rem;
}

.breakdown-value.premium {
  color: #8b5cf6;
}

.breakdown-value.high {
  color: #10b981;
}

/* Competition Section */
.competition-section {
  margin: 40px 0;
  padding: 30px;
  background: #fe2e6d;
  border-radius: 20px;
  border: 1px solid rgba(139, 92, 246, 0.2);
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}

.section-header h3 {
  margin: 0;
  font-size: 1.5rem;
  background: linear-gradient(135deg, #ec4899, #8b5cf6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.compare-btn {
  padding: 12px 24px;
  background: linear-gradient(135deg, #8b5cf6, #6366f1);
  color: white;
  border: none;
  border-radius: 12px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
}

.compare-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(139, 92, 246, 0.4);
}

.competitor-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

@media (max-width: 768px) {
  .competitor-grid {
    grid-template-columns: 1fr;
  }
}

.competitor-card {
  background: rgba(21, 27, 46, 0.8);
  border: 2px solid transparent;
  border-radius: 16px;
  padding: 24px;
  transition: all 0.3s ease;
}

.competitor-card.rival {
  border-color: rgba(239, 68, 68, 0.3);
}

.competitor-card.target {
  border-color: rgba(59, 130, 246, 0.3);
}

.competitor-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.competitor-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
}

.competitor-avatar {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 700;
  color: white;
}

.competitor-info {
  flex: 1;
}

.competitor-info h4 {
  margin: 0 0 4px 0;
  color: #f8fafc;
  font-size: 1.2rem;
}

.competitor-niche {
  color: #94a3b8;
  font-size: 0.875rem;
}

.competitor-status {
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.rival .competitor-status {
  background: rgba(239, 68, 68, 0.2);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.target .competitor-status {
  background: rgba(59, 130, 246, 0.2);
  color: #3b82f6;
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.comparison-metrics {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.comparison-metric {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
}

.comparison-metric.win {
  border-left: 3px solid #10b981;
}

.comparison-metric.lose {
  border-left: 3px solid #ef4444;
}

.metric-name {
  color: #cbd5e1;
  font-size: 0.875rem;
}

.metric-value {
  font-weight: 700;
  font-size: 0.875rem;
}

.win .metric-value {
  color: #10b981;
}

/* Share Section */
.share-section {
  margin: 40px 0;
  padding: 30px;
  background: rgba(30, 41, 59, 0.5);
  border-radius: 20px;
  border: 1px solid rgba(139, 92, 246, 0.2);
}

.share-options {
  display: flex;
  gap: 12px;
}

.share-btn {
  padding: 10px 20px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  color: #cbd5e1;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
}

.share-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}

.share-btn.instagram:hover {
  background: linear-gradient(135deg, #833ab4, #e1306c, #f77737);
  color: white;
  border-color: transparent;
}

.share-btn.twitter:hover {
  background: #1da1f2;
  color: white;
  border-color: transparent;
}

.share-btn.story:hover {
  background: linear-gradient(135deg, #8b5cf6, #ec4899);
  color: white;
  border-color: transparent;
}

.share-preview {
  margin-top: 30px;
  display: flex;
  justify-content: center;
}

.share-card {
  width: 300px;
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  position: relative;
}

html.new-ui .share-card {
  background: #151b2e;
  border: 2px solid #1e2539;
}

.share-card-header {
  height: 120px;
  position: relative;
  overflow: hidden;
}

.share-gradient {
  position: absolute;
  inset: 0;
  /* background: linear-gradient(135deg, #6366f1, #8b5cf6, #ec4899); */
  background: none;
  opacity: 0.8;
}

.share-score {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 60px;
  font-weight: 900;
  color: white;
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.share-badge {
  position: absolute;
  bottom: 20px;
  left: 0;
  right: 0;
  text-align: center;
  padding: 8px 16px;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  font-weight: 700;
  font-size: 0.875rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  backdrop-filter: blur(10px);
}

.share-card-body {
  padding: 30px;
}

.share-card-body h4 {
  margin: 0 0 15px 0;
  color: #1e293b;
  font-size: 1.3rem;
  line-height: 1.4;
}

html.new-ui .share-card-body h4 {
  color: #f8fafc;
}

.share-stats {
  color: #64748b;
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 20px;
}

html.new-ui .share-stats {
  color: #cbd5e1;
}

.share-hashtags {
  color: #8b5cf6;
  font-size: 0.875rem;
  font-weight: 600;
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid rgba(139, 92, 246, 0.2);
}

.share-watermark {
  position: absolute;
  bottom: 10px;
  right: 15px;
  color: rgba(0, 0, 0, 0.3);
  font-size: 0.75rem;
  font-weight: 600;
}

html.new-ui .share-watermark {
  color: rgba(255, 255, 255, 0.3);
}

/* Tier Progress */
.tier-progress-section {
  margin-top: 40px;
  padding: 30px;
  background: rgba(30, 41, 59, 0.5);
  border-radius: 20px;
  border: 1px solid rgba(139, 92, 246, 0.2);
}

.tier-progress-section h3 {
  margin: 0 0 30px 0;
  color: #f8fafc;
  font-size: 1.3rem;
  text-align: center;
}

.tier-progress {
  display: flex;
  justify-content: space-between;
  position: relative;
  margin: 40px 0 20px;
}

.tier-progress::before {
  content: "";
  position: absolute;
  top: 24px;
  left: 0;
  right: 0;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  z-index: 1;
}

.tier-progress-bar {
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  margin: 30px 0 20px;
  overflow: hidden;
}

.tier-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #10b981, #3b82f6, #8b5cf6);
  border-radius: 4px;
  position: relative;
  overflow: hidden;
}

.tier-progress-fill::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  animation: shimmer 3s infinite;
}

.tier-marker {
  position: relative;
  z-index: 2;
  text-align: center;
}

.tier-dot {
  width: 20px;
  height: 20px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  margin: 0 auto 10px;
  border: 3px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.tier-marker.active .tier-dot {
  background: linear-gradient(135deg, #8b5cf6, #ec4899);
  border-color: rgba(139, 92, 246, 0.5);
  box-shadow: 0 0 20px rgba(139, 92, 246, 0.5);
  transform: scale(1.2);
}

.tier-label {
  font-size: 0.875rem;
  color: #94a3b8;
  margin-bottom: 4px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.tier-marker.active .tier-label {
  color: #8b5cf6;
  font-weight: 800;
}

.tier-score {
  font-size: 0.75rem;
  color: #64748b;
  font-weight: 600;
}

.tier-tip {
  margin-top: 20px;
  padding: 15px;
  background: rgba(139, 92, 246, 0.1);
  border: 1px solid rgba(139, 92, 246, 0.2);
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.tip-icon {
  font-size: 20px;
  flex-shrink: 0;
}

.tip-text {
  color: #cbd5e1;
  font-size: 0.95rem;
  line-height: 1.5;
}

/* Viral Indicator */
.viral-indicator {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 100;
}

.viral-hot {
  animation: pulseFire 1.5s ease-in-out infinite;
}

@keyframes pulseFire {
  0%,
  100% {
    opacity: 0.7;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.1);
  }
}

/* Prediction Items */
.metric-prediction,
.metric-comparison,
.platform-rating {
  margin-top: 15px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.875rem;
}

.prediction-icon,
.comparison-icon {
  font-size: 16px;
  flex-shrink: 0;
}

.prediction-text,
.comparison-text {
  color: #cbd5e1;
  line-height: 1.4;
}

/* Algorithm Tips */
.algorithm-tips {
  margin: 15px 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tip-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  background: rgba(59, 130, 246, 0.1);
  border-radius: 8px;
  font-size: 0.875rem;
}

.tip-icon {
  color: #3b82f6;
  font-size: 14px;
}

.tip-text {
  color: #cbd5e1;
}

.platform-rating {
  background: rgba(236, 72, 153, 0.1);
  border: 1px solid rgba(236, 72, 153, 0.2);
  margin-top: 15px;
}

.rating-label {
  color: #ec4899;
  font-weight: 700;
  font-size: 0.875rem;
}

/* Detail Items */
.metric-details {
  margin: 15px 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.detail-item {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.detail-label {
  color: #94a3b8;
  font-size: 0.875rem;
}

.detail-value {
  color: #f8fafc;
  font-weight: 700;
  font-size: 0.875rem;
}

/* Progress to Target */
.progress-to-target {
  margin-top: 20px;
}

.progress-bar {
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  margin-bottom: 10px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #3b82f6, #8b5cf6);
  border-radius: 4px;
  position: relative;
}

.progress-fill::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.4),
    transparent
  );
  animation: shimmer 2s infinite;
}

.progress-text {
  text-align: center;
  color: #3b82f6;
  font-weight: 700;
  font-size: 0.875rem;
  margin-bottom: 15px;
}

.next-steps {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  background: rgba(59, 130, 246, 0.1);
  border-radius: 8px;
  margin-top: 10px;
}

.step-icon {
  color: #10b981;
  font-size: 16px;
}

.step-text {
  color: #cbd5e1;
  font-size: 0.875rem;
}

/* Add to your CSS file */
.comparison-metric .metric-value.higher {
  color: #ef4444; /* Red - rival is beating you */
}

.comparison-metric .metric-value.lower {
  color: #10b981; /* Green - you're beating rival */
}

.comparison-metric .metric-value.equal {
  color: #6b7280; /* Gray - equal */
}

.progress-fill {
  background: linear-gradient(90deg, #3b82f6, #8b5cf6);
  height: 8px;
  border-radius: 4px;
  transition: width 1s ease;
}

.competitor-card {
  background: white;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  border: 1px solid #e5e7eb;
}

.competitor-card.rival {
  border-left: 4px solid #ef4444; /* Red border for rival */
}

.competitor-card.target {
  border-left: 4px solid #10b981; /* Green border for target */
}

.competitor-status {
  background: #f3f4f6;
  color: #6b7280;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: bold;
  text-transform: uppercase;
}

.competitor-card.rival .competitor-status {
  background: #fee2e2;
  color: #dc2626;
}

.competitor-card.target .competitor-status {
  background: #d1fae5;
  color: #059669;
}

/* Share card styling */
.share-card {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  max-width: 400px;
  margin: 0 auto;
}

.share-card-header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 30px 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.share-gradient {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    45deg,
    rgba(255, 255, 255, 0.1) 25%,
    transparent 25%
  );
  background-size: 20px 20px;
}

.share-score {
  font-size: 64px;
  font-weight: bold;
  color: white;
  margin: 0;
  text-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  position: relative;
  z-index: 1;
}

.share-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.2);
  color: white;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: bold;
  margin-top: 10px;
  backdrop-filter: blur(10px);
  position: relative;
  z-index: 1;
}

.share-card-body {
  padding: 25px;
  text-align: center;
}

.share-card-body h4 {
  margin: 0 0 15px 0;
  color: #333;
  font-size: 20px;
}

.share-stats {
  color: #666;
  line-height: 1.6;
  margin-bottom: 20px;
  font-size: 16px;
}

.share-hashtags {
  color: #8b5cf6;
  font-size: 14px;
  line-height: 1.4;
}

.share-watermark {
  text-align: center;
  padding: 15px;
  color: #999;
  font-size: 12px;
  border-top: 1px solid #eee;
}

/* Share buttons */
.share-options {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

.share-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px;
  border: none;
  border-radius: 10px;
  font-weight: bold;
  cursor: pointer;
  transition: transform 0.2s;
}

.share-btn:hover {
  transform: translateY(-2px);
}

.share-btn.instagram {
  background: linear-gradient(45deg, #405de6, #833ab4, #fd1d1d);
  color: white;
}

.share-btn.twitter {
  background: #1da1f2;
  color: white;
}

.share-btn.story {
  background: linear-gradient(45deg, #ff0066, #ff9900);
  color: white;
}

/* Tier progress styling */
.tier-progress {
  display: flex;
  justify-content: space-between;
  position: relative;
  margin: 20px 0 10px;
}

.tier-marker {
  text-align: center;
  position: relative;
  z-index: 2;
  flex: 1;
}

.tier-dot {
  width: 16px;
  height: 16px;
  background: #e5e7eb;
  border-radius: 50%;
  margin: 0 auto 8px;
  border: 3px solid white;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.tier-dot.active {
  background: #10b981;
  transform: scale(1.2);
}

.tier-dot.current {
  background: #3b82f6;
  transform: scale(1.3);
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.2);
}

.tier-label {
  font-size: 12px;
  font-weight: 600;
  color: #6b7280;
  margin-bottom: 4px;
}

.tier-marker.current .tier-label {
  color: #111827;
  font-weight: 700;
}

.tier-score {
  font-size: 11px;
  color: #9ca3af;
}

.tier-progress-bar {
  position: absolute;
  top: 8px;
  left: 0;
  right: 0;
  height: 4px;
  background: #e5e7eb;
  border-radius: 2px;
  z-index: 1;
}

.tier-progress-fill {
  height: 100%;
  border-radius: 2px;
  background: linear-gradient(90deg, #10b981, #3b82f6);
  transition: width 1s ease;
}

.tier-tip {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #f3f4f6;
  padding: 12px 16px;
  border-radius: 10px;
  margin-top: 20px;
  font-size: 14px;
}

.tip-icon {
  font-size: 18px;
}

/* Tier Progress Section */
.tier-progress-section {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 24px;
  margin: 24px 0;
}

.tier-progress-section h3 {
  margin: 0 0 24px 0;
  font-size: 18px;
  font-weight: 600;
  color: #fff;
}

/* Tier Progress Container */
.tier-progress {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 40px 0 20px;
  margin-bottom: 16px;
}

/* Progress Bar Background */
.tier-progress-bar {
  position: absolute;
  top: 48px;
  left: 0;
  right: 0;
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  z-index: 1;
}

/* Progress Bar Fill */
.tier-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
  border-radius: 3px;
  transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.tier-progress-fill::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 12px;
  height: 12px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 0 12px rgba(102, 126, 234, 0.8);
}

/* Tier Marker */
.tier-marker {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex: 1;
}

/* Tier Dot */
.tier-dot {
  width: 16px;
  height: 16px;
  background: rgba(255, 255, 255, 0.2);
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  transition: all 0.3s ease;
}

.tier-marker.active .tier-dot {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-color: #fff;
  box-shadow: 0 0 12px rgba(102, 126, 234, 0.6);
  transform: scale(1.2);
}

.tier-marker.completed .tier-dot {
  background: #10b981;
  border-color: #10b981;
}

/* Tier Label */
.tier-label {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.6);
  text-align: center;
  white-space: nowrap;
  transition: color 0.3s ease;
}

.tier-marker.active .tier-label,
.tier-marker.completed .tier-label {
  color: #fff;
}

/* Tier Score */
.tier-score {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.4);
  text-align: center;
  transition: color 0.3s ease;
}

.tier-marker.active .tier-score,
.tier-marker.completed .tier-score {
  color: rgba(255, 255, 255, 0.7);
}

/* Tier Tip */
.tier-tip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: rgba(102, 126, 234, 0.1);
  border: 1px solid rgba(102, 126, 234, 0.2);
  border-radius: 8px;
}

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

.tip-text {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
}

/* Responsive Design */
@media (max-width: 768px) {
  .tier-progress {
    padding: 30px 0 16px;
  }

  .tier-label {
    font-size: 11px;
  }

  .tier-score {
    font-size: 10px;
  }

  .tier-dot {
    width: 12px;
    height: 12px;
  }

  .tier-progress-bar {
    top: 38px;
    height: 4px;
  }
}

/* Enhanced Score Arc Container */
.score-showcase-enhanced {
  position: relative;
  width: 450px;
  height: 600px;
  margin: 2rem auto;
  isolation: isolate;
}

.score-arc-container-enhanced {
  position: relative;
  width: 100%;
  height: 100%;
}

/* Enhanced SVG Styling */
.score-arc-svg-enhanced {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 10px 30px rgba(99, 102, 241, 0.2));
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* Progress Arc Animation */
.score-arc-progress-enhanced {
  filter: url(#glowFilter);
  opacity: 0;
  animation:
    arc-appear 0.8s ease-out forwards,
    pulse-glow 3s ease-in-out infinite 1s;
}

@keyframes arc-appear {
  from {
    opacity: 0;
    stroke-dashoffset: 534;
  }
  to {
    opacity: 1;
    stroke-dashoffset: 0;
  }
}

@keyframes pulse-glow {
  0%,
  100% {
    filter: url(#glowFilter);
  }
  50% {
    filter: url(#glowFilter) brightness(1.3);
  }
}

/* Inner Glow Arc */
.score-arc-inner-glow {
  animation: inner-glow-pulse 4s ease-in-out infinite;
}

@keyframes inner-glow-pulse {
  0%,
  100% {
    opacity: 0.2;
  }
  50% {
    opacity: 0.5;
  }
}

/* Indicator Dots Animation */
.score-indicators .indicator {
  animation:
    indicator-pop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards,
    indicator-breathe 3s ease-in-out infinite;
  opacity: 0;
}

.score-indicators .indicator:nth-child(1) {
  animation-delay: 0.2s;
}
.score-indicators .indicator:nth-child(2) {
  animation-delay: 0.4s;
}
.score-indicators .indicator:nth-child(3) {
  animation-delay: 0.6s;
}

@keyframes indicator-pop {
  from {
    opacity: 0;
    transform: scale(0);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes indicator-breathe {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.3);
  }
}

/* Center Display - Glass Morphism */
.score-center-display {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
}

.score-center-glass {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  width: 180px;
  height: 180px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 20px 40px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  position: relative;
  overflow: hidden;
  animation: glass-appear 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  opacity: 0;
  transform: scale(0.8);
}

@keyframes glass-appear {
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.score-center-glass::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(
    from 0deg,
    transparent,
    rgba(139, 92, 246, 0.1),
    rgba(236, 72, 153, 0.1),
    rgba(245, 158, 11, 0.1),
    transparent
  );
  animation: rotate 10s linear infinite;
}

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

/* Score Number Animation */
.score-main {
  display: flex;
  align-items: baseline;
  margin-bottom: 8px;
  position: relative;
  z-index: 2;
}

.score-number {
  font-size: 56px;
  font-weight: 900;
  background: linear-gradient(135deg, #8b5cf6, #ec4899, #f59e0b);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: score-pop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards 0.8s;
  transform: scale(0);
  line-height: 1;
}

@keyframes score-pop {
  from {
    transform: scale(0);
  }
  to {
    transform: scale(1);
  }
}

.score-percent {
  font-size: 24px;
  font-weight: 700;
  color: #8b5cf6;
  margin-left: 4px;
  opacity: 0;
  animation: fade-in 0.3s ease-out forwards 1.2s;
}

.score-label {
  margin-bottom: 12px;
  position: relative;
  z-index: 2;
}

/* .score-text {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  background: linear-gradient(135deg, #6b7280, #9ca3af);
  -webkit-background-clip: text;
  background-clip: text;
  color: #0f172a !important;
  opacity: 0;
  animation: slide-up 0.4s ease-out forwards 1s;
} */
html[data-theme="light"] .score-text {
  color: #0f172a !important;
  background: none !important;
  -webkit-background-clip: unset !important;
  background-clip: unset !important;
}

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

/* Mini Stats */
.score-mini-stats {
  display: flex;
  gap: 16px;
  position: relative;
  z-index: 2;
  opacity: 0;
  animation: fade-in 0.4s ease-out forwards 1.4s;
}

.mini-stat {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 600;
}

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

.stat-dot.perf {
  background: linear-gradient(135deg, #10b981, #34d399);
  animation: dot-pulse 2s ease-in-out infinite;
}

.stat-dot.mobile {
  background: linear-gradient(135deg, #3b82f6, #60a5fa);
  animation: dot-pulse 2s ease-in-out infinite 0.3s;
}

@keyframes dot-pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.3);
  }
}

.stat-label {
  color: #6b7280;
}

.stat-value {
  color: #1f2937;
  font-weight: 800;
}

/* Floating Elements */
.floating-element {
  position: absolute;
  border-radius: 50%;
  background: linear-gradient(135deg, #8b5cf6, #ec4899);
  opacity: 0.1;
  filter: blur(20px);
  animation: float-around 20s linear infinite;
}

.floating-element.f1 {
  width: 60px;
  height: 60px;
  top: 20%;
  left: 20%;
  animation-delay: 0s;
}

.floating-element.f2 {
  width: 40px;
  height: 40px;
  top: 60%;
  left: 70%;
  background: linear-gradient(135deg, #ec4899, #f59e0b);
  animation-delay: -5s;
}

.floating-element.f3 {
  width: 30px;
  height: 30px;
  top: 80%;
  left: 30%;
  background: linear-gradient(135deg, #f59e0b, #8b5cf6);
  animation-delay: -10s;
}

@keyframes float-around {
  0% {
    transform: translate(0, 0) rotate(0deg);
  }
  25% {
    transform: translate(50px, -50px) rotate(90deg);
  }
  50% {
    transform: translate(0, -100px) rotate(180deg);
  }
  75% {
    transform: translate(-50px, -50px) rotate(270deg);
  }
  100% {
    transform: translate(0, 0) rotate(360deg);
  }
}

/* Data Update Animation */
@keyframes data-update {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
  }
}

.data-updating {
  animation: data-update 0.5s ease-in-out;
}

/* Responsive */
@media (max-width: 768px) {
  .score-showcase-enhanced {
    width: 400px;
    height: 4s00px;
  }

  .score-center-glass {
    width: 140px;
    height: 140px;
  }

  .score-number {
    font-size: 42px;
  }

  .score-percent {
    font-size: 20px;
  }

  .score-text {
    font-size: 12px;
  }
}

/* Remove background from ALL score-related parents */
.score-main,
.score-center-glass,
.score-center-display,
.score-arc-container-enhanced,
.score-showcase-enhanced,
[class*="score-"]:not(#score-circle-enhanced) {
  background: transparent !important;
  background-color: transparent !important;
}

/* PERMANENT: Fix score number background and layout */
#score-circle-enhanced {
  /* Solid background matching your page */
  background: white !important;
  background-color: white !important;

  /* For dark mode */
  .dark & {
    background: #0f172a !important; /* slate-900 */
    background-color: #0f172a !important;
  }

  /* Block parent transparency */
  isolation: isolate !important;
  position: relative !important;
  z-index: 100 !important;
  mix-blend-mode: normal !important;

  /* Gradient text */
  background: linear-gradient(135deg, #8b5cf6, #ec4899, #f59e0b) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  color: transparent !important;

  /* Better sizing and spacing */
  padding: 0.5rem 1rem !important;
  border-radius: 0.5rem !important;
  font-size: 4rem !important; /* Make number bigger */
  line-height: 1 !important;
  display: inline-block !important;
  margin: 0 auto !important;
}

/* Fix the percent sign */
.score-percent {
  font-size: 2rem !important;
  vertical-align: super !important;
  margin-left: 0.5rem !important;
}

/* Center and space everything better */
.score-center-display {
  display: flex !important;
  flex-direction: column !important;
  background: #ffffff;
  background-color: #ffffff;
  align-items: center !important;
  justify-content: center !important;
  gap: 1.5rem !important; /* Space between elements */
  padding: 2rem !important;
}

/* Make the glass container bigger */
.score-center-glass {
  min-width: 290px !important;
  min-height: 290px !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 1.5rem !important;
  padding: 2rem !important;
}

/* Move description above the cards vertically */
.score-description {
  position: relative !important;
  top: -150px !important; /* Move UP above cards */
  margin-bottom: -30px !important; /* Compensate for the move */
}

/* Ensure it stays visible */
.description-text {
  /* background: rgba(255, 255, 255, 0.95) !important; */
  background: transparent !important;
  backdrop-filter: blur(10px) !important;
  padding: 1rem 1.5rem !important;
  border-radius: 1rem !important;
  border: 1px solid rgba(255, 255, 255, 0.3) !important;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1) !important;
}

/* Move score arc container up 50px */
.score-arc-container-enhanced {
  position: relative !important;
  top: -50px !important; /* Move UP */
  margin-bottom: -50px !important; /* Prevent pushing content down */
  padding-top: 250;
}

/* Optional: If it has margin/padding reducing effectiveness */
.score-arc-container-enhanced {
  margin-top: -20px !important;
  padding-top: 100 !important;
}

#influencer-scoreboard {
  min-height: calc(100% + 1.5rem) !important;
  height: auto !important;
}

html[data-theme="light"] #influencer-scoreboard .score-text {
  color: #0f172a !important;
  background: none !important;
  background-image: none !important;
  -webkit-background-clip: unset !important;
  background-clip: unset !important;
  -webkit-text-fill-color: #0f172a !important;
}

/* Force score-text to be visible in light mode */
html[data-theme="light"] #influencer-scoreboard .score-text {
  color: #0f172a !important;
  background: none !important;
  background-image: none !important;
  -webkit-background-clip: unset !important;
  -webkit-text-fill-color: #0f172a !important;
  background-clip: unset !important;
}

/* Dark mode score-text */
html[data-theme="dark"] #influencer-scoreboard .score-text {
  color: #ffffff !important;
  background: none !important;
  background-image: none !important;
  -webkit-background-clip: unset !important;
  -webkit-text-fill-color: #ffffff !important;
  background-clip: unset !important;
}

/* Force dark text in light theme */
body:not(.dark) .score-showcase-enhanced * {
  color: #1f2937 !important;
}

/* Ensure proper dark theme */
.dark .score-showcase-enhanced .score-number {
  color: #ffffff !important;
}

#score-circle-enhanced {
  color: #000000 !important;
  opacity: 1 !important;
  visibility: visible !important;
}

.score-showcase-enhanced * {
  color: #000000 !important;
  background-color: transparent !important;
}

/* Remove transparent styles if they exist */
.score-showcase-enhanced [style*="transparent"],
.score-showcase-enhanced [style*="rgba(0,0,0,0)"],
.score-showcase-enhanced [style*="opacity: 0"] {
  color: inherit !important;
  opacity: 1 !important;
}

/* Theme-aware colors using CSS variables */
.score-showcase-enhanced {
  --score-primary: #1f2937;
  --score-secondary: #6b7280;
  --score-accent: #8b5cf6;
}

.dark .score-showcase-enhanced {
  --score-primary: #f9fafb;
  --score-secondary: #9ca3af;
  --score-accent: #a78bfa;
}

.score-showcase-enhanced .score-number {
  color: var(--score-primary);
  font-size: 48px;
  font-weight: 700;
}

.score-showcase-enhanced .score-text {
  color: var(--score-secondary);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* FIX LIGHT THEME ONLY - Don't touch dark theme */
body:not(.dark) #score-circle-enhanced,
html:not(.dark) #score-circle-enhanced,
.theme-light #score-circle-enhanced {
  color: #000000 !important;
}

body:not(.dark) .score-showcase-enhanced .score-number,
.theme-light .score-showcase-enhanced .score-number {
  color: #000000 !important;
}

/* Debug: Add border to see element */
.share-score {
  /* color: #000000 !important; */
}

/* ===== INFLUENCER SCOREBOARD - LIGHT THEME FIX ===== */
:root,
:not(.dark) #influencer-scoreboard,
.light-theme #influencer-scoreboard,
.theme-light #influencer-scoreboard {
  /* Score Circle Text */
  #score-circle-enhanced,
  .score-number,
  .score-main span {
    color: #111827 !important;
    font-weight: 700 !important;
    opacity: 1 !important;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.5) !important;
  }

  /* Score Percent Sign */
  .score-percent {
    color: #4b5563 !important;
    opacity: 1 !important;
  }

  /* "INFLUENCER SCORE" Label */
  .score-label .score-text {
    color: #1f2937 !important;
    background: none !important;
    background-color: transparent !important;
    font-weight: 600 !important;
    letter-spacing: 1px !important;
  }

  /* Mini Stats (Viral / Algo) */
  .score-mini-stats .stat-label,
  .score-mini-stats .stat-value {
    color: #374151 !important;
    opacity: 1 !important;
  }

  /* Status Badge - TOP 5% CREATOR */
  .influencer-status-badge .status-text {
    color: #0f172a !important;
    font-weight: 700 !important;
  }

  /* Description Text */
  .score-description .description-text {
    color: #1e293b !important;
    opacity: 1 !important;
  }

  /* Viral Metric Cards */
  .viral-metric-card {
    background: white !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow:
      0 4px 6px -1px rgba(0, 0, 0, 0.1),
      0 2px 4px -1px rgba(0, 0, 0, 0.06) !important;
  }

  /* Card Headers */
  .viral-metric-card .metric-header h4 {
    color: #1e293b !important;
  }

  /* Metric Values (numbers) */
  .viral-metric-card .value-number {
    color: #0f172a !important;
    font-weight: 700 !important;
  }

  .viral-metric-card .value-unit {
    color: #475569 !important;
  }

  /* Metric Labels */
  .viral-metric-card .detail-label,
  .viral-metric-card .breakdown-label {
    color: #475569 !important;
  }

  .viral-metric-card .detail-value,
  .viral-metric-card .breakdown-value {
    color: #0f172a !important;
    font-weight: 600 !important;
  }

  /* Earning Potential */
  .viral-metric-card.featured .money-amount {
    color: #059669 !important;
  }

  .viral-metric-card.featured .money-label {
    color: #4b5563 !important;
  }

  /* Algorithm Tips */
  .algorithm-tips .tip-text {
    color: #334155 !important;
  }

  /* Competition Section */
  .competition-section h3,
  .share-section h3,
  .tier-progress-section h3 {
    color: #0f172a !important;
  }

  .competitor-card {
    background: white !important;
    border: 1px solid #e2e8f0 !important;
  }

  .competitor-name {
    color: #0f172a !important;
  }

  .competitor-niche {
    color: #4b5563 !important;
  }

  .comparison-metric .metric-name {
    color: #4b5563 !important;
  }

  .comparison-metric .metric-value {
    color: #0f172a !important;
    font-weight: 600 !important;
  }

  .progress-text {
    color: #1e293b !important;
  }

  .step-text {
    color: #334155 !important;
  }

  /* Share Section */
  .share-card {
    background: white !important;
    border: 1px solid #e2e8f0 !important;
  }

  .share-card-body h4 {
    color: #0f172a !important;
  }

  .share-stats {
    color: #1e293b !important;
  }

  .share-hashtags {
    color: #4b5563 !important;
  }

  .share-watermark {
    color: #6b7280 !important;
  }

  /* Tier Progress */
  .tier-marker .tier-label {
    color: #1e293b !important;
    font-weight: 600 !important;
  }

  .tier-marker .tier-score {
    color: #4b5563 !important;
  }

  .tier-tip .tip-text {
    color: #334155 !important;
  }

  /* Buttons */
  .compare-btn,
  .share-btn {
    background: #f3f4f6 !important;
    color: #1f2937 !important;
    border: 1px solid #d1d5db !important;
  }

  .compare-btn:hover,
  .share-btn:hover {
    background: #e5e7eb !important;
  }
} /* ===== INFLUENCER SCOREBOARD - LIGHT THEME FIX ===== */
:root,
:not(.dark) #influencer-scoreboard,
.light-theme #influencer-scoreboard,
.theme-light #influencer-scoreboard {
  /* Score Circle Text */
  #score-circle-enhanced,
  .score-number,
  .score-main span {
    color: #111827 !important;
    font-weight: 700 !important;
    opacity: 1 !important;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.5) !important;
  }

  /* Score Percent Sign */
  .score-percent {
    color: #4b5563 !important;
    opacity: 1 !important;
  }

  /* "INFLUENCER SCORE" Label */
  .score-label .score-text {
    color: #1f2937 !important;
    background: none !important;
    background-color: transparent !important;
    font-weight: 600 !important;
    letter-spacing: 1px !important;
  }

  /* Mini Stats (Viral / Algo) */
  .score-mini-stats .stat-label,
  .score-mini-stats .stat-value {
    color: #374151 !important;
    opacity: 1 !important;
  }

  /* Status Badge - TOP 5% CREATOR */
  .influencer-status-badge .status-text {
    color: #0f172a !important;
    font-weight: 700 !important;
  }

  /* Description Text */
  .score-description .description-text {
    color: #1e293b !important;
    opacity: 1 !important;
  }

  /* Viral Metric Cards */
  .viral-metric-card {
    background: white !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow:
      0 4px 6px -1px rgba(0, 0, 0, 0.1),
      0 2px 4px -1px rgba(0, 0, 0, 0.06) !important;
  }

  /* Card Headers */
  .viral-metric-card .metric-header h4 {
    color: #1e293b !important;
  }

  /* Metric Values (numbers) */
  .viral-metric-card .value-number {
    color: #0f172a !important;
    font-weight: 700 !important;
  }

  .viral-metric-card .value-unit {
    color: #475569 !important;
  }

  /* Metric Labels */
  .viral-metric-card .detail-label,
  .viral-metric-card .breakdown-label {
    color: #475569 !important;
  }

  .viral-metric-card .detail-value,
  .viral-metric-card .breakdown-value {
    color: #0f172a !important;
    font-weight: 600 !important;
  }

  /* Earning Potential */
  .viral-metric-card.featured .money-amount {
    color: #059669 !important;
  }

  .viral-metric-card.featured .money-label {
    color: #4b5563 !important;
  }

  /* Algorithm Tips */
  .algorithm-tips .tip-text {
    color: #334155 !important;
  }

  /* Competition Section */
  .competition-section h3,
  .share-section h3,
  .tier-progress-section h3 {
    color: #0f172a !important;
  }

  .competitor-card {
    background: white !important;
    border: 1px solid #e2e8f0 !important;
  }

  .competitor-name {
    color: #0f172a !important;
  }

  .competitor-niche {
    color: #4b5563 !important;
  }

  .comparison-metric .metric-name {
    color: #4b5563 !important;
  }

  .comparison-metric .metric-value {
    color: #0f172a !important;
    font-weight: 600 !important;
  }

  .progress-text {
    color: #1e293b !important;
  }

  .step-text {
    color: #334155 !important;
  }

  /* Share Section */
  .share-card {
    background: white !important;
    border: 1px solid #e2e8f0 !important;
  }

  .share-card-body h4 {
    color: #0f172a !important;
  }

  .share-stats {
    color: #1e293b !important;
  }

  .share-hashtags {
    color: #4b5563 !important;
  }

  .share-watermark {
    color: #6b7280 !important;
  }

  /* Tier Progress */
  .tier-marker .tier-label {
    color: #1e293b !important;
    font-weight: 600 !important;
  }

  .tier-marker .tier-score {
    color: #4b5563 !important;
  }

  .tier-tip .tip-text {
    color: #334155 !important;
  }

  /* Buttons */
  .compare-btn,
  .share-btn {
    background: #f3f4f6 !important;
    color: #1f2937 !important;
    border: 1px solid #d1d5db !important;
  }

  .compare-btn:hover,
  .share-btn:hover {
    background: #e5e7eb !important;
  }
}

/* SVG Score Arc - Light Theme */
:not(.dark) #score-arc-progress-enhanced {
  stroke: url(#scoreGradientEnhanced) !important;
  stroke-width: 14px !important;
  opacity: 1 !important;
}

/* Ensure gradient colors are vibrant in light mode */
:not(.dark) #scoreGradientEnhanced stop {
  stop-opacity: 1 !important;
}

:not(.dark) #scoreGradientEnhanced stop[offset="0%"] {
  stop-color: #6366f1 !important;
}

:not(.dark) #scoreGradientEnhanced stop[offset="33%"] {
  stop-color: #8b5cf6 !important;
}

:not(.dark) #scoreGradientEnhanced stop[offset="66%"] {
  stop-color: #ec4899 !important;
}

:not(.dark) #scoreGradientEnhanced stop[offset="100%"] {
  stop-color: #f59e0b !important;
}

/* ===== BODY PADDING FIX - LIGHT MODE ===== */
:not(.dark) body,
.light-theme body,
.theme-light body {
  padding: 0 !important;
  margin: 0 !important;
}

/* Keep the gradient background on the body if needed */
:not(.dark) body {
  background: linear-gradient(135deg, #fdf2f8, #eff6ff, #faf5ff) !important;
}

/* ===== REMOVE ROUNDED CORNERS FROM HEADER TOP ===== */
:not(.dark) header.gradient-bg,
.light-theme header.gradient-bg,
.theme-light header.gradient-bg,
header.gradient-bg {
  border-top-left-radius: 0 !important;
  border-top-right-radius: 0 !important;
  border-radius: 0 0 1rem 1rem !important; /* Keep bottom rounded, remove top */
  -webkit-border-top-left-radius: 0 !important;
  -webkit-border-top-right-radius: 0 !important;
}

/* Also remove any overflow hidden that might clip */
:not(.dark) header.gradient-bg {
  overflow: visible !important;
}

/* Ensure the header stretches edge to edge */
:not(.dark) header.gradient-bg {
  margin-top: -12px !important;
  margin-left: -12px !important;
  margin-right: -12px !important;
  width: calc(100% + 24px) !important;
  max-width: calc(100% + 24px) !important;
  padding-top: 12px !important; /* Compensate for negative margin */
}

/* If there's a parent container with rounded corners */
:not(.dark) body > *:first-child {
  border-top-left-radius: 0 !important;
  border-top-right-radius: 0 !important;
}

/* ===== TIER PROGRESS BAR - LIGHT MODE FIX ===== */
:not(.dark) .tier-progress-bar,
.light-theme .tier-progress-bar,
.theme-light .tier-progress-bar {
  background-color: #e2e8f0 !important; /* Light gray background */
  border: 1px solid #cbd5e1 !important;
  height: 12px !important;
  border-radius: 9999px !important;
  overflow: hidden !important;
}

:not(.dark) .tier-progress-fill,
.light-theme .tier-progress-fill,
.theme-light .tier-progress-fill {
  background: linear-gradient(90deg, #6366f1, #8b5cf6, #ec4899) !important;
  height: 100% !important;
  border-radius: 9999px !important;
  transition: width 0.3s ease !important;
  opacity: 1 !important;
  display: block !important;
  visibility: visible !important;
}

/* Ensure the container is visible */
:not(.dark) .tier-progress-section,
.light-theme .tier-progress-section,
.theme-light .tier-progress-section {
  background: white !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 1rem !important;
  padding: 1.5rem !important;
  margin-top: 1.5rem !important;
}

:not(.dark) .tier-progress-section h3,
.light-theme .tier-progress-section h3,
.theme-light .tier-progress-section h3 {
  color: #0f172a !important;
  margin-bottom: 1rem !important;
}

/* ===== SOCIAL MEDIA HEALTH HEADING - LIGHT MODE CONTRAST FIX ===== */

/* Fix for the gradient text that becomes invisible in light mode */
html[data-theme="light"] h2:has(i.fa-share-alt),
html[data-theme="light"] h2.bg-gradient-to-r.from-pink-500.to-blue-500,
html[data-theme="light"] .text-2xl.md:text-3xl.font-black.bg-gradient-to-r {
  /* Remove transparency and use solid color instead of gradient in light mode */
  background: none !important;
  background-image: none !important;
  -webkit-background-clip: unset !important;
  background-clip: unset !important;
  color: #0f172a !important; /* Dark slate color for maximum contrast */
  -webkit-text-fill-color: #0f172a !important;
  text-shadow: none !important;
}

/* Alternative: Keep gradient but make it darker/bolder for light mode */
html[data-theme="light"] h2:has(i.fa-share-alt),
html[data-theme="light"] h2.bg-gradient-to-r.from-pink-500.to-blue-500 {
  background: linear-gradient(
    135deg,
    #be185d 0%,
    #1d4ed8 100%
  ) !important; /* Darker pink and blue */
  -webkit-background-clip: text !important;
  background-clip: text !important;
  color: transparent !important;
  -webkit-text-fill-color: transparent !important;
  font-weight: 900 !important;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
}

/* Fix the icon color too */
html[data-theme="light"] h2 i.fa-share-alt {
  color: #0f172a !important;
  background: none !important;
}

/* If using the darker gradient option, match icon color */
html[data-theme="light"] h2.bg-gradient-to-r i.fa-share-alt {
  background: linear-gradient(135deg, #be185d, #1d4ed8) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  color: transparent !important;
  -webkit-text-fill-color: transparent !important;
} /* ===== SOCIAL MEDIA HEALTH HEADING - LIGHT MODE CONTRAST FIX ===== */

/* Fix for the gradient text that becomes invisible in light mode */
html[data-theme="light"] h2:has(i.fa-share-alt),
html[data-theme="light"] h2.bg-gradient-to-r.from-pink-500.to-blue-500,
html[data-theme="light"] .text-2xl.md:text-3xl.font-black.bg-gradient-to-r {
  /* Remove transparency and use solid color instead of gradient in light mode */
  background: none !important;
  background-image: none !important;
  -webkit-background-clip: unset !important;
  background-clip: unset !important;
  color: #0f172a !important; /* Dark slate color for maximum contrast */
  -webkit-text-fill-color: #0f172a !important;
  text-shadow: none !important;
}

/* Alternative: Keep gradient but make it darker/bolder for light mode */
html[data-theme="light"] h2:has(i.fa-share-alt),
html[data-theme="light"] h2.bg-gradient-to-r.from-pink-500.to-blue-500 {
  background: linear-gradient(
    135deg,
    #be185d 0%,
    #1d4ed8 100%
  ) !important; /* Darker pink and blue */
  -webkit-background-clip: text !important;
  background-clip: text !important;
  color: transparent !important;
  -webkit-text-fill-color: transparent !important;
  font-weight: 900 !important;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
}

/* Fix the icon color too */
html[data-theme="light"] h2 i.fa-share-alt {
  color: #0f172a !important;
  background: none !important;
}

/* If using the darker gradient option, match icon color */
html[data-theme="light"] h2.bg-gradient-to-r i.fa-share-alt {
  background: linear-gradient(135deg, #be185d, #1d4ed8) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  color: transparent !important;
  -webkit-text-fill-color: transparent !important;
}

/* ===== SOCIAL MEDIA CARDS - LIGHT MODE CONTRAST FIX ===== */

/* Fix card backgrounds - make them solid white with slight transparency */
html[data-theme="light"] .social-platform-card [class*="bg-gradient-to-r"] {
  background: rgba(255, 255, 255, 0.95) !important;
  backdrop-filter: blur(10px);
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05) !important;
}

/* Remove the gradient backgrounds in light mode */
html[data-theme="light"] .social-platform-card .from-blue-50,
html[data-theme="light"] .social-platform-card .from-pink-50,
html[data-theme="light"] .social-platform-card .from-cyan-50 {
  background: white !important;
  background-image: none !important;
}

/* Add colored top borders instead of full gradients */
html[data-theme="light"]
  .social-platform-card[data-platform="twitter"]
  [class*="rounded-2xl"] {
  border-top: 4px solid #3b82f6 !important;
}

html[data-theme="light"]
  .social-platform-card[data-platform="instagram"]
  [class*="rounded-2xl"] {
  border-top: 4px solid #ec4899 !important;
}

html[data-theme="light"]
  .social-platform-card[data-platform="tiktok"]
  [class*="rounded-2xl"] {
  border-top: 4px solid #06b6d4 !important;
}

/* Fix text colors - make them dark and readable */
html[data-theme="light"] .social-platform-card h4 {
  color: #0f172a !important;
  font-weight: 800 !important;
}

html[data-theme="light"] .social-platform-card .social-handle {
  color: #4b5563 !important;
  font-weight: 600 !important;
}

/* Fix the stat labels */
html[data-theme="light"] .social-platform-card .text-gray-600 {
  color: #475569 !important;
  font-weight: 500 !important;
}

/* Fix the stat values */
html[data-theme="light"] .social-platform-card .font-bold.text-gray-800 {
  color: #0f172a !important;
  font-weight: 700 !important;
  background: #f1f5f9 !important;
  padding: 2px 8px !important;
  border-radius: 20px !important;
}

/* Fix TikTok specific values */
html[data-theme="light"] .social-platform-card .text-cyan-600 {
  color: #0891b2 !important;
  font-weight: 700 !important;
  background: #e0f2fe !important;
  padding: 2px 8px !important;
  border-radius: 20px !important;
}

/* Fix insight text */
html[data-theme="light"] .social-platform-card .social-insight,
html[data-theme="light"] .social-platform-card .text-gray-700 {
  color: #1e293b !important;
  font-weight: 500 !important;
  background: #f8fafc !important;
  padding: 12px !important;
  border-radius: 12px !important;
  border-left: 3px solid;
}

/* Add colored left borders to insight text */
html[data-theme="light"]
  .social-platform-card[data-platform="twitter"]
  .social-insight {
  border-left-color: #3b82f6 !important;
}

html[data-theme="light"]
  .social-platform-card[data-platform="instagram"]
  .social-insight {
  border-left-color: #ec4899 !important;
}

html[data-theme="light"]
  .social-platform-card[data-platform="tiktok"]
  .social-insight {
  border-left-color: #06b6d4 !important;
}

/* Fix the icon circles - make them solid and vibrant */
html[data-theme="light"] .social-platform-card [class*="rounded-full"] {
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15) !important;
}

html[data-theme="light"]
  .social-platform-card[data-platform="twitter"]
  [class*="rounded-full"] {
  background: linear-gradient(135deg, #3b82f6, #0ea5e9) !important;
}

html[data-theme="light"]
  .social-platform-card[data-platform="instagram"]
  [class*="rounded-full"] {
  background: linear-gradient(135deg, #ec4899, #f43f5e) !important;
}

html[data-theme="light"]
  .social-platform-card[data-platform="tiktok"]
  [class*="rounded-full"] {
  background: linear-gradient(135deg, #06b6d4, #10b981) !important;
}

/* Fix borders */
html[data-theme="light"] .social-platform-card .border-t {
  border-top-color: #e2e8f0 !important;
  opacity: 1 !important;
}

/* Add subtle hover effect */
html[data-theme="light"] .social-platform-card:hover [class*="rounded-2xl"] {
  transform: translateY(-4px);
  box-shadow:
    0 20px 25px -5px rgba(0, 0, 0, 0.1),
    0 10px 10px -5px rgba(0, 0, 0, 0.04) !important;
  transition: all 0.3s ease;
}

/* Fix the emoji placeholders */
html[data-theme="light"] .social-platform-card .social-followers,
html[data-theme="light"] .social-platform-card .social-following,
html[data-theme="light"] .social-platform-card .social-tweets,
html[data-theme="light"] .social-platform-card .social-posts {
  color: #0f172a !important;
  font-weight: 700 !important;
} /* ===== SOCIAL MEDIA CARDS - LIGHT MODE CONTRAST FIX ===== */

/* Fix card backgrounds - make them solid white with slight transparency */
html[data-theme="light"] .social-platform-card [class*="bg-gradient-to-r"] {
  background: rgba(255, 255, 255, 0.95) !important;
  backdrop-filter: blur(10px);
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05) !important;
}

/* Remove the gradient backgrounds in light mode */
html[data-theme="light"] .social-platform-card .from-blue-50,
html[data-theme="light"] .social-platform-card .from-pink-50,
html[data-theme="light"] .social-platform-card .from-cyan-50 {
  background: white !important;
  background-image: none !important;
}

/* Add colored top borders instead of full gradients */
html[data-theme="light"]
  .social-platform-card[data-platform="twitter"]
  [class*="rounded-2xl"] {
  border-top: 4px solid #3b82f6 !important;
}

html[data-theme="light"]
  .social-platform-card[data-platform="instagram"]
  [class*="rounded-2xl"] {
  border-top: 4px solid #ec4899 !important;
}

html[data-theme="light"]
  .social-platform-card[data-platform="tiktok"]
  [class*="rounded-2xl"] {
  border-top: 4px solid #06b6d4 !important;
}

/* Fix text colors - make them dark and readable */
html[data-theme="light"] .social-platform-card h4 {
  color: #0f172a !important;
  font-weight: 800 !important;
}

html[data-theme="light"] .social-platform-card .social-handle {
  color: #4b5563 !important;
  font-weight: 600 !important;
}

/* Fix the stat labels */
html[data-theme="light"] .social-platform-card .text-gray-600 {
  color: #475569 !important;
  font-weight: 500 !important;
}

/* Fix the stat values */
html[data-theme="light"] .social-platform-card .font-bold.text-gray-800 {
  color: #0f172a !important;
  font-weight: 700 !important;
  background: #f1f5f9 !important;
  padding: 2px 8px !important;
  border-radius: 20px !important;
}

/* Fix TikTok specific values */
html[data-theme="light"] .social-platform-card .text-cyan-600 {
  color: #0891b2 !important;
  font-weight: 700 !important;
  background: #e0f2fe !important;
  padding: 2px 8px !important;
  border-radius: 20px !important;
}

/* Fix insight text */
html[data-theme="light"] .social-platform-card .social-insight,
html[data-theme="light"] .social-platform-card .text-gray-700 {
  color: #1e293b !important;
  font-weight: 500 !important;
  background: #f8fafc !important;
  padding: 12px !important;
  border-radius: 12px !important;
  border-left: 3px solid;
}

/* Add colored left borders to insight text */
html[data-theme="light"]
  .social-platform-card[data-platform="twitter"]
  .social-insight {
  border-left-color: #3b82f6 !important;
}

html[data-theme="light"]
  .social-platform-card[data-platform="instagram"]
  .social-insight {
  border-left-color: #ec4899 !important;
}

html[data-theme="light"]
  .social-platform-card[data-platform="tiktok"]
  .social-insight {
  border-left-color: #06b6d4 !important;
}

/* Fix the icon circles - make them solid and vibrant */
html[data-theme="light"] .social-platform-card [class*="rounded-full"] {
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15) !important;
}

html[data-theme="light"]
  .social-platform-card[data-platform="twitter"]
  [class*="rounded-full"] {
  background: linear-gradient(135deg, #3b82f6, #0ea5e9) !important;
}

html[data-theme="light"]
  .social-platform-card[data-platform="instagram"]
  [class*="rounded-full"] {
  background: linear-gradient(135deg, #ec4899, #f43f5e) !important;
}

html[data-theme="light"]
  .social-platform-card[data-platform="tiktok"]
  [class*="rounded-full"] {
  background: linear-gradient(135deg, #06b6d4, #10b981) !important;
}

/* Fix borders */
html[data-theme="light"] .social-platform-card .border-t {
  border-top-color: #e2e8f0 !important;
  opacity: 1 !important;
}

/* Add subtle hover effect */
html[data-theme="light"] .social-platform-card:hover [class*="rounded-2xl"] {
  transform: translateY(-4px);
  box-shadow:
    0 20px 25px -5px rgba(0, 0, 0, 0.1),
    0 10px 10px -5px rgba(0, 0, 0, 0.04) !important;
  transition: all 0.3s ease;
}

/* Fix the emoji placeholders */
html[data-theme="light"] .social-platform-card .social-followers,
html[data-theme="light"] .social-platform-card .social-following,
html[data-theme="light"] .social-platform-card .social-tweets,
html[data-theme="light"] .social-platform-card .social-posts {
  color: #0f172a !important;
  font-weight: 700 !important;
}

/******************************************************/
/* ===== FEATURE CARDS - HEADLINE CONTRAST FIX ===== */

/* Fix the card backgrounds - make them slightly opaque white */
html[data-theme="light"] .card-hover,
html[data-theme="light"] [class*="card-hover"] {
  background: rgba(255, 255, 255, 0.95) !important;
  backdrop-filter: blur(10px);
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.03) !important;
}

/* Fix headline text - make it dark and bold */
html[data-theme="light"] .card-hover h3,
html[data-theme="light"] [class*="card-hover"] h3 {
  color: #0f172a !important; /* Dark slate */
  font-weight: 900 !important;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8) !important;
  letter-spacing: -0.02em !important;
}

/* Alternative: If you want gradient headlines */
html[data-theme="light"] .card-hover h3,
html[data-theme="light"] [class*="card-hover"] h3 {
  background: linear-gradient(135deg, #0f172a 0%, #334155 100%) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  color: transparent !important;
  -webkit-text-fill-color: transparent !important;
}

/* Fix paragraph text for better contrast */
html[data-theme="light"] .card-hover p,
html[data-theme="light"] [class*="card-hover"] p {
  color: #334155 !important; /* Darker gray */
  line-height: 1.6 !important;
}

/* Make the "Learn More" links more visible */
html[data-theme="light"] .card-hover .text-pink-500,
html[data-theme="light"] .card-hover .text-blue-500,
html[data-theme="light"] .card-hover .text-purple-500 {
  font-weight: 700 !important;
  opacity: 1 !important;
}

html[data-theme="light"] .card-hover .text-pink-500 {
  color: #be185d !important; /* Darker pink */
}

html[data-theme="light"] .card-hover .text-blue-500 {
  color: #1d4ed8 !important; /* Darker blue */
}

html[data-theme="light"] .card-hover .text-purple-500 {
  color: #7c3aed !important; /* Darker purple */
}

/* Fix icon containers - make them pop */
html[data-theme="light"] .card-hover [class*="w-16 h-16"] {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1) !important;
}

/* Add a subtle hover effect */
html[data-theme="light"] .card-hover:hover {
  background: white !important;
  border-color: #cbd5e1 !important;
  box-shadow:
    0 20px 25px -5px rgba(0, 0, 0, 0.1),
    0 10px 10px -5px rgba(0, 0, 0, 0.04) !important;
  transform: translateY(-4px);
  transition: all 0.3s ease;
}

/* Ensure the glass effect doesn't wash out text */
html[data-theme="light"] .card-hover.glass,
html[data-theme="light"] [class*="card-hover"].glass {
  background: rgba(255, 255, 255, 0.95) !important;
  backdrop-filter: blur(10px);
}

/* Fix any remaining white text issues */
html[data-theme="light"] .card-hover .text-white {
  color: white !important; /* Keep icons white */
}

/* Make borders more visible */
html[data-theme="light"] .card-hover.border-gray-100 {
  border-color: #e2e8f0 !important;
}

/******************************************/
/* Alternative: Solid pink header with white content */
html[data-theme="light"] .fixed.inset-0 .bg-white {
  background: white !important;
  border: 2px solid #fe2e6d !important;
}

html[data-theme="light"] .fixed.inset-0 .flex.justify-between.items-start.mb-6 {
  background: #fe2e6d !important;
  margin: -2rem -2rem 1.5rem -2rem !important;
  padding: 1.5rem 2rem !important;
}

/*********************************************/
/* ===== HISTORY MODAL - REMOVE LABEL BACKGROUND & WHITE SUBHEADING ===== */

/* Remove background from stat card labels */
html[data-theme="light"] .fixed.inset-0 .bg-blue-50,
html[data-theme="light"] .fixed.inset-0 .bg-green-50,
html[data-theme="light"] .fixed.inset-0 .bg-purple-50,
html[data-theme="light"] .fixed.inset-0 .bg-pink-50,
html[data-theme="light"] .fixed.inset-0 .bg-indigo-50,
html[data-theme="light"] .fixed.inset-0 .bg-teal-50 {
  background: transparent !important;
  background-color: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0.5rem 0 !important;
}

/* Make the URL subheading text white in the pink header */
html[data-theme="light"] .fixed.inset-0 .flex.justify-between .text-gray-600,
html[data-theme="light"] .fixed.inset-0 .flex.justify-between p.text-gray-600 {
  color: white !important;
  opacity: 0.9 !important;
  font-weight: 400 !important;
}

/* Ensure the parent container of the URL also has no background */
html[data-theme="light"] .fixed.inset-0 .flex.justify-between div:first-child {
  background: transparent !important;
}

/* Keep the stat values visible but remove card backgrounds */
html[data-theme="light"] .fixed.inset-0 .grid-cols-3 .text-sm,
html[data-theme="light"] .fixed.inset-0 .grid-cols-3 .text-2xl {
  background: transparent !important;
}

/* Add a subtle divider instead of background */
html[data-theme="light"] .fixed.inset-0 .grid-cols-3 {
  gap: 0.5rem !important;
}

html[data-theme="light"] .fixed.inset-0 .grid-cols-3 > div {
  border-bottom: 1px solid rgba(237, 74, 108, 0.2) !important;
  padding-bottom: 0.75rem !important;
}

/* Remove any remaining backgrounds from stat containers */
html[data-theme="light"] .fixed.inset-0 [class*="bg-"].rounded-lg.p-4 {
  background: transparent !important;
}

/* Keep the text styling but remove backgrounds */
html[data-theme="light"] .fixed.inset-0 .text-blue-600,
html[data-theme="light"] .fixed.inset-0 .text-green-600,
html[data-theme="light"] .fixed.inset-0 .text-purple-600,
html[data-theme="light"] .fixed.inset-0 .text-pink-600,
html[data-theme="light"] .fixed.inset-0 .text-indigo-600,
html[data-theme="light"] .fixed.inset-0 .text-teal-600 {
  color: #fe2e6d !important;
  font-weight: 800 !important;
  background: transparent !important;
}

html[data-theme="light"] #results-section {
  /* Override the opacity from Tailwind classes */
  --tw-gradient-from: #fdf2f8 !important; /* pink-50 */
  --tw-gradient-to: #eff6ff !important; /* blue-50 */
  /* Optionally set background to solid */
  background-image: linear-gradient(
    to bottom right,
    var(--tw-gradient-from),
    var(--tw-gradient-to)
  ) !important;
}

html[data-theme="light"] #results-section {
  background: none !important;
  background-image: none !important;
}

html[data-theme="light"] #score-circle-enhanced,
html[data-theme="light"] .score-number,
html[data-theme="light"] .score-percent,
html[data-theme="light"] .score-text {
  color: #0f172a !important;
  /* Remove any gradient background that might interfere */
  background: none !important;
  -webkit-background-clip: unset !important;
  background-clip: unset !important;
  -webkit-text-fill-color: #0f172a !important;
}

html[data-theme="light"] .share-section .section-header h3 {
  color: white !important;
  background: none !important;
  -webkit-background-clip: unset !important;
  background-clip: unset !important;
  -webkit-text-fill-color: white !important;
}

html[data-theme="light"] .competition-section .section-header h3 {
  color: white !important;
  background: none !important;
  -webkit-background-clip: unset !important;
  background-clip: unset !important;
  -webkit-text-fill-color: white !important;
}

html[data-theme="light"] div.score-description p.description-text {
  color: #ffffff !important;
}

/* ===== DEEP SHADOWS FOR LIGHT MODE ===== */
html[data-theme="light"] .viral-metric-card,
html[data-theme="light"] .competitor-card,
html[data-theme="light"] .share-card,
html[data-theme="light"] .card-hover,
html[data-theme="light"] .tier-progress-section,
html[data-theme="light"] .social-platform-card [class*="rounded-2xl"],
html[data-theme="light"] .fixed.inset-0 .bg-white,
html[data-theme="light"] .influencer-glass-card,
html[data-theme="light"] .score-center-glass,
html[data-theme="light"] .dial-face,
html[data-theme="light"] .glass-effect {
  box-shadow:
    0 25px 50px -12px rgba(0, 0, 0, 0.25),
    0 10px 20px -5px rgba(0, 0, 0, 0.15) !important;
  transition:
    box-shadow 0.3s ease,
    transform 0.3s ease;
}

html[data-theme="light"] #influencer-scoreboard {
  box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.35) !important;
}

html[data-theme="light"] .viral-metric-card:hover,
html[data-theme="light"] .competitor-card:hover,
html[data-theme="light"] .share-card:hover,
html[data-theme="light"] .card-hover:hover,
html[data-theme="light"] .social-platform-card:hover [class*="rounded-2xl"] {
  box-shadow:
    0 35px 70px -20px rgba(0, 0, 0, 0.4),
    0 15px 25px -8px rgba(0, 0, 0, 0.2) !important;
  transform: translateY(-4px);
}

/* ===== METRIC CARDS – LIGHT MODE (ENHANCED DEPTH) ===== */
html[data-theme="light"] .metric-card {
  position: relative;
  padding: 1.5rem 1rem;
  border-radius: 1.5rem;
  text-align: center;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition:
    transform 0.25s ease,
    box-shadow 0.3s ease;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.75);
  /* Multi-layer shadow for depth */
  box-shadow:
    0 25px 50px -12px rgba(0, 0, 0, 0.25),
    /* deep outer shadow */ 0 4px 12px rgba(0, 0, 0, 0.1),
    /* medium proximity shadow */ inset 0 -2px 4px rgba(0, 0, 0, 0.05),
    /* subtle inner bottom shadow */ inset 0 2px 4px rgba(255, 255, 255, 0.8); /* glossy top edge */
  border: 1px solid rgba(255, 255, 255, 0.8);
}

/* Gradient backgrounds per metric – now with extra depth via overlay */
html[data-theme="light"] .metric-card[data-metric="performance"] {
  background: linear-gradient(145deg, #dcfce7, #bbf7d0);
}
html[data-theme="light"] .metric-card[data-metric="mobile"] {
  background: linear-gradient(145deg, #dbeafe, #bae6fd);
}
html[data-theme="light"] .metric-card[data-metric="social"] {
  background: linear-gradient(145deg, #f3e8ff, #fce7f3);
}
html[data-theme="light"] .metric-card[data-metric="content"] {
  background: linear-gradient(145deg, #ffedd5, #fee2e2);
}

/* Depth overlay: subtle noise/gradient on top */
html[data-theme="light"] .metric-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: radial-gradient(
    circle at 20% 30%,
    rgba(255, 255, 255, 0.3) 0%,
    transparent 60%
  );
  pointer-events: none;
  z-index: 1;
}

/* Icon */
html[data-theme="light"] .metric-card .metric-icon {
  position: relative;
  z-index: 2;
  font-size: 2.5rem;
  line-height: 1;
  margin-bottom: 0.5rem;
  filter: drop-shadow(0 8px 12px rgba(0, 0, 0, 0.2));
}

/* Value */
html[data-theme="light"] .metric-card .metric-value {
  position: relative;
  z-index: 2;
  font-size: 2.25rem;
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 0.25rem;
  background: linear-gradient(135deg, currentColor 0%, currentColor 80%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* Colour values */
html[data-theme="light"] .metric-card[data-metric="performance"] .metric-value {
  color: #059669;
}
html[data-theme="light"] .metric-card[data-metric="mobile"] .metric-value {
  color: #2563eb;
}
html[data-theme="light"] .metric-card[data-metric="social"] .metric-value {
  color: #9333ea;
}
html[data-theme="light"] .metric-card[data-metric="content"] .metric-value {
  color: #ea580c;
}

/* Label */
html[data-theme="light"] .metric-card .metric-label {
  position: relative;
  z-index: 2;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: #1e293b;
  opacity: 0.9;
}

/* Hover – lift and intensify shadows */
html[data-theme="light"] .metric-card:hover {
  transform: translateY(-8px);
  box-shadow:
    0 35px 60px -15px rgba(0, 0, 0, 0.4),
    0 8px 20px rgba(0, 0, 0, 0.15),
    inset 0 -2px 4px rgba(0, 0, 0, 0.1),
    inset 0 2px 6px rgba(255, 255, 255, 0.9);
}

/* ===== SOCIAL MEDIA HEALTH HEADING - LIGHT MODE ===== */
html[data-theme="light"] h2.bg-gradient-to-r.from-pink-500.to-blue-500 {
  background: none !important; /* remove gradient */
  color: #0f172a !important; /* dark slate */
  -webkit-text-fill-color: #0f172a !important;
  background-clip: unset !important;
  -webkit-background-clip: unset !important;
  text-shadow: none !important; /* optional */
}

/* Also make the icon dark */
html[data-theme="light"] h2.bg-gradient-to-r.from-pink-500.to-blue-500 i {
  color: #0f172a !important;
}

/* ============================================
   DIAL GRID - LIGHT THEME TEXT FIX
   Add this to your CSS or create dial-grid-light-fix.css
   ============================================ */

/* Light theme text colors for dial grid */
body:not(.dark) .dial-face h3,
html:not(.dark) .dial-face h3 {
  color: #1f2937 !important; /* dark gray */
}

body:not(.dark) .dial-face p,
html:not(.dark) .dial-face p {
  color: #4b5563 !important; /* medium gray */
}

body:not(.dark) .dial-face .text-gray-600,
html:not(.dark) .dial-face .text-gray-600 {
  color: #4b5563 !important;
}

body:not(.dark) .dial-face .text-gray-300,
html:not(.dark) .dial-face .text-gray-300 {
  color: #6b7280 !important;
}

/* Make sure gradient text shows in both themes */
.performance-score,
.visibility-score {
  background: linear-gradient(135deg, #ec4899, #3b82f6) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
}

/* Dark theme - keep white */
.dark .dial-face h3,
html.dark .dial-face h3 {
  color: white !important;
}

.dark .dial-face p,
html.dark .dial-face p {
  color: #d1d5db !important;
}

/* Light mode - dark text on dial cards */
.dial-face h3 {
  color: #1f2937; /* dark gray */
}

.dial-face p {
  color: #6b7280; /* medium gray */
}

/* Dark mode - white text on dial cards */
.dark .dial-face h3,
[data-theme="dark"] .dial-face h3,
html.dark .dial-face h3 {
  color: #ffffff !important;
}

.dark .dial-face p,
[data-theme="dark"] .dial-face p,
html.dark .dial-face p {
  color: #d1d5db !important;
}
