/* =====================================================
   XHRIS USER APP — STYLES
   Matches the Xhris design system (dark theme)
   ===================================================== */

/* ── RESET ── */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}

body {
  font-family: "DM Sans", sans-serif;
  background: var(--ink);
  color: var(--snow);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ── VARIABLES ── */
:root {
  --flame: #e8420a;
  --flame-2: #ff6130;
  --flame-dark: #b33208;
  --flame-glow: rgba(232, 66, 10, 0.25);
  --flame-soft: rgba(232, 66, 10, 0.12);
  --ember: #c97a0a;
  --gold: #f0a320;
  --ink: #06090f;
  --navy: #0b1221;
  --navy-2: #101929;
  --navy-3: #16223a;
  --navy-4: #1e2c4a;
  --ash: #7a8fad;
  --fog: #b0becc;
  --snow: #eef2f8;
  --white: #ffffff;
  --success: #10b981;
  --warning: #f59e0b;
  --error: #ef4444;
  --info: #3b82f6;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 14px;
  --radius-xl: 20px;
  --radius-2xl: 28px;
  --radius-full: 9999px;
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 28px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.5);
  --shadow-flame: 0 8px 28px rgba(232, 66, 10, 0.28);
  --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

::selection {
  background: var(--flame);
  color: var(--white);
}
::-webkit-scrollbar {
  width: 4px;
}
::-webkit-scrollbar-track {
  background: var(--ink);
}
::-webkit-scrollbar-thumb {
  background: var(--flame);
  border-radius: var(--radius-full);
}

a {
  color: var(--flame);
  text-decoration: none;
}
a:hover {
  color: var(--flame-2);
}

/* ── PAGE LOADER ── */
.page-loader {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.4s;
  /* Failsafe: auto-dismiss after 7s even if JS fails to load */
  animation: loaderForceDismiss 0.5s ease forwards 7s;
}
.page-loader.hidden {
  opacity: 0;
  pointer-events: none;
}
@keyframes loaderForceDismiss {
  to {
    opacity: 0;
    visibility: hidden;
  }
}
.loader-logo {
  font-family: "Bebas Neue", sans-serif;
  font-size: 48px;
  letter-spacing: 2px;
  color: var(--snow);
}
.loader-logo b {
  color: var(--flame);
}
.loader-bar {
  width: 120px;
  height: 3px;
  background: var(--navy-3);
  border-radius: 3px;
  margin-top: 16px;
  overflow: hidden;
}
.loader-bar::after {
  content: "";
  display: block;
  width: 40%;
  height: 100%;
  background: var(--flame);
  border-radius: 3px;
  animation: loaderSlide 1s ease infinite;
}
@keyframes loaderSlide {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(350%);
  }
}

/* ── AUTH LAYOUT ── */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  position: relative;
  background: var(--ink);
}
.auth-page .grid-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  animation: gridSlide 20s linear infinite;
}
@keyframes gridSlide {
  0% {
    background-position: 0 0;
  }
  100% {
    background-position: 0 60px;
  }
}
.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
}
.glow-orb-1 {
  width: 400px;
  height: 400px;
  background: rgba(232, 66, 10, 0.12);
  top: -100px;
  right: -100px;
}
.glow-orb-2 {
  width: 300px;
  height: 300px;
  background: rgba(59, 130, 246, 0.08);
  bottom: -50px;
  left: -50px;
}

.auth-card {
  position: relative;
  z-index: 1;
  background: var(--navy);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius-xl);
  padding: 40px;
  width: 100%;
  max-width: 440px;
  box-shadow: var(--shadow-lg);
}
.auth-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--flame), transparent);
  border-radius: 0 0 4px 4px;
}
.auth-header {
  text-align: center;
  margin-bottom: 32px;
}
.auth-icon {
  font-size: 40px;
  margin-bottom: 12px;
}
.auth-title {
  font-family: "Bebas Neue", sans-serif;
  font-size: 32px;
  letter-spacing: 2px;
  color: var(--snow);
}
.auth-title b {
  color: var(--flame);
}
.auth-subtitle {
  color: var(--ash);
  font-size: 14px;
  margin-top: 4px;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.input-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.input-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--fog);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}
