/* ============================================================
   PDF TOOLKIT — styles.css
   Design system: dark glassmorphic + vivid gradient accents
   ============================================================ */

/* ── 1. CSS Custom Properties ── */
:root {
  --bg-base: #09090f;
  --bg-surface: rgba(255, 255, 255, 0.04);
  --bg-surface-hover: rgba(255, 255, 255, 0.07);
  --bg-glass: rgba(255, 255, 255, 0.05);
  --border: rgba(255, 255, 255, 0.09);
  --border-hover: rgba(255, 255, 255, 0.18);

  /* Brand */
  --indigo: #6366f1;
  --violet: #8b5cf6;
  --rose: #f43f5e;
  --sky: #0ea5e9;
  --emerald: #10b981;
  --amber: #f59e0b;

  /* Gradient presets */
  --grad-brand: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  --grad-rose:  linear-gradient(135deg, #f43f5e 0%, #ec4899 100%);
  --grad-sky:   linear-gradient(135deg, #0ea5e9 0%, #6366f1 100%);

  /* Text */
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;

  /* Sizing */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0,0,0,.35);
  --shadow-md: 0 8px 32px rgba(0,0,0,.45);
  --shadow-lg: 0 20px 60px rgba(0,0,0,.55);
  --shadow-glow-indigo: 0 0 40px rgba(99,102,241,.25);
  --shadow-glow-rose:   0 0 40px rgba(244,63,94,.25);
  --shadow-glow-sky:    0 0 40px rgba(14,165,233,.25);

  --transition: .22s cubic-bezier(.4,0,.2,1);
}

/* ── 2. Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg-base);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.6;
}

/* ── 3. Background blobs ── */
.bg-blob {
  position: fixed;
  border-radius: 50%;
  filter: blur(90px);
  opacity: .35;
  pointer-events: none;
  z-index: 0;
  animation: blobFloat 12s ease-in-out infinite alternate;
}

.blob-1 {
  width: 520px; height: 520px;
  background: radial-gradient(circle, #6366f1 0%, transparent 70%);
  top: -180px; left: -140px;
  animation-delay: 0s;
}
.blob-2 {
  width: 440px; height: 440px;
  background: radial-gradient(circle, #8b5cf6 0%, transparent 70%);
  top: 40vh; right: -160px;
  animation-delay: -4s;
}
.blob-3 {
  width: 360px; height: 360px;
  background: radial-gradient(circle, #f43f5e 0%, transparent 70%);
  bottom: -120px; left: 30%;
  animation-delay: -8s;
}

@keyframes blobFloat {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(30px, 40px) scale(1.08); }
}

/* ── 4. Header ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(9, 9, 15, 0.75);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.logo-icon { width: 36px; height: 36px; flex-shrink: 0; }
.logo-text {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -.5px;
}
.logo-accent { color: var(--indigo); }

/* Nav pills */
.nav-pills {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  padding: 5px;
}

.nav-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px;
  border-radius: var(--radius-full);
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-family: 'Inter', sans-serif;
  font-size: .85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
}
.nav-pill svg { width: 16px; height: 16px; flex-shrink: 0; }
.nav-pill:hover { color: var(--text-primary); background: var(--bg-surface-hover); }
.nav-pill.active {
  background: var(--grad-brand);
  color: #fff;
  box-shadow: 0 0 20px rgba(99,102,241,.4);
}

/* ── Digital Heroes branded link button ── */
.dh-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 18px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: .82rem;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: .2px;
  white-space: nowrap;
  flex-shrink: 0;
  box-shadow: 0 0 18px rgba(245,158,11,.35);
  transition: all var(--transition);
}
.dh-btn svg { width: 14px; height: 14px; flex-shrink: 0; }
.dh-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 24px rgba(245,158,11,.55);
  filter: brightness(1.08);
}
.dh-btn:active { transform: scale(.97); }

/* ── 5. Hero ── */
.hero {
  text-align: center;
  padding: 72px 24px 40px;
  position: relative;
  z-index: 1;
}

.hero-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 800;
  letter-spacing: -1.5px;
  line-height: 1.1;
  margin-bottom: 16px;
}

.gradient-text {
  background: var(--grad-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 520px;
  margin: 0 auto 28px;
}

.feature-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}
.feature-badges span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .82rem;
  font-weight: 500;
  color: var(--text-secondary);
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  padding: 5px 14px;
}
.feature-badges svg { width: 14px; height: 14px; flex-shrink: 0; }

/* ── 6. Tool Panels ── */
.tools-container {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 24px 80px;
  position: relative;
  z-index: 1;
}

.tool-panel {
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 36px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  animation: panelIn .3s ease;
}

