/* =========================
   SETTINGS PANEL — NeuroMedit
   Calm Technology · Cognitive Comfort
========================= */

/* =========================
   FLOATING ACTION BUTTON
========================= */
.settings-fab {
  position: fixed;
  bottom: 1.75rem;
  right: 1.75rem;
  z-index: 55;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  backdrop-filter: blur(18px) saturate(130%);
  -webkit-backdrop-filter: blur(18px) saturate(130%);
  box-shadow: var(--shadow-soft);
  color: var(--text-secondary);
  cursor: pointer;
  appearance: none;
  transition:
    transform 0.34s cubic-bezier(0.22, 1, 0.36, 1),
    background-color 0.3s ease,
    box-shadow 0.3s ease,
    color 0.3s ease,
    opacity 0.4s ease;
}

.settings-fab:hover {
  transform: translateY(-2px) scale(1.04);
  background: var(--surface-strong);
  box-shadow: var(--shadow-card);
  color: var(--text-primary);
}

.settings-fab:active {
  transform: translateY(0) scale(0.97);
}

.settings-fab:focus-visible {
  outline: 2px solid var(--header-focus, var(--accent, #8aa5a0));
  outline-offset: 3px;
}

.settings-fab-icon {
  width: 22px;
  height: 22px;
  display: block;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.settings-fab:hover .settings-fab-icon {
  transform: rotate(45deg);
}

/* Hide FAB when settings panel is open */
body.settings-open .settings-fab {
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px) scale(0.9);
}

/* =========================
   OVERLAY BACKDROP
========================= */
.settings-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--text-primary) 18%, transparent);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.42s ease;
}

.settings-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

/* =========================
   PANEL SHELL
========================= */
.settings-panel {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 101;
  width: min(96vw, 520px);
  display: flex;
  flex-direction: column;
  border-left: 1px solid var(--line);
  border-radius: var(--radius-lg, 28px) 0 0 var(--radius-lg, 28px);
  background:
    linear-gradient(145deg, var(--surface-strong), var(--surface));
  backdrop-filter: blur(28px) saturate(140%) brightness(1.02);
  -webkit-backdrop-filter: blur(28px) saturate(140%) brightness(1.02);
  box-shadow:
    -24px 0 72px color-mix(in srgb, var(--text-primary) 8%, transparent),
    inset 1px 0 0 var(--line);
  color: var(--text-primary);
  opacity: 0;
  transform: translateX(32px);
  pointer-events: none;
  overflow: hidden;
  transition:
    transform 0.52s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.38s ease;
}

.settings-panel.is-open {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

/* =========================
   PANEL HEADER
========================= */
.settings-header {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.5rem 1.75rem 1rem;
}

.settings-title {
  font-size: 1.18rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--text-primary);
}

.settings-close {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text-secondary);
  cursor: pointer;
  transition:
    background-color 0.24s ease,
    color 0.24s ease,
    transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.settings-close:hover {
  background: var(--surface-strong);
  color: var(--text-primary);
  transform: scale(1.06);
}

.settings-close:active {
  transform: scale(0.95);
}

.settings-close:focus-visible {
  outline: 2px solid var(--header-focus, var(--accent, #8aa5a0));
  outline-offset: 2px;
}

.settings-close-icon {
  width: 16px;
  height: 16px;
  display: block;
}

/* =========================
   SCROLLABLE CONTENT
========================= */
.settings-body {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 0.5rem 1.75rem 2.5rem;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
}

.settings-body::-webkit-scrollbar {
  width: 5px;
}

.settings-body::-webkit-scrollbar-track {
  background: transparent;
}

.settings-body::-webkit-scrollbar-thumb {
  background: var(--line);
  border-radius: 999px;
}

/* =========================
   SECTIONS
========================= */
.settings-section {
  padding: 1.25rem 0;
}

.settings-section + .settings-section {
  border-top: 1px solid var(--line);
}

.settings-section-label {
  display: inline-block;
  margin-bottom: 1.1rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-dark);
}

/* =========================
   SETTING ROW
========================= */
.setting-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 52px;
  padding: 0.65rem 0;
}

.setting-row + .setting-row {
  border-top: 1px solid var(--line);
}

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

