/* =========================================================
   WINTER ARC
   Global Stylesheet
   ========================================================= */


/* =========================================================
   1. RESET
   ========================================================= */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: #172033;
  background: #f5f7fb;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

button,
input,
textarea,
select {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  border: 0;
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

ul,
ol {
  list-style: none;
}

[hidden] {
  display: none !important;
}


/* =========================================================
   2. ROOT VARIABLES
   ========================================================= */

:root {
  --bg: #f5f7fb;
  --surface: #ffffff;
  --surface-soft: #f8faff;
  --surface-dark: #172033;

  --text: #172033;
  --text-soft: #667085;
  --text-muted: #98a2b3;

  --line: #e7eaf0;
  --line-dark: #d6dbe5;

  --primary: #315bea;
  --primary-dark: #2446c5;
  --primary-soft: #edf1ff;

  --green: #1f9d67;
  --green-soft: #e9f8f1;

  --orange: #e08a2e;
  --orange-soft: #fff4e5;

  --red: #d94b4b;
  --red-soft: #fff0f0;

  --purple: #7657d9;
  --purple-soft: #f1edff;

  --shadow-sm:
    0 2px 8px rgba(18, 28, 45, 0.04);

  --shadow:
    0 12px 35px rgba(18, 28, 45, 0.07);

  --shadow-lg:
    0 24px 70px rgba(18, 28, 45, 0.13);

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;

  --container: 1220px;

  --transition:
    180ms ease;
}


/* =========================================================
   3. SCROLLBAR
   ========================================================= */

::-webkit-scrollbar {
  width: 9px;
  height: 9px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: #cdd3de;
  border-radius: 999px;
}

::-webkit-scrollbar-thumb:hover {
  background: #aeb6c5;
}


/* =========================================================
   4. GLOBAL UTILITIES
   ========================================================= */

.container {
  width: min(
    calc(100% - 40px),
    var(--container)
  );
  margin-inline: auto;
}

.text-center {
  text-align: center;
}

.full-width {
  width: 100%;
}

.muted {
  color: var(--text-muted);
}

.no-scroll {
  overflow: hidden;
}


/* =========================================================
   5. APP TOPBAR
   ========================================================= */

.app-topbar {
  position: sticky;
  top: 0;
  z-index: 100;

  width: 100%;
  height: 76px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  padding: 0 32px;

  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);

  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}


/* Brand */

.app-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;

  flex-shrink: 0;
}

.brand-mark {
  width: 40px;
  height: 40px;

  display: grid;
  place-items: center;

  color: #fff;
  background: var(--text);

  border-radius: 12px;

  font-size: 17px;
  font-weight: 850;
  letter-spacing: -0.04em;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-text strong {
  font-size: 15px;
  letter-spacing: -0.02em;
}

.brand-text small {
  margin-top: 4px;

  color: var(--text-muted);

  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}


/* Desktop navigation */

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-left: 50px;
  margin-right: auto;
}

.nav-link {
  position: relative;

  padding: 9px 13px;

  color: var(--text-soft);

  border-radius: 9px;

  font-size: 13px;
  font-weight: 700;

  transition:
    color var(--transition),
    background var(--transition);
}

.nav-link:hover {
  color: var(--text);
  background: var(--surface-soft);
}

.nav-link.active {
  color: var(--primary);
  background: var(--primary-soft);
}


/* Topbar actions */

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.live-clock {
  display: inline-flex;
  align-items: center;
  gap: 7px;

  margin-right: 6px;

  color: var(--text-soft);

  font-size: 12px;
  font-weight: 750;
}

.clock-dot {
  width: 7px;
  height: 7px;

  background: var(--green);

  border-radius: 50%;

  box-shadow: 0 0 0 4px var(--green-soft);
}

.profile-button {
  display: flex;
  align-items: center;
  gap: 8px;

  padding: 4px 7px 4px 4px;

  color: var(--text);

  background: transparent;
  border-radius: 12px;

  transition: background var(--transition);
}

.profile-button:hover {
  background: var(--surface-soft);
}

.user-avatar {
  width: 34px;
  height: 34px;

  object-fit: cover;

  background: #e8ecf4;
  border-radius: 50%;
}

.profile-name {
  max-width: 120px;

  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;

  font-size: 12px;
  font-weight: 750;
}

.profile-chevron {
  color: var(--text-muted);
  font-size: 14px;
}

.icon-button {
  width: 38px;
  height: 38px;

  display: grid;
  place-items: center;

  color: var(--text-soft);
  background: var(--surface-soft);

  border: 1px solid var(--line);
  border-radius: 11px;

  transition:
    color var(--transition),
    background var(--transition),
    border-color var(--transition);
}

.icon-button:hover {
  color: var(--red);
  background: var(--red-soft);
  border-color: #f4caca;
}


/* =========================================================
   6. MOBILE HEADER
   ========================================================= */

.mobile-header {
  display: none;
}


/* =========================================================
   7. BUTTONS
   ========================================================= */

.primary-button,
.secondary-button,
.danger-button {
  min-height: 42px;

  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;

  padding: 0 17px;

  border-radius: 11px;

  font-size: 13px;
  font-weight: 800;

  transition:
    transform var(--transition),
    box-shadow var(--transition),
    background var(--transition),
    border-color var(--transition);
}

.primary-button {
  color: #fff;
  background: var(--primary);
  box-shadow: 0 7px 18px rgba(49, 91, 234, 0.18);
}

.primary-button:hover {
  background: var(--primary-dark);
  box-shadow: 0 10px 24px rgba(49, 91, 234, 0.24);
  transform: translateY(-1px);
}

.secondary-button {
  color: var(--text);
  background: #fff;
  border: 1px solid var(--line-dark);
}

.secondary-button:hover {
  background: var(--surface-soft);
  border-color: #bfc6d2;
  transform: translateY(-1px);
}

.danger-button {
  color: #fff;
  background: var(--red);
  box-shadow: 0 7px 18px rgba(217, 75, 75, 0.16);
}

.danger-button:hover {
  background: #bd3d3d;
  transform: translateY(-1px);
}

.primary-button.small {
  min-height: 38px;
  padding-inline: 13px;
  font-size: 12px;
}

.primary-button:disabled,
.secondary-button:disabled,
.danger-button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
  transform: none;
  box-shadow: none;
}


/* =========================================================
   8. DASHBOARD MAIN
   ========================================================= */

.dashboard-main,
.friend-main {
  width: min(
    calc(100% - 48px),
    var(--container)
  );

  margin: 0 auto;

  padding: 38px 0 90px;
}


/* =========================================================
   9. HERO
   ========================================================= */

.dashboard-hero {
  min-height: 315px;

  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  align-items: center;
  gap: 45px;

  padding: 45px;

  overflow: hidden;

  background:
    radial-gradient(
      circle at 90% 20%,
      rgba(49, 91, 234, 0.12),
      transparent 38%
    ),
    linear-gradient(
      135deg,
      #ffffff,
      #f5f7ff
    );

  border: 1px solid var(--line);
  border-radius: var(--radius-xl);

  box-shadow: var(--shadow);
}

.eyebrow {
  display: inline-flex;
  align-items: center;

  margin-bottom: 13px;

  color: var(--primary);

  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero-copy h1 {
  max-width: 650px;

  color: var(--text);

  font-size: clamp(36px, 5vw, 64px);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.hero-copy h1 span {
  display: block;
  color: var(--primary);
}

.hero-copy p {
  max-width: 590px;

  margin-top: 20px;

  color: var(--text-soft);

  font-size: 15px;
  line-height: 1.75;
}

.hero-date-row {
  display: flex;
  align-items: center;
  gap: 10px;

  margin-top: 25px;

  color: var(--text-muted);

  font-size: 12px;
  font-weight: 650;
}

.today-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;

  padding: 6px 10px;

  color: var(--green);
  background: var(--green-soft);

  border-radius: 999px;

  font-size: 11px;
  font-weight: 800;
}

.today-dot {
  width: 6px;
  height: 6px;

  background: var(--green);
  border-radius: 50%;
}

.hero-separator {
  color: #c4c9d3;
}


/* Hero progress */

.hero-progress-card {
  padding: 25px;

  background: rgba(255, 255, 255, 0.9);

  border: 1px solid var(--line);
  border-radius: 20px;

  box-shadow: var(--shadow-sm);
}

.hero-progress-top,
.hero-progress-bottom {
  display: flex;
  justify-content: space-between;
  gap: 15px;
}

.hero-progress-top {
  align-items: baseline;
}

.hero-progress-top span {
  color: var(--text-soft);
  font-size: 12px;
  font-weight: 700;
}

.hero-progress-top strong {
  color: var(--primary);
  font-size: 30px;
  letter-spacing: -0.05em;
}

.hero-progress-bottom {
  margin-top: 12px;

  color: var(--text-muted);

  font-size: 10px;
  font-weight: 700;
}


/* =========================================================
   10. CHALLENGE BANNER
   ========================================================= */

.challenge-banner {
  min-height: 108px;

  display: flex;
  align-items: center;
  gap: 20px;

  margin-top: 20px;
  padding: 18px 23px;

  background: var(--surface-dark);

  border-radius: var(--radius);

  color: #fff;

  box-shadow: var(--shadow);
}

.challenge-icon {
  width: 67px;
  height: 67px;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  flex-shrink: 0;

  background: rgba(255, 255, 255, 0.1);

  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 17px;
}

.challenge-icon span {
  font-size: 24px;
  font-weight: 900;
  line-height: 1;
}

.challenge-icon small {
  margin-top: 3px;

  color: #b9c2d5;

  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.challenge-content {
  flex: 1;
}

.challenge-label {
  color: #8e9ab2;

  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.15em;
}

.challenge-content h2 {
  margin-top: 3px;

  font-size: 18px;
  letter-spacing: -0.025em;
}

.challenge-content p {
  margin-top: 2px;

  color: #aab3c4;

  font-size: 11px;
}

.challenge-status {
  padding-left: 25px;

  border-left: 1px solid rgba(255, 255, 255, 0.12);

  text-align: right;
}

.challenge-status span {
  display: block;

  color: #8792a8;

  font-size: 8px;
  font-weight: 850;
  letter-spacing: 0.13em;
}

.challenge-status strong {
  display: block;

  margin-top: 2px;

  font-size: 17px;
}


/* =========================================================
   11. STATISTICS
   ========================================================= */

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;

  margin-top: 20px;
}

.stat-card {
  min-height: 110px;

  display: flex;
  align-items: center;
  gap: 14px;

  padding: 18px;

  background: var(--surface);

  border: 1px solid var(--line);
  border-radius: var(--radius);

  box-shadow: var(--shadow-sm);

  transition:
    transform var(--transition),
    box-shadow var(--transition);
}

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.stat-icon {
  width: 44px;
  height: 44px;

  display: grid;
  place-items: center;

  flex-shrink: 0;

  color: var(--primary);
  background: var(--primary-soft);

  border-radius: 13px;

  font-size: 16px;
  font-weight: 900;
}

.stat-info {
  min-width: 0;
}

.stat-label {
  display: block;

  color: var(--text-muted);

  font-size: 10px;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.stat-info strong {
  display: inline-block;

  margin-top: 2px;

  font-size: 28px;
  line-height: 1;
  letter-spacing: -0.055em;
}

.stat-info small {
  margin-left: 4px;

  color: var(--text-muted);

  font-size: 10px;
  font-weight: 650;
}


/* =========================================================
   12. MAIN CONTENT GRID
   ========================================================= */

.dashboard-content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(290px, 0.75fr);
  gap: 20px;

  margin-top: 20px;
}


/* =========================================================
   13. CARDS
   ========================================================= */

.dashboard-card {
  background: var(--surface);

  border: 1px solid var(--line);
  border-radius: var(--radius);

  box-shadow: var(--shadow-sm);
}

.card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;

  padding: 24px 24px 18px;
}

