:root {
  /* Colors */
  --bg: #0d0b14;
  --bg-soft: #16121f;
  --bg-card: #16121f;
  --surface: rgba(22, 18, 31, 0.82);
  --surface-strong: rgba(28, 22, 40, 0.95);
  --line: rgba(255, 255, 255, 0.08);
  --text: #f7f0f2;
  --muted: #c4b8c6;
  --accent: #E91E63;
  --accent-soft: #F06292;
  --highlight: #FCE4EC;
  --teal: #F48FB1;
  --danger: #ff7b7b;
  --success: #71d999;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.32);
  --radius: 26px;

  /* Type scale (modular — 1.25 ratio) */
  --text-xs: 0.64rem;
  --text-sm: 0.8rem;
  --text-base: 1rem;
  --text-lg: 1.25rem;
  --text-xl: 1.563rem;
  --text-2xl: 1.953rem;
  --text-3xl: 2.441rem;
  --text-4xl: 3.052rem;

  /* Timing */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --duration-fast: 0.15s;
  --duration-normal: 0.25s;
  --duration-slow: 0.4s;
}

/* Light mode overrides */
[data-theme="light"] {
  --bg: #f5f3f7;
  --bg-soft: #ffffff;
  --bg-card: #ffffff;
  --surface: rgba(255, 255, 255, 0.92);
  --surface-strong: rgba(250, 248, 252, 0.98);
  --line: rgba(0, 0, 0, 0.08);
  --text: #1a1a2e;
  --muted: #6b6280;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.08);
}

[data-theme="light"] body {
  background: linear-gradient(180deg, #f5f3f7 0%, #ede9f2 100%);
}

[data-theme="light"] .glass-card,
[data-theme="light"] .feature-card,
[data-theme="light"] .price-card {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

[data-theme="light"] input,
[data-theme="light"] select,
[data-theme="light"] textarea {
  background: rgba(0, 0, 0, 0.03);
  border-color: rgba(0, 0, 0, 0.12);
  color: var(--text);
}

[data-theme="light"] .snapshot-modal__content {
  background: #fff;
}

[data-theme="light"] .snapshot-modal__header {
  background: #fff;
}

[data-theme="light"] .enrichment-progress {
  background: linear-gradient(135deg, rgba(233, 30, 99, 0.06), rgba(124, 77, 255, 0.06));
}

.theme-toggle {
  background: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--muted);
  font-size: 14px;
  padding: 0;
  min-height: 0;
  box-shadow: none;
  flex-shrink: 0;
}

.theme-toggle:hover {
  color: var(--accent-soft);
  border-color: var(--accent-soft);
}

/* Animation keyframes */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

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

@keyframes slideInRight {
  from { opacity: 0; transform: translateX(20px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Utility animation classes */
.animate-fade-in { animation: fadeIn var(--duration-normal) var(--ease-out) both; }
.animate-fade-in-up { animation: fadeInUp var(--duration-slow) var(--ease-out) both; }
.animate-fade-in-down { animation: fadeInDown var(--duration-normal) var(--ease-out) both; }
.animate-slide-in { animation: slideInRight var(--duration-slow) var(--ease-out) both; }
.animate-pulse { animation: pulse 2s var(--ease-in-out) infinite; }

/* Staggered animation delays */
.stagger-1 { animation-delay: 0.05s; }
.stagger-2 { animation-delay: 0.1s; }
.stagger-3 { animation-delay: 0.15s; }
.stagger-4 { animation-delay: 0.2s; }

/* Loading skeleton */
.skeleton {
  background: linear-gradient(90deg, var(--surface) 25%, var(--surface-strong) 50%, var(--surface) 75%);
  background-size: 400% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 4px;
}

/* Spinner */
.spinner {
  width: 20px;
  height: 20px;
  border: 2px solid var(--line);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  display: inline-block;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Manrope", "Avenir Next", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(233, 30, 99, 0.12), transparent 30%),
    radial-gradient(circle at top right, rgba(173, 20, 87, 0.14), transparent 28%),
    linear-gradient(180deg, #0d0b14 0%, #16121f 50%, #0d0b14 100%);
  color: var(--text);
}

a {
  color: inherit;
  text-decoration: none;
}

main {
  position: relative;
  z-index: 2;
}

.orb {
  position: fixed;
  border-radius: 999px;
  filter: blur(90px);
  pointer-events: none;
  z-index: 0;
}

.orb-one {
  top: 5rem;
  right: 8rem;
  width: 18rem;
  height: 18rem;
  background: rgba(233, 30, 99, 0.12);
}

.orb-two {
  bottom: 8rem;
  left: 6rem;
  width: 20rem;
  height: 20rem;
  background: rgba(173, 20, 87, 0.10);
}

.shell {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
}

.section {
  padding: 3rem 0 5rem;
}

.narrow {
  max-width: 900px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
}

.site-header,
.site-footer {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem 0;
  position: relative;
  z-index: 3;
}

.footer-brand p {
  color: var(--muted);
  font-size: 0.85rem;
  margin: 0.2rem 0;
}

.footer-legal {
  font-size: 0.75rem !important;
  opacity: 0.6;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex-wrap: wrap;
}

.footer-links,
.hero-actions,
.pill-row,
.contact-list,
.showcase-badges {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.brand {
  display: inline-flex;
  gap: 0.75rem;
  align-items: center;
}

.brand-mark {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.75rem;
  object-fit: contain;
}

.brand strong {
  color: var(--accent);
}

.brand small {
  display: block;
  color: var(--muted);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.7rem;
  font-weight: 600;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 3rem;
  padding: 0 0.6rem;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--muted);
  position: relative;
  transition: color 0.15s ease;
}

.nav-link:hover {
  color: var(--text);
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 6px;
  left: 0.6rem;
  right: 0.6rem;
  height: 2px;
  border-radius: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transition: transform 0.2s ease;
}

.nav-link:hover::after {
  transform: scaleX(1);
}

.button,
button {
  border: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 3rem;
  padding: 0 1.1rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--accent-soft));
  color: #fff;
  font-weight: 800;
  box-shadow: 0 12px 24px rgba(233, 30, 99, 0.25);
}

.button-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line);
  box-shadow: none;
}

.wallet-btn {
  background: #000 !important;
  color: #fff !important;
  border: 0 !important;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35) !important;
  font-weight: 700;
  gap: 0.4rem;
}

