/* ─── Reset & base ──────────────────────────────────────────────────────────── */

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

:root {
  /* Palette */
  --bg:           #f5f5f7;
  --surface:      #ffffff;
  --surface-2:    #f2f2f2;
  --text-1:       #1d1d1f;
  --text-2:       #6e6e73;
  --text-3:       #86868b;
  --accent:       #0071e3;
  --accent-hover: #0077ed;
  --accent-press: #005bb5;
  --green:        #34c759;
  --red:          #ff3b30;
  --separator:    rgba(0,0,0,0.08);
  --separator-strong: rgba(0,0,0,0.14);

  /* Shadows */
  --shadow-xs: 0 1px 2px rgba(0,0,0,0.05);
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.07);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.09);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.12);

  /* Radius */
  --r-sm:  8px;
  --r-md:  12px;
  --r-lg:  18px;
  --r-xl:  24px;

  /* Layout */
  --nav-h:   52px;
  --max-w:   980px;
  --max-w-n: 720px;

  /* Typography */
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
               "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--text-1);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

html { scroll-behavior: smooth; }

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }

img { max-width: 100%; display: block; }

code {
  font-family: "SF Mono", ui-monospace, Menlo, monospace;
  font-size: 0.85em;
  background: var(--surface-2);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--text-1);
}

/* ─── Nav ───────────────────────────────────────────────────────────────────── */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  background: rgba(255,255,255,0.82);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--separator);
  z-index: 200;
  transition: border-color 0.2s;
}

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-1);
  font-weight: 600;
  font-size: 17px;
  letter-spacing: -0.2px;
  text-decoration: none;
  flex-shrink: 0;
}

.nav-icon-img { width: 28px; height: 28px; border-radius: 6px; object-fit: cover; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.nav-link {
  color: var(--text-2);
  font-size: 15px;
  padding: 6px 12px;
  border-radius: 20px;
  transition: color 0.15s, background 0.15s;
  font-weight: 400;
}
.nav-link:hover,
.nav-link.active {
  color: var(--text-1);
  background: var(--separator);
}

.nav-cta {
  background: var(--accent);
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  padding: 7px 16px;
  border-radius: 20px;
  transition: background 0.15s, transform 0.1s;
  margin-left: 4px;
}
.nav-cta:hover { background: var(--accent-hover); color: #fff; }
.nav-cta:active { background: var(--accent-press); transform: scale(0.97); }

/* Hamburger */
.nav-menu-btn {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 22px;
  height: 16px;
  background: none;
  border: none;
  cursor: pointer;
  margin-left: auto;
  padding: 0;
}
.nav-menu-btn span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text-1);
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}

/* Mobile nav */
.nav-mobile {
  display: none;
  flex-direction: column;
  padding: 8px 16px 16px;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(20px);
  border-top: 1px solid var(--separator);
  border-bottom: 1px solid var(--separator);
}
.nav-mobile.open { display: flex; }

.nav-mobile-link {
  display: block;
  color: var(--text-1);
  font-size: 17px;
  padding: 12px 8px;
  border-bottom: 1px solid var(--separator);
  font-weight: 400;
}
.nav-mobile-link:last-child { border-bottom: none; }
.nav-mobile-link.active { color: var(--accent); }

/* ─── Layout helpers ─────────────────────────────────────────────────────────── */

.main { padding-top: var(--nav-h); min-height: 100vh; }

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

.container-narrow {
  max-width: var(--max-w-n);
}

.section {
  padding: 64px 0;
}

.section-title {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--text-1);
  margin-bottom: 24px;
}

.section-label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--text-3);
  margin: 32px 0 12px;
}

/* ─── Hero ──────────────────────────────────────────────────────────────────── */

