/* ==========================================================================
   fusionar-archivos-excel · styles.css?v=1
   Vanilla CSS, mobile-first, dark-theme 1000HW.
   ========================================================================== */

:root {
  --bg: #050505;
  --bg-soft: #0d0d0f;
  --bg-card: #111114;
  --bg-card-2: #18181c;
  --border: #1f1f25;
  --border-strong: #2a2a33;
  --text: #f3f3f5;
  --text-soft: #b7b7bf;
  --text-dim: #7d7d85;
  --acid: #c8ff00;
  --acid-dim: #a8d800;
  --acid-soft: #2a3305;
  --priv: #7be495;
  --warn: #ffb454;
  --warn-soft: #2a1d05;
  --err: #ff7066;
  --err-soft: #2a0d0d;
  --ok: #65d185;
  --info: #6ec1ff;
  --shadow: 0 18px 38px rgba(0, 0, 0, 0.45);
  --radius: 14px;
  --radius-sm: 8px;
  --radius-lg: 22px;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --tr: 200ms cubic-bezier(0.2, 0.7, 0.3, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}

/* ----------------------------------------------------------------------
   Skip link (WCAG)
   ---------------------------------------------------------------------- */
.skip-link {
  position: absolute;
  left: -1000px;
  top: 0;
  background: var(--acid);
  color: #000;
  padding: 12px 20px;
  z-index: 1000;
  font-weight: 700;
  border-radius: 0 0 8px 0;
  text-decoration: none;
}
.skip-link:focus {
  left: 0;
}

/* ----------------------------------------------------------------------
   Layout primitives
   ---------------------------------------------------------------------- */
.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 22px;
}

@media (max-width: 720px) {
  .container { padding: 0 16px; }
}

/* ----------------------------------------------------------------------
   NAV
   ---------------------------------------------------------------------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(5, 5, 5, 0.72);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 14px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.nav-back {
  color: var(--text-soft);
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  transition: var(--tr);
}
.nav-back:hover { color: var(--text); border-color: var(--border-strong); background: var(--bg-card); }
.nav-back:focus-visible { outline: 2px solid var(--acid); outline-offset: 2px; }
.nav-brand {
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
  font-size: 17px;
}
.brand-acid { color: var(--acid); }

/* ----------------------------------------------------------------------
   HERO
   ---------------------------------------------------------------------- */
.hero {
  padding: 70px 0 36px;
  background: radial-gradient(900px 460px at 80% 0%, rgba(200, 255, 0, 0.10), transparent 70%),
              radial-gradient(700px 380px at 0% 60%, rgba(110, 193, 255, 0.06), transparent 70%);
  border-bottom: 1px solid var(--border);
}
@media (max-width: 720px) { .hero { padding: 46px 0 26px; } }

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}
.tag {
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--bg-card);
  color: var(--text-soft);
}
.tag-acid {
  background: var(--acid-soft);
  color: var(--acid);
  border-color: rgba(200, 255, 0, 0.30);
}
.tag-priv {
  background: rgba(123, 228, 149, 0.10);
  color: var(--priv);
  border-color: rgba(123, 228, 149, 0.30);
}

.hero h1 {
  font-size: clamp(28px, 4.2vw, 46px);
  line-height: 1.1;
  margin: 0 0 16px;
  letter-spacing: -0.02em;
  font-weight: 800;
  color: var(--text);
  max-width: 920px;
}
.hero h1 .accent {
  background: linear-gradient(90deg, var(--acid), var(--priv));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lede {
  font-size: clamp(15px, 1.6vw, 17.5px);
  color: var(--text-soft);
  max-width: 820px;
  margin: 0 0 22px;
  line-height: 1.65;
}
.hero-lede strong { color: var(--text); font-weight: 600; }

.hero-disclaimer {
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-left: 3px solid var(--priv);
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  font-size: 14.5px;
  color: var(--text-soft);
  max-width: 880px;
  margin: 0;
}
.hero-disclaimer strong { color: var(--text); }

/* ----------------------------------------------------------------------
   TOOL SECTION
   ---------------------------------------------------------------------- */
.tool-section { padding: 42px 0 22px; }

.tool-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow);
}
@media (max-width: 720px) { .tool-card { padding: 18px; border-radius: var(--radius); } }

