/* ═══════════════════════════════════════════════════════════
   AB TALKS — Design System & Styles
   Mobile-first (390px) → Tablet (768px) → Desktop (1024px+)
   ═══════════════════════════════════════════════════════════ */

/* ─── CSS Custom Properties ──────────────────────────────── */
:root {
  /* Backgrounds — deep dark blue, matching ABTalks aesthetic */
  --bg-primary: #08081a;
  --bg-secondary: #0e0e24;
  --bg-card: #13132e;
  --bg-card-hover: #1a1a3a;
  --bg-elevated: #1c1c40;
  --bg-input: #12122a;

  /* Accent Colors */
  --accent-cyan: #22d3ee;
  --accent-cyan-dim: rgba(34, 211, 238, 0.15);
  --accent-purple: #8b5cf6;
  --accent-purple-dim: rgba(139, 92, 246, 0.15);
  --accent-green: #22c55e;
  --accent-green-dim: rgba(34, 197, 94, 0.15);
  --accent-amber: #f59e0b;
  --accent-amber-dim: rgba(245, 158, 11, 0.15);
  --accent-rose: #f43f5e;
  --accent-rose-dim: rgba(244, 63, 94, 0.15);

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #8b5cf6, #22d3ee);
  --gradient-warm: linear-gradient(135deg, #f59e0b, #ef4444);
  --gradient-success: linear-gradient(135deg, #22c55e, #06b6d4);
  --gradient-hero: linear-gradient(135deg, #0c0c25 0%, #1a0a30 40%, #0a1628 70%, #08081a 100%);

  /* Text */
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-accent: #22d3ee;

  /* Borders & Glass */
  --border-subtle: rgba(255, 255, 255, 0.06);
  --border-medium: rgba(255, 255, 255, 0.10);
  --border-strong: rgba(255, 255, 255, 0.18);
  --glass-bg: rgba(255, 255, 255, 0.03);
  --glass-bg-hover: rgba(255, 255, 255, 0.06);

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

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
  --shadow-glow-cyan: 0 0 24px rgba(34, 211, 238, 0.25);
  --shadow-glow-purple: 0 0 24px rgba(139, 92, 246, 0.25);
  --shadow-glow-amber: 0 0 20px rgba(245, 158, 11, 0.3);

  /* Typography */
  --font-heading: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 400ms ease;
}


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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a {
  color: var(--accent-cyan);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: #67e8f9;
}

img {
  max-width: 100%;
  display: block;
}

ul,
ol {
  list-style: none;
}

button {
  font-family: var(--font-body);
  cursor: pointer;
  border: none;
  outline: none;
}

input,
textarea {
  font-family: var(--font-body);
  outline: none;
}


/* ─── Typography ─────────────────────────────────────────── */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.section-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent-cyan);
  margin-bottom: 8px;
}

.section-title {
  font-size: 1.5rem;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.section-subtitle {
  font-size: 0.9rem;
  color: var(--text-secondary);
  max-width: 480px;
}

.gradient-text {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}


/* ─── Layout Utilities ───────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.page-wrapper {
  padding-bottom: 80px;
  /* space for bottom nav */
}

.flex {
  display: flex;
}

.flex-col {
  flex-direction: column;
}

.flex-wrap {
  flex-wrap: wrap;
}

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

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

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

.gap-8 {
  gap: 8px;
}

.gap-12 {
  gap: 12px;
}

.gap-16 {
  gap: 16px;
}

.gap-20 {
  gap: 20px;
}

.gap-24 {
  gap: 24px;
}

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


/* ─── Buttons ────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  font-weight: 600;
  transition: all var(--transition-base);
  white-space: nowrap;
}

.btn-primary {
  background: var(--gradient-primary);
  color: #fff;
  box-shadow: var(--shadow-glow-purple);
}

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

.btn-secondary {
  background: var(--glass-bg);
  color: var(--text-primary);
  border: 1px solid var(--border-medium);
}

.btn-secondary:hover {
  background: var(--glass-bg-hover);
  border-color: var(--border-strong);
}

.btn-success {
  background: var(--accent-green);
  color: #fff;
  box-shadow: 0 0 16px rgba(34, 197, 94, 0.3);
}

.btn-success:hover {
  background: #16a34a;
  transform: translateY(-2px);
  box-shadow: 0 0 24px rgba(34, 197, 94, 0.4);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  padding: 8px 16px;
}

.btn-ghost:hover {
  color: var(--text-primary);
  background: var(--glass-bg);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.8125rem;
}

.btn-lg {
  padding: 16px 32px;
  font-size: 1rem;
  border-radius: var(--radius-lg);
}

.btn-block {
  width: 100%;
}

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


/* ─── Cards ──────────────────────────────────────────────── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 20px;
  transition: all var(--transition-base);
}

.card:hover {
  border-color: var(--border-medium);
  background: var(--bg-card-hover);
}

.card-glass {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 20px;
}

.card-glow-cyan {
  box-shadow: var(--shadow-glow-cyan);
  border-color: rgba(34, 211, 238, 0.2);
}

.card-glow-purple {
  box-shadow: var(--shadow-glow-purple);
  border-color: rgba(139, 92, 246, 0.2);
}

.card-glow-amber {
  box-shadow: var(--shadow-glow-amber);
  border-color: rgba(245, 158, 11, 0.2);
}


/* ─── Form Inputs ────────────────────────────────────────── */
.input-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.input-group label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.input-field {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 0.875rem;
  transition: all var(--transition-fast);
}

.input-field::placeholder {
  color: var(--text-muted);
}

.input-field:focus {
  border-color: var(--accent-purple);
  box-shadow: 0 0 0 3px var(--accent-purple-dim);
}

.input-hint {
  font-size: 0.75rem;
  color: var(--text-muted);
}


/* ─── Badges & Chips ─────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.badge-cyan {
  background: var(--accent-cyan-dim);
  color: var(--accent-cyan);
  border: 1px solid rgba(34, 211, 238, 0.2);
}

.badge-purple {
  background: var(--accent-purple-dim);
  color: var(--accent-purple);
  border: 1px solid rgba(139, 92, 246, 0.2);
}

.badge-green {
  background: var(--accent-green-dim);
  color: var(--accent-green);
  border: 1px solid rgba(34, 197, 94, 0.2);
}

.badge-amber {
  background: var(--accent-amber-dim);
  color: var(--accent-amber);
  border: 1px solid rgba(245, 158, 11, 0.2);
}

.badge-rose {
  background: var(--accent-rose-dim);
  color: var(--accent-rose);
  border: 1px solid rgba(244, 63, 94, 0.2);
}

.difficulty-easy {
  color: var(--accent-green);
}

.difficulty-medium {
  color: var(--accent-amber);
}

.difficulty-hard {
  color: var(--accent-rose);
}


/* ─── Navigation (Top Bar) ───────────────────────────────── */
.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 16px 20px;
  background: rgba(8, 8, 26, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.05em;
}

.logo span {
  color: var(--accent-cyan);
}

.topbar-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.avatar-sm {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}


/* ─── Bottom Navigation (Mobile) ─────────────────────────── */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(8, 8, 26, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--border-subtle);
  padding: 8px 0;
  padding-bottom: max(8px, env(safe-area-inset-bottom));
}