@keyframes panelIn {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Panel header */
.panel-header {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 28px;
}

.panel-icon {
  width: 52px; height: 52px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.panel-icon svg { width: 26px; height: 26px; }

.merge-icon   { background: var(--grad-brand); box-shadow: var(--shadow-glow-indigo); }
.delete-icon  { background: var(--grad-rose);  box-shadow: var(--shadow-glow-rose); }
.convert-icon { background: var(--grad-sky);   box-shadow: var(--shadow-glow-sky); }

.panel-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -.4px;
  margin-bottom: 4px;
}
.panel-desc { font-size: .9rem; color: var(--text-secondary); }

/* ── 7. Drop Zone ── */
.drop-zone {
  border: 2px dashed var(--border);
  border-radius: var(--radius-lg);
  padding: 48px 32px;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition);
  position: relative;
  background: var(--bg-surface);
}
.drop-zone:hover,
.drop-zone.drag-over {
  border-color: var(--indigo);
  background: rgba(99,102,241,.06);
  box-shadow: var(--shadow-glow-indigo);
}
.drop-zone:focus-visible {
  outline: 2px solid var(--indigo);
  outline-offset: 3px;
}

.drop-icon { margin-bottom: 14px; }
.drop-icon svg { width: 64px; height: 64px; }

.drop-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
}
.drop-sub {
  font-size: .9rem;
  color: var(--text-secondary);
  margin-bottom: 8px;
}
.drop-link {
  color: var(--indigo);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.drop-hint {
  font-size: .78rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ── 8. File List (Merge) ── */
.file-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 20px;
}

.file-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  transition: all var(--transition);
  cursor: grab;
  position: relative;
  animation: itemSlideIn .2s ease;
}
.file-item:active { cursor: grabbing; }
.file-item:hover { background: var(--bg-surface-hover); border-color: var(--border-hover); }
.file-item.dragging { opacity: .5; border-style: dashed; }
.file-item.drag-over-item { border-color: var(--indigo); box-shadow: 0 0 12px rgba(99,102,241,.3); }

@keyframes itemSlideIn {
  from { opacity: 0; transform: translateX(-10px); }
  to   { opacity: 1; transform: translateX(0); }
}

.file-item-drag-handle {
  color: var(--text-muted);
  cursor: grab;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.file-item-drag-handle span {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
}

.file-item-icon {
  width: 34px; height: 34px;
  background: rgba(99,102,241,.15);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.file-item-icon svg { width: 18px; height: 18px; color: var(--indigo); }

.file-item-info { flex: 1; min-width: 0; }
.file-item-name {
  font-size: .9rem;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.file-item-size { font-size: .75rem; color: var(--text-muted); margin-top: 2px; }

.file-item-order {
  font-size: .75rem;
  font-weight: 700;
  color: var(--text-muted);
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  width: 26px; height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.file-item-remove {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  flex-shrink: 0;
}
.file-item-remove:hover { color: var(--rose); background: rgba(244,63,94,.1); }
.file-item-remove svg { width: 16px; height: 16px; }

/* ── 9. Buttons ── */
.tool-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 24px;
  border-radius: var(--radius-full);
  font-family: 'Inter', sans-serif;
  font-size: .9rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.btn svg { width: 16px; height: 16px; flex-shrink: 0; }

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0);
  transition: background var(--transition);
}
.btn:hover::after { background: rgba(255,255,255,.08); }
.btn:active { transform: scale(.97); }

.btn-primary {
  background: var(--grad-brand);
  color: #fff;
  box-shadow: 0 4px 20px rgba(99,102,241,.45);
}
.btn-primary:hover { box-shadow: 0 6px 28px rgba(99,102,241,.6); }

.btn-danger {
  background: var(--grad-rose);
  color: #fff;
  box-shadow: 0 4px 20px rgba(244,63,94,.45);
}
.btn-danger:hover { box-shadow: 0 6px 28px rgba(244,63,94,.6); }

.btn-convert {
  background: var(--grad-sky);
  color: #fff;
  box-shadow: 0 4px 20px rgba(14,165,233,.45);
}
.btn-convert:hover { box-shadow: 0 6px 28px rgba(14,165,233,.6); }

.btn-ghost {
  background: var(--bg-surface);
  color: var(--text-secondary);
  border: 1px solid var(--border);
}
.btn-ghost:hover { background: var(--bg-surface-hover); color: var(--text-primary); border-color: var(--border-hover); }

.btn:disabled {
  opacity: .5;
  cursor: not-allowed;
  pointer-events: none;
}

/* ── 10. Progress Bar ── */
.progress-bar-wrap {
  margin-top: 24px;
  padding: 20px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  animation: itemSlideIn .2s ease;
}

.progress-bar-track {
  width: 100%;
  height: 6px;
  background: rgba(255,255,255,.08);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  width: 0%;
  border-radius: var(--radius-full);
  background: var(--grad-brand);
  transition: width .4s ease;
}
.delete-fill  { background: var(--grad-rose); }
.convert-fill { background: var(--grad-sky); }

.progress-label {
  font-size: .82rem;
  color: var(--text-secondary);
  margin-top: 10px;
  text-align: center;
}

/* ── 11. Pages Grid (Delete Tool) ── */
.pages-info-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 24px;
  margin-bottom: 16px;
  gap: 12px;
  flex-wrap: wrap;
}

.pages-count-label {
  font-size: .88rem;
  color: var(--text-secondary);
}

.pages-info-actions {
  display: flex;
  gap: 8px;
}

.btn-tiny {
  font-size: .78rem;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
  background: var(--bg-surface);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition);
}
.btn-tiny:hover { color: var(--text-primary); background: var(--bg-surface-hover); }
.btn-tiny-danger { border-color: rgba(244,63,94,.3); color: var(--rose); }
.btn-tiny-danger:hover { background: rgba(244,63,94,.1); border-color: var(--rose); }

