:root {
  /* Premium Startup Palette */
  --primary: #7B61FF;
  --secondary: #FF6B98;
  --accent: #FF9F0A;

  --bg-app: #F9FAFB;
  --bg-white: #FFFFFF;
  --bg-glass: rgba(255, 255, 255, 0.7);
  --glass-border: rgba(0, 0, 0, 0.08);

  --text-main: #1D1D1F;
  --text-muted: #86868B;
  --card-bg: #FFFFFF;
  --border-color: rgba(0, 0, 0, 0.05);
  --error: #FF3B30;
  --surface-light: #F2F2F7;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-full: 9999px;

  /* Refined Soft Shadows */
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.03);
  --shadow-md: 0 8px 20px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 16px 32px rgba(0, 0, 0, 0.08);

  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font-ar: 'Cairo', sans-serif;
  --font-en: 'Inter', sans-serif;
  --font-main: var(--font-ar);

  /* Typography Scale */
  --font-size-title: 22px;
  --font-size-subtitle: 16px;
  --font-size-body: 14px;

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  --gradient-secondary: linear-gradient(135deg, #5e5ce6 0%, var(--primary) 100%);
  --grad-hero: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
}

.container {
  width: 100%;
  padding-right: 1rem;
  padding-left: 1rem;
  margin-right: auto;
  margin-left: auto;
}

@media (min-width: 576px) {
  .container {
    max-width: 540px;
  }
}
@media (min-width: 768px) {
  .container {
    max-width: 720px;
    padding-right: 1.5rem;
    padding-left: 1.5rem;
  }
}
@media (min-width: 992px) {
  .container {
    max-width: 960px;
  }
}
@media (min-width: 1200px) {
  .container {
    max-width: 1200px;
  }
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  max-width: 100vw;
  overflow-x: hidden;
}

body {
  font-family: var(--font-main);
  background: var(--bg-app);
  color: var(--text-main);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  width: 100%;
}

/* ✨ BACKROUND MESH & BLOBS ✨ */
.bg-mesh {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: -1;
  background: radial-gradient(circle at 0% 0%, rgba(123, 97, 255, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 100% 100%, rgba(255, 107, 152, 0.05) 0%, transparent 50%);
  pointer-events: none;
}

.blob-container {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.blob {
  position: absolute;
  filter: blur(80px);
  border-radius: 50%;
  opacity: 0.15;
  animation: blobFloat 20s infinite alternate;
}

.blob-1 {
  width: 500px;
  height: 500px;
  background: var(--primary);
  top: -100px;
  left: -100px;
}

.blob-2 {
  width: 400px;
  height: 400px;
  background: var(--secondary);
  bottom: -100px;
  right: -100px;
  animation-delay: -5s;
}

@keyframes blobFloat {
  0% {
    transform: translate(0, 0) scale(1);
  }

  33% {
    transform: translate(30px, -50px) scale(1.1);
  }

  66% {
    transform: translate(-20px, 20px) scale(0.9);
  }

  100% {
    transform: translate(0, 0) scale(1);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(15px) scale(0.98);
    filter: blur(5px);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

@keyframes fadeOut {
  from {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }

  to {
    opacity: 0;
    transform: translateY(-15px) scale(0.98);
    filter: blur(5px);
  }
}

.fade-in {
  animation: fadeIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.fade-out {
  animation: fadeOut 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards !important;
}

/* ══ RECOVERY MISSION (LAST CHANCE) ══ */
.recovery-mode {
  background: linear-gradient(135deg, #1A0B0B 0%, #000 100%) !important;
  min-height: 100vh;
}

.recovery-banner {
  background: linear-gradient(135deg, #FF2D55 0%, #8E0000 100%);
  border-radius: 20px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  color: white;
  box-shadow: 0 10px 40px rgba(255, 45, 85, 0.4);
  position: relative;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.1);
  animation: heartbeat-pulse 2.5s infinite ease-in-out;
}

.recovery-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.05) 0px, rgba(255, 255, 255, 0.05) 10px, transparent 10px, transparent 20px);
  pointer-events: none;
}

@keyframes heartbeat-pulse {
  0% {
    transform: scale(1);
    box-shadow: 0 10px 40px rgba(255, 45, 85, 0.4);
  }

  15% {
    transform: scale(1.02);
    box-shadow: 0 15px 50px rgba(255, 45, 85, 0.6);
  }

  30% {
    transform: scale(1);
  }

  45% {
    transform: scale(1.01);
  }

  60% {
    transform: scale(1);
  }
}

.recovery-title {
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.recovery-subtitle {
  font-size: 0.9rem;
  opacity: 0.9;
  margin-bottom: 1rem;
  line-height: 1.4;
}

.recovery-countdown-wrapper {
  background: rgba(0, 0, 0, 0.4);
  padding: 0.75rem 1.25rem;
  border-radius: 99px;
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  font-family: 'Courier New', Courier, monospace;
  font-weight: bold;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.recovery-countdown-time {
  font-size: 1.5rem;
  color: #FF9F0A;
  letter-spacing: 2px;
}

.recovery-countdown-time.urgent {
  color: #FF3B30;
  animation: blinker 1s linear infinite;
}

@keyframes blinker {
  50% {
    opacity: 0;
  }
}

.recovery-mission-grid {
  display: grid;
  gap: 0.75rem;
  margin-top: 1rem;
}

.recovery-task-card {
  background: rgba(255, 255, 255, 0.1);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  padding: 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: all 0.3s ease;
  cursor: pointer;
}

.recovery-task-card:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateX(-5px);
}

.recovery-task-card.done {
  opacity: 0.6;
  background: rgba(52, 199, 89, 0.2);
  border-color: #34C759;
}

.recovery-task-card .task-icon {
  font-size: 1.5rem;
  background: rgba(0, 0, 0, 0.2);
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
}

.recovery-task-card .task-info {
  flex: 1;
}

.recovery-task-card .task-title {
  font-weight: 700;
  font-size: 1rem;
}

.recovery-task-card .task-xp {
  font-size: 0.8rem;
  color: #FFD700;
  font-weight: bold;
}

.recovery-task-card.done .task-check {
  color: #34C759;
  font-size: 1.2rem;
}

/* ════════════════════════════════════════ */
/* RTL Adjustments */
[dir="rtl"] .logo i {
  margin-left: 0.5rem;
  margin-right: 0;
}

[dir="rtl"] .close-modal {
  right: auto;
  left: 1.5rem;
}

/* Page Section Spacing */
.view {
  min-height: 100vh;
  padding-top: 100px;
  position: relative;
}

/* Utilities */
.hidden {
  display: none !important;
}

.mt-1 {
  margin-top: 0.25rem;
}

.mt-2 {
  margin-top: 0.5rem;
}

.mt-3 {
  margin-top: 1rem;
}

.mt-4 {
  margin-top: 1.5rem;
}

.mt-5 {
  margin-top: 2rem;
}

.text-sm {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.clickable {
  cursor: pointer;
}

/* ✨ SCROLL REVEAL ANIMATION ✨ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease-out;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* 🌐 LANGUAGE SWITCHER */
.lang-switcher-btn {
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: var(--primary);
  transition: opacity 0.3s;
  text-decoration: none;
}

.lang-switcher-btn:hover {
  opacity: 0.8;
}

/* 🗂️ SECTION HEADERS */
.section-header {
  text-align: center;
  margin-bottom: 5rem;
}

@media (max-width: 768px) {
  .section-header {
    margin-bottom: 3rem;
  }
}

.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

@media (max-width: 768px) {
  .section-title {
    font-size: 1.8rem;
  }
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 1.15rem;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

@media (max-width: 768px) {
  .section-subtitle {
    font-size: 1rem;
  }
}

/* 🏁 SITE FOOTER */
.site-footer {
  padding: 4rem 0;
  border-top: 1px solid var(--glass-border);
  text-align: center;
}

.site-footer p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.8;
}

/* 🔐 AUTH PAGES — Shared Styles */
.label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.6rem;
}

.label-inline {
  margin-bottom: 0;
}

.forgot-link {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
}

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

.err-center {
  display: block;
  text-align: center;
  margin-bottom: 1rem;
}

.btn-icon-right {
  margin-right: 8px;
}

.auth-footer {
  text-align: center;
  margin-top: 2rem;
  border-top: 1px solid var(--glass-border);
  padding-top: 1.5rem;
}

.auth-footer p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.auth-footer a {
  color: var(--primary);
  font-weight: 800;
  text-decoration: none;
}

.auth-footer a:hover {
  text-decoration: underline;
}

/* AUTH: Icon with gradient */
.auth-icon-gradient {
  background: var(--grad-hero) !important;
}

.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 1rem;
}

.auth-card {
  background: var(--card-bg);
  width: 100%;
  max-width: 440px;
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-color);
  z-index: 10;
}

@media (max-width: 480px) {
  .auth-card {
    padding: 1.5rem;
  }
}

.auth-header {
  text-align: center;
  margin-bottom: 2rem;
}

.brand-logo-center {
  display: flex;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.auth-logo-img {
  max-width: 120px;
}

.auth-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(123, 97, 255, 0.1);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  margin: 0 auto 1.5rem;
}

.btn-back-arrow {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: white;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-main);
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  font-size: 1.25rem;
  z-index: 100;
  transition: all 0.3s ease;
}

.btn-back-arrow:hover {
  background: var(--primary);
  color: white;
  transform: translateX(-5px);
}

/* MODAL internals */
.modal-content-title {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.modal-content-subtitle {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

.modal-actions {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
}

.mb-4 {
  margin-bottom: 1.5rem !important;
}

.p-3 {
  padding: 1rem !important;
}

.p-4 {
  padding: 1.5rem !important;
}

.text-center {
  text-align: center !important;
}

/* 📱 RESPONSIVE GRID SYSTEM 📱 */
.row {
  display: flex;
  flex-wrap: wrap;
  margin-right: -0.75rem;
  margin-left: -0.75rem;
}

.row.g-3 {
  margin-right: -0.5rem;
  margin-left: -0.5rem;
}

.row.g-3>[class*="col-"] {
  padding-right: 0.5rem;
  padding-left: 0.5rem;
}

.col-6 {
  flex: 0 0 50%;
  max-width: 50%;
  padding: 0.75rem;
}

.col-12 {
  flex: 0 0 100%;
  max-width: 100%;
  padding: 0.75rem;
}

.d-flex {
  display: flex !important;
}

.justify-content-between {
  justify-content: space-between !important;
}

.align-items-center {
  align-items: center !important;
}

/* 🚀 LANDING PAGE (INDEX) HERO SECTION 🚀 */
.hero {
  padding: 6rem 1rem 3rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

@media (min-width: 768px) {
  .hero {
    padding: 8rem 0 5rem;
  }
}

.hero-tag {
  background: rgba(123, 97, 255, 0.1);
  color: var(--primary);
  padding: 0.6rem 1.25rem;
  border-radius: 99px;
  font-weight: 800;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
  border: 1px solid rgba(123, 97, 255, 0.2);
}

.hero-h1 {
  font-size: 2.5rem;
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  color: var(--text-main);
}

.hero-h1 span {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

@media (min-width: 768px) {
  .hero-h1 {
    font-size: 4rem;
  }
}

.hero-p {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 700px;
  margin: 0 auto 3rem;
  line-height: 1.6;
}

@media (min-width: 768px) {
  .hero-p {
    font-size: 1.25rem;
  }
}

.hero-ctas {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  justify-content: center;
  width: 100%;
  max-width: 320px;
}

@media (min-width: 640px) {
  .hero-ctas {
    flex-direction: row;
    max-width: none;
  }
}

.hide-mobile {
  display: none !important;
}

@media (min-width: 640px) {
  .hide-mobile {
    display: inherit !important;
  }
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: rgba(255, 255, 255, 0.85);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  z-index: 1000;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
}

@media (max-width: 768px) {
  .navbar {
    height: 70px;
  }
}

@media (min-width: 768px) {
  nav {
    height: 80px;
  }
}

.nav-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 0.75rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

@media (min-width: 641px) {
  .nav-container {
    padding: 0 1.5rem;
  }
}

.logo {
  cursor: pointer;
  display: flex;
  align-items: center;
  z-index: 10;
}

.logo-img {
  height: 40px;
  /* Clean and elegant for the new square logo */
  width: auto;
  max-width: 150px;
  object-fit: contain;
  mix-blend-mode: multiply;
  /* Removes white background */
  transition: transform 0.3s ease;
}

@media (max-width: 640px) {
  .logo-img {
    height: auto;
    width: 100px;
    max-width: 35vw;
  }
}

/* ✨ FEATURES SECTION ✨ */
.section-p {
  padding: 8rem 0;
}

@media (max-width: 768px) {
  .section-p {
    padding: 4rem 1rem;
  }
}

.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 992px) {
  .features-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.f-card {
  background: white;
  padding: 3rem 2rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  text-align: center;
}

.f-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

.f-icon {
  width: 70px;
  height: 70px;
  background: rgba(123, 97, 255, 0.1);
  color: var(--primary);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 0 auto 1.5rem;
  transition: transform 0.4s ease;
}

.f-card:hover .f-icon {
  transform: scale(1.1) rotate(5deg);
  background: var(--primary);
  color: white;
}

.f-card h3 {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
  color: var(--text-main);
}

.f-card p {
  color: var(--text-muted);
  line-height: 1.6;
}

.nav-links {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  display: flex;
  flex-direction: column;
  padding: 2rem;
  gap: 1.5rem;
  border-bottom: 1px solid var(--border-color);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  z-index: 999;
}

.nav-links.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

@media (min-width: 769px) {
  .nav-links {
    position: static;
    flex-direction: row;
    align-items: center;
    transform: none;
    opacity: 1;
    visibility: visible;
    background: transparent;
    padding: 0;
    border: none;
    box-shadow: none;
    gap: 2rem;
    z-index: auto;
  }
}

.nav-link {
  text-decoration: none;
  color: var(--text-main);
  font-weight: 700;
  font-size: 0.95rem;
  transition: color 0.3s ease;
}

.nav-link:hover {
  color: var(--primary);
}

.mobile-menu-btn {
  display: none !important;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--text-main);
  cursor: pointer;
  border-radius: 10px;
  transition: background 0.3s;
}

@media (max-width: 768px) {
  .mobile-menu-btn {
    display: flex !important;
  }
}

/* Bottom Tab Bar (Mobile) */
#nav-bottom {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 40px);
  max-width: 400px;
  height: 65px;
  background: rgba(255, 255, 255, 0.9);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
  border: 1px solid rgba(255, 255, 255, 0.5);
}

.bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 11px;
  font-weight: 700;
  transition: var(--transition);
  cursor: pointer;
  border: none;
  background: transparent;
  flex: 1;
}

.bottom-nav-item i {
  font-size: 1.4rem;
}

.bottom-nav-item.active {
  color: var(--primary);
}

/* Hide navigation based on screen size */
@media (max-width: 768px) {
  #navbar {
    display: none !important;
  }
}

@media (min-width: 769px) {
  #nav-bottom {
    display: none !important;
  }
}