.wallet-btn:hover {
  background: #222 !important;
}

.hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2rem;
  padding: 3.5rem 0 4rem;
}

.hero h1,
.section-heading h1,
.section-heading h2 {
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(2.4rem, 5vw, 5.1rem);
  line-height: 0.95;
  margin: 0.2rem 0 1rem;
  letter-spacing: -0.04em;
}

.section-heading h2,
.section-heading h1 {
  font-size: clamp(2rem, 4vw, 3.4rem);
}

.lede,
.hero p,
.section p,
.price-card p,
.help-card p,
.public-card p,
.contact-card p {
  color: var(--muted);
  line-height: 1.7;
}

button.contact-action-btn,
a.contact-action-btn,
.contact-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 1.5rem !important;
  min-height: 0 !important;
  min-width: 3.8rem;
  padding: 0 0.6rem !important;
  border-radius: 999px;
  font-size: 0.65rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--accent), var(--accent-soft));
  color: #fff !important;
  text-decoration: none;
  white-space: nowrap;
  border: 0;
  cursor: pointer;
  letter-spacing: 0.02em;
  flex-shrink: 0;
  box-shadow: none !important;
}

.contact-action-btn:hover {
  filter: brightness(1.15);
}

.contact-action-btn--analyze {
  background: linear-gradient(135deg, #7c4dff, #b388ff) !important;
}

.contact-action-btn--delete {
  background: linear-gradient(135deg, #e53935, #ef5350) !important;
}

.contact-search-bar {
  display: flex;
  flex-direction: row !important;
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 1.5rem;
}

.contact-search-input {
  flex: 1;
  min-width: 0;
}

.contact-search-bar .button {
  flex-shrink: 0;
  min-height: 0;
  height: 2.6rem;
  white-space: nowrap;
  padding: 0 1.2rem;
}

/* Contact Card List */
.contact-card__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem;
}

.contact-card__actions {
  display: flex;
  gap: 0.35rem;
  align-items: center;
  flex-shrink: 0;
  flex-wrap: wrap;
  justify-content: flex-end;
}

/* Contact Detail Page */
.contact-detail__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.contact-detail__actions {
  display: flex;
  gap: 0.35rem;
  flex-shrink: 0;
}

.contact-detail__info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.contact-detail__field p {
  margin: 0.25rem 0 0;
}

.contact-detail__label {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  font-weight: 700;
  margin-bottom: 0.2rem;
}

.contact-detail__section {
  margin-top: 1rem;
  border-top: 1px solid var(--line);
  padding-top: 1rem;
}

.contact-detail__section p {
  margin: 0.25rem 0 0;
}

.contact-detail__section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.contact-detail__section-header h2 {
  margin: 0;
}

.enrich-blocks-grid {
  display: grid;
  gap: 0.75rem;
}

.briefing-body p:last-child {
  margin-bottom: 0;
}

/* Detail page tabs */
.detail-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}

.detail-tab {
  padding: 0.6rem 1.25rem;
  border: none;
  background: none;
  color: var(--muted);
  font-size: var(--text-sm);
  font-weight: 700;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all var(--duration-fast) ease;
  min-height: 0;
  box-shadow: none;
}

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

.detail-tab.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* Briefing document formatting */
.briefing-document {
  font-size: 0.88rem;
  line-height: 1.75;
  color: var(--muted);
}

.briefing-document p {
  margin: 0 0 0.75rem;
}

.briefing-document h3,
.briefing-h3 {
  font-size: 1rem;
  font-weight: 800;
  color: var(--accent-soft);
  margin: 1.5rem 0 0.5rem;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid var(--line);
}

.briefing-document h3:first-child,
.briefing-h3:first-child {
  margin-top: 0;
}

.briefing-document strong {
  color: var(--text);
}

.briefing-list {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0;
}

.briefing-list li {
  padding: 0.35rem 0 0.35rem 1rem;
  position: relative;
  font-size: 0.85rem;
  line-height: 1.6;
  border-bottom: none;
}

.briefing-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.7rem;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent-soft);
}

.briefing-list li strong {
  color: var(--accent-soft);
}

/* Snapshot Modal */
.snapshot-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
}

.snapshot-modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

.snapshot-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
}