.card-header.compact {
  padding-bottom: 10px;
}

.card-header h2 {
  margin-top: 3px;

  font-size: 19px;
  line-height: 1.2;
  letter-spacing: -0.035em;
}

.card-header p {
  margin-top: 6px;

  color: var(--text-muted);

  font-size: 11px;
}

.section-kicker,
.modal-kicker,
.chart-label {
  color: var(--primary);

  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}


/* =========================================================
   14. PROGRESS BARS
   ========================================================= */

.progress-track {
  width: 100%;
  height: 7px;

  overflow: hidden;

  background: #edf0f5;

  border-radius: 999px;
}

.progress-track.large {
  height: 10px;
}

.progress-fill {
  width: 0;
  height: 100%;

  background: var(--primary);

  border-radius: inherit;

  transition: width 400ms ease;
}


/* =========================================================
   15. ACTIVITIES
   ========================================================= */

.activities-list {
  display: flex;
  flex-direction: column;

  padding: 0 24px;
}

.activity-item {
  min-height: 76px;

  display: flex;
  align-items: center;
  gap: 13px;

  border-top: 1px solid var(--line);
}

.activity-item:first-child {
  border-top: 0;
}

.activity-check {
  width: 24px;
  height: 24px;

  display: grid;
  place-items: center;

  flex-shrink: 0;

  color: transparent;
  background: #fff;

  border: 1.5px solid #cbd1dc;
  border-radius: 7px;

  font-size: 13px;
  font-weight: 900;

  transition:
    background var(--transition),
    color var(--transition),
    border-color var(--transition);
}

.activity-check:hover {
  border-color: var(--primary);
}

.activity-item.completed .activity-check {
  color: #fff;
  background: var(--green);
  border-color: var(--green);
}

.activity-main {
  flex: 1;
  min-width: 0;
}

.activity-name {
  display: block;

  color: var(--text);

  font-size: 13px;
  font-weight: 800;
}

.activity-target {
  display: block;

  margin-top: 2px;

  color: var(--text-muted);

  font-size: 10px;
}

.activity-item.completed .activity-name {
  color: var(--text-muted);
  text-decoration: line-through;
}

.activity-actions {
  display: flex;
  align-items: center;
  gap: 4px;
}

.activity-action {
  width: 32px;
  height: 32px;

  display: grid;
  place-items: center;

  color: var(--text-muted);
  background: transparent;

  border-radius: 8px;

  font-size: 14px;

  transition:
    color var(--transition),
    background var(--transition);
}

.activity-action:hover {
  color: var(--text);
  background: var(--surface-soft);
}

.activity-action.delete:hover {
  color: var(--red);
  background: var(--red-soft);
}

.activity-footer {
  padding: 18px 24px 24px;

  border-top: 1px solid var(--line);
}

.mini-progress-info {
  display: flex;
  align-items: center;
  justify-content: space-between;

  margin-bottom: 9px;

  color: var(--text-muted);

  font-size: 10px;
  font-weight: 700;
}

.mini-progress-info strong {
  color: var(--text);
}


/* =========================================================
   16. FRIEND CARD
   ========================================================= */

.friend-card {
  overflow: hidden;
}

.online-indicator {
  display: inline-flex;
  align-items: center;
  gap: 5px;

  color: var(--text-muted);

  font-size: 9px;
  font-weight: 750;
}

.online-indicator::before {
  content: "";

  width: 6px;
  height: 6px;

  background: #c1c7d1;
  border-radius: 50%;
}

.online-indicator.online {
  color: var(--green);
}

.online-indicator.online::before {
  background: var(--green);
}

.friend-empty-state {
  padding: 30px 24px 35px;

  text-align: center;
}

.empty-avatar {
  width: 60px;
  height: 60px;

  display: grid;
  place-items: center;

  margin: 0 auto 15px;

  color: var(--text-muted);
  background: var(--surface-soft);

  border: 1px dashed #ccd2dd;
  border-radius: 50%;

  font-size: 22px;
  font-weight: 800;
}

.friend-empty-state h3 {
  font-size: 15px;
}

.friend-empty-state p {
  max-width: 260px;

  margin: 8px auto 18px;

  color: var(--text-muted);

  font-size: 11px;
  line-height: 1.7;
}

.friend-preview {
  padding: 0 24px 24px;
}

.friend-profile {
  display: flex;
  align-items: center;
  gap: 11px;

  padding: 8px 0 20px;
}

.friend-avatar {
  width: 43px;
  height: 43px;

  object-fit: cover;

  background: #edf0f5;
  border-radius: 50%;
}

.friend-profile strong {
  display: block;

  font-size: 13px;
}

.friend-profile span {
  display: block;

  margin-top: 2px;

  color: var(--text-muted);

  font-size: 10px;
}

.friend-progress {
  padding: 16px;

  background: var(--surface-soft);

  border-radius: 12px;
}

.friend-progress-header {
  display: flex;
  justify-content: space-between;

  margin-bottom: 9px;

  color: var(--text-muted);

  font-size: 10px;
  font-weight: 700;
}

.friend-progress-header strong {
  color: var(--primary);
}

.friend-mini-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;

  margin-top: 10px;

  border: 1px solid var(--line);
  border-radius: 12px;
}

.friend-mini-stats div {
  padding: 12px;
}

.friend-mini-stats div + div {
  border-left: 1px solid var(--line);
}

.friend-mini-stats span,
.friend-mini-stats strong {
  display: block;
}

.friend-mini-stats span {
  color: var(--text-muted);
  font-size: 9px;
}

.friend-mini-stats strong {
  margin-top: 2px;
  font-size: 18px;
}


/* =========================================================
   17. CALENDAR
   ========================================================= */

.calendar-card {
  margin-top: 20px;
  padding-bottom: 24px;
}

.calendar-header {
  align-items: center;
}

.calendar-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;

  color: var(--text-muted);

  font-size: 9px;
  font-weight: 700;
}

.calendar-legend span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.legend-dot {
  width: 8px;
  height: 8px;

  display: inline-block;

  background: #e9edf3;
  border-radius: 3px;
}

.legend-dot.starting {
  background: var(--primary);
}

.legend-dot.complete {
  background: var(--green);
}

.legend-dot.partial {
  background: var(--orange);
}

.calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 7px;

  padding: 0 24px 8px;
}

.calendar-weekdays span {
  color: var(--text-muted);

  font-size: 9px;
  font-weight: 800;
  text-align: center;
  text-transform: uppercase;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 7px;

  padding: 0 24px;
}

.calendar-day {
  position: relative;

  min-height: 58px;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;

  padding: 7px;

  color: var(--text-soft);
  background: #f8f9fc;

  border: 1px solid transparent;
  border-radius: 10px;

  cursor: pointer;

  transition:
    transform var(--transition),
    border-color var(--transition),
    background var(--transition);
}

.calendar-day:hover {
  transform: translateY(-1px);
  border-color: #cfd5e1;
}

.calendar-day-number {
  font-size: 12px;
  font-weight: 800;
}

.calendar-day-label {
  color: var(--text-muted);

  font-size: 7px;
  font-weight: 750;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.calendar-day.empty {
  visibility: hidden;
  pointer-events: none;
}

.calendar-day.starting-day {
  color: #fff;
  background: var(--primary);
}

.calendar-day.starting-day .calendar-day-label {
  color: #dfe6ff;
}

.calendar-day.complete {
  background: var(--green-soft);
  border-color: #c5ead8;
}

.calendar-day.complete .calendar-day-number {
  color: var(--green);
}

.calendar-day.partial {
  background: var(--orange-soft);
  border-color: #f1d6ae;
}

.calendar-day.partial .calendar-day-number {
  color: var(--orange);
}

.calendar-day.today {
  border-color: var(--primary);
  box-shadow: inset 0 0 0 1px var(--primary);
}

.calendar-day.today::after {
  content: "TODAY";

  position: absolute;
  top: 4px;
  right: 5px;

  color: var(--primary);

  font-size: 5px;
  font-weight: 900;
}

.calendar-day.starting-day.today::after {
  color: #fff;
}

.calendar-hint {
  margin-top: 13px;
  padding: 0 24px;

  color: var(--text-muted);

  font-size: 9px;
  text-align: right;
}

.calendar-hint span {
  color: var(--text-soft);
  font-weight: 800;
}


/* =========================================================
   18. ANALYTICS
   ========================================================= */

.analytics-section {
  margin-top: 42px;
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;

  margin-bottom: 15px;
}

.section-heading h2 {
  margin-top: 3px;

  font-size: 22px;
  letter-spacing: -0.04em;
}

.section-heading p {
  margin-top: 5px;

  color: var(--text-muted);

  font-size: 11px;
}

.analytics-period {
  padding: 7px 10px;

  color: var(--text-soft);
  background: #fff;

  border: 1px solid var(--line);
  border-radius: 8px;

  font-size: 9px;
  font-weight: 750;
}

.analytics-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.chart-card {
  min-height: 300px;
  padding-bottom: 20px;
}

.chart-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;

  padding: 22px 22px 0;
}

.chart-header h3 {
  margin-top: 3px;

  font-size: 16px;
  letter-spacing: -0.03em;
}

.chart-header > strong {
  color: var(--primary);

  font-size: 22px;
  letter-spacing: -0.05em;
}


/* Weekly bar chart */

