/* 
 * styles.css — socialmediavspaidmedia.org Community Hub
 * Sleek, reading-optimized dark theme with gorgeous HSL accent colors, 
 * glassmorphism, responsive grids, and micro-animations.
 */

:root {
  color-scheme: dark;
  --bg: #080b10;
  --panel: #111820;
  --panel-2: #151f2a;
  --line: #243242;
  --text: #f4f7fb;
  --muted: #91a2b5;
  --green: #21d07a;
  --red: #ff5470;
  --amber: #ffbe45;
  --blue: #54a7ff;
  --violet: #b685ff;
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-display: 'Outfit', system-ui, sans-serif;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: 
    radial-gradient(circle at 10% 20%, rgba(84, 167, 255, 0.12), transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(33, 208, 122, 0.08), transparent 40%),
    var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  line-height: 1.6;
  min-height: 100vh;
}

h1, h2, h3, h4, .section-kicker, .btn, .nav-brand {
  font-family: var(--font-display);
}

.container {
  width: min(1200px, 100% - 40px);
  margin-inline: auto;
}

/* ==========================================================================
   Navigation
   ========================================================================== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(8, 11, 16, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: var(--transition);
}

.nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 72px;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 20px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 800;
  color: var(--text);
  text-decoration: none;
}

.brand-accent {
  color: var(--blue);
}

.nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
}

.nav-link {
  color: var(--muted);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  transition: var(--transition);
}

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

.nav-external {
  color: var(--green);
  border: 1px solid rgba(33, 208, 122, 0.3);
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  background: rgba(33, 208, 122, 0.05);
}

.nav-external:hover {
  background: rgba(33, 208, 122, 0.15);
  border-color: var(--green);
  color: var(--text);
}

.nav-mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 24px;
  cursor: pointer;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
  padding: 100px 0 60px;
  text-align: center;
}

.hero-content {
  max-width: 800px;
  margin-inline: auto;
  padding: 0 20px;
}

.hero-kicker {
  color: var(--blue);
  text-transform: uppercase;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 2px;
  margin-bottom: 12px;
}

.hero-content h1 {
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.1;
  font-weight: 900;
  margin-bottom: 20px;
  color: var(--text);
}

.accent-text {
  background: linear-gradient(135deg, var(--blue), var(--green));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-sub {
  font-size: clamp(16px, 2vw, 19px);
  color: var(--muted);
  margin-bottom: 36px;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 24px;
  font-weight: 700;
  border-radius: var(--radius-sm);
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid transparent;
}

.btn-lg {
  padding: 14px 32px;
  font-size: 16px;
}

.btn-primary {
  background: var(--blue);
  color: #040910;
  box-shadow: 0 4px 20px rgba(84, 167, 255, 0.25);
}

.btn-primary:hover {
  background: #73b7ff;
  transform: translateY(-2px);
}

.btn-outline {
  border-color: var(--line);
  color: var(--text);
  background: rgba(255, 255, 255, 0.02);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--muted);
}

.youtube-personal-card {
  margin-top: 28px;
  background: rgba(17, 24, 32, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-md);
  padding: 22px;
}

.youtube-personal-card h3 {
  margin-bottom: 8px;
}

.youtube-connect-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  margin-top: 14px;
}

.youtube-action-row {
  display: flex;
  gap: 10px;
}

.youtube-disconnect {
  border-color: rgba(255, 84, 112, 0.45);
  color: #ffc9d2;
}

.youtube-disconnect:hover {
  background: rgba(255, 84, 112, 0.12);
  border-color: rgba(255, 84, 112, 0.75);
}

.youtube-input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.02);
  color: var(--text);
  padding: 12px 14px;
  outline: none;
}

.youtube-input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 2px rgba(84, 167, 255, 0.25);
}

.youtube-status {
  margin-top: 12px;
  color: var(--muted);
  font-size: 14px;
}

.youtube-status.ok {
  color: var(--green);
}

.youtube-status.warn {
  color: var(--amber);
}

.youtube-status.error {
  color: var(--red);
}

.youtube-stats-grid {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.youtube-trend-wrap {
  margin-top: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.015);
  padding: 12px;
}

.youtube-trend-wrap h4 {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 10px;
}

.youtube-trend-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.youtube-trend-card {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.02);
  padding: 10px;
}

.youtube-trend-label {
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.7px;
}

.youtube-trend-sparkline {
  margin-top: 8px;
  min-height: 56px;
}

.youtube-trend-empty {
  font-size: 12px;
  color: var(--muted);
}

.youtube-trend-svg {
  width: 100%;
  height: 56px;
  display: block;
}

.youtube-stat-card {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.02);
  padding: 12px;
}

.youtube-stat-label {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.youtube-stat-value {
  display: block;
  margin-top: 6px;
  font-size: 22px;
  font-weight: 800;
  color: var(--text);
}

.youtube-stat-delta {
  margin-top: 4px;
  font-size: 12px;
  color: var(--muted);
}

@media (max-width: 820px) {
  .youtube-connect-row {
    grid-template-columns: 1fr;
  }

  .youtube-action-row {
    width: 100%;
  }

  .youtube-action-row .btn {
    flex: 1;
  }

  .youtube-stats-grid {
    grid-template-columns: 1fr;
  }

  .youtube-trend-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Sections Core
   ========================================================================== */
