.web-profile-page {
  display: grid;
  gap: 10px;
}

/* ✅ CLEAN HERO (NO GRADIENT / NO CARD FEEL) */
.web-profile-hero {
  padding: 12px 0;
  display: block;
  background: #ffffff;
  text-align: center;
}

.web-profile-kicker {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #0f766e;
  margin-bottom: 6px;
}

/* ✅ STRONGER TITLE */
.web-profile-hero h1,
.web-profile-card-head h2 {
  margin: 0;
  font-size: 34px;
  line-height: 1.1;
  text-align: center;
}

/* ✅ CLEAN SUBTITLE */
.web-profile-subtitle,
.web-profile-card-head p {
  margin: 6px auto 0;
  color: #64748b;
  max-width: 600px;
  line-height: 1.5;
  text-align: center;
}

/* ✅ CENTERED META */
.web-profile-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
  justify-content: center;
}

.web-profile-hero-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
}

/* ✅ MAIN LAYOUT */
.web-profile-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(330px, .95fr);
  gap: 18px;
}

.web-profile-side-stack {
  display: grid;
  gap: 18px;
}

/* ✅ KEEP CARDS CLEAN */
.web-profile-builder-card,
.web-profile-share-card,
.web-profile-snapshot-card,
.web-profile-reference-card,
.web-profile-license-card {
  padding: 20px;
}

/* ✅ CARD HEAD */
.web-profile-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 14px;
}

.web-profile-form,
.web-profile-license-form {
  display: grid;
  gap: 14px;
}

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

.web-profile-field {
  display: grid;
  gap: 6px;
}

.web-profile-field label,
.web-profile-share-shell label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .02em;
  color: #334155;
}

.web-profile-label-with-help {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.web-profile-inline-help {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.web-profile-info-trigger {
  width: 20px;
  height: 20px;
  border-radius: 999px;
  border: 1px solid rgba(59,130,246,.25);
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
}

.web-profile-info-tooltip {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: min(320px, 78vw);
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(148,163,184,.28);
  background: #ffffff;
  box-shadow: 0 18px 36px rgba(15,23,42,.16);
  color: #334155;
  font-size: 12px;
  line-height: 1.55;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
  z-index: 20;
}

.web-profile-inline-help:hover .web-profile-info-tooltip,
.web-profile-inline-help:focus-within .web-profile-info-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.web-profile-toggle-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid rgba(148,163,184,.2);
  background: #f8fafc;
}

.web-profile-toggle-title {
  font-size: 14px;
  font-weight: 800;
  color: #0f172a;
}

.web-profile-toggle-copy {
  margin-top: 4px;
  color: #64748b;
  line-height: 1.5;
}

.web-profile-switch {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: #334155;
  cursor: pointer;
  flex-shrink: 0;
}

.web-profile-switch input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.web-profile-switch-ui {
  position: relative;
  width: 54px;
  height: 30px;
  border-radius: 999px;
  background: #cbd5e1;
  transition: background .2s ease;
}

.web-profile-switch-ui::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 4px 10px rgba(15,23,42,.18);
  transition: transform .2s ease;
}

.web-profile-switch input:checked + .web-profile-switch-ui {
  background: #2563eb;
}

.web-profile-switch input:checked + .web-profile-switch-ui::after {
  transform: translateX(24px);
}

.web-profile-switch-label {
  white-space: nowrap;
}

.web-profile-license-tools {
  margin-bottom: 16px;
}

.web-profile-license-toggle-card {
  align-items: center;
}

.web-profile-license-tool-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}

.litcrm-license-alert-overlay {
  position: fixed;
  inset: 0;
  z-index: 1400;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(15, 23, 42, .48);
}

.litcrm-license-alert-card {
  width: min(560px, 100%);
  border-radius: 24px;
  background: #fff;
  border: 1px solid rgba(148, 163, 184, .24);
  box-shadow: 0 24px 56px rgba(15, 23, 42, .28);
  padding: 28px;
  display: grid;
  gap: 16px;
}

.litcrm-license-alert-eyebrow {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #0f766e;
}

.litcrm-license-alert-card h2 {
  margin: 0;
  font-size: 28px;
  line-height: 1.12;
  color: #0f172a;
}

.litcrm-license-alert-card p {
  margin: 0;
  color: #475569;
  line-height: 1.6;
}

.litcrm-license-alert-list {
  display: grid;
  gap: 12px;
  max-height: min(44vh, 360px);
  overflow: auto;
}