.input-icon {
  position: absolute;
  left: 14px;
  font-size: 16px;
  z-index: 1;
  opacity: 0.5;
  transition: opacity var(--transition-fast);
}
.input-field {
  width: 100%;
  padding: 14px 14px 14px 44px;
  background: var(--navy-2);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius-md);
  color: var(--snow);
  font-family: "DM Sans", sans-serif;
  font-size: 15px;
  transition:
    border-color var(--transition-fast),
    box-shadow var(--transition-fast);
  outline: none;
}
.input-field:focus {
  border-color: var(--flame);
  box-shadow: 0 0 0 3px var(--flame-soft);
}
.input-field:focus ~ .input-icon,
.input-field:focus + .input-icon {
  opacity: 1;
}
.input-field::placeholder {
  color: var(--ash);
  opacity: 0.6;
}
.password-toggle {
  position: absolute;
  right: 12px;
  background: none;
  border: none;
  font-size: 16px;
  cursor: pointer;
  opacity: 0.5;
  transition: opacity var(--transition-fast);
}
.password-toggle:hover {
  opacity: 1;
}

.options-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
}
.remember-checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  color: var(--ash);
  font-size: 13px;
}
.remember-checkbox input {
  display: none;
}
.checkbox-custom {
  width: 18px;
  height: 18px;
  border: 2px solid var(--ash);
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}
.remember-checkbox input:checked + .checkbox-custom {
  background: var(--flame);
  border-color: var(--flame);
}
.remember-checkbox input:checked + .checkbox-custom::after {
  content: "✓";
  color: white;
  font-size: 11px;
  font-weight: 700;
}

.auth-link {
  color: var(--flame);
  font-size: 13px;
  font-weight: 500;
}
.auth-link:hover {
  color: var(--flame-2);
  text-decoration: underline;
}

.auth-footer {
  text-align: center;
  margin-top: 24px;
  color: var(--ash);
  font-size: 12px;
}
.auth-footer a {
  color: var(--flame);
}

.auth-divider {
  text-align: center;
  color: var(--ash);
  font-size: 13px;
  margin: 4px 0;
}

/* OTP Input */
.otp-inputs {
  display: flex;
  gap: 10px;
  justify-content: center;
}
.otp-input {
  width: 52px;
  height: 56px;
  text-align: center;
  font-size: 24px;
  font-weight: 700;
  background: var(--navy-2);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius-md);
  color: var(--snow);
  outline: none;
  transition:
    border-color var(--transition-fast),
    box-shadow var(--transition-fast);
}
.otp-input:focus {
  border-color: var(--flame);
  box-shadow: 0 0 0 3px var(--flame-soft);
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border: none;
  border-radius: var(--radius-md);
  font-family: "DM Sans", sans-serif;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}
.btn-primary {
  background: var(--flame);
  color: var(--white);
  width: 100%;
  box-shadow: var(--shadow-flame);
}
.btn-primary:hover {
  background: var(--flame-2);
  transform: translateY(-1px);
  box-shadow: 0 12px 36px rgba(232, 66, 10, 0.4);
}
.btn-primary:active {
  transform: translateY(0);
}
.btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}
.btn-outline {
  background: transparent;
  color: var(--flame);
  border: 1px solid var(--flame);
  width: 100%;
}
.btn-outline:hover {
  background: var(--flame-soft);
}
.btn-success {
  background: var(--success);
  color: var(--white);
}
.btn-success:hover {
  opacity: 0.9;
}
.btn-danger {
  background: var(--error);
  color: var(--white);
}
.btn-danger:hover {
  opacity: 0.9;
}
.btn-sm {
  padding: 8px 16px;
  font-size: 13px;
}
.btn-spinner {
  animation: spin 1s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ── APP LAYOUT ── */
.app-layout {
  display: flex;
  min-height: 100vh;
}

/* Sidebar */
.sidebar {
  width: 260px;
  background: var(--navy);
  border-right: 1px solid rgba(255, 255, 255, 0.07);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 100;
  transition: transform var(--transition-base);
}
.sidebar-header {
  padding: 24px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
.sidebar-logo {
  font-family: "Bebas Neue", sans-serif;
  font-size: 28px;
  letter-spacing: 2px;
  color: var(--snow);
}
.sidebar-logo b {
  color: var(--flame);
}
.sidebar-nav {
  flex: 1;
  padding: 16px 12px;
  overflow-y: auto;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  color: var(--ash);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast);
  margin-bottom: 4px;
  text-decoration: none;
}
.nav-item:hover {
  background: rgba(255, 255, 255, 0.04);
  color: var(--snow);
}
.nav-item.active {
  background: var(--flame-soft);
  color: var(--flame);
  font-weight: 600;
}
.nav-item .nav-icon {
  font-size: 18px;
  width: 24px;
  text-align: center;
}
.nav-badge {
  margin-left: auto;
  background: var(--flame);
  color: white;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: var(--radius-full);
  min-width: 20px;
  text-align: center;
}
.sidebar-footer {
  padding: 16px 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

/* Main content */
.main-content {
  margin-left: 260px;
  flex: 1;
  min-height: 100vh;
}

/* Top header */
.top-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(6, 9, 15, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  padding: 16px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.header-left {
  display: flex;
  align-items: center;
  gap: 16px;
}
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--snow);
  font-size: 24px;
  cursor: pointer;
}
.page-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--snow);
}
.header-right {
  display: flex;
  align-items: center;
  gap: 16px;
}
.header-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--flame);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  color: white;
  cursor: pointer;
}
.header-user-name {
  font-size: 14px;
  font-weight: 500;
  color: var(--fog);
}

