:root {
  --bg: #0b1120;
  --bg-accent: radial-gradient(circle at 15% 15%, rgba(59, 130, 246, 0.16), transparent 45%),
               radial-gradient(circle at 85% 20%, rgba(16, 185, 129, 0.12), transparent 40%);
  --surface: #111827;
  --surface-2: #1e293b;
  --border: rgba(148, 163, 184, 0.18);
  --text: #f8fafc;
  --text-muted: #94a3b8;
  --primary: #3b82f6;
  --primary-hover: #2563eb;
  --success: #10b981;
  --success-hover: #059669;
  --warning: #f59e0b;
  --danger: #ef4444;
  --radius: 14px;
  --shadow: 0 20px 45px rgba(2, 6, 23, 0.45);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg);
  background-image: var(--bg-accent);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

/* Legacy shell compatibility (static/index.html) */
.app-shell {
  max-width: 1180px;
  margin: 0 auto;
  padding: 28px 20px 48px;
}

.topbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

/* SSR Site Layout */
.site-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-header {
  border-bottom: 1px solid var(--border);
  background: rgba(11, 17, 32, 0.85);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 40;
}

.header-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 14px 20px 10px;
}

.header-top-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-icon {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  background: linear-gradient(135deg, #3b82f6, #10b981);
  display: grid;
  place-items: center;
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
  box-shadow: 0 8px 20px rgba(59, 130, 246, 0.28);
}

.brand h1 {
  margin: 0;
  font-size: 1.55rem;
  letter-spacing: -0.02em;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.brand-tagline {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.subtitle {
  margin: 2px 0 0;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.header-controls,
.engine-pills {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.lang-switcher {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: #e2e8f0;
  font-size: 0.84rem;
  font-weight: 600;
  text-decoration: none;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.lang-switcher:hover {
  border-color: var(--primary);
  background: var(--surface-2);
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid rgba(148, 163, 184, 0.1);
  overflow-x: auto;
  scrollbar-width: thin;
  padding-bottom: 4px;
}

.header-nav-link {
  flex: 0 0 auto;
  padding: 5px 11px;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.15s ease, background-color 0.15s ease;
}

.header-nav-link:hover {
  color: var(--text);
  background: rgba(148, 163, 184, 0.1);
}

.header-nav-link.active {
  color: #fff;
  background: rgba(59, 130, 246, 0.24);
  border: 1px solid rgba(59, 130, 246, 0.45);
}

.page-main {
  flex: 1;
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 28px 20px 64px;
}

/* Hero */
.hero-section {
  text-align: center;
  margin: 6px auto 26px;
  max-width: 820px;
}

.hero-content h1 {
  margin: 0 0 10px;
  font-size: clamp(1.75rem, 3.2vw, 2.45rem);
  line-height: 1.2;
  letter-spacing: -0.025em;
}

.hero-subtitle {
  margin: 0 auto 18px;
  color: var(--text-muted);
  font-size: 1.04rem;
  max-width: 680px;
}

.trust-badges {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 13px;
  border-radius: 999px;
  font-size: 0.83rem;
  font-weight: 500;
  color: #cbd5e1;
  background: rgba(30, 41, 59, 0.72);
  border: 1px solid var(--border);
}

.trust-check {
  color: var(--success);
  font-weight: 700;
}

/* Status pills */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 13px;
  border-radius: 999px;
  font-size: 0.83rem;
  font-weight: 500;
  background: var(--surface);
  border: 1px solid var(--border);
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-muted);
}

.pill-ok .dot {
  background: var(--success);
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.7);
}

.pill-warn .dot {
  background: var(--warning);
}

.pill-loading .dot {
  background: var(--primary);
}

.main-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.75fr) minmax(280px, 1fr);
  gap: 20px;
  align-items: start;
}

@media (max-width: 960px) {
  .main-grid {
    grid-template-columns: 1fr;
  }
}

.card {
  background: rgba(17, 24, 39, 0.9);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}

.converter-card {
  max-width: 920px;
  margin: 0 auto;
}

.main-grid .converter-card {
  max-width: none;
  margin: 0;
}

.controls-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.local-mode-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 10px;
  background: rgba(16, 185, 129, 0.14);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #a7f3d0;
  font-size: 0.87rem;
  font-weight: 600;
}

