/* ============================================================
   YancoTab v3.0 — Home Screen Components
   Greeting, Widgets, Quick Links
   ============================================================ */

/* ── Playfair Display — elegant serif for greeting ── */
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../assets/fonts/playfair-display-latin-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Playfair Display';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('../assets/fonts/playfair-display-latin-400i.woff2') format('woff2');
}

/* ── Home Top Section ── */
.home-top {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0;
  gap: 0;
  transition: opacity var(--transition-normal);
  /* Span the available main-content width so children (widget bar, section
     headings) can expand to their own max-widths rather than being pinned
     to the narrow search-bar width. */
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
}

body.in-app .home-top {
  opacity: 0;
  pointer-events: none;
}

/* ── Greeting hero — Playfair clock with arabesque flourishes ── */
/* Small mono greet line above → flourish-flanked Playfair Display clock
   in accent gradient → mono day-of-year date below. The flourishes (❧) are
   accent-colored ornaments that frame the time without competing with it.
   Adaptive size: clock uses clamp(40-72px) via 6vh so tall viewports get
   a generous hero, laptop viewports stay compact. */
.greeting-bar {
  text-align: center;
  padding: 14px 0 10px;
  animation: greetFadeDown 0.6s var(--ease-out) both;
}

.greeting-greet {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
  text-shadow:
    0 0 12px rgba(var(--accent-rgb), 0.50),
    0 1px 3px rgba(0, 0, 0, 0.85);
}

/* Wrapper that holds the flourish + clock + flourish in one row */
.greeting-clock-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: clamp(12px, 2vw, 28px);
}

.greeting-flourish {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(20px, 3vh, 36px);
  color: var(--accent);
  text-shadow:
    0 0 14px rgba(var(--accent-rgb), 0.70),
    0 0 28px rgba(var(--accent-rgb), 0.40);
  user-select: none;
  opacity: 0.88;
}

.greeting-flourish-l { transform: rotate(-12deg); }
.greeting-flourish-r { transform: rotate(168deg); }

.greeting-clock {
  font-family: 'Playfair Display', 'Didot', Georgia, serif;
  font-size: clamp(40px, 6vh, 72px);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  /* Accent-bright→teal gradient text — readable on dark and light wallpapers */
  background: linear-gradient(180deg, var(--text-bright) 0%, var(--text-bright) 55%, var(--accent) 100%);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
          color: transparent;
  /* Outline shadow for visibility on busy wallpapers (sits behind the gradient text) */
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.85))
          drop-shadow(0 0 24px rgba(var(--accent-rgb), 0.35));
}

.greeting-sec {
  font-family: 'Playfair Display', Georgia, serif;
  color: var(--accent);
  font-size: 0.5em;
  font-weight: 400;
  font-style: italic;
  vertical-align: 0.32em;
  margin-left: 10px;
  /* Reset the gradient-clip from the parent so seconds paint as solid color */
  background: none;
  -webkit-text-fill-color: var(--accent);
          color: var(--accent);
}

.greeting-date {
  margin-top: 8px;
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.85);
}

/* Light theme: drop the dark text-shadow halos, swap to light halos */
body.theme-light .greeting-greet,
body.theme-light .greeting-date {
  text-shadow:
    0 0 8px rgba(255, 255, 255, 0.85),
    0 1px 2px rgba(0, 0, 0, 0.10);
}

body.theme-light .greeting-clock {
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.10))
          drop-shadow(0 0 24px rgba(var(--accent-rgb), 0.30));
}

/* Legacy aliases — older saved DOM may still reference these. Hide them so
   nothing renders twice; new structure uses .greeting-greet / -clock / -date. */
.greeting-text:empty,
.greeting-sub:empty,
.greeting-time:empty {
  display: none;
}

