/* main.css – Global styles, toolbar buttons, gradient background */

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

body {
  margin: 0;
  padding: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  background: #ffffff;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ===== SITE HEADER ===== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 150;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  height: 52px;
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
}

.site-header-logo {
  font-size: 18px;
  font-weight: 600;
  color: #1a365d;
  text-decoration: none;
  letter-spacing: 0.3px;
}

.site-header-logo:hover {
  color: #2b4c7e;
}

.site-header-left {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.site-header-tagline {
  font-size: 13px;
  font-weight: 400;
  color: #718096;
}

.site-header-nav {
  display: flex;
  gap: 20px;
  align-items: center;
}

.site-header-link {
  font-size: 16px;
  font-weight: 500;
  color: #2d3748;
  text-decoration: none;
  transition: color 0.2s ease;
}

.site-header-link:hover {
  color: #1a365d;
}

.site-header-auth-btn {
  padding: 5px 14px;
  border-radius: 8px;
  border: 1px solid #cbd5e0;
  background: #fff;
  color: #2d3748;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.site-header-auth-btn:hover {
  background: #f7fafc;
  border-color: #a0aec0;
}

.site-header-auth-btn--login {
  background: linear-gradient(135deg, #6bb6ff 0%, #7dd3fc 50%, #86efac 100%);
  border: none;
  color: #fff;
  font-weight: 600;
}

.site-header-auth-btn--login:hover {
  opacity: 0.9;
  background: linear-gradient(135deg, #6bb6ff 0%, #7dd3fc 50%, #86efac 100%);
}

.site-header-user {
  font-size: 14px;
  font-weight: 500;
  color: #38a169;
}

/* ===== MAIN PAGE ===== */
.main-page {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  min-height: 100vh;
  padding: 72px 32px 32px;
}

/* Tagline at very top, just below navbar – one line */
.toolbar-tagline-main {
  font-size: 17px;
  font-weight: 400;
  color: #4a5568;
  margin: 0 0 28px 0;
  letter-spacing: 0.3px;
  text-align: center;
  white-space: nowrap;
  animation: fadeInUp 0.35s ease forwards;
  opacity: 0;
  animation-delay: 0s;
}

/* "Plan. Power Up. Focus and Go." – mobile only, above buttons */
.toolbar-tagline-line {
  display: none;
  margin: 0 0 16px 0;
  font-size: 14px;
  font-weight: 500;
  color: #2d3748;
  text-align: center;
  white-space: nowrap;
}

/* Desktop: labels row above the toolbar card; push block down to just above center */
.toolbar-desktop-wrap {
  width: 100%;
  max-width: 900px;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 14vh;
}

.home-data-note {
  margin: 16px auto 0;
  font-size: 14px;
  color: rgba(0, 0, 0, 0.6);
  text-align: center;
  max-width: 480px;
}

/* Labels now live inside each toolbar-group */
.toolbar-label {
  font-size: 18px;
  font-weight: 500;
  color: #2d3748;
  letter-spacing: 0.5px;
  text-align: center;
}

.toolbar-card {
  background: linear-gradient(135deg, rgba(107, 182, 255, 0.65) 0%, rgba(125, 211, 252, 0.65) 50%, rgba(134, 239, 172, 0.65) 100%);
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 30px 48px 40px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  text-align: center;
  width: 100%;
  box-sizing: border-box;
}

.toolbar-groups {
  display: flex;
  gap: 24px;
  flex-wrap: nowrap;
  width: 100%;
  box-sizing: border-box;
}

.toolbar-group {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
}

.toolbar-group-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  align-items: center;
}

.toolbar-button {
  width: 140px;
  height: 88px;
  border: 1.5px solid rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.95);
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
}

.toolbar-button:hover {
  transform: scale(1.06);
  background: #ffffff;
  border-color: rgba(255, 255, 255, 0.9);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.18);
}

.toolbar-button:active {
  transform: scale(1.02);
}

.toolbar-button--after-spacer {
  margin-right: 0;
}