.section-title {
  font-size: 20px;
  margin: 0 0 6px;
  color: var(--text);
  letter-spacing: -0.01em;
  font-weight: 700;
}
.panel-hint {
  margin: 0 0 18px;
  font-size: 14px;
  color: var(--text-dim);
  max-width: 760px;
}

/* ----------------------------------------------------------------------
   DROPZONE
   ---------------------------------------------------------------------- */
.dropzone {
  border: 2px dashed var(--border-strong);
  border-radius: var(--radius);
  background: var(--bg-card-2);
  padding: 28px 20px;
  text-align: center;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  transition: var(--tr);
  user-select: none;
}
.dropzone:hover, .dropzone:focus-visible {
  border-color: var(--acid);
  background: rgba(200, 255, 0, 0.04);
  outline: none;
}
.dropzone.is-drag {
  border-color: var(--acid);
  background: rgba(200, 255, 0, 0.08);
  transform: scale(1.005);
}
.dropzone.is-loaded {
  border-color: var(--priv);
  background: rgba(123, 228, 149, 0.05);
}
.dropzone-icon {
  font-size: 36px;
  line-height: 1;
}
.dropzone-text {
  font-size: 14.5px;
  color: var(--text-soft);
  font-weight: 500;
}
.dropzone-hint {
  font-size: 12px;
  color: var(--text-dim);
}
.dropzone input[type="file"] { display: none; }

.file-list {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.file-row {
  background: var(--bg-card-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.file-row-icon { font-size: 18px; }
.file-row-name {
  flex: 1;
  font-weight: 600;
  font-size: 14px;
  color: var(--text);
  word-break: break-all;
}
.file-row-meta {
  font-size: 12px;
  color: var(--text-dim);
  font-family: var(--font-mono);
}
.file-row-remove {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-dim);
  border-radius: 999px;
  width: 26px;
  height: 26px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  transition: var(--tr);
}
.file-row-remove:hover { color: var(--err); border-color: var(--err); }
.file-row-remove:focus-visible { outline: 2px solid var(--acid); outline-offset: 2px; }

/* Sheet chooser per file */
.sheets-block {
  margin-top: 10px;
  padding: 12px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}
.sheets-block-title {
  font-size: 13px;
  color: var(--text-soft);
  margin: 0 0 8px;
  font-weight: 600;
}
.sheet-checkbox {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 4px 12px 4px 0;
  padding: 4px 10px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 12.5px;
  color: var(--text);
  cursor: pointer;
  user-select: none;
  transition: var(--tr);
}
.sheet-checkbox:hover { border-color: var(--border-strong); }
.sheet-checkbox input { accent-color: var(--acid); }
.sheets-actions {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.sheets-actions button {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-soft);
  padding: 4px 10px;
  font-size: 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: var(--tr);
}
.sheets-actions button:hover { color: var(--acid); border-color: var(--acid); }
.sheets-actions button:focus-visible { outline: 2px solid var(--acid); outline-offset: 2px; }

/* ----------------------------------------------------------------------
   FORM ELEMENTS
   ---------------------------------------------------------------------- */
.mode-block {
  margin-top: 18px;
}
.mode-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 8px;
}
@media (max-width: 720px) { .mode-grid { grid-template-columns: 1fr; } }

.mode-card {
  background: var(--bg-card-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 14px 16px;
  cursor: pointer;
  transition: var(--tr);
  position: relative;
}
.mode-card:hover { border-color: var(--border-strong); }
.mode-card.is-active {
  border-color: var(--acid);
  background: rgba(200, 255, 0, 0.05);
  box-shadow: 0 0 0 1px var(--acid);
}
.mode-card input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.mode-card-title {
  font-weight: 700;
  font-size: 14.5px;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}
.mode-card-desc {
  font-size: 12.5px;
  color: var(--text-dim);
  line-height: 1.45;
}
.mode-card-radio {
  display: inline-block;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid var(--border-strong);
  flex-shrink: 0;
  position: relative;
  transition: var(--tr);
}
.mode-card.is-active .mode-card-radio {
  border-color: var(--acid);
}
.mode-card.is-active .mode-card-radio::after {
  content: '';
  position: absolute;
  inset: 3px;
  background: var(--acid);
  border-radius: 50%;
}
.mode-card:focus-within { outline: 2px solid var(--acid); outline-offset: 2px; }

.opts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin-top: 12px;
}
.opt-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.opt-label {
  font-size: 13px;
  color: var(--text-soft);
  font-weight: 500;
}
.opt-input,
.opt-select {
  background: var(--bg-card-2);
  border: 1px solid var(--border-strong);
  color: var(--text);
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 14px;
  transition: var(--tr);
  width: 100%;
}
.opt-input:focus,
.opt-select:focus {
  border-color: var(--acid);
  outline: none;
}
.opt-input::placeholder { color: var(--text-dim); }

.opt-checkbox {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text);
  cursor: pointer;
  user-select: none;
}
.opt-checkbox input { accent-color: var(--acid); width: 16px; height: 16px; }