.snapshot-modal__content {
  position: relative;
  background: var(--bg-card, #16121f);
  border: 1px solid var(--line);
  border-radius: 16px;
  width: 90%;
  max-width: 640px;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
}

.snapshot-modal__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  background: var(--bg-card, #16121f);
  z-index: 1;
}

.snapshot-modal__header h2 {
  margin: 0;
  font-size: 1.1rem;
}

.snapshot-modal__close {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0;
  line-height: 1;
}

.snapshot-modal__close:hover {
  color: var(--text);
}

.snapshot-modal__meta {
  padding: 0.75rem 1.5rem;
  display: flex;
  gap: 0.5rem;
  align-items: center;
  flex-wrap: wrap;
}

.snapshot-modal__body {
  padding: 0 1.5rem 1.5rem;
}

.snapshot-field {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--line);
}

.snapshot-field:last-child {
  border-bottom: none;
}

/* Responsive */
@media (max-width: 768px) {
  .contact-detail__header {
    flex-direction: column;
  }
  .contact-detail__actions {
    width: 100%;
    justify-content: flex-start;
  }
  .contact-detail__info-grid {
    grid-template-columns: 1fr;
  }
  .contact-detail__section-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .contact-card__header {
    flex-direction: column;
    gap: 0.5rem;
  }
  .contact-card__actions {
    width: 100%;
    justify-content: flex-start;
  }
  .contact-search-bar {
    flex-wrap: wrap;
  }
  .snapshot-modal__content {
    width: 95%;
    max-height: 90vh;
    border-radius: 12px;
  }
  .snapshot-modal__header,
  .snapshot-modal__meta,
  .snapshot-modal__body {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

.metric-grid,
.feature-grid,
.pricing-grid,
.dashboard-grid,
.contact-grid,
.faq-grid,
.steps,
.public-card-view {
  display: grid;
  gap: 1.25rem;
  min-width: 0;
}

.public-card-view > * {
  min-width: 0;
}

.metric-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
}

.metric-grid article,
.feature-card,
.price-card,
.glass-card,
.help-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(24px);
}

.metric-grid article {
  padding: 1.2rem;
}

.metric-link {
  text-decoration: none;
  color: inherit;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  border-radius: var(--radius);
}

.metric-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 0 1px var(--accent), var(--shadow);
}

.metric-link article {
  height: 100%;
}

.metric-grid span {
  display: block;
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--accent-soft);
}

.glass-card,
.feature-card,
.price-card,
.help-card {
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.feature-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.pricing-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.dashboard-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 1.5rem;
}

.showcase {
  min-height: 100%;
}

.showcase-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--muted);
}

.dot {
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 50%;
  background: var(--accent);
}

.showcase-badges span,
.pill {
  border-radius: 999px;
  padding: 0.35rem 0.7rem;
  font-size: 0.85rem;
  border: 1px solid rgba(233, 30, 99, 0.3);
  color: var(--accent-soft);
}

.steps {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.steps article {
  padding: 1.1rem 0;
}

.steps span {
  display: inline-block;
  margin-bottom: 1rem;
  color: var(--accent);
  font-size: 2rem;
  font-weight: 800;
}

.price-card.featured {
  outline: 1px solid rgba(233, 30, 99, 0.5);
  transform: translateY(-0.35rem);
}

.billing-toggle {
  padding: 0.5rem 1.25rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
}

.billing-toggle.active {
  background: linear-gradient(135deg, var(--accent), var(--accent-soft));
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 12px rgba(233, 30, 99, 0.25);
}

.tier {
  color: var(--accent);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.auth-shell {
  display: flex;
  justify-content: center;
}

.card-shell {
  display: block;
  overflow: hidden;
}

.public-card-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  min-width: 0;
}

.public-card-layout > * {
  min-width: 0;
}

.auth-card,
.form-card {
  width: min(100%, 520px);
  display: grid;
  gap: 1rem;
}

.password-field {
  position: relative;
  display: flex;
  align-items: center;
}

.password-field input {
  flex: 1;
  padding-right: 2.5rem;
}

.password-toggle {
  position: absolute;
  right: 0.5rem;
  background: none;
  border: 0;
  cursor: pointer;
  color: var(--muted);
  padding: 0.25rem;
  min-height: 0;
  box-shadow: none;
  display: flex;
  align-items: center;
}

.password-toggle:hover {
  color: var(--text);
}

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

.public-card .headline {
  color: var(--accent-soft);
}

.public-card {
  overflow-wrap: break-word;
  word-break: break-word;
  min-width: 0;
}

.contact-list {
  flex-direction: column;
  gap: 0.35rem;
}

.contact-list a {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
  display: block;
}

.card-powered-by {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding-top: 0.75rem;
  margin-top: 0.5rem;
  border-top: 1px solid var(--line);
  font-size: 0.78rem;
  color: var(--muted);
}

.card-powered-by a {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  color: var(--accent);
  font-weight: 700;
  transition: color 0.15s;
}

.card-powered-by a:hover {
  color: var(--accent-soft);
}

.card-powered-by img {
  border-radius: 4px;
}

.card-powered-url {
  margin-left: auto;
  color: var(--muted);
  font-size: 0.72rem;
  opacity: 0.7;
}

label {
  display: grid;
  gap: 0.55rem;
  font-weight: 700;
  font-size: 0.92rem;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1rem;
  padding: 0.9rem 1rem;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  font: inherit;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: rgba(233, 30, 99, 0.45);
  box-shadow: 0 0 0 3px rgba(233, 30, 99, 0.12);
}

textarea {
  resize: vertical;
}

.message {
  border-radius: 1rem;
  padding: 0.85rem 1rem;
}

.message.error {
  background: rgba(255, 123, 123, 0.12);
  border: 1px solid rgba(255, 123, 123, 0.3);
  color: #ffd2d2;
}

.message.success {
  background: rgba(113, 217, 153, 0.12);
  border: 1px solid rgba(113, 217, 153, 0.3);
  color: #d5ffe3;
}

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

.list-clean {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.9rem;
}

.list-clean li {
  display: grid;
  gap: 0.15rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--line);
}