.button-label {
  color: #1a365d;
  font-size: 17px;
  font-weight: 600;
  text-align: center;
  pointer-events: none;
  user-select: none;
}

/* Staggered entrance animation */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.toolbar-button {
  animation: fadeInUp 0.4s ease forwards;
  opacity: 0;
}

.toolbar-group:nth-child(1) .toolbar-button { animation-delay: 0.05s; }
.toolbar-group:nth-child(2) .toolbar-group-buttons .toolbar-button:nth-child(1) { animation-delay: 0.10s; }
.toolbar-group:nth-child(2) .toolbar-group-buttons .toolbar-button:nth-child(2) { animation-delay: 0.14s; }
.toolbar-group:nth-child(2) .toolbar-group-buttons .toolbar-button:nth-child(3) { animation-delay: 0.18s; }
.toolbar-group:nth-child(3) .toolbar-button { animation-delay: 0.29s; }

/* Subtle glow on hover */
.toolbar-button:hover::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.5) 0%, transparent 70%);
  border-radius: 14px;
}

/* ===== ABOUT PAGE ===== */
.about-page {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  min-height: 100vh;
  padding: 80px 20px 40px;
}

.about-card {
  background: #ffffff;
  border-radius: 20px;
  border: 1px solid #e2e8f0;
  padding: 40px;
  max-width: 640px;
  width: 100%;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}

.about-title {
  font-size: 30px;
  font-weight: 600;
  color: #1a365d;
  margin-bottom: 16px;
}

.about-expandable {
  margin-bottom: 20px;
}

.about-expandable-btn {
  display: block;
  width: 100%;
  text-align: left;
  padding: 12px 16px;
  font-size: 16px;
  font-weight: 500;
  color: #1a365d;
  background: rgba(107, 182, 255, 0.1);
  border: 1px solid rgba(107, 182, 255, 0.25);
  border-radius: 10px;
  cursor: pointer;
  font-family: inherit;
  position: relative;
  padding-right: 36px;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.about-expandable-btn:hover {
  background: rgba(107, 182, 255, 0.15);
  border-color: rgba(107, 182, 255, 0.35);
}

.about-expandable-btn::after {
  content: '\25BC';
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 12px;
  opacity: 0.7;
  transition: transform 0.2s ease;
}

.about-expandable-btn[aria-expanded="true"]::after {
  transform: translateY(-50%) rotate(180deg);
}

.about-expandable-content {
  padding: 16px 16px 4px;
  margin-top: 8px;
  border: 1px solid rgba(107, 182, 255, 0.2);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.5);
}

.about-expandable-content p {
  font-size: 15px;
  line-height: 1.6;
  color: #4a5568;
  margin: 0 0 12px 0;
}

.about-expandable-content p:last-child {
  margin-bottom: 0;
}

.about-note {
  font-size: 15px;
  line-height: 1.5;
  color: #4a5568;
  margin-bottom: 20px;
  font-style: italic;
}

.about-text {
  font-size: 18px;
  line-height: 1.6;
  color: #4a5568;
  margin-bottom: 20px;
}

.about-recommended {
  font-size: 17px;
  line-height: 1.6;
  color: #2d3748;
  margin-bottom: 28px;
  padding: 16px;
  background: rgba(107, 182, 255, 0.08);
  border-radius: 12px;
}

.about-recommended-title {
  margin-bottom: 8px;
  font-weight: 600;
}

.about-recommended-list {
  margin: 0 0 0 20px;
  padding-left: 4px;
}

.about-recommended-list ul {
  margin: 6px 0 0 20px;
  padding-left: 4px;
}

.about-features {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 28px;
}

.about-feature-heading {
  font-size: 18px;
  font-weight: 600;
  color: #2d3748;
  margin: 0 0 4px 0;
  letter-spacing: 0.3px;
}