.bar-chart {
  height: 205px;

  display: flex;
  align-items: flex-end;
  gap: 10px;

  padding: 30px 22px 4px;
}

.chart-bar-wrapper {
  height: 100%;

  flex: 1;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
}

.chart-bar-value {
  color: var(--text-muted);

  font-size: 8px;
  font-weight: 750;
}

.chart-bar {
  width: min(34px, 70%);

  min-height: 4px;

  background: var(--primary);

  border-radius: 6px 6px 3px 3px;

  transition:
    height 500ms ease,
    opacity var(--transition);
}

.chart-bar:hover {
  opacity: 0.78;
}

.chart-bar-label {
  color: var(--text-muted);

  font-size: 8px;
  font-weight: 750;
}


/* Activity chart */

.activity-chart {
  display: flex;
  flex-direction: column;
  gap: 16px;

  padding: 27px 22px;
}

.activity-chart-row {
  display: grid;
  grid-template-columns: minmax(70px, 0.65fr) 1.5fr 38px;
  align-items: center;
  gap: 10px;
}

.activity-chart-name {
  overflow: hidden;

  color: var(--text-soft);

  font-size: 9px;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.activity-chart-track {
  height: 7px;

  overflow: hidden;

  background: #edf0f5;

  border-radius: 999px;
}

.activity-chart-fill {
  height: 100%;

  background: var(--primary);

  border-radius: inherit;

  transition: width 500ms ease;
}

.activity-chart-percent {
  color: var(--text);

  font-size: 9px;
  font-weight: 800;
  text-align: right;
}


/* =========================================================
   19. SELECTED DAY
   ========================================================= */

.selected-day-card {
  margin-top: 20px;
}

.selected-day-activities {
  display: flex;
  flex-direction: column;

  padding: 0 24px 24px;
}

.selected-day-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;

  padding: 13px 0;

  border-top: 1px solid var(--line);
}

.selected-day-row-name {
  font-size: 12px;
  font-weight: 750;
}

.selected-day-row-target {
  display: block;

  margin-top: 2px;

  color: var(--text-muted);

  font-size: 9px;
}

.completed-status {
  color: var(--green);

  font-size: 10px;
  font-weight: 800;
}

.incomplete-status {
  color: var(--text-muted);

  font-size: 10px;
  font-weight: 750;
}


/* =========================================================
   20. QUOTE
   ========================================================= */

.dashboard-quote {
  padding: 65px 20px 10px;

  text-align: center;
}

.quote-mark {
  height: 28px;

  color: #cfd5df;

  font-family: Georgia, serif;

  font-size: 55px;
  line-height: 0.8;
}

.dashboard-quote p {
  max-width: 560px;

  margin: 15px auto 10px;

  color: var(--text);

  font-size: 18px;
  font-weight: 650;
  letter-spacing: -0.025em;
}

.dashboard-quote span {
  color: var(--text-muted);

  font-size: 8px;
  font-weight: 850;
  letter-spacing: 0.16em;
}


/* =========================================================
   21. FRIEND PAGE
   ========================================================= */

.friend-hero {
  min-height: 250px;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;

  padding: 40px;

  background:
    radial-gradient(
      circle at 80% 40%,
      rgba(118, 87, 217, 0.13),
      transparent 38%
    ),
    linear-gradient(
      135deg,
      #fff,
      #f7f5ff
    );

  border: 1px solid var(--line);
  border-radius: var(--radius-xl);

  box-shadow: var(--shadow);
}

.friend-hero-copy h1 {
  max-width: 650px;

  font-size: clamp(34px, 5vw, 56px);
  line-height: 1;
  letter-spacing: -0.055em;
}

.friend-hero-copy h1 span {
  color: var(--purple);
}

.friend-hero-copy p {
  max-width: 580px;

  margin-top: 17px;

  color: var(--text-soft);

  font-size: 14px;
  line-height: 1.7;
}

.friend-hero-icon {
  width: 130px;
  height: 130px;

  display: grid;
  place-items: center;

  flex-shrink: 0;

  color: var(--purple);
  background: var(--purple-soft);

  border-radius: 35px;

  font-size: 55px;
}


/* Friend connect */

.friend-connect-card {
  margin-top: 20px;
}

.friend-search-form {
  display: flex;
  align-items: stretch;
  gap: 10px;

  padding: 0 24px 24px;
}

.username-input-wrapper {
  position: relative;

  flex: 1;
}

.username-prefix {
  position: absolute;
  top: 50%;
  left: 14px;

  color: var(--text-muted);

  font-size: 14px;
  font-weight: 750;

  transform: translateY(-50%);
}

.username-input-wrapper input {
  width: 100%;
  height: 44px;

  padding: 0 14px 0 31px;

  color: var(--text);

  background: #fff;

  border: 1px solid var(--line-dark);
  border-radius: 11px;

  outline: none;

  font-size: 13px;

  transition:
    border-color var(--transition),
    box-shadow var(--transition);
}

.username-input-wrapper input:focus {
  border-color: var(--primary);

  box-shadow:
    0 0 0 4px rgba(49, 91, 234, 0.08);
}

.friend-search-message {
  margin: -10px 24px 20px;

  padding: 10px 12px;

  color: var(--text-soft);
  background: var(--surface-soft);

  border-radius: 9px;

  font-size: 10px;
  font-weight: 700;
}

.friend-search-message.success {
  color: var(--green);
  background: var(--green-soft);
}

.friend-search-message.error {
  color: var(--red);
  background: var(--red-soft);
}


/* Requests */

.requests-section {
  padding: 22px 24px 24px;

  border-top: 1px solid var(--line);
}

.requests-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.requests-heading h3 {
  margin-top: 3px;

  font-size: 15px;
}

.request-count {
  min-width: 25px;
  height: 25px;

  display: grid;
  place-items: center;

  color: var(--primary);
  background: var(--primary-soft);

  border-radius: 50%;

  font-size: 10px;
  font-weight: 850;
}

.requests-list {
  display: flex;
  flex-direction: column;

  margin-top: 13px;
}

.request-item {
  display: flex;
  align-items: center;
  gap: 11px;

  padding: 12px 0;

  border-top: 1px solid var(--line);
}

.request-avatar {
  width: 38px;
  height: 38px;

  object-fit: cover;

  background: #edf0f5;
  border-radius: 50%;
}

.request-info {
  flex: 1;
  min-width: 0;
}

.request-info strong,
.request-info span {
  display: block;
}

.request-info strong {
  overflow: hidden;

  font-size: 11px;

  text-overflow: ellipsis;
  white-space: nowrap;
}

.request-info span {
  margin-top: 1px;

  color: var(--text-muted);

  font-size: 9px;
}

.request-actions {
  display: flex;
  gap: 5px;
}

.request-action {
  min-height: 31px;

  padding: 0 10px;

  border-radius: 8px;

  font-size: 9px;
  font-weight: 800;
}

.request-action.accept {
  color: #fff;
  background: var(--green);
}

.request-action.reject {
  color: var(--text-soft);
  background: var(--surface-soft);
  border: 1px solid var(--line);
}

.request-empty {
  padding: 16px 0 2px;

  color: var(--text-muted);

  font-size: 10px;
}


/* Friend profile */

.friend-profile-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;

  margin-top: 20px;
  padding: 25px;

  background: #fff;

  border: 1px solid var(--line);
  border-radius: var(--radius);

  box-shadow: var(--shadow-sm);
}

.friend-profile-main {
  display: flex;
  align-items: center;
  gap: 15px;
}

.friend-avatar-wrapper {
  position: relative;
}

.friend-page-avatar {
  width: 76px;
  height: 76px;

  object-fit: cover;

  background: #edf0f5;

  border: 4px solid #fff;
  border-radius: 50%;

  box-shadow: var(--shadow-sm);
}

.friend-status-dot {
  position: absolute;
  right: 3px;
  bottom: 5px;

  width: 14px;
  height: 14px;

  background: #c2c8d2;

  border: 3px solid #fff;
  border-radius: 50%;
}

.friend-status-dot.online {
  background: var(--green);
}

.friend-page-identity h1 {
  margin-top: 2px;

  font-size: 25px;
  letter-spacing: -0.045em;
}

.friend-page-identity > span:last-child {
  color: var(--text-muted);

  font-size: 11px;
}

.friend-page-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.friend-online-label {
  color: var(--text-muted);

  font-size: 10px;
  font-weight: 750;
}

.friend-read-only-badge {
  padding: 6px 9px;

  color: var(--text-muted);
  background: #f1f3f7;

  border-radius: 7px;

  font-size: 8px;
  font-weight: 850;
  letter-spacing: 0.09em;
}

.friend-stats-grid {
  margin-top: 15px;
}

.friend-today-card {
  margin-top: 20px;
}

.friend-activities-list {
  display: flex;
  flex-direction: column;

  padding: 0 24px;
}

.friend-activity-item {
  display: flex;
  align-items: center;
  gap: 12px;

  min-height: 67px;

  border-top: 1px solid var(--line);
}

.friend-activity-status {
  width: 24px;
  height: 24px;

  display: grid;
  place-items: center;

  color: var(--text-muted);
  background: #f1f3f7;

  border-radius: 7px;

  font-size: 12px;
  font-weight: 900;
}

.friend-activity-item.completed .friend-activity-status {
  color: var(--green);
  background: var(--green-soft);
}

.friend-activity-info {
  flex: 1;
}

.friend-activity-info strong {
  display: block;

  font-size: 12px;
}

.friend-activity-info span {
  display: block;

  margin-top: 2px;

  color: var(--text-muted);

  font-size: 9px;
}

.friend-total-progress {
  padding: 18px 24px 24px;

  border-top: 1px solid var(--line);
}

.friend-total-progress-header {
  display: flex;
  justify-content: space-between;

  margin-bottom: 8px;

  color: var(--text-muted);

  font-size: 10px;
  font-weight: 700;
}

.friend-total-progress-header strong {
  color: var(--primary);
}