/* Page container */
.page-content {
  padding: 32px;
}

/* ── CARDS ── */
.card {
  background: var(--navy-2);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius-lg);
  padding: 24px;
}
.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.card-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--snow);
  display: flex;
  align-items: center;
  gap: 8px;
}
.card-title .icon {
  font-size: 18px;
}

/* Stat cards row */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}
.stat-card {
  background: var(--navy-2);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius-lg);
  padding: 20px;
  position: relative;
  overflow: hidden;
}
.stat-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--flame), var(--flame-2));
}
.stat-card.green::before {
  background: linear-gradient(90deg, var(--success), #34d399);
}
.stat-card.blue::before {
  background: linear-gradient(90deg, var(--info), #60a5fa);
}
.stat-card.gold::before {
  background: linear-gradient(90deg, var(--warning), #fbbf24);
}
.stat-label {
  font-size: 12px;
  color: var(--ash);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}
.stat-value {
  font-size: 28px;
  font-weight: 800;
  color: var(--snow);
  margin-top: 4px;
}
.stat-sub {
  font-size: 12px;
  color: var(--ash);
  margin-top: 4px;
}
.stat-icon {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 28px;
  opacity: 0.15;
}

/* ── GOALS ── */
.goals-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
}
.goal-card {
  background: var(--navy-2);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius-lg);
  overflow: hidden;
  max-width: 480px;
  transition:
    border-color var(--transition-fast),
    transform var(--transition-fast);
}
.goal-card:hover {
  border-color: rgba(255, 255, 255, 0.12);
  transform: translateY(-2px);
}
.goal-card-cover {
  width: 100%;
  height: 120px;
  object-fit: cover;
  display: block;
}
.goal-card-body {
  padding: 20px;
}
.goal-card:not(:has(.goal-card-cover)) .goal-card-body,
.goal-card:not(:has(.goal-card-cover)) {
  padding: 20px;
}
.goal-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 12px;
}
.goal-type-badge {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 3px 10px;
  border-radius: var(--radius-full);
}
.badge-daily {
  background: var(--flame-soft);
  color: var(--flame);
}
.badge-weekly {
  background: rgba(59, 130, 246, 0.12);
  color: var(--info);
}
.badge-custom {
  background: rgba(240, 163, 32, 0.12);
  color: var(--warning);
}
.goal-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--snow);
  margin-bottom: 6px;
}
.goal-desc {
  font-size: 13px;
  color: var(--ash);
  margin-bottom: 12px;
  line-height: 1.5;
}
.goal-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 12px;
  color: var(--ash);
}
.goal-streak {
  color: var(--flame);
  font-weight: 700;
}
.goal-status {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
}
.status-pending {
  background: rgba(245, 158, 11, 0.12);
  color: var(--warning);
}
.status-active {
  background: rgba(59, 130, 246, 0.12);
  color: var(--info);
}
.status-completed {
  background: rgba(16, 185, 129, 0.12);
  color: var(--success);
}
.status-missed {
  background: rgba(239, 68, 68, 0.12);
  color: var(--error);
}
.status-rejected {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
}
.goal-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}
.goal-btn {
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all var(--transition-fast);
}
.goal-btn-complete {
  background: var(--success);
  color: white;
}
.goal-btn-complete:hover {
  opacity: 0.85;
}
.goal-btn-edit {
  background: var(--navy-3);
  color: var(--fog);
  border: 1px solid rgba(255, 255, 255, 0.07);
}
.goal-btn-edit:hover {
  background: var(--navy-4);
}
.goal-btn-delete {
  background: rgba(239, 68, 68, 0.12);
  color: var(--error);
}
.goal-btn-delete:hover {
  background: rgba(239, 68, 68, 0.2);
}
.goal-btn-share {
  background: rgba(59, 130, 246, 0.12);
  color: #3b82f6;
}
.goal-btn-share:hover {
  background: rgba(59, 130, 246, 0.22);
}