.nav-btn {
  position: relative;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  color: #1D1D1F;
  background: rgba(0, 0, 0, 0.03);
  border: none;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  font-size: 1.25rem;
  overflow: hidden;
}

.nav-btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 45, 85, 0.1);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.4s ease, height 0.4s ease;
  z-index: 0;
}

.nav-btn i {
  position: relative;
  z-index: 1;
  transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.nav-btn:hover {
  transform: translateY(-3px);
  background: rgba(0, 0, 0, 0.06);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.nav-btn:hover::before {
  width: 150%;
  height: 150%;
}

.nav-btn:active {
  transform: scale(0.92);
}

.nav-btn.active {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: white !important;
  box-shadow: 0 10px 25px rgba(255, 45, 85, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.4);
  transform: translateY(-4px) scale(1.05);
}

.nav-btn.active i {
  color: white;
  transform: scale(1.15);
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.nav-btn.outline {
  width: auto;
  min-width: 40px;
  height: 40px;
  padding: 0 0.6rem;
  border: 1.5px solid var(--border-color);
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 700;
  display: flex;
  gap: 0.4rem;
  color: var(--text-main);
  background: white;
}

/* Premium Dashboard Components */
.shadow-premium {
  box-shadow: 0 10px 30px rgba(123, 97, 255, 0.25);
}

.shadow-soft {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.badge-premium {
  background: rgba(255, 255, 255, 0.2);
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  font-weight: 800;
  font-size: 13px;
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Category Pills */
.cat-pill {
  border: 1.5px solid var(--border-color);
  background: var(--bg-white);
  transition: var(--transition);
}

.cat-pill:hover {
  transform: translateY(-3px);
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}

.cat-pill.active {
  border-color: var(--primary);
  background: rgba(123, 97, 255, 0.05);
  box-shadow: inset 0 0 0 1px var(--primary);
}

/* Task List & Cards */
.task-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.task-card-premium {
  background: var(--bg-white);
  padding: 1.25rem;
  border-radius: var(--radius-lg);
  border: 1.5px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: var(--transition);
  cursor: pointer;
}

.task-card-premium:hover {
  transform: scale(1.01) translateY(-2px);
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}

.task-card-premium.completed {
  opacity: 0.7;
  background: #F2F2F7;
}

.task-card-premium .task-check {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.task-card-premium.completed .task-check {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}

/* Leaderboard Mini */
.leaderboard-mini {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.lb-mini-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem;
  border-radius: var(--radius-md);
  transition: var(--transition);
}

.lb-mini-item:hover {
  background: rgba(0, 0, 0, 0.02);
}

.lb-mini-rank {
  font-weight: 800;
  width: 24px;
  font-size: 13px;
  color: var(--text-muted);
}

.lb-mini-info {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.lb-mini-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 12px;
}

.lb-mini-name {
  font-weight: 700;
  font-size: 14px;
}

.lb-mini-xp {
  font-weight: 800;
  font-size: 13px;
  color: var(--primary);
}

/* Challenges Layout Redesign */
.challenges-layout-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 900px) {
  .challenges-layout-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.challenge-category-col {
  display: flex;
  flex-direction: column;
}

.category-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Updated Challenge Card for List View */
.challenge-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.challenge-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.challenge-card .challenge-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--primary);
}

.challenge-card.type-daily .challenge-icon {
  background: rgba(255, 159, 10, 0.1);
  color: #FF9F0A;
}

.challenge-card.type-sports .challenge-icon {
  background: rgba(255, 45, 85, 0.1);
  color: #FF2D55;
}

.challenge-card.type-mental .challenge-icon {
  background: rgba(94, 92, 230, 0.1);
  color: #5E5CE6;
}

.challenge-title {
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  color: var(--text-main);
}

.challenge-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  line-height: 1.5;
}

/* Buttons - Modernized */
.btn {
  position: relative;
  padding: 0.85rem 1.8rem;
  border-radius: var(--radius-full);
  font-weight: 700;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  border: none;
  overflow: hidden;
  z-index: 1;
  font-family: inherit;
  letter-spacing: 0.3px;
  text-decoration: none;
}

.btn::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 150%;
  padding-bottom: 150%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 60%);
  transform: translate(-50%, -50%) scale(0);
  opacity: 0;
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.6s ease;
  border-radius: 50%;
  z-index: -1;
  pointer-events: none;
}

.btn:hover::after {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
}

.btn:active {
  transform: scale(0.95) translateY(0);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  background-size: 200% 200%;
  color: white;
  box-shadow: 0 8px 25px rgba(255, 45, 85, 0.3), inset 0 1px 1px rgba(255, 255, 255, 0.4);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  animation: bgPan 4s ease infinite alternate;
}

@keyframes bgPan {
  0% {
    background-position: 0% 50%;
  }

  100% {
    background-position: 100% 50%;
  }
}

.btn-primary:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 35px rgba(255, 45, 85, 0.5), inset 0 1px 1px rgba(255, 255, 255, 0.6);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.85);
  color: var(--primary);
  border: 1px solid rgba(255, 45, 85, 0.2);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.btn-secondary:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(255, 45, 85, 0.15);
  background: white;
  border-color: var(--primary);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--text-main);
  color: var(--text-main);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
}

.btn-outline:hover {
  background: var(--text-main);
  color: white;
  transform: translateY(-4px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}

/* Glass Card */
.glass-card {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
}

/* Fix for RTL Name */
#dash-welcome {
  unicode-bidi: plaintext;
  text-align: right;
}

#dash-welcome-name {
  color: white;
  border-bottom: 2px solid rgba(255, 255, 255, 0.3);
}

/* Form Group */
.form-group {
  margin-bottom: 1.5rem;
  text-align: right;
}

.form-group label {
  display: block;
  font-weight: 700;
  margin-bottom: 0.6rem;
  font-size: 0.95rem;
  color: var(--text-main);
}

.form-group input {
  width: 100%;
  padding: 1.15rem;
  border: 2px solid transparent;
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 1rem;
  background: rgba(0, 0, 0, 0.03);
  outline: none;
  transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.02);
}

.form-group input:focus {
  border-color: var(--primary);
  background: white;
  box-shadow: 0 0 0 5px rgba(255, 45, 85, 0.15), 0 10px 25px rgba(0, 0, 0, 0.05);
  transform: translateY(-2px);
}

/* Modals */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-content {
  width: 90%;
  max-width: 500px;
  padding: 2rem;
  background: white;
  border-radius: var(--radius-lg);
}

.close-modal {
  font-size: 1.5rem;
  cursor: pointer;
  float: left;
}

.btn-full {
  width: 100%;
}

.btn-large {
  padding: 1.25rem 2rem;
  font-size: 1.1rem;
}

/* Loading Overlay */
#loading-overlay {
  position: fixed;
  inset: 0;
  background: white;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #f3f3f3;
  border-top: 4px solid var(--primary);
  border-radius: 50%;
  animation: spin 1s infinite linear;
}

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

.error-msg {
  color: var(--primary);
  font-size: 0.8rem;
  margin-top: 0.25rem;
}

/* Group & Admin Tabs */
.group-modal-tabs,
.admin-tabs {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  border-bottom: 1.5px solid var(--border-color);
  padding: 0 0.5rem 0.5rem 0.5rem;
}