.section {
  padding: 80px 0;
}

.section-kicker {
  color: var(--green);
  font-weight: 800;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 8px;
  text-align: center;
}

.section-title {
  font-size: clamp(28px, 4vw, 38px);
  font-weight: 800;
  margin-bottom: 12px;
  text-align: center;
}

.section-sub {
  color: var(--muted);
  font-size: 16px;
  margin-bottom: 48px;
  text-align: center;
  max-width: 600px;
  margin-inline: auto;
}

.playlist-title-link {
  color: inherit;
  text-decoration: none;
  border-bottom: 2px solid rgba(84, 167, 255, 0.55);
  transition: var(--transition);
}

.playlist-title-link:hover,
.playlist-title-link:focus-visible {
  color: #b9dcff;
  border-bottom-color: var(--blue);
}

/* ==========================================================================
   National Mindset Gauge
   ========================================================================== */
.gauge-card {
  background: rgba(17, 24, 32, 0.5);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-md);
  padding: 32px;
  box-shadow: 0 24px 50px rgba(0,0,0,0.4);
}

.gauge-header {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}

.gauge-side {
  display: flex;
  flex-direction: column;
}

.gauge-productive {
  align-items: flex-start;
}

.gauge-entertainment {
  align-items: flex-end;
  text-align: right;
}

.gauge-emoji {
  font-size: 32px;
  margin-bottom: 6px;
}

.gauge-label {
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.gauge-pct {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 900;
}

.gauge-productive .gauge-pct {
  color: var(--blue);
}

.gauge-entertainment .gauge-pct {
  color: var(--red);
}

.gauge-bar-wrapper {
  position: relative;
  margin-bottom: 14px;
}

.gauge-bar-container {
  display: flex;
  height: 24px;
  border-radius: 12px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.05);
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.5);
}