.hero {
  background: linear-gradient(175deg, #f0f4ff 0%, #f5f5f7 60%);
  padding: 72px 0 56px;
  border-bottom: 1px solid var(--separator);
}

.hero-sm {
  padding: 48px 0 40px;
}

.hero-inner { }

.app-icon-wrap {
  display: flex;
  align-items: center;
  gap: 28px;
}

.app-icon {
  width: 96px;
  height: 96px;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  flex-shrink: 0;
}
.app-icon svg { width: 100%; height: 100%; }

.app-name {
  font-size: 40px;
  font-weight: 700;
  letter-spacing: -1px;
  line-height: 1.1;
  color: var(--text-1);
}

.app-tagline {
  font-size: 19px;
  color: var(--text-2);
  margin-top: 4px;
  font-weight: 400;
}

.app-badges {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 20px;
  letter-spacing: 0.2px;
}
.badge-blue { background: rgba(0,113,227,0.12); color: var(--accent); }
.badge-gray { background: var(--separator); color: var(--text-2); }

/* Page hero (privacy / admin) */
.page-title {
  font-size: 40px;
  font-weight: 700;
  letter-spacing: -1px;
  color: var(--text-1);
  line-height: 1.1;
}
.page-subtitle {
  font-size: 17px;
  color: var(--text-2);
  margin-top: 8px;
}

/* ─── Cards ─────────────────────────────────────────────────────────────────── */

.card {
  background: var(--surface);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.card-body {
  padding: 28px;
}

.card-body p + p,
.card-body p + h3,
.card-body h3 + p,
.card-body p + ul,
.card-body ul + p {
  margin-top: 14px;
}

.card-body h3 {
  font-size: 17px;
  font-weight: 600;
  color: var(--text-1);
  margin-top: 20px;
}

.card-body ul {
  padding-left: 20px;
  color: var(--text-2);
}
.card-body ul li + li { margin-top: 6px; }

.card-body p {
  color: var(--text-2);
  line-height: 1.65;
}

/* ─── Quick cards ────────────────────────────────────────────────────────────── */

.card-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.quick-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--surface);
  border-radius: var(--r-md);
  padding: 16px 18px;
  box-shadow: var(--shadow-xs);
  border: 1px solid var(--separator);
  color: var(--text-1);
  font-size: 15px;
  font-weight: 500;
  transition: box-shadow 0.15s, transform 0.1s;
  text-decoration: none;
}
.quick-card:hover { box-shadow: var(--shadow-md); transform: translateY(-1px); color: var(--text-1); }

.quick-card-icon { font-size: 22px; flex-shrink: 0; }
.quick-card-label { flex: 1; }
.quick-card-arrow { color: var(--text-3); font-size: 20px; }

/* ─── Steps ─────────────────────────────────────────────────────────────────── */

.steps {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 20px;
}

.step {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.step-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 2px;
}

.step-content h3 {
  font-size: 17px;
  font-weight: 600;
  color: var(--text-1);
  margin: 0 0 4px !important;
}
.step-content p {
  color: var(--text-2);
  font-size: 15px;
  margin: 0 !important;
}

/* ─── Accordion ─────────────────────────────────────────────────────────────── */

.accordion {
  background: var(--surface);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.accordion-item {
  border-bottom: 1px solid var(--separator);
  list-style: none;
}
.accordion-item:last-child { border-bottom: none; }

.accordion-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  cursor: pointer;
  font-size: 17px;
  font-weight: 500;
  color: var(--text-1);
  user-select: none;
  list-style: none;
  transition: background 0.15s;
}
.accordion-summary:hover { background: rgba(0,0,0,0.025); }
.accordion-summary::-webkit-details-marker { display: none; }

.accordion-chevron {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  position: relative;
  transition: transform 0.25s ease;
}
.accordion-chevron::before,
.accordion-chevron::after {
  content: '';
  position: absolute;
  top: 50%;
  height: 2px;
  width: 8px;
  background: var(--text-3);
  border-radius: 2px;
  transition: transform 0.25s ease;
}
.accordion-chevron::before { right: 9px; transform: translateY(-50%) rotate(45deg); }
.accordion-chevron::after  { right: 4px; transform: translateY(-50%) rotate(-45deg); }

details[open] .accordion-chevron::before { transform: translateY(-50%) rotate(-45deg); }
details[open] .accordion-chevron::after  { transform: translateY(-50%) rotate(45deg); }

.accordion-body {
  padding: 4px 24px 22px;
}
.accordion-body p { color: var(--text-2); font-size: 15px; }

/* ─── Troubleshooting list ───────────────────────────────────────────────────── */

.trouble-list {
  list-style: none;
  padding: 0;
}
.trouble-list li {
  padding: 18px 24px;
  border-bottom: 1px solid var(--separator);
}
.trouble-list li:last-child { border-bottom: none; }
.trouble-list li strong {
  display: block;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-1);
  margin-bottom: 4px;
}
.trouble-list li p {
  font-size: 15px;
  color: var(--text-2);
  margin: 0;
}
.trouble-list li em { color: var(--text-1); font-style: normal; font-weight: 500; }

/* ─── Contact card ───────────────────────────────────────────────────────────── */

.contact-card {
  background: var(--surface);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-md);
  padding: 48px 32px;
  text-align: center;
  max-width: 480px;
}

.contact-icon { font-size: 48px; margin-bottom: 16px; }
.contact-card h3 { font-size: 24px; font-weight: 700; letter-spacing: -0.5px; margin-bottom: 8px; }
.contact-card p { color: var(--text-2); font-size: 15px; margin-bottom: 24px; }