/* ── PARTNERS ── */
.partner-card {
  background: var(--navy-2);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius-lg);
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: border-color var(--transition-fast);
}
.partner-card:hover {
  border-color: rgba(255, 255, 255, 0.12);
}
.partner-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  flex-shrink: 0;
}
.partner-avatar.blue {
  background: rgba(59, 130, 246, 0.15);
  color: var(--info);
}
.partner-avatar.orange {
  background: rgba(245, 158, 11, 0.15);
  color: var(--warning);
}
.partner-info {
  flex: 1;
  min-width: 0;
}
.partner-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--snow);
  display: flex;
  align-items: center;
  gap: 8px;
}
.partner-email {
  font-size: 12px;
  color: var(--ash);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.partner-badge {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  letter-spacing: 0.3px;
}
.badge-active {
  background: rgba(16, 185, 129, 0.15);
  color: var(--success);
}
.badge-pending {
  background: rgba(245, 158, 11, 0.15);
  color: var(--warning);
}
.partner-actions {
  display: flex;
  gap: 6px;
}

/* Incoming request card */
.request-card {
  background: var(--navy-2);
  border: 1px solid rgba(245, 158, 11, 0.2);
  border-radius: var(--radius-lg);
  padding: 16px;
  margin-bottom: 12px;
}
.request-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.request-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(245, 158, 11, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}
.request-info {
  flex: 1;
}
.request-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--snow);
}
.request-email {
  font-size: 12px;
  color: var(--ash);
}
.request-label {
  font-size: 11px;
  color: var(--warning);
  margin-top: 2px;
}
.request-actions {
  display: flex;
  gap: 8px;
}

/* ── PROFILE ── */
.profile-banner {
  height: 160px;
  background: var(--flame);
  border-radius: var(--radius-lg);
  position: relative;
  overflow: visible;
  margin-bottom: 60px;
}
.profile-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  pointer-events: none;
}
.profile-banner .deco-circle {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}
.profile-avatar-wrap {
  position: absolute;
  bottom: -48px;
  left: 50%;
  transform: translateX(-50%);
}
.avatar-upload-btn {
  position: absolute;
  bottom: 0;
  right: -4px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--flame);
  border: 3px solid var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition:
    transform 0.15s,
    background 0.15s;
}
.avatar-upload-btn:hover {
  transform: scale(1.1);
  background: var(--flame-2, #d43a08);
}
.profile-avatar-large {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  border: 4px solid var(--ink);
  background: var(--flame);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  font-weight: 800;
  color: white;
}
.profile-avatar-large img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}
.profile-info {
  text-align: center;
  margin-bottom: 32px;
}
.profile-name {
  font-size: 22px;
  font-weight: 700;
  color: var(--snow);
}
.profile-email {
  font-size: 14px;
  color: var(--ash);
  margin-top: 2px;
}
.profile-career {
  display: inline-block;
  margin-top: 8px;
  background: var(--flame-soft);
  color: var(--flame);
  padding: 4px 14px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 600;
}
.profile-bio {
  color: var(--ash);
  font-size: 14px;
  margin-top: 8px;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

/* Plan card */
.plan-card {
  background: var(--navy-2);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 24px;
}
.plan-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.plan-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--snow);
  display: flex;
  align-items: center;
  gap: 8px;
}
.plan-badge {
  background: var(--flame-soft);
  color: var(--flame);
  font-size: 11px;
  font-weight: 700;
  padding: 3px 12px;
  border-radius: var(--radius-full);
}
.plan-stats {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
  font-size: 14px;
}
.plan-stats .label {
  color: var(--ash);
  font-size: 12px;
}
.plan-stats .value {
  font-weight: 700;
  color: var(--snow);
  font-size: 18px;
}
.plan-stats .value.green {
  color: var(--success);
}
.plan-bar {
  height: 8px;
  background: var(--navy-3);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-bottom: 16px;
}
.plan-bar-fill {
  height: 100%;
  border-radius: var(--radius-full);
  background: var(--flame);
  transition: width var(--transition-base);
}
.plan-bar-fill.danger {
  background: var(--error);
}