.group-tab,
.admin-tab {
  background: transparent;
  border: none;
  padding: 0.75rem 1.25rem;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  border-radius: 12px;
  transition: var(--transition);
  font-family: inherit;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.group-tab:hover,
.admin-tab:hover {
  background: rgba(0, 0, 0, 0.03);
  color: var(--text-main);
}

.group-tab.active,
.admin-tab.active {
  background: rgba(255, 45, 85, 0.08);
  color: var(--primary);
}

.group-tab-panel,
.admin-panel {
  animation: fadeIn 0.4s ease-out forwards;
}

.group-modal-hint {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

.admin-list {
  list-style: none;
  padding: 0;
}

.admin-item {
  background: white;
  padding: 1.25rem;
  border-radius: 14px;
  border: 1px solid var(--border-color);
  margin-bottom: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: var(--transition);
}

.admin-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

/* ========================================================= */
/* 🌍 SOCIAL ACTIVITY & GROUPS FEED                         */
/* ========================================================= */

.activity-page-banner {
  background: var(--surface-light);
  padding: 3rem 0;
  border-bottom: 1px solid var(--glass-border);
  margin-bottom: 2.5rem;
}

.btn-manage-groups {
  background: var(--gradient-primary);
  color: white;
  border: none;
  padding: 0.8rem 1.75rem;
  border-radius: 99px;
  font-weight: 700;
  font-size: 1rem;
  font-family: inherit;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
  box-shadow: var(--shadow-sm);
}

.btn-manage-groups:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(255, 45, 85, 0.3);
}

.activity-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: start;
}

@media (min-width: 900px) {
  .activity-layout {
    grid-template-columns: 320px 1fr;
  }
}

/* Sidebar & Groups List */
.activity-card {
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.groups-list-compact {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.group-list-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.02);
  border-radius: 16px;
  border: 1px solid var(--border-color);
  transition: all 0.3s;
}

.group-list-item:hover {
  background: rgba(0, 0, 0, 0.04);
  transform: translateY(-2px);
}

.group-list-avatar {
  background: var(--gradient-secondary);
  color: white;
  width: 45px;
  height: 45px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 800;
  flex-shrink: 0;
}

.group-list-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.group-list-info strong {
  font-size: 1rem;
  color: var(--text-main);
}

.group-list-info span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.group-list-copy {
  background: white;
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  width: 36px;
  height: 36px;
  border-radius: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.group-list-copy:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

/* Social Feed Main */
.social-feed-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.feed-post-card {
  background: var(--surface-light);
  border-radius: var(--radius-lg);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: all 0.3s;
}

.feed-post-card:hover {
  box-shadow: var(--shadow-md);
}

.feed-post-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem;
}

.feed-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.3rem;
  flex-shrink: 0;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.2);
}

.feed-post-meta {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.feed-username {
  font-size: 1.05rem;
  color: var(--text-main);
}

.feed-challenge-tag {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--secondary);
  background: rgba(94, 92, 230, 0.1);
  padding: 0.2rem 0.6rem;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  width: fit-content;
}

.feed-time {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.feed-media-wrapper {
  width: 100%;
  background: #000;
  max-height: 400px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feed-post-media {
  width: 100%;
  height: auto;
  max-height: 400px;
  object-fit: contain;
}

.feed-post-actions {
  display: flex;
  align-items: center;
  padding: 1rem 1.25rem;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  gap: 1rem;
}

.feed-action-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  transition: all 0.2s;
}

.feed-action-btn:hover {
  background: rgba(0, 0, 0, 0.04);
  color: var(--text-main);
}

.feed-like-btn.liked {
  color: var(--primary);
}

.feed-like-btn.liked i {
  font-weight: 900 !important;
}

/* Empty & Skeleton States */
.feed-empty-state {
  text-align: center;
  padding: 4rem 2rem;
  background: white;
  border-radius: var(--radius-lg);
  border: 1px dashed var(--border-color);
}

.feed-empty-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.feed-skeleton {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.skeleton-post {
  height: 250px;
  border-radius: var(--radius-lg);
  background: linear-gradient(90deg, #f0f0f0 25%, #f8f8f8 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

/* Group Management Modal Tabs */
.group-modal-tabs {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  border-bottom: 2px solid var(--border-color);
}

.group-tab {
  flex: 1;
  background: transparent;
  border: none;
  padding: 1rem;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  position: relative;
}

.group-tab.active {
  color: var(--primary);
}

.group-tab.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--primary);
}

/* ========================================================= */
/* 👤 PROFILE & SETTINGS PAGE                                */
/* ========================================================= */

.profile-page-banner {
  background: var(--surface-light);
  padding: 3.5rem 0;
  border-bottom: 1px solid var(--glass-border);
  margin-bottom: 2.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.profile-page-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  right: -50%;
  bottom: -50%;
  background: radial-gradient(circle at center, rgba(94, 92, 230, 0.05) 0%, transparent 50%);
  animation: rotateGradient 20s linear infinite;
}

.profile-page-title {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  position: relative;
}

.profile-page-sub {
  color: var(--text-muted);
  font-size: 1.1rem;
  position: relative;
}

.profile-sections-wrapper {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

@media (min-width: 900px) {
  .profile-sections-wrapper {
    grid-template-columns: repeat(2, 1fr);
  }

  .profile-section-card:nth-child(1) {
    grid-column: 1 / -1;
  }
}

.profile-section-card {
  padding: 2rem;
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
}

.section-card-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.section-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.section-card-title {
  font-size: 1.25rem;
  font-weight: 800;
  margin: 0;
  color: var(--text-main);
}

.section-card-sub {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0;
}

/* Profile Hero Banner */
.profile-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.5rem;
}

@media (min-width: 600px) {
  .profile-hero {
    flex-direction: row;
    text-align: right;
  }
}

.profile-avatar-large {
  width: 100px;
  height: 100px;
  border-radius: 30px;
  background: var(--gradient-primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  font-weight: 800;
  box-shadow: 0 10px 25px rgba(255, 45, 85, 0.2);
}

.profile-hero-info h2 {
  font-size: 1.8rem;
  margin-bottom: 0.25rem;
}

.profile-badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
  justify-content: center;
}

@media (min-width: 600px) {
  .profile-badge-row {
    justify-content: flex-start;
  }
}

.profile-badge {
  background: rgba(255, 159, 10, 0.1);
  color: #ff9f0a;
  padding: 0.4rem 1rem;
  border-radius: 99px;
  font-size: 0.85rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.profile-badge.secondary {
  background: rgba(52, 199, 89, 0.1);
  color: #34c759;
}

/* Profile Edit Forms */
.profile-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 768px) {
  .form-row {
    grid-template-columns: 1fr 1fr;
  }
}

/* Preferences Checkboxes Grid */
.preferences-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 1rem;
}

.pref-card input {
  display: none;
}

.pref-card-inner {
  border: 2px solid rgba(0, 0, 0, 0.05);
  border-radius: var(--radius-md);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  transition: all 0.25s;
  position: relative;
}

.pref-card:hover .pref-card-inner {
  background: rgba(0, 0, 0, 0.02);
  transform: translateY(-2px);
}

.pref-card input:checked+.pref-card-inner {
  border-color: var(--secondary);
  background: rgba(94, 92, 230, 0.05);
  box-shadow: 0 4px 15px rgba(94, 92, 230, 0.1);
}

.pref-icon {
  font-size: 2rem;
}

.pref-label {
  font-size: 0.95rem;
  font-weight: 600;
}

.pref-check {
  position: absolute;
  top: 10px;
  right: 10px;
  color: var(--secondary);
  opacity: 0;
  transform: scale(0);
  transition: all 0.25s;
}

.pref-card input:checked+.pref-card-inner .pref-check {
  opacity: 1;
  transform: scale(1);
}

/* Danger Zone */
.profile-danger-zone {
  border: 1px dashed rgba(255, 45, 85, 0.3) !important;
  background: rgba(255, 45, 85, 0.02) !important;
}

.btn-logout {
  background: transparent;
  color: var(--error);
  border: 2px solid var(--error);
  padding: 0.8rem 1.5rem;
  font-weight: 700;
  border-radius: var(--radius-md);
  margin-top: 1rem;
  width: 100%;
}

.btn-logout:hover {
  background: var(--error);
  color: white;
  box-shadow: 0 5px 15px rgba(255, 59, 48, 0.3);
}

/* ========================================================= */
/* 🏆 GAMIFICATION & SOCIAL INTERACTIONS                     */
/* ========================================================= */

.xp-badge {
  background: linear-gradient(135deg, #FF9F0A, #FFB340);
  color: #1c1c1e !important;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 0.15rem 0.5rem;
  border-radius: 6px;
  text-transform: uppercase;
  box-shadow: 0 4px 10px rgba(255, 159, 10, 0.2);
  display: inline-block;
  line-height: 1;
}

.feed-comments-section {
  padding: 1rem 1.25rem;
  background: rgba(0, 0, 0, 0.02);
  border-top: 1px solid var(--border-color);
  border-radius: 0 0 20px 20px;
}

.comment-item {
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.comment-item strong {
  color: var(--secondary);
  font-weight: 700;
  margin-left: 0.25rem;
}

.comment-input-wrapper {
  margin-top: 0.75rem;
}

.comment-input-wrapper input {
  width: 100%;
  padding: 0.6rem 1rem;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  background: white;
  font-size: 0.9rem;
}

.comment-input-wrapper input:focus {
  border-color: var(--secondary);
  outline: none;
}

.feed-action-btn.liked {
  color: #FF2D55 !important;
}

.feed-action-btn.liked i {
  animation: heartPop 0.4s ease;
}

@keyframes heartPop {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.4);
  }

  100% {
    transform: scale(1);
  }
}

.social-feed-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding-bottom: 3rem;
}

.btn-icon-sm {
  background: none;
  border: none;
  padding: 0.4rem;
  font-size: 0.9rem;
  cursor: pointer;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
}

.btn-icon-sm:hover {
  background: rgba(0, 0, 0, 0.05);
}

/* Completed Challenges */
.challenge-card.is-completed {
  opacity: 0.9;
  border: 1px solid rgba(52, 199, 89, 0.3);
  background: rgba(52, 199, 89, 0.02);
}

.status-badge-done {
  background: #34c759;
  color: white;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 0.2rem;
  box-shadow: 0 4px 10px rgba(52, 199, 89, 0.2);
}

.challenge-card.is-completed .challenge-title {
  color: var(--text-muted);
  text-decoration: line-through;
  text-decoration-color: rgba(52, 199, 89, 0.4);
}

/* ========================================================= */
/* 💎 PREMIUM SMART CHALLENGE CARDS                          */
/* ========================================================= */

.premium-challenge-card {
  background: white;
  border-radius: 20px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 0.85rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
  border: 1px solid rgba(0, 0, 0, 0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  position: relative;
  overflow: hidden;
  border-inline-start: 6px solid;
}

.premium-challenge-card:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

/* Gradients by difficulty */
.premium-challenge-card.diff-easy {
  border-inline-start-color: #34c759;
}

.premium-challenge-card.diff-medium {
  border-inline-start-color: #FF9F0A;
}

.premium-challenge-card.diff-hard {
  border-inline-start-color: #FF2D55;
}

.premium-challenge-card .card-content-wrapper {
  flex: 1;
  padding-inline-end: 1rem;
}

.premium-challenge-card .pc-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 0.35rem;
  transition: all 0.3s ease;
}