.pages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 14px;
}

.page-thumb-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 2px solid var(--border);
  background: var(--bg-surface);
  cursor: pointer;
  transition: all var(--transition);
  animation: thumbIn .25s ease;
}
@keyframes thumbIn {
  from { opacity: 0; transform: scale(.9); }
  to   { opacity: 1; transform: scale(1); }
}

.page-thumb-card:hover { border-color: var(--border-hover); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.page-thumb-card.selected {
  border-color: var(--rose);
  box-shadow: 0 0 16px rgba(244,63,94,.3);
}

.page-thumb-card canvas {
  width: 100% !important;
  height: auto !important;
  display: block;
}

.page-thumb-overlay {
  position: absolute;
  top: 6px; right: 6px;
  width: 22px; height: 22px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,.4);
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}
.page-thumb-card.selected .page-thumb-overlay {
  background: var(--rose);
  border-color: var(--rose);
}
.page-thumb-overlay svg { width: 12px; height: 12px; color: #fff; display: none; }
.page-thumb-card.selected .page-thumb-overlay svg { display: block; }

.page-thumb-num {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: rgba(0,0,0,.7);
  font-size: .72rem;
  font-weight: 600;
  color: #fff;
  text-align: center;
  padding: 4px;
  backdrop-filter: blur(4px);
}
.page-thumb-card.selected .page-thumb-num { background: rgba(244,63,94,.8); }

.page-thumb-delete-badge {
  position: absolute;
  top: 6px; left: 6px;
  background: var(--rose);
  border-radius: 4px;
  font-size: .65rem;
  font-weight: 700;
  color: #fff;
  padding: 2px 6px;
  display: none;
  animation: badgePop .15s ease;
}
@keyframes badgePop {
  from { transform: scale(0); }
  to   { transform: scale(1); }
}
.page-thumb-card.selected .page-thumb-delete-badge { display: block; }

/* ── 12. Convert Preview ── */
.convert-file-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(14,165,233,.1);
  border: 1px solid rgba(14,165,233,.25);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  font-size: .9rem;
  font-weight: 500;
  margin-bottom: 16px;
}

.convert-preview-box {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.convert-preview-label {
  padding: 10px 16px;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border);
  font-size: .8rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: .5px;
  text-transform: uppercase;
}

.convert-preview-content {
  background: #fff;
  color: #1a1a2e;
  padding: 32px 40px;
  max-height: 360px;
  overflow-y: auto;
  font-family: 'Times New Roman', serif;
  font-size: 14px;
  line-height: 1.7;
}

.convert-preview-content h1,
.convert-preview-content h2,
.convert-preview-content h3 { margin: .8em 0 .4em; font-weight: bold; }
.convert-preview-content p  { margin-bottom: .6em; }
.convert-preview-content table { border-collapse: collapse; width: 100%; margin-bottom: 1em; }
.convert-preview-content td, .convert-preview-content th { border: 1px solid #ccc; padding: 6px 10px; }
.convert-preview-content th { background: #f0f0f0; font-weight: bold; }
.convert-preview-content ul, .convert-preview-content ol { padding-left: 2em; margin-bottom: .6em; }

/* ── 13. Toast ── */
.toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: rgba(15, 15, 25, 0.92);
  border: 1px solid var(--border-hover);
  backdrop-filter: blur(16px);
  border-radius: var(--radius-full);
  padding: 12px 28px;
  font-size: .9rem;
  font-weight: 500;
  color: var(--text-primary);
  box-shadow: var(--shadow-md);
  z-index: 9999;
  transition: transform .4s cubic-bezier(.34,1.56,.64,1), opacity .3s ease;
  opacity: 0;
  pointer-events: none;
  white-space: nowrap;
}
.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}
.toast.success { border-color: rgba(16,185,129,.35); }
.toast.error   { border-color: rgba(244,63,94,.35); }
.toast.info    { border-color: rgba(99,102,241,.35); }