@keyframes greetFadeDown {
  from { opacity: 0; transform: translateY(-12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Ko-fi Support Badge ── */
.kofi-badge {
  position: absolute;
  top: 0;
  left: 0;
  z-index: var(--z-statusbar);
  margin: calc(var(--safe-top, 0px) + 12px) 0 0 14px;
  padding: 6px 12px 5px;
  display: flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  cursor: pointer;
  opacity: 0.32;
  transition: opacity 0.35s ease, transform 0.3s ease, border-color 0.35s ease;
  animation: greetFadeDown 0.8s var(--ease-out) 0.4s both;
  /* Arabesque ornamental frame */
  border: 1px solid rgba(200, 220, 240, 0.18);
  border-radius: 3px;
  background: rgba(200, 220, 240, 0.03);
  box-shadow:
    inset 1px 1px 0 rgba(255, 255, 255, 0.04),
    inset -1px -1px 0 rgba(255, 255, 255, 0.02);
}
.kofi-badge::before,
.kofi-badge::after {
  position: absolute;
  font-size: 9px;
  color: rgba(200, 220, 240, 0.22);
  line-height: 1;
  pointer-events: none;
  transition: color 0.35s;
}
.kofi-badge::before {
  content: '❧';
  top: -1px;
  left: 3px;
}
.kofi-badge::after {
  content: '❧';
  bottom: -1px;
  right: 3px;
  transform: rotate(180deg);
}
.kofi-badge:hover {
  opacity: 0.88;
  transform: scale(1.04);
  border-color: rgba(200, 220, 240, 0.35);
}
.kofi-badge:hover::before,
.kofi-badge:hover::after {
  color: rgba(255, 180, 200, 0.45);
}

.kofi-heart {
  font-size: 13px;
  filter: grayscale(0.4);
  transition: filter 0.35s;
}
.kofi-badge:hover .kofi-heart {
  filter: grayscale(0) drop-shadow(0 0 5px rgba(255, 80, 100, 0.55));
}

.kofi-text {
  font-family: 'Playfair Display', 'Didot', Georgia, serif;
  font-style: italic;
  font-size: 11.5px;
  font-weight: 400;
  color: rgba(200, 220, 240, 0.65);
  letter-spacing: 0.05em;
}
.kofi-badge:hover .kofi-text {
  color: rgba(235, 240, 255, 0.9);
}

body.in-app .kofi-badge {
  opacity: 0;
  pointer-events: none;
}

/* ── Search Wrap ── */
.search-wrap {
  display: flex;
  justify-content: center;
  padding: 4px 0 20px;
  animation: greetFadeDown 0.6s var(--ease-out) 0.1s both;
}

/* ── Widget Bar ── */
/* Desktop: auto-fit grid that adapts to whatever widgets are enabled.
   Each widget gets a min-width of 220px and grows up to ~280px so the row
   feels balanced whether 2, 3, or 4 widgets are showing. */
.widget-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.widget-bar::-webkit-scrollbar { display: none; }

.widget-bar-empty { display: none; }

/* ── Widget Cards ── */
/* All widgets share one shape: 130px min-height, 14px padding, flex column.
   Widget-specific layouts (Pomodoro ring centered, Activity list stretched)
   are handled below by the per-widget rules — but they all start from the
   same base so the row visually balances. */
.widget-card {
  min-width: 140px;
  min-height: 130px;
  border-radius: var(--radius-lg);
  padding: 14px 16px;
  background: var(--bg-card);
  backdrop-filter: blur(24px) saturate(1.2);
  -webkit-backdrop-filter: blur(24px) saturate(1.2);
  border: none;
  box-shadow:
    inset 0 0 0 1.5px rgba(var(--accent-rgb), 0.3),
    inset 0 0 0 3px rgba(var(--accent-rgb), 0.08),
    var(--shadow-sm);
  transition: transform 200ms var(--ease-out), box-shadow 200ms var(--ease-out);
  cursor: pointer;
  user-select: none;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
  gap: 6px;
}

/* All widgets use the same head row: small mono uppercase label + accent
   word. Per-widget content layout starts BELOW this header. */
.widget-head {
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text);
}

.widget-head b {
  color: var(--accent);
  font-weight: 500;
  margin-right: 2px;
}

/* The "body" is the prominent middle content; "foot" is small mono meta */
.widget-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 0;
}

.widget-foot {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.10em;
  color: var(--text-dim);
  text-transform: uppercase;
}

.widget-card::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 6px;
  background: var(--yv-platform);
  filter: blur(4px);
  pointer-events: none;
  transition: all 0.25s;
  border-radius: 50%;
}

