:root {
  --bg: #eef3f7;
  --ink: #102033;
  --muted: #637083;
  --card: #ffffff;
  --line: #d9e2ec;
  --brand: #5fc4bf;
  --brand-strong: #202832;
  --brand-soft: #e7f7f6;
  --brand-copper: #df8248;
  --brand-cream: #f7f2e6;
  --danger: #a94442;
  --ok: #177245;
  --shadow: 0 24px 70px rgba(15, 28, 38, 0.16);
  --profile-cover: linear-gradient(135deg, var(--brand-strong), #2d3740 58%, var(--brand));
  --profile-cover-image: url("/assets/bg-blue-flow.jpg");
  --profile-avatar: linear-gradient(135deg, #c7e1f7, #eef7ff);
  --profile-accent: var(--brand);
  --profile-soft: var(--brand-soft);
}

body[data-profile-bg="blue-flow"] {
  --profile-cover-image: url("/assets/bg-blue-flow.jpg");
  --profile-cover: linear-gradient(135deg, #0a3158, #2e8bcc);
  --profile-avatar: linear-gradient(135deg, #e9f7ff, #6fb7de 48%, #0f4c81);
  --profile-accent: #0d5792;
  --profile-soft: #e7f4ff;
}

body[data-profile-bg="emerald-grid"] {
  --profile-cover-image: url("/assets/bg-emerald-grid.jpg");
  --profile-cover: linear-gradient(135deg, #032f2d, #0f8a6d);
  --profile-avatar: linear-gradient(135deg, #d9fff1, #48c99e 48%, #075e54);
  --profile-accent: #087568;
  --profile-soft: #e2fbf2;
}

body[data-profile-bg="gold-wave"] {
  --profile-cover-image: url("/assets/bg-gold-wave.jpg");
  --profile-cover: linear-gradient(135deg, #111111, #b8923f);
  --profile-avatar: linear-gradient(135deg, #fff5ca, #d6aa45 50%, #1a1712);
  --profile-accent: #15120d;
  --profile-soft: #fff4d8;
}

body[data-profile-bg="coral-flow"] {
  --profile-cover-image: url("/assets/bg-coral-flow.jpg");
  --profile-cover: linear-gradient(135deg, #8f2332, #ef7d63);
  --profile-avatar: linear-gradient(135deg, #fff0e8, #ff9b83 50%, #c83f48);
  --profile-accent: #b73d49;
  --profile-soft: #fff0ee;
}

body[data-profile-bg="graphite"] {
  --profile-cover-image: url("/assets/bg-graphite.jpg");
  --profile-cover: linear-gradient(135deg, #090b0f, #545b64);
  --profile-avatar: linear-gradient(135deg, #f2f4f7, #9aa3ad 48%, #1f2937);
  --profile-accent: #202832;
  --profile-soft: #eef1f5;
}

body[data-profile-bg="violet-tech"] {
  --profile-cover-image: url("/assets/bg-violet-tech.jpg");
  --profile-cover: linear-gradient(135deg, #2a144b, #8256d9);
  --profile-avatar: linear-gradient(135deg, #f4e8ff, #b893ff 50%, #55308f);
  --profile-accent: #6740a8;
  --profile-soft: #f3eafe;
}

body[data-profile-bg="ocean-lines"] {
  --profile-cover-image: url("/assets/bg-ocean-lines.jpg");
  --profile-cover: linear-gradient(135deg, #06253d, #d97757);
  --profile-avatar: linear-gradient(135deg, #e6f7ff, #6398c6 48%, #d97757);
  --profile-accent: #155d82;
  --profile-soft: #eaf6fb;
}

body[data-profile-bg="light-marble"] {
  --profile-cover-image: url("/assets/bg-light-marble.jpg");
  --profile-cover: linear-gradient(135deg, #e7edf3, #9faabd);
  --profile-avatar: linear-gradient(135deg, #ffffff, #cbd5df 52%, #6b7787);
  --profile-accent: #485465;
  --profile-soft: #f4f7fa;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(95, 196, 191, 0.16), transparent 32rem),
    radial-gradient(circle at top right, rgba(223, 130, 72, 0.1), transparent 28rem),
    linear-gradient(135deg, #f8fbfd, var(--bg));
}

a {
  color: inherit;
}

.page {
  width: min(1120px, calc(100% - 28px));
  margin: 0 auto;
  padding: 28px 0 48px;
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  text-decoration: none;
}

.brand-mark {
  width: 36px;
  height: 36px;
  display: block;
  border-radius: 12px;
  box-shadow: 0 10px 24px rgba(7, 20, 33, 0.18);
}

.brand-wordmark {
  height: 38px;
  width: auto;
  display: block;
}

.brand-kit-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.logo-sample {
  display: grid;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px;
  background: var(--card);
}

.logo-sample.dark {
  background: #071421;
  color: #fff;
}

.logo-sample img {
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

.logo-sample .mark-preview {
  width: 112px;
}

.logo-sample span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.logo-sample.dark span {
  color: #b8c7d6;
}

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

.button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 11px 15px;
  background: var(--card);
  color: var(--ink);
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.button.primary {
  border-color: var(--profile-accent);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.18), transparent 42%),
    linear-gradient(135deg, var(--profile-accent), color-mix(in srgb, var(--profile-accent) 72%, #000 28%));
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 10px 20px rgba(16, 32, 51, 0.14);
}

.button.danger {
  border-color: #b42318;
  background: #b42318;
  color: #fff;
}

.danger-zone {
  border-color: rgba(180, 35, 24, 0.28);
  background:
    linear-gradient(135deg, rgba(180, 35, 24, 0.08), rgba(255, 255, 255, 0.92)),
    var(--card);
}

.profile-card .button:not(.primary) {
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(8px);
}

.button.full {
  width: 100%;
}

.password-field span {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.password-field input {
  min-width: 0;
}

.password-field button {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0 14px;
  background: #fff;
  color: var(--profile-accent);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 390px);
  gap: 28px;
  align-items: center;
}

.public-profile-shell {
  min-height: calc(100svh - 96px);
  grid-template-columns: minmax(300px, 430px);
  justify-content: center;
  align-items: stretch;
}

.public-profile-shell .phone {
  width: min(430px, 100%);
  min-height: calc(100svh - 112px);
  display: grid;
}

.public-profile-shell .screen {
  min-height: 100%;
}

.hero h1 {
  margin: 0 0 12px;
  font-size: clamp(36px, 7vw, 72px);
  line-height: 1;
}

.hero p {
  max-width: 680px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.6;
}

.landing-hero {
  align-items: stretch;
}

.landing-card {
  align-self: stretch;
  display: grid;
  align-content: center;
}

.clean-list {
  display: grid;
  gap: 10px;
  margin: 12px 0 0;
  padding-left: 18px;
  color: var(--muted);
  font-weight: 800;
}

.landing-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.mini-label {
  display: inline-flex;
  width: fit-content;
  border-radius: 999px;
  padding: 5px 9px;
  background: var(--brand-soft);
  color: var(--brand-strong);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.market-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
  gap: 18px;
  align-items: center;
  margin-top: 18px;
}

.market-list {
  display: grid;
  gap: 8px;
}

.market-list span {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
  background: #fbfdff;
  color: var(--brand-strong);
  font-weight: 900;
}

.phone {
  width: min(390px, 100%);
  border-radius: 36px;
  padding: 14px;
  background: #17202b;
  box-shadow: var(--shadow);
}

.screen {
  overflow: hidden;
  border-radius: 26px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.36), rgba(255, 255, 255, 0.58)),
    var(--profile-cover-image),
    var(--card);
  background-position: center;
  background-size: cover;
}

.cover {
  min-height: 58px;
  position: relative;
  background:
    radial-gradient(circle at 82% 18%, rgba(255, 255, 255, 0.22), transparent 34%),
    var(--profile-cover-image),
    var(--profile-cover);
  background-position: center;
  background-size: auto, cover, cover;
}

.brand-pill {
  position: absolute;
  right: 16px;
  bottom: 8px;
  border-radius: 999px;
  padding: 7px 11px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--profile-accent);
  font-weight: 700;
  font-size: 13px;
}

.profile-card,
.activation-card {
  display: grid;
  gap: 14px;
  padding: 0 20px 22px;
}

.profile-card {
  backdrop-filter: saturate(1.05);
}

.activation-card {
  padding-top: 20px;
}

.activation-form {
  grid-template-columns: 1fr;
  gap: 10px;
}

.activation-form label {
  font-size: 11px;
}

.activation-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 16px;
  padding-top: 4px;
  font-size: 13px;
  font-weight: 700;
}

.activation-links a {
  color: var(--profile-accent);
  text-decoration: none;
}

.activation-links a:hover {
  text-decoration: underline;
}

.inactive-profile {
  display: grid;
  gap: 10px;
  padding: 34px 22px 38px;
  text-align: center;
}

.inactive-profile h2,
.inactive-profile p {
  margin: 0;
}

.inactive-profile p {
  color: var(--muted);
}

.avatar {
  width: 92px;
  height: 92px;
  display: grid;
  place-items: center;
  margin-top: 12px;
  border: 5px solid rgba(255, 255, 255, 0.86);
  border-radius: 999px;
  background: var(--profile-avatar);
  color: var(--profile-accent);
  font-size: 24px;
  font-weight: 800;
  overflow: hidden;
}

.avatar.has-image {
  background: #ffffff;
  color: transparent;
}

.avatar img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.identity h2,
.activation-card h2 {
  margin: 0 0 4px;
  font-size: 26px;
}

.identity h2 {
  text-shadow: 0 1px 16px rgba(255, 255, 255, 0.68);
}

.identity p,
.activation-card p {
  margin: 0;
  color: #41536a;
  line-height: 1.45;
}

.micro-trust {
  display: inline-flex;
  width: fit-content;
  border-radius: 999px;
  padding: 6px 9px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--profile-accent) !important;
  font-size: 13px;
  font-weight: 700;
}

.quick-grid,
.payment-grid,
.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.payment-section,
.emergency-section,
.panel,
.status-card,
.public-link,
.device-code {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 14px;
  background: #fbfdff;
}

.profile-card .payment-section,
.profile-card .emergency-section,
.profile-card .link-list a {
  background: rgba(255, 255, 255, 0.74);
  backdrop-filter: blur(8px);
  box-shadow: 0 10px 26px rgba(16, 32, 51, 0.08);
}

.emergency-section {
  border-color: color-mix(in srgb, #b42318 32%, var(--line));
}

.medical-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.medical-grid div {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.68);
}

.medical-grid span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.medical-grid strong {
  display: block;
  margin-top: 4px;
}

.emergency-section p {
  margin: 0;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.4;
}

.payment-grid {
  margin-bottom: 8px;
}

.payment-note {
  margin: -2px 0 10px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

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

.section-heading h3 {
  margin: 0;
  font-size: 17px;
}

.section-heading span,
.status-card span,
.public-link span,
label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.pay-button,
.zelle-card {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 10px 11px;
  color: var(--ink);
  font: inherit;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.venmo { background: #008cff; border-color: #008cff; color: #fff; }
.cash-app { background: #00d632; border-color: #00d632; color: #061a0b; }
.paypal { background: #003087; border-color: #003087; color: #fff; }
.stripe { background: #635bff; border-color: #635bff; color: #fff; }
.zelle-card { background: #6d1ed4; border-color: #6d1ed4; color: #fff; }

.zelle-card {
  display: flex;
  grid-column: 1 / -1;
  width: 100%;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  min-height: 42px;
  padding: 10px 14px;
}

.zelle-card span,
.zelle-card strong {
  min-width: 0;
  overflow-wrap: anywhere;
  text-align: left;
}

.zelle-card strong {
  text-align: right;
}

.link-list {
  display: grid;
  gap: 9px;
}

.social-section {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.social-button {
  display: grid;
  gap: 3px;
  align-content: center;
  min-height: 58px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 9px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--ink);
  text-align: center;
  text-decoration: none;
  backdrop-filter: blur(8px);
}

.social-button span {
  font-size: 12px;
  font-weight: 900;
}

.social-button strong {
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: 11px;
  color: var(--muted);
}

.instagram-social {
  border-color: rgba(214, 41, 118, 0.34);
}

.facebook-social {
  border-color: rgba(24, 119, 242, 0.34);
}

.tiktok-social {
  border-color: rgba(17, 24, 39, 0.24);
}

.empty-state {
  color: var(--muted);
  font-size: 13px;
}

.empty-state {
  margin: 0;
}

.link-list a {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px;
  background: #fbfdff;
  text-decoration: none;
}

.link-list span {
  color: var(--muted);
}

.link-list strong {
  min-width: 0;
  overflow-wrap: anywhere;
  text-align: right;
}

.qr-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  color: var(--muted);
  font-size: 13px;
}

.vyntap-verified-link {
  color: var(--profile-accent);
  font-weight: 800;
  text-decoration: none;
}

.vyntap-verified-link:hover {
  text-decoration: underline;
}

.qr {
  width: 54px;
  height: 54px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(90deg, var(--ink) 50%, transparent 0) 0 0 / 12px 12px,
    linear-gradient(var(--ink) 50%, transparent 0) 0 0 / 12px 12px;
  opacity: 0.72;
}

.dashboard {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 22px;
  align-items: start;
}

.admin-shell {
  display: grid;
  gap: 18px;
}

.admin-hero {
  background:
    linear-gradient(135deg, rgba(15, 76, 129, 0.12), rgba(255, 255, 255, 0.88)),
    var(--card);
}

.admin-hero p {
  max-width: 760px;
}

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

.activation-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.activation-lists {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.metric-list {
  display: grid;
  gap: 8px;
}

.metric-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 9px 10px;
  background: #fbfdff;
}

.metric-row div {
  display: grid;
  gap: 2px;
}

.metric-row span,
.metric-row small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.metric-row a {
  color: var(--brand-strong);
  text-decoration: none;
}

.metric-row b {
  color: var(--brand-strong);
  text-align: right;
}

.admin-columns {
  grid-template-columns: minmax(0, 1fr) 320px;
}

.panel {
  background: rgba(255, 255, 255, 0.84);
}

.panel h1,
.panel h2,
.panel h3 {
  margin-top: 0;
}

.dashboard-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 14px;
}

.status-card {
  display: grid;
  gap: 4px;
}

.status-card strong,
.public-link strong {
  color: var(--brand-strong);
}

.public-link {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 16px;
  background: var(--brand-soft);
}

.profile-photo-editor {
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff, #f4f8fc);
}

.profile-photo-preview {
  width: 118px;
  height: 118px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 6px solid #ffffff;
  border-radius: 999px;
  background: var(--profile-avatar);
  box-shadow: 0 16px 36px rgba(15, 35, 54, 0.18);
  color: var(--profile-accent);
  font-size: 30px;
  font-weight: 900;
}

.profile-photo-preview.has-image {
  background: #ffffff;
  color: transparent;
}

.profile-photo-preview img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.profile-photo-editor label {
  width: 100%;
}

.photo-upload-button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 240px;
  border: 1px solid var(--profile-accent);
  border-radius: 13px;
  padding: 11px 15px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.18), transparent 42%),
    linear-gradient(135deg, var(--profile-accent), color-mix(in srgb, var(--profile-accent) 72%, #000 28%));
  color: #fff;
  font-weight: 800;
  cursor: pointer;
}

.photo-upload-button input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.profile-photo-editor small {
  max-width: 520px;
  color: var(--muted);
  text-align: center;
  line-height: 1.45;
}

.visibility-panel {
  display: grid;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 14px;
  margin-bottom: 16px;
  background: #fbfdff;
}

.activity-bars {
  min-height: 180px;
  display: flex;
  gap: 10px;
  align-items: end;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px;
  background: #fbfdff;
  overflow-x: auto;
}

.activity-bar {
  min-width: 56px;
  height: 142px;
  display: grid;
  grid-template-rows: 1fr auto auto;
  gap: 6px;
  align-items: end;
  text-align: center;
}

.activity-bar span {
  width: 100%;
  display: block;
  border-radius: 999px 999px 6px 6px;
  background: linear-gradient(180deg, var(--brand), var(--brand-strong));
}

.activity-bar small {
  color: var(--muted);
  font-size: 12px;
}

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

.plan-list {
  display: grid;
  gap: 10px;
}

.plan-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px;
  background: #fbfdff;
}

.plan-row span {
  min-width: 34px;
  border-radius: 999px;
  padding: 5px 9px;
  background: var(--brand-soft);
  color: var(--brand-strong);
  font-weight: 800;
  text-align: center;
}

.plan-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.plan-card {
  display: grid;
  grid-template-rows: auto auto auto 1fr auto;
  gap: 9px;
  position: relative;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.78);
}

.plan-card.is-featured {
  border-color: color-mix(in srgb, var(--profile-accent) 46%, var(--line));
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.74)),
    linear-gradient(135deg, color-mix(in srgb, var(--profile-accent) 20%, transparent), transparent);
}

.plan-card.is-current {
  border-color: var(--profile-accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--profile-accent) 16%, transparent);
}

.plan-card em {
  width: fit-content;
  border-radius: 999px;
  padding: 4px 8px;
  background: var(--profile-accent);
  color: #fff;
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
}

.plan-card span {
  color: var(--profile-accent);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.plan-card strong {
  font-size: 24px;
}

.plan-card strong small {
  color: var(--muted);
  font-size: 12px;
}

.plan-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.plan-feature-list {
  display: grid;
  gap: 5px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.plan-feature-list li {
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
}

.plan-feature-list li::before {
  content: "+";
  margin-right: 6px;
  color: var(--profile-accent);
  font-weight: 900;
}

.plan-card .button:disabled {
  cursor: default;
  opacity: 0.72;
}

.plan-card .button {
  align-self: end;
  width: 100%;
  min-height: 46px;
}

.payment-summary {
  display: grid;
  gap: 10px;
  margin: 16px 0;
}

.payment-summary div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 11px 12px;
  background: rgba(255, 255, 255, 0.72);
}

.payment-summary span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.payment-summary strong {
  text-align: right;
}

.payment-benefits {
  display: grid;
  gap: 10px;
  border: 1px solid color-mix(in srgb, var(--profile-accent) 22%, var(--line));
  border-radius: 14px;
  padding: 14px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.68)),
    linear-gradient(135deg, color-mix(in srgb, var(--profile-accent) 14%, transparent), transparent);
}

.payment-benefits h2 {
  margin: 0;
  font-size: 18px;
}

.payment-benefits ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.payment-benefits li {
  color: var(--ink);
  font-weight: 800;
}

.payment-benefits li::before {
  content: "+";
  margin-right: 8px;
  color: var(--profile-accent);
  font-weight: 900;
}

.payment-status-paid {
  color: var(--ok);
}

.payment-status-pending {
  color: var(--warn);
}

.insights-panel {
  display: grid;
  gap: 12px;
}

.insights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(112px, 1fr));
  gap: 10px;
}

.insights-grid article,
.insights-locked {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.78);
}

.insights-grid span {
  display: block;
  min-width: 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.2;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.insights-grid strong {
  display: block;
  margin-top: 4px;
  color: var(--profile-accent);
  font-size: 24px;
  line-height: 1.05;
  overflow-wrap: anywhere;
}

.insights-grid small,
.insights-locked p,
.insights-details {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.insights-locked {
  display: grid;
  gap: 6px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.72)),
    linear-gradient(135deg, color-mix(in srgb, var(--profile-accent) 12%, transparent), transparent);
}

.insights-locked strong {
  color: var(--profile-accent);
}

.insights-details {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.insights-clicks {
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.78);
}

.insights-clicks strong {
  color: var(--profile-accent);
}

.insights-clicks div {
  display: grid;
  gap: 8px;
}

.insights-clicks span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-radius: 10px;
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.7);
}

.insights-clicks em {
  color: var(--profile-accent);
  font-style: normal;
  font-weight: 900;
}

.single-experience {
  min-height: calc(100vh - 110px);
  display: grid;
  place-items: center;
  padding: 28px 0;
}

.experience-card {
  width: min(100%, 430px);
  display: grid;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 24px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow);
}

.experience-card h1,
.experience-card p {
  margin: 0;
}

.experience-kicker {
  width: fit-content;
  border-radius: 999px;
  padding: 6px 10px;
  background: var(--profile-accent);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.review-experience {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0.2)),
    radial-gradient(circle at top left, rgba(39, 151, 255, 0.18), transparent 34%);
}

.pet-experience {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.58), rgba(255, 255, 255, 0.2)),
    radial-gradient(circle at top left, rgba(19, 173, 120, 0.18), transparent 34%);
}

.pet-avatar {
  width: 74px;
  height: 74px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: color-mix(in srgb, var(--profile-accent) 16%, #fff);
  color: var(--profile-accent);
  font-weight: 950;
}

.pet-info {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 11px 12px;
  background: rgba(255, 255, 255, 0.76);
}

.pet-info span,
.experience-card small {
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.business-devices {
  display: grid;
  gap: 12px;
}

.business-locked,
.business-device-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.78);
}

.business-locked {
  display: grid;
  gap: 6px;
}

.pro-benefits {
  display: grid;
  gap: 8px;
  border: 1px solid color-mix(in srgb, var(--profile-accent) 22%, var(--line));
  border-radius: 16px;
  padding: 14px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.68)),
    linear-gradient(135deg, color-mix(in srgb, var(--profile-accent) 14%, transparent), transparent);
}

.pro-benefits strong {
  color: var(--profile-accent);
}

.pro-benefits.is-locked {
  opacity: 0.82;
}

.link-device-form input:disabled,
.link-device-form button:disabled {
  cursor: not-allowed;
  opacity: 0.66;
}

.pro-benefits ul {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pro-benefits li {
  font-size: 13px;
  font-weight: 750;
}

.pro-benefits li::before {
  content: "+";
  margin-right: 7px;
  color: var(--profile-accent);
  font-weight: 900;
}

.link-device-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
  gap: 10px;
  align-items: end;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.76);
}

.business-locked p,
.device-limit {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.business-device-list {
  display: grid;
  gap: 12px;
}

.business-device-card {
  display: grid;
  gap: 10px;
}

.business-device-head,
.business-device-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}

.business-device-head > div {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.business-device-head strong {
  overflow-wrap: anywhere;
}

.business-device-head span,
.business-device-meta {
  color: var(--muted);
  font-size: 12px;
}

.article-badge {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 6px 10px;
  color: #fff;
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
  text-transform: uppercase;
}

.article-badge.contact {
  background: linear-gradient(135deg, #0f4c81, #2f7bbd);
}

.article-badge.review {
  background: linear-gradient(135deg, #176d36, #34a853);
}

.article-badge.pet {
  background: linear-gradient(135deg, #6d28d9, #a855f7);
}

.article-description {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
}

.system-health {
  display: grid;
  gap: 12px;
}

.health-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.health-grid div {
  display: grid;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px;
  background: #fbfdff;
}

.health-grid span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.health-grid strong {
  color: var(--ok);
}

.admin-table-wrap {
  overflow-x: auto;
}

.admin-filter-bar {
  display: grid;
  grid-template-columns: minmax(220px, 1.4fr) repeat(3, minmax(150px, 1fr));
  gap: 10px;
  margin: 16px 0 10px;
}

.admin-filter-bar.inventory-filter-bar {
  grid-template-columns: minmax(220px, 1.4fr) auto repeat(3, minmax(150px, 1fr));
}

.filter-actions {
  display: flex;
  gap: 8px;
  align-items: end;
  padding-top: 20px;
}

.admin-filter-bar.compact {
  grid-template-columns: minmax(220px, 360px);
}

.admin-filter-bar label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.admin-filter-bar input,
.admin-filter-bar select {
  margin-top: 6px;
}

.admin-subtitle {
  margin: 18px 0 8px;
  color: var(--ink);
  font-size: 15px;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 1040px;
}

.batch-table-wrap .admin-table {
  min-width: 820px;
}

.admin-table th,
.admin-table td {
  border-bottom: 1px solid var(--line);
  padding: 12px 10px;
  text-align: left;
}

.admin-table th {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

.sort-header {
  appearance: none;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font: inherit;
  font-weight: 900;
  padding: 0;
  text-align: left;
  text-transform: inherit;
  white-space: nowrap;
}

.sort-header::after {
  content: "";
  display: inline-block;
  margin-left: 6px;
  color: var(--brand-strong);
}

.sort-header.is-active[data-direction="asc"]::after {
  content: "^";
}

.sort-header.is-active[data-direction="desc"]::after {
  content: "v";
}

.admin-table a {
  color: var(--brand-strong);
  font-weight: 800;
  text-decoration: none;
}

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

.table-actions a {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 8px;
  background: #fff;
  font-size: 12px;
  white-space: nowrap;
}

.table-subtext {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.table-select {
  min-width: 118px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 7px 8px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 12px;
  font-weight: 800;
}

.batch-group-row td {
  background: #f8fbff;
}

.batch-group-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  align-items: stretch;
  padding: 6px 0;
}

.batch-toggle {
  flex: 1 1 auto;
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  border: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.batch-toggle span {
  border-radius: 999px;
  padding: 5px 8px;
  background: var(--brand-soft);
  color: var(--brand-strong);
  font-size: 12px;
  font-weight: 900;
}

.batch-toggle strong,
.batch-toggle em {
  overflow-wrap: anywhere;
}

.batch-toggle em {
  grid-column: 2;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.batch-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  padding-top: 4px;
}

.inventory-lock-note {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 10px;
  background: #f1f5f9;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.batch-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.batch-metrics span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 26px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 8px;
  background: #fff;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  white-space: nowrap;
}

.batch-metrics strong {
  color: var(--ink);
  font-size: 12px;
}

.batch-metrics.compact {
  min-width: 260px;
}

.device-child-row td {
  background: rgba(255, 255, 255, 0.88);
}

.device-child-row input[type="checkbox"] {
  width: 18px;
  height: 18px;
}

.renewal-pill {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  border-radius: 999px;
  padding: 4px 9px;
  background: #eef6ff;
  color: var(--brand-strong);
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.renewal-pill.renovar {
  background: #fff1f1;
  color: #b42318;
}

.renewal-pill.por-vencer {
  background: #fff7df;
  color: #945a00;
}

.renewal-pill.sin-activar {
  background: #f1f5f9;
  color: var(--muted);
}

.table-action {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  font-weight: 900;
  padding: 7px 10px;
}

.table-action.danger {
  border-color: #ffd3d3;
  color: #b42318;
}

.table-action.ghost-danger {
  background: #fff8f8;
}

.table-action.filter-primary {
  border-color: var(--brand-strong);
  background: var(--brand-strong);
  color: #fff;
}

.table-action.filter-primary:hover {
  background: var(--brand);
}

.table-action:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

.auth-page {
  min-height: 100vh;
}

.auth-shell {
  width: min(860px, 100%);
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 18px;
  align-items: start;
  margin: 40px auto 0;
}

.auth-card h1 {
  margin-bottom: 8px;
}

.auth-card p,
.auth-help p {
  color: var(--muted);
  line-height: 1.55;
}

.recover-box {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.recover-box summary {
  cursor: pointer;
  color: var(--primary);
  font-weight: 800;
}

.recover-box form {
  margin-top: 14px;
}

.message a {
  color: var(--primary);
  font-weight: 800;
  overflow-wrap: anywhere;
}

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

.visibility-panel h2 {
  margin: 4px 0 0;
}

.visibility-panel span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.toggle-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.toggle-row {
  display: flex;
  min-height: 44px;
  align-items: center;
  gap: 9px;
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 10px 12px;
  background: var(--card);
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  text-transform: none;
}

.toggle-row input {
  width: 18px;
  min-height: 18px;
}

.background-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.background-option {
  display: grid;
  gap: 8px;
  min-height: 96px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 10px;
  background: var(--card);
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
  text-transform: none;
  cursor: pointer;
}

.background-option::before {
  content: "";
  display: block;
  height: 44px;
  border-radius: 10px;
  background: var(--bg-preview);
  background-size: cover;
  background-position: center;
}

.background-option:has(input:checked),
.background-option.is-selected {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(15, 76, 129, 0.12);
}

.background-option input {
  width: 16px;
  min-height: 16px;
}

.background-option.bg-blue-flow {
  --bg-preview: url("/assets/bg-blue-flow.jpg");
}

.background-option.bg-emerald-grid {
  --bg-preview: url("/assets/bg-emerald-grid.jpg");
}

.background-option.bg-gold-wave {
  --bg-preview: url("/assets/bg-gold-wave.jpg");
}

.background-option.bg-coral-flow {
  --bg-preview: url("/assets/bg-coral-flow.jpg");
}

.background-option.bg-graphite {
  --bg-preview: url("/assets/bg-graphite.jpg");
}

.background-option.bg-violet-tech {
  --bg-preview: url("/assets/bg-violet-tech.jpg");
}

.background-option.bg-ocean-lines {
  --bg-preview: url("/assets/bg-ocean-lines.jpg");
}

.background-option.bg-light-marble {
  --bg-preview: url("/assets/bg-light-marble.jpg");
}

.is-hidden {
  display: none !important;
}

form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

label {
  display: grid;
  gap: 7px;
}

input,
select,
textarea {
  width: 100%;
  min-height: 43px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
  color: var(--ink);
  background: var(--card);
  font: inherit;
  text-transform: none;
}

textarea {
  resize: vertical;
}

.form-section {
  display: grid;
  gap: 4px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.form-section span {
  color: var(--profile-accent);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.form-section h2 {
  margin: 0;
  font-size: 20px;
}

.wide-field,
.form-actions {
  grid-column: 1 / -1;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.form-actions .button {
  flex: 1 1 190px;
}

.message {
  min-height: 22px;
  color: var(--ok);
  font-weight: 700;
}

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

.muted {
  color: var(--muted);
  font-weight: 600;
}

.admin-create-form {
  margin-top: 10px;
}

.batch-box {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px;
  margin: 16px 0;
  background: var(--brand-soft);
}

.batch-box h3 {
  margin: 0 0 6px;
}

.device-hero {
  min-height: 150px;
  display: grid;
  place-items: center;
  border-radius: 20px;
  background: linear-gradient(135deg, var(--brand-strong), var(--brand));
  color: #fff;
  font-weight: 900;
  letter-spacing: 0.08em;
}

@media (max-width: 880px) {
  .hero,
  .dashboard,
  .admin-columns,
  .auth-shell,
  .market-panel {
    grid-template-columns: 1fr;
  }

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

  .activation-grid,
  .activation-lists {
    grid-template-columns: 1fr;
  }

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

  .admin-filter-bar,
  .admin-filter-bar.compact {
    grid-template-columns: 1fr;
  }

  .admin-filter-bar.inventory-filter-bar {
    grid-template-columns: 1fr;
  }

  .filter-actions {
    align-items: stretch;
    padding-top: 0;
  }

  .batch-group-card {
    grid-template-columns: 1fr;
  }

  .batch-toggle {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .batch-toggle em {
    grid-column: 1 / -1;
  }

  .plan-cards {
    grid-template-columns: 1fr;
  }

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

  .insights-grid {
    grid-template-columns: repeat(2, minmax(112px, 1fr));
  }

  .link-device-form {
    grid-template-columns: 1fr;
  }

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

  .phone {
    margin: 0 auto;
  }

  .public-profile-shell {
    min-height: auto;
  }

  .public-profile-shell .phone {
    min-height: auto;
  }
}

@media (max-width: 560px) {
  .page {
    width: min(100% - 20px, 1120px);
    padding-top: 16px;
  }

  body:has(.public-profile-shell) .page {
    width: 100%;
    padding: 10px 8px 16px;
  }

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

  body:has(.public-profile-shell) .topbar {
    margin: 0 2px 8px;
  }

  .phone {
    border-radius: 28px;
    padding: 10px;
  }

  .public-profile-shell .phone {
    width: 100%;
    min-height: calc(100svh - 78px);
    border-radius: 30px;
    padding: 9px;
  }

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

  .insights-grid article {
    padding: 10px;
  }

  .insights-grid strong {
    font-size: 22px;
  }

  .screen {
    border-radius: 22px;
  }

  .public-profile-shell .screen {
    min-height: 100%;
  }

  .cover {
    min-height: 52px;
  }

  .profile-card {
    gap: 12px;
    padding: 0 16px 18px;
  }

  .avatar {
    width: 82px;
    height: 82px;
    margin-top: 10px;
  }

  form,
  .quick-grid,
  .payment-grid,
  .dashboard-grid,
  .admin-grid,
  .toggle-grid,
  .background-grid,
  .brand-kit-grid,
  .landing-grid {
    grid-template-columns: 1fr;
  }

  .public-link {
    align-items: stretch;
    flex-direction: column;
  }
}