/* ----------------------------------------------------------------------
   BUTTONS
   ---------------------------------------------------------------------- */
.btn {
  background: var(--bg-card-2);
  color: var(--text);
  border: 1px solid var(--border-strong);
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 14.5px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--tr);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}
.btn:hover { border-color: var(--text-soft); }
.btn:focus-visible { outline: 2px solid var(--acid); outline-offset: 2px; }
.btn:disabled,
.btn[aria-disabled="true"] {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}
.btn-primary {
  background: var(--acid);
  color: #000;
  border-color: var(--acid);
}
.btn-primary:hover { background: var(--acid-dim); border-color: var(--acid-dim); }
.btn-secondary {
  background: var(--bg-card);
  color: var(--text);
}
.btn-ghost {
  background: transparent;
  color: var(--text-soft);
  border-color: var(--border);
}
.btn-ghost:hover { color: var(--text); border-color: var(--border-strong); }
.btn-lg { padding: 14px 26px; font-size: 16px; }

.cta-row {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}
.compare-hint {
  font-size: 13px;
  color: var(--text-dim);
}

/* ----------------------------------------------------------------------
   BANNERS / CALLOUTS
   ---------------------------------------------------------------------- */
.callout {
  border-radius: var(--radius);
  padding: 14px 16px;
  margin: 14px 0;
  font-size: 14px;
  line-height: 1.55;
}
.callout-warn {
  background: var(--warn-soft);
  border: 1px solid rgba(255, 180, 84, 0.30);
  color: var(--warn);
}
.callout-err {
  background: var(--err-soft);
  border: 1px solid rgba(255, 112, 102, 0.30);
  color: var(--err);
}
.callout-info {
  background: rgba(110, 193, 255, 0.06);
  border: 1px solid rgba(110, 193, 255, 0.25);
  color: var(--info);
}
.callout-ok {
  background: rgba(123, 228, 149, 0.06);
  border: 1px solid rgba(123, 228, 149, 0.25);
  color: var(--priv);
}
.callout h3 { margin: 0 0 8px; font-size: 15.5px; }
.callout p { margin: 0 0 8px; }
.callout ul { margin: 6px 0 0; padding-left: 18px; }
.callout li { margin-bottom: 4px; }
.callout strong { color: var(--text); }

/* ----------------------------------------------------------------------
   STATS
   ---------------------------------------------------------------------- */
.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
  margin: 16px 0;
}
.stat {
  background: var(--bg-card-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.stat-num {
  font-size: 22px;
  font-weight: 800;
  color: var(--text);
  font-family: var(--font-mono);
  letter-spacing: -0.01em;
}
.stat-label {
  font-size: 12.5px;
  color: var(--text-dim);
}
.stat-formula .stat-num { color: var(--acid); }
.stat-styles .stat-num { color: var(--info); }

/* ----------------------------------------------------------------------
   PREVIEW TABLE (HTML)
   ---------------------------------------------------------------------- */
.preview-wrap {
  margin-top: 18px;
  overflow: auto;
  max-height: 420px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-soft);
}
.preview-empty {
  margin: 0;
  padding: 24px;
  text-align: center;
  color: var(--text-dim);
  font-size: 13.5px;
}
.preview-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
  font-family: var(--font-mono);
  color: var(--text);
}
.preview-table th {
  background: var(--bg-card);
  color: var(--text-soft);
  text-align: left;
  padding: 8px 10px;
  border-bottom: 1px solid var(--border-strong);
  position: sticky;
  top: 0;
  font-weight: 600;
  z-index: 1;
}
.preview-table td {
  padding: 6px 10px;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
  max-width: 320px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.preview-table tr:nth-child(even) td { background: rgba(255,255,255,0.01); }
.preview-table .td-formula { color: var(--acid); }
.preview-table .td-num { color: var(--text); }

/* ----------------------------------------------------------------------
   PROGRESS BAR
   ---------------------------------------------------------------------- */
.progress-wrap {
  margin: 14px 0;
  display: flex;
  align-items: center;
  gap: 12px;
}
.progress-track {
  flex: 1;
  height: 8px;
  background: var(--bg-card-2);
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid var(--border);
}
.progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--acid), var(--priv));
  transition: width 180ms ease;
}
.progress-label {
  font-size: 12px;
  font-family: var(--font-mono);
  color: var(--text-soft);
  min-width: 50px;
  text-align: right;
}