.widget-card:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow:
    inset 0 0 0 1.5px rgba(var(--accent-rgb), 0.45),
    inset 0 0 0 3px rgba(var(--accent-rgb), 0.12),
    var(--shadow-md);
}

.widget-card:hover::after {
  width: 70%;
  height: 8px;
  background: var(--yv-platform-hover);
  bottom: -12px;
}

.widget-card:active {
  transform: scale(0.97);
}

.widget-medium {
  min-width: 200px;
  flex: 1.6 1 200px;
}

/* In the 4-up grid, default cards take 1 column, medium takes 1 column too
   (the column-template provides the 1.2/1/1/1.2 sizing already). */
.widget-card {
  min-width: 0;
}

/* Tablet (480-1023px): 2-column grid, todo spans both rows */
@media (max-width: 1023px) {
  .widget-bar {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    max-width: 680px;
  }
  .widget-medium {
    grid-column: 1 / -1;
  }
}

/* Phone (< 480px): tighter gap, hide Clock since the hero already shows time */
@media (max-width: 479px) {
  .widget-bar {
    gap: 10px;
  }
  .widget-clock {
    display: none;
  }
}

/* ── Weather widget ───────────────────────────────────────── */
.widget-weather-body {
  flex-direction: row;
  align-items: center;
  gap: 4px;
}

.widget-weather-temp {
  font-family: var(--font-mono);
  font-size: 36px;
  font-weight: 300;
  letter-spacing: -0.04em;
  color: var(--text-bright);
  line-height: 1;
  font-variant-numeric: tabular-nums;
  display: inline-flex;
  align-items: baseline;
}

.widget-weather-deg {
  font-size: 18px;
  color: var(--accent);
  font-weight: 400;
  margin-left: 2px;
}

.widget-weather-empty {
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--text-dim);
}

.widget-empty-glyph {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  opacity: 0.55;
}

.widget-empty-msg {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.10em;
  color: var(--text-dim);
  text-align: center;
}

/* ── Todo widget ──────────────────────────────────────────── */
.widget-todo-list {
  gap: 6px;
  justify-content: flex-start;
  padding-top: 2px;
}

.widget-todo-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-bright);
  line-height: 1.3;
}

.widget-todo-check {
  width: 14px;
  height: 14px;
  border-radius: 4px;
  border: 1.5px solid rgba(var(--accent-rgb), 0.40);
  flex-shrink: 0;
  cursor: pointer;
  transition: background var(--motion-snappy), border-color var(--motion-snappy);
}

.widget-todo-check:hover {
  border-color: var(--accent);
  background: rgba(var(--accent-rgb), 0.15);
}

.widget-todo-text {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.widget-todo-empty {
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: var(--text-dim);
}

/* ── Pomodoro widget ──────────────────────────────────────── */
.widget-pomo {
  text-align: center;
  align-items: stretch;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
}

.widget-pomo .widget-body {
  align-items: center;
  justify-content: center;
}

/* Pomodoro head row stays centered (the widget is text-align: center) */
.widget-pomo .widget-head { justify-content: center; }

.widget-pomo .w-pomo-ring {
  position: relative;
  width: 76px;
  height: 76px;
  margin: 0 auto;
}

.widget-pomo .w-pomo-ring svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.widget-pomo .w-pomo-ring .track {
  stroke: rgba(var(--accent-rgb), 0.10);
}

.widget-pomo .w-pomo-ring .fill {
  stroke: var(--accent);
  stroke-linecap: round;
  filter: drop-shadow(0 0 4px rgba(var(--accent-rgb), 0.6));
  transition: stroke-dashoffset 0.6s var(--ease-out, ease-out);
}

/* Break phase: keep accent color but soften — visual cue we're resting */
.widget-pomo .w-pomo-ring .fill.is-break {
  stroke: var(--accent-bright);
  filter: drop-shadow(0 0 4px rgba(var(--accent-rgb), 0.4));
  opacity: 0.75;
}

/* Paused: dim the fill */
.widget-pomo.is-paused .w-pomo-ring .fill {
  opacity: 0.45;
}

.widget-pomo .w-pomo-time {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 16px;
  color: var(--text-bright);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

/* The pomodoro footer (was .w-pomo-label) now reuses .widget-foot. The
   .w-pomo-label class is kept on the element so the JS can still query it. */
.widget-pomo .w-pomo-label {
  text-align: center;
}

/* ── Activity feed widget ─────────────────────────────────── */
.widget-feed {
  text-align: left;
  align-items: stretch;
  cursor: default;
}

/* The .w-feed-list element reuses .widget-body — no extra rules needed
   beyond what the per-item styles below provide. */

.widget-feed .w-feed-item {
  display: flex;
  gap: 10px;
  padding: 5px 0;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.04);
  align-items: baseline;
}

.widget-feed .w-feed-item:last-child {
  border-bottom: 0;
}

.widget-feed .w-feed-ts {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--accent);
  width: 36px;
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
}

