/* 
Theme: "Cyber-Wellness Mobile App Style"
Background: Deep Obsidian (#11131A) - Lighter than before
Highlights: Bio-Electric Blue (#4DBEF1), Metabolic Magenta (#D858A8)
Typography: Inter (body), Outfit (headers)
*/

:root {
  --bg-color: #11131A;
  --bg-panel: #1A1C24;
  --blue: #4DBEF1;
  --blue-dark: #2A93C4;
  --magenta: #D858A8;
  --magenta-dark: #A7387F;
  --text-main: #FFFFFF;
  --text-secondary: #B0B5C1;

  --glass-bg: rgba(255, 255, 255, 0.05);
  --glass-border: rgba(255, 255, 255, 0.1);
  --glass-blur: blur(20px);
  --font-inter: 'Inter', sans-serif;
  --font-space: 'Outfit', sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: var(--bg-color);
  color: var(--text-main);
  font-family: var(--font-inter);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* 3D Canvas Background */
#digital-twin-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  pointer-events: none;
  /* Let clicks pass through */
}

/* Toast Notification */
.toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--blue);
  color: #111;
  padding: 15px 30px;
  border-radius: 30px;
  font-weight: 600;
  font-size: 1rem;
  z-index: 1000;
  box-shadow: 0 10px 30px rgba(77, 190, 241, 0.3);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.toast.show {
  transform: translateX(-50%) translateY(0);
}

/* Fallback for No WebGL */
.webgl-fallback {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: radial-gradient(circle at center, #1a1b26 0%, var(--bg-color) 100%);
  z-index: -2;
  display: flex;
  justify-content: center;
  align-items: center;
}

.webgl-fallback.hidden {
  display: none;
}

.fallback-content {
  text-align: center;
  padding: 2rem;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
}

/* Typography & Utility */
h1,
h2,
h3,
h4,
.logo {
  font-family: var(--font-space);
  letter-spacing: -0.01em;
}

.title {
  font-size: 2.8rem;
  font-weight: 700;
  margin-bottom: 15px;
}

.subtitle {
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin-bottom: 60px;
  font-weight: 400;
}

.gradient-text {
  background: linear-gradient(90deg, var(--blue), var(--magenta));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.blue-text {
  color: var(--blue);
}

.magenta {
  color: var(--magenta);
}

.blue {
  color: var(--blue);
}

.mt-3 {
  margin-top: 15px;
}

.text-center {
  text-align: center;
}

.section-padding {
  padding: 100px 5%;
  position: relative;
  z-index: 10;
}

.center {
  text-align: center;
}

/* Glassmorphism */
.glass-panel,
.glass-card,
.glass-nav {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
}

/* Navigation */
.glass-nav {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 1200px;
  height: 70px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 30px;
  z-index: 100;
  border-radius: 35px;
}

.logo {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text-main);
}

.logo span {
  color: var(--blue);
}

.nav-links {
  display: flex;
  gap: 30px;
  list-style: none;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: var(--text-main);
}

.glow-btn {
  background: transparent;
  color: var(--text-main);
  border: 1px solid var(--glass-border);
  padding: 10px 24px;
  border-radius: 20px;
  cursor: pointer;
  font-family: var(--font-inter);
  font-weight: 600;
  transition: all 0.3s ease;
}

.glow-btn:hover {
  background: var(--blue);
  color: #111;
  border-color: var(--blue);
  box-shadow: 0 0 20px rgba(77, 190, 241, 0.3);
}

/* Hero Section */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 120px 10% 50px;
  position: relative;
  z-index: 10;
}

.hero-content {
  max-width: 650px;
  padding: 50px;
  background: rgba(17, 19, 26, 0.4);
}

.badge {
  display: inline-block;
  background: rgba(216, 88, 168, 0.1);
  color: var(--magenta);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 20px;
  border: 1px solid rgba(216, 88, 168, 0.3);
}

.hero-title {
  font-size: 4.5rem;
  line-height: 1.1;
  margin-bottom: 20px;
  font-weight: 800;
}