/* ─── Buttons ────────────────────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 24px;
  border-radius: 980px;
  font-size: 15px;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s, opacity 0.15s;
  text-decoration: none;
  -webkit-font-smoothing: antialiased;
}
.btn:active { transform: scale(0.97); }

.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); color: #fff; }

.btn-secondary { background: var(--surface-2); color: var(--text-1); }
.btn-secondary:hover { background: var(--separator-strong); color: var(--text-1); }

.btn-ghost { background: transparent; color: var(--accent); border: 1.5px solid var(--separator-strong); }
.btn-ghost:hover { background: rgba(0,113,227,0.06); color: var(--accent); }

/* ─── Privacy / prose ────────────────────────────────────────────────────────── */

.prose-card {
  background: linear-gradient(135deg, rgba(0,113,227,0.06), rgba(48,209,88,0.06));
  border-radius: var(--r-lg);
  padding: 28px 32px;
  margin-bottom: 40px;
  border: 1px solid rgba(0,113,227,0.12);
}

.lead {
  font-size: 19px;
  font-weight: 400;
  color: var(--text-1);
  line-height: 1.6;
}

.policy-section {
  margin-bottom: 28px;
}

.policy-section h2 {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.3px;
  color: var(--text-1);
  margin-bottom: 12px;
}

.link { color: var(--accent); text-decoration: none; }
.link:hover { text-decoration: underline; }

.prose { color: var(--text-2); line-height: 1.7; }

/* ─── Admin ──────────────────────────────────────────────────────────────────── */

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

.admin-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--green));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 26px;
  font-weight: 700;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}
.admin-avatar img { width: 100%; height: 100%; object-fit: cover; }

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 12px;
}

.stat-card {
  background: var(--surface);
  border-radius: var(--r-md);
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: var(--shadow-xs);
  border: 1px solid var(--separator);
}

.stat-icon { font-size: 26px; flex-shrink: 0; }
.stat-label { font-size: 12px; color: var(--text-3); font-weight: 500; margin-bottom: 4px; }
.stat-value { font-size: 20px; font-weight: 700; color: var(--text-1); letter-spacing: -0.5px; }
.stat-value-sm { font-size: 13px; font-weight: 600; }

.admin-pages {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.admin-page-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--separator);
  color: var(--text-1);
  text-decoration: none;
  transition: background 0.15s;
}
.admin-page-card:last-child { border-bottom: none; }
.admin-page-card:hover { background: rgba(0,0,0,0.025); }

.admin-page-icon { font-size: 28px; width: 40px; text-align: center; flex-shrink: 0; }
.admin-page-info { flex: 1; }
.admin-page-title { font-size: 16px; font-weight: 600; color: var(--text-1); }
.admin-page-url { font-size: 13px; color: var(--text-3); margin-top: 2px; font-family: "SF Mono", ui-monospace, monospace; }
.admin-page-arrow { color: var(--text-3); font-size: 18px; }

.info-list { display: flex; flex-direction: column; gap: 0; }
.info-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--separator);
}
.info-row:last-child { border-bottom: none; }
.info-row dt { font-size: 14px; color: var(--text-3); min-width: 160px; flex-shrink: 0; }
.info-row dd { font-size: 15px; color: var(--text-1); word-break: break-all; }

.action-row { display: flex; gap: 12px; flex-wrap: wrap; }

/* ─── Error page ─────────────────────────────────────────────────────────────── */

.error-section { min-height: 60vh; display: flex; align-items: center; }
.error-code { font-size: 96px; font-weight: 800; color: var(--separator-strong); letter-spacing: -4px; line-height: 1; }
.error-title { font-size: 32px; font-weight: 700; margin: 8px 0; letter-spacing: -0.5px; }
.error-message { font-size: 17px; color: var(--text-2); }

/* ─── Footer ─────────────────────────────────────────────────────────────────── */

.footer {
  background: rgba(0,0,0,0.03);
  border-top: 1px solid var(--separator);
  padding: 40px 0;
  margin-top: 40px;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-1);
}
.footer-icon-img { width: 22px; height: 22px; border-radius: 5px; object-fit: cover; }

.footer-nav { display: flex; gap: 20px; }
.footer-nav a { font-size: 14px; color: var(--text-2); }
.footer-nav a:hover { color: var(--accent); }

.footer-copy { font-size: 13px; color: var(--text-3); }

/* ─── Responsive ─────────────────────────────────────────────────────────────── */

@media (max-width: 768px) {
  :root { font-size: 16px; }

  .nav-links { display: none; }
  .nav-menu-btn { display: flex; }

  .hero { padding: 40px 0 32px; }
  .app-icon { width: 72px; height: 72px; border-radius: 17px; }
  .app-name { font-size: 30px; }
  .app-tagline { font-size: 16px; }
  .page-title { font-size: 30px; }

  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .section { padding: 40px 0; }
  .section-title { font-size: 22px; }

  .card-body { padding: 20px; }

  .contact-card { padding: 32px 24px; }

  .footer-inner { flex-direction: column; align-items: flex-start; gap: 16px; }

  .info-row { flex-direction: column; gap: 4px; }
  .info-row dt { min-width: unset; }
}