.gauge-bar-prod {
  background: linear-gradient(90deg, #0ea5e9, #22c55e);
  transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
  height: 100%;
}

.gauge-bar-ent {
  background: linear-gradient(90deg, #ec4899, #ef4444);
  transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
  height: 100%;
}

.gauge-target-marker {
  position: absolute;
  top: -6px;
  bottom: -6px;
  left: 50%;
  width: 3px;
  background: var(--amber);
  transform: translateX(-50%);
  z-index: 10;
  box-shadow: 0 0 10px var(--amber);
}

.gauge-views-row {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 24px;
  font-variant-numeric: tabular-nums;
}

.gauge-target-label {
  color: var(--amber);
  font-weight: 700;
}

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

.gauge-status-badge {
  display: inline-block;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.gauge-status-badge.synced {
  background: rgba(33, 208, 122, 0.1);
  color: var(--green);
  border: 1px solid rgba(33, 208, 122, 0.2);
}

/* ==========================================================================
   Productive Video Grid
   ========================================================================== */
.video-filters {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.video-filters select {
  background: #0c1219;
  border: 1px solid var(--line);
  color: var(--text);
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  cursor: pointer;
  outline: none;
  min-width: 150px;
  transition: var(--transition);
}

.video-filters select:focus {
  border-color: var(--blue);
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
  min-height: 200px;
}

.top-playlist-player {
  margin: -22px auto 34px;
  max-width: 900px;
  overflow: hidden;
  background: rgba(12, 18, 25, 0.72);
  border: 1px solid rgba(84, 167, 255, 0.22);
  border-radius: var(--radius-md);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.32);
}

.top-playlist-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 14px;
  color: var(--muted);
  font-size: 13px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.top-playlist-stop {
  flex: 0 0 auto;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  border-radius: var(--radius-sm);
  padding: 7px 12px;
  font-weight: 800;
  cursor: pointer;
  transition: var(--transition);
}

.top-playlist-stop:hover,
.top-playlist-stop:focus-visible {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.1);
}

.top-playlist-frame {
  aspect-ratio: 16 / 9;
  background: #040910;
}

.top-playlist-frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-loading {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 0;
  color: var(--muted);
}

.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(255,255,255,0.05);
  border-top-color: var(--blue);
  border-radius: 50%;
  margin: 0 auto 16px;
  animation: spin 1s linear infinite;
}

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

.video-card {
  background: rgba(21, 31, 42, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 8px 30px rgba(0,0,0,0.25);
  transition: var(--transition);
}

.video-card:hover {
  transform: translateY(-4px);
  border-color: rgba(84, 167, 255, 0.3);
  box-shadow: 0 16px 40px rgba(0,0,0,0.4);
}

.video-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
}

.video-topic {
  background: rgba(84, 167, 255, 0.12);
  color: #b9dcff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 99px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.video-score {
  background: rgba(33, 208, 122, 0.15);
  color: var(--green);
  font-size: 12px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 99px;
  border: 1px solid rgba(33, 208, 122, 0.2);
}

.video-title {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 12px;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 46px;
}

.video-why {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
  margin-bottom: 18px;
  flex-grow: 1;
}

.video-meta {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 12px;
  margin-bottom: 16px;
}

.video-actions {
  display: flex;
  gap: 8px;
}

.video-btn {
  flex: 1;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  border-radius: var(--radius-sm);
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition);
}

.video-btn-watch {
  background: var(--blue);
  color: #040910;
}

.video-btn-watch:hover {
  background: #73b7ff;
}

.video-btn-add {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  color: var(--text);
}

.video-btn-add:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--muted);
}

/* ==========================================================================
   Habit Tracker & Replacement
   ========================================================================== */
.habit-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-bottom: 32px;
}

.habit-card {
  background: rgba(17, 24, 32, 0.5);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: var(--radius-md);
  padding: 24px;
  text-align: center;
  box-shadow: 0 8px 30px rgba(0,0,0,0.2);
}

.habit-icon {
  font-size: 32px;
  margin-bottom: 12px;
}

.habit-value {
  font-size: 36px;
  font-weight: 800;
  font-family: var(--font-display);
  margin-bottom: 4px;
}

.habit-label {
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

.habit-progress-bar {
  height: 6px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 3px;
  overflow: hidden;
  margin: 12px 0 6px;
}

.habit-progress-fill {
  background: var(--green);
  height: 100%;
  width: 0;
  transition: width 0.6s ease;
}

.habit-target {
  font-size: 11px;
  color: var(--muted);
}

.habit-actions-card {
  margin-bottom: 28px;
  background: rgba(17, 24, 32, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-md);
  padding: 22px;
}

.habit-actions-card h3 {
  margin-bottom: 8px;
}

.habit-quick-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.habit-manual-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  margin-bottom: 12px;
}

.habit-inline-options {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.habit-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
}

.habit-check input {
  accent-color: var(--green);
}

.habit-history-wrap {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.habit-history-wrap h4 {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 10px;
}

.habit-history-chart {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
  align-items: end;
}

.habit-day-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.habit-day-bar-wrap {
  width: 100%;
  max-width: 26px;
  height: 74px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.02);
  overflow: hidden;
}

.habit-day-bar {
  width: 100%;
  background: linear-gradient(180deg, var(--blue), var(--green));
  border-radius: 4px 4px 0 0;
  transition: height 0.35s ease;
}

.habit-day-min {
  font-size: 11px;
  color: var(--text);
  font-weight: 700;
}