.bottom-nav-inner {
  display: flex;
  justify-content: space-around;
  max-width: 480px;
  margin: 0 auto;
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 6px 16px;
  border-radius: var(--radius-md);
  color: var(--text-muted);
  font-size: 0.625rem;
  font-weight: 500;
  text-decoration: none;
  transition: all var(--transition-fast);
}

.nav-item-icon {
  font-size: 1.25rem;
  line-height: 1;
}

.nav-item.active {
  color: var(--accent-cyan);
}

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


/* ─── Streak Display ─────────────────────────────────────── */
.streak-display {
  display: flex;
  align-items: center;
  gap: 12px;
}

.streak-fire {
  font-size: 2.5rem;
  line-height: 1;
  animation: fireFlicker 1.5s ease-in-out infinite alternate;
}

.streak-number {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 700;
  background: var(--gradient-warm);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.streak-label {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  font-weight: 500;
}


/* ─── Progress Ring ──────────────────────────────────────── */
.progress-ring-container {
  position: relative;
  width: 120px;
  height: 120px;
  flex-shrink: 0;
}

.progress-ring {
  transform: rotate(-90deg);
}

.progress-ring-bg {
  fill: none;
  stroke: var(--border-subtle);
  stroke-width: 8;
}

.progress-ring-fill {
  fill: none;
  stroke: url(#progressGradient);
  stroke-width: 8;
  stroke-linecap: round;
  transition: stroke-dashoffset 1s ease-out;
}

.progress-ring-text {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.progress-ring-value {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1;
}

.progress-ring-label {
  font-size: 0.6875rem;
  color: var(--text-muted);
  margin-top: 2px;
}


/* ─── Day Timeline (Weekly View) ─────────────────────────── */
.week-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}

.day-dot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 10px 4px;
  border-radius: var(--radius-md);
  background: var(--glass-bg);
  border: 1px solid var(--border-subtle);
  text-decoration: none;
  transition: all var(--transition-fast);
}

.day-dot:hover {
  background: var(--glass-bg-hover);
  border-color: var(--border-medium);
  transform: translateY(-2px);
}

.day-dot-num {
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--text-muted);
}