.list-clean span {
  color: var(--muted);
  font-size: 0.95rem;
}

.search-bar {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.cookie-banner {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 20;
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.2rem;
  background: rgba(13, 11, 20, 0.96);
  border: 1px solid var(--line);
  border-radius: 1.2rem;
  box-shadow: var(--shadow);
}

.cookie-banner[hidden] {
  display: none;
}

.prose p {
  max-width: 70ch;
}

/* Wallet Preview */
.wallet-preview {
  width: 340px;
  max-width: 100%;
  border-radius: 16px;
  overflow: hidden;
  font-family: -apple-system, "SF Pro Display", "Helvetica Neue", Arial, sans-serif;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
  position: sticky;
  top: 2rem;
}

.wallet-preview__top {
  display: flex;
  align-items: center;
  padding: 14px 16px 8px;
  font-size: 0.8rem;
}

.wallet-preview__logo-icon {
  border-radius: 4px;
  margin-right: 6px;
  flex-shrink: 0;
}

.wallet-preview__logo-text {
  font-size: 0.95rem;
  white-space: nowrap;
}

.wallet-preview__logo-text strong {
  font-weight: 700;
}

.wallet-preview__logo-text small {
  font-weight: 400;
  text-transform: uppercase;
  font-size: 0.75em;
  letter-spacing: 0.04em;
}

.wallet-preview__body {
  padding: 12px 16px;
}

.wallet-preview__url {
  position: absolute;
  bottom: 10px;
  right: 14px;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  opacity: 0.7;
}

.wallet-preview__field {
  margin-bottom: 8px;
  min-width: 0;
}

.wallet-preview__label {
  display: block;
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 2px;
}

.wallet-preview__value {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wallet-preview__primary .wallet-preview__value {
  font-size: 1.3rem;
  font-weight: 700;
}

.wallet-preview__row {
  display: flex;
  gap: 12px;
}

.wallet-preview__row .wallet-preview__field {
  flex: 1;
  min-width: 0;
}

.wallet-preview__barcode-area {
  position: relative;
  display: flex;
  justify-content: center;
  padding: 10px 16px 32px;
}

/* Analytics */
.analytics-card-list {
  margin-top: 0;
}

.analytics-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

li.analytics-row {
  display: flex !important;
  flex-direction: row !important;
  justify-content: space-between !important;
  align-items: center !important;
  gap: 1rem !important;
  width: 100%;
  padding: 0.75rem 0 !important;
  border-bottom: 1px solid var(--line);
}

.analytics-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.analytics-row:first-child {
  padding-top: 0.25rem;
}

.analytics-row__info {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
  flex: 1;
}

.analytics-row__info strong {
  font-size: 0.95rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.analytics-row__info span {
  font-size: 0.72rem;
  color: var(--muted);
}

.analytics-row__right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.analytics-row__views {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  flex-shrink: 0;
  gap: 0.1rem;
}

.analytics-views-count {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--accent-soft);
  line-height: 1;
}

.analytics-views-label {
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.analytics-empty {
  color: var(--muted);
  padding: 0.5rem 0;
}

/* Help Tooltip */
.help-tip {
  display: inline-flex;
  align-items: center;
  position: relative;
}

.help-tip__icon {
  width: 1.1rem;
  height: 1.1rem;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: inline-grid;
  place-items: center;
  font-size: 0.65rem;
  font-weight: 800;
  color: var(--muted);
  cursor: pointer;
  margin-left: 0.4rem;
  background: transparent;
  box-shadow: none;
  min-height: auto;
  padding: 0;
}

.help-tip__popup {
  display: none;
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  width: 260px;
  padding: 0.75rem;
  background: var(--surface-strong);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
  font-size: 0.82rem;
  font-weight: 400;
  color: var(--muted);
  line-height: 1.5;
  z-index: 10;
}

.help-tip.open .help-tip__popup {
  display: block;
}

/* Help Page */
.help-toc {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.help-toc a {
  display: inline-block;
  padding: 0.4rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.82rem;
  color: var(--muted);
  transition: border-color 0.2s;
}

.help-toc a:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.help-section {
  margin-bottom: 3rem;
}

.help-section h2 {
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.6rem;
  margin-bottom: 1.25rem;
}

.help-guide {
  margin-bottom: 1.25rem;
}

.help-guide h3 {
  margin-bottom: 0.5rem;
  color: var(--accent-soft);
}

.help-guide ol {
  padding-left: 1.25rem;
  color: var(--muted);
  line-height: 1.8;
}

.help-faq {
  display: grid;
  gap: 0.75rem;
}

.help-faq details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 0;
  overflow: hidden;
}

.help-faq summary {
  padding: 1rem 1.2rem;
  cursor: pointer;
  font-weight: 700;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.help-faq summary::after {
  content: "+";
  font-size: 1.2rem;
  color: var(--accent);
  flex-shrink: 0;
  margin-left: 1rem;
}

.help-faq details[open] summary::after {
  content: "-";
}

.help-faq details > div {
  padding: 0 1.2rem 1rem;
  color: var(--muted);
  line-height: 1.7;
}

/* Published Cards Grid */
.published-cards-grid {
  display: grid;
  gap: 0.75rem;
}

.published-card-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255,255,255,0.02);
  transition: border-color 0.15s;
}

.published-card-item:hover {
  border-color: rgba(233,30,99,0.3);
}

.published-card-item__info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.published-card-item__actions {
  display: flex;
  gap: 0.4rem;
  flex-shrink: 0;
}

/* Dashboard equal-height cards */
.dashboard-grid--equal {
  align-items: stretch;
}

.dashboard-card {
  display: flex;
  flex-direction: column;
}

.dashboard-card__body {
  flex: 1;
}

.dashboard-card__footer {
  margin-top: auto;
  padding-top: 0.75rem;
}

.dashboard-card__footer .button {
  width: 100%;
  text-align: center;
}

li.dashboard-card-row {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 0.5rem !important;
  width: 100%;
  padding: 0.5rem 0 !important;
  border-bottom: 1px solid var(--line);
}

li.dashboard-card-row:last-child {
  border-bottom: none;
  padding-bottom: 0 !important;
}

.dashboard-card-row > div {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
  flex: 1;
}

.dash-row-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 1.5rem;
  min-width: 3.5rem;
  padding: 0 0.6rem;
  border-radius: 999px;
  font-size: 0.65rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: none;
  border: 0;
  flex-shrink: 0;
  letter-spacing: 0.02em;
}

.dash-row-btn--cards {
  background: linear-gradient(135deg, var(--accent), var(--accent-soft));
  color: #fff !important;
}

.dash-row-btn--cards:hover {
  filter: brightness(1.1);
}

.dash-row-btn--contacts {
  background: linear-gradient(135deg, #1d9bf0, #0a66c2);
  color: #fff !important;
}

.dash-row-btn--contacts:hover {
  filter: brightness(1.1);
}

.dash-contacts-btn {
  background: linear-gradient(135deg, #1d9bf0, #0a66c2) !important;
  color: #fff !important;
  border: 0 !important;
  box-shadow: 0 6px 16px rgba(29,155,240,0.2) !important;
}

/* Enrichment Blocks */
.enrichment-blocks {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 0.5rem;
}

.enrich-block {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.65rem 0.75rem;
  background: rgba(255,255,255,0.02);
  transition: border-color 0.15s, opacity 0.15s;
}

.enrich-block--pending {
  border-color: rgba(233,30,99,0.25);
  background: rgba(233,30,99,0.03);
}

.enrich-block--approved {
  border-color: rgba(113,217,153,0.25);
  background: rgba(113,217,153,0.03);
}

.enrich-block--denied {
  opacity: 0.4;
  border-color: var(--line);
}

.enrich-block__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.35rem;
}

.enrich-block__label {
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text);
}

.enrich-block__status {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-left: 0.5rem;
  padding: 0.1rem 0.4rem;
  border-radius: 999px;
}

.enrich-block__status--pending {
  color: var(--accent-soft);
  background: rgba(233,30,99,0.1);
}

.enrich-block__status--approved {
  color: var(--success);
  background: rgba(113,217,153,0.1);
}

.enrich-block__status--denied {
  color: var(--muted);
  background: rgba(255,255,255,0.05);
}

.enrich-block__actions {
  display: flex;
  gap: 0.3rem;
}

.enrich-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.6rem;
  min-height: 1.6rem;
  padding: 0 0.35rem;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 800;
  border: 1px solid var(--line);
  background: transparent;
  cursor: pointer;
  box-shadow: none;
  transition: background 0.12s, border-color 0.12s;
}