/* =========================================================
   22. MODALS
   ========================================================= */

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 500;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 20px;

  background: rgba(15, 23, 42, 0.5);

  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);

  animation: modalFadeIn 180ms ease;
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.modal-card {
  position: relative;

  width: min(100%, 480px);
  max-height: calc(100vh - 40px);

  overflow-y: auto;

  padding: 27px;

  background: #fff;

  border: 1px solid var(--line);
  border-radius: 20px;

  box-shadow: var(--shadow-lg);

  animation: modalSlideIn 220ms ease;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.small-modal {
  width: min(100%, 380px);
}

.day-modal-card {
  width: min(100%, 540px);
}

.modal-close {
  position: absolute;
  top: 15px;
  right: 15px;

  width: 31px;
  height: 31px;

  display: grid;
  place-items: center;

  color: var(--text-muted);
  background: var(--surface-soft);

  border-radius: 8px;

  font-size: 20px;
  line-height: 1;

  transition:
    color var(--transition),
    background var(--transition);
}

.modal-close:hover {
  color: var(--text);
  background: #edf0f5;
}

.modal-header {
  padding-right: 35px;
  margin-bottom: 22px;
}

.modal-header h2 {
  margin-top: 4px;

  font-size: 22px;
  letter-spacing: -0.04em;
}

.modal-header p {
  margin-top: 6px;

  color: var(--text-muted);

  font-size: 11px;
  line-height: 1.6;
}


/* Forms */

.form-field {
  margin-bottom: 17px;
}

.form-field label {
  display: block;

  margin-bottom: 7px;

  color: var(--text);

  font-size: 10px;
  font-weight: 800;
}

.form-field input,
.form-field textarea,
.form-field select {
  width: 100%;

  min-height: 44px;

  padding: 10px 12px;

  color: var(--text);
  background: #fff;

  border: 1px solid var(--line-dark);
  border-radius: 10px;

  outline: none;

  font-size: 12px;

  transition:
    border-color var(--transition),
    box-shadow var(--transition);
}

.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  border-color: var(--primary);

  box-shadow:
    0 0 0 4px rgba(49, 91, 234, 0.08);
}

.form-field textarea {
  min-height: 100px;
  resize: vertical;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 9px;

  margin-top: 22px;
}


/* Profile modal */

.profile-modal-content {
  display: flex;
  flex-direction: column;
  align-items: center;

  padding: 8px 10px 5px;

  text-align: center;
}

.large-avatar {
  width: 82px;
  height: 82px;

  object-fit: cover;

  margin-bottom: 16px;

  background: #edf0f5;

  border-radius: 50%;
}

.profile-modal-content h2 {
  margin-top: 4px;

  font-size: 21px;
}

.profile-modal-content > strong {
  margin-top: 11px;

  font-size: 14px;
}

.profile-modal-content > span:not(.modal-kicker) {
  margin-top: 2px;

  color: var(--text-muted);

  font-size: 10px;
}


/* Day editor */

.day-editor-list {
  display: flex;
  flex-direction: column;

  border: 1px solid var(--line);
  border-radius: 12px;

  overflow: hidden;
}

.day-editor-item {
  display: flex;
  align-items: center;
  gap: 11px;

  min-height: 60px;

  padding: 10px 13px;

  background: #fff;

  border-bottom: 1px solid var(--line);
}

.day-editor-item:last-child {
  border-bottom: 0;
}

.day-editor-check {
  width: 23px;
  height: 23px;

  display: grid;
  place-items: center;

  flex-shrink: 0;

  color: transparent;
  background: #fff;

  border: 1.5px solid #ccd2dd;
  border-radius: 6px;

  font-size: 12px;
  font-weight: 900;
}

.day-editor-item.completed .day-editor-check {
  color: #fff;
  background: var(--green);
  border-color: var(--green);
}

.day-editor-info {
  flex: 1;
}

.day-editor-info strong,
.day-editor-info span {
  display: block;
}

.day-editor-info strong {
  font-size: 11px;
}

.day-editor-info span {
  margin-top: 2px;

  color: var(--text-muted);

  font-size: 9px;
}

.day-editor-item.read-only {
  cursor: default;
}

.friend-day-view-list .day-editor-item {
  cursor: default;
}


/* Delete modal */

.delete-modal-icon {
  width: 45px;
  height: 45px;

  display: grid;
  place-items: center;

  margin-bottom: 15px;

  color: var(--red);
  background: var(--red-soft);

  border-radius: 13px;

  font-size: 25px;
  font-weight: 500;
}

.small-modal h2 {
  margin-top: 4px;

  font-size: 21px;
  letter-spacing: -0.04em;
}

.small-modal > p {
  margin-top: 8px;

  color: var(--text-muted);

  font-size: 11px;
  line-height: 1.65;
}


/* =========================================================
   23. TOASTS
   ========================================================= */