/* ── STATS ── */
.stats-number {
  font-family: "Bebas Neue", sans-serif;
  font-size: 48px;
  color: var(--snow);
  line-height: 1;
}
.stats-number.flame {
  color: var(--flame);
}

/* ── MODALS ── */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-base);
}
.modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}
.modal {
  background: var(--navy);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius-xl);
  padding: 32px;
  width: 100%;
  max-width: 480px;
  transform: translateY(20px);
  transition: transform var(--transition-base);
  max-height: 90vh;
  overflow-y: auto;
}
.modal-overlay.open .modal {
  transform: translateY(0);
}
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}
.modal-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--snow);
}
.modal-close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--navy-2);
  border: none;
  color: var(--ash);
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}
.modal-close:hover {
  background: var(--navy-3);
  color: var(--snow);
}
.modal-actions {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}
.modal-actions .btn {
  flex: 1;
}

/* ── EMPTY STATE ── */
.empty-state {
  text-align: center;
  padding: 48px 24px;
  background: var(--navy-2);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius-lg);
}
.empty-icon {
  font-size: 40px;
  opacity: 0.4;
  margin-bottom: 12px;
}
.empty-text {
  color: var(--ash);
  font-size: 14px;
  line-height: 1.6;
}

/* ── TOAST ── */
.toast {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 2000;
  background: var(--navy-2);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius-md);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--snow);
  box-shadow: var(--shadow-lg);
  transform: translateX(120%);
  transition: transform var(--transition-base);
}
.toast.show {
  transform: translateX(0);
}
.toast.success {
  border-left: 3px solid var(--success);
}
.toast.error {
  border-left: 3px solid var(--error);
}
.toast.warning {
  border-left: 3px solid var(--warning);
}
.toast.info {
  border-left: 3px solid var(--info);
}

/* ── MOBILE OVERLAY ── */
.sidebar-overlay {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-base);
}
.sidebar-overlay.open {
  opacity: 1;
  pointer-events: all;
}

/* ── SECTION LABEL ── */
.section-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--warning);
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}

/* ── SETTINGS LIST ── */
.settings-list {
  background: var(--navy-2);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.settings-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  cursor: pointer;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  transition: background var(--transition-fast);
}
.settings-row:last-child {
  border-bottom: none;
}
.settings-row:hover {
  background: rgba(255, 255, 255, 0.02);
}
.settings-row .icon {
  font-size: 18px;
  width: 24px;
  text-align: center;
}
.settings-row .label {
  flex: 1;
  font-size: 14px;
  font-weight: 500;
  color: var(--snow);
}
.settings-row .chevron {
  color: var(--ash);
  font-size: 14px;
}

/* ── LOGOUT BTN ── */
.logout-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 14px;
  border: 1px solid rgba(239, 68, 68, 0.3);
  background: rgba(239, 68, 68, 0.08);
  border-radius: var(--radius-lg);
  color: var(--error);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}
.logout-btn:hover {
  background: rgba(239, 68, 68, 0.15);
}

/* ── SIDEBAR SECTIONS ── */
.nav-section {
  padding: 0 16px;
  margin-top: 20px;
  margin-bottom: 8px;
}
.nav-section:first-child {
  margin-top: 0;
}
.nav-section-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--ash);
  opacity: 0.6;
}
.nav-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.05);
  margin: 8px 12px;
}
.sidebar-plan {
  margin: 0 12px 8px;
  padding: 12px;
  background: var(--navy-2);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius-md);
  text-align: center;
}
.sidebar-plan-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--ash);
}
.sidebar-plan-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--flame);
  margin-top: 2px;
}

/* ── WELCOME CARD ── */
.welcome-card {
  background: linear-gradient(135deg, var(--navy-2), var(--navy-3));
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius-xl);
  padding: 32px;
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
}
.welcome-card::before {
  content: "";
  position: absolute;
  top: -60px;
  right: -60px;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, var(--flame-soft), transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.welcome-greeting {
  font-size: 14px;
  color: var(--ash);
  margin-bottom: 4px;
}
.welcome-name {
  font-family: "Bebas Neue", sans-serif;
  font-size: 32px;
  letter-spacing: 1px;
  color: var(--snow);
  line-height: 1.1;
}
.welcome-name b {
  color: var(--flame);
}
.welcome-sub {
  font-size: 14px;
  color: var(--fog);
  margin-top: 8px;
}
.welcome-streak {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  padding: 6px 14px;
  background: var(--flame-soft);
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 600;
  color: var(--flame);
}

/* ── SECTION HEADER ── */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  margin-top: 8px;
}
.section-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--snow);
  display: flex;
  align-items: center;
  gap: 8px;
}
.section-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--flame);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: color var(--transition-fast);
}
.section-link:hover {
  color: var(--flame-2);
}