.enrich-approve {
  color: var(--success);
  border-color: rgba(113,217,153,0.3);
}

.enrich-approve:hover {
  background: rgba(113,217,153,0.12);
  border-color: var(--success);
}

.enrich-deny {
  color: var(--danger);
  border-color: rgba(255,123,123,0.3);
}

.enrich-deny:hover {
  background: rgba(255,123,123,0.1);
  border-color: var(--danger);
}

.enrich-block__body {
  font-size: 0.88rem;
}

/* Subscription / Plan Management */
.plan-current {
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255,255,255,0.02);
}

.plan-current__info {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  flex-wrap: wrap;
}

.plan-current__name {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--accent);
}

.plan-current__price {
  font-size: 1.2rem;
  font-weight: 800;
  margin-left: 0.75rem;
}

.plan-usage-bar {
  margin-top: 0.75rem;
}

.plan-usage-bar span {
  font-size: 0.85rem;
  color: var(--muted);
}

.usage-bar {
  height: 6px;
  border-radius: 3px;
  background: var(--line);
  margin-top: 0.35rem;
  overflow: hidden;
}

.usage-bar__fill {
  height: 100%;
  border-radius: 3px;
  background: linear-gradient(135deg, var(--accent), var(--accent-soft));
  transition: width 0.3s;
}

.plan-feature-pill {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
}

.plan-feature-pill.active {
  border-color: rgba(113,217,153,0.3);
  color: var(--success);
  background: rgba(113,217,153,0.08);
}

.plan-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.75rem;
}

.plan-option {
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255,255,255,0.02);
  transition: border-color 0.15s;
}

.plan-option:hover {
  border-color: rgba(233,30,99,0.3);
}

.plan-option.current {
  border-color: var(--accent);
  background: rgba(233,30,99,0.04);
}

.plan-option__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.plan-option__header strong {
  font-size: 0.95rem;
}

.plan-option__header span {
  font-weight: 800;
  color: var(--accent-soft);
}