.about-feature {
  padding: 16px;
  border-radius: 12px;
  border: 2px solid transparent;
  background-color: #ffffff;
  background-image: linear-gradient(#ffffff, #ffffff), linear-gradient(135deg, #6bb6ff 0%, #7dd3fc 50%, #86efac 100%);
  background-origin: border-box;
  background-clip: padding-box, border-box;
}

.about-feature h3 {
  font-size: 17px;
  font-weight: 600;
  color: #2d3748;
  margin-bottom: 4px;
}

.about-feature p {
  font-size: 16px;
  color: #4a5568;
  line-height: 1.5;
}

.about-cta {
  text-align: center;
  padding-top: 24px;
}

/* Bookmarklets section on About page */
.about-bookmarklets {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid #e2e8f0;
}

.about-bookmarklets-title {
  font-size: 20px;
  font-weight: 600;
  color: #1a202c;
  margin-bottom: 8px;
}

.about-bookmarklets-desc {
  font-size: 15px;
  color: #4a5568;
  margin-bottom: 16px;
}

.bookmarklet-items {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 20px;
}

.bookmarklet-item {
  display: flex;
  align-items: center;
  gap: 14px;
}

.bookmarklet-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 18px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, #6bb6ff 0%, #7dd3fc 50%, #86efac 100%);
  text-decoration: none;
  cursor: grab;
  box-shadow: 0 2px 8px rgba(107, 182, 255, 0.3);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  white-space: nowrap;
  flex-shrink: 0;
  user-select: none;
}

.bookmarklet-link::before {
  content: '⠿';
  font-size: 18px;
  opacity: 0.7;
  line-height: 1;
}

.bookmarklet-link:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(107, 182, 255, 0.4);
}

.bookmarklet-link:active {
  cursor: grabbing;
}

.bookmarklet-link--surge {
  background: linear-gradient(135deg, #f472b6 0%, #fb923c 100%);
  box-shadow: 0 2px 8px rgba(244, 114, 182, 0.3);
}

.bookmarklet-link--surge:hover {
  box-shadow: 0 4px 14px rgba(244, 114, 182, 0.4);
}

.bookmarklet-help {
  font-size: 14px;
  color: #6b7280;
  line-height: 1.4;
}

.bookmarklet-instructions {
  font-size: 13px;
  color: #9ca3af;
  line-height: 1.5;
  margin-top: 8px;
}

.bookmarklet-instructions kbd {
  display: inline-block;
  padding: 1px 6px;
  border-radius: 4px;
  border: 1px solid #d1d5db;
  background: #f9fafb;
  font-family: inherit;
  font-size: 12px;
  color: #374151;
}

/* ===== ACTIVITY OVERLAYS ===== */
.activity-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 100;
  display: flex;
  flex-direction: column;
}

/* When navbar is visible, add padding so content sits below the header (52px) */
body.navbar-visible .activity-overlay {
  padding-top: 60px;
  box-sizing: border-box;
  height: 100%;
  min-height: 100vh;
}

/* Back-to-home button shown on Breathe / Gratitude / Work Sprint */
.activity-back-btn {
  position: absolute;
  top: 68px;
  left: 18px;
  z-index: 20;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: rgba(255, 255, 255, 0.9);
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.activity-back-btn:hover {
  background: rgba(255, 255, 255, 0.25);
}

/* Home logo for activities */
.activity-home-logo {
  position: absolute;
  top: 15px;
  left: 15px;
  z-index: 20;
  font-size: 16px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  cursor: pointer;
  letter-spacing: 0.3px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 8px;
  padding: 7px 14px;
  transition: all 0.2s ease;
}

.activity-home-logo:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.4);
}

/* Back button for activities */
.activity-back-btn {
  position: absolute;
  top: 15px;
  left: 160px;
  z-index: 20;
  background: rgba(255, 255, 255, 0.2);
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  color: white;
  padding: 8px 16px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.activity-back-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.5);
}

/* ===== SHARED MODAL ===== */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 200;
}