/* ── PRESET / RECOMMENDED GOAL CARDS ── */
.preset-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}
.preset-card {
  background: var(--navy-2);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition:
    border-color var(--transition-fast),
    transform var(--transition-fast);
  display: flex;
  flex-direction: column;
}
.preset-card:hover {
  border-color: rgba(232, 66, 10, 0.3);
  transform: translateY(-2px);
}
.preset-card.already-started {
  opacity: 0.5;
  pointer-events: none;
}
.preset-cover-img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  display: block;
}
.preset-card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.preset-emoji {
  font-size: 28px;
  margin-bottom: 10px;
}
.preset-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--snow);
  margin-bottom: 6px;
}
.preset-desc {
  font-size: 13px;
  color: var(--ash);
  line-height: 1.5;
  flex: 1;
  margin-bottom: 14px;
}
.preset-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: var(--ash);
  margin-bottom: 14px;
}
.preset-start-btn {
  padding: 8px 16px;
  border-radius: var(--radius-md);
  background: var(--flame);
  color: white;
  border: none;
  font-family: "DM Sans", sans-serif;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  align-self: flex-start;
}
.preset-start-btn:hover {
  background: var(--flame-2);
  box-shadow: 0 4px 16px rgba(232, 66, 10, 0.3);
}
.preset-started-badge {
  font-size: 12px;
  color: var(--success);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
}
.preset-participants {
  color: #3b82f6;
  font-weight: 600;
}

/* ── COMMUNITY CARDS ── */
.community-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
}
.community-card {
  background: var(--navy-2);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius-lg);
  padding: 20px;
  transition: border-color var(--transition-fast);
}
.community-card:hover {
  border-color: rgba(59, 130, 246, 0.3);
}
.community-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.community-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--navy-3), var(--navy-4));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}
.community-user {
  font-size: 13px;
  color: var(--ash);
}
.community-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--snow);
  margin-bottom: 6px;
}
.community-desc {
  font-size: 13px;
  color: var(--ash);
  line-height: 1.5;
  margin-bottom: 12px;
}
.community-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 12px;
  color: var(--ash);
}
.community-streak {
  color: var(--flame);
  font-weight: 700;
}

/* ── PAGINATION ── */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
}
.page-btn {
  padding: 8px 14px;
  border-radius: var(--radius-md);
  background: var(--navy-2);
  border: 1px solid rgba(255, 255, 255, 0.07);
  color: var(--fog);
  font-family: "DM Sans", sans-serif;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}
.page-btn:hover {
  background: var(--navy-3);
  color: var(--snow);
}
.page-btn.active {
  background: var(--flame);
  color: white;
  border-color: var(--flame);
}
.page-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.page-info {
  font-size: 13px;
  color: var(--ash);
  padding: 0 8px;
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .sidebar {
    transform: translateX(-100%);
  }
  .sidebar.open {
    transform: translateX(0);
  }
  .main-content {
    margin-left: 0;
  }
  .menu-toggle {
    display: block;
  }
  .top-header {
    padding: 12px 16px;
  }
  .page-content {
    padding: 16px;
  }
  .stat-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .goals-grid {
    grid-template-columns: 1fr;
  }
  .otp-input {
    width: 44px;
    height: 48px;
    font-size: 20px;
  }
  .auth-card {
    padding: 28px 20px;
  }
  .profile-banner {
    height: 120px;
  }
  .modal {
    padding: 24px 20px;
    margin: 16px;
  }
  .welcome-card {
    padding: 24px 20px;
  }
  .welcome-name {
    font-size: 26px;
  }
  .preset-grid {
    grid-template-columns: 1fr;
  }
  .community-grid {
    grid-template-columns: 1fr;
  }
}
/* ── NOTIFICATION BELL ── */
.notif-wrapper {
  position: relative;
}
.notif-bell {
  position: relative;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.notif-bell svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: var(--ash);
  stroke-width: 2;
  transition: stroke 0.2s;
}
.notif-bell:hover svg {
  stroke: var(--snow);
}
.notif-badge {
  position: absolute;
  top: 0;
  right: 0;
  min-width: 16px;
  height: 16px;
  background: var(--flame);
  color: white;
  font-size: 10px;
  font-weight: 700;
  border-radius: 99px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  line-height: 1;
}
.notif-badge.hidden {
  display: none;
}