.widget-feed .w-feed-txt {
  font-size: 12px;
  color: var(--text-bright);
  line-height: 1.4;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.widget-feed .w-feed-txt em {
  font-style: normal;
  color: var(--text);
}

.widget-feed .w-feed-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  font-size: 11px;
  color: var(--text-dim);
  font-style: italic;
  padding: 16px 0;
}

body.theme-light .widget-feed .w-feed-item {
  border-bottom-color: rgba(0, 0, 0, 0.05);
}

body.theme-light .widget-feed .w-feed-txt em {
  color: var(--text-dim);
}

/* Active focus: subtle pulse on the ring */
@keyframes pomoPulse {
  0%, 100% { filter: drop-shadow(0 0 4px rgba(var(--accent-rgb), 0.6)); }
  50%      { filter: drop-shadow(0 0 8px rgba(var(--accent-rgb), 0.9)); }
}

.widget-pomo.is-focus .w-pomo-ring .fill {
  animation: pomoPulse 2s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
  .widget-pomo.is-focus .w-pomo-ring .fill {
    animation: none;
  }
  .widget-pomo .w-pomo-ring .fill {
    transition: none;
  }
}

/* Widget typography */
.widget-value {
  font-size: 28px;
  font-weight: 200;
  color: var(--text-bright);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.widget-value-sm {
  font-size: 24px;
}

.widget-label {
  font-size: 13px;
  color: var(--text-dim);
  margin-top: 6px;
}

.widget-label-sm {
  font-size: 11px;
  color: var(--text-dim);
  margin-top: 2px;
}

.widget-title {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-bright);
}

.widget-empty {
  font-size: 13px;
  color: var(--text-dim);
}

.widget-empty-sub {
  font-size: 11px;
  color: var(--text-dim);
  margin-top: 6px;
  opacity: 0.6;
}

/* ── Quick Links ── */
.quick-links-bar {
  display: flex;
  justify-content: center;
  gap: 16px;
  overflow-x: auto;
  scrollbar-width: none;
  width: 100%;
  max-width: 520px;
}

.quick-links-bar::-webkit-scrollbar { display: none; }

.quick-link-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  user-select: none;
  flex-shrink: 0;
}

.quick-link-circle {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: var(--text-bright);
  transition: transform 150ms var(--ease-out), box-shadow 150ms var(--ease-out);
  box-shadow: inset 0 0 0 1px rgba(var(--accent-rgb), 0.2), var(--shadow-sm);
}

.quick-link-circle img {
  width: 22px;
  height: 22px;
  border-radius: 4px;
  pointer-events: auto;
}

.quick-link-item:hover .quick-link-circle {
  transform: scale(1.08);
  box-shadow: inset 0 0 0 1.5px rgba(var(--accent-rgb), 0.4), var(--glow-sm);
}

.quick-link-item:active .quick-link-circle {
  transform: scale(0.95);
}

.quick-link-add {
  border-style: dashed;
  border-color: var(--border-light);
  color: var(--text-dim);
  font-size: 18px;
  background: transparent;
}