.hero-sub {
  font-size: 1.15rem;
  color: var(--text-secondary);
  margin-bottom: 40px;
  line-height: 1.7;
}

.hero-buttons {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.cta-btn {
  padding: 18px 32px;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.4s ease;
  font-family: var(--font-inter);
  border: none;
}

.liquid-glow {
  background: linear-gradient(90deg, var(--blue), var(--magenta));
  background-size: 200% auto;
  color: white;
  box-shadow: 0 10px 25px rgba(216, 88, 168, 0.2);
}

.liquid-glow:hover {
  background-position: right center;
  box-shadow: 0 15px 30px rgba(77, 190, 241, 0.4);
  transform: translateY(-2px);
}

.secondary-btn {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
  border: 1px solid var(--glass-border);
}

.secondary-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}

.twin-controls {
  display: flex;
  gap: 25px;
  margin-bottom: 40px;
  padding: 20px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 16px;
}

.toggle-control {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}

.toggle-control input {
  display: none;
}

.slider {
  width: 50px;
  height: 28px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 34px;
  position: relative;
  transition: .4s;
}

.slider:before {
  content: "";
  position: absolute;
  height: 20px;
  width: 20px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  border-radius: 50%;
  transition: .4s;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.toggle-control input:checked+.slider-magenta {
  background-color: var(--magenta);
}

.toggle-control input:checked+.slider-magenta:before {
  transform: translateX(22px);
}

.toggle-control input:checked+.slider-blue {
  background-color: var(--blue);
}

.toggle-control input:checked+.slider-blue:before {
  transform: translateX(22px);
}

.label-text {
  font-size: 0.95rem;
  font-weight: 500;
  opacity: 0.6;
  transition: opacity 0.3s;
}

.toggle-control input:checked~.label-text {
  opacity: 1;
  font-weight: 600;
}


/* How It Works Section */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.step-card {
  padding: 40px;
  text-align: center;
  transition: transform 0.3s;
}

.step-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 255, 255, 0.2);
}

.step-num {
  width: 50px;
  height: 50px;
  background: var(--blue);
  color: #111;
  font-size: 1.5rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  margin: 0 auto 20px;
  font-family: var(--font-space);
}

.step-card h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
}

.step-card p {
  color: var(--text-secondary);
  line-height: 1.6;
}


/* Dashboard Section */
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
}

.widget {
  padding: 30px;
  transition: transform 0.3s ease;
  background: var(--bg-panel);
}

.widget:hover {
  transform: translateY(-5px);
  border-color: rgba(77, 190, 241, 0.3);
}

.widget-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
}

.widget-title {
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
}

.live-dot {
  width: 10px;
  height: 10px;
  background-color: var(--blue);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(77, 190, 241, 0.5);
  }

  70% {
    box-shadow: 0 0 0 15px rgba(77, 190, 241, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(77, 190, 241, 0);
  }
}

.widget-value {
  font-size: 1.5rem;
  font-weight: 700;
  font-family: var(--font-space);
}

.chart-container {
  width: 100%;
  height: 150px;
  position: relative;
}

.widget-footer {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-top: 15px;
}

/* Progress Circle */
.recovery-circle {
  width: 140px;
  height: 140px;
  margin: 0 auto;
  position: relative;
}

.circular-chart {
  display: block;
  margin: 0 auto;
  max-width: 100%;
  max-height: 250px;
}

.circle-bg {
  fill: none;
  stroke: rgba(255, 255, 255, 0.05);
  stroke-width: 3;
}

.circle-progress {
  fill: none;
  stroke: var(--blue);
  stroke-width: 3;
  stroke-linecap: round;
  transition: stroke-dasharray 0.5s ease;
}

.recovery-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-weight: 800;
  font-size: 1.4rem;
  color: var(--text-main);
  font-family: var(--font-space);
}

.adaptation-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.adaptation-item {
  background: rgba(255, 255, 255, 0.02);
  padding: 15px;
  border-radius: 12px;
  font-size: 0.95rem;
  border-left: 4px solid var(--blue);
  color: var(--text-secondary);
}