.tool-mode-indicator {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.mode-tabs {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
  background: var(--bg);
  padding: 5px;
  border-radius: 10px;
  border: 1px solid var(--border);
}

.tab-btn {
  border: 0;
  background: transparent;
  color: var(--text-muted);
  padding: 8px 13px;
  border-radius: 7px;
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.16s ease;
}

.tab-btn:hover {
  color: var(--text);
}

.tab-btn.active {
  background: var(--primary);
  color: #fff;
}

.engine-select-wrap {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 245px;
}

.engine-select-wrap label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}

.engine-select-wrap select {
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 9px 12px;
  font-size: 0.9rem;
  outline: none;
  cursor: pointer;
}

.engine-select-wrap select:focus {
  border-color: var(--primary);
}

.dropzone {
  border: 2px dashed rgba(96, 165, 250, 0.42);
  border-radius: 12px;
  background: rgba(30, 41, 59, 0.35);
  padding: 38px 20px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.18s ease, background-color 0.18s ease, transform 0.18s ease;
}

.dropzone:hover,
.dropzone.drag-over {
  border-color: var(--primary);
  background: rgba(59, 130, 246, 0.12);
}

.dropzone-icon {
  font-size: 2.3rem;
  margin-bottom: 8px;
}

.dropzone h2 {
  margin: 0 0 8px;
  font-size: 1.18rem;
}

.dropzone p {
  margin: 0 0 18px;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.accept-pill {
  display: inline-block;
  margin-left: 4px;
  padding: 2px 8px;
  border-radius: 6px;
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid var(--border);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.8rem;
  color: #cbd5e1;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 0;
  border-radius: 9px;
  padding: 10px 16px;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, opacity 0.15s ease;
}

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

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

.btn-primary:hover:not(:disabled) {
  background: var(--primary-hover);
}

.btn-secondary {
  background: var(--surface-2);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-secondary:hover:not(:disabled) {
  background: #283548;
}

.btn-success {
  background: var(--success);
  color: #fff;
}

.btn-success:hover:not(:disabled) {
  background: var(--success-hover);
}

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
}

.btn-ghost:hover:not(:disabled) {
  color: var(--text);
  background: rgba(148, 163, 184, 0.08);
}

.btn-sm {
  padding: 6px 11px;
  font-size: 0.82rem;
}

.btn-lg {
  padding: 12px 22px;
  font-size: 0.96rem;
}

.danger-text {
  color: #fca5a5;
}

.hidden {
  display: none !important;
}

.alert-banner {
  margin-top: 14px;
  padding: 11px 14px;
  border-radius: 10px;
  background: rgba(239, 68, 68, 0.14);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #fecaca;
  font-size: 0.9rem;
}

.info-banner {
  margin-top: 14px;
  padding: 11px 14px;
  border-radius: 10px;
  background: rgba(16, 185, 129, 0.14);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #a7f3d0;
  font-size: 0.9rem;
}

.queue-section,
.results-section {
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.section-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.section-header h3 {
  margin: 0;
  font-size: 1.02rem;
}

.section-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.file-list,
.results-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.file-item,
.result-item {
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
}

.file-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.file-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.file-name {
  font-weight: 600;
  font-size: 0.93rem;
  word-break: break-word;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 600;
  background: var(--surface-2);
  color: #cbd5e1;
}

.badge-w2p {
  background: rgba(59, 130, 246, 0.18);
  color: #93c5fd;
}

.badge-p2w {
  background: rgba(16, 185, 129, 0.18);
  color: #6ee7b7;
}

.badge-ok {
  background: rgba(16, 185, 129, 0.2);
  color: #6ee7b7;
}

.badge-err {
  background: rgba(239, 68, 68, 0.2);
  color: #fca5a5;
}

.badge-proc {
  background: rgba(59, 130, 246, 0.2);
  color: #93c5fd;
}

.file-size {
  color: var(--text-muted);
  font-size: 0.82rem;
}

.remove-btn {
  border: 0;
  background: transparent;
  color: var(--text-muted);
  font-size: 1.1rem;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
}

.remove-btn:hover {
  background: rgba(239, 68, 68, 0.16);
  color: #fca5a5;
}

.convert-bar {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
}

.convert-note {
  color: var(--text-muted);
  font-size: 0.85rem;
  max-width: 540px;
}

.progress-summary {
  margin: 3px 0 0;
  color: var(--text-muted);
  font-size: 0.86rem;
}

.progress-track {
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: var(--surface-2);
  overflow: hidden;
  margin-bottom: 14px;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--success));
  transition: width 0.25s ease;
}