.toast-container {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 700;

  width: min(
    calc(100% - 44px),
    360px
  );

  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toast {
  display: flex;
  align-items: flex-start;
  gap: 10px;

  padding: 13px 14px;

  color: var(--text);
  background: #fff;

  border: 1px solid var(--line);
  border-radius: 12px;

  box-shadow: var(--shadow-lg);

  animation:
    toastIn 220ms ease,
    toastOut 220ms ease 3.8s forwards;
}

@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes toastOut {
  to {
    opacity: 0;
    transform: translateY(8px);
  }
}

.toast-icon {
  width: 25px;
  height: 25px;

  display: grid;
  place-items: center;

  flex-shrink: 0;

  color: var(--primary);
  background: var(--primary-soft);

  border-radius: 7px;

  font-size: 10px;
  font-weight: 900;
}

.toast.success .toast-icon {
  color: var(--green);
  background: var(--green-soft);
}

.toast.error .toast-icon {
  color: var(--red);
  background: var(--red-soft);
}

.toast-content strong,
.toast-content span {
  display: block;
}

.toast-content strong {
  font-size: 10px;
}

.toast-content span {
  margin-top: 2px;

  color: var(--text-muted);

  font-size: 9px;
  line-height: 1.5;
}


/* =========================================================
   24. PAGE LOADER
   ========================================================= */

.page-loader {
  position: fixed;
  inset: 0;
  z-index: 1000;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;

  background: #f8f9fc;
}

.loader-spinner {
  width: 30px;
  height: 30px;

  border: 3px solid #dfe4ed;
  border-top-color: var(--primary);

  border-radius: 50%;

  animation: spin 750ms linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.page-loader span {
  color: var(--text-muted);

  font-size: 10px;
  font-weight: 750;
}


/* =========================================================
   25. MOBILE BOTTOM NAV
   ========================================================= */

.mobile-bottom-nav {
  display: none;
}


/* =========================================================
   26. LANDING PAGE SUPPORT
   ========================================================= */

.landing-page {
  background: #fff;
}

.landing-nav {
  position: sticky;
  top: 0;
  z-index: 100;

  display: flex;
  align-items: center;
  justify-content: space-between;

  height: 72px;

  padding: 0 5%;

  background: rgba(255, 255, 255, 0.92);

  border-bottom: 1px solid var(--line);

  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.landing-nav-links {
  display: flex;
  align-items: center;
  gap: 25px;
}

.landing-nav-links a {
  color: var(--text-soft);

  font-size: 12px;
  font-weight: 700;
}

.landing-nav-links a:hover {
  color: var(--text);
}

.landing-nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-height: 38px;
  padding: 0 14px;

  color: #fff !important;
  background: var(--text);

  border-radius: 9px;
}


/* =========================================================
   27. SIGN-IN PAGE
   ========================================================= */

.auth-page {
  min-height: 100vh;

  display: grid;
  place-items: center;

  padding: 30px;

  background:
    radial-gradient(
      circle at 15% 15%,
      rgba(49, 91, 234, 0.12),
      transparent 30%
    ),
    radial-gradient(
      circle at 85% 85%,
      rgba(118, 87, 217, 0.10),
      transparent 30%
    ),
    #f5f7fb;
}

.auth-shell {
  width: min(100%, 440px);
}

.auth-card {
  padding: 38px;

  background: #fff;

  border: 1px solid var(--line);
  border-radius: 24px;

  box-shadow: var(--shadow-lg);
}

.auth-brand {
  display: flex;
  justify-content: center;

  margin-bottom: 25px;
}

.auth-heading {
  text-align: center;
}

.auth-heading h1 {
  margin-top: 8px;

  font-size: 30px;
  letter-spacing: -0.05em;
}

.auth-heading p {
  margin-top: 9px;

  color: var(--text-muted);

  font-size: 12px;
  line-height: 1.7;
}

.google-sign-in-button {
  width: 100%;
  min-height: 50px;

  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;

  margin-top: 27px;

  color: var(--text);

  background: #fff;

  border: 1px solid var(--line-dark);
  border-radius: 12px;

  font-size: 13px;
  font-weight: 800;

  box-shadow: var(--shadow-sm);

  transition:
    background var(--transition),
    border-color var(--transition),
    transform var(--transition);
}

.google-sign-in-button:hover {
  background: var(--surface-soft);
  border-color: #bcc4d1;
  transform: translateY(-1px);
}

.google-icon {
  width: 19px;
  height: 19px;

  display: grid;
  place-items: center;

  font-weight: 900;
}

.auth-note {
  margin-top: 20px;

  color: var(--text-muted);

  font-size: 9px;
  line-height: 1.7;
  text-align: center;
}

.auth-back {
  display: block;

  margin-top: 20px;

  color: var(--text-soft);

  font-size: 10px;
  font-weight: 700;
  text-align: center;
}

.auth-back:hover {
  color: var(--primary);
}


/* =========================================================
   28. ABOUT PAGE
   ========================================================= */

.about-main {
  width: min(
    calc(100% - 48px),
    950px
  );

  margin: 0 auto;

  padding: 70px 0 100px;
}

.about-hero {
  max-width: 760px;
}

.about-hero h1 {
  margin-top: 7px;

  font-size: clamp(38px, 6vw, 64px);
  line-height: 1;
  letter-spacing: -0.06em;
}

.about-hero h1 span {
  color: var(--primary);
}

.about-hero p {
  margin-top: 20px;

  color: var(--text-soft);

  font-size: 15px;
  line-height: 1.8;
}

.about-section {
  margin-top: 65px;
}

.about-section h2 {
  font-size: 25px;
  letter-spacing: -0.04em;
}

.about-section p {
  max-width: 750px;

  margin-top: 12px;

  color: var(--text-soft);

  font-size: 13px;
  line-height: 1.8;
}


/* =========================================================
   29. FOCUS STATES
   ========================================================= */

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid rgba(49, 91, 234, 0.18);
  outline-offset: 2px;
}


/* =========================================================
   30. RESPONSIVE — LARGE TABLET
   ========================================================= */

@media (max-width: 1050px) {

  .app-topbar {
    padding-inline: 22px;
  }

  .desktop-nav {
    margin-left: 25px;
  }

  .dashboard-main,
  .friend-main {
    width: min(
      calc(100% - 32px),
      var(--container)
    );
  }

  .dashboard-hero {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .hero-progress-card {
    max-width: 520px;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .dashboard-content-grid {
    grid-template-columns: 1fr;
  }

  .friend-card {
    min-height: auto;
  }

}


/* =========================================================
   31. RESPONSIVE — TABLET
   ========================================================= */

@media (max-width: 780px) {

  .app-topbar {
    height: 65px;
    padding: 0 16px;
  }

  .desktop-nav,
  .live-clock,
  .profile-name,
  .profile-chevron {
    display: none;
  }

  .topbar-actions {
    margin-left: auto;
  }

  .mobile-header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 15px 18px;

    background: #fff;

    border-bottom: 1px solid var(--line);
  }

  .mobile-page-label {
    display: block;

    color: var(--text-muted);

    font-size: 8px;
    font-weight: 850;
    letter-spacing: 0.12em;
    text-transform: uppercase;
  }

  .mobile-header strong {
    display: block;

    margin-top: 2px;

    font-size: 14px;
    letter-spacing: -0.02em;
  }

  .mobile-avatar-button {
    width: 37px;
    height: 37px;

    padding: 0;

    overflow: hidden;

    background: #edf0f5;
    border-radius: 50%;
  }

  .mobile-avatar-button img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .dashboard-main,
  .friend-main {
    width: min(
      calc(100% - 28px),
      var(--container)
    );

    padding-top: 22px;
    padding-bottom: 90px;
  }

  .dashboard-hero,
  .friend-hero {
    padding: 28px 23px;
    border-radius: 22px;
  }

  .hero-copy h1 {
    font-size: 42px;
  }

  .friend-hero {
    min-height: auto;
  }

  .friend-hero-icon {
    width: 90px;
    height: 90px;

    border-radius: 25px;

    font-size: 40px;
  }

  .challenge-banner {
    align-items: flex-start;
  }

  .challenge-status {
    display: none;
  }

  .analytics-grid {
    grid-template-columns: 1fr;
  }

  .friend-profile-banner {
    align-items: flex-start;
    flex-direction: column;
  }

  .friend-page-actions {
    width: 100%;
    justify-content: space-between;
  }

  .mobile-bottom-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 150;

    height: 65px;

    display: grid;
    grid-template-columns: repeat(4, 1fr);

    background: rgba(255, 255, 255, 0.96);

    border-top: 1px solid var(--line);

    box-shadow:
      0 -8px 30px rgba(18, 28, 45, 0.07);

    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
  }

  .mobile-nav-item {
    min-width: 0;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;

    color: var(--text-muted);
    background: transparent;

    font-size: 16px;
  }

  .mobile-nav-item small {
    font-size: 7px;
    font-weight: 800;
  }

  .mobile-nav-item.active {
    color: var(--primary);
  }

  .friend-page .mobile-bottom-nav {
    grid-template-columns: repeat(3, 1fr);
  }

}


/* =========================================================
   32. RESPONSIVE — MOBILE
   ========================================================= */

@media (max-width: 560px) {

  body {
    font-size: 14px;
  }

  .app-brand .brand-text {
    display: none;
  }

  .app-brand {
    gap: 0;
  }

  .brand-mark {
    width: 37px;
    height: 37px;
  }

  .icon-button {
    width: 35px;
    height: 35px;
  }

  .dashboard-main,
  .friend-main {
    width: calc(100% - 20px);

    padding-top: 12px;
    padding-bottom: 90px;
  }

  .dashboard-hero {
    min-height: auto;

    padding: 25px 19px;

    border-radius: 18px;
  }

  .hero-copy h1 {
    font-size: 37px;
  }

  .hero-copy p {
    font-size: 12px;
    line-height: 1.65;
  }

  .hero-date-row {
    flex-wrap: wrap;
    margin-top: 17px;
  }

  .hero-progress-card {
    padding: 19px;
  }

  .hero-progress-top strong {
    font-size: 25px;
  }

  .challenge-banner {
    gap: 13px;

    margin-top: 12px;
    padding: 14px;

    border-radius: 15px;
  }

  .challenge-icon {
    width: 51px;
    height: 51px;

    border-radius: 13px;
  }

  .challenge-icon span {
    font-size: 18px;
  }

  .challenge-content h2 {
    font-size: 14px;
  }

  .challenge-content p {
    font-size: 9px;
  }

  .stats-grid {
    gap: 8px;
    margin-top: 12px;
  }

  .stat-card {
    min-height: 92px;

    gap: 9px;

    padding: 13px;

    border-radius: 13px;
  }

  .stat-icon {
    width: 35px;
    height: 35px;

    border-radius: 10px;

    font-size: 13px;
  }

  .stat-label {
    font-size: 7px;
  }

  .stat-info strong {
    font-size: 22px;
  }

  .stat-info small {
    display: none;
  }

  .dashboard-content-grid {
    gap: 12px;
    margin-top: 12px;
  }

  .card-header {
    padding: 19px 17px 14px;
  }

  .card-header h2 {
    font-size: 17px;
  }

  .card-header p {
    font-size: 9px;
  }

  .primary-button.small {
    min-height: 35px;

    padding-inline: 10px;

    font-size: 9px;
  }

  .activities-list {
    padding: 0 17px;
  }

  .activity-item {
    min-height: 66px;
  }

  .activity-name {
    font-size: 11px;
  }

  .activity-target {
    font-size: 8px;
  }

  .activity-action {
    width: 28px;
    height: 28px;
  }

  .activity-footer {
    padding: 14px 17px 18px;
  }

  .calendar-card {
    margin-top: 12px;
  }

  .calendar-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .calendar-legend {
    justify-content: flex-start;
  }

  .calendar-weekdays,
  .calendar-grid {
    gap: 4px;
    padding-inline: 12px;
  }

  .calendar-day {
    min-height: 45px;
    padding: 4px;
    border-radius: 7px;
  }

  .calendar-day-number {
    font-size: 10px;
  }

  .calendar-day-label {
    font-size: 5px;
  }

  .calendar-day.today::after {
    display: none;
  }

  .calendar-hint {
    padding-inline: 12px;
    text-align: center;
  }

  .analytics-section {
    margin-top: 30px;
  }

  .section-heading h2 {
    font-size: 19px;
  }

  .analytics-grid {
    gap: 12px;
  }

  .chart-card {
    min-height: 270px;
  }

  .bar-chart {
    gap: 5px;
    padding-inline: 13px;
  }

  .chart-bar {
    width: 75%;
  }

  .chart-header {
    padding-inline: 17px;
  }

  .activity-chart {
    padding-inline: 17px;
  }

  .activity-chart-row {
    grid-template-columns: 75px 1fr 32px;
  }

  .dashboard-quote {
    padding-top: 45px;
  }

  .dashboard-quote p {
    font-size: 15px;
  }


  /* Friend */

  .friend-hero {
    padding: 25px 19px;
    border-radius: 18px;
  }

  .friend-hero-copy h1 {
    font-size: 35px;
  }

  .friend-hero-copy p {
    font-size: 11px;
  }

  .friend-hero-icon {
    width: 65px;
    height: 65px;

    flex-shrink: 0;

    border-radius: 18px;

    font-size: 28px;
  }

  .friend-search-form {
    flex-direction: column;
    padding-inline: 17px;
  }

  .requests-section {
    padding-inline: 17px;
  }

  .request-item {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .request-actions {
    width: 100%;
    margin-left: 49px;
  }

  .friend-profile-banner {
    padding: 18px;

    border-radius: 14px;
  }

  .friend-profile-main {
    width: 100%;
  }

  .friend-page-avatar {
    width: 60px;
    height: 60px;
  }

  .friend-page-identity h1 {
    font-size: 20px;
  }

  .friend-page-actions {
    align-items: center;
  }

  .friend-page-actions .secondary-button {
    min-height: 36px;
    padding-inline: 10px;
    font-size: 9px;
  }


  /* Modal */

  .modal-overlay {
    align-items: flex-end;
    padding: 10px;
  }

  .modal-card,
  .small-modal,
  .day-modal-card {
    width: 100%;

    max-height: 90vh;

    padding: 22px 18px;

    border-radius: 19px;
  }

  .modal-header h2 {
    font-size: 20px;
  }

  .modal-actions {
    flex-direction: column-reverse;
  }

  .modal-actions > button {
    width: 100%;
  }

  .toast-container {
    right: 10px;
    bottom: 76px;

    width: calc(100% - 20px);
  }


  /* Auth */

  .auth-page {
    padding: 15px;
  }

  .auth-card {
    padding: 28px 20px;
    border-radius: 19px;
  }

}


/* =========================================================
   33. REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

}


/* =========================================================
   MULTI-FRIEND ADDITIONS
   ========================================================= */

/* hide private pages until Firebase confirms the session */
html.auth-checking body {
  visibility: hidden;
}

/* ---------- Your Circle (dashboard) ---------- */

.circle-count,
.friend-count-label {
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 800;
}

.circle-count {
  padding: 4px 9px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
}

.circle-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-height: 380px;
  padding: 0 14px 6px;
  overflow-y: auto;
}

.circle-row {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 11px 10px;
  color: inherit;
  border-radius: 12px;
  transition: background var(--transition), transform var(--transition);
}

a.circle-row:hover {
  background: var(--surface-soft);
  transform: translateX(2px);
}

.circle-row.is-me {
  background: var(--primary-soft);
}

.circle-rank {
  width: 22px;
  flex-shrink: 0;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 800;
  text-align: center;
}

.circle-avatar {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  object-fit: cover;
  background: #edf0f5;
  border-radius: 50%;
}

.circle-info {
  flex: 1;
  min-width: 0;
}

.circle-top {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
  font-size: 11px;
}

.circle-top strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.circle-top span {
  color: var(--primary);
  font-weight: 800;
}

.circle-info small {
  display: block;
  margin-top: 6px;
  color: var(--text-muted);
  font-size: 9px;
}

.circle-footer {
  padding: 10px 24px 24px;
}


/* ---------- Friend tabs ---------- */

.friend-tabs-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 22px 0 18px;
}

.friend-tabs {
  display: flex;
  gap: 8px;
  padding: 2px 2px 6px;
  overflow-x: auto;
  scrollbar-width: none;
}

.friend-tabs::-webkit-scrollbar {
  display: none;
}

.friend-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  padding: 7px 14px 7px 8px;
  color: var(--text-soft);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  font: inherit;
  font-size: 11px;
  font-weight: 750;
  cursor: pointer;
  transition: all var(--transition);
}