/* Recomposition Section */
.slider-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 50px 40px;
}

.slider-labels {
  display: flex;
  justify-content: space-between;
  margin-bottom: 25px;
  font-family: var(--font-space);
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--text-main);
}

.recomp-slider {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  width: 100%;
  height: 12px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  outline: none;
  margin-bottom: 50px;
}

.recomp-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--blue);
  cursor: pointer;
  box-shadow: 0 0 20px var(--blue);
  border: 4px solid #fff;
}

.recomp-metrics {
  display: flex;
  justify-content: space-around;
  background: rgba(0, 0, 0, 0.2);
  padding: 20px;
  border-radius: 16px;
}

.metric {
  display: flex;
  flex-direction: column;
  gap: 5px;
  text-align: center;
}

.metric .label {
  font-size: 0.9rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.metric .value {
  font-size: 2.2rem;
  font-weight: 800;
  font-family: var(--font-space);
}

/* Pricing Section */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.price-card {
  padding: 40px 30px;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.1s;
  background: var(--bg-panel);
}

.premium-card {
  border: 1px solid rgba(216, 88, 168, 0.4);
  background: linear-gradient(180deg, var(--bg-panel) 0%, rgba(216, 88, 168, 0.05) 100%);
  transform: scale(1.05);
  /* slightly bigger */
  z-index: 1;
}

.popular-badge {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(90deg, var(--blue), var(--magenta));
  color: white;
  padding: 6px 20px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 1px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.tier-name {
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 15px;
  font-family: var(--font-space);
}

.tier-price {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 20px;
  font-family: var(--font-space);
}

.period {
  font-size: 1.2rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.tier-desc {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 30px;
  min-height: 48px;
  line-height: 1.5;
}

.tier-features {
  list-style: none;
  margin-bottom: 40px;
}

.tier-features li {
  margin-bottom: 18px;
  font-size: 1rem;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.tier-features li::before {
  content: '✔';
  color: var(--blue);
  font-weight: bold;
  font-size: 1.1rem;
}

.tier-btn {
  width: 100%;
  padding: 16px;
  border-radius: 12px;
  border: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.05);
  color: white;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: var(--font-inter);
}

.tier-btn:hover {
  background: rgba(255, 255, 255, 0.15);
}

.premium-btn {
  background: var(--blue);
  color: #111;
  border: none;
}

.premium-btn:hover {
  background: var(--blue-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(77, 190, 241, 0.3);
}

.footer {
  text-align: center;
  padding: 40px;
  border-top: 1px solid var(--glass-border);
  margin-top: 80px;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.footer .logo {
  margin-bottom: 15px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .hero-title {
    font-size: 3rem;
  }

  .hero-content {
    padding: 30px;
    margin-top: 50px;
  }

  .premium-card {
    transform: scale(1);
  }

  .glass-nav {
    padding: 0 20px;
    border-radius: 20px;
  }

  .nav-links {
    display: none;
  }

  /* Hide links on mobile for simplicity */
}

/* Modal Styles */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(17, 19, 26, 0.85);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  z-index: 2000;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 1;
  transition: opacity 0.3s;
}

.modal.hidden {
  opacity: 0;
  pointer-events: none;
}

.modal-content {
  background: var(--bg-panel);
  padding: 45px 40px;
  width: 90%;
  max-width: 450px;
  position: relative;
  text-align: center;
  border-radius: 24px;
  border: 1px solid var(--glass-border);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
}

.close-btn {
  position: absolute;
  top: 20px;
  right: 25px;
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 2rem;
  cursor: pointer;
  transition: color 0.3s;
}

.close-btn:hover {
  color: white;
}

.modal-title {
  font-size: 2rem;
  margin-bottom: 15px;
}

.modal-subtitle {
  color: var(--text-secondary);
  margin-bottom: 35px;
  font-size: 1.05rem;
  line-height: 1.5;
}

.provider-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.provider-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  background: rgba(255, 255, 255, 0.03);
  color: white;
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 18px;
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  font-family: var(--font-inter);
}

.provider-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--blue);
  transform: translateY(-2px);
}

.provider-icon {
  font-size: 1.5rem;
}

.loading-state,
.success-state {
  padding: 30px 0;
}

.spinner {
  width: 60px;
  height: 60px;
  border: 4px solid rgba(77, 190, 241, 0.1);
  border-top-color: var(--blue);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 25px;
}

@keyframes spin {
  100% {
    transform: rotate(360deg);
  }
}

#loading-text {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--blue);
  letter-spacing: 1px;
}