.day-dot-indicator {
  width: 24px;
  height: 24px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
}

.day-dot-label {
  font-size: 0.5625rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.day-dot.completed .day-dot-indicator {
  background: var(--accent-green-dim);
  color: var(--accent-green);
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.day-dot.missed .day-dot-indicator {
  background: var(--accent-rose-dim);
  color: var(--accent-rose);
  border: 1px solid rgba(244, 63, 94, 0.3);
}

.day-dot.current .day-dot-indicator {
  background: var(--accent-cyan-dim);
  color: var(--accent-cyan);
  border: 1px solid rgba(34, 211, 238, 0.3);
  animation: pulseGlow 2s ease-in-out infinite;
}

.day-dot.locked .day-dot-indicator {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-muted);
  border: 1px solid var(--border-subtle);
}

.day-dot.shielded .day-dot-indicator {
  background: var(--accent-amber-dim);
  color: var(--accent-amber);
  border: 1px solid rgba(245, 158, 11, 0.3);
}


/* ─── Shield Component ───────────────────────────────────── */
.shield-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--accent-amber-dim);
  border: 1px solid rgba(245, 158, 11, 0.2);
  border-radius: var(--radius-md);
}

.shield-icon {
  font-size: 1.5rem;
  line-height: 1;
}

.shield-info {
  flex: 1;
}

.shield-info-title {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--accent-amber);
}

.shield-info-desc {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.shield-count {
  display: flex;
  gap: 4px;
}

.shield-pip {
  width: 10px;
  height: 10px;
  border-radius: var(--radius-full);
  background: var(--accent-amber);
}

.shield-pip.used {
  background: var(--text-muted);
  opacity: 0.3;
}


/* ─── Status Indicators ──────────────────────────────────── */
.status-completed {
  color: var(--accent-green);
}

.status-missed {
  color: var(--accent-rose);
}

.status-current {
  color: var(--accent-cyan);
}

.status-locked {
  color: var(--text-muted);
}


/* ─── Modal ──────────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-base);
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  width: 100%;
  max-width: 480px;
  max-height: 85vh;
  background: var(--bg-secondary);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  padding: 24px 20px;
  transform: translateY(100%);
  transition: transform var(--transition-slow);
  overflow-y: auto;
}

.modal-overlay.active .modal-content {
  transform: translateY(0);
}

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

.modal-header h3 {
  font-size: 1.125rem;
}

.modal-close {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  background: var(--glass-bg);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 1.125rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.modal-close:hover {
  background: var(--glass-bg-hover);
  color: var(--text-primary);
}

.modal-body textarea {
  width: 100%;
  min-height: 200px;
  padding: 16px;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 0.875rem;
  line-height: 1.6;
  resize: vertical;
}

.modal-body textarea:focus {
  border-color: var(--accent-purple);
}

.modal-actions {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}


/* ─── Toast / Notification ───────────────────────────────── */
.toast {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(-150px);
  z-index: 300;
  padding: 14px 24px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-primary);
  box-shadow: var(--shadow-lg);
  transition: transform var(--transition-slow);
  max-width: calc(100vw - 40px);
}