.premium-challenge-card .pc-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  line-height: 1.4;
}

.premium-challenge-card .pc-footer {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.premium-challenge-card .pc-xp {
  font-size: 0.75rem;
  font-weight: 800;
  background: rgba(255, 45, 85, 0.1);
  color: var(--primary);
  padding: 0.25rem 0.6rem;
  border-radius: 8px;
}

.premium-challenge-card .pc-diff {
  font-size: 0.7rem;
  font-weight: 700;
  background: rgba(0, 0, 0, 0.04);
  color: var(--text-muted);
  padding: 0.25rem 0.6rem;
  border-radius: 8px;
}

.premium-challenge-card .pc-personal {
  font-size: 0.7rem;
  background: rgba(94, 92, 230, 0.1);
  color: #5E5CE6;
  padding: 0.25rem 0.6rem;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.premium-challenge-card .pc-trash {
  background: none;
  border: none;
  color: #FF2D55;
  opacity: 0.6;
  cursor: pointer;
  transition: opacity 0.2s;
}

.premium-challenge-card .pc-trash:hover {
  opacity: 1;
}

.card-action-wrapper {
  flex-shrink: 0;
  position: relative;
}

.pc-btn {
  width: 55px;
  height: 55px;
  border-radius: 16px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), background 0.3s, color 0.3s;
}

/* Completed state styling */
.premium-challenge-card.is-completed {
  opacity: 0.7;
  border-inline-start-color: #34c759;
  background: rgba(52, 199, 89, 0.03);
}

.premium-challenge-card.is-completed .pc-title {
  text-decoration: line-through;
  text-decoration-color: rgba(52, 199, 89, 0.5);
  color: var(--text-muted);
}

.premium-challenge-card.is-completed .pc-btn {
  background: transparent;
  color: #34c759;
  border: 2px solid #34c759;
  cursor: default;
}

.premium-challenge-card.just-completed {
  animation: completePulse 0.5s ease;
}

@keyframes completePulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 rgba(52, 199, 89, 0.4);
  }

  50% {
    transform: scale(1.02);
    box-shadow: 0 0 25px rgba(52, 199, 89, 0.2);
  }

  100% {
    transform: scale(1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
  }
}

/* Floating XP Animation */
.float-xp-anim {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: #FF9F0A;
  font-weight: 800;
  font-size: 1.2rem;
  pointer-events: none;
  animation: floatUpFade 1.5s ease-out forwards;
  z-index: 10;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

@keyframes floatUpFade {
  0% {
    opacity: 1;
    transform: translateY(-50%) scale(1);
  }

  100% {
    opacity: 0;
    transform: translateY(-150%) scale(1.5);
  }
}

.xp-progress-container {
  border-radius: 99px;
  overflow: hidden;
  position: relative;
  cursor: help;
  transition: transform 0.3s;
}

.xp-progress-container:hover {
  transform: scaleY(1.5);
}

.xp-progress-fill {
  height: 100%;
  transition: width 1.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  background: linear-gradient(90deg, #fff, rgba(255, 255, 255, 0.7));
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.xp-display-banner {
  background: rgba(0, 0, 0, 0.1);
  padding: 0.75rem 1rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Circular Rings & Habit Grid */
.pc-ring-wrapper {
  position: relative;
  width: 60px;
  height: 60px;
}

.pc-ring {
  width: 100%;
  height: 100%;
}

.pc-ring-bg {
  fill: none;
  stroke: rgba(255, 255, 255, 0.1);
  stroke-width: 3.5;
}

.pc-ring-fill {
  fill: none;
  stroke: var(--primary);
  stroke-width: 3.5;
  stroke-linecap: round;
  transition: stroke-dasharray 0.6s ease;
}

.pc-ring-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 0.75rem;
  font-weight: 800;
}

.pc-habit-grid {
  display: flex;
  gap: 4px;
  margin-top: 0.75rem;
}

.pc-grid-box {
  width: 12px;
  height: 12px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 2px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.pc-grid-box.active {
  background: var(--primary);
  box-shadow: 0 0 8px var(--primary-soft);
  border-color: transparent;
}

.pc-grid-label {
  font-size: 0.65rem;
  color: var(--text-muted);
  margin-bottom: 2px;
}

/* ============================================================
   🚀 ENGAGEMENT ENGINE — New UI Components v2.0
   ============================================================ */

/* ── Lucky Day Banner ──────────────────────────────── */
@keyframes luckyPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 159, 10, 0.7);
    transform: scale(1);
  }

  50% {
    box-shadow: 0 0 0 16px rgba(255, 159, 10, 0);
    transform: scale(1.01);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(255, 159, 10, 0);
    transform: scale(1);
  }
}

@keyframes goldShimmer {
  0% {
    background-position: -200% center;
  }

  100% {
    background-position: 200% center;
  }
}

.lucky-day-banner {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 1.5rem;
  border-radius: 20px;
  background: linear-gradient(135deg, #FFD700, #FF9F0A, #FFD700);
  background-size: 200% auto;
  animation: luckyPulse 2s ease infinite, goldShimmer 3s linear infinite;
  color: #7a4a00;
  font-weight: 800;
  font-size: 1rem;
  margin-bottom: 1rem;
  cursor: pointer;
  border: 2px solid rgba(255, 255, 255, 0.4);
}

.lucky-day-banner .lucky-icon {
  font-size: 2rem;
  flex-shrink: 0;
}

.lucky-day-banner .lucky-text {
  flex: 1;
}

.lucky-day-banner .lucky-text small {
  font-weight: 600;
  opacity: 0.8;
  font-size: 0.8rem;
  display: block;
}

.lucky-day-banner .lucky-xp {
  background: rgba(255, 255, 255, 0.4);
  padding: 0.4rem 0.9rem;
  border-radius: 99px;
  font-size: 0.85rem;
  white-space: nowrap;
}

/* ── Rival Alert Banner ────────────────────────────── */
@keyframes rivalPulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.85;
  }
}

.rival-alert-banner {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-radius: 18px;
  border: 2px solid;
  margin-bottom: 1rem;
  font-weight: 700;
  font-size: 0.92rem;
  animation: rivalPulse 2.5s ease infinite;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.rival-alert-banner:hover {
  transform: translateY(-2px);
}

.rival-alert-banner.trailing {
  background: rgba(255, 45, 85, 0.06);
  border-color: rgba(255, 45, 85, 0.3);
  color: #cc0033;
}

.rival-alert-banner.leading {
  background: rgba(52, 199, 89, 0.06);
  border-color: rgba(52, 199, 89, 0.3);
  color: #1a7a38;
}

.rival-alert-banner .rival-emoji {
  font-size: 1.6rem;
}

.rival-alert-banner p {
  margin: 0;
}

.rival-alert-banner small {
  font-weight: 500;
  opacity: 0.75;
  font-size: 0.8rem;
}

.rival-cta-btn {
  margin-right: auto;
  background: var(--primary);
  color: white;
  border: none;
  padding: 0.4rem 1rem;
  border-radius: 99px;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
  transition: all 0.2s;
}

.rival-cta-btn:hover {
  background: var(--primary-hover);
  transform: scale(1.05);
}

/* ── Group Pressure Banner ─────────────────────────── */
.group-pressure-banner {
  background: rgba(94, 92, 230, 0.06);
  border: 1.5px solid rgba(94, 92, 230, 0.2);
  color: var(--secondary);
  border-radius: 16px;
  padding: 0.9rem 1.25rem;
  font-weight: 700;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

/* ── Plan Wizard Modal ─────────────────────────────── */
.plan-wizard-modal .modal-content {
  max-width: 520px;
  padding: 0;
  overflow: hidden;
}

.wizard-header {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  padding: 1.75rem 2rem;
  color: white;
  position: relative;
}

.wizard-header h3 {
  font-size: 1.4rem;
  font-weight: 800;
  margin: 0 0 0.3rem;
}

.wizard-header p {
  font-size: 0.9rem;
  opacity: 0.85;
  margin: 0;
}

.wizard-close {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.wizard-close:hover {
  background: rgba(255, 255, 255, 0.35);
}

.wizard-steps-indicator {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
}

.wizard-step-dot {
  height: 4px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.35);
  flex: 1;
  transition: background 0.3s;
}

.wizard-step-dot.active {
  background: white;
}

.wizard-body {
  padding: 1.75rem 2rem;
}

.wizard-panel {
  display: none;
}

.wizard-panel.active {
  display: block;
  animation: fadeIn 0.4s ease;
}

.wizard-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}

/* Goal Selection Grid */
.goal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.goal-card {
  border: 2px solid var(--border-color);
  border-radius: 16px;
  padding: 1.1rem;
  cursor: pointer;
  transition: all 0.25s ease;
  background: white;
  text-align: center;
  font-family: inherit;
}

.goal-card:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(255, 45, 85, 0.12);
}

.goal-card.selected {
  border-color: var(--primary);
  background: rgba(255, 45, 85, 0.05);
  box-shadow: 0 0 0 3px rgba(255, 45, 85, 0.15);
}

.goal-card .gc-icon {
  font-size: 2rem;
  display: block;
  margin-bottom: 0.4rem;
}

.goal-card .gc-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-main);
}

/* Level & Duration Selection */
.level-choices,
.duration-choices {
  display: flex;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.choice-chip {
  flex: 1;
  min-width: 80px;
  padding: 0.7rem 0.5rem;
  border: 2px solid var(--border-color);
  border-radius: 12px;
  cursor: pointer;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.85rem;
  background: white;
  text-align: center;
  transition: all 0.2s;
  color: var(--text-main);
}

.choice-chip:hover {
  border-color: var(--secondary);
  color: var(--secondary);
}

.choice-chip.selected {
  border-color: var(--secondary);
  background: rgba(94, 92, 230, 0.07);
  color: var(--secondary);
  box-shadow: 0 0 0 3px rgba(94, 92, 230, 0.15);
}

/* Plan Preview Cards */
.plan-preview-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 1.25rem;
  max-height: 260px;
  overflow-y: auto;
}

.plan-preview-day {
  background: rgba(0, 0, 0, 0.02);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 0.9rem 1.1rem;
  transition: all 0.2s;
}

.plan-preview-day:hover {
  border-color: var(--primary);
  background: rgba(255, 45, 85, 0.03);
}

.plan-preview-day-title {
  font-weight: 800;
  font-size: 0.9rem;
  color: var(--text-main);
  margin-bottom: 0.4rem;
}

.plan-preview-day-tasks {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.task-cat-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.25rem 0.6rem;
  border-radius: 99px;
  font-size: 0.75rem;
  font-weight: 700;
}

.task-cat-pill.physical {
  background: rgba(255, 45, 85, 0.1);
  color: #FF2D55;
}

.task-cat-pill.mental {
  background: rgba(94, 92, 230, 0.1);
  color: #5E5CE6;
}

.task-cat-pill.discipline {
  background: rgba(255, 159, 10, 0.1);
  color: #FF9F0A;
}

/* ── Today's Task Cards ────────────────────────────── */
.today-tasks-section {
  margin-bottom: 1.5rem;
}