.modal-content {
  background: white;
  border-radius: 16px;
  padding: 32px;
  max-width: 500px;
  width: 90%;
  text-align: center;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.modal-content h2 {
  font-size: 24px;
  margin-bottom: 16px;
  color: #1a202c;
}

.modal-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.modal-cancel-button,
.modal-confirm-button {
  padding: 12px 24px;
  border-radius: 10px;
  font-size: 17px;
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
}

.modal-cancel-button {
  background: #e2e8f0;
  color: #4a5568;
}

.modal-cancel-button:hover {
  background: #cbd5e0;
}

.modal-confirm-button {
  background: #e53e3e;
  color: white;
}

.modal-confirm-button:hover {
  background: #c53030;
}

/* ===== SHARED BUTTONS ===== */
.primary-button {
  padding: 14px 32px;
  border-radius: 12px;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  background: linear-gradient(135deg, #6bb6ff 0%, #7dd3fc 50%, #86efac 100%);
  color: white;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(107, 182, 255, 0.3);
}

.primary-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(107, 182, 255, 0.4);
}

.secondary-button {
  padding: 12px 24px;
  border-radius: 10px;
  font-size: 17px;
  font-weight: 500;
  cursor: pointer;
  border: 2px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.15);
  color: white;
  transition: all 0.2s ease;
}

.secondary-button:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.5);
}

/* ===== SITE FOOTER ===== */
.site-footer {
  position: fixed;
  bottom: 12px;
  right: 16px;
  z-index: 140;
  font-size: 12px;
  color: #718096;
  pointer-events: none;
}

body.surge-player-open .site-footer {
  display: none;
}

/* ===== RESPONSIVE ===== */

/* Medium screens: compress horizontal layout to fit */
@media (max-width: 960px) and (min-width: 701px) {
  .main-page {
    padding: 72px 20px 32px;
  }

  .toolbar-card {
    padding: 22px 28px 32px;
  }

  .toolbar-groups {
    gap: 18px;
  }

  .toolbar-group-buttons {
    gap: 12px;
  }

  .toolbar-button {
    width: 105px;
    height: 82px;
  }

  .button-label {
    font-size: 15px;
  }

  .toolbar-label {
    font-size: 16px;
  }
}

@media (max-width: 700px) {
  .site-header {
    padding: 0 12px;
    height: 48px;
  }

  .site-header-logo {
    font-size: 15px;
  }

  .site-header-tagline {
    display: none;
  }

  .site-header-nav {
    gap: 10px;
  }

  .site-header-link {
    font-size: 14px;
  }

  .site-header-auth-btn {
    padding: 4px 10px;
    font-size: 12px;
  }

  .site-header-settings {
    font-size: 18px;
  }

  .site-footer {
    position: static;
    text-align: center;
    padding: 20px 16px;
    bottom: auto;
    right: auto;
  }

  /* Bookmarklets are not usable on mobile (no bookmark bar to drag to) */
  .home-bm-banner,
  .bookmarklet-item,
  .about-bookmarklets {
    display: none !important;
  }

  .main-page {
    padding: 64px 16px 20px;
  }

  .toolbar-tagline-main {
    font-size: 13px;
    margin-bottom: 16px;
    padding: 0 8px;
    white-space: normal;
    max-width: 100%;
  }

  .toolbar-tagline-line {
    display: block;
    font-size: 13px;
    margin-bottom: 20px;
    white-space: nowrap;
  }

  .toolbar-label {
    display: none;
  }

  .toolbar-desktop-wrap {
    width: 100%;
    margin-top: 0;
  }

  .home-data-note {
    font-size: 13px;
    margin-top: 14px;
    padding: 0 12px;
  }

  .toolbar-card {
    padding: 24px 20px;
  }

  .toolbar-groups {
    flex-direction: column;
    align-items: center;
    gap: 12px;
    justify-content: center;
  }

  .toolbar-group {
    width: 100%;
    align-items: center;
  }

  .toolbar-group-buttons {
    flex-direction: column;
    width: 100%;
    align-items: center;
    gap: 12px;
  }

  .toolbar-button {
    width: 180px;
    height: 64px;
  }

  .toolbar-button--after-spacer {
    margin-right: 0;
    margin-bottom: 0;
  }

  /* Extra space under Plan and under Surges when buttons are in a single column */
  .toolbar-group:nth-child(1) .toolbar-button {
    margin-bottom: 14px;
  }
  .toolbar-group:nth-child(2) .toolbar-group-buttons .toolbar-button:nth-child(3) {
    margin-bottom: 14px;
  }

  .toolbar-card {
    padding: 24px 20px;
  }

  .about-card {
    padding: 24px 20px;
  }

  .modal-content {
    padding: 24px;
    width: 95%;
  }

  .modal-buttons {
    flex-direction: column;
    gap: 8px;
  }

  .modal-cancel-button,
  .modal-confirm-button {
    padding: 12px 20px;
    font-size: 16px;
  }

  .primary-button {
    padding: 12px 24px;
    font-size: 17px;
  }

  .secondary-button {
    padding: 10px 20px;
    font-size: 16px;
  }
}