.toast.show {
  transform: translateX(-50%) translateY(0);
}

.toast-success {
  border-color: rgba(34, 197, 94, 0.3);
}

.toast-error {
  border-color: rgba(244, 63, 94, 0.3);
}


/* ═══════════════════════════════════════════════════════════
   LANDING PAGE
   ═══════════════════════════════════════════════════════════ */

/* ─── Hero ───────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 80px 20px 40px;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-hero);
  z-index: 0;
}

.hero::after {
  content: '';
  position: absolute;
  top: 10%;
  right: -20%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.12) 0%, transparent 70%);
  border-radius: 50%;
  z-index: 0;
  animation: floatOrb 8s ease-in-out infinite alternate;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 600px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: var(--accent-cyan-dim);
  border: 1px solid rgba(34, 211, 238, 0.2);
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent-cyan);
  margin-bottom: 24px;
}

.hero-badge .pulse {
  width: 6px;
  height: 6px;
  background: var(--accent-cyan);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

.hero h1 {
  font-size: 2.25rem;
  line-height: 1.1;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.hero-subtitle {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 32px;
  line-height: 1.6;
}

.hero-cta {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hero-orb {
  position: absolute;
  bottom: 15%;
  left: -10%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.08) 0%, transparent 70%);
  border-radius: 50%;
  z-index: 0;
  animation: floatOrb 10s ease-in-out infinite alternate-reverse;
}


/* ─── Stats Bar ──────────────────────────────────────────── */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin: 40px 20px;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px 12px;
  background: var(--bg-secondary);
}

.stat-value {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
}

.stat-label {
  font-size: 0.6875rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 4px;
}


/* ─── How It Works ───────────────────────────────────────── */
.section {
  padding: 60px 20px;
}

.steps-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 32px;
}

.step-card {
  display: flex;
  gap: 16px;
  padding: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  transition: all var(--transition-base);
}

.step-card:hover {
  border-color: var(--border-medium);
  transform: translateY(-2px);
}

.step-number {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

.step-content h3 {
  font-size: 1rem;
  margin-bottom: 4px;
}

.step-content p {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  line-height: 1.5;
}


/* ─── Tracks Grid ────────────────────────────────────────── */
.tracks-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 32px;
}

.track-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  transition: all var(--transition-base);
  cursor: pointer;
}

.track-card:hover {
  border-color: var(--border-medium);
  transform: translateY(-2px);
}

.track-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.375rem;
  flex-shrink: 0;
}

.track-info h3 {
  font-size: 0.9375rem;
  margin-bottom: 4px;
}

.track-info p {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

.track-meta {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 8px;
  font-size: 0.75rem;
  color: var(--text-muted);
}


/* ─── Features Section ───────────────────────────────────── */
.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 32px;
}

.feature-card {
  padding: 24px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  transition: all var(--transition-base);
}

.feature-card:hover {
  border-color: var(--border-medium);
}

.feature-icon {
  font-size: 1.75rem;
  margin-bottom: 12px;
  line-height: 1;
}

.feature-card h3 {
  font-size: 1rem;
  margin-bottom: 6px;
}

.feature-card p {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  line-height: 1.5;
}


/* ─── Testimonials ───────────────────────────────────────── */
.testimonials-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 32px;
}

.testimonial-card {
  padding: 24px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.testimonial-card:hover {
  border-color: rgba(34, 211, 238, 0.3);
  transform: translateY(-2px);
}

.testimonial-header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  position: relative;
}

.testimonial-avatar {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8125rem;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.testimonial-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex-grow: 1;
  min-width: 0;
  /* Prevents text overflow */
}

.testimonial-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
}

.testimonial-college {
  font-size: 0.75rem;
  color: var(--text-secondary);
  font-weight: 500;
  line-height: 1.3;
}

.testimonial-track {
  font-size: 0.725rem;
  color: var(--accent-cyan);
  font-weight: 500;
  line-height: 1.3;
}