.result-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.result-details {
  margin-top: 6px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--text-muted);
  font-size: 0.82rem;
}

.result-warnings {
  margin: 10px 0 0;
  padding: 9px 12px;
  border-radius: 8px;
  background: rgba(245, 158, 11, 0.14);
  border: 1px solid rgba(245, 158, 11, 0.35);
  color: #fde68a;
  font-size: 0.83rem;
}

.result-error {
  margin: 10px 0 0;
  padding: 9px 12px;
  border-radius: 8px;
  background: rgba(239, 68, 68, 0.14);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #fecaca;
  font-size: 0.84rem;
}

.privacy-note {
  margin: 0 0 12px;
  color: var(--text-muted);
  font-size: 0.81rem;
}

/* Legacy info card */
.info-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-weight: 600;
  font-size: 1rem;
  list-style: none;
}

.info-summary::-webkit-details-marker {
  display: none;
}

.info-grid {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.info-item {
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
}

.info-item h4 {
  margin: 0 0 5px;
  font-size: 0.92rem;
  color: #e2e8f0;
}

.info-item p {
  margin: 0;
  font-size: 0.84rem;
  color: var(--text-muted);
}

/* Auth Card */
.auth-card {
  max-width: 480px;
  margin: 36px auto;
  text-align: center;
}

.auth-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.auth-icon {
  font-size: 2.4rem;
}

.auth-inner h2 {
  margin: 0;
  font-size: 1.35rem;
}

.auth-inner p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.auth-form {
  width: 100%;
  display: flex;
  gap: 10px;
  margin-top: 6px;
}

.auth-form input {
  flex: 1;
  min-width: 0;
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 11px 14px;
  font-size: 0.95rem;
  outline: none;
}

.auth-form input:focus {
  border-color: var(--primary);
}

/* Editorial Sections below the fold */
.editorial-section {
  margin-top: 56px;
}

.editorial-section h2 {
  margin: 0 0 20px;
  font-size: 1.45rem;
  letter-spacing: -0.015em;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.editorial-card {
  background: rgba(17, 24, 39, 0.78);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
}

.editorial-card h3 {
  margin: 0 0 8px;
  font-size: 1.03rem;
  color: #f1f5f9;
}

.editorial-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.step-number {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: rgba(59, 130, 246, 0.2);
  border: 1px solid rgba(59, 130, 246, 0.4);
  color: #93c5fd;
  font-weight: 700;
  font-size: 0.9rem;
  display: grid;
  place-items: center;
  margin-bottom: 12px;
}

.supported-formats-bar {
  margin-top: 18px;
  padding: 14px 18px;
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: #cbd5e1;
}

.supported-formats-bar code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.85rem;
  color: #93c5fd;
}

/* All PDF Tools Directory */
.tools-directory-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 12px;
}

.directory-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-radius: 11px;
  background: rgba(17, 24, 39, 0.8);
  border: 1px solid var(--border);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  transition: border-color 0.15s ease, background-color 0.15s ease, transform 0.15s ease;
}

.directory-card:hover {
  border-color: var(--primary);
  background: rgba(30, 41, 59, 0.85);
  transform: translateY(-1px);
}

.directory-card.active {
  border-color: rgba(59, 130, 246, 0.65);
  background: rgba(59, 130, 246, 0.14);
  color: #bfdbfe;
}

.directory-arrow {
  color: var(--text-muted);
}

