:root {
  --bg: #0d0b14;
  --bg-soft: #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;
}

*,
*::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;
}

.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;
}

.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;
}

.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);
}

.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;
}

.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;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px 8px;
  font-size: 0.8rem;
}

.wallet-preview__logo-text {
  font-weight: 700;
  font-size: 0.95rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 60%;
}

.wallet-preview__header {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-align: right;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 38%;
}

.wallet-preview__strip {
  height: 80px;
  background: linear-gradient(135deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02));
  border-top: 1px solid rgba(255,255,255,0.06);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

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

.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 {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 10px 16px 16px;
  font-size: 0.6rem;
  opacity: 0.7;
}

/* 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;
}

.dashboard-card-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
}

.dashboard-card-row div {
  min-width: 0;
}

/* 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 {
    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;
  }
}