/* Scrollbar styling */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.15);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 0, 0, 0.25);
}

/* ===== HOME BOOKMARKLET BANNER ===== */
.home-bm-banner {
  margin-top: 60px;
  background: linear-gradient(135deg, rgba(107, 182, 255, 0.08) 0%, rgba(134, 239, 172, 0.08) 100%);
  border: 1px solid rgba(107, 182, 255, 0.25);
  border-radius: 14px;
  padding: 14px 18px;
  max-width: 480px;
  width: 100%;
}

.home-bm-main {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.home-bm-text {
  font-size: 13px;
  color: #4a5568;
  line-height: 1.4;
}

.home-bm-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.home-bm-link {
  font-size: 13px;
  padding: 7px 14px;
}

.home-bm-dismiss-btn {
  background: none;
  border: none;
  color: #9ca3af;
  font-size: 15px;
  cursor: pointer;
  padding: 4px 6px;
  line-height: 1;
  flex-shrink: 0;
  border-radius: 6px;
  transition: color 0.15s ease;
}

.home-bm-dismiss-btn:hover {
  color: #6b7280;
}

/* ===== BOOKMARKLET INFO ICON ===== */
.bm-info-icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  color: #9ca3af;
  cursor: help;
  flex-shrink: 0;
  line-height: 1;
}

.bm-info-icon--light {
  color: rgba(255, 255, 255, 0.4);
}

.bm-info-tooltip {
  display: none;
  position: absolute;
  bottom: calc(100% + 10px);
  right: -10px;
  background: #1f2937;
  color: #f3f4f6;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.45;
  width: 230px;
  text-align: left;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  z-index: 200;
  white-space: normal;
  pointer-events: none;
}

.bm-info-icon:hover .bm-info-tooltip,
.bm-info-icon:focus .bm-info-tooltip {
  display: block;
}

/* ===== SHARED BOOKMARKLET CONFIRM STRIP ===== */
.bm-confirm-strip {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(107, 182, 255, 0.2);
  font-size: 13px;
  color: #6b7280;
}

.bm-confirm-strip span {
  flex: 1;
  min-width: 120px;
}

.bm-confirm-yes,
.bm-confirm-no {
  padding: 5px 12px;
  border-radius: 8px;
  border: none;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s ease;
}

.bm-confirm-yes {
  background: #ef4444;
  color: #fff;
}

.bm-confirm-yes:hover {
  background: #dc2626;
}

.bm-confirm-no {
  background: #e5e7eb;
  color: #374151;
}

.bm-confirm-no:hover {
  background: #d1d5db;
}

/* ===== SETTINGS GEAR ===== */
.site-header-settings {
  background: none;
  border: none;
  font-size: 20px;
  color: #718096;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
  transition: color 0.2s ease;
}

.site-header-settings:hover {
  color: #2d3748;
}

/* ===== BACKUP REMINDER BANNER ===== */
.backup-reminder-banner {
  position: fixed;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 180;
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fffbeb;
  border: 1px solid #fbbf24;
  border-radius: 12px;
  padding: 10px 16px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  max-width: 480px;
  width: 90%;
}

.backup-reminder-text {
  font-size: 14px;
  color: #92400e;
  flex: 1;
}