.habit-day-label {
  font-size: 10px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Replacement Card */
.replacement-card {
  background: linear-gradient(135deg, rgba(21, 31, 42, 0.6), rgba(8, 12, 18, 0.6));
  border: 1px solid rgba(84, 167, 255, 0.15);
  border-radius: var(--radius-md);
  padding: 28px;
  box-shadow: 0 16px 40px rgba(0,0,0,0.3);
}

.replacement-card h3 {
  font-size: 20px;
  margin-bottom: 8px;
  color: var(--blue);
}

.replacement-desc {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 16px;
}

.replacement-controls {
  margin-bottom: 20px;
}

.replacement-controls select {
  background: #0c1219;
  border: 1px solid var(--line);
  color: var(--text);
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  outline: none;
}

.replacement-result {
  background: rgba(255,255,255,0.02);
  border: 1px dashed rgba(255,255,255,0.08);
  border-radius: var(--radius-sm);
  padding: 16px;
  min-height: 80px;
}

.replacement-box {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.replacement-title {
  font-weight: 700;
  color: var(--text);
}

.replacement-score {
  color: var(--green);
  font-weight: 800;
  font-size: 13px;
}

.replacement-why {
  font-size: 13px;
  color: var(--muted);
}

/* ==========================================================================
   Creator of the Week
   ========================================================================== */
.creator-card {
  background: linear-gradient(135deg, rgba(182, 133, 255, 0.12), rgba(84, 167, 255, 0.05));
  border: 1px solid rgba(182, 133, 255, 0.25);
  border-radius: var(--radius-md);
  padding: 32px;
  text-align: center;
  box-shadow: 0 16px 40px rgba(0,0,0,0.3);
  max-width: 700px;
  margin-inline: auto;
}

.creator-badge {
  display: inline-block;
  background: var(--violet);
  color: #0a0410;
  font-weight: 800;
  font-size: 12px;
  padding: 6px 14px;
  border-radius: 99px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
}

.creator-card h3 {
  font-size: 26px;
  font-weight: 800;
  margin-bottom: 8px;
}

.creator-score {
  color: var(--violet);
  font-weight: 800;
  font-size: 15px;
  margin-bottom: 16px;
}

.creator-share {
  color: var(--muted);
  font-size: 14px;
  font-style: italic;
}

/* ==========================================================================
   Featured Articles
   ========================================================================== */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.article-card {
  background: rgba(17, 24, 32, 0.4);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: var(--radius-md);
  padding: 28px;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.article-card:hover {
  border-color: rgba(255, 255, 255, 0.15);
  background: rgba(17, 24, 32, 0.6);
  transform: translateY(-2px);
}

.article-tag {
  display: inline-block;
  align-self: flex-start;
  font-size: 11px;
  font-weight: 700;
  color: var(--blue);
  border: 1px solid rgba(84, 167, 255, 0.3);
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
  margin-bottom: 16px;
}

.article-card h3 {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 12px;
  line-height: 1.3;
}

.article-card p {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 20px;
  flex-grow: 1;
}

.article-meta {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--muted);
  border-top: 1px solid rgba(255,255,255,0.05);
  padding-top: 14px;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  background: #05070a;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 60px 0 30px;
  margin-top: 60px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand {
  font-size: 20px;
  font-weight: 800;
  color: var(--text);
}

.footer-brand p {
  font-size: 14px;
  color: var(--muted);
  margin-top: 12px;
  max-width: 400px;
  line-height: 1.6;
}

.footer-links h4 {
  font-size: 15px;
  color: var(--text);
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer-links a {
  display: block;
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  margin-bottom: 10px;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--text);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.05);
  padding-top: 24px;
  text-align: center;
  font-size: 13px;
  color: var(--muted);
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 991px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

@media (max-width: 768px) {

  .habit-manual-row {
    grid-template-columns: 1fr;
  }

  .habit-quick-row .btn {
    flex: 1;
  }
  .navbar {
    padding-block: 10px;
  }
  
  .nav-inner {
    height: auto;
  }
  
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #080b10;
    flex-direction: column;
    padding: 20px;
    gap: 16px;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  }
  
  .nav-links.active {
    display: flex;
  }
  
  .nav-mobile-toggle {
    display: block;
  }
  
  .gauge-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  
  .gauge-side {
    align-items: center;
  }
}