.testimonial-streak-tag {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--accent-amber);
  background: var(--accent-amber-dim);
  padding: 4px 8px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(245, 158, 11, 0.2);
  white-space: nowrap;
  flex-shrink: 0;
}

.testimonial-quote {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.65;
  font-style: italic;
  margin: 0;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.02);
  border-left: 3px solid var(--accent-purple);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.testimonial-outcome {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: rgba(34, 197, 94, 0.08);
  border: 1px solid rgba(34, 197, 94, 0.2);
  border-radius: var(--radius-md);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--accent-green);
}

.outcome-icon {
  font-size: 1rem;
  flex-shrink: 0;
}

.outcome-text {
  line-height: 1.35;
}


/* ─── CTA Section ────────────────────────────────────────── */
.cta-section {
  padding: 60px 20px;
  text-align: center;
}

.cta-section .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.cta-section h2 {
  font-size: 1.75rem;
  margin-bottom: 12px;
}

.cta-section p {
  color: var(--text-secondary);
  margin-bottom: 32px;
  font-size: 0.9rem;
}

.cta-section .btn {
  margin: 0 auto;
}


/* ─── Footer ─────────────────────────────────────────────── */
.footer {
  padding: 32px 20px;
  border-top: 1px solid var(--border-subtle);
  text-align: center;
}

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

.footer a {
  color: var(--accent-cyan);
}


/* ═══════════════════════════════════════════════════════════
   DASHBOARD
   ═══════════════════════════════════════════════════════════ */

.dashboard-header {
  padding: 24px 0 0;
}

.greeting {
  font-size: 1.375rem;
  font-weight: 700;
}

.greeting-subtitle {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-top: 4px;
}

.dashboard-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 24px;
}

/* Streak Card */
.streak-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 20px;
  background: var(--bg-card);
  border: 1px solid rgba(245, 158, 11, 0.15);
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
}

.streak-card::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.06) 0%, transparent 70%);
  border-radius: 50%;
}

/* Today's Task */
.today-card {
  padding: 20px;
  background: var(--bg-card);
  border: 1px solid rgba(34, 211, 238, 0.15);
  border-radius: var(--radius-lg);
}

.today-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.today-card h3 {
  font-size: 1rem;
  margin-bottom: 6px;
}

.today-card p {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 16px;
}

.today-meta {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.today-meta-item {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Progress Overview */
.progress-overview {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 24px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
}

.progress-stats {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.progress-stat-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.progress-stat-label {
  font-size: 0.8125rem;
  color: var(--text-secondary);
}

.progress-stat-value {
  font-family: var(--font-heading);
  font-size: 0.9375rem;
  font-weight: 600;
}

/* XP / Rank */
.xp-rank-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.xp-card,
.rank-card {
  padding: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  text-align: center;
}

.xp-value,
.rank-value {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
}

.xp-label,
.rank-label {
  font-size: 0.6875rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 4px;
}

/* Badges */
.badges-section {
  padding: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
}

.badges-section h4 {
  font-size: 0.8125rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}

.badges-grid {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.badge-item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  background: var(--glass-bg);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.badge-item-icon {
  font-size: 1rem;
}

/* Weekly View */
.week-section {
  padding: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
}

.week-section h4 {
  font-size: 0.8125rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}


/* ═══════════════════════════════════════════════════════════
   CHALLENGE DAY PAGE
   ═══════════════════════════════════════════════════════════ */

.day-header {
  padding: 24px 0 0;
}

.day-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.day-nav-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 14px;
  background: var(--glass-bg);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-size: 0.8125rem;
  text-decoration: none;
  transition: all var(--transition-fast);
}

.day-nav-btn:hover {
  background: var(--glass-bg-hover);
  color: var(--text-primary);
  border-color: var(--border-medium);
}

.day-nav-btn.disabled {
  opacity: 0.3;
  pointer-events: none;
}

.day-title-section {
  margin-bottom: 24px;
}

.day-number {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent-cyan);
  margin-bottom: 6px;
}

.day-title {
  font-size: 1.5rem;
  margin-bottom: 12px;
}

.day-meta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.day-meta-chip {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  background: var(--glass-bg);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  color: var(--text-secondary);
}

/* Task Description */
.task-section {
  margin-bottom: 20px;
}

.task-description {
  padding: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
}

.task-description p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* Objectives */
.objectives-card {
  padding: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  margin-bottom: 16px;
}

.objectives-card h3 {
  font-size: 0.9375rem;
  margin-bottom: 12px;
}

.objective-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-subtle);
}