.success-icon {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, #2EC4B6, #1C7F76);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: white;
  margin: 0 auto 25px;
  box-shadow: 0 10px 20px rgba(46, 196, 182, 0.3);
}

.success-state p {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 5px;
}

.success-state .small-text {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-top: 15px;
  font-weight: 400;
}

/* Auth Form */
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.auth-title {
  font-size: 1.8rem;
  margin-bottom: 5px;
}

.auth-desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 25px;
}

.auth-input {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  padding: 16px;
  border-radius: 12px;
  color: white;
  font-family: var(--font-inter);
  font-size: 1rem;
  outline: none;
  transition: border-color 0.3s;
  -moz-appearance: none;
  /* Added for linter */
  -webkit-appearance: none;
  appearance: none;
}

.auth-input:focus {
  border-color: var(--blue);
}

.auth-submit {
  width: 100%;
  padding: 16px;
  margin-top: 10px;
  font-size: 1.1rem;
}

.auth-back {
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  margin-top: 15px;
  font-size: 0.95rem;
}

.auth-back:hover {
  color: white;
}

/* SPA View Logic */
.page-view {
  display: block;
  opacity: 1;
  transition: opacity 0.5s ease;
  min-height: 80vh;
}

.page-view.hidden-view {
  display: none;
  opacity: 0;
}

/* Tab Navigation Status */
.nav-tab.active-tab {
  color: var(--blue);
  text-shadow: 0 0 10px rgba(77, 190, 241, 0.5);
}

/* Charming Golden Nickname */
.golden-nickname {
  background: linear-gradient(90deg, #FFD700, #FFA500, #FFD700);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shineGolden 3s linear infinite;
  font-family: var(--font-space);
  display: inline-block;
  text-shadow: 0 0 20px rgba(255, 215, 0, 0.4);
}

@keyframes shineGolden {
  to {
    background-position: 200% center;
  }
}

.days-container {
  display: flex;
  flex-direction: column;
  gap: 15px;
  padding: 10px;
}

/* Day Bouncing 3D Buttons */
.day-bouncing-btn {
  display: block;
  width: 100%;
  margin: 15px 0;
  padding: 20px;
  background: linear-gradient(135deg, rgba(77, 190, 241, 0.1), rgba(46, 196, 182, 0.2));
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  color: white;
  font-family: var(--font-outfit);
  font-size: 1.3rem;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3), inset 0px 2px 5px rgba(255, 255, 255, 0.1);
  animation: bounceFloat 3s ease-in-out infinite;
  animation-delay: calc(var(--bounce-delay) * 0.2s);
}

.day-bouncing-btn:hover {
  transform: translateY(-8px) scale(1.02);
  background: linear-gradient(135deg, rgba(77, 190, 241, 0.3), rgba(46, 196, 182, 0.4));
  box-shadow: 0 15px 30px rgba(77, 190, 241, 0.2);
}

@keyframes bounceFloat {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

/* Full Page Workout Modal */
.full-page-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(11, 12, 16, 0.95);
  backdrop-filter: blur(15px);
  z-index: 10000;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 40px 20px;
  overflow-y: auto;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.4s ease, visibility 0.4s;
}