.friend-tab:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.friend-tab.active {
  color: #fff;
  background: var(--primary);
  border-color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.friend-tab img {
  width: 24px;
  height: 24px;
  object-fit: cover;
  border-radius: 50%;
}

.friend-tab-icon {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  background: rgba(127, 140, 180, .16);
  border-radius: 50%;
}

.friend-tab b {
  padding: 2px 7px;
  background: rgba(127, 140, 180, .16);
  border-radius: 999px;
  font-size: 9px;
}

.friend-tab.active b,
.friend-tab.active .friend-tab-icon {
  background: rgba(255, 255, 255, .22);
}


/* ---------- Leaderboard + compare grid ---------- */

.leaderboard-list {
  display: flex;
  flex-direction: column;
  padding: 0 18px 18px;
}

.leader-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-top: 1px solid var(--line);
  border-radius: 10px;
  font-size: 12px;
}

.leader-row.is-me {
  background: var(--primary-soft);
  border-top-color: transparent;
}

.leader-row strong {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.leader-stat {
  min-width: 46px;
  font-weight: 800;
  text-align: right;
}

.leader-stat small {
  display: block;
  margin-bottom: 1px;
  color: var(--text-muted);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.compare-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
  margin-top: 18px;
}

.compare-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 20px;
}

.compare-head {
  display: flex;
  align-items: center;
  gap: 11px;
}

.compare-head > div {
  flex: 1;
  min-width: 0;
}

.compare-head strong,
.compare-head span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.compare-head strong {
  font-size: 13px;
}

.compare-head span {
  margin-top: 2px;
  color: var(--text-muted);
  font-size: 10px;
}

.compare-pct {
  color: var(--primary);
  font-size: 20px;
}

.mini-bars {
  display: flex;
  align-items: flex-end;
  gap: 5px;
  height: 46px;
}

.mini-bars i {
  flex: 1;
  height: 100%;
  display: flex;
  align-items: flex-end;
  background: var(--surface-soft);
  border-radius: 4px;
}

.mini-bars u {
  width: 100%;
  background: var(--primary);
  border-radius: 4px;
  opacity: .85;
}

.friend-connect-card {
  margin-top: 24px;
}

@media (max-width: 560px) {
  .friend-tabs-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
  }

  .leader-stat:nth-of-type(2),
  .leader-stat:nth-of-type(4) {
    display: none;
  }
}


/* =========================================================
   PUBLIC PAGES — index.html / sign-in.html / about.html
   (scoped by body class so the dashboard is untouched)
   ========================================================= */

.hidden { display: none !important; }

/* ---------- shared bits ---------- */

.logo-box {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--purple));
  border-radius: 11px;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: -.02em;
  box-shadow: 0 6px 16px rgba(49, 91, 234, .28);
}

.logo-box.small { width: 30px; height: 30px; border-radius: 9px; font-size: 11px; }

.site-logo { display: inline-flex; align-items: center; gap: 11px; }
.site-logo strong { display: block; font-size: 15px; line-height: 1.1; letter-spacing: -.02em; }
.site-logo small { display: block; margin-top: 2px; color: var(--text-muted); font-size: 11px; font-weight: 700; }

.landing-page .primary-button,
.landing-page .secondary-button,
.about-page .primary-button,
.auth-page .primary-button {
  min-height: 48px;
  padding: 0 24px;
  font-size: 14px;
}

.landing-page .eyebrow,
.about-page .eyebrow,
.auth-page .eyebrow {
  font-size: 11px;
}


/* =========================================================
   LANDING (index.html)
   ========================================================= */

.landing-page { background: #fff; overflow-x: clip; }
.landing-hero { overflow-x: clip; }

.landing-nav .site-logo { flex: 1; }
.landing-nav-links { flex: 2; justify-content: center; gap: 32px; }
.landing-nav-links a { font-size: 14px; }

.nav-login {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 20px;
  margin-left: auto;
  color: #fff;
  background: var(--text);
  border-radius: 10px;
  font-size: 13px;
  font-weight: 750;
  transition: transform var(--transition), box-shadow var(--transition);
}

.landing-nav .nav-login { margin-left: 0; }
.nav-login:hover { transform: translateY(-1px); box-shadow: var(--shadow); }

/* hero */

.landing-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  align-items: center;
  gap: 56px;
  max-width: 1240px;
  margin: 0 auto;
  padding: 88px 5% 96px;
}

.hero-glow {
  position: absolute;
  inset: -80px 0 auto 30%;
  height: 560px;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 30% 40%, rgba(49, 91, 234, .16), transparent 55%),
    radial-gradient(circle at 75% 55%, rgba(118, 87, 217, .14), transparent 55%);
  filter: blur(20px);
}

.landing-hero-content,
.landing-preview { position: relative; z-index: 1; }

.landing-hero .eyebrow {
  gap: 9px;
  padding: 7px 14px;
  margin-bottom: 22px;
  background: var(--primary-soft);
  border-radius: 999px;
}

.eyebrow-dot {
  width: 7px;
  height: 7px;
  background: var(--primary);
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .45; transform: scale(.7); }
}

.landing-hero h1 {
  font-size: clamp(42px, 6vw, 76px);
  line-height: .98;
  letter-spacing: -.055em;
}

.landing-hero h1 span {
  display: block;
  background: linear-gradient(90deg, var(--primary), var(--purple));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.landing-hero-content > p {
  max-width: 540px;
  margin-top: 24px;
  color: var(--text-soft);
  font-size: 17px;
  line-height: 1.65;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }

.hero-note {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 34px;
  padding: 9px 16px;
  color: var(--text-soft);
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
}

.hero-note span:nth-child(2) { color: var(--primary); }

/* preview window */

.preview-window {
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: 0 30px 80px rgba(23, 32, 51, .14), 0 4px 14px rgba(23, 32, 51, .05);
  transform: rotate(1.2deg);
  transition: transform 400ms ease;
}

.preview-window:hover { transform: rotate(0); }

.preview-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--line);
}

.preview-brand { display: flex; align-items: center; gap: 10px; }
.preview-brand strong { display: block; font-size: 13px; line-height: 1.1; }
.preview-brand small { color: var(--text-muted); font-size: 10px; font-weight: 700; }