.objective-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.objective-check {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  border: 2px solid var(--border-medium);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
  font-size: 0.75rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.objective-check.checked {
  background: var(--accent-green);
  border-color: var(--accent-green);
  color: #fff;
}

.objective-text {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Resources */
.resources-card {
  padding: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  margin-bottom: 20px;
}

.resources-card h3 {
  font-size: 0.9375rem;
  margin-bottom: 12px;
}

.resource-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 0.8125rem;
  color: var(--accent-cyan);
  text-decoration: none;
  transition: all var(--transition-fast);
}

.resource-link:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.resource-link:hover {
  color: #67e8f9;
}

.resource-link-icon {
  font-size: 1rem;
}

/* Submission Form */
.submission-section {
  margin-bottom: 24px;
}

.submission-card {
  padding: 24px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
}

.submission-card h3 {
  font-size: 1rem;
  margin-bottom: 20px;
}

.submission-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.generate-post-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 12px;
  background: var(--accent-purple-dim);
  border: 1px solid rgba(139, 92, 246, 0.2);
  border-radius: var(--radius-md);
  color: var(--accent-purple);
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-base);
}

.generate-post-btn:hover {
  background: rgba(139, 92, 246, 0.25);
  border-color: rgba(139, 92, 246, 0.4);
}

.submission-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-muted);
  font-size: 0.75rem;
}

.submission-divider::before,
.submission-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border-subtle);
}

/* Completed Submission View */
.completed-submission {
  padding: 20px;
  background: var(--bg-card);
  border: 1px solid rgba(34, 197, 94, 0.15);
  border-radius: var(--radius-lg);
}

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

.completed-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  background: var(--accent-green-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.completed-header h3 {
  font-size: 1rem;
  color: var(--accent-green);
}

.completed-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: var(--glass-bg);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  font-size: 0.8125rem;
  color: var(--accent-cyan);
  margin-bottom: 8px;
  word-break: break-all;
}

.completed-link-icon {
  flex-shrink: 0;
}

.completed-time {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 12px;
}

/* Missed Day */
.missed-card {
  padding: 24px 20px;
  background: var(--bg-card);
  border: 1px solid rgba(244, 63, 94, 0.15);
  border-radius: var(--radius-lg);
  text-align: center;
}

.missed-icon {
  font-size: 2rem;
  margin-bottom: 12px;
}

.missed-card h3 {
  font-size: 1rem;
  color: var(--accent-rose);
  margin-bottom: 6px;
}