.today-tasks-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.today-day-badge {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  padding: 0.35rem 0.9rem;
  border-radius: 99px;
  font-size: 0.8rem;
  font-weight: 700;
}

.today-task-grid {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.today-task-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-radius: 18px;
  border: 1.5px solid var(--border-color);
  background: white;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.25, 1, 0.5, 1);
  position: relative;
  overflow: hidden;
}

.today-task-card::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.25s;
}

.today-task-card.physical::before {
  background: rgba(255, 45, 85, 0.03);
}

.today-task-card.mental::before {
  background: rgba(94, 92, 230, 0.03);
}

.today-task-card.discipline::before {
  background: rgba(255, 159, 10, 0.03);
}

.today-task-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.today-task-card:hover::before {
  opacity: 1;
}

.today-task-card.done {
  background: rgba(52, 199, 89, 0.05);
  border-color: rgba(52, 199, 89, 0.3);
}

.today-task-card.done .ttc-title {
  text-decoration: line-through;
  opacity: 0.6;
}

/* Left accent stripe by category */
.today-task-card.physical {
  border-right: 4px solid #FF2D55;
}

.today-task-card.mental {
  border-right: 4px solid #5E5CE6;
}

.today-task-card.discipline {
  border-right: 4px solid #FF9F0A;
}

[dir="ltr"] .today-task-card.physical {
  border-right: none;
  border-left: 4px solid #FF2D55;
}

[dir="ltr"] .today-task-card.mental {
  border-right: none;
  border-left: 4px solid #5E5CE6;
}

[dir="ltr"] .today-task-card.discipline {
  border-right: none;
  border-left: 4px solid #FF9F0A;
}

.ttc-cat-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.today-task-card.physical .ttc-cat-icon {
  background: rgba(255, 45, 85, 0.1);
}

.today-task-card.mental .ttc-cat-icon {
  background: rgba(94, 92, 230, 0.1);
}

.today-task-card.discipline .ttc-cat-icon {
  background: rgba(255, 159, 10, 0.1);
}

.ttc-body {
  flex: 1;
  min-width: 0;
}

.ttc-title {
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--text-main);
  margin-bottom: 0.2rem;
}

.ttc-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ttc-xp-badge {
  background: rgba(255, 159, 10, 0.1);
  color: #FF9F0A;
  border: 1px solid rgba(255, 159, 10, 0.2);
  padding: 0.2rem 0.6rem;
  border-radius: 99px;
  font-size: 0.75rem;
  font-weight: 700;
  white-space: nowrap;
}

.ttc-check {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2.5px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.25s;
  color: transparent;
  font-size: 0.9rem;
}

.today-task-card:hover .ttc-check {
  border-color: var(--primary);
}

.today-task-card.done .ttc-check {
  background: #34c759;
  border-color: #34c759;
  color: white;
}

/* Float XP animation (on completion) */
@keyframes floatXP {
  0% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }

  100% {
    opacity: 0;
    transform: translateY(-40px) scale(1.2);
  }
}

.float-xp-anim {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translateX(-50%);
  color: #FF9F0A;
  font-size: 1rem;
  font-weight: 800;
  pointer-events: none;
  z-index: 10;
  animation: floatXP 1.5s ease-out forwards;
}

/* ── Mini Leaderboard on Dashboard ────────────────── */
.mini-leaderboard {
  background: white;
  border-radius: 20px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  margin-bottom: 1.5rem;
}

.mini-lb-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border-color);
}

.mini-lb-title {
  font-weight: 800;
  font-size: 1rem;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.mini-lb-link {
  font-size: 0.8rem;
  color: var(--secondary);
  font-weight: 700;
  cursor: pointer;
  background: none;
  border: none;
  font-family: inherit;
}

.mini-lb-list {
  padding: 0.5rem 0;
}

.mini-lb-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 1.25rem;
  transition: background 0.2s;
}

.mini-lb-item:hover {
  background: rgba(0, 0, 0, 0.02);
}

.mini-lb-item.is-me {
  background: rgba(255, 45, 85, 0.04);
}

.mini-lb-rank {
  width: 22px;
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--text-muted);
  text-align: center;
  flex-shrink: 0;
}

.mini-lb-rank.top3 {
  color: #FFD700;
}

.mini-lb-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.mini-lb-info {
  flex: 1;
  min-width: 0;
}

.mini-lb-name {
  font-weight: 700;
  font-size: 0.88rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mini-lb-xp {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.mini-lb-crown {
  color: #FFD700;
  font-size: 1rem;
}

.mini-lb-streak-badge {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  background: rgba(255, 159, 10, 0.1);
  color: #FF9F0A;
  border-radius: 99px;
  padding: 0.2rem 0.5rem;
  font-size: 0.72rem;
  font-weight: 700;
}

/* ── Generate Plan CTA Button ──────────────────────── */
.generate-plan-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  background: linear-gradient(135deg, rgba(255, 45, 85, 0.06), rgba(94, 92, 230, 0.06));
  border: 2px dashed rgba(94, 92, 230, 0.3);
  border-radius: 20px;
  margin-bottom: 1.5rem;
  cursor: pointer;
  transition: all 0.3s;
}

.generate-plan-cta:hover {
  border-style: solid;
  border-color: var(--secondary);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(94, 92, 230, 0.15);
}

.gpc-left .gpc-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text-main);
  margin: 0;
}

.gpc-left small {
  font-size: 0.82rem;
  color: var(--text-muted);
  display: block;
  margin-top: 0.2rem;
}

.gpc-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.3rem;
  flex-shrink: 0;
}

/* ── Streak Heatmap Enhanced ───────────────────────── */
.streak-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.streak-number-big {
  font-size: 2.5rem;
  font-weight: 900;
  line-height: 1;
  background: linear-gradient(135deg, #FF9F0A, #FF2D55);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.streak-emoji-big {
  font-size: 1.5rem;
}

.streak-msg-small {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 0.25rem;
}

/* ── Adaptive Difficulty Pill ──────────────────────── */
.difficulty-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.8rem;
  border-radius: 99px;
  font-size: 0.78rem;
  font-weight: 700;
}

.difficulty-pill.easy {
  background: rgba(52, 199, 89, 0.12);
  color: #34c759;
}

.difficulty-pill.medium {
  background: rgba(255, 159, 10, 0.12);
  color: #FF9F0A;
}

.difficulty-pill.hard {
  background: rgba(255, 45, 85, 0.12);
  color: #FF2D55;
}

/* ── XP Multiplier Badge ───────────────────────────── */
.xp-multiplier-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(255, 215, 0, 0.15);
  border: 1px solid rgba(255, 215, 0, 0.4);
  color: #b8860b;
  padding: 0.25rem 0.75rem;
  border-radius: 99px;
  font-size: 0.78rem;
  font-weight: 700;
  animation: luckyPulse 3s ease infinite;
}

/* ── Daily Mission Greeting ────────────────────────── */
.daily-mission-banner {
  padding: 0.5rem 0 0.75rem;
}

.daily-mission-greeting {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--text-main);
  margin: 0 0 0.2rem;
}

.daily-mission-subtitle {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0;
}