/* ----------------------------------------------------------------------
   CONTENT SECTIONS
   ---------------------------------------------------------------------- */
.content-section { padding: 50px 0 30px; }
.content-section h2 {
  font-size: clamp(22px, 2.5vw, 30px);
  margin: 38px 0 14px;
  letter-spacing: -0.01em;
  color: var(--text);
  font-weight: 800;
}
.content-section h2:first-child { margin-top: 0; }
.content-section p {
  color: var(--text-soft);
  font-size: 15.5px;
  line-height: 1.7;
  max-width: 860px;
}
.content-section p strong { color: var(--text); }
.content-list {
  max-width: 860px;
  margin: 0 0 18px;
  padding-left: 22px;
  color: var(--text-soft);
  font-size: 15px;
  line-height: 1.7;
}
.content-list li { margin-bottom: 8px; }
.content-list li strong { color: var(--text); }
.content-list a {
  color: var(--acid);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.content-list a:hover { color: var(--acid-dim); }

.funcs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
  max-width: 1000px;
  margin: 14px 0 22px;
}
.func-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 18px 16px;
}
.func-card h3 {
  font-size: 16px;
  margin: 0 0 6px;
  color: var(--text);
  font-weight: 700;
}
.func-card p {
  font-size: 13.5px;
  color: var(--text-soft);
  margin: 0 0 10px;
  line-height: 1.55;
}
.func-syntax {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--acid);
  background: var(--bg-soft);
  padding: 6px 10px;
  border-radius: 6px;
  display: inline-block;
  border: 1px solid var(--border);
}

/* ----------------------------------------------------------------------
   FAQ
   ---------------------------------------------------------------------- */