.missed-card p {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

/* Locked Day */
.locked-card {
  padding: 40px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  text-align: center;
  opacity: 0.6;
}

.locked-icon {
  font-size: 2.5rem;
  margin-bottom: 12px;
  opacity: 0.5;
}

.locked-card h3 {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.locked-card p {
  font-size: 0.8125rem;
  color: var(--text-muted);
}


/* ═══════════════════════════════════════════════════════════
   ANIMATIONS
   ═══════════════════════════════════════════════════════════ */

@keyframes fireFlicker {
  0% {
    transform: scale(1) rotate(-2deg);
  }

  50% {
    transform: scale(1.05) rotate(1deg);
  }

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

@keyframes pulse {

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

  50% {
    opacity: 0.5;
    transform: scale(1.5);
  }
}

@keyframes pulseGlow {

  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(34, 211, 238, 0.3);
  }

  50% {
    box-shadow: 0 0 12px 4px rgba(34, 211, 238, 0.15);
  }
}

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

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

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

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

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(20px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

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

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

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

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

/* Scroll Reveal */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

.reveal-delay-1 {
  transition-delay: 0.1s;
}

.reveal-delay-2 {
  transition-delay: 0.2s;
}

.reveal-delay-3 {
  transition-delay: 0.3s;
}

.reveal-delay-4 {
  transition-delay: 0.4s;
}

/* Page enter animation */
.page-enter {
  animation: fadeInUp 0.5s ease forwards;
}


/* ═══════════════════════════════════════════════════════════
   RESPONSIVE — Tablet (768px+)
   ═══════════════════════════════════════════════════════════ */

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

  .hero-cta {
    flex-direction: row;
  }

  .stats-bar {
    grid-template-columns: repeat(4, 1fr);
    margin: 48px auto;
    max-width: 720px;
  }

  .section {
    padding: 80px 20px;
  }

  .section-title {
    font-size: 1.75rem;
  }

  .tracks-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .testimonials-grid {
    flex-direction: row;
  }

  .testimonial-card {
    flex: 1;
  }

  .modal-content {
    border-radius: var(--radius-xl);
    margin-bottom: 48px;
  }

  .modal-overlay {
    align-items: center;
  }

  .bottom-nav {
    display: none;
  }

  .page-wrapper {
    padding-bottom: 0;
  }

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

  .streak-card {
    grid-column: 1 / -1;
  }

  .today-card {
    grid-column: 1 / -1;
  }

  .week-section {
    grid-column: 1 / -1;
  }
}


/* ═══════════════════════════════════════════════════════════
   RESPONSIVE — Desktop (1024px+)
   ═══════════════════════════════════════════════════════════ */

@media (min-width: 1024px) {
  .container {
    padding: 0 40px;
  }

  .hero {
    padding: 120px 40px 80px;
  }

  .hero h1 {
    font-size: 3.5rem;
  }

  .hero-subtitle {
    font-size: 1.125rem;
  }

  .stats-bar {
    max-width: 900px;
  }

  .section {
    padding: 100px 40px;
  }

  .section-title {
    font-size: 2rem;
  }

  .steps-grid {
    flex-direction: row;
    gap: 20px;
  }

  .step-card {
    flex: 1;
    flex-direction: column;
    text-align: center;
    padding: 32px 24px;
  }

  .tracks-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .features-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .cta-section h2 {
    font-size: 2.25rem;
  }
}


/* ═══════════════════════════════════════════════════════════
   SCROLLBAR
   ═══════════════════════════════════════════════════════════ */

::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: var(--border-medium);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--border-strong);
}


/* ═══════════════════════════════════════════════════════════
   SELECTION
   ═══════════════════════════════════════════════════════════ */

::selection {
  background: rgba(139, 92, 246, 0.3);
  color: #fff;
}


/* ═══════════════════════════════════════════════════════════
   REDESIGNED DASHBOARD COMPONENTS
   ═══════════════════════════════════════════════════════════ */

/* 1. Profile Header Card */
.profile-card-new {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  position: relative;
}

.profile-avatar-lg {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #00f2fe, #4facfe);
  color: #0b1120;
  font-size: 1.5rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 0 20px rgba(0, 242, 254, 0.3);
}