@media (max-width: 480px) {
  .card-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .app-icon-wrap { gap: 16px; }
  .container { padding: 0 16px; }
  .accordion-summary { padding: 16px; }
  .accordion-body { padding: 4px 16px 18px; }
}

/* ─── Admin page actions ─────────────────────────────────────────────────────── */

.admin-page-card { align-items: center; }
.admin-page-actions { display: flex; gap: 8px; flex-shrink: 0; }

/* ─── Editor ─────────────────────────────────────────────────────────────────── */

.back-link {
  font-size: 14px;
  color: var(--accent);
  text-decoration: none;
  display: inline-block;
}
.back-link:hover { text-decoration: underline; }

.editor-toolbar {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.backup-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text-2);
  cursor: pointer;
  user-select: none;
}
.backup-toggle input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
  cursor: pointer;
}

.editor-section { margin-bottom: 32px; }

.editor-section-title {
  font-size: 17px;
  font-weight: 600;
  color: var(--text-1);
  margin-bottom: 12px;
}

.editor-hint {
  font-size: 13px;
  color: var(--text-3);
  margin: -6px 0 12px;
}

.list-item { margin-bottom: 12px; }

.list-item-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.list-item-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.btn-remove {
  background: none;
  border: none;
  color: var(--text-3);
  font-size: 14px;
  cursor: pointer;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, color 0.15s;
  padding: 0;
}
.btn-remove:hover { background: rgba(255,59,48,0.12); color: var(--red); }

.list-item-fields { display: flex; flex-direction: column; gap: 16px; }

.field-group { display: flex; flex-direction: column; gap: 6px; }

.field-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-2);
}

.field-input {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--separator-strong);
  border-radius: var(--r-sm);
  font-size: 15px;
  font-family: inherit;
  color: var(--text-1);
  background: var(--surface);
  transition: border-color 0.15s, box-shadow 0.15s;
  outline: none;
}
.field-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0,113,227,0.15);
}

.field-textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--separator-strong);
  border-radius: var(--r-sm);
  font-size: 15px;
  font-family: inherit;
  color: var(--text-1);
  background: var(--surface);
  resize: vertical;
  transition: border-color 0.15s, box-shadow 0.15s;
  outline: none;
  line-height: 1.55;
}
.field-textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0,113,227,0.15);
}
.field-textarea-code {
  font-family: "SF Mono", ui-monospace, Menlo, monospace;
  font-size: 13px;
}

.add-btn { margin-top: 4px; }

.editor-bottom-bar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  padding: 20px 0 8px;
  border-top: 1px solid var(--separator);
  margin-top: 8px;
}

/* ─── Toast ──────────────────────────────────────────────────────────────────── */

.toast {
  position: fixed;
  bottom: -80px;
  left: 50%;
  transform: translateX(-50%);
  padding: 12px 24px;
  border-radius: 980px;
  font-size: 15px;
  font-weight: 500;
  z-index: 300;
  transition: bottom 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  white-space: nowrap;
  pointer-events: none;
}
.toast-show { bottom: 32px; }
.toast-success { background: #1c1c1e; color: #fff; }
.toast-error   { background: var(--red); color: #fff; }

/* ─── Backup table ───────────────────────────────────────────────────────────── */

.backup-table {
  width: 100%;
  border-collapse: collapse;
}
.backup-table th {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: var(--text-3);
  padding: 12px 20px;
  text-align: left;
  border-bottom: 1px solid var(--separator);
}
.backup-table td {
  padding: 14px 20px;
  border-bottom: 1px solid var(--separator);
  vertical-align: middle;
}
.backup-table tr:last-child td { border-bottom: none; }
.backup-table tr:hover td { background: rgba(0,0,0,0.02); }

.backup-date { color: var(--text-1); font-size: 15px; display: block; }
.backup-time { color: var(--text-3); font-size: 13px; }
.backup-filename { font-size: 12px; word-break: break-all; }
.backup-size { color: var(--text-3); font-size: 13px; }
.backup-actions { display: flex; gap: 8px; justify-content: flex-end; white-space: nowrap; }

.btn-sm { padding: 7px 14px; font-size: 13px; }
.btn-danger { background: rgba(255,59,48,0.1); color: var(--red); }
.btn-danger:hover { background: rgba(255,59,48,0.18); color: var(--red); }

/* ─── Scroll reveal ──────────────────────────────────────────────────────────── */

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}