/* ── Category Progress Row ─────────────────────────── */
.cat-progress-row {
  display: flex;
  gap: 0.6rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.cat-prog-item {
  flex: 1;
  min-width: 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  padding: 0.75rem 0.5rem;
  border-radius: 14px;
  border: 1.5px solid var(--border-color);
  background: white;
  font-size: 0.78rem;
  font-weight: 700;
  transition: all 0.2s;
}

.cat-prog-item .cat-prog-icon {
  font-size: 1.4rem;
}

.cat-prog-item .cat-prog-bar-wrap {
  width: 100%;
  height: 5px;
  background: rgba(0, 0, 0, 0.06);
  border-radius: 99px;
  overflow: hidden;
}

.cat-prog-item .cat-prog-bar {
  height: 100%;
  border-radius: 99px;
  transition: width 0.6s ease;
}

.cat-prog-item.physical .cat-prog-bar {
  background: #FF2D55;
}

.cat-prog-item.mental .cat-prog-bar {
  background: #5E5CE6;
}

.cat-prog-item.discipline .cat-prog-bar {
  background: #FF9F0A;
}

/* ── Responsive mobile tweaks ──────────────────────── */
@media (max-width: 640px) {
  .goal-grid {
    grid-template-columns: 1fr 1fr;
  }

  .wizard-body {
    padding: 1.25rem;
  }

  .wizard-header {
    padding: 1.25rem;
  }

  .mini-lb-item {
    padding: 0.6rem 1rem;
  }

  .today-task-card {
    padding: 0.85rem 1rem;
  }

  .lucky-day-banner {
    padding: 0.9rem 1rem;
    font-size: 0.9rem;
  }

  .generate-plan-cta {
    flex-direction: column;
    gap: 0.75rem;
    text-align: center;
  }
}

/* -- Refactored Utility Classes (Resolving Lint Warnings) -- */

.api-health-banner-fixed {
  background: var(--error);
  color: white;
  padding: 1rem;
  text-align: center;
  font-weight: 600;
  font-size: 0.9rem;
  position: sticky;
  top: 0;
  z-index: 9999;
  border-bottom: 2px solid rgba(0, 0, 0, 0.1);
}

.dashboard-header-pt {
  padding-top: 1rem;
}

.dashboard-header-title {
  font-size: var(--font-size-title);
  font-weight: 800;
  color: var(--text-main);
}

.progress-card-gradient {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  border: none;
  box-shadow: 0 10px 30px rgba(123, 97, 255, 0.2);
}

.progress-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.icon-wrapper-sm {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.progress-card-icon {
  font-size: 1.2rem;
}

.progress-card-title {
  font-size: var(--font-size-subtitle);
  font-weight: 700;
}

.progress-card-level {
  background: rgba(255, 255, 255, 0.2);
  padding: 0.25rem 0.75rem;
  border-radius: 99px;
  font-weight: 800;
  font-size: 12px;
}

.xp-text-row {
  font-size: 13px;
  font-weight: 700;
  opacity: 0.95;
  display: flex;
  justify-content: space-between;
}

.progress-bar-container-sm {
  height: 10px;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 99px;
  overflow: hidden;
  padding: 2px;
}

.progress-bar-fill-white {
  width: 0%;
  height: 100%;
  background: white;
  border-radius: 99px;
  transition: width 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.stat-card-icon {
  margin-bottom: 0.5rem;
  font-size: 1.4rem;
}

.stat-card-value {
  font-size: 24px;
  font-weight: 800;
}

@media (max-width: 768px) {
  .stat-card-value {
    font-size: 20px;
  }
}

.stat-card-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  opacity: 0.8;
}

.header-with-icon {
  font-size: 16px;
  font-weight: 800;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.header-icon-primary {
  color: var(--primary);
}

.cat-pill-btn {
  background: white;
  border: 1.5px solid var(--border-color);
  border-radius: 16px;
  cursor: pointer;
  transition: var(--transition);
  width: 100%;
  padding: 1rem;
  text-align: center;
}

.cat-pill-icon {
  display: block;
  margin-bottom: 0.25rem;
  font-size: 1.2rem;
}

.cat-pill-label {
  font-size: 12px;
  font-weight: 700;
}

.empty-state-card {
  width: 100%;
  padding: 3rem 1rem;
  text-align: center;
}

.cta-button-shadow {
  border-radius: 20px;
  font-weight: 800;
  font-size: 1.1rem;
}

.challenge-list-container {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.mini-lb-wrapper {
  padding: 0.5rem;
}


.profile-avatar-container-rel {
  position: relative;
  cursor: pointer;
  display: inline-block;
}

.xp-display-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 4px;
}

.badges-title-sm {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.badges-row-flex {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.section-card-icon-primary {
  background: rgba(255, 45, 85, 0.1);
  color: var(--primary);
}

.form-grid-full {
  grid-column: 1 / -1;
}

.bio-textarea {
  width: 100%;
  padding: 1rem;
  border: 1.5px solid var(--glass-border);
  border-radius: var(--radius-md);
  font-family: inherit;
}

.support-btn-flex {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  justify-content: center;
  padding: 0.8rem 1.5rem;
  border-radius: 12px;
  font-weight: 700;
  font-size: 1.1rem;
  width: 100%;
}

.logout-btn-centered {
  max-width: 300px;
  margin: 0 auto;
  display: block;
  border-radius: 99px;
}

.activity-banner-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.group-list-copy-btn {
  width: auto;
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-full);
  gap: 0.3rem;
  display: flex;
  align-items: center;
}

.empty-state-p-sm {
  font-size: 0.85rem;
}


.social-feed-header {
  padding: 1.25rem 1.5rem 0.75rem;
}

.social-feed-title-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.social-feed-title-icon {
  color: var(--primary);
  font-size: 1.1rem;
}

.social-feed-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 0;
}

.ad-placeholder-container {
  margin-top: 1.5rem;
}

.ad-placeholder-box {
  background: var(--glass-bg);
  border: 1px dashed var(--border-color);
  border-radius: var(--radius-md);
  height: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.8rem;
}

.progress-view-card {
  padding: 2rem;
}

.progress-view-header-flex {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
  justify-content: space-between;
  width: 100%;
}

.progress-view-back-btn {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.05);
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: none;
}

.progress-view-icon-gradient {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.25rem;
}

.progress-view-title {
  margin: 0;
  font-size: 1.5rem;
  color: var(--text-main);
}

.progress-view-subtitle {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.chart-toggle-wrapper {
  display: flex;
  background: var(--glass-bg);
  padding: 4px;
  border-radius: 12px;
  border: 1px solid var(--border-color);
}

.chart-toggle-item {
  background: transparent;
  border: none;
  padding: 0.4rem 1rem;
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
}

.chart-canvas-container {
  position: relative;
  height: 350px;
  width: 100%;
}

.stat-item-flex {
  flex: 1;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1rem;
}

.footer-link-text {
  font-size: 0.85rem;
}

.footer-copy-text {
  font-size: 0.8rem;
  color: var(--text-muted);
}


.modal-content-custom {
  width: 95%;
  max-width: 480px;
  margin: 10px auto;
  max-height: 92vh;
  overflow-y: auto;
  padding: 1.25rem;
}

.uac-mode-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.uac-mode-btn {
  cursor: pointer;
  padding: 0.8rem;
  border-radius: 12px;
  border: 2px solid var(--border-color);
  text-align: center;
  font-size: 0.9rem;
  font-weight: 700;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.uac-group-detail-box {
  margin-top: 1rem;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.02);
  border-radius: 12px;
  border: 1px dashed var(--border-color);
}

.uac-input-std {
  width: 100%;
  padding: 0.8rem;
  border-radius: 8px;
  border: 1.5px solid var(--border-color);
}

.select-std {
  width: 100%;
  padding: 1.15rem;
  border: 2px solid transparent;
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 1rem;
  background: rgba(0, 0, 0, 0.03);
  outline: none;
}

.textarea-std {
  width: 100%;
  padding: 1.15rem;
  border: 2px solid transparent;
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 1rem;
  background: rgba(0, 0, 0, 0.03);
}

.modal-content-sm {
  width: 92%;
  max-width: 400px;
  margin: 20px auto;
}

.log-input-large {
  width: 100px;
  font-size: 2rem;
  text-align: center;
  padding: 1rem;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.05);
  border: 2px solid var(--primary);
}

.modal-content-arena {
  width: 95%;
  max-width: 600px;
  margin: 20px auto;
}

.arena-list-scroll {
  max-height: 400px;
  overflow-y: auto;
}

.modal-content-mode {
  width: 92%;
  max-width: 420px;
  margin: 20px auto;
  padding: 1.5rem;
}

.mode-btn-large {
  flex-direction: column;
  height: auto;
  padding: 1.5rem;
  gap: 0.5rem;
}

.mode-input-std {
  width: 100%;
  padding: 1rem;
  border-radius: 12px;
  border: 2px solid var(--border-color);
  background: rgba(0, 0, 0, 0.02);
  margin-bottom: 1rem;
}

.modal-content-details {
  width: 95%;
  max-width: 500px;
  margin: 20px auto;
  max-height: 90vh;
  overflow-y: auto;
}

.group-id-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.wizard-modal-content {
  width: 95%;
  max-width: 520px;
  margin: 10px auto;
  max-height: 95vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  /* We'll scroll the body instead */
  padding: 0;
}

.wizard-header {
  padding: 1.5rem;
  border-bottom: 1px solid var(--border-color);
  flex-shrink: 0;
}

.wizard-body {
  padding: 1rem 1.5rem;
  overflow-y: auto;
  flex: 1;
}

.wizard-panel {
  display: none;
  flex-direction: column;
  gap: 1rem;
}

.wizard-panel.active {
  display: flex;
}

@media (max-width: 600px) {
  .wizard-header {
    padding: 1rem;
  }

  .wizard-body {
    padding: 1rem;
  }

  .wizard-header h3 {
    font-size: 1.1rem;
  }

  .wizard-label {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
  }

  .plan-preview-list {
    max-height: 200px;
    overflow-y: auto;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0.5rem;
  }

  .plan-preview-day {
    padding: 0.5rem;
    margin-bottom: 0.5rem;
  }

  .plan-preview-day-title {
    font-size: 0.85rem;
  }

  .task-cat-pill {
    font-size: 0.75rem;
    padding: 0.2rem 0.5rem;
  }
}


.goal-path-card {
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1.5px solid var(--border-color);
  background: var(--glass-bg);
  display: flex !important;
  align-items: center;
  justify-content: center;
  padding: 1.25rem 0.75rem;
  height: 100%;
}

.goal-path-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary);
  box-shadow: 0 10px 25px rgba(123, 97, 255, 0.15);
  background: white;
}

.goal-path-card .btn-small {
  border-radius: 8px;
  font-weight: 700;
}

/* ══ INTERACTIVE WIZARD PREVIEW (ENHANCED) ══ */
.plan-preview-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 0.25rem;
}

.plan-preview-day.clickable {
  cursor: pointer;
  border: 1px solid var(--border-color);
  border-radius: 16px;
  background: var(--bg-white);
  transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.plan-preview-day.clickable:hover {
  border-color: var(--primary);
  box-shadow: 0 4px 15px rgba(123, 97, 255, 0.1);
  transform: translateY(-2px);
}

.plan-preview-day-header {
  padding: 1.15rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(to left, rgba(123, 97, 255, 0.03), transparent);
}

.plan-preview-day-title {
  font-weight: 800;
  font-size: 1rem;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.day-badge {
  background: var(--primary);
  color: white;
  padding: 2px 10px;
  border-radius: 99px;
  font-size: 0.75rem;
  font-weight: 700;
}

.plan-preview-day .toggle-icon {
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.plan-preview-day.expanded {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}

.plan-preview-day.expanded .toggle-icon {
  transform: rotate(180deg);
  color: var(--primary);
}

.plan-preview-day-tasks {
  max-height: 0;
  overflow: hidden;
  transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
  background: #fafafa;
}

.plan-preview-day.expanded .plan-preview-day-tasks {
  max-height: 1000px;
  padding: 0.75rem 1.15rem 1.25rem;
  border-top: 1px solid var(--border-color);
}

.task-detail-row {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
  padding: 0.75rem;
  background: white;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.03);
  align-items: center;
}

.task-cat-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.task-cat-icon.physical {
  background: #fee2e2;
  color: #ef4444;
}

.task-cat-icon.mental {
  background: #e0e7ff;
  color: #6366f1;
}

.task-cat-icon.discipline {
  background: #ffedd5;
  color: #f97316;
}

.task-info {
  flex: 1;
}

.task-info .task-title {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text-main);
  display: block;
}

.task-info .task-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 4px;
  line-height: 1.4;
}

/* ══ HABIT PROGRESS SYSTEM ══ */
.dots-grid {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: center;
}

.dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.05);
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
}

.dot.filled {
  background: var(--primary);
  border-color: var(--primary);
  box-shadow: 0 0 8px rgba(123, 97, 255, 0.4);
}

.dot.next {
  background: white;
  border-color: var(--primary);
  border-width: 2px;
  animation: dot-pulse 2s infinite;
}

@keyframes dot-pulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(123, 97, 255, 0.4);
  }

  70% {
    transform: scale(1.1);
    box-shadow: 0 0 0 6px rgba(123, 97, 255, 0);
  }

  100% {
    transform: scale(1);
  }
}

.habit-checkin-btn {
  border-radius: 12px;
  padding: 0.6rem 1rem;
  font-size: 0.85rem;
}

/* ══ POWER COMPLETION OVERLAY ══ */
.power-completion-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(123, 97, 255, 0.9);
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: white;
  cursor: pointer;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  animation: overlayFadeIn 0.4s ease;
}

@keyframes overlayFadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.power-btn {
  width: 64px;
  height: 64px;
  background: white;
  color: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin-bottom: 0.75rem;
  box-shadow: 0 0 30px rgba(255, 255, 255, 0.6);
  position: relative;
  z-index: 2;
  transition: transform 0.2s;
}

.power-btn:active {
  transform: scale(0.9);
}

.power-glow {
  position: absolute;
  width: 80px;
  height: 80px;
  background: radial-gradient(circle, white 0%, transparent 70%);
  opacity: 0.5;
  animation: power-pulse 1.5s infinite;
  z-index: 1;
}

@keyframes power-pulse {
  0% {
    transform: scale(0.8);
    opacity: 0.3;
  }

  50% {
    transform: scale(1.4);
    opacity: 0.6;
  }

  100% {
    transform: scale(0.8);
    opacity: 0.3;
  }
}

