:root {
  --dcm-radius: 8px;
  --dcm-shadow: 0 18px 50px rgba(15, 23, 42, 0.08);
}

.dcm-card-page,
.dcm-dashboard {
  --dcm-accent: #0d6efd;
  --dcm-button: #111849;
  --dcm-bg: #eeeeef;
  font-family: inherit;
  color: #111849;
}

.dcm-card-page {
  background: var(--dcm-bg);
  padding: 56px 18px 64px;
}

.dcm-public-wrap {
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
}

.dcm-public-cover {
  min-height: 300px;
  background-color: #eef8fc;
  background-position: center;
  background-size: cover;
  position: relative;
  overflow: hidden;
}

.dcm-public-cover-placeholder {
  background:
    radial-gradient(circle at 50% 42%, rgba(17,24,73,0.08) 0 70px, transparent 72px),
    linear-gradient(180deg, #eef8fc 0%, #f7fbfd 100%);
}

.dcm-public-cover-placeholder:before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 115px;
  background: linear-gradient(180deg, rgba(255,255,255,0), rgba(255,255,255,0.88));
}

.dcm-public-cover-placeholder:after {
  content: "Digital Cards";
  position: absolute;
  left: 50%;
  bottom: 42px;
  transform: translateX(-50%);
  color: rgba(17,24,73,0.12);
  font-size: clamp(34px, 5vw, 70px);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.dcm-public-avatar {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 160px;
  height: 160px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: rgba(255,255,255,0.62);
  box-shadow: 0 10px 25px rgba(15,23,42,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.dcm-public-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dcm-public-avatar-empty span {
  width: 92px;
  height: 92px;
  border-radius: 50%;
  background: rgba(17,24,73,0.16);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(17,24,73,0.48);
  font-size: 30px;
  font-weight: 800;
}

.dcm-public-head {
  text-align: center;
  padding: 34px 16px 14px;
}

.dcm-public-logo {
  max-height: 70px;
  max-width: 210px;
  object-fit: contain;
  margin-bottom: 16px;
}

.dcm-public-head h1 {
  margin: 0;
  color: #111849;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.dcm-public-tagline {
  margin: 10px auto 0;
  color: #727782;
  font-size: clamp(16px, 2vw, 20px);
  max-width: 860px;
}

.dcm-public-description {
  color: #4b5563;
  max-width: 780px;
  margin: 14px auto 0;
  line-height: 1.65;
}

.dcm-public-address {
  margin: 20px auto 0;
  font-weight: 600;
  color: #111849;
}

.dcm-public-socials {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 22px;
  margin-top: 25px;
}

.dcm-public-socials a {
  color: #111849;
  font-weight: 900;
  font-size: 34px;
  line-height: 1;
  text-decoration: none;
  transition: transform 0.18s ease, opacity 0.18s ease;
}

.dcm-public-socials a:hover {
  transform: translateY(-2px);
  opacity: 0.74;
}

.dcm-public-actions {
  max-width: 620px;
  margin: 22px auto 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 20px;
}

.dcm-public-action {
  min-height: 44px;
  border-radius: 5px;
  padding: 11px 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-decoration: none !important;
  color: #fff !important;
  font-weight: 800;
  line-height: 1.15;
  box-shadow: 0 1px 0 rgba(255,255,255,0.18) inset;
}

.dcm-public-action span {
  font-size: 16px;
}

.dcm-action-dark { background: var(--dcm-button); }
.dcm-action-phone { background: #1457a4; }
.dcm-action-whatsapp { background: #0fbd54; }
.dcm-action-quote { background: #3ebfc0; }
.dcm-action-accent { background: var(--dcm-accent); }
.dcm-public-action.wide,
.dcm-action-wide { grid-column: 1 / -1; }

.dcm-public-reviews {
  margin: 38px auto 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 36px;
  max-width: 970px;
}

.dcm-review-card {
  min-height: 145px;
  border-radius: var(--dcm-radius);
  background: #e7e7e8;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 22px;
}

.dcm-review-brand {
  font-size: clamp(34px, 4vw, 48px);
  font-weight: 800;
  line-height: 1;
}

.dcm-google { color: #4285f4; }
.dcm-facebook { color: #315ea8; }
.dcm-stars { color: #ffb400; letter-spacing: 2px; margin: 4px 0 13px; }

.dcm-review-card a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  border-radius: 5px;
  padding: 8px 18px;
  color: #fff !important;
  background: var(--dcm-button);
  text-decoration: none !important;
  font-weight: 800;
  font-size: 13px;
}

.dcm-review-card:first-child a { background: #f30000; }

.dcm-public-section,
.dcm-public-links {
  margin-top: 48px;
  text-align: center;
}

.dcm-public-section h2,
.dcm-public-links h2 {
  margin: 0 0 30px;
  color: #111849;
  font-size: clamp(32px, 4vw, 46px);
  font-weight: 900;
  letter-spacing: 0.01em;
}

.dcm-links-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  max-width: 820px;
  margin: 0 auto;
}

.dcm-links-grid a {
  display: flex;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 8px;
  background: #fff;
  color: #111849;
  text-decoration: none !important;
  font-weight: 800;
  box-shadow: var(--dcm-shadow);
}

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

.dcm-portfolio-item {
  display: block;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 0;
  background: #fff;
  position: relative;
  text-decoration: none !important;
  color: #fff;
}

.dcm-portfolio-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.25s ease;
}

.dcm-portfolio-item:hover img {
  transform: scale(1.04);
}

.dcm-portfolio-item span {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 10px;
  padding: 8px 10px;
  border-radius: 5px;
  background: rgba(17,24,73,0.78);
  color: #fff;
  font-weight: 800;
  font-size: 13px;
}

.dcm-products-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 24px;
}

.dcm-product-card {
  background: #fff;
  border-radius: 7px;
  min-height: 260px;
  text-align: left;
  padding: 14px 14px 16px;
  box-shadow: var(--dcm-shadow);
  position: relative;
}

.dcm-product-image {
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #f6f6f7;
  border-radius: 5px;
  margin-bottom: 12px;
}

.dcm-product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dcm-product-card h3 {
  color: #111849;
  margin: 0 0 8px;
  font-size: 14px;
  line-height: 1.3;
  font-weight: 800;
  min-height: 38px;
}

.dcm-product-price {
  font-weight: 900;
  color: #111849;
  font-size: 16px;
  margin-bottom: 8px;
}

.dcm-product-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: var(--dcm-button);
  color: #fff !important;
  border-radius: 0;
  text-decoration: none !important;
  font-size: 20px;
}

.dcm-public-pack-badge {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 50;
  background: var(--dcm-button);
  color: #fff;
  border-radius: 8px;
  padding: 8px 13px;
  font-size: 12px;
  font-weight: 800;
  box-shadow: 0 10px 25px rgba(0,0,0,0.18);
  opacity: 0.88;
}

.dcm-expired-card {
  max-width: 760px;
  margin: 80px auto;
  background: #fff;
  border-radius: 12px;
  padding: 42px;
  text-align: center;
  box-shadow: var(--dcm-shadow);
}

.dcm-dashboard {
  max-width: 1120px;
  margin: 35px auto;
  padding: 0 16px;
}

.dcm-dashboard-hero,
.dcm-dashboard-card,
.dcm-form-section {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  box-shadow: 0 12px 35px rgba(15,23,42,0.05);
}

.dcm-dashboard-hero {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 26px;
  align-items: center;
}

.dcm-dashboard-hero h2 {
  margin: 5px 0 7px;
  font-size: 28px;
  color: #111849;
}

.dcm-kicker {
  display: inline-flex;
  color: var(--dcm-accent);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.dcm-dashboard-status {
  min-width: 220px;
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 14px 16px;
}

.dcm-dashboard-status strong,
.dcm-dashboard-status span {
  display: block;
}

.dcm-dashboard-status strong {
  color: #111849;
  font-size: 18px;
}

.dcm-dashboard-status span {
  color: #6b7280;
  margin-top: 4px;
}

.dcm-dashboard-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin: 18px 0;
}

.dcm-dashboard-actions-bottom {
  margin: 24px 0 0;
}

.dcm-btn,
.dcm-card-editor button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 5px;
  min-height: 42px;
  padding: 10px 18px;
  font-weight: 800;
  text-decoration: none !important;
  cursor: pointer;
}

.dcm-btn-primary {
  background: var(--dcm-button);
  color: #fff !important;
}

.dcm-btn-secondary {
  background: #f3f4f6;
  color: #111849 !important;
}

.dcm-alert {
  border-radius: 8px;
  padding: 14px 18px;
  margin: 18px 0;
  font-weight: 700;
}

.dcm-alert-success { background: #ecfdf3; color: #166534; }
.dcm-alert-error { background: #fef2f2; color: #991b1b; }

.dcm-card-editor {
  display: grid;
  gap: 18px;
}

.dcm-form-section {
  padding: 24px;
}

.dcm-form-section h3 {
  margin: 0 0 18px;
  color: #111849;
  font-size: 20px;
}

.dcm-form-grid {
  display: grid;
  gap: 16px;
}

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

.dcm-field,
.dcm-form-section label {
  display: grid;
  gap: 7px;
  color: #374151;
  font-weight: 800;
  font-size: 13px;
}

.dcm-field-full { margin-top: 16px; }

.dcm-field input,
.dcm-field textarea,
.dcm-form-section input,
.dcm-form-section textarea,
.dcm-form-section select {
  width: 100%;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  padding: 10px 12px;
  background: #fff;
  color: #111827;
  font-size: 14px;
}

.dcm-field textarea,
.dcm-form-section textarea {
  resize: vertical;
}

.dcm-repeaters,
.dcm-repeater-row,
.dcm-product-editor-row {
  display: grid;
  gap: 12px;
}

.dcm-repeater-row {
  grid-template-columns: 1fr 1.5fr 0.75fr;
}

.dcm-repeater-row-portfolio {
  grid-template-columns: 1.3fr 1fr 1fr;
  margin-bottom: 12px;
}

.dcm-product-editor-row {
  grid-template-columns: 1fr 0.5fr 1fr 1fr 1fr;
  margin-bottom: 12px;
}

.dcm-dashboard-card {
  padding: 32px;
  text-align: center;
}

@media (max-width: 1024px) {
  .dcm-products-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .dcm-portfolio-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .dcm-card-page { padding: 24px 12px 42px; }
  .dcm-public-cover { min-height: 220px; }
  .dcm-public-avatar { width: 124px; height: 124px; }
  .dcm-public-actions,
  .dcm-public-reviews,
  .dcm-links-grid,
  .dcm-products-grid,
  .dcm-form-grid-2,
  .dcm-form-grid-3,
  .dcm-repeater-row,
  .dcm-repeater-row-portfolio,
  .dcm-product-editor-row { grid-template-columns: 1fr; }
  .dcm-dashboard-hero { align-items: flex-start; flex-direction: column; }
  .dcm-dashboard-actions { justify-content: stretch; flex-direction: column; }
  .dcm-dashboard-actions .dcm-btn,
  .dcm-dashboard-actions button { width: 100%; }
  .dcm-public-reviews { gap: 16px; }
  .dcm-public-socials a { font-size: 28px; }
}

/* Digital Cards Manager v1.1.0 — Client Dashboard UI */
.dcm-dashboard-ui {
  --dcm-ui-ink: #111849;
  --dcm-ui-muted: #65728a;
  --dcm-ui-soft: #f6f8fb;
  --dcm-ui-line: #e3e8f1;
  --dcm-ui-card: #ffffff;
  --dcm-ui-accent: #0d6efd;
  max-width: 1320px;
  margin: 0 auto;
  padding: 22px;
  color: var(--dcm-ui-ink);
}

.dcm-dashboard-topbar {
  background: linear-gradient(135deg, #ffffff 0%, #f7faff 100%);
  border: 1px solid var(--dcm-ui-line);
  border-radius: 18px;
  padding: 26px;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.06);
}

.dcm-dashboard-topbar h2 {
  margin: 4px 0 8px;
  font-size: clamp(28px, 3.5vw, 42px);
  line-height: 1.05;
  font-weight: 900;
  color: var(--dcm-ui-ink);
}

.dcm-dashboard-topbar p {
  margin: 0;
  max-width: 720px;
  color: var(--dcm-ui-muted);
  font-size: 15px;
}

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

.dcm-summary-card {
  position: relative;
  overflow: hidden;
  background: var(--dcm-ui-card);
  border: 1px solid var(--dcm-ui-line);
  border-radius: 16px;
  padding: 18px;
  min-height: 118px;
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.045);
}

.dcm-summary-card-pack {
  border-top: 4px solid var(--pack-color, var(--dcm-ui-accent));
}

.dcm-summary-card span,
.dcm-preview-meta span,
.dcm-sidebar-title {
  display: block;
  color: var(--dcm-ui-muted);
  font-size: 12px;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 900;
}

.dcm-summary-card strong {
  display: block;
  margin-top: 8px;
  color: var(--dcm-ui-ink);
  font-size: 25px;
  line-height: 1.1;
  font-weight: 950;
}

.dcm-summary-card small {
  display: block;
  margin-top: 8px;
  color: var(--dcm-ui-muted);
  font-size: 13px;
  line-height: 1.35;
}

.dcm-progress {
  height: 8px;
  margin-top: 12px;
  background: #eaf0f7;
  border-radius: 999px;
  overflow: hidden;
}

.dcm-progress span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #0d6efd, #30c5d2);
  border-radius: inherit;
}

.dcm-dashboard-shell {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr) 310px;
  gap: 18px;
  align-items: start;
}

.dcm-dashboard-sidebar,
.dcm-dashboard-preview {
  position: sticky;
  top: 24px;
}

.dcm-sidebar-card,
.dcm-preview-card,
.dcm-dash-panel {
  background: var(--dcm-ui-card);
  border: 1px solid var(--dcm-ui-line);
  border-radius: 18px;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.055);
}

.dcm-sidebar-card,
.dcm-preview-card {
  padding: 14px;
}

.dcm-dashboard-tabs {
  display: grid;
  gap: 7px;
  margin-top: 12px;
}

.dcm-dash-tab {
  width: 100%;
  min-height: 42px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: transparent;
  color: var(--dcm-ui-ink);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
  cursor: pointer;
  text-align: left;
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.dcm-dash-tab span {
  font-weight: 850;
  font-size: 14px;
}

.dcm-dash-tab em {
  color: #9aa5b5;
  font-size: 10px;
  font-style: normal;
  font-weight: 800;
}

.dcm-dash-tab:hover,
.dcm-dash-tab.is-active {
  background: #f4f7fb;
  border-color: var(--dcm-ui-line);
}

.dcm-dash-tab.is-active {
  color: #0d6efd;
  transform: translateX(2px);
}

.dcm-dash-tab.is-limited:not(.is-active) {
  opacity: 0.72;
}

.dcm-dashboard-main {
  min-width: 0;
}

.dcm-dash-panel {
  display: none;
  padding: 24px;
}

.dcm-dash-panel.is-active {
  display: block;
}

.dcm-panel-header {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
  margin-bottom: 20px;
}

.dcm-panel-header h3 {
  margin: 0;
  color: var(--dcm-ui-ink);
  font-size: 24px;
  line-height: 1.16;
  font-weight: 950;
}

.dcm-panel-header p {
  margin: 7px 0 0;
  color: var(--dcm-ui-muted);
  font-size: 14px;
  line-height: 1.55;
}

.dcm-panel-divider {
  height: 1px;
  background: var(--dcm-ui-line);
  margin: 28px 0;
}

.dcm-card-editor-v11 .dcm-form-grid {
  gap: 16px;
}

.dcm-card-editor-v11 .dcm-field {
  display: grid;
  gap: 8px;
  font-weight: 850;
  color: #334155;
}

.dcm-card-editor-v11 .dcm-field span {
  font-size: 13px;
}

.dcm-card-editor-v11 input[type="text"],
.dcm-card-editor-v11 input[type="url"],
.dcm-card-editor-v11 input[type="email"],
.dcm-card-editor-v11 input[type="number"],
.dcm-card-editor-v11 textarea,
.dcm-card-editor-v11 select {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--dcm-ui-line);
  border-radius: 12px;
  background: #fbfcfe;
  color: var(--dcm-ui-ink);
  padding: 10px 12px;
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.dcm-card-editor-v11 textarea {
  min-height: 118px;
  resize: vertical;
}

.dcm-card-editor-v11 input:focus,
.dcm-card-editor-v11 textarea:focus,
.dcm-card-editor-v11 select:focus {
  border-color: #83b7ff;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(13, 110, 253, 0.08);
}

.dcm-card-editor-v11 .dcm-field small {
  color: var(--dcm-ui-muted);
  font-weight: 700;
  line-height: 1.4;
}

.dcm-image-preview {
  min-height: 94px;
  border: 1px dashed #cfd8e6;
  border-radius: 14px;
  background: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.dcm-image-preview img {
  width: 100%;
  height: 112px;
  object-fit: cover;
  display: block;
}

.dcm-image-preview em {
  color: #94a3b8;
  font-style: normal;
  font-weight: 800;
  font-size: 12px;
}

.dcm-repeaters-v11,
.dcm-dash-panel .dcm-repeater-row-v11,
.dcm-dash-panel .dcm-product-editor-row-v11 {
  display: grid;
  gap: 12px;
}

.dcm-dash-panel .dcm-repeater-row-v11,
.dcm-dash-panel .dcm-product-editor-row-v11 {
  grid-template-columns: 42px minmax(0, 1fr) minmax(0, 1.25fr) minmax(120px, 0.6fr);
  align-items: center;
  background: #fbfcfe;
  border: 1px solid var(--dcm-ui-line);
  border-radius: 14px;
  padding: 12px;
  margin-bottom: 0;
}

.dcm-dash-panel .dcm-repeater-row-portfolio.dcm-repeater-row-v11 {
  grid-template-columns: 42px minmax(0, 1.2fr) minmax(0, 0.8fr) minmax(0, 0.9fr);
}

.dcm-dash-panel .dcm-product-editor-row-v11 {
  grid-template-columns: 42px minmax(0, 1fr) 110px minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr);
}

.dcm-row-number {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: #edf4ff;
  color: #0d6efd;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 950;
  font-size: 12px;
}

.dcm-color-grid input[type="color"] {
  width: 100%;
  height: 52px;
  padding: 4px;
  border-radius: 14px;
  border: 1px solid var(--dcm-ui-line);
  background: #fff;
  cursor: pointer;
}

.dcm-color-value {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 26px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #475569;
  padding: 4px 10px;
  font-size: 12px;
}

.dcm-locked-feature {
  min-height: 260px;
  border: 1px dashed #cfd8e6;
  border-radius: 18px;
  background: linear-gradient(135deg, #fbfcfe 0%, #f3f6fb 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  padding: 32px;
}

.dcm-locked-feature span {
  font-size: 34px;
}

.dcm-locked-feature h3 {
  margin: 12px 0 8px;
  color: var(--dcm-ui-ink);
  font-size: 24px;
}

.dcm-locked-feature p {
  margin: 0;
  color: var(--dcm-ui-muted);
  max-width: 420px;
}

.dcm-preview-card {
  display: grid;
  gap: 14px;
}

.dcm-mini-card {
  overflow: hidden;
  border: 1px solid var(--dcm-ui-line);
  border-radius: 18px;
  background: var(--mini-bg, #eeeeef);
  text-align: center;
  padding-bottom: 16px;
}

.dcm-mini-cover {
  height: 92px;
  background: linear-gradient(135deg, var(--mini-button, #111849), var(--mini-accent, #0d6efd));
  background-size: cover;
  background-position: center;
}

.dcm-mini-avatar {
  width: 74px;
  height: 74px;
  border-radius: 999px;
  margin: -37px auto 10px;
  background: #ffffff;
  border: 5px solid #ffffff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.18);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.dcm-mini-avatar span {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: var(--mini-accent, #0d6efd);
  font-weight: 950;
}

.dcm-mini-card h3 {
  margin: 0 16px 6px;
  color: var(--dcm-ui-ink);
  font-size: 20px;
  line-height: 1.2;
}

.dcm-mini-card p {
  margin: 0 18px;
  color: var(--dcm-ui-muted);
  font-size: 13px;
  line-height: 1.4;
}

.dcm-mini-buttons {
  margin: 14px 18px 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.dcm-mini-buttons span {
  height: 34px;
  border-radius: 10px;
  background: var(--mini-button, #111849);
  opacity: 0.95;
}

.dcm-btn-full {
  width: 100%;
}

.dcm-preview-meta {
  display: grid;
  gap: 7px;
}

.dcm-preview-meta code {
  display: block;
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
  border-radius: 12px;
  background: #f6f8fb;
  color: #334155;
  padding: 10px;
  font-size: 12px;
}

.dcm-sticky-savebar {
  position: sticky;
  bottom: 16px;
  z-index: 20;
  margin-top: 18px;
  border: 1px solid rgba(17, 24, 73, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.16);
  padding: 12px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
}

.dcm-sticky-savebar span {
  color: var(--dcm-ui-muted);
  font-weight: 750;
  font-size: 13px;
}

.dcm-sticky-savebar > div {
  display: flex;
  gap: 10px;
  align-items: center;
}

.dcm-dashboard-state-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 20px 0;
}

.dcm-dashboard-state-grid div {
  border: 1px solid var(--dcm-ui-line, #e3e8f1);
  border-radius: 14px;
  background: #fbfcfe;
  padding: 14px;
}

.dcm-dashboard-state-grid span {
  display: block;
  color: var(--dcm-ui-muted, #65728a);
  font-size: 12px;
  font-weight: 850;
}

.dcm-dashboard-state-grid strong {
  display: block;
  margin-top: 6px;
  color: var(--dcm-ui-ink, #111849);
}

@media (max-width: 1180px) {
  .dcm-dashboard-shell {
    grid-template-columns: 210px minmax(0, 1fr);
  }

  .dcm-dashboard-preview {
    position: static;
    grid-column: 1 / -1;
  }
}

@media (max-width: 920px) {
  .dcm-dashboard-ui {
    padding: 14px;
  }

  .dcm-dashboard-topbar,
  .dcm-sticky-savebar {
    flex-direction: column;
    align-items: stretch;
  }

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

  .dcm-dashboard-shell {
    grid-template-columns: 1fr;
  }

  .dcm-dashboard-sidebar {
    position: static;
  }

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

  .dcm-dashboard-actions-top,
  .dcm-sticky-savebar > div {
    width: 100%;
  }
}

@media (max-width: 640px) {
  .dcm-dashboard-summary,
  .dcm-dashboard-tabs,
  .dcm-dashboard-state-grid,
  .dcm-dash-panel .dcm-repeater-row-v11,
  .dcm-dash-panel .dcm-repeater-row-portfolio.dcm-repeater-row-v11,
  .dcm-dash-panel .dcm-product-editor-row-v11 {
    grid-template-columns: 1fr;
  }

  .dcm-dash-panel {
    padding: 18px;
  }

  .dcm-row-number {
    width: 100%;
  }
}

/* Digital Cards Manager v1.2.0 — QR Code & NFC Ready */
.dcm-qr-box {
    border: 1px solid rgba(15, 23, 42, 0.1);
    border-radius: 14px;
    background: #fff;
    padding: 16px;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
}

.dcm-qr-box-head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: flex-start;
    margin-bottom: 14px;
}

.dcm-qr-box-head span,
.dcm-qr-url-row span,
.dcm-qr-meta-grid span {
    display: block;
    color: #64748b;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 700;
}

.dcm-qr-box-head h3 {
    margin: 4px 0 0;
    font-size: 18px;
    line-height: 1.2;
    color: #0f172a;
}

.dcm-qr-support-pill {
    border: 1px solid rgba(15, 23, 42, 0.12);
    border-radius: 999px;
    padding: 7px 10px;
    color: #0f172a !important;
    background: #f8fafc;
    white-space: nowrap;
}

.dcm-qr-canvas {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 180px;
    border-radius: 12px;
    background: #f8fafc;
    padding: 14px;
    overflow: hidden;
}

.dcm-qr-canvas svg {
    display: block;
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.dcm-qr-url-row {
    margin-top: 12px;
    padding: 10px;
    border-radius: 10px;
    background: #f8fafc;
}

.dcm-qr-url-row code {
    display: block;
    margin-top: 5px;
    white-space: normal;
    word-break: break-all;
    color: #111827;
    font-size: 12px;
}

.dcm-qr-meta-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 10px;
}

.dcm-qr-meta-grid div {
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 10px;
    padding: 10px;
    background: #fff;
}

.dcm-qr-meta-grid strong {
    display: block;
    margin-top: 4px;
    color: #0f172a;
    font-size: 13px;
}

.dcm-qr-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 12px;
}

.dcm-qr-context-mini {
    padding: 12px;
    box-shadow: none;
}

.dcm-qr-context-mini .dcm-qr-box-head,
.dcm-qr-context-mini .dcm-qr-meta-grid,
.dcm-qr-context-mini .dcm-qr-url-row {
    display: none;
}

.dcm-qr-context-mini .dcm-qr-canvas {
    min-height: 130px;
    padding: 8px;
}

.dcm-preview-qr-mini {
    margin-top: 14px;
}

.dcm-qr-dashboard-card {
    padding: 0;
    box-shadow: none;
    background: transparent;
}

.dcm-qr-help {
    margin-top: 16px;
    border: 1px solid rgba(13, 110, 253, 0.18);
    border-radius: 12px;
    padding: 14px;
    background: rgba(13, 110, 253, 0.06);
    color: #1e293b;
}

.dcm-qr-help strong {
    display: block;
    margin-bottom: 4px;
    color: #0f172a;
}

.dcm-qr-help p {
    margin: 0;
}

@media (max-width: 700px) {
    .dcm-qr-meta-grid {
        grid-template-columns: 1fr;
    }

    .dcm-qr-actions {
        flex-direction: column;
    }

    .dcm-qr-actions .dcm-btn {
        width: 100%;
        justify-content: center;
    }
}

/* Digital Cards Manager v1.3.0 — Products & WhatsApp Orders */
.dcm-section-heading {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 30px;
}

.dcm-section-heading h2 {
  margin-bottom: 10px;
}

.dcm-section-heading p {
  margin: 0;
  color: #64748b;
  line-height: 1.65;
}

.dcm-products-grid-v13 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
}

.dcm-product-card-v13 {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.dcm-product-card-v13.is-featured {
  border-color: var(--dcm-accent);
}

.dcm-product-card-v13.is-soldout {
  opacity: 0.78;
}

.dcm-product-badge {
  position: absolute;
  top: 22px;
  left: 22px;
  z-index: 2;
  border-radius: 999px;
  padding: 5px 9px;
  background: var(--dcm-accent);
  color: #fff;
  font-size: 11px;
  font-weight: 900;
}

.dcm-product-image-placeholder span {
  width: 54px;
  height: 54px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(17, 24, 73, 0.08);
  color: #111849;
  font-size: 24px;
  font-weight: 900;
  text-transform: uppercase;
}

.dcm-product-body {
  display: flex;
  flex-direction: column;
  gap: 7px;
  flex: 1;
}

.dcm-product-category {
  display: inline-flex;
  width: fit-content;
  border-radius: 999px;
  padding: 4px 8px;
  background: rgba(13, 110, 253, 0.08);
  color: var(--dcm-accent);
  font-size: 11px;
  font-weight: 900;
}

.dcm-product-card-v13 h3 {
  min-height: auto;
  margin-bottom: 0;
  font-size: 17px;
}

.dcm-product-description {
  margin: 0;
  color: #64748b;
  line-height: 1.5;
  font-size: 13px;
}

.dcm-product-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 4px;
}

.dcm-product-card-v13 .dcm-product-price {
  margin: 0;
}

.dcm-product-sku {
  border-radius: 999px;
  padding: 4px 7px;
  background: #f1f5f9;
  color: #475569;
  font-size: 11px;
  font-weight: 800;
}

.dcm-product-status,
.dcm-product-order-missing {
  display: inline-flex;
  width: fit-content;
  border-radius: 999px;
  padding: 6px 9px;
  background: #fef3c7;
  color: #92400e;
  font-size: 12px;
  font-weight: 900;
}

.dcm-product-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin-top: 16px;
}

.dcm-product-order-button,
.dcm-product-detail-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border-radius: 5px;
  padding: 10px 12px;
  text-decoration: none !important;
  font-size: 13px;
  font-weight: 900;
}

.dcm-product-order-button {
  background: #0fbd54;
  color: #fff !important;
}

.dcm-product-detail-link {
  background: #f1f5f9;
  color: #111849 !important;
}

.dcm-products-help-card {
  margin: 14px 0 20px;
  padding: 14px 16px;
  border-radius: 8px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}

.dcm-products-help-card strong {
  display: block;
  color: #111849;
  margin-bottom: 4px;
}

.dcm-products-help-card p {
  margin: 0;
  color: #64748b;
}

.dcm-product-editor-card-v13 {
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 16px;
  margin-bottom: 14px;
  background: #fff;
  display: grid;
  gap: 12px;
}

.dcm-product-editor-head {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #111849;
}

.dcm-product-editor-card-v13 input,
.dcm-product-editor-card-v13 textarea,
.dcm-product-editor-card-v13 select {
  width: 100%;
  border: 1px solid #e5e7eb;
  border-radius: 7px;
  min-height: 40px;
  padding: 8px 10px;
}

.dcm-inline-select-field {
  display: grid;
  gap: 6px;
  color: #334155;
  font-weight: 800;
  font-size: 13px;
}

.dcm-product-featured-toggle {
  margin-top: 2px;
}

@media (max-width: 920px) {
  .dcm-products-grid-v13 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .dcm-products-grid-v13 {
    grid-template-columns: 1fr;
  }

  .dcm-product-meta-row {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* Digital Cards Manager v1.5.0 — Promial Bridge */
.dcm-renewal-alert {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.dcm-renewal-alert strong {
  color: #111849;
}

.dcm-renewal-box {
  max-width: 760px;
  margin: 30px auto;
  padding: 24px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.08);
}

.dcm-renewal-box h2 {
  margin-top: 0;
  color: #111849;
}

.dcm-renewal-button {
  text-decoration: none;
}

.dcm-alert-warning {
  background: #fffbeb;
  color: #92400e;
}

/* Digital Cards Manager v1.5.0 — Promial Bridge */
.dcm-promial-dashboard-panel .dcm-admin-card{border:1px solid rgba(15,23,42,.08);border-radius:14px;background:#fff;padding:18px}
.dcm-promial-context-box{display:grid;gap:8px;margin:12px 0}
.dcm-promial-context-box div{display:flex;justify-content:space-between;gap:12px;padding:10px 12px;border:1px solid rgba(15,23,42,.08);border-radius:10px;background:#f8fafc}
.dcm-promial-context-box span{font-size:12px;font-weight:700;color:#64748b;text-transform:uppercase;letter-spacing:.02em}
.dcm-promial-context-box strong{font-size:13px;color:#0f172a;text-align:right;word-break:break-word}

/* Digital Cards Manager v1.6.0 — Multiple Templates & Design Customization */
.dcm-card-page {
  color: var(--dcm-text, #111849);
  font-size: 16px;
}

.dcm-card-page .dcm-public-wrap {
  max-width: var(--dcm-card-width, 1100px);
}

.dcm-card-page .dcm-public-head h1,
.dcm-card-page .dcm-public-section h2,
.dcm-card-page .dcm-public-links h2,
.dcm-card-page .dcm-product-card h3,
.dcm-card-page .dcm-product-price {
  color: var(--dcm-text, #111849);
}

.dcm-card-page .dcm-public-tagline,
.dcm-card-page .dcm-public-description,
.dcm-card-page .dcm-section-heading p,
.dcm-card-page .dcm-product-description {
  color: var(--dcm-muted, #727782);
}

.dcm-card-page .dcm-public-cover,
.dcm-card-page .dcm-review-card,
.dcm-card-page .dcm-links-grid a,
.dcm-card-page .dcm-product-card,
.dcm-card-page .dcm-product-image,
.dcm-card-page .dcm-expired-card {
  border-radius: var(--dcm-radius, 8px);
}

.dcm-radius-sharp .dcm-public-cover,
.dcm-radius-sharp .dcm-review-card,
.dcm-radius-sharp .dcm-links-grid a,
.dcm-radius-sharp .dcm-product-card,
.dcm-radius-sharp .dcm-product-image,
.dcm-radius-sharp .dcm-public-action,
.dcm-radius-sharp .dcm-product-order-button,
.dcm-radius-sharp .dcm-product-detail-link {
  border-radius: 0 !important;
}

.dcm-radius-rounded .dcm-public-cover,
.dcm-radius-rounded .dcm-review-card,
.dcm-radius-rounded .dcm-links-grid a,
.dcm-radius-rounded .dcm-product-card,
.dcm-radius-rounded .dcm-product-image {
  border-radius: 18px;
}

.dcm-buttons-rounded .dcm-public-action,
.dcm-buttons-rounded .dcm-product-order-button,
.dcm-buttons-rounded .dcm-product-detail-link,
.dcm-buttons-rounded .dcm-review-card a {
  border-radius: 12px;
}

.dcm-buttons-pill .dcm-public-action,
.dcm-buttons-pill .dcm-product-order-button,
.dcm-buttons-pill .dcm-product-detail-link,
.dcm-buttons-pill .dcm-review-card a {
  border-radius: 999px;
}

.dcm-buttons-outline .dcm-public-action,
.dcm-buttons-outline .dcm-product-order-button,
.dcm-buttons-outline .dcm-product-detail-link,
.dcm-buttons-outline .dcm-review-card a {
  background: transparent !important;
  border: 1px solid currentColor;
  color: var(--dcm-button, #111849) !important;
  box-shadow: none;
}

.dcm-buttons-outline .dcm-action-whatsapp,
.dcm-buttons-outline .dcm-product-order-button {
  color: #0fbd54 !important;
}

.dcm-density-compact .dcm-card-page,
.dcm-density-compact {
  --dcm-section-space: 34px;
}

.dcm-density-compact .dcm-public-cover { min-height: 220px; }
.dcm-density-compact .dcm-public-head { padding-top: 22px; }
.dcm-density-compact .dcm-public-socials { margin-top: 18px; gap: 16px; }
.dcm-density-compact .dcm-public-section,
.dcm-density-compact .dcm-public-links { margin-top: 34px; }
.dcm-density-compact .dcm-public-reviews { margin-top: 30px; }

.dcm-density-spacious .dcm-public-cover { min-height: 360px; }
.dcm-density-spacious .dcm-public-head { padding-top: 46px; padding-bottom: 24px; }
.dcm-density-spacious .dcm-public-actions { margin-top: 32px; gap: 18px 24px; }
.dcm-density-spacious .dcm-public-section,
.dcm-density-spacious .dcm-public-links { margin-top: 68px; }
.dcm-density-spacious .dcm-public-reviews { margin-top: 52px; }

.dcm-cover-minimal .dcm-public-cover {
  min-height: 120px;
}

.dcm-cover-minimal .dcm-public-cover-placeholder:after,
.dcm-cover-minimal .dcm-public-cover-placeholder:before {
  display: none;
}

.dcm-cover-tall .dcm-public-cover {
  min-height: 420px;
}

.dcm-cover-split .dcm-public-wrap {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 34px;
  align-items: center;
}

.dcm-cover-split .dcm-public-cover,
.dcm-cover-split .dcm-public-head {
  grid-row: 1;
}

.dcm-cover-split .dcm-public-cover {
  min-height: 460px;
}

.dcm-cover-split .dcm-public-head {
  text-align: left;
  padding: 32px 0;
}

.dcm-cover-split .dcm-public-description,
.dcm-cover-split .dcm-public-tagline,
.dcm-cover-split .dcm-public-address {
  margin-left: 0;
  margin-right: 0;
}

.dcm-cover-split .dcm-public-socials {
  justify-content: flex-start;
}

.dcm-cover-split .dcm-public-actions,
.dcm-cover-split .dcm-public-reviews,
.dcm-cover-split .dcm-public-links,
.dcm-cover-split .dcm-public-section,
.dcm-cover-split .dcm-public-pack-badge {
  grid-column: 1 / -1;
}

.dcm-template-compact .dcm-public-wrap {
  max-width: min(var(--dcm-card-width, 820px), 860px);
}

.dcm-template-compact .dcm-public-cover {
  min-height: 160px;
}

.dcm-template-compact .dcm-public-avatar {
  width: 112px;
  height: 112px;
}

.dcm-template-compact .dcm-public-description,
.dcm-template-compact .dcm-public-reviews,
.dcm-template-compact .dcm-public-pack-badge {
  display: none;
}

.dcm-template-business .dcm-public-wrap,
.dcm-template-catalog .dcm-public-wrap,
.dcm-template-portfolio .dcm-public-wrap {
  background: transparent;
}

.dcm-template-business .dcm-public-head,
.dcm-template-business .dcm-public-actions,
.dcm-template-business .dcm-public-reviews,
.dcm-template-business .dcm-public-links,
.dcm-template-business .dcm-public-section,
.dcm-template-catalog .dcm-public-head,
.dcm-template-catalog .dcm-public-actions,
.dcm-template-catalog .dcm-public-reviews,
.dcm-template-catalog .dcm-public-links,
.dcm-template-catalog .dcm-public-section,
.dcm-template-portfolio .dcm-public-head,
.dcm-template-portfolio .dcm-public-actions,
.dcm-template-portfolio .dcm-public-reviews,
.dcm-template-portfolio .dcm-public-links,
.dcm-template-portfolio .dcm-public-section {
  background: var(--dcm-surface, #ffffff);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: var(--dcm-radius, 8px);
  padding-left: 24px;
  padding-right: 24px;
  box-shadow: 0 16px 42px rgba(15, 23, 42, 0.055);
}

.dcm-template-business .dcm-public-actions,
.dcm-template-catalog .dcm-public-actions,
.dcm-template-portfolio .dcm-public-actions {
  padding-top: 18px;
  padding-bottom: 18px;
}

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

.dcm-template-portfolio .dcm-portfolio-item:first-child {
  grid-column: span 2;
  grid-row: span 2;
}

.dcm-template-catalog .dcm-products-grid-v13 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.dcm-template-catalog .dcm-product-card-v13.is-featured {
  transform: translateY(-4px);
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.13);
}

.dcm-sections-flat .dcm-public-head,
.dcm-sections-flat .dcm-public-actions,
.dcm-sections-flat .dcm-public-reviews,
.dcm-sections-flat .dcm-public-links,
.dcm-sections-flat .dcm-public-section {
  background: transparent !important;
  border-color: transparent !important;
  box-shadow: none !important;
}

.dcm-sections-bordered .dcm-public-head,
.dcm-sections-bordered .dcm-public-actions,
.dcm-sections-bordered .dcm-public-reviews,
.dcm-sections-bordered .dcm-public-links,
.dcm-sections-bordered .dcm-public-section,
.dcm-sections-bordered .dcm-review-card,
.dcm-sections-bordered .dcm-links-grid a,
.dcm-sections-bordered .dcm-product-card {
  box-shadow: none !important;
  border: 1px solid rgba(15, 23, 42, 0.12);
}

.dcm-font-small { font-size: 15px; }
.dcm-font-small .dcm-public-head h1 { font-size: clamp(24px, 3.5vw, 36px); }
.dcm-font-small .dcm-public-section h2,
.dcm-font-small .dcm-public-links h2 { font-size: clamp(27px, 3.5vw, 38px); }

.dcm-font-large { font-size: 18px; }
.dcm-font-large .dcm-public-head h1 { font-size: clamp(34px, 4.6vw, 52px); }
.dcm-font-large .dcm-public-section h2,
.dcm-font-large .dcm-public-links h2 { font-size: clamp(38px, 4.6vw, 56px); }

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

.dcm-template-option {
  border: 1px solid var(--dcm-ui-line, #e3e8f1);
  border-radius: 16px;
  background: #fbfcfe;
  padding: 14px;
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 12px;
  align-items: center;
  cursor: pointer;
  position: relative;
}

.dcm-template-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.dcm-template-option strong,
.dcm-template-option small,
.dcm-template-option mark {
  grid-column: 2;
}

.dcm-template-option strong {
  color: var(--dcm-ui-ink, #111849);
  font-size: 15px;
}

.dcm-template-option small {
  color: var(--dcm-ui-muted, #65728a);
  line-height: 1.45;
}

.dcm-template-option mark {
  width: fit-content;
  border-radius: 999px;
  background: #fff7ed;
  color: #9a3412;
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 900;
}

.dcm-template-option.is-selected {
  border-color: #0d6efd;
  background: #f1f7ff;
  box-shadow: 0 0 0 4px rgba(13, 110, 253, 0.08);
}

.dcm-template-option.is-locked {
  opacity: 0.66;
  cursor: not-allowed;
}

.dcm-template-preview {
  grid-row: span 3;
  width: 96px;
  height: 78px;
  border-radius: 12px;
  background: linear-gradient(135deg, #111849, #0d6efd);
  display: grid;
  gap: 5px;
  padding: 10px;
  overflow: hidden;
}

.dcm-template-preview em,
.dcm-template-preview i,
.dcm-template-preview b {
  display: block;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
}

.dcm-template-preview em { width: 38px; height: 12px; }
.dcm-template-preview i { width: 70px; height: 8px; }
.dcm-template-preview b { width: 52px; height: 8px; }

.dcm-template-preview-compact { padding-top: 18px; }
.dcm-template-preview-portfolio { grid-template-columns: repeat(2, 1fr); }
.dcm-template-preview-portfolio em,
.dcm-template-preview-portfolio i,
.dcm-template-preview-portfolio b { border-radius: 6px; width: auto; height: auto; }
.dcm-template-preview-catalog { grid-template-columns: repeat(3, 1fr); }
.dcm-template-preview-catalog em,
.dcm-template-preview-catalog i,
.dcm-template-preview-catalog b { border-radius: 5px; width: auto; height: auto; }

.dcm-mini-template-compact .dcm-mini-cover { height: 56px; }
.dcm-mini-template-business .dcm-mini-buttons span:first-child { background: var(--mini-accent, #0d6efd); }
.dcm-mini-template-portfolio .dcm-mini-buttons { grid-template-columns: 1.4fr 1fr 1fr; }
.dcm-mini-template-catalog .dcm-mini-buttons { grid-template-columns: repeat(3, 1fr); }
.dcm-mini-template-catalog .dcm-mini-buttons span { height: 44px; border-radius: 8px; }

@media (max-width: 920px) {
  .dcm-cover-split .dcm-public-wrap {
    display: block;
  }
  .dcm-cover-split .dcm-public-head {
    text-align: center;
  }
  .dcm-cover-split .dcm-public-description,
  .dcm-cover-split .dcm-public-tagline,
  .dcm-cover-split .dcm-public-address {
    margin-left: auto;
    margin-right: auto;
  }
  .dcm-cover-split .dcm-public-socials {
    justify-content: center;
  }
  .dcm-template-catalog .dcm-products-grid-v13 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .dcm-template-picker-grid,
  .dcm-template-option,
  .dcm-template-catalog .dcm-products-grid-v13,
  .dcm-template-portfolio .dcm-portfolio-grid {
    grid-template-columns: 1fr;
  }
  .dcm-template-preview,
  .dcm-template-option strong,
  .dcm-template-option small,
  .dcm-template-option mark {
    grid-column: 1;
  }
  .dcm-template-preview {
    width: 100%;
  }
  .dcm-template-portfolio .dcm-portfolio-item:first-child {
    grid-column: auto;
    grid-row: auto;
  }
}

/* Digital Cards Manager v1.8.0 — Media Uploads & Image Library */
.dcm-media-input-row {
  display: flex;
  gap: 8px;
  align-items: stretch;
}

.dcm-media-input-row input {
  min-width: 0;
  flex: 1;
}

.dcm-media-upload-button {
  white-space: nowrap;
  min-height: 42px;
}

.dcm-media-inline-field {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto;
  gap: 8px;
  align-items: center;
  min-width: 0;
}

.dcm-media-inline-field input {
  min-width: 0;
  width: 100%;
}

.dcm-media-library-panel {
  display: grid;
  gap: 16px;
}

.dcm-media-upload-zone {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px;
  border: 1px dashed rgba(17, 24, 73, 0.22);
  border-radius: var(--dcm-radius, 8px);
  background: rgba(17, 24, 73, 0.025);
}

.dcm-media-upload-zone strong {
  display: block;
  color: var(--dcm-text, #111849);
  font-size: 15px;
  margin-bottom: 4px;
}

.dcm-media-upload-zone p {
  margin: 0;
  color: var(--dcm-muted, #727782);
  font-size: 13px;
}

.dcm-media-upload-label {
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.dcm-media-upload-label input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.dcm-media-status {
  min-height: 20px;
  font-size: 13px;
  color: var(--dcm-muted, #727782);
}

.dcm-media-status.is-success {
  color: #087f5b;
}

.dcm-media-status.is-error {
  color: #c92a2a;
}

.dcm-media-status.is-loading {
  color: var(--dcm-text, #111849);
}

.dcm-media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 14px;
}

.dcm-media-item {
  border: 1px solid rgba(17, 24, 73, 0.09);
  border-radius: var(--dcm-radius, 8px);
  background: var(--dcm-surface, #ffffff);
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(17, 24, 73, 0.05);
}

.dcm-media-thumb {
  aspect-ratio: 1 / 0.72;
  background: rgba(17, 24, 73, 0.04);
  overflow: hidden;
}

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

.dcm-media-info {
  display: grid;
  gap: 3px;
  padding: 10px;
}

.dcm-media-info strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
  color: var(--dcm-text, #111849);
}

.dcm-media-info small {
  color: var(--dcm-muted, #727782);
  font-size: 12px;
}

.dcm-media-actions {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 6px;
  padding: 0 10px 10px;
}

.dcm-media-actions .dcm-btn {
  min-height: 32px;
  padding: 6px 8px;
  font-size: 12px;
}

.dcm-media-delete {
  width: 32px;
  height: 32px;
  border: 1px solid rgba(201, 42, 42, 0.2);
  border-radius: 6px;
  background: rgba(201, 42, 42, 0.06);
  color: #c92a2a;
  cursor: pointer;
  font-weight: 700;
}

.dcm-media-empty {
  grid-column: 1 / -1;
  padding: 22px;
  border: 1px dashed rgba(17, 24, 73, 0.16);
  border-radius: var(--dcm-radius, 8px);
  text-align: center;
  color: var(--dcm-muted, #727782);
}

.dcm-media-empty strong {
  display: block;
  color: var(--dcm-text, #111849);
  margin-bottom: 6px;
}

@media (max-width: 680px) {
  .dcm-media-input-row,
  .dcm-media-inline-field,
  .dcm-media-upload-zone {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: stretch;
  }

  .dcm-media-actions {
    grid-template-columns: 1fr;
  }

  .dcm-media-delete {
    width: 100%;
  }
}

/* v1.9.0 — Client Onboarding Wizard */
.dcm-onboarding-card,
.dcm-onboarding-panel {
  background: var(--dcm-surface, #ffffff);
  border: 1px solid rgba(17, 24, 73, 0.09);
  border-radius: 18px;
  box-shadow: 0 18px 45px rgba(17, 24, 73, 0.07);
}

.dcm-onboarding-card {
  margin: 18px 0;
  padding: 22px;
}

.dcm-onboarding-card-head,
.dcm-onboarding-hero,
.dcm-onboarding-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.dcm-onboarding-card h3,
.dcm-onboarding-hero h3 {
  margin: 4px 0 8px;
  color: var(--dcm-text, #111849);
}

.dcm-onboarding-card p,
.dcm-onboarding-hero p,
.dcm-onboarding-step p,
.dcm-onboarding-help {
  margin: 0;
  color: var(--dcm-muted, #727782);
}

.dcm-onboarding-score {
  min-width: 108px;
  padding: 14px 16px;
  text-align: center;
  border-radius: 16px;
  background: rgba(13, 110, 253, 0.08);
  color: var(--dcm-text, #111849);
}

.dcm-onboarding-score strong {
  display: block;
  font-size: 28px;
  line-height: 1;
}

.dcm-onboarding-score span {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  color: var(--dcm-muted, #727782);
}

.dcm-onboarding-score-large strong {
  font-size: 34px;
}

.dcm-onboarding-progress {
  margin: 18px 0;
}

.dcm-onboarding-mini-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.dcm-onboarding-mini-step {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 11px;
  border: 1px solid rgba(17, 24, 73, 0.1);
  border-radius: 999px;
  background: #ffffff;
  color: var(--dcm-text, #111849);
  font-size: 13px;
  cursor: pointer;
}

.dcm-onboarding-mini-step span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(17, 24, 73, 0.08);
  font-size: 12px;
}

.dcm-onboarding-mini-step.is-done span,
.dcm-onboarding-step.is-done .dcm-onboarding-step-status {
  background: #12b76a;
  color: #ffffff;
}

.dcm-onboarding-panel {
  padding: 24px;
}

.dcm-onboarding-steps {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.dcm-onboarding-step {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 14px;
  padding: 16px;
  border: 1px solid rgba(17, 24, 73, 0.08);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
}

.dcm-onboarding-step-status {
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(17, 24, 73, 0.08);
  color: var(--dcm-text, #111849);
  font-weight: 800;
}

.dcm-onboarding-step-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 5px;
}

.dcm-onboarding-step-title strong {
  color: var(--dcm-text, #111849);
}

.dcm-onboarding-step-title span {
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(13, 110, 253, 0.1);
  color: var(--dcm-accent, #0d6efd);
  font-size: 11px;
  font-weight: 700;
}

.dcm-onboarding-step .dcm-btn {
  margin-top: 12px;
}

.dcm-onboarding-actions {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid rgba(17, 24, 73, 0.08);
}

@media (max-width: 760px) {
  .dcm-onboarding-card-head,
  .dcm-onboarding-hero,
  .dcm-onboarding-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .dcm-onboarding-score {
    width: 100%;
  }

  .dcm-onboarding-step-title {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* v2.0.0 — Public Landing Page Builder Pro */
.dcm-builder-public-wrap {
    display: grid;
    gap: 22px;
    margin: 24px 0;
}

.dcm-builder-public-section {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
    padding: 24px;
    border-radius: var(--dcm-radius, 12px);
    background: var(--dcm-surface, #fff);
    color: var(--dcm-text, #111849);
    box-shadow: 0 12px 36px rgba(17, 24, 73, 0.08);
    overflow: hidden;
}

.dcm-builder-public-section.dcm-builder-layout-split_left,
.dcm-builder-public-section.dcm-builder-layout-split_right {
    grid-template-columns: minmax(220px, 0.85fr) minmax(0, 1.15fr);
    align-items: center;
}

.dcm-builder-public-section.dcm-builder-layout-split_right .dcm-builder-public-media {
    order: 2;
}

.dcm-builder-public-section.dcm-builder-layout-centered {
    text-align: center;
    justify-items: center;
}

.dcm-builder-public-section.dcm-builder-layout-boxed {
    border: 1px solid rgba(17, 24, 73, 0.12);
    box-shadow: none;
}

.dcm-builder-public-media img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: calc(var(--dcm-radius, 12px) * 0.8);
    object-fit: cover;
    max-height: 420px;
}

.dcm-builder-public-content h2 {
    margin: 0 0 10px;
    font-size: clamp(1.35rem, 2vw, 2rem);
    line-height: 1.15;
    color: var(--dcm-text, #111849);
}

.dcm-builder-public-content p {
    margin: 0;
    color: var(--dcm-muted, #727782);
    line-height: 1.7;
}

.dcm-builder-kicker {
    display: inline-flex;
    margin-bottom: 9px;
    color: var(--dcm-accent, #0d6efd);
    font-weight: 800;
    letter-spacing: .02em;
    font-size: .82rem;
}

.dcm-builder-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 18px;
    padding: 12px 18px;
    border-radius: var(--dcm-radius, 12px);
    background: var(--dcm-button, #111849);
    color: #fff;
    text-decoration: none;
    font-weight: 800;
}

.dcm-builder-button:hover {
    color: #fff;
    opacity: .92;
}

.dcm-builder-list {
    display: grid;
    gap: 10px;
    margin-top: 8px;
}

.dcm-builder-list-item {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
    padding: 12px;
    border-radius: calc(var(--dcm-radius, 12px) * 0.75);
    background: color-mix(in srgb, var(--dcm-accent, #0d6efd) 8%, transparent);
}

.dcm-builder-list-item span {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: var(--dcm-accent, #0d6efd);
    color: #fff;
    font-weight: 800;
}

.dcm-builder-type-highlight {
    background: linear-gradient(135deg, color-mix(in srgb, var(--dcm-accent, #0d6efd) 12%, #fff), var(--dcm-surface, #fff));
}

.dcm-builder-type-cta {
    text-align: center;
    background: var(--dcm-button, #111849);
    color: #fff;
}

.dcm-builder-type-cta h2,
.dcm-builder-type-cta p,
.dcm-builder-type-cta .dcm-builder-kicker {
    color: #fff;
}

.dcm-builder-type-cta .dcm-builder-button {
    background: #fff;
    color: var(--dcm-button, #111849);
}

@media (max-width: 760px) {
    .dcm-builder-public-section,
    .dcm-builder-public-section.dcm-builder-layout-split_left,
    .dcm-builder-public-section.dcm-builder-layout-split_right {
        grid-template-columns: 1fr;
        padding: 18px;
    }
    .dcm-builder-public-section.dcm-builder-layout-split_right .dcm-builder-public-media {
        order: 0;
    }
}

.dcm-builder-intro-card,
.dcm-builder-section-card {
    border: 1px solid rgba(17, 24, 73, 0.10);
    border-radius: 12px;
    background: #fff;
    padding: 16px;
}

.dcm-builder-intro-card {
    margin-bottom: 16px;
    background: linear-gradient(135deg, rgba(13, 110, 253, .08), rgba(255,255,255,.95));
}

.dcm-builder-section-card {
    margin-bottom: 16px;
}

.dcm-builder-section-head {
    display: flex;
    align-items: center;
    gap: 12px;
    justify-content: space-between;
    margin-bottom: 14px;
}

.dcm-builder-section-head strong {
    flex: 1;
}

/* v2.1.0 — Advanced Analytics & Scan Tracking */
.dcm-analytics-panel {
    display: grid;
    gap: 18px;
}

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

.dcm-analytics-kpis div,
.dcm-analytics-card {
    border: 1px solid rgba(17, 24, 73, 0.10);
    border-radius: 12px;
    background: #fff;
    padding: 14px;
}

.dcm-analytics-kpis span,
.dcm-analytics-list small {
    display: block;
    color: #727782;
    font-size: .8rem;
}

.dcm-analytics-kpis strong {
    display: block;
    margin-top: 5px;
    color: #111849;
    font-size: 1.65rem;
    line-height: 1;
}

.dcm-analytics-kpis small {
    display: block;
    margin-top: 7px;
    color: #727782;
}

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

.dcm-analytics-card h4 {
    margin: 0 0 12px;
    color: #111849;
}

.dcm-analytics-list {
    display: grid;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.dcm-analytics-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding: 9px 10px;
    border-radius: 10px;
    background: #f8fafc;
}

.dcm-analytics-list strong {
    color: #111849;
    white-space: nowrap;
}

@media (max-width: 900px) {
    .dcm-analytics-kpis,
    .dcm-analytics-grid {
        grid-template-columns: 1fr;
    }
}

/* v2.2.0 — Order Form & Custom Card Personalization */
.dcm-order-form-module{display:flex;flex-direction:column;gap:18px}
.dcm-order-status-card{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:20px;border:1px solid rgba(17,24,73,.1);border-radius:16px;background:linear-gradient(135deg,#fff,#f7f8fb)}
.dcm-order-status-card h3{margin:4px 0 8px;font-size:22px}
.dcm-order-status-card p{margin:0;color:var(--dcm-muted,#727782)}
.dcm-order-score{width:118px;height:118px;border-radius:999px;display:flex;flex-direction:column;align-items:center;justify-content:center;background:#fff;border:1px solid rgba(17,24,73,.1);box-shadow:0 12px 34px rgba(17,24,73,.08);text-align:center;flex:0 0 auto}
.dcm-order-score strong{font-size:28px;line-height:1;color:var(--dcm-accent,#0d6efd)}
.dcm-order-score span{font-size:12px;color:var(--dcm-muted,#727782);max-width:84px}
.dcm-order-ready-switch{margin-top:6px;padding:14px 16px;border:1px solid rgba(13,110,253,.18);background:rgba(13,110,253,.06);border-radius:14px}
.dcm-order-form-module h4{margin:0 0 -6px;font-size:15px;text-transform:uppercase;letter-spacing:.05em;color:var(--dcm-muted,#727782)}
.dcm-order-standalone-form{max-width:1120px;margin:0 auto}
.dcm-order-status-submitted .dcm-order-score strong,.dcm-order-status-in_review .dcm-order-score strong{color:#8a5cf6}
.dcm-order-status-approved .dcm-order-score strong,.dcm-order-status-locked .dcm-order-score strong{color:#1f9d55}
.dcm-order-status-changes_requested .dcm-order-score strong{color:#d97706}
@media (max-width:720px){.dcm-order-status-card{align-items:flex-start;flex-direction:column}.dcm-order-score{width:96px;height:96px}.dcm-order-score strong{font-size:24px}}