.full-page-modal.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.modal-content-container {
  width: 100%;
  max-width: 800px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 30px;
  position: relative;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.close-full-modal {
  position: absolute;
  top: 20px;
  right: 25px;
  background: none;
  border: none;
  color: white;
  font-size: 2.5rem;
  cursor: pointer;
  transition: color 0.3s, transform 0.3s;
}

.close-full-modal:hover {
  color: var(--magenta);
  transform: rotate(90deg);
}

.modal-content-inner {
  margin-top: 20px;
  font-size: 1.05rem;
  line-height: 1.6;
}

/* =========================================
   FITBIT STYLE RING DASHBOARD
   ========================================= */
.fitbit-dashboard {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  margin-top: 30px;
  background: #000000;
  padding: 40px 20px;
  border-radius: 24px;
  box-shadow: inset 0 0 50px rgba(0, 0, 0, 0.8), 0 10px 30px rgba(0, 0, 0, 0.5);
}

.fitbit-ring-container {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  filter: drop-shadow(0 0 20px rgba(102, 252, 241, 0.15));
}

.fitbit-ring {
  transform: rotate(-90deg);
  /* Start at 12 o'clock */
  overflow: visible;
}

.fitbit-ring-bg {
  fill: none;
  stroke: #1B2926;
  /* Dark teal background */
  stroke-width: 14;
}

.fitbit-ring-prog {
  fill: none;
  stroke: #66FCF1;
  stroke-width: 14;
  stroke-linecap: round;
  transition: stroke-dashoffset 2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.ring-icon {
  position: absolute;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 3rem;
  filter: drop-shadow(0 0 10px rgba(102, 252, 241, 0.5));
}

.sub-ring-icon {
  position: absolute;
  top: 35%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 1.8rem;
}

.fitbit-val {
  font-size: 4rem;
  font-weight: 500;
  color: #F8F9FA;
  margin-top: -20px;
  z-index: 10;
  font-family: inherit;
  letter-spacing: 1px;
}

.fitbit-label {
  font-size: 1.1rem;
  color: #A0AAB2;
  margin-top: 5px;
}

.fitbit-sub-rings {
  display: flex;
  justify-content: center;
  gap: 60px;
  width: 100%;
}

.fitbit-sub-ring-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.sub-fitbit-val {
  font-size: 2rem;
  font-weight: 500;
  color: #F8F9FA;
  margin-top: -10px;
}

.sub-fitbit-label {
  font-size: 1rem;
  color: #A0AAB2;
}

/* --- NEW AWESOME PROFILE PAGE STYLES --- */
.glow-text {
  text-shadow: 0 0 20px rgba(77, 190, 241, 0.6);
}

.profile-showcase {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: center;
  align-items: stretch;
  margin-top: 40px;
}

.holo-card {
  position: relative;
  width: 350px;
  min-height: 480px;
  background: rgba(20, 22, 30, 0.8);
  border: 1px solid rgba(77, 190, 241, 0.3);
  border-radius: 24px;
  padding: 40px 20px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), inset 0 0 40px rgba(77, 190, 241, 0.1);
  overflow: hidden;
  transform-style: preserve-3d;
  transition: transform 0.1s;
}

.holo-card:hover {
  transform: scale(1.02);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6), inset 0 0 60px rgba(77, 190, 241, 0.2);
}

.holo-overlay {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent 45%, rgba(77, 190, 241, 0.1) 50%, transparent 55%);
  animation: holoSweep 4s linear infinite;
  pointer-events: none;
}

@keyframes holoSweep {
  0% {
    transform: translateY(-50%) rotate(45deg);
  }

  100% {
    transform: translateY(50%) rotate(45deg);
  }
}

.avatar-ring {
  width: 140px;
  height: 140px;
  margin: 0 auto;
  border-radius: 50%;
  padding: 5px;
  background: linear-gradient(135deg, var(--blue), var(--magenta));
  animation: spinRing 5s linear infinite;
  box-shadow: 0 0 30px rgba(216, 88, 168, 0.4);
}

@keyframes spinRing {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

.profile-avatar {
  border-radius: 50%;
  width: 100%;
  height: 100%;
  border: 4px solid var(--bg-panel);
  animation: counterSpin 5s linear infinite;
}

@keyframes counterSpin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(-360deg);
  }
}