.profile-info-new {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.profile-name-new {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
}

.profile-sub-new {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.profile-track-highlight {
  color: #00e699;
  font-weight: 600;
}

.profile-rank-tag {
  padding: 6px 14px;
  border-radius: 8px;
  border: 1px solid #d97706;
  color: #f59e0b;
  background: rgba(245, 158, 11, 0.1);
  font-size: 0.8125rem;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
}

/* 2. 60-Day Progress Matrix */
.matrix-card-new {
  padding: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.matrix-header-new {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.matrix-title-new {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
}

.matrix-subtitle-new {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.matrix-percentage-new {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--accent-cyan);
}

.matrix-bar-bg {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 4px;
  overflow: hidden;
}

.matrix-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #8b5cf6, #06b6d4);
  border-radius: 4px;
  transition: width 0.5s ease;
}

.matrix-grid-new {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 6px;
}

.matrix-box-new {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6875rem;
  font-weight: 600;
  border-radius: 6px;
  text-decoration: none;
  transition: transform 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease,
    opacity 0.2s ease,
    z-index 0s ease 0.2s;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
}

.matrix-box-new.completed {
  background: #10b981;
  border-color: #10b981;
  color: var(--bg-primary);
}

.matrix-box-new.current {
  background: rgba(6, 182, 212, 0.15);
  border: 1.5px solid #06b6d4;
  box-shadow: 0 0 10px rgba(6, 182, 212, 0.4);
  color: #06b6d4;
}

.matrix-box-new.missed {
  background: #ef4444;
  border-color: #ef4444;
  color: #ffffff;
}

.matrix-box-new.locked {
  background: rgba(255, 255, 255, 0.02);
  border-color: rgba(255, 255, 255, 0.04);
  color: var(--text-muted);
  opacity: 0.6;
}

/* Hover effects for progress matrix days */
.matrix-box-new:hover {
  position: relative;
  transform: scale(1.22);
  z-index: 10;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.55),
    0 0 15px rgba(255, 255, 255, 0.05);
  transition: transform 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease,
    opacity 0.2s ease,
    z-index 0s ease 0s;
}

.matrix-box-new.completed:hover {
  background: #059669;
  border-color: #059669;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.55),
    0 0 20px rgba(16, 185, 129, 0.6);
  color: var(--bg-primary);
}

.matrix-box-new.current:hover {
  background: rgba(6, 182, 212, 0.3);
  border-color: #06b6d4;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.55),
    0 0 20px rgba(6, 182, 212, 0.6);
  color: #06b6d4;
}

.matrix-box-new.missed:hover {
  background: #dc2626;
  border-color: #dc2626;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.55),
    0 0 20px rgba(239, 68, 68, 0.6);
  color: #ffffff;
}

.matrix-box-new.locked:hover {
  opacity: 0.95;
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.55);
}


.matrix-legend-new {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-top: 4px;
}

.legend-item-new {
  display: flex;
  align-items: center;
  gap: 6px;
}

.legend-sq {
  width: 10px;
  height: 10px;
  border-radius: 2px;
}

.legend-sq.completed {
  background: #22c55e;
}

.legend-sq.current {
  background: #06b6d4;
}

.legend-sq.missed {
  background: #ef4444;
}

.legend-sq.locked {
  background: rgba(255, 255, 255, 0.15);
}

/* 3. Unlocked Achievements */
.achievements-card-new {
  padding: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.section-head-new {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
}

.achievements-list-new {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.achievement-row-new {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
}

.achievement-icon-new {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.125rem;
  color: #f59e0b;
  flex-shrink: 0;
}

.achievement-title-new {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text-primary);
}

.achievement-desc-new {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* 4. Standing & Stats (2x2 Grid) */
.standing-card-new {
  padding: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.stats-grid-2x2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.stat-tile-new {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.stat-tile-num {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
}

.stat-tile-num.cyan {
  color: #06b6d4;
}

.stat-tile-num.amber {
  color: #f59e0b;
}

.stat-tile-num.purple {
  color: #a855f7;
}

.stat-tile-lbl {
  font-size: 0.725rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* 5. Today's Challenge */
.today-card-new {
  padding: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.today-top-new {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.today-tag-new {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--accent-cyan);
}

.today-xp-badge-new {
  padding: 4px 10px;
  border-radius: 20px;
  border: 1px solid #d97706;
  color: #f59e0b;
  background: rgba(245, 158, 11, 0.1);
  font-size: 0.75rem;
  font-weight: 700;
}

.today-title-new {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.3;
}

.today-desc-new {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.today-meta-new {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.btn-start-today-new {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 14px;
  border-radius: 12px;
  background: linear-gradient(135deg, #8b5cf6, #06b6d4);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.9375rem;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(6, 182, 212, 0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-start-today-new:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(6, 182, 212, 0.4);
}

/* 6. Challenge Progress Summary */
.summary-card-new {
  padding: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.summary-title-new {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.summary-list-new {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.summary-row-new {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
}

.summary-lbl-new {
  color: var(--text-secondary);
}

.summary-val-new {
  font-weight: 700;
}

.summary-val-new.green {
  color: #22c55e;
}

.summary-val-new.red {
  color: #ef4444;
}

.summary-val-new.amber {
  color: #f59e0b;
}

.summary-val-new.cyan {
  color: #06b6d4;
}