.notif-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 360px;
  background: var(--navy-2);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
  z-index: 1000;
  display: none;
  flex-direction: column;
  overflow: hidden;
}
.notif-dropdown.open {
  display: flex;
}
.notif-dropdown-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
.notif-dropdown-header h4 {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  color: var(--snow);
}
.notif-mark-all {
  background: none;
  border: none;
  color: var(--flame);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
}
.notif-mark-all:hover {
  text-decoration: underline;
}
.notif-list {
  flex: 1;
  max-height: 420px;
  overflow-y: auto;
  padding: 4px 0;
}
.notif-item {
  display: flex;
  gap: 12px;
  padding: 12px 16px;
  cursor: pointer;
  transition: background 0.15s;
  align-items: flex-start;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
.notif-item:hover {
  background: rgba(255, 255, 255, 0.04);
}
.notif-item.unread {
  background: rgba(232, 66, 10, 0.06);
}
.notif-icon {
  width: 32px;
  height: 32px;
  min-width: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}
.notif-body {
  flex: 1;
  min-width: 0;
}
.notif-title {
  font-size: 13px;
  color: var(--snow);
  margin: 0 0 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.notif-item.unread .notif-title {
  font-weight: 700;
}
.notif-item.expanded .notif-title {
  white-space: normal;
  overflow: visible;
  text-overflow: unset;
  font-weight: 700;
}
.notif-msg {
  font-size: 12px;
  color: var(--ash);
  margin: 0;
  max-height: 3em;
  overflow: hidden;
  line-height: 1.5;
  transition:
    max-height 0.25s ease,
    color 0.15s ease;
}
.notif-item.expanded .notif-msg {
  max-height: 600px; /* large enough for any message */
  color: var(--fog);
}
.notif-item.expanded {
  background: rgba(232, 66, 10, 0.06);
  border-left: 2px solid var(--flame);
}
.notif-time {
  font-size: 11px;
  color: var(--fog);
  margin-top: 4px;
}
.notif-dot {
  width: 8px;
  height: 8px;
  min-width: 8px;
  border-radius: 50%;
  background: var(--flame);
  margin-top: 6px;
}
.notif-dot.read {
  background: transparent;
}
.notif-empty {
  text-align: center;
  padding: 32px 16px;
  color: var(--ash);
  font-size: 13px;
}
.notif-load-more {
  display: block;
  width: 100%;
  padding: 10px;
  background: none;
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  color: var(--flame);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
}
.notif-load-more:hover {
  background: rgba(255, 255, 255, 0.03);
}

@media (max-width: 480px) {
  .stat-grid {
    grid-template-columns: 1fr;
  }
  .header-user-name {
    display: none;
  }
  .notif-dropdown {
    position: fixed;
    top: 60px;
    left: 12px;
    right: 12px;
    width: auto;
  }
}

/* ── Daily Quote Card ── */
.quote-card {
  background: linear-gradient(135deg, rgba(232, 66, 10, 0.08) 0%, rgba(16, 25, 41, 0.6) 100%);
  border: 1px solid rgba(232, 66, 10, 0.18);
  border-left: 3px solid var(--flame);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  margin-bottom: 20px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  animation: fadeUp 0.6s ease both;
}
.quote-icon {
  color: var(--flame);
  font-size: 24px;
  line-height: 1;
  flex-shrink: 0;
  margin-top: 2px;
}
.quote-text {
  font-size: 14px;
  color: var(--fog);
  line-height: 1.6;
  font-style: italic;
  flex: 1;
}
.quote-author {
  font-size: 12px;
  color: var(--ash);
  margin-top: 6px;
  font-style: normal;
  font-weight: 600;
}

/* ── Floating Chat FAB ── */
#xhrisChatFab {
  position: fixed;
  bottom: 28px;
  right: 24px;
  z-index: 9999;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.fab-pulse {
  position: absolute;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(232, 66, 10, 0.25);
  animation: fabPulse 2.2s ease-out infinite;
  pointer-events: none;
}
@keyframes fabPulse {
  0% {
    transform: scale(1);
    opacity: 0.8;
  }
  70% {
    transform: scale(1.6);
    opacity: 0;
  }
  100% {
    transform: scale(1.6);
    opacity: 0;
  }
}
.fab-inner {
  position: relative;
  width: 52px;
  height: 52px;
  background: var(--flame);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(232, 66, 10, 0.45);
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}
#xhrisChatFab:hover .fab-inner,
#xhrisChatFab.fab-show-label .fab-inner {
  width: auto;
  border-radius: 50px;
  padding: 0 20px 0 16px;
  gap: 8px;
}
.fab-x {
  font-family: "Bebas Neue", sans-serif;
  font-size: 22px;
  color: white;
  line-height: 1;
  flex-shrink: 0;
}
.fab-label {
  font-size: 13px;
  font-weight: 700;
  color: white;
  white-space: nowrap;
  max-width: 0;
  overflow: hidden;
  opacity: 0;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
#xhrisChatFab:hover .fab-label,
#xhrisChatFab.fab-show-label .fab-label {
  max-width: 140px;
  opacity: 1;
}
@media (max-width: 480px) {
  #xhrisChatFab {
    bottom: 20px;
    right: 16px;
  }
}