.setting-label {
  font-size: 0.98rem;
  font-weight: 500;
  color: var(--text-primary);
  line-height: 1.3;
}

.setting-hint {
  margin-top: 0.2rem;
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--text-muted);
}

/* =========================
   TOGGLE SWITCH
   Biologically-rhythmic motion
========================= */
.setting-toggle {
  position: relative;
  flex-shrink: 0;
  width: 48px;
  height: 28px;
  appearance: none;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: var(--line);
  cursor: pointer;
  transition:
    background-color 0.42s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.42s cubic-bezier(0.22, 1, 0.36, 1);
}

.setting-toggle::before {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--surface-strong);
  box-shadow: 0 2px 6px var(--shadow-soft, rgba(0,0,0,0.1));
  transition:
    transform 0.42s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.3s ease;
}

.setting-toggle:checked {
  background: var(--accent);
  border-color: var(--accent-dark);
}

.setting-toggle:checked::before {
  transform: translateX(20px);
  box-shadow: 0 2px 8px var(--shadow-card, rgba(0,0,0,0.15));
}

.setting-toggle:focus-visible {
  outline: 2px solid var(--header-focus, var(--accent, #8aa5a0));
  outline-offset: 2px;
}

/* =========================
   RANGE SLIDER
   Smooth, organic track
========================= */
.setting-slider-wrap {
  flex-shrink: 0;
  width: min(180px, 42%);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.setting-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 4px;
  border-radius: 999px;
  background: var(--line);
  outline: none;
  cursor: pointer;
  transition: background 0.3s ease;
}

.setting-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border: 2px solid var(--accent);
  border-radius: 50%;
  background: var(--surface-strong);
  box-shadow: 0 2px 8px var(--shadow-soft, rgba(0,0,0,0.12));
  cursor: pointer;
  transition:
    transform 0.34s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.3s ease;
}

.setting-slider::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border: 2px solid var(--accent);
  border-radius: 50%;
  background: var(--surface-strong);
  box-shadow: 0 2px 8px var(--shadow-soft, rgba(0,0,0,0.12));
  cursor: pointer;
  transition:
    transform 0.34s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.3s ease;
}

.setting-slider:hover::-webkit-slider-thumb {
  transform: scale(1.15);
  box-shadow: 0 3px 12px var(--shadow-card, rgba(0,0,0,0.16));
}

.setting-slider:hover::-moz-range-thumb {
  transform: scale(1.15);
  box-shadow: 0 3px 12px var(--shadow-card, rgba(0,0,0,0.16));
}

.setting-slider:focus-visible {
  outline: 2px solid var(--header-focus, var(--accent, #8aa5a0));
  outline-offset: 4px;
}

.setting-slider-value {
  min-width: 2.4em;
  text-align: right;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

/* =========================
   SELECT / SEGMENT CONTROL
   Pill-based option picker
========================= */
.setting-select-group {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  padding: 0.22rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--line) 50%, transparent);
}

.setting-select-option {
  appearance: none;
  min-height: 32px;
  padding: 0.35rem 0.72rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--text-secondary);
  font: inherit;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  cursor: pointer;
  white-space: nowrap;
  transition:
    background-color 0.28s ease,
    color 0.28s ease,
    transform 0.22s ease;
}

.setting-select-option:hover {
  color: var(--text-primary);
}

.setting-select-option.is-active {
  background: var(--accent);
  color: var(--button-text);
  box-shadow: 0 2px 8px color-mix(in srgb, var(--accent) 30%, transparent);
}

.setting-select-option:active {
  transform: scale(0.96);
}

.setting-select-option:focus-visible {
  outline: 2px solid var(--header-focus, var(--accent, #8aa5a0));
  outline-offset: 2px;
}

/* =========================
   TIME INPUT
========================= */
.setting-time-group {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.setting-time-input {
  width: 5.5em;
  height: 36px;
  padding: 0 0.6rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm, 16px);
  background: var(--surface);
  color: var(--text-primary);
  font: inherit;
  font-size: 0.88rem;
  font-variant-numeric: tabular-nums;
  text-align: center;
  transition:
    border-color 0.24s ease,
    box-shadow 0.24s ease;
}

.setting-time-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent);
}