.quick-link-label {
  font-size: 11px;
  color: var(--text-dim);
  max-width: 56px;
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ── Responsive ── */
@media (max-width: 700px) {
  .greeting-text {
    font-size: 22px;
  }

  .home-top {
    padding: 0;
    gap: 4px;
  }

  .widget-card {
    min-width: calc(50% - 6px);
    height: 76px;
    padding: 10px;
  }

  .widget-medium { min-width: 100%; }
  .quick-links-bar { gap: 12px; }
  .quick-link-circle {
    width: 40px;
    height: 40px;
    border-radius: 10px;
  }
}

@media (min-width: 1400px) {
  .greeting-text {
    font-size: 32px;
  }
}

/* ── Light Theme ── */
body.theme-light .widget-card {
  box-shadow:
    inset 0 0 0 1px rgba(var(--accent-rgb), 0.15),
    inset 0 0 0 2.5px rgba(var(--accent-rgb), 0.04),
    var(--shadow-sm);
}

body.theme-light .widget-card:hover {
  box-shadow:
    inset 0 0 0 1.5px rgba(var(--accent-rgb), 0.25),
    inset 0 0 0 3px rgba(var(--accent-rgb), 0.06),
    var(--shadow-md);
}

body.theme-light .quick-link-circle {
  box-shadow: inset 0 0 0 1px rgba(var(--accent-rgb), 0.12), 0 1px 3px rgba(0, 0, 0, 0.06);
}

body.theme-light .greeting-text {
  color: var(--text-bright);
}

body.theme-light .greeting-sub {
  color: var(--text);
}

body.theme-light .greeting-time {
  color: var(--text-dim);
}

body.theme-light .status-bar {
  background: none;
}

body.theme-light .sb-time {
  color: var(--text);
}

/* ── Ko-fi Modal ── */
.kofi-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(4, 8, 16, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  opacity: 0;
  transition: opacity 0.25s ease;
}
.kofi-modal-backdrop.is-visible { opacity: 1; }
.kofi-modal-backdrop.is-closing { opacity: 0; }

.kofi-modal-card {
  position: relative;
  width: 340px;
  max-width: calc(100vw - 32px);
  max-height: calc(100vh - 64px);
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid rgba(var(--accent-rgb), 0.2);
  box-shadow:
    0 24px 48px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  overflow: hidden;
  transform: scale(0.92) translateY(16px);
  transition: transform 0.3s var(--ease-out);
}
.kofi-modal-backdrop.is-visible .kofi-modal-card {
  transform: scale(1) translateY(0);
}
.kofi-modal-backdrop.is-closing .kofi-modal-card {
  transform: scale(0.92) translateY(16px);
}

/* Visually hidden modal title — provides aria-labelledby target. */
.kofi-modal-srtitle {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.kofi-modal-close {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  width: 28px;
  height: 28px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-dim);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s;
}
.kofi-modal-close:hover {
  background: rgba(255, 255, 255, 0.15);
  color: var(--text-bright);
}

.kofi-modal-loading {
  text-align: center;
  padding: 48px 16px;
  font-size: 14px;
  color: var(--text-dim);
  letter-spacing: 0.04em;
}

.kofi-modal-iframe {
  display: block;
  flex: 1 1 auto;
  width: 100%;
  height: 712px;
  border: none;
  background: transparent;
}

.kofi-modal-fullpage {
  display: block;
  flex: 0 0 auto;
  padding: 10px 14px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--text-dim);
  text-decoration: none;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(0, 0, 0, 0.18);
  transition: color 0.2s, background 0.2s;
}
.kofi-modal-fullpage:hover {
  color: var(--accent);
  background: rgba(var(--accent-rgb), 0.08);
}

/* ── Service Worker Reload Banner ── */
.sw-reload-banner {
  position: fixed;
  top: 0;
  left: 50%;
  z-index: 10000;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px 16px;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(var(--accent-rgb), 0.3);
  border-top: none;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  font-size: 13px;
  color: var(--text-bright);
  transform: translate(-50%, -100%);
  transition: transform 0.3s var(--ease-out);
}
.sw-reload-banner.is-visible {
  transform: translate(-50%, 0);
}

.sw-reload-text {
  letter-spacing: 0.02em;
}

.sw-reload-btn {
  padding: 4px 12px;
  border: 1px solid rgba(var(--accent-rgb), 0.4);
  border-radius: var(--radius-xs);
  background: rgba(var(--accent-rgb), 0.12);
  color: var(--accent);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}
.sw-reload-btn:hover {
  background: rgba(var(--accent-rgb), 0.2);
  border-color: rgba(var(--accent-rgb), 0.6);
}