.plan-option__badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  padding: 0.3rem 0.6rem;
  border: 1px solid var(--accent);
  border-radius: 999px;
  text-align: center;
  width: 100%;
}

/* Admin Tabs */
.admin-tabs {
  display: flex;
  gap: 0.25rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--line);
  padding-bottom: 0;
  overflow-x: auto;
}

.admin-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.65rem 1rem;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--muted);
  border-bottom: 2px solid transparent;
  transition: color 0.15s, border-color 0.15s;
  white-space: nowrap;
  text-decoration: none;
}

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

.admin-tab.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.admin-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.4rem;
  height: 1.4rem;
  padding: 0 0.35rem;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
}

/* Demo Feature List */
.demo-feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.6rem;
}

.demo-feature-list li {
  padding-left: 1.4rem;
  position: relative;
  color: var(--muted);
  line-height: 1.6;
}

.demo-feature-list li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 800;
}

/* Share Bar */
.share-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  padding-top: 0.5rem;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
  box-shadow: none;
  min-height: auto;
  text-decoration: none;
}

.share-btn:hover {
  border-color: var(--accent);
  color: var(--text);
  background: rgba(233, 30, 99, 0.08);
}

.share-btn.copied {
  border-color: var(--success);
  color: var(--success);
}

.share-btn--linkedin:hover { border-color: #0a66c2; color: #0a66c2; }
.share-btn--twitter:hover { border-color: #1d9bf0; color: #1d9bf0; }
.share-btn--whatsapp:hover { border-color: #25d366; color: #25d366; }
.share-btn--email:hover { border-color: var(--accent-soft); color: var(--accent-soft); }
.share-btn--native:hover { border-color: var(--accent); color: var(--accent); }

.share-btn svg {
  flex-shrink: 0;
}

/* QR Code Section */
.qr-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 0 0;
}

.qr-label {
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.qr-image {
  border-radius: 12px;
}

/* Capture Card */
.capture-card {
  align-self: start;
}

.capture-card label {
  gap: 0.6rem;
  font-size: 0.92rem;
  margin-bottom: 0.25rem;
}

.capture-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

/* Capture Steps */
.capture-steps {
  position: relative;
  display: grid;
  gap: 0.75rem;
}

.capture-step {
  display: none;
}

.capture-step.active,
#step-details.active {
  display: grid;
  gap: 0.75rem;
}

.capture-expand-link {
  color: var(--accent-soft);
  cursor: pointer;
  font-size: 0.9rem;
  text-decoration: underline;
  border: 0;
  background: 0;
  box-shadow: none;
  min-height: auto;
  padding: 0;
  font-weight: 600;
}

.success-banner {
  text-align: center;
  padding: 2rem 1rem;
}

.success-banner .checkmark {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: var(--success);
  display: inline-grid;
  place-items: center;
  margin-bottom: 0.75rem;
  color: #0d0b14;
  font-size: 1.4rem;
  font-weight: 800;
}

.success-banner p {
  color: var(--text);
  font-weight: 600;
}

/* Search enhancements */
.score-bar {
  height: 4px;
  border-radius: 2px;
  background: var(--line);
  margin-top: 0.4rem;
  overflow: hidden;
}

.score-bar__fill {
  height: 100%;
  border-radius: 2px;
  transition: width 0.3s;
}

.score-bar__fill.high { background: var(--success); }
.score-bar__fill.mid { background: var(--accent); }
.score-bar__fill.low { background: var(--muted); }

.match-reasons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.5rem;
}

.match-reason {
  font-size: 0.72rem;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  background: rgba(233,30,99,0.12);
  color: var(--accent-soft);
  border: 1px solid rgba(233,30,99,0.2);
}

.strength-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.strength-badge.strong { background: rgba(113,217,153,0.15); color: var(--success); border: 1px solid rgba(113,217,153,0.3); }
.strength-badge.moderate { background: rgba(233,30,99,0.12); color: var(--accent-soft); border: 1px solid rgba(233,30,99,0.2); }
.strength-badge.weak { background: rgba(255,255,255,0.05); color: var(--muted); border: 1px solid var(--line); }

.conversation-starters {
  margin-top: 0.5rem;
  padding-left: 1rem;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.6;
}

/* User menu dropdown */
.user-menu {
  position: relative;
}

.user-menu__toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  border: 1px solid var(--line);
  box-shadow: none;
  color: var(--text);
  padding: 0 0.75rem;
  min-height: 2.75rem;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.88rem;
}

.user-avatar {
  width: 1.8rem;
  height: 1.8rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-soft));
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 0.75rem;
  font-weight: 800;
  flex-shrink: 0;
}

.user-menu__name {
  max-width: 8rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-menu__dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 240px;
  background: var(--surface-strong);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
  z-index: 30;
  overflow: hidden;
}

.user-menu.open .user-menu__dropdown {
  display: block;
}

.user-menu__header {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--line);
}

.user-menu__header strong {
  display: block;
  font-size: 0.92rem;
}

.user-menu__header span {
  display: block;
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 0.15rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-menu__item {
  display: block;
  padding: 0.6rem 1rem;
  font-size: 0.88rem;
  color: var(--muted);
  transition: background 0.12s, color 0.12s;
}

.user-menu__item:hover {
  background: rgba(255,255,255,0.04);
  color: var(--text);
}

.user-menu__logout {
  border-top: 1px solid var(--line);
  padding: 0;
}

.user-menu__logout button {
  width: 100%;
  background: transparent;
  border: 0;
  box-shadow: none;
  color: var(--danger);
  font-weight: 600;
  font-size: 0.88rem;
  padding: 0.65rem 1rem;
  min-height: auto;
  border-radius: 0;
  text-align: left;
  cursor: pointer;
}

.user-menu__logout button:hover {
  background: rgba(255,123,123,0.08);
}

/* Language Switcher */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  margin-left: 0.5rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.15rem;
}