/* ── 13b. Contact Section ── */
.contact-section {
  position: relative;
  z-index: 1;
  padding: 48px 24px 56px;
  border-top: 1px solid var(--border);
  background: linear-gradient(180deg,
    rgba(99,102,241,.04) 0%,
    rgba(139,92,246,.06) 100%);
}

.contact-inner {
  max-width: 860px;
  margin: 0 auto;
}

/* Heading row */
.contact-heading {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 32px;
}

.contact-heading-icon {
  width: 52px; height: 52px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  box-shadow: 0 0 28px rgba(99,102,241,.35);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.contact-heading-icon svg { width: 26px; height: 26px; }

.contact-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -.4px;
  margin-bottom: 4px;
}
.contact-subtitle {
  font-size: .9rem;
  color: var(--text-secondary);
}

/* Cards row */
.contact-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

/* Base card */
.contact-card {
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.contact-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  background: var(--grad-brand);
  opacity: 0;
  transition: opacity var(--transition);
}
.contact-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.contact-card:hover::before { opacity: 1; }

/* Email card accent */
.contact-card-email::before { background: var(--grad-rose); }
.contact-card-email:hover {
  box-shadow: 0 8px 32px rgba(244,63,94,.2);
  animation: emailPulse 1.8s ease infinite;
}
@keyframes emailPulse {
  0%, 100% { box-shadow: 0 8px 32px rgba(244,63,94,.2); }
  50%       { box-shadow: 0 8px 40px rgba(244,63,94,.38); }
}

/* Website card accent */
.contact-card-web::before { background: var(--grad-sky); }
.contact-card-web:hover { box-shadow: 0 8px 32px rgba(14,165,233,.2); }

/* Card label (icon + text) */
.contact-card-label {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .8px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 10px;
}
.contact-card-label svg {
  width: 14px; height: 14px;
  flex-shrink: 0;
  color: var(--indigo);
}
.contact-card-email .contact-card-label svg { color: var(--rose); }
.contact-card-web   .contact-card-label svg { color: var(--sky); }

/* Card value */
.contact-card-value {
  font-size: 1.15rem;
  font-weight: 700;
  font-family: 'Space Grotesk', sans-serif;
  color: var(--text-primary);
  letter-spacing: -.3px;
  display: block;
  word-break: break-all;
}

/* Email / link variant */
.contact-email-link {
  text-decoration: none;
  transition: color var(--transition);
}
.contact-card-email .contact-email-link { color: #fb7185; }
.contact-card-email .contact-email-link:hover { color: #fff; }
.contact-card-web   .contact-email-link { color: #38bdf8; }
.contact-card-web   .contact-email-link:hover { color: #fff; }

/* Responsive */
@media (max-width: 600px) {
  .contact-cards { grid-template-columns: 1fr; }
  .contact-heading { flex-direction: column; align-items: flex-start; gap: 12px; }
  .contact-section { padding: 36px 16px 44px; }
}

/* ── 14. Footer ── */
.site-footer {
  text-align: center;
  padding: 28px 24px 48px;
  color: var(--text-muted);
  font-size: .8rem;
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border);
}
.site-footer strong { color: var(--text-secondary); font-weight: 500; }

/* ── 15. Scrollbar ── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,.12); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,.22); }

/* ── 16. Responsive ── */
@media (max-width: 700px) {
  .header-inner { flex-direction: column; height: auto; padding: 14px 16px; gap: 12px; }
  .nav-pills { width: 100%; justify-content: center; }
  .nav-pill { font-size: .78rem; padding: 6px 12px; }
  .dh-btn { width: 100%; justify-content: center; }
  .hero { padding: 48px 16px 28px; }
  .tool-panel { padding: 24px 18px; border-radius: var(--radius-lg); }
  .tools-container { padding: 0 12px 60px; }
  .pages-grid { grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); }
  .tool-actions { flex-direction: column; }
  .btn { width: 100%; justify-content: center; }
  .btn-ghost { order: 2; }
  .convert-preview-content { padding: 20px; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 2rem; }
  .panel-header { flex-direction: column; }
  .feature-badges { gap: 6px; }
  .feature-badges span { font-size: .74rem; padding: 4px 10px; }
  /* Show only the star icon on very small screens */
  .dh-btn span { display: none; }
  .dh-btn { padding: 8px 14px; }
}