.preview-time {
  color: var(--green);
  font-size: 12px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.preview-avatar {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  color: var(--primary);
  background: var(--primary-soft);
  border-radius: 50%;
  font-size: 12px;
  font-weight: 850;
}

.preview-body {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 20px;
  padding: 26px 22px 20px;
}

.preview-intro small { color: var(--text-muted); font-size: 10px; font-weight: 800; letter-spacing: .1em; }

.preview-intro h2 {
  margin: 8px 0 16px;
  font-size: 24px;
  line-height: 1.12;
  letter-spacing: -.04em;
}

.preview-intro h2 span { color: var(--primary); }

.preview-challenge {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 13px;
  background: var(--primary-soft);
  border-radius: 13px;
}

.preview-challenge b {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  color: #fff;
  background: var(--primary);
  border-radius: 10px;
  font-size: 15px;
}

.preview-challenge strong { display: block; font-size: 11px; line-height: 1.3; }
.preview-challenge small { color: var(--text-soft); font-size: 10px; letter-spacing: 0; font-weight: 600; }

.preview-ring { display: flex; flex-direction: column; align-items: center; gap: 10px; }

.preview-ring-circle {
  display: grid;
  place-content: center;
  width: 108px;
  height: 108px;
  text-align: center;
  background:
    radial-gradient(closest-side, #fff 76%, transparent 78% 100%),
    conic-gradient(var(--primary) 67%, #e9edf5 0);
  border-radius: 50%;
}

.preview-ring-circle strong { font-size: 22px; line-height: 1; letter-spacing: -.04em; }
.preview-ring-circle small { margin-top: 2px; color: var(--text-muted); font-size: 10px; font-weight: 700; }
.preview-ring > span { color: var(--text-muted); font-size: 10px; font-weight: 800; letter-spacing: .08em; }

.preview-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 0 22px;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.preview-stats > div { padding: 12px 14px; }
.preview-stats > div + div { border-left: 1px solid var(--line); }
.preview-stats small { display: block; color: var(--text-muted); font-size: 9px; font-weight: 800; letter-spacing: .08em; }
.preview-stats strong { display: block; margin-top: 3px; font-size: 15px; letter-spacing: -.02em; }

.preview-habits { display: flex; flex-direction: column; gap: 8px; padding: 16px 22px 22px; }

.preview-habit {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 13px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.preview-habit > div { flex: 1; }
.preview-habit strong { display: block; font-size: 12px; }
.preview-habit small { color: var(--text-muted); font-size: 10px; }

.fake-check {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  color: #fff;
  border: 1.5px solid #ccd2dd;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 900;
}

.preview-habit.done { background: var(--green-soft); border-color: transparent; }
.preview-habit.done .fake-check { background: var(--green); border-color: var(--green); }

.habit-status { color: var(--green); font-size: 9px; font-weight: 850; letter-spacing: .08em; }
.habit-status.pending { color: var(--orange); }

/* sections */

.landing-section {
  max-width: 1240px;
  margin: 0 auto;
  padding: 96px 5%;
}

.landing-page .section-heading {
  display: block;
  max-width: 700px;
  margin: 0 auto 56px;
  text-align: center;
}

.landing-page .section-heading h2,
.about-page .section-heading h2 {
  font-size: clamp(30px, 4.2vw, 48px);
  line-height: 1.05;
  letter-spacing: -.045em;
}

.landing-page .section-heading h2 span,
.about-page .section-heading h2 .text-accent {
  display: block;
  color: var(--primary);
}

.landing-page .section-heading p,
.about-page .section-heading p {
  margin-top: 16px;
  color: var(--text-soft);
  font-size: 16px;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.step-card {
  position: relative;
  padding: 28px 24px 30px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.step-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--line-dark); }

.step-number {
  position: absolute;
  top: 22px;
  right: 24px;
  color: #e4e8f1;
  font-size: 34px;
  font-weight: 900;
  letter-spacing: -.05em;
}

.step-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 22px;
  color: var(--primary);
  background: var(--primary-soft);
  border-radius: 13px;
  font-size: 20px;
  font-weight: 800;
}

.step-card h3 { font-size: 17px; letter-spacing: -.03em; }
.step-card p { margin-top: 9px; color: var(--text-soft); font-size: 14px; line-height: 1.6; }

/* features */

.feature-section { background: transparent; }

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.feature-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 30px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 22px;
  transition: transform var(--transition), box-shadow var(--transition);
}

.feature-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }

.feature-card .eyebrow { margin-bottom: 8px; }
.feature-card h3 { font-size: 20px; letter-spacing: -.035em; }
.feature-card p { margin-top: 10px; color: var(--text-soft); font-size: 14px; line-height: 1.65; }

.feature-symbol {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 22px;
  color: var(--primary);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  font-size: 20px;
  font-weight: 800;
}

.feature-large {
  grid-column: span 2;
  flex-direction: row;
  align-items: center;
  gap: 34px;
  color: #fff;
  background: linear-gradient(135deg, #172033, #26325a);
  border: 0;
}

.feature-large h3 { color: #fff; font-size: 26px; }
.feature-large p { color: rgba(255, 255, 255, .72); }
.feature-large .eyebrow { color: #9db3ff; }

.feature-number {
  flex-shrink: 0;
  font-size: clamp(80px, 11vw, 140px);
  font-weight: 900;
  line-height: .85;
  letter-spacing: -.07em;
  background: linear-gradient(180deg, #9db3ff, #5b73e8);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* challenge banner */

.challenge-section {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 40px;
  max-width: 1150px;
  margin: 0 auto 40px;
  padding: 48px 54px;
  color: #fff;
  background: linear-gradient(120deg, var(--primary), var(--purple));
  border-radius: 30px;
  box-shadow: 0 24px 60px rgba(49, 91, 234, .28);
}

.challenge-big-number {
  font-size: clamp(80px, 10vw, 128px);
  font-weight: 900;
  line-height: .85;
  letter-spacing: -.07em;
  color: rgba(255, 255, 255, .92);
}

.challenge-section .eyebrow { color: rgba(255, 255, 255, .75); }
.challenge-section .challenge-content h2 { color: #fff; font-size: clamp(24px, 3vw, 34px); letter-spacing: -.04em; }
.challenge-section .challenge-content p { margin-top: 10px; max-width: 460px; color: rgba(255, 255, 255, .8); font-size: 15px; }

.challenge-section .secondary-button {
  color: var(--primary);
  background: #fff;
  border-color: #fff;
  white-space: nowrap;
}

/* FAQ (landing + about) */

.faq-section { max-width: 860px; }

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 820px;
  margin: 0 auto;
}

.faq-list details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.faq-list details[open] { border-color: var(--line-dark); box-shadow: var(--shadow-sm); }

.faq-list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  font-size: 15px;
  font-weight: 750;
  letter-spacing: -.02em;
  list-style: none;
  cursor: pointer;
}

.faq-list summary::-webkit-details-marker { display: none; }

.faq-list summary span {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  color: var(--primary);
  background: var(--primary-soft);
  border-radius: 50%;
  font-size: 16px;
  transition: transform var(--transition);
}

.faq-list details[open] summary span { transform: rotate(45deg); }

.faq-list details p {
  padding: 0 24px 22px;
  color: var(--text-soft);
  font-size: 14px;
  line-height: 1.7;
}

/* final CTA */

.final-cta {
  max-width: 1150px;
  margin: 0 auto 90px;
  padding: 80px 24px;
  text-align: center;
  background: radial-gradient(circle at 50% 0, var(--primary-soft), transparent 70%), var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 32px;
}

.final-cta h2 { font-size: clamp(34px, 5vw, 58px); line-height: 1; letter-spacing: -.05em; }
.final-cta h2 span { display: block; color: var(--primary); }
.final-cta p { max-width: 440px; margin: 18px auto 30px; color: var(--text-soft); font-size: 16px; }

/* footer (landing + about) */

.landing-footer,
.site-footer {
  border-top: 1px solid var(--line);
}

.landing-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding: 32px 5%;
}

.footer-links { display: flex; gap: 24px; }
.footer-links a { color: var(--text-soft); font-size: 13px; font-weight: 700; }
.footer-links a:hover { color: var(--primary); }
.footer-copy { color: var(--text-muted); font-size: 12px; font-weight: 600; }


/* =========================================================
   SIGN-IN (sign-in.html)
   ========================================================= */

.auth-page {
  position: relative;
  display: block;
  min-height: 100vh;
  padding: 0;
  overflow-x: hidden;
  background: #f7f9fe;
}

.auth-background { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }

.auth-glow { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .55; }
.auth-glow-one { top: -160px; left: -120px; width: 520px; height: 520px; background: #bcc9ff; }
.auth-glow-two { right: -140px; bottom: -180px; width: 560px; height: 560px; background: #d9ccff; }

.auth-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(49, 91, 234, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(49, 91, 234, .045) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
}

.auth-nav {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 24px 5%;
}

.back-link { color: var(--text-soft); font-size: 13px; font-weight: 700; transition: color var(--transition); }
.back-link:hover { color: var(--primary); }

.auth-main {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 480px) minmax(0, 1fr);
  align-items: center;
  gap: 80px;
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 24px 5% 70px;
}

.auth-card-new {
  padding: 40px 36px 30px;
  background: rgba(255, 255, 255, .88);
  border: 1px solid #fff;
  border-radius: 28px;
  box-shadow: 0 30px 80px rgba(49, 91, 234, .13), 0 2px 8px rgba(23, 32, 51, .04);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.auth-card-top { text-align: center; margin-bottom: 28px; }

.auth-logo-large {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--purple));
  border-radius: 20px;
  font-size: 22px;
  font-weight: 900;
  box-shadow: 0 12px 28px rgba(49, 91, 234, .32);
}

.auth-card-top .eyebrow { margin-bottom: 8px; }
.auth-card-top h1 { font-size: 34px; letter-spacing: -.05em; }
.auth-card-top p { margin-top: 8px; color: var(--text-soft); font-size: 15px; }

.google-signin-button {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 56px;
  padding: 0 18px;
  color: var(--text);
  background: #fff;
  border: 1.5px solid var(--line-dark);
  border-radius: 14px;
  font-size: 15px;
  font-weight: 750;
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}

.google-signin-button:hover:not(:disabled) {
  border-color: var(--primary);
  box-shadow: 0 8px 24px rgba(49, 91, 234, .14);
  transform: translateY(-1px);
}

.google-signin-button:disabled { opacity: .65; cursor: wait; }
.google-signin-button > span:nth-child(2) { flex: 1; text-align: center; }
.google-logo { display: grid; place-items: center; }
.google-arrow { color: var(--text-muted); transition: transform var(--transition); }
.google-signin-button:hover .google-arrow { transform: translateX(3px); color: var(--primary); }

.auth-status { min-height: 0; margin-top: 12px; font-size: 13px; text-align: center; }
.auth-status:empty { display: none; }

.auth-info {
  display: flex;
  gap: 13px;
  margin-top: 22px;
  padding: 16px;
  background: var(--green-soft);
  border-radius: 14px;
}

.auth-info-icon {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  color: #fff;
  background: var(--green);
  border-radius: 50%;
  font-size: 12px;
  font-weight: 900;
}

.auth-info strong { display: block; font-size: 13px; }
.auth-info p { margin-top: 3px; color: var(--text-soft); font-size: 12px; line-height: 1.55; }

.signin-features { display: flex; flex-direction: column; margin-top: 22px; }

.signin-feature { display: flex; align-items: center; gap: 14px; padding: 13px 0; border-top: 1px solid var(--line); }
.signin-feature > span { color: var(--primary); font-size: 11px; font-weight: 900; letter-spacing: .06em; }
.signin-feature strong { display: block; font-size: 13px; }
.signin-feature small { color: var(--text-muted); font-size: 12px; }

.auth-terms { margin-top: 18px; color: var(--text-muted); font-size: 11px; line-height: 1.55; text-align: center; }

/* side panel */

.side-label { margin-bottom: 14px; color: var(--primary); font-size: 11px; font-weight: 850; letter-spacing: .18em; }

.auth-side h2 {
  font-size: clamp(40px, 5.5vw, 66px);
  line-height: 1;
  letter-spacing: -.055em;
}

.auth-side h2 span {
  background: linear-gradient(90deg, var(--primary), var(--purple));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.auth-side > p { max-width: 460px; margin-top: 22px; color: var(--text-soft); font-size: 16px; line-height: 1.7; }

.side-date { display: flex; align-items: center; gap: 22px; margin-top: 36px; }

.side-date > div:not(.side-date-line) {
  min-width: 84px;
  padding: 16px 20px;
  text-align: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow-sm);
}

.side-date strong { display: block; font-size: 34px; line-height: 1; letter-spacing: -.05em; }
.side-date span { display: block; margin-top: 5px; color: var(--text-muted); font-size: 10px; font-weight: 850; letter-spacing: .12em; }
.side-date-line { flex: 1; max-width: 90px; height: 2px; background: linear-gradient(90deg, var(--primary), var(--purple)); border-radius: 2px; }

.side-challenge {
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: 400px;
  margin-top: 28px;
  padding: 16px 20px;
  background: rgba(255, 255, 255, .8);
  border: 1px solid var(--line);
  border-radius: 18px;
}

.challenge-mini-number {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  color: #fff;
  background: var(--primary);
  border-radius: 14px;
  font-size: 20px;
  font-weight: 900;
}

.side-challenge span { display: block; color: var(--text-muted); font-size: 10px; font-weight: 850; letter-spacing: .1em; }
.side-challenge strong { display: block; margin-top: 2px; font-size: 15px; }

/* loading + error modal */

.auth-loading,
.custom-modal {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: grid;
  place-items: center;
  padding: 20px;
}

.auth-loading { background: rgba(247, 249, 254, .82); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }

.auth-loading-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 30px 40px;
  text-align: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
}

.auth-loading-card strong { font-size: 15px; }
.auth-loading-card span { color: var(--text-muted); font-size: 12px; }

.loading-spinner {
  width: 30px;
  height: 30px;
  margin-bottom: 10px;
  border: 3px solid #dfe4ed;
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 750ms linear infinite;
}

.custom-modal-backdrop { position: absolute; inset: 0; background: rgba(23, 32, 51, .45); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }

.custom-modal-card {
  position: relative;
  width: 100%;
  max-width: 400px;
  padding: 36px 30px 30px;
  text-align: center;
  background: #fff;
  border-radius: 24px;
  box-shadow: var(--shadow-lg);
}

.custom-modal-card .modal-close { position: absolute; top: 14px; right: 14px; }
.custom-modal-card h2 { margin: 6px 0 8px; font-size: 20px; letter-spacing: -.03em; }
.custom-modal-card p { color: var(--text-soft); font-size: 14px; line-height: 1.6; }

.modal-status-icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin: 0 auto 14px;
  color: var(--orange);
  background: var(--orange-soft);
  border-radius: 50%;
  font-size: 24px;
  font-weight: 900;
}

.modal-status-icon.error { color: var(--red); background: var(--red-soft); }
.modal-button { width: 100%; margin-top: 22px; }


/* =========================================================
   ABOUT (about.html)
   ========================================================= */

.about-page {
  width: auto;
  max-width: none;
  margin: 0;
  padding: 0;
  background: #fff;
}

.about-page .about-hero { max-width: none; }
.about-page .about-hero p.hero-description { margin: 24px auto 0; font-size: 18px; line-height: 1.65; }
.about-page .about-hero h1 .text-accent { color: var(--primary); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.nav-container { display: flex; align-items: center; justify-content: space-between; height: 72px; }

.brand { display: inline-flex; align-items: center; gap: 11px; }
.brand-text { font-size: 16px; font-weight: 850; letter-spacing: -.03em; }

.about-page .brand-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--purple));
  border-radius: 11px;
  font-weight: 900;
}