.backup-reminder-btn {
  padding: 6px 14px;
  border-radius: 8px;
  border: none;
  background: linear-gradient(135deg, #6bb6ff 0%, #7dd3fc 50%, #86efac 100%);
  color: white;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

.backup-reminder-dismiss {
  background: none;
  border: none;
  color: #d97706;
  font-size: 18px;
  cursor: pointer;
  padding: 2px 4px;
  line-height: 1;
}

/* ===== SETTINGS PANEL ===== */
.settings-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 250;
}

.settings-card {
  background: #fff;
  border-radius: 20px;
  padding: 32px;
  max-width: 440px;
  width: 90%;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

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

.settings-title {
  font-size: 22px;
  font-weight: 600;
  color: #1a202c;
}

.settings-close {
  background: none;
  border: none;
  font-size: 24px;
  color: #9ca3af;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
}

.settings-close:hover {
  color: #4a5568;
}

.settings-section {
  margin-bottom: 20px;
}

.settings-section-title {
  font-size: 16px;
  font-weight: 600;
  color: #2d3748;
  margin-bottom: 8px;
}

.settings-info-icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: #9ca3af;
  cursor: help;
  vertical-align: middle;
  margin-left: 4px;
}

.settings-info-tooltip {
  display: none;
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  background: #1f2937;
  color: #f3f4f6;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.45;
  width: 260px;
  text-align: left;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  z-index: 200;
  white-space: normal;
  pointer-events: none;
}

.settings-info-icon:hover .settings-info-tooltip,
.settings-info-icon:focus .settings-info-tooltip {
  display: block;
}

.settings-description {
  font-size: 14px;
  color: #718096;
  line-height: 1.5;
  margin-bottom: 12px;
}

.settings-last-backup {
  font-size: 13px;
  color: #a0aec0;
  margin-bottom: 16px;
}

.settings-buttons {
  display: flex;
  gap: 12px;
}

.settings-buttons .primary-button {
  padding: 10px 20px;
  font-size: 15px;
}

.settings-buttons .secondary-button {
  padding: 10px 20px;
  font-size: 15px;
  border-color: #cbd5e0;
  background: #f7fafc;
  color: #4a5568;
}

.settings-buttons .secondary-button:hover {
  background: #edf2f7;
}

/* ===== USERNAME MODAL ===== */
.username-input-row {
  display: flex;
  gap: 10px;
  margin-bottom: 8px;
}

.username-input {
  flex: 1;
  padding: 10px 14px;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  font-size: 16px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s ease;
}

.username-input:focus {
  border-color: #6bb6ff;
}

.username-check-btn {
  padding: 10px 18px !important;
  font-size: 15px !important;
}

.username-hint {
  font-size: 13px;
  color: #a0aec0;
  margin-bottom: 12px;
}

.username-error {
  font-size: 14px;
  color: #e53e3e;
  margin-bottom: 12px;
}

.username-success {
  font-size: 14px;
  color: #38a169;
  margin-bottom: 12px;
}

.username-confirm-btn {
  width: 100%;
  padding: 12px !important;
  font-size: 16px !important;
}

/* ===== GOOGLE LINK SECTION IN SETTINGS ===== */
.settings-google-status {
  font-size: 13px;
  color: #a0aec0;
  margin-bottom: 12px;
}

/* ===== GOOGLE LINK PROMPT BANNER ===== */
.google-link-banner {
  position: fixed;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 180;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  background: #f0f7ff;
  border: 1px solid #93c5fd;
  border-radius: 12px;
  padding: 12px 16px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  max-width: 520px;
  width: 90%;
}

.google-link-text {
  font-size: 14px;
  color: #1e40af;
  flex: 1;
  min-width: 200px;
}

.google-link-btn {
  padding: 6px 14px;
  border-radius: 8px;
  border: none;
  background: #1a73e8;
  color: white;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

.google-link-btn:hover {
  background: #1557b0;
}

.google-link-dismiss {
  background: none;
  border: none;
  color: #6b7280;
  font-size: 13px;
  cursor: pointer;
  padding: 4px;
  white-space: nowrap;
}

.google-link-dismiss:hover {
  color: #374151;
}