.lang-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--muted);
  transition: background 0.15s, color 0.15s;
  text-decoration: none;
}

.lang-btn:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.lang-btn.active {
  background: var(--accent);
  color: #fff;
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0.5rem;
  min-height: auto;
  cursor: pointer;
}

.hamburger,
.hamburger::before,
.hamburger::after {
  display: block;
  width: 1.5rem;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}

.hamburger {
  position: relative;
}

.hamburger::before,
.hamburger::after {
  content: "";
  position: absolute;
  left: 0;
}

.hamburger::before {
  top: -6px;
}

.hamburger::after {
  top: 6px;
}

.nav-toggle[aria-expanded="true"] .hamburger {
  background: transparent;
}

.nav-toggle[aria-expanded="true"] .hamburger::before {
  top: 0;
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .hamburger::after {
  top: 0;
  transform: rotate(-45deg);
}

@media (max-width: 980px) {
  .hero,
  .feature-grid,
  .dashboard-grid,
  .public-card-view,
  .public-card-layout,
  .steps,
  .contact-grid {
    grid-template-columns: 1fr !important;
  }

  .capture-grid {
    grid-template-columns: 1fr;
  }

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

  .site-header {
    flex-wrap: wrap;
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .footer-links {
    flex-wrap: wrap;
  }

  .nav-toggle {
    display: flex;
    align-items: center;
    margin-left: auto;
  }

  .site-nav {
    display: none;
    flex-direction: column;
    width: 100%;
    gap: 0.5rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--line);
  }

  .site-nav.open {
    display: flex;
  }

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

  .share-bar {
    gap: 0.4rem;
  }

  .share-btn span {
    display: none;
  }

  .share-btn {
    padding: 0.5rem;
  }

  .public-card h1 {
    font-size: 1.6rem;
    word-break: break-word;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .button,
  .hero-actions .button-ghost,
  .hero-actions .wallet-btn {
    text-align: center;
    width: 100%;
  }

  .qr-section {
    padding: 0.5rem 0;
  }

  .qr-image {
    width: 120px;
    height: 120px;
  }

  .wallet-preview {
    width: 100%;
  }

  .card-powered-by {
    flex-wrap: wrap;
    font-size: 0.72rem;
  }

  .card-powered-url {
    display: none;
  }

  .glass-card,
  .feature-card,
  .price-card {
    padding: 1rem;
  }

  .lang-switcher {
    margin-left: 0;
    margin-top: 0.25rem;
  }

  .admin-tabs {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  /* Forms: stack all multi-column grids */
  [style*="grid-template-columns: 1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 640px) {
  .pricing-grid {
    grid-template-columns: 1fr !important;
  }

  .metric-grid {
    grid-template-columns: 1fr !important;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .section-heading h2,
  .section-heading h1 {
    font-size: 1.5rem;
  }
}

@media (max-width: 480px) {
  .shell {
    width: calc(100% - 1rem);
  }

  .section {
    padding: 1.5rem 0 2.5rem;
  }

  .share-bar {
    justify-content: center;
  }

  .glass-card,
  .feature-card,
  .price-card {
    padding: 0.85rem;
    border-radius: 16px;
  }

  .button,
  button {
    min-height: 2.75rem;
    padding: 0 0.9rem;
    font-size: 0.88rem;
  }
}

/* ══════════════════════════════════════════════════════════════════════ */
/* POLISH: Global transitions & Admin table enhancements                */
/* ══════════════════════════════════════════════════════════════════════ */

/* Smooth transitions on interactive elements */
a, button, .button, input, select, textarea {
  transition: all var(--duration-fast) ease;
}

.glass-card, .feature-card, .price-card {
  transition: transform var(--duration-normal) var(--ease-out), box-shadow var(--duration-normal) var(--ease-out);
}

.glass-card:hover {
  transform: translateY(-1px);
}

.price-card:hover, .feature-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.3);
}

/* Page entry animation */
main > section {
  animation: fadeInUp var(--duration-slow) var(--ease-out) both;
}

/* Metric cards entrance */
.metric-grid article {
  animation: fadeInUp var(--duration-slow) var(--ease-out) both;
}
.metric-grid article:nth-child(1) { animation-delay: 0s; }
.metric-grid article:nth-child(2) { animation-delay: 0.05s; }
.metric-grid article:nth-child(3) { animation-delay: 0.1s; }
.metric-grid article:nth-child(4) { animation-delay: 0.15s; }

/* Success/error messages entrance */
.message {
  animation: fadeInDown var(--duration-normal) var(--ease-out) both;
}

/* Admin tables */
.admin-table {
  width: 100%;
  font-size: var(--text-sm);
  border-collapse: collapse;
}

.admin-table th {
  text-align: left;
  padding: 0.6rem 0.75rem;
  color: var(--muted);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
}

.admin-table th:hover {
  color: var(--accent-soft);
}

.admin-table th .sort-arrow {
  display: inline-block;
  margin-left: 0.25rem;
  opacity: 0.4;
  font-size: 0.65rem;
}

.admin-table th.sorted .sort-arrow {
  opacity: 1;
  color: var(--accent);
}

.admin-table td {
  padding: 0.6rem 0.75rem;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}

.admin-table tbody tr {
  transition: background var(--duration-fast) ease;
}

.admin-table tbody tr:hover {
  background: rgba(233, 30, 99, 0.04);
}

.admin-table tbody tr:last-child td {
  border-bottom: none;
}

/* Admin table filter */
.admin-table-filter {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  align-items: center;
}

.admin-table-filter input {
  flex: 1;
  min-height: 0;
  height: 2rem;
  font-size: var(--text-sm);
  padding: 0 0.6rem;
}

/* Enrichment block entrance */
.enrich-block {
  animation: fadeInUp var(--duration-normal) var(--ease-out) both;
}

/* Contact card hover */
.contact-card {
  transition: transform var(--duration-normal) var(--ease-out), box-shadow var(--duration-normal) var(--ease-out);
}

.contact-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}

/* Enrichment progress tracker */
.enrich-tracker {
  margin-bottom: 1.5rem;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(233, 30, 99, 0.06), rgba(124, 77, 255, 0.06));
  border: 1px solid rgba(233, 30, 99, 0.2);
  padding: 1.25rem;
  animation: fadeInDown var(--duration-normal) var(--ease-out) both;
}

.enrich-tracker__header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--line);
}