/* CLS-safe AdSense containers (strictly spaced in editorial sections >= 48px) */
.ad-editorial-break {
  margin: 56px auto;
  max-width: 970px;
}

.ad-slot-container {
  width: 100%;
  min-height: 120px;
  border-radius: 12px;
  border: 1px dashed rgba(148, 163, 184, 0.18);
  background: rgba(15, 23, 42, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.ad-slot-container.ad-slot-rect {
  min-height: 250px;
}

/* FAQ Accordion */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: rgba(17, 24, 39, 0.82);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 20px;
}

.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 1rem;
  color: #f1f5f9;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  font-size: 1.25rem;
  color: var(--text-muted);
  flex-shrink: 0;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-answer {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
}

.faq-answer p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.93rem;
}

/* Legal Pages */
.legal-page {
  max-width: 860px;
  margin: 0 auto;
}

.legal-header {
  margin-bottom: 24px;
}

.legal-header h1 {
  margin: 0 0 8px;
  font-size: clamp(1.65rem, 2.8vw, 2.2rem);
}

.legal-subtitle {
  margin: 0;
  color: var(--text-muted);
  font-size: 1rem;
}

.legal-card {
  padding: 28px 30px;
}

.legal-section + .legal-section {
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
}

.legal-section h2 {
  margin: 0 0 10px;
  font-size: 1.2rem;
  color: #f1f5f9;
}

.legal-section p {
  margin: 0 0 12px;
  color: #cbd5e1;
  font-size: 0.95rem;
}

.legal-bullets {
  margin: 8px 0 0;
  padding-left: 20px;
  color: #cbd5e1;
  font-size: 0.94rem;
}

.legal-bullets li {
  margin-bottom: 6px;
}

.legal-back-row {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  background: rgba(11, 17, 32, 0.92);
  padding: 40px 20px 28px;
}

.footer-inner {
  max-width: 1180px;
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 2fr 1fr;
  gap: 32px;
}

.footer-desc {
  margin: 12px 0 16px;
  color: var(--text-muted);
  font-size: 0.88rem;
  max-width: 320px;
}

.footer-links-col h2,
.footer-legal-col h2 {
  margin: 0 0 12px;
  font-size: 0.86rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #cbd5e1;
}

.footer-tools-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 8px 16px;
}

.footer-legal-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-tools-list a,
.footer-legal-list a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.88rem;
  transition: color 0.15s ease;
}

.footer-tools-list a:hover,
.footer-legal-list a:hover,
.footer-tools-list a.active,
.footer-legal-list a.active {
  color: #fff;
}

.footer-bottom {
  margin-top: 30px;
  padding-top: 18px;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
  color: var(--text-muted);
  font-size: 0.82rem;
}

.footer-bottom p {
  margin: 0;
}

/* Responsive adjustments */
@media (max-width: 820px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .card,
  .legal-card {
    padding: 18px;
  }

  .dropzone {
    padding: 28px 14px;
  }

  .auth-form {
    flex-direction: column;
  }

  .share-bar {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* PWA Install Button & Post-Conversion Share Bar */
#installPwaBtn {
  border-color: rgba(59, 130, 246, 0.45);
  color: #bfdbfe;
  background: rgba(59, 130, 246, 0.12);
}

#installPwaBtn:hover:not(:disabled) {
  background: rgba(59, 130, 246, 0.24);
  color: #ffffff;
}

.share-bar {
  margin-top: 16px;
  padding: 12px 16px;
  border-radius: 10px;
  background: rgba(30, 41, 59, 0.52);
  border: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.share-prompt {
  font-size: 0.88rem;
  font-weight: 500;
  color: #e2e8f0;
}

.share-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.btn-whatsapp {
  background: rgba(16, 185, 129, 0.2);
  color: #6ee7b7;
  border: 1px solid rgba(16, 185, 129, 0.42);
}

.btn-whatsapp:hover:not(:disabled) {
  background: rgba(16, 185, 129, 0.34);
  color: #ecfdf5;
}

.btn-copied {
  border-color: rgba(16, 185, 129, 0.55) !important;
  color: #6ee7b7 !important;
  background: rgba(16, 185, 129, 0.15) !important;
}