.setting-time-sep {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* =========================
   GHOST BUTTON & LINK
========================= */
.setting-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0;
  font-size: 0.96rem;
  font-weight: 500;
  color: var(--link-text);
  cursor: pointer;
  transition: color 0.24s ease;
}

.setting-link:hover {
  color: var(--accent-dark);
}

.setting-link-arrow {
  font-size: 0.9em;
  opacity: 0.5;
  transition: transform 0.28s ease, opacity 0.24s ease;
}

.setting-link:hover .setting-link-arrow {
  transform: translateX(3px);
  opacity: 0.8;
}

.setting-ghost-btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  width: 100%;
  padding: 0.85rem 1.2rem;
  margin-top: 0.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-md, 22px);
  background: transparent;
  color: var(--text-secondary);
  font: inherit;
  font-size: 0.94rem;
  font-weight: 500;
  cursor: pointer;
  transition:
    background-color 0.28s ease,
    border-color 0.28s ease,
    color 0.28s ease,
    transform 0.22s ease;
}

.setting-ghost-btn:hover {
  background: var(--surface);
  border-color: var(--line);
  color: var(--text-primary);
}

.setting-ghost-btn:active {
  transform: scale(0.99);
}

.setting-ghost-btn:focus-visible {
  outline: 2px solid var(--header-focus, var(--accent, #8aa5a0));
  outline-offset: 3px;
}

.settings-status {
  min-height: 1.2rem;
  margin: 0.75rem 0 0;
  color: var(--text-muted);
  font-size: 0.82rem;
  line-height: 1.45;
}

/* =========================
   BODY LOCK
========================= */
body.settings-open {
  overflow: hidden;
}

body.settings-low-contrast {
  --text-secondary: rgba(244, 230, 218, 0.78);
  --text-muted: rgba(244, 230, 218, 0.72);
  --surface: rgba(255, 244, 231, 0.1);
  --surface-strong: rgba(255, 244, 231, 0.14);
  --line: rgba(238, 220, 199, 0.18);
}

body.settings-muted-motion *,
body.settings-muted-motion *::before,
body.settings-muted-motion *::after {
  animation-duration: 0.001ms !important;
  animation-iteration-count: 1 !important;
  scroll-behavior: auto !important;
  transition-duration: 0.001ms !important;
}

body.settings-hide-metrics :is(
  [data-metric],
  [data-progress-metric],
  [data-streak],
  .metric,
  .metrics,
  .streak,
  .progress-counter,
  .progress-module
) {
  display: none !important;
}

body.settings-focus-mode .site-header,
body.settings-focus-mode .site-footer,
body.settings-focus-mode .settings-fab {
  transition:
    opacity 0.36s ease,
    transform 0.36s ease,
    visibility 0s linear 0s;
}

body.settings-focus-idle:not(.settings-open) .site-header,
body.settings-focus-idle:not(.settings-open) .site-footer,
body.settings-focus-idle:not(.settings-open) .settings-fab {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

body.settings-focus-idle:not(.settings-open) .site-header {
  transform: translateY(-12px);
}

body.settings-focus-idle:not(.settings-open) .site-footer,
body.settings-focus-idle:not(.settings-open) .settings-fab {
  transform: translateY(12px);
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 620px) {
  .settings-fab {
    bottom: 1.25rem;
    right: 1.25rem;
    width: 48px;
    height: 48px;
  }

  .settings-panel {
    width: 100vw;
    border-radius: 0;
    border-left: 0;
  }

  .settings-header {
    padding: 1.25rem 1.25rem 0.75rem;
  }

  .settings-body {
    padding: 0.5rem 1.25rem 2rem;
  }

  .setting-slider-wrap {
    width: min(160px, 38%);
  }
}

@media (max-width: 420px) {
  .settings-header {
    padding-inline: 1rem;
  }

  .settings-body {
    padding-inline: 1rem;
  }

  .setting-row {
    flex-wrap: wrap;
    gap: 0.6rem;
  }

  .setting-slider-wrap {
    width: 100%;
  }

  .setting-select-group {
    flex-wrap: wrap;
  }

  .setting-time-group {
    width: 100%;
    justify-content: flex-start;
  }
}

/* =========================
   REDUCED MOTION
========================= */
@media (prefers-reduced-motion: reduce) {
  .settings-fab,
  .settings-fab-icon,
  .settings-overlay,
  .settings-panel,
  .settings-close,
  .setting-toggle,
  .setting-toggle::before,
  .setting-slider::-webkit-slider-thumb,
  .setting-slider::-moz-range-thumb,
  .setting-select-option,
  .setting-ghost-btn,
  .setting-link-arrow {
    transition: none;
  }
}

/* ==========================================
   MOBILE FAB VISIBILITY EXCEPTION
   ========================================== */
@media (max-width: 980px) {
  .settings-fab {
    display: none !important;
  }
}

/* ==========================================
   MEDITATION MODE FAB FORCE HIDE
   ========================================== */
body.is-meditating #settings-fab,
body.is-meditating .settings-fab {
  opacity: 0 !important;
  pointer-events: none !important;
  visibility: hidden !important;
  transition: opacity 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94), visibility 1.2s !important;
}

/* ==========================================
   AUTHENTICATION & USER PROFILE STYLES
   ========================================== */
.settings-auth-container {
  margin-top: 1rem;
  padding-top: 1.25rem;
  border-top: 1px dashed var(--line);
}

.google-signin-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  width: 100%;
  min-height: 44px;
  padding: 0.75rem 1.25rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  box-shadow: var(--shadow-soft);
  transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.google-signin-btn:hover {
  background: var(--surface-strong);
  transform: translateY(-1px);
  box-shadow: var(--shadow-card);
}

.google-signin-btn:active {
  transform: translateY(0);
}

.google-icon {
  flex-shrink: 0;
  display: block;
}

.auth-user-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

/* ==========================================
   AUTH MODAL & GLASSMORPHISM OVERLAY
   ========================================== */
.auth-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: color-mix(in srgb, var(--bg-color, #17100d) 40%, transparent);
  backdrop-filter: blur(16px) saturate(120%);
  -webkit-backdrop-filter: blur(16px) saturate(120%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

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

.auth-modal {
  position: relative;
  width: min(90vw, 460px);
  padding: 3.5rem 2.5rem 3rem;
  border: 1px solid var(--line, rgba(112, 86, 52, 0.1));
  border-radius: var(--radius-lg, 28px);
  background: var(--surface-strong, rgba(255, 255, 255, 0.85));
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  box-shadow: 
    0 30px 70px rgba(36, 28, 23, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.45);
  color: var(--text, #241c17);
  text-align: center;
  transform: translateY(20px) scale(0.96);
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.auth-modal-overlay.is-active .auth-modal {
  transform: translateY(0) scale(1);
}

.auth-modal-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid var(--line, rgba(112, 86, 52, 0.08));
  border-radius: 999px;
  background: var(--surface, rgba(255, 255, 255, 0.4));
  color: var(--text-soft, rgba(36, 28, 23, 0.6));
  cursor: pointer;
  transition:
    background-color 0.3s ease,
    color 0.3s ease,
    transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.auth-modal-close:hover {
  background: var(--surface-strong, rgba(255, 255, 255, 0.9));
  color: var(--text, #241c17);
  transform: scale(1.06) rotate(90deg);
}

.auth-modal-close-icon {
  width: 15px;
  height: 15px;
  display: block;
}

.auth-modal-content {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.auth-modal-title {
  font-family: var(--font-family-primary), inherit;
  font-size: 1.65rem;
  font-weight: 400;
  letter-spacing: -0.02em;
  margin: 0 0 1rem;
  color: var(--earth, #6b4a35); /* organic earth tone */
}

.auth-modal-desc {
  font-size: 0.96rem;
  line-height: 1.65;
  margin: 0 0 2.25rem;
  color: var(--text-soft, rgba(36, 28, 23, 0.72));
  max-width: 380px;
}

/* Organic google button with premium shadow and slow hover transitions */
.auth-google-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  width: 100%;
  min-height: 54px;
  padding: 0.85rem 1.75rem;
  border: 1px solid var(--line, rgba(112, 86, 52, 0.12));
  border-radius: var(--radius-lg, 28px); /* organic design: --radius-lg */
  background: var(--bg-soft, #fffdf6);
  color: var(--earth, #6b4a35);
  font-family: inherit;
  font-size: 1.05rem;
  font-weight: 500;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(107, 74, 53, 0.05);
  transition: 
    background-color 0.5s cubic-bezier(0.25, 1, 0.5, 1),
    border-color 0.5s cubic-bezier(0.25, 1, 0.5, 1),
    box-shadow 0.5s cubic-bezier(0.25, 1, 0.5, 1),
    color 0.5s cubic-bezier(0.25, 1, 0.5, 1),
    transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.auth-google-btn:hover {
  background: var(--surface-strong, #ffffff);
  border-color: var(--earth, #6b4a35);
  color: var(--earth, #513726);
  box-shadow: 0 8px 24px rgba(107, 74, 53, 0.12);
  transform: translateY(-2px);
}

.auth-google-btn:active {
  transform: translateY(0);
}

.auth-google-btn:disabled {
  opacity: 0.5;
  pointer-events: none;
}

.auth-modal-cancel {
  appearance: none;
  background: none;
  border: none;
  color: var(--text-muted, rgba(36, 28, 23, 0.45));
  font-family: inherit;
  font-size: 0.92rem;
  margin-top: 1.5rem;
  cursor: pointer;
  text-decoration: underline;
  text-decoration-color: transparent;
  transition: color 0.3s ease, text-decoration-color 0.3s ease;
}

.auth-modal-cancel:hover {
  color: var(--text-soft, rgba(36, 28, 23, 0.75));
  text-decoration-color: currentColor;
}

/* Adapt for dark theme automatically */
body.theme-dark .auth-modal,
body[data-theme="dark"] .auth-modal,
body.theme-night .auth-modal,
body.theme-sleep .auth-modal,
body.theme-warm-night .auth-modal,
body.theme-late-night .auth-modal {
  background: var(--surface-strong, rgba(49, 32, 23, 0.78));
  border-color: var(--line, rgba(236, 190, 135, 0.08));
  box-shadow: 
    0 30px 70px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  color: var(--text, #f6e6d1);
}

body.theme-dark .auth-modal-title,
body[data-theme="dark"] .auth-modal-title,
body.theme-night .auth-modal-title,
body.theme-sleep .auth-modal-title,
body.theme-warm-night .auth-modal-title,
body.theme-late-night .auth-modal-title {
  color: var(--color-dark-accent, var(--accent, #d49a61));
}

body.theme-dark .auth-modal-desc,
body[data-theme="dark"] .auth-modal-desc,
body.theme-night .auth-modal-desc,
body.theme-sleep .auth-modal-desc,
body.theme-warm-night .auth-modal-desc,
body.theme-late-night .auth-modal-desc {
  color: var(--text-soft, rgba(246, 230, 209, 0.76));
}

body.theme-dark .auth-google-btn,
body[data-theme="dark"] .auth-google-btn,
body.theme-night .auth-google-btn,
body.theme-sleep .auth-google-btn,
body.theme-warm-night .auth-google-btn,
body.theme-late-night .auth-google-btn {
  background: var(--surface, rgba(49, 32, 23, 0.6));
  border-color: var(--line, rgba(236, 190, 135, 0.14));
  color: var(--text, #f6e6d1);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

body.theme-dark .auth-google-btn:hover,
body[data-theme="dark"] .auth-google-btn:hover,
body.theme-night .auth-google-btn:hover,
body.theme-sleep .auth-google-btn:hover,
body.theme-warm-night .auth-google-btn:hover,
body.theme-late-night .auth-google-btn:hover {
  background: var(--surface-strong, rgba(62, 39, 27, 0.8));
  border-color: var(--color-dark-accent, var(--accent, #d49a61));
  color: var(--text, #ffffff);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
}

body.theme-dark .auth-modal-close:hover,
body[data-theme="dark"] .auth-modal-close:hover,
body.theme-night .auth-modal-close:hover,
body.theme-sleep .auth-modal-close:hover,
body.theme-warm-night .auth-modal-close:hover,
body.theme-late-night .auth-modal-close:hover {
  background: var(--surface-strong, rgba(62, 39, 27, 0.9));
  color: var(--text, #f6e6d1);
}