.power-text {
  font-weight: 800;
  font-size: 0.9rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* ════ UTILITY CLASSES (Refactored from Inline Styles) ════ */
.text-primary {
  color: var(--primary) !important;
}

.text-secondary {
  color: var(--secondary) !important;
}

.text-accent {
  color: var(--accent) !important;
}

.text-muted-dark {
  color: var(--text-muted) !important;
}

.text-success {
  color: #34c759 !important;
}

.text-orange {
  color: #FF9F0A !important;
}

.fs-sm {
  font-size: 0.75rem !important;
}

.fs-13 {
  font-size: 13px !important;
}

.fs-16 {
  font-size: 16px !important;
}

.fs-1rem {
  font-size: 1rem !important;
}

.fs-135rem {
  font-size: 1.35rem !important;
}

.fs-15rem {
  font-size: 1.5rem !important;
}

.fs-25rem {
  font-size: 2.5rem !important;
}

.fw-600 {
  font-weight: 600 !important;
}

.fw-700 {
  font-weight: 700 !important;
}

.fw-800 {
  font-weight: 800 !important;
}

.font-mono {
  font-family: monospace !important;
}

.d-block {
  display: block !important;
}

.d-flex {
  display: flex !important;
}

.gap-05 {
  gap: 0.5rem !important;
}

.gap-075 {
  gap: 0.75rem !important;
}

.gap-1 {
  gap: 1rem !important;
}

.flex-1 {
  flex: 1 !important;
}

.flex-2 {
  flex: 2 !important;
}

.flex-3 {
  flex: 3 !important;
}

.mb-05 {
  margin-bottom: 0.5rem !important;
}

.mb-075 {
  margin-bottom: 0.75rem !important;
}

.mb-1 {
  margin-bottom: 1rem !important;
}

.mb-125 {
  margin-bottom: 1.25rem !important;
}

.mb-15 {
  margin-bottom: 1.5rem !important;
}

.mb-2 {
  margin-bottom: 2rem !important;
}

.mb-4 {
  margin-bottom: 4rem !important;
}

.mt-05 {
  margin-top: 0.5rem !important;
}

.mt-1 {
  margin-top: 1rem !important;
}

.mt-2 {
  margin-top: 2rem !important;
}

.mt-4 {
  margin-top: 4rem !important;
}

.w-100 {
  width: 100% !important;
}

.max-w-300 {
  max-width: 300px !important;
}

.max-w-400 {
  max-width: 400px !important;
}

.grid-2 {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
}

.grid-full {
  grid-column: 1 / -1 !important;
}

.align-center {
  align-items: center !important;
}

.justify-center {
  justify-content: center !important;
}

.bg-secondary-soft {
  background: rgba(94, 92, 230, 0.1) !important;
}

.opacity-08 {
  opacity: 0.8 !important;
}

/* Premium Form Elements */
.input-premium {
  width: 100% !important;
  padding: 1.15rem !important;
  border: 2px solid transparent !important;
  border-radius: var(--radius-md) !important;
  font-family: inherit !important;
  font-size: 1rem !important;
  background: rgba(0, 0, 0, 0.03) !important;
}

.modal-content-sm {
  width: 92% !important;
  max-width: 400px !important;
  margin: 20px auto !important;
}

.uac-mode-btn-active {
  border-color: var(--primary) !important;
  background: rgba(255, 45, 85, 0.05) !important;
  color: var(--primary) !important;
}

.wizard-choice-chip {
  flex: 1 !important;
  justify-content: center !important;
}

/* Extra Refactored Classes from root style.css */
.section-card-header-gap {
  margin-bottom: 1rem;
}

.select-std-premium {
  width: 100%;
  padding: 1.15rem;
  border: 2px solid transparent;
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 1rem;
  background: rgba(0, 0, 0, 0.03);
}

.mode-selection-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.mode-btn-icon-large {
  font-size: 1.5rem;
}

.group-id-monospace {
  font-family: monospace;
}

.wizard-duration-mt {
  margin-top: 0.5rem;
}

.wizard-duration-gap {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
}

.fw-700 {
  font-weight: 700 !important;
}

.fs-1rem {
  font-size: 1rem !important;
}

.pointer {
  cursor: pointer !important;
}

.block {
  display: block !important;
}

.rounded-xl {
  border-radius: 1.5rem !important;
}

/* ══════════════════════════════════════════════════════════════ */
/* ══ Daily Check-in Confirmation Modal                       ══ */
/* ══════════════════════════════════════════════════════════════ */

.daily-confirm-content {
  width: 92%;
  max-width: 400px;
  padding: 0;
  overflow: hidden;
  border-radius: var(--radius-xl) !important;
  animation: confirmSlideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes confirmSlideUp {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.96);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.daily-confirm-header {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: white;
}

.confirm-day-badge {
  background: rgba(255, 255, 255, 0.22);
  padding: 0.35rem 1rem;
  border-radius: var(--radius-full);
  font-weight: 800;
  font-size: 0.88rem;
  letter-spacing: 0.5px;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.daily-confirm-header .close-modal {
  color: rgba(255, 255, 255, 0.85);
  float: none;
  font-size: 1.6rem;
  line-height: 1;
  transition: color 0.2s;
}

.daily-confirm-header .close-modal:hover {
  color: white;
}

.daily-confirm-body {
  padding: 1.75rem 1.5rem 1.5rem;
  text-align: center;
  background: white;
}

.confirm-reminder-icon {
  font-size: 2.75rem;
  margin-bottom: 0.5rem;
  animation: iconBounce 0.6s 0.2s cubic-bezier(0.25, 1, 0.5, 1);
}

@keyframes iconBounce {
  0% {
    transform: scale(0);
  }

  70% {
    transform: scale(1.15);
  }

  100% {
    transform: scale(1);
  }
}

.confirm-reminder-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 1.25rem;
}

.daily-task-reminder {
  margin-bottom: 1.25rem;
  text-align: right;
}

.confirm-task-card {
  background: linear-gradient(135deg, rgba(123, 97, 255, 0.07), rgba(255, 107, 152, 0.05));
  border: 1.5px solid rgba(123, 97, 255, 0.18);
  border-radius: var(--radius-md);
  padding: 1rem 1.1rem;
}

.confirm-task-title {
  font-weight: 800;
  font-size: 0.97rem;
  color: var(--primary);
  line-height: 1.45;
}

.confirm-task-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.confirm-question-text {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 1.25rem;
}

.confirm-action-btns {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.confirm-yes-btn {
  font-size: 1rem !important;
  padding: 0.9rem !important;
  border-radius: var(--radius-md) !important;
}

.confirm-no-btn {
  font-size: 0.88rem !important;
  padding: 0.7rem !important;
  border-radius: var(--radius-md) !important;
  border-color: rgba(0, 0, 0, 0.1) !important;
  color: var(--text-muted) !important;
}

/* ══════════════════════════════════════════════════════════════ */
/* ══ Power Charge Button                                     ══ */
/* ══════════════════════════════════════════════════════════════ */

.power-charge-btn {
  position: relative;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  cursor: default;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  /* Conic gradient creates the fill effect */
  background: conic-gradient(var(--primary) var(--charge-pct, 0%),
      rgba(0, 0, 0, 0.08) var(--charge-pct, 0%));
  outline: 2.5px solid rgba(123, 97, 255, 0.2);
  outline-offset: 2px;
  transition: all 0.45s cubic-bezier(0.25, 1, 0.5, 1);
  --charge-pct: 0%;
}

/* Inner white disc so only the ring shows the gradient */
.power-charge-btn::before {
  content: '';
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: white;
  z-index: 0;
  transition: background 0.3s;
}

/* The ⚡ emoji stays above the disc */
.power-charge-btn>*,
.power-charge-btn {
  position: relative;
  z-index: 1;
}

.power-charge-btn:hover:not(.victory) {
  transform: scale(1.12);
  outline-color: var(--primary);
}

/* ── Victory State (fully charged) ── */
.power-charge-btn.victory {
  background: conic-gradient(#FFD700 100%, #FFD700 0%);
  outline-color: #FFD700;
  outline-width: 3px;
  box-shadow:
    0 0 14px rgba(255, 215, 0, 0.55),
    0 0 32px rgba(255, 159, 10, 0.3);
  animation: victoryPulse 1.4s ease-in-out infinite;
  cursor: pointer;
}

.power-charge-btn.victory::before {
  background: #FFF9E0;
}

.power-charge-btn.victory:hover {
  transform: scale(1.25);
  box-shadow:
    0 0 22px rgba(255, 215, 0, 0.8),
    0 0 50px rgba(255, 159, 10, 0.55);
}

@keyframes victoryPulse {

  0%,
  100% {
    box-shadow: 0 0 12px rgba(255, 215, 0, 0.5), 0 0 26px rgba(255, 159, 10, 0.25);
    transform: scale(1);
  }

  50% {
    box-shadow: 0 0 24px rgba(255, 215, 0, 0.85), 0 0 50px rgba(255, 159, 10, 0.5);
    transform: scale(1.1);
  }
}

/* ══════════════════════════════════════════════════════════════ */
/* ══ Screen Shake                                            ══ */
/* ══════════════════════════════════════════════════════════════ */
@keyframes screenShake {
  0% {
    transform: translate(0, 0) rotate(0deg);
  }

  10% {
    transform: translate(-6px, 2px) rotate(-0.4deg);
  }

  20% {
    transform: translate(6px, -2px) rotate(0.4deg);
  }

  30% {
    transform: translate(-5px, 1px) rotate(0deg);
  }

  40% {
    transform: translate(5px, -1px) rotate(0.3deg);
  }

  50% {
    transform: translate(-3px, 1px) rotate(-0.2deg);
  }

  60% {
    transform: translate(3px, 0px) rotate(0.2deg);
  }

  70% {
    transform: translate(-2px, 0px);
  }

  80% {
    transform: translate(2px, 0px);
  }

  90% {
    transform: translate(-1px, 0px);
  }

  100% {
    transform: translate(0, 0) rotate(0deg);
  }
}

.screen-shake {
  animation: screenShake 0.65s ease-in-out !important;
}

/* ══════════════════════════════════════════════════════════════ */
/* ══ Challenge Card Victory Overlay                          ══ */
/* ══════════════════════════════════════════════════════════════ */
.challenge-victory-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.92), rgba(255, 159, 10, 0.92));
  border-radius: inherit;
  z-index: 10;
  animation: cardVictoryIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes cardVictoryIn {
  from {
    opacity: 0;
    transform: scale(0.85);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

.victory-emoji-anim {
  font-size: 2.5rem;
  animation: trophyBounce 0.6s 0.1s cubic-bezier(0.25, 1, 0.5, 1) both;
}

@keyframes trophyBounce {
  0% {
    transform: scale(0) rotate(-10deg);
  }

  60% {
    transform: scale(1.2) rotate(5deg);
  }

  100% {
    transform: scale(1) rotate(0deg);
  }
}

.victory-card-text {
  font-weight: 900;
  font-size: 1.1rem;
  color: white;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.victory-card-xp {
  background: rgba(255, 255, 255, 0.35);
  color: white;
  font-weight: 900;
  font-size: 0.9rem;
  padding: 0.3rem 0.9rem;
  border-radius: var(--radius-full);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

/* ══════════════════════════════════════════════════════════════ */
/* ══ Full-Screen Victory Modal                               ══ */
/* ══════════════════════════════════════════════════════════════ */
.victory-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.75);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  padding: 1rem;
}

.victory-modal-overlay.hidden {
  display: none;
}

@keyframes victoryModalIn {
  from {
    opacity: 0;
    transform: scale(0.8) translateY(30px);
  }

  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@keyframes victoryModalOut {
  from {
    opacity: 1;
    transform: scale(1);
  }

  to {
    opacity: 0;
    transform: scale(0.85);
  }
}

.victory-modal-card {
  position: relative;
  background: linear-gradient(160deg, #1a1040 0%, #0d0d2b 100%);
  border: 2px solid rgba(255, 215, 0, 0.35);
  border-radius: 28px;
  padding: 2.5rem 2rem 2rem;
  text-align: center;
  max-width: 360px;
  width: 100%;
  overflow: hidden;
  box-shadow:
    0 0 60px rgba(255, 215, 0, 0.25),
    0 30px 80px rgba(0, 0, 0, 0.5);
}

/* Animated radial glow in background */
.victory-particles-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(255, 215, 0, 0.15) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 100%, rgba(123, 97, 255, 0.12) 0%, transparent 60%);
  pointer-events: none;
  animation: bgPulseGlow 3s ease-in-out infinite;
}

@keyframes bgPulseGlow {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.55;
  }
}

.victory-big-trophy {
  font-size: 5rem;
  margin-bottom: 0.75rem;
  display: block;
  animation: trophyFloat 2.5s ease-in-out infinite,
    trophyBounce 0.7s cubic-bezier(0.25, 1, 0.5, 1) both;
}

@keyframes trophyFloat {

  0%,
  100% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-8px);
  }
}

.victory-title {
  font-size: 1.75rem;
  font-weight: 900;
  color: #FFD700;
  margin-bottom: 0.4rem;
  letter-spacing: -0.5px;
  text-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
}

.victory-subtitle {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 1.75rem;
  line-height: 1.5;
}

.victory-xp-display {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.25rem;
  margin-bottom: 1.5rem;
  animation: xpPopIn 0.5s 0.3s cubic-bezier(0.25, 1, 0.5, 1) both;
}

@keyframes xpPopIn {
  from {
    transform: scale(0);
    opacity: 0;
  }

  to {
    transform: scale(1);
    opacity: 1;
  }
}

.victory-xp-plus {
  font-size: 2.5rem;
  font-weight: 900;
  color: #FFD700;
}

.victory-xp-number {
  font-size: 4.5rem;
  font-weight: 900;
  color: #FFD700;
  line-height: 1;
  text-shadow: 0 0 30px rgba(255, 215, 0, 0.7);
  font-variant-numeric: tabular-nums;
}

.victory-xp-label {
  font-size: 1.5rem;
  font-weight: 700;
  color: rgba(255, 215, 0, 0.75);
  align-self: flex-end;
  padding-bottom: 0.5rem;
}

.victory-motivate-text {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 700;
  margin-bottom: 1.25rem;
}

.victory-cta-btn {
  width: 100% !important;
  font-size: 1.05rem !important;
  padding: 1rem !important;
  border-radius: var(--radius-md) !important;
  background: linear-gradient(135deg, #FFD700, #FF9F0A) !important;
  color: #1a1040 !important;
  font-weight: 900 !important;
  border: none !important;
  box-shadow: 0 4px 20px rgba(255, 215, 0, 0.4) !important;
  transition: transform 0.2s, box-shadow 0.2s !important;
  margin-bottom: 0.75rem;
}

.victory-cta-btn:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 30px rgba(255, 215, 0, 0.6) !important;
}

.victory-skip-btn {
  color: rgba(255, 255, 255, 0.4) !important;
  font-size: 0.85rem !important;
  padding: 0.5rem !important;
  width: 100%;
}

.victory-skip-btn:hover {
  color: rgba(255, 255, 255, 0.7) !important;
}

/* ========================================================= */
/* 📱 MISSING DASHBOARD & RESPONSIVE CLASSES                */
/* ========================================================= */

.dashboard-header-pt {
  padding-top: 1.5rem;
}

.dashboard-header-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-main);
}