.main-nav { display: flex; align-items: center; gap: 28px; }
.main-nav > a:not(.nav-login-button) { color: var(--text-soft); font-size: 14px; font-weight: 700; transition: color var(--transition); }
.main-nav > a:not(.nav-login-button):hover,
.main-nav > a.active { color: var(--primary); }

.nav-login-button {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 20px;
  color: #fff;
  background: var(--text);
  border-radius: 10px;
  font-size: 13px;
  font-weight: 750;
}

.mobile-menu-button { display: none; flex-direction: column; justify-content: center; gap: 5px; width: 40px; height: 40px; padding: 0 10px; background: transparent; }
.mobile-menu-button span { height: 2px; background: var(--text); border-radius: 2px; transition: transform var(--transition), opacity var(--transition); }
.mobile-menu-button.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mobile-menu-button.open span:nth-child(2) { opacity: 0; }
.mobile-menu-button.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav { display: none; flex-direction: column; padding: 8px 5% 18px; border-top: 1px solid var(--line); background: #fff; }
.mobile-nav.open { display: flex; }
.mobile-nav a { padding: 13px 0; font-size: 15px; font-weight: 700; border-bottom: 1px solid var(--line); }

.section { padding: 88px 0; }
.centered { text-align: center; }
.text-accent { color: var(--primary); }

.about-page .section-heading { display: block; max-width: 680px; margin: 0 0 48px; }
.about-page .section-heading.centered { margin-left: auto; margin-right: auto; }

.about-hero {
  position: relative;
  padding: 100px 0 80px;
  background:
    radial-gradient(circle at 20% 10%, rgba(49, 91, 234, .10), transparent 45%),
    radial-gradient(circle at 85% 30%, rgba(118, 87, 217, .09), transparent 45%);
}

.about-hero-content { max-width: 780px; margin: 0 auto; text-align: center; }
.about-hero h1 { font-size: clamp(38px, 6vw, 68px); line-height: 1; letter-spacing: -.055em; }
.about-hero h1 .text-accent { display: block; }
.hero-description { max-width: 600px; margin: 24px auto 0; color: var(--text-soft); font-size: 18px; line-height: 1.65; }

.about-date-card {
  display: inline-flex;
  align-items: center;
  gap: 26px;
  margin-top: 40px;
  padding: 20px 32px;
  text-align: left;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow);
}

.small-label { display: block; margin-bottom: 4px; color: var(--text-muted); font-size: 10px; font-weight: 850; letter-spacing: .12em; }
.about-date-card strong { font-size: 18px; letter-spacing: -.03em; }
.date-arrow { color: var(--primary); font-size: 22px; font-weight: 800; }

.about-feature-grid,
.about-page .steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

.about-feature-card {
  padding: 30px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 22px;
  transition: transform var(--transition), box-shadow var(--transition);
}

.about-feature-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }

.feature-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 20px;
  color: var(--primary);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  font-size: 14px;
  font-weight: 900;
}

.about-feature-card h3 { font-size: 19px; letter-spacing: -.03em; }
.about-feature-card p { margin-top: 10px; color: var(--text-soft); font-size: 14px; line-height: 1.65; }

.about-challenge-card {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  align-items: center;
  gap: 48px;
  padding: 56px;
  color: #fff;
  background: linear-gradient(135deg, #172033, #26325a);
  border-radius: 32px;
}

.about-challenge-card .eyebrow { color: #9db3ff; }
.about-challenge-card h2 { font-size: clamp(28px, 4vw, 42px); line-height: 1.05; letter-spacing: -.045em; }
.about-challenge-card p { margin-top: 14px; color: rgba(255, 255, 255, .72); font-size: 15px; line-height: 1.7; }

.challenge-list { display: flex; flex-direction: column; gap: 12px; margin-top: 26px; }
.challenge-list-item { display: flex; align-items: center; gap: 12px; font-size: 15px; font-weight: 650; }

.check-mark {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  color: #fff;
  background: var(--green);
  border-radius: 50%;
  font-size: 12px;
  font-weight: 900;
}

.challenge-number-card {
  padding: 36px 24px;
  text-align: center;
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 26px;
}

.challenge-number-card > span {
  display: block;
  font-size: 96px;
  font-weight: 900;
  line-height: .9;
  letter-spacing: -.07em;
  background: linear-gradient(180deg, #c7d3ff, #6d85ee);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.challenge-number-card small { color: #9db3ff; font-size: 12px; font-weight: 850; letter-spacing: .2em; }
.challenge-number-line { height: 2px; margin: 22px auto; width: 56px; background: linear-gradient(90deg, var(--primary), var(--purple)); border-radius: 2px; }
.challenge-number-card p { margin: 0; color: rgba(255, 255, 255, .75); font-size: 14px; line-height: 1.7; }

.principles-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }

.principle-item {
  display: flex;
  gap: 20px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 20px;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.principle-item:hover { border-color: var(--line-dark); box-shadow: var(--shadow-sm); }
.principle-number { color: var(--primary); font-size: 28px; font-weight: 900; line-height: 1; letter-spacing: -.05em; opacity: .35; }
.principle-item h3 { font-size: 17px; letter-spacing: -.03em; }
.principle-item p { margin-top: 7px; color: var(--text-soft); font-size: 14px; line-height: 1.65; }

.about-how-section { background: var(--surface-soft); border-block: 1px solid var(--line); }

.friend-about-card {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  align-items: center;
  gap: 48px;
  padding: 52px;
  background: linear-gradient(135deg, var(--primary-soft), var(--purple-soft));
  border-radius: 32px;
}

.friend-about-card h2 { font-size: clamp(26px, 3.6vw, 38px); line-height: 1.08; letter-spacing: -.045em; }
.friend-about-card p { margin-top: 14px; color: var(--text-soft); font-size: 15px; line-height: 1.7; }

.friend-about-points { display: flex; flex-direction: column; gap: 10px; }
.friend-about-points > div { padding: 16px 20px; background: rgba(255, 255, 255, .8); border-radius: 16px; }
.friend-about-points strong { display: block; font-size: 14px; }
.friend-about-points span { color: var(--text-soft); font-size: 13px; }

.about-faq-section .faq-list { max-width: 780px; }
.faq-item { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; }
.faq-item[open] { border-color: var(--line-dark); box-shadow: var(--shadow-sm); }
.faq-item summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 24px; font-size: 15px; font-weight: 750; list-style: none; cursor: pointer; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary span { display: grid; place-items: center; width: 26px; height: 26px; color: var(--primary); background: var(--primary-soft); border-radius: 50%; transition: transform var(--transition); }
.faq-item[open] summary span { transform: rotate(45deg); }
.faq-item p { padding: 0 24px 22px; color: var(--text-soft); font-size: 14px; line-height: 1.7; }

.final-cta-card {
  padding: 80px 24px;
  text-align: center;
  background: radial-gradient(circle at 50% 0, var(--primary-soft), transparent 70%), var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 32px;
}

.final-cta-card h2 { font-size: clamp(32px, 5vw, 54px); line-height: 1.02; letter-spacing: -.05em; }
.final-cta-card p { max-width: 440px; margin: 18px auto 30px; color: var(--text-soft); font-size: 16px; }

.site-footer { padding: 36px 0; }
.footer-container { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer-brand p { margin-top: 6px; color: var(--text-muted); font-size: 12px; }


/* =========================================================
   PUBLIC PAGES — RESPONSIVE
   ========================================================= */

@media (max-width: 1050px) {
  .landing-hero { grid-template-columns: 1fr; gap: 48px; padding-top: 60px; }
  .preview-window { max-width: 560px; margin: 0 auto; transform: none; }
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .features-grid { grid-template-columns: 1fr 1fr; }
  .feature-large { grid-column: span 2; }
  .auth-main { grid-template-columns: 1fr; gap: 44px; max-width: 520px; }
  .auth-side { order: 2; text-align: center; }
  .auth-side > p, .side-challenge { margin-left: auto; margin-right: auto; }
  .side-date { justify-content: center; }
  .about-challenge-card, .friend-about-card { grid-template-columns: 1fr; padding: 38px 30px; }
}

@media (max-width: 780px) {
  .landing-nav-links { display: none; }
  .landing-nav .site-logo { flex: initial; }
  .landing-nav { justify-content: space-between; }
  .landing-section { padding: 64px 5%; }
  .challenge-section { grid-template-columns: 1fr; gap: 20px; margin: 0 16px 30px; padding: 36px 28px; text-align: center; }
  .challenge-section .challenge-content p { margin-inline: auto; }
  .main-nav { display: none; }
  .mobile-menu-button { display: flex; }
  .section { padding: 60px 0; }
  .about-feature-grid, .about-page .steps-grid, .principles-grid { grid-template-columns: 1fr; }
  .about-date-card { flex-direction: column; gap: 12px; text-align: center; }
  .date-arrow { transform: rotate(90deg); }
  .final-cta, .final-cta-card { margin-inline: 16px; padding: 56px 20px; }
  .landing-footer, .footer-container { flex-direction: column; text-align: center; }
}

@media (max-width: 560px) {
  .steps-grid, .features-grid { grid-template-columns: 1fr; }
  .feature-large { grid-column: auto; flex-direction: column; align-items: flex-start; gap: 16px; }
  .preview-body { grid-template-columns: 1fr; }
  .preview-ring { flex-direction: row; justify-content: center; }
  .auth-card-new { padding: 30px 22px 24px; }
  .hero-actions .primary-button, .hero-actions .secondary-button { flex: 1; justify-content: center; }
}


/* ---------- start date ---------- */

.profile-start {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  width: 100%;
  margin-top: 18px;
  padding: 16px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 14px;
}

.profile-start small { color: var(--text-muted); font-size: 9px; font-weight: 850; letter-spacing: .12em; }
.profile-start strong { margin-bottom: 8px; font-size: 14px; }
.profile-start .secondary-button { min-height: 36px; padding: 0 16px; font-size: 12px; }

.form-field input[type="date"] {
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--line-dark);
  border-radius: 12px;
}