.litcrm-license-alert-item {
  border-radius: 18px;
  border: 1px solid rgba(37, 99, 235, .12);
  background: #eff6ff;
  padding: 14px 16px;
  display: grid;
  gap: 10px;
}

.litcrm-license-alert-item > strong {
  color: #1e3a8a;
  font-size: 15px;
}

.litcrm-license-alert-meta-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.litcrm-license-alert-meta {
  display: grid;
  gap: 4px;
}

.litcrm-license-alert-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #64748b;
}

.litcrm-license-alert-meta span:last-child,
.litcrm-license-alert-meta strong:last-child {
  color: #334155;
  font-size: 14px;
}

.litcrm-license-alert-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

/* ✅ CHAR COUNT */
.web-profile-char-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.web-profile-field-hint,
.web-profile-char-count {
  font-size: 12px;
  color: #64748b;
}

.web-profile-char-count {
  font-weight: 700;
}

.web-profile-char-count.is-near-limit {
  color: #b45309;
}

/* ✅ TEXTAREA */
.web-profile-textarea {
  min-height: 180px;
  resize: vertical;
}

/* ✅ IMAGE SECTION */
.web-profile-upload-row {
  display: grid;
  grid-template-columns: minmax(220px, 260px) minmax(0, 1fr);
  gap: 14px;
  margin-top: 8px;
}

.web-profile-current-image {
  min-height: 240px;
  border-radius: 18px;
  border: 1px dashed rgba(148,163,184,.35);
  background: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.web-profile-current-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.web-profile-image-placeholder {
  text-align: center;
  padding: 16px;
  color: #64748b;
  line-height: 1.5;
}

/* ✅ CLEAN NOTE BOX */
.web-profile-upload-note {
  border-radius: 16px;
  padding: 16px;
  background: #f8fafc;
  border: 1px solid rgba(148,163,184,.15);
}

.web-profile-upload-title {
  font-weight: 800;
  margin-bottom: 8px;
}

.web-profile-upload-note ul {
  margin: 0;
  padding-left: 18px;
  color: #334155;
  line-height: 1.5;
}

.web-profile-upload-note p {
  margin: 10px 0 0;
  color: #64748b;
}

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

.web-profile-error {
  font-size: 13px;
  color: #b91c1c;
}

/* ✅ SHARE SECTION */
.web-profile-share-shell {
  display: grid;
  gap: 10px;
}

.web-profile-copy-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.web-profile-copy-status {
  min-height: 18px;
  color: #0f766e;
  font-size: 13px;
}

/* ✅ QR */
.web-profile-qr-wrap {
  display: flex;
  justify-content: center;
  padding: 8px 0;
}

.web-profile-qr-wrap img {
  width: min(220px, 80%);
  border-radius: 14px;
  background: #fff;
  border: 1px solid rgba(148,163,184,.2);
  padding: 10px;
}

/* ✅ EMPTY */
.web-profile-empty-state {
  border-radius: 16px;
  border: 1px dashed rgba(148,163,184,.35);
  background: #f8fafc;
  padding: 16px;
  color: #64748b;
  line-height: 1.5;
}

/* ✅ MINI PROFILE */
.web-profile-mini-profile {
  display: grid;
  grid-template-columns: 100px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
}

.web-profile-mini-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  overflow: hidden;
  background: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #475569;
  font-size: 12px;
  text-align: center;
}

.web-profile-mini-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.web-profile-mini-profile h3 {
  margin: 0;
  font-size: 20px;
}

.web-profile-mini-title,
.web-profile-mini-npn {
  margin-top: 4px;
  color: #475569;
}

/* ✅ MOBILE */
@media (max-width: 840px) {
  .web-profile-grid-2,
  .web-profile-reference-grid,
  .web-profile-mini-stats,
  .web-profile-copy-row,
  .web-profile-upload-row,
  .web-profile-license-item,
  .web-profile-mini-profile {
    grid-template-columns: 1fr;
  }

  .web-profile-hero {
    padding: 10px 0;
  }

  .web-profile-builder-card,
  .web-profile-share-card,
  .web-profile-snapshot-card,
  .web-profile-reference-card,
  .web-profile-license-card {
    padding: 16px;
  }

  .web-profile-toggle-card {
    flex-direction: column;
    align-items: flex-start;
  }
  .web-profile-license-tool-actions,
  .litcrm-license-alert-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .litcrm-license-alert-overlay {
    padding: 16px;
  }

  .litcrm-license-alert-card {
    padding: 22px 18px;
  }

  .litcrm-license-alert-card h2 {
    font-size: 24px;
  }

  .litcrm-license-alert-meta-grid {
    grid-template-columns: 1fr;
  }

}