.progress-card-gradient {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: white;
  border: none;
}

.progress-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.icon-wrapper-sm {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.progress-card-icon {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.progress-card-title {
  font-size: 1.25rem;
  font-weight: 800;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.progress-card-level {
  background: rgba(255, 255, 255, 0.2);
  padding: 0.4rem 0.8rem;
  border-radius: 99px;
  font-weight: 800;
  font-size: 0.9rem;
}

.xp-container {
  width: 100%;
}

.xp-text-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  font-weight: 700;
}

.progress-bar-container-sm {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 99px;
  overflow: hidden;
}

.progress-bar-fill-white {
  height: 100%;
  background: white;
  border-radius: 99px;
  width: 0%;
  transition: width 1s ease-out;
}

.stat-card-icon {
  width: 48px;
  height: 48px;
  background: rgba(0, 0, 0, 0.04);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin: 0 auto 1rem;
}

.stat-card-icon.text-orange {
  color: var(--accent);
  background: rgba(255, 159, 10, 0.1);
}

.stat-card-icon.text-primary {
  color: var(--primary);
  background: rgba(123, 97, 255, 0.1);
}

.stat-card-value {
  font-size: 1.75rem;
  font-weight: 800;
  margin-bottom: 0.25rem;
  color: var(--text-main);
}

.stat-card-label {
  font-size: 0.9rem;
}

.header-with-icon {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.25rem;
  font-weight: 800;
}

.header-icon-primary {
  color: var(--primary);
  font-size: 1.1em;
}

.empty-state-card {
  padding: 3rem 1.5rem;
  text-align: center;
  border: 1px dashed var(--border-color);
  background: rgba(0, 0, 0, 0.02);
}

.fs-25rem { font-size: 2.5rem; }
.fw-600 { font-weight: 600; }
.mb-1 { margin-bottom: 1rem !important; }
.px-2 { padding-left: 1rem !important; padding-right: 1rem !important; }

/* Mobile Quick Actions Header */
.mobile-quick-actions {
  display: flex;
  gap: 0.5rem;
}

.nav-btn.nav-btn-logout {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  font-size: 1.1rem;
  border-radius: 12px;
}

/* ========================================================= */
/* 🌙 DARK MODE THEME & SKELETONS                           */
/* ========================================================= */

body.dark-theme {
  --bg-app: #121212;
  --bg-white: #1C1C1E;
  --bg-glass: rgba(28, 28, 30, 0.75);
  --glass-border: rgba(255, 255, 255, 0.08);
  --text-main: #FFFFFF;
  --text-muted: #EBEBF599;
  --card-bg: #1C1C1E;
  --border-color: rgba(255, 255, 255, 0.1);
  --surface-light: #2C2C2E;
  background-color: var(--bg-app);
  color: var(--text-main);
}

body {
  transition: background-color 0.4s ease, color 0.4s ease;
}

body.dark-theme .glass-card, 
body.dark-theme .activity-card,
body.dark-theme .modal-content {
  background: var(--bg-glass);
  border-color: var(--border-color);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
}

body.dark-theme input, 
body.dark-theme textarea, 
body.dark-theme select,
body.dark-theme .input-premium,
body.dark-theme .bio-textarea {
  background: #2C2C2E !important;
  color: #FFFFFF !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
}

body.dark-theme #nav-bottom,
body.dark-theme nav {
  background: rgba(28, 28, 30, 0.85);
  border-top-color: var(--border-color);
}

/* Skeleton Screens */
.skeleton-loader {
  animation: skeletonLoad 1.5s infinite ease-in-out;
  background: linear-gradient(90deg, var(--card-bg) 25%, var(--border-color) 50%, var(--card-bg) 75%);
  background-size: 200% 100%;
  border-radius: var(--radius-md);
  min-height: 80px;
  width: 100%;
}
@keyframes skeletonLoad {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

body.dark-theme .feed-skeleton, 
body.dark-theme .skeleton-post {
  background: linear-gradient(90deg, #2A2A2A 25%, #3A3A3A 50%, #2A2A2A 75%);
  background-size: 200% 100%;
}
/* ?? LIVE INDICATOR */
.live-indicator-sm { display: inline-flex; align-items: center; gap: 6px; background: rgba(52, 199, 89, 0.1); color: #34c759; padding: 4px 10px; border-radius: 99px; font-size: 0.75rem; font-weight: 800; letter-spacing: 0.5px; }
.live-dot { width: 8px; height: 8px; background: #34c759; border-radius: 50%; position: relative; }
.live-dot::after { content: ''; position: absolute; inset: -2px; border-radius: 50%; border: 2px solid #34c759; animation: pulse-live 1.5s infinite; }
@keyframes pulse-live { 0% { transform: scale(1); opacity: 1; } 100% { transform: scale(2.5); opacity: 0; } }
.social-feed-list-compact { display: flex; flex-direction: column; gap: 12px; }
.feed-post-card-compact { background: var(--bg-white); border-radius: var(--radius-md); padding: 12px; border: 1px solid var(--border-color); box-shadow: var(--shadow-sm); transition: var(--transition); cursor: pointer; }
.feed-post-card-compact:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: rgba(123, 97, 255, 0.2); }
.feed-avatar-sm { width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: white; font-weight: 800; font-size: 0.75rem; flex-shrink: 0; }
.feed-username-sm { font-size: 0.85rem; font-weight: 700; color: var(--text-main); }
.xp-badge-sm { background: rgba(123, 97, 255, 0.1); color: var(--primary); font-size: 0.65rem; padding: 2px 6px; border-radius: 4px; font-weight: 700; }
.feed-challenge-tag-sm { font-size: 0.7rem; color: var(--text-muted); display: flex; align-items: center; gap: 4px; }
.feed-time-sm { font-size: 0.7rem; color: var(--text-muted); margin-right: auto; }
.feed-caption-sm { font-size: 0.85rem; color: var(--text-main); margin-top: 8px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ?? XP AWARDED BADGES */
.feed-xp-awarded-sm { background: rgba(52, 199, 89, 0.1); color: #34c759; font-size: 0.65rem; padding: 2px 6px; border-radius: 4px; font-weight: 800; margin-right: 4px; }
.feed-xp-text { color: var(--primary); font-weight: 700; display: inline-block; padding: 4px 8px; background: rgba(123, 97, 255, 0.05); border-radius: 8px; border: 1px dashed rgba(123, 97, 255, 0.2); }

/* ?? CLICKABLE SECTION ICONS */
.header-icon-clickable { cursor: pointer; color: var(--primary); font-size: 1.25rem; transition: transform 0.3s ease, color 0.3s ease; padding: 5px; display: flex; align-items: center; justify-content: center; }
.header-icon-clickable:hover { transform: scale(1.15) rotate(10deg); color: var(--secondary); }

/* ?? ABOUT MODAL STYLES */
.about-modal-content { max-width: 600px; width: 90%; padding: 1.5rem; border-radius: 24px; }
.about-logo-cube { width: 36px; height: 36px; background: linear-gradient(135deg, #ff2d55, #7b2ff7); border-radius: 10px; display: flex; align-items: center; justify-content: center; color: white; font-size: 1.25rem; box-shadow: 0 4px 12px rgba(123, 47, 247, 0.3); }
.about-feature-box { display: flex; gap: 1.25rem; padding: 1.25rem; background: rgba(255, 255, 255, 0.03); border-radius: 18px; border: 1px solid rgba(255, 255, 255, 0.05); transition: transform 0.3s ease; }
.about-feature-box:hover { transform: translateY(-3px); background: rgba(255, 255, 255, 0.05); }
.about-icon-circle { width: 48px; height: 48px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 1.4rem; flex-shrink: 0; }
.about-cta-footer .btn-primary { font-size: 1rem; font-weight: 700; box-shadow: 0 10px 20px rgba(123, 97, 255, 0.3); }