.rank-badge {
  display: inline-block;
  background: rgba(255, 215, 0, 0.1);
  color: #FFD700;
  padding: 8px 16px;
  border-radius: 20px;
  font-weight: 700;
  margin-top: 5px;
  border: 1px solid rgba(255, 215, 0, 0.5);
  box-shadow: 0 0 15px rgba(255, 215, 0, 0.2);
}

.sync-status {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-top: 15px;
  display: block;
}

.stats-row {
  display: flex;
  justify-content: space-around;
  margin-top: 40px;
  border-top: 1px solid var(--glass-border);
  padding-top: 25px;
}

.stat-box {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat-label {
  font-size: 0.85rem;
  text-transform: uppercase;
  color: var(--text-secondary);
  letter-spacing: 1px;
}

.stat-value {
  font-size: 2rem;
  font-weight: 800;
  font-family: var(--font-space);
  text-shadow: 0 0 10px currentColor;
}

.beast-mode-panel {
  width: 350px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  border: 1px solid rgba(255, 51, 51, 0.2);
  background: rgba(20, 0, 0, 0.2);
  transition: all 0.3s;
}

.switch-beast {
  position: relative;
  display: inline-block;
  width: 180px;
  height: 60px;
}

.switch-beast input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider-beast {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(255, 0, 0, 0.1);
  border: 2px solid #ff3333;
  transition: .4s;
  border-radius: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 0 20px rgba(255, 0, 0, 0.2);
}

.beast-text {
  color: #ff3333;
  font-family: var(--font-space);
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: 2px;
  transition: 0.4s;
}

.switch-beast input:checked+.slider-beast {
  background-color: #ff0000;
  box-shadow: 0 0 40px #ff0000, inset 0 0 20px #800000;
  border-color: #ff0000;
}

.switch-beast input:checked+.slider-beast .beast-text {
  color: #fff;
  text-shadow: 0 0 10px #fff;
}

.badges {
  display: flex;
  gap: 15px;
  justify-content: center;
}

.badge-3d {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(0, 0, 0, 0.5));
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  cursor: default;
}

.badge-3d span {
  font-size: 0.7rem;
  color: var(--text-secondary);
  margin-top: 5px;
}

/* Beast Mode Global overrides */
body.beast-mode-active {
  --blue: #ff3333 !important;
  --bg-color: #1a0505 !important;
  --bg-panel: #2a0a0a !important;
  --magenta: #ff6600 !important;
  --glass-border: rgba(255, 51, 51, 0.2) !important;
}

body.beast-mode-active #digital-twin-canvas {
  filter: hue-rotate(150deg) saturate(200%) brightness(0.8);
}

/* --- HOME PAGE VLOGS, QUOTES, AND THEMES --- */
@keyframes marquee {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

.theme-btn {
  margin-top: auto;
}

.theme-card {
  display: flex;
  flex-direction: column;
}

.vlog-card:hover .vlog-thumbnail img {
  transform: scale(1.05);
}

.vlog-card:hover .play-btn {
  background: var(--blue);
  border-color: var(--blue);
  transform: scale(1.1);
  box-shadow: 0 0 20px rgba(77, 190, 241, 0.6);
}

.play-btn {
  width: 60px;
  height: 60px;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(5px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid white;
  cursor: pointer;
  transition: all 0.3s;
  z-index: 2;
}

.play-icon {
  width: 0;
  height: 0;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-left: 15px solid white;
  margin-left: 5px;
}

.vlog-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 100px;
  background: linear-gradient(transparent, #111);
  z-index: 1;
}

.vlog-duration {
  position: absolute;
  bottom: 15px;
  right: 15px;
  background: rgba(0, 0, 0, 0.8);
  padding: 4px 10px;
  border-radius: 10px;
  font-size: 0.85rem;
  z-index: 3;
}

.vlog-diet-badge {
  background: rgba(77, 190, 241, 0.1) !important;
  color: var(--blue) !important;
  border: 1px solid rgba(77, 190, 241, 0.3) !important;
}

.vlog-transform-badge {
  background: rgba(255, 215, 0, 0.1) !important;
  color: #FFD700 !important;
  border: 1px solid rgba(255, 215, 0, 0.3) !important;
}