/* ── Tour Guide ── */
#tourOverlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.tour-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 9, 15, 0.96);
  backdrop-filter: blur(8px);
}
.tour-box {
  position: relative;
  background: var(--navy-2);
  border: 1px solid rgba(232, 66, 10, 0.25);
  border-radius: 20px;
  padding: 32px 28px 24px;
  max-width: 380px;
  width: 100%;
  box-shadow:
    0 24px 64px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(232, 66, 10, 0.1);
  text-align: center;
}
.tour-box-enter {
  animation: tourEnter 0.35s cubic-bezier(0.4, 0, 0.2, 1) both;
}
@keyframes tourEnter {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
.tour-skip {
  position: absolute;
  top: 14px;
  right: 16px;
  background: none;
  border: none;
  color: var(--ash);
  font-size: 12px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
  transition: color 0.2s;
}
.tour-skip:hover {
  color: var(--flame);
}
.tour-step-count {
  font-size: 11px;
  color: var(--ash);
  margin-bottom: 14px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.tour-icon {
  font-size: 36px;
  margin-bottom: 14px;
  color: var(--flame);
}
.tour-title {
  font-family: "Bebas Neue", sans-serif;
  font-size: 26px;
  color: var(--snow);
  letter-spacing: 0.5px;
  margin-bottom: 10px;
}
.tour-body {
  font-size: 14px;
  color: var(--ash);
  line-height: 1.7;
  margin-bottom: 24px;
}
.tour-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
}
.tour-btn {
  border: none;
  border-radius: 50px;
  padding: 10px 24px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  font-family: "DM Sans", sans-serif;
  transition: all 0.2s;
}
.tour-btn-ghost {
  background: rgba(255, 255, 255, 0.06);
  color: var(--ash);
}
.tour-btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--snow);
}
.tour-btn-primary {
  background: var(--flame);
  color: white;
  box-shadow: 0 4px 16px rgba(232, 66, 10, 0.35);
}
.tour-btn-primary:hover {
  background: var(--flame-2);
  transform: translateY(-1px);
}
.tour-highlight {
  outline: 2px solid var(--flame) !important;
  outline-offset: 4px;
  border-radius: 8px;
  position: relative;
  z-index: 100000;
}

/* ── Goal Phases ─────────────────────────────────── */
.phase-count-btn {
  padding: 6px 14px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.1);
  background: transparent;
  color: var(--ash);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.phase-count-btn.active,
.phase-count-btn:hover {
  border-color: var(--flame);
  background: rgba(232,66,10,0.12);
  color: var(--flame);
}
.phase-editor {
  background: rgba(16,25,41,0.8);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 10px;
  padding: 14px;
  margin-bottom: 10px;
}
.phase-editor .phase-num {
  width: 24px; height: 24px;
  border-radius: 50%;
  background: rgba(232,66,10,0.15);
  border: 1.5px solid var(--flame);
  color: var(--flame);
  font-size: 11px;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.phase-track-btn {
  padding: 6px 14px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.1);
  background: transparent;
  color: var(--ash);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.phase-track-btn.active {
  border-color: var(--flame);
  background: rgba(232,66,10,0.12);
  color: var(--flame);
}