.enrich-tracker__header .spinner {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.enrich-tracker__header strong {
  color: var(--accent-soft);
  font-size: 0.88rem;
}

.enrich-tracker__steps {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.enrich-step {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.5rem 0;
  opacity: 0.35;
  transition: opacity var(--duration-normal) ease;
}

.enrich-step.active {
  opacity: 1;
}

.enrich-step.done {
  opacity: 0.7;
}

.enrich-step__icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-xs);
  font-weight: 800;
  flex-shrink: 0;
  border: 1.5px solid var(--line);
  color: var(--muted);
  transition: all var(--duration-normal) ease;
}

.enrich-step.active .enrich-step__icon {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  box-shadow: 0 0 8px rgba(233, 30, 99, 0.4);
}

.enrich-step.done .enrich-step__icon {
  background: var(--success);
  color: #fff;
  border-color: var(--success);
}

.enrich-step__content {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}

.enrich-step__content strong {
  font-size: var(--text-sm);
  color: var(--text);
}

.enrich-step.done .enrich-step__content strong {
  color: var(--muted);
}

.enrich-step__content span {
  font-size: var(--text-xs);
  color: var(--muted);
}

.enrich-step.active .enrich-step__content span {
  color: var(--accent-soft);
}

/* Toast notifications */
.toast-container {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  padding: 0.75rem 1.25rem;
  border-radius: 10px;
  font-size: var(--text-sm);
  font-weight: 600;
  color: #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  animation: fadeInRight var(--duration-normal) var(--ease-out) both;
  max-width: 360px;
}

@keyframes fadeInRight {
  from { opacity: 0; transform: translateX(40px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes fadeOutRight {
  from { opacity: 1; transform: translateX(0); }
  to { opacity: 0; transform: translateX(40px); }
}

.toast--success { background: linear-gradient(135deg, #2E7D32, #43A047); }
.toast--error { background: linear-gradient(135deg, #C62828, #E53935); }
.toast--info { background: linear-gradient(135deg, var(--accent), var(--accent-soft)); }

/* File upload */
.file-upload {
  position: relative;
}

.file-upload input[type="file"] {
  position: absolute;
  width: 0;
  height: 0;
  opacity: 0;
  pointer-events: none;
}

.file-upload__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1rem;
  border-radius: 10px;
  border: 1px dashed var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  font-size: var(--text-sm);
  font-weight: 600;
  cursor: pointer;
  transition: all var(--duration-fast) ease;
}

.file-upload__btn:hover {
  border-color: var(--accent-soft);
  color: var(--accent-soft);
  background: rgba(233, 30, 99, 0.04);
}

.file-upload__btn svg {
  flex-shrink: 0;
}

.file-upload__hint {
  display: block;
  font-size: var(--text-xs);
  color: var(--muted);
  margin-top: 0.35rem;
  opacity: 0.7;
}

.file-upload--has-file .file-upload__btn {
  border-color: var(--success);
  color: var(--success);
  border-style: solid;
}

/* Timeline */
.timeline-form {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
  align-items: center;
}

.timeline-select {
  width: auto;
  min-width: 110px;
  min-height: 0 !important;
  height: 2.4rem;
  font-size: var(--text-sm);
  padding: 0 0.6rem;
}

.timeline-input {
  flex: 1;
  min-height: 0 !important;
  height: 2.4rem;
  font-size: var(--text-sm);
}

.timeline-list {
  max-height: 500px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.timeline-item {
  display: flex;
  gap: 0.75rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--line);
}

.timeline-item:last-child {
  border-bottom: none;
}

.timeline-item__icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
  background: var(--surface-strong);
  border: 1px solid var(--line);
}

.timeline-item__content {
  flex: 1;
  min-width: 0;
}

.timeline-item__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.25rem;
}

.timeline-item__content p {
  margin: 0;
  font-size: var(--text-sm);
  color: var(--text);
  line-height: 1.5;
}

@media (max-width: 640px) {
  .timeline-form {
    flex-wrap: wrap;
  }
  .timeline-select {
    width: 100%;
  }
}

/* Focus visible ring */
:focus-visible {
  outline: 2px solid var(--accent-soft);
  outline-offset: 2px;
}