.faq-list { max-width: 880px; margin-top: 14px; }
.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
  padding: 14px 18px;
  transition: var(--tr);
}
.faq-item[open] { border-color: var(--border-strong); }
.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--text);
  font-size: 15px;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 10px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::before {
  content: '+';
  display: inline-flex;
  width: 18px;
  height: 18px;
  border-radius: 4px;
  background: var(--bg-card-2);
  color: var(--acid);
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  flex-shrink: 0;
  transition: var(--tr);
}
.faq-item[open] summary::before { content: '−'; background: var(--acid); color: #000; }
.faq-item summary:focus-visible { outline: 2px solid var(--acid); outline-offset: 2px; }
.faq-item p {
  margin: 10px 0 0;
  color: var(--text-soft);
  font-size: 14.5px;
  line-height: 1.65;
}

/* ----------------------------------------------------------------------
   ADSENSE SECTION
   ---------------------------------------------------------------------- */
.ad-section { padding: 18px 0; }

/* ----------------------------------------------------------------------
   FOOTER
   ---------------------------------------------------------------------- */
.site-footer {
  margin-top: 50px;
  padding: 30px 0 26px;
  border-top: 1px solid var(--border);
  background: var(--bg-soft);
}
.site-footer p {
  margin: 4px 0;
  color: var(--text-dim);
  font-size: 13.5px;
  text-align: center;
}
.site-footer a {
  color: var(--text-soft);
  text-decoration: none;
}
.site-footer a:hover { color: var(--acid); }
.footer-brand { color: var(--text); font-weight: 800; }
.footer-meta { font-size: 12px; }

.footer-disclaimer {
  font-size: 12.5px !important;
  color: var(--text-dim);
  font-style: italic;
  max-width: 820px;
  margin: 14px auto 0 !important;
}

/* ----------------------------------------------------------------------
   OFFLINE BANNER
   ---------------------------------------------------------------------- */
.offline-banner {
  position: fixed;
  bottom: 18px;
  right: 18px;
  background: var(--bg-card);
  border: 1px solid var(--priv);
  color: var(--text);
  padding: 10px 14px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  z-index: 80;
  box-shadow: var(--shadow);
  max-width: 360px;
}
.offline-banner-icon { color: var(--priv); font-weight: 700; }
.offline-banner-close {
  background: transparent;
  border: 0;
  color: var(--text-dim);
  cursor: pointer;
  font-size: 18px;
  padding: 0 4px;
  line-height: 1;
}
.offline-banner-close:hover { color: var(--text); }

/* ----------------------------------------------------------------------
   DONATION TOAST
   ---------------------------------------------------------------------- */
.donation-toast {
  position: fixed;
  bottom: 18px;
  left: 18px;
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 70;
  box-shadow: var(--shadow);
  max-width: 360px;
  animation: slideUp 320ms cubic-bezier(0.2, 0.7, 0.3, 1);
}
@keyframes slideUp {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.donation-toast-icon { font-size: 22px; flex-shrink: 0; }
.donation-toast-content { flex: 1; }
.donation-toast-title { margin: 0; font-weight: 700; color: var(--text); font-size: 13.5px; }
.donation-toast-subtitle { margin: 2px 0 0; color: var(--text-dim); font-size: 12.5px; }
.donation-toast-btn {
  background: var(--acid);
  color: #000;
  padding: 8px 14px;
  border-radius: 6px;
  font-weight: 700;
  text-decoration: none;
  font-size: 12.5px;
  flex-shrink: 0;
}
.donation-toast-btn:hover { background: var(--acid-dim); }
.donation-toast-btn:focus-visible { outline: 2px solid var(--acid); outline-offset: 2px; }
.donation-toast-close {
  background: transparent;
  border: 0;
  color: var(--text-dim);
  cursor: pointer;
  font-size: 18px;
  padding: 0 4px;
  line-height: 1;
}
.donation-toast-close:hover { color: var(--text); }
@media (max-width: 720px) {
  .offline-banner,
  .donation-toast { left: 12px; right: 12px; bottom: 12px; max-width: none; }
}

/* ----------------------------------------------------------------------
   PRIVACY INLINE
   ---------------------------------------------------------------------- */
.privacy-inline {
  margin: 10px 0 0;
  font-size: 12.5px;
  color: var(--text-dim);
}

/* ----------------------------------------------------------------------
   MODAL
   ---------------------------------------------------------------------- */
.modal { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; }
.modal[hidden] { display: none; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.65); backdrop-filter: blur(4px); }
.modal-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 24px 22px;
  max-width: 480px;
  width: calc(100% - 36px);
  box-shadow: var(--shadow);
}
.modal-title { margin: 0 0 8px; font-size: 18px; color: var(--text); font-weight: 700; }
.modal-desc { margin: 0 0 18px; color: var(--text-soft); font-size: 14px; line-height: 1.6; }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; }

/* ----------------------------------------------------------------------
   THEME TOGGLE (light/dark) - optional
   ---------------------------------------------------------------------- */
.theme-toggle {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-soft);
  border-radius: 999px;
  padding: 5px 10px;
  cursor: pointer;
  font-size: 12.5px;
  transition: var(--tr);
  margin-left: 8px;
}
.theme-toggle:hover { color: var(--acid); border-color: var(--acid); }
.theme-toggle:focus-visible { outline: 2px solid var(--acid); outline-offset: 2px; }

@media (prefers-color-scheme: light) {
  :root.theme-auto {
    --bg: #f7f7f8;
    --bg-soft: #fafafa;
    --bg-card: #ffffff;
    --bg-card-2: #f3f3f5;
    --border: #e0e0e5;
    --border-strong: #c8c8ce;
    --text: #16161a;
    --text-soft: #4a4a52;
    --text-dim: #7d7d85;
    --shadow: 0 14px 30px rgba(0,0,0,0.06);
  }
}