.dbc-page {
    --dbc-surface: #ffffff;
    --dbc-surface-muted: rgba(15, 23, 42, 0.03);
    --dbc-border: rgba(255, 64, 64, 0.16);
    --dbc-border-soft: rgba(15, 23, 42, 0.08);
    --dbc-shadow: 0 16px 48px rgba(15, 23, 42, 0.08);
    --dbc-text: #121212;
    --dbc-text-soft: #4f545c;
    --dbc-text-muted: #757b84;
    padding-bottom: 40px;
}

.dbc-profile-modal {
    background: rgba(4, 4, 6, 0.82);
}

body.dbc-profile-modal-open #nbGlobalFab {
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
}

body.dbc-profile-modal-open #tagCreateFab,
body.dbc-profile-modal-open .chat-container {
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
}

.dbc-profile-modal .dbc-page {
    --dbc-surface: #ffffff;
    --dbc-surface-muted: rgba(15, 23, 42, 0.03);
    --dbc-border: rgba(255, 64, 64, 0.16);
    --dbc-border-soft: rgba(15, 23, 42, 0.08);
    --dbc-shadow: 0 16px 48px rgba(15, 23, 42, 0.08);
    --dbc-text: #121212;
    --dbc-text-soft: #4f545c;
    --dbc-text-muted: #757b84;
}

body.night_mode .dbc-profile-modal .dbc-page,
.night_mode .dbc-profile-modal .dbc-page,
html:has(link.night-mode-css) .dbc-profile-modal .dbc-page {
    --dbc-surface: #101012;
    --dbc-surface-muted: rgba(255, 255, 255, 0.05);
    --dbc-border: rgba(255, 79, 79, 0.28);
    --dbc-border-soft: rgba(255, 255, 255, 0.1);
    --dbc-shadow: 0 24px 60px rgba(0, 0, 0, 0.42);
    --dbc-text: #f6f6f8;
    --dbc-text-soft: #d4d4d8;
    --dbc-text-muted: #9f9fa6;
}

.dbc-profile-modal__dialog {
    margin: 18px auto;
    max-width: 1280px;
    overflow-x: hidden;
    width: calc(100vw - 32px);
}

.dbc-profile-modal .modal-dialog {
    transform: none !important;
    transition: none !important;
}

.dbc-profile-modal-open .modal-backdrop,
.dbc-profile-modal-open .modal-backdrop.fade,
.dbc-profile-modal-open .modal-backdrop.show {
    transition: none !important;
}

.dbc-profile-modal__content {
    border: 0;
    overflow: hidden;
    position: relative;
}

.dbc-profile-modal .modal-header {
    align-items: center;
    display: flex;
    gap: 12px;
}

.dbc-profile-modal .modal-header .modal-title {
    flex: 1;
}

.dbc-profile-modal__edit {
    flex: 0 0 auto;
    margin-right: 8px;
    order: 1;
}

.dbc-profile-modal .modal-header .close {
    order: 2;
}

.dbc-page-public-modal {
    padding-bottom: 0;
}

.dbc-page-public-modal .dbc-public-shell {
    background: transparent;
    border: 0;
    border-radius: 0;
    overflow: visible;
    padding: 0;
}

.dbc-social-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

.dbc-social-link {
    align-items: center;
    background: var(--dbc-surface-muted);
    border: 1px solid var(--dbc-border-soft);
    border-radius: 999px;
    color: var(--dbc-text);
    display: inline-flex;
    gap: 8px;
    min-height: 40px;
    padding: 8px 12px;
    text-decoration: none;
}

.dbc-social-link:hover,
.dbc-social-link:focus {
    color: var(--dbc-text);
    text-decoration: none;
}

.dbc-social-link__icon {
    align-items: center;
    color: #ff5d5d;
    display: inline-flex;
    font-size: 12px;
    font-weight: 800;
    height: 18px;
    justify-content: center;
    min-width: 18px;
}

.dbc-social-link__label {
    font-size: 13px;
    font-weight: 600;
}

.dbc-social-link--compact {
    min-height: 36px;
    padding: 8px 10px;
}

.dbc-social-link--compact .dbc-social-link__label {
    display: none;
}

.dbc-social-missing {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.dbc-social-missing__label {
    color: var(--dbc-text-muted);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.dbc-social-chip,
.dbc-cc-social-count {
    background: rgba(255, 93, 93, 0.1);
    border: 1px solid rgba(255, 93, 93, 0.2);
    border-radius: 999px;
    color: #ff6a6a;
    display: inline-flex;
    font-size: 12px;
    font-weight: 700;
    padding: 6px 10px;
}

.dbc-social-edit-btn {
    margin-top: 18px;
}

.dbc-brand-badge {
    border: 1px solid rgba(255, 74, 74, 0.7);
    border-radius: 10px;
    color: #ff5757;
    display: inline-flex;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    margin-left: 8px;
    padding: 4px 10px;
    text-transform: uppercase;
    vertical-align: middle;
}

body.night_mode .dbc-page,
.night_mode .dbc-page,
html:has(link.night-mode-css) .dbc-page {
    --dbc-surface: linear-gradient(180deg, rgba(25, 25, 25, 0.95), rgba(14, 14, 14, 0.98));
    --dbc-surface-muted: rgba(255, 255, 255, 0.03);
    --dbc-border: rgba(255, 64, 64, 0.22);
    --dbc-border-soft: rgba(255, 255, 255, 0.08);
    --dbc-shadow: 0 16px 48px rgba(0, 0, 0, 0.28);
    --dbc-text: #ffffff;
    --dbc-text-soft: #d7d7d7;
    --dbc-text-muted: #b9b9b9;
}

.dbc-hero,
.dbc-public-shell,
.dbc-panel {
    background: var(--dbc-surface);
    border: 1px solid var(--dbc-border);
    border-radius: 22px;
    box-shadow: var(--dbc-shadow);
}

.dbc-hero,
.dbc-grid,
.dbc-public-head,
.dbc-contact-row,
.dbc-inline-row,
.dbc-feature-grid,
.dbc-lead-stack,
.dbc-lead-meta {
    display: grid;
}

.dbc-hero {
    gap: 24px;
    grid-template-columns: minmax(0, 1.7fr) minmax(280px, 0.9fr);
    margin-bottom: 24px;
    padding: 28px;
}

.dbc-hero__copy h2,
.dbc-panel h2,
.dbc-panel h3,
.dbc-public-head h1,
.dbc-profile-card h3 {
    color: var(--dbc-text);
    margin: 0 0 10px;
}

.dbc-hero__copy p,
.dbc-panel p,
.dbc-public-head p,
.dbc-inline-note,
.dbc-flow-note,
.dbc-list-clean li,
.dbc-contact-row span,
.dbc-stat-card span,
.dbc-role,
.dbc-handle {
    color: var(--dbc-text-muted);
}

.dbc-eyebrow {
    color: #ff5454;
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.dbc-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 18px 0 10px;
}

.dbc-inline-note a,
.dbc-flow-note a {
    color: #ff6a6a;
}

.dbc-hero__qr {
    align-content: start;
    padding: 24px;
}

.dbc-qr-box {
    align-items: center;
    background: #fff;
    border-radius: 18px;
    display: flex;
    justify-content: center;
    min-height: 250px;
    padding: 18px;
}

.dbc-qr-canvas {
    min-height: 200px;
    min-width: 200px;
}

.dbc-grid {
    gap: 24px;
}

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

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

.dbc-panel,
.dbc-public-shell {
    padding: 24px;
}

.dbc-panel-wide {
    grid-column: 1 / -1;
}

.dbc-panel-priority {
    border-color: rgba(255, 64, 64, 0.42);
    box-shadow: 0 18px 60px rgba(128, 0, 0, 0.18);
}

.dbc-panel__header {
    align-items: flex-start;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: space-between;
    margin-bottom: 14px;
}

.dbc-badge {
    background: rgba(199, 20, 20, 0.16);
    border: 1px solid rgba(255, 82, 82, 0.35);
    border-radius: 999px;
    color: #ff7a7a;
    font-size: 12px;
    font-weight: 700;
    padding: 7px 12px;
}

.dbc-profile-card {
    align-items: center;
    display: flex;
    gap: 18px;
    margin-bottom: 20px;
}

.dbc-avatar {
    border: 3px solid var(--dbc-border-soft);
    border-radius: 20px;
    height: 88px;
    object-fit: cover;
    width: 88px;
}

.dbc-avatar-lg {
    border-radius: 24px;
    height: 110px;
    width: 110px;
}

.dbc-about {
    color: var(--dbc-text-soft);
    line-height: 1.6;
}

.dbc-contact-list {
    display: grid;
    gap: 12px;
}

.dbc-contact-row {
    align-items: center;
    background: var(--dbc-surface-muted);
    border: 1px solid var(--dbc-border-soft);
    border-radius: 16px;
    gap: 10px;
    grid-template-columns: 110px minmax(0, 1fr);
    padding: 12px 14px;
}

.dbc-contact-row strong {
    color: var(--dbc-text);
    font-weight: 600;
    overflow-wrap: anywhere;
}

.dbc-stat-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-bottom: 18px;
}

.dbc-stat-card {
    background: var(--dbc-surface-muted);
    border: 1px solid var(--dbc-border-soft);
    border-radius: 18px;
    display: grid;
    gap: 6px;
    padding: 16px;
}

.dbc-stat-card strong {
    color: var(--dbc-text);
}

.dbc-summary-strip,
.dbc-activity-list,
.dbc-table,
.dbc-form-grid {
    display: grid;
    gap: 14px;
}

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

.dbc-score-pill,
.dbc-activity-item,
.dbc-table__row,
.dbc-field input,
.dbc-field textarea {
    background: var(--dbc-surface-muted);
    border: 1px solid var(--dbc-border-soft);
    border-radius: 16px;
}

.dbc-score-pill,
.dbc-activity-item,
.dbc-table__row {
    padding: 14px 16px;
}

.dbc-score-pill,
.dbc-activity-item,
.dbc-table__row,
.dbc-field,
.dbc-flow-list,
.dbc-list-clean {
    color: var(--dbc-text-soft);
}

.dbc-activity-item,
.dbc-table__row {
    align-items: center;
    display: flex;
    gap: 12px;
    justify-content: space-between;
}

.dbc-activity-item strong,
.dbc-table__row strong,
.dbc-score-pill strong,
.dbc-field span {
    color: var(--dbc-text);
}

.dbc-activity-item span,
.dbc-activity-item time,
.dbc-table__row span,
.dbc-empty-state,
.dbc-char-count {
    color: var(--dbc-text-muted);
    display: block;
}

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

.dbc-field {
    display: grid;
    gap: 8px;
}

.dbc-field input,
.dbc-field textarea {
    color: var(--dbc-text);
    padding: 13px 14px;
    width: 100%;
}

.dbc-field input::placeholder,
.dbc-field textarea::placeholder {
    color: var(--dbc-text-muted);
}

.dbc-field textarea {
    resize: vertical;
}

.dbc-field-full {
    margin: 14px 0 16px;
}

.dbc-form-alert .alert {
    margin-bottom: 14px;
}

.dbc-stat-card--muted {
    opacity: 0.78;
}

.dbc-flow-list,
.dbc-list-clean {
    margin: 0;
    padding-left: 18px;
}

.dbc-flow-list li,
.dbc-list-clean li {
    margin-bottom: 10px;
}

.dbc-public-cover {
    background-color: #111;
    background-position: center;
    background-size: cover;
    border-radius: 20px;
    height: 180px;
    margin-bottom: 18px;
    position: relative;
}

/* Dashboard preview: same theme tokens as the public card, so what a member
   sees here is what a visitor gets. Tokens come from the theme blocks further
   down the file. */
.dbc-cc-preview-card.dbc-has-custom-background {
    --dbc-surface-panel: var(--dbc-surface-alpha);
}

.dbc-cc-preview-card.dbc-panel .dbc-cc-preview-body {
    background: var(--dbc-page-background);
    isolation: isolate;
    overflow: hidden;
    position: relative;
}

.dbc-cc-preview-card.dbc-has-custom-background .dbc-cc-preview-body::before {
    background-image: var(--dbc-background-overlay), var(--dbc-custom-background-image);
    background-position: var(--dbc-background-position, center);
    background-repeat: no-repeat;
    background-size: cover;
    content: '';
    inset: 0;
    pointer-events: none;
    position: absolute;
    z-index: -1;
}

.dbc-cc-preview-card.dbc-panel .dbc-cc-preview-hero {
    background: linear-gradient(135deg, var(--dbc-accent-soft), transparent);
}

.dbc-cc-preview-card.dbc-panel .dbc-avatar {
    border-color: var(--dbc-avatar-ring);
}

.dbc-cc-preview-card.dbc-panel .dbc-social-link__icon {
    color: var(--dbc-accent);
}

.dbc-public-cover::after {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.04), rgba(0, 0, 0, 0.7));
    border-radius: 20px;
    content: '';
    inset: 0;
    position: absolute;
}

.dbc-public-head {
    gap: 18px;
    grid-template-columns: 110px minmax(0, 1fr);
    margin-bottom: 24px;
}

.dbc-inline-row {
    align-items: center;
    gap: 12px;
    grid-auto-flow: column;
    justify-content: start;
}

.dbc-inline-row-wrap {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.dbc-lead-stack {
    gap: 14px;
}

.dbc-lead-card {
    background: var(--dbc-surface-muted);
    border: 1px solid var(--dbc-border-soft);
    border-radius: 18px;
    display: grid;
    gap: 14px;
    padding: 18px;
}

.dbc-lead-card__top,
.dbc-lead-actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: space-between;
}

.dbc-lead-card__top strong,
.dbc-lead-summary,
.dbc-lead-brief,
.dbc-status-chip {
    color: var(--dbc-text);
}

.dbc-lead-summary,
.dbc-lead-brief,
.dbc-lead-meta span {
    color: var(--dbc-text-muted);
}

.dbc-lead-summary,
.dbc-lead-brief {
    margin: 0;
}

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

.dbc-status-chip {
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    padding: 6px 10px;
}

.dbc-status-new {
    background: rgba(15, 23, 42, 0.06);
    border: 1px solid rgba(15, 23, 42, 0.12);
}

body.night_mode .dbc-status-new,
.night_mode .dbc-status-new,
html:has(link.night-mode-css) .dbc-status-new {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
}

.dbc-status-priority {
    background: rgba(199, 20, 20, 0.18);
    border: 1px solid rgba(255, 82, 82, 0.45);
    color: #ff8f8f;
}

.dbc-status-contacted {
    background: rgba(40, 120, 90, 0.22);
    border: 1px solid rgba(76, 175, 80, 0.4);
    color: #b5ffbb;
}

.dbc-status-archived {
    background: rgba(107, 107, 107, 0.18);
    border: 1px solid rgba(163, 163, 163, 0.24);
    color: #d0d0d0;
}

.dbc-status-nurturing {
    background: rgba(59, 130, 246, 0.18);
    border: 1px solid rgba(96, 165, 250, 0.4);
    color: #93c5fd;
}

/* Leads table controls */
.dbc-leads-controls {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.dbc-leads-per-page-label {
    color: var(--dbc-text-muted);
    font-size: 12px;
    font-weight: 600;
    margin: 0;
    text-transform: uppercase;
}

.dbc-leads-per-page {
    -webkit-appearance: none;
    appearance: none;
    background: var(--dbc-surface-muted);
    border: 1px solid var(--dbc-border-soft);
    border-radius: 6px;
    color: var(--dbc-text);
    font-size: 12px;
    line-height: 1.2;
    padding: 6px 26px 6px 9px;
}

.dbc-page-member .dbc-leads-per-page option,
.dbc-page-member .dbc-leads-per-page optgroup {
    background: #ffffff;
    color: #1f2430;
}

body.night_mode .dbc-page-member .dbc-leads-per-page option,
.night_mode .dbc-page-member .dbc-leads-per-page option,
html:has(link.night-mode-css) .dbc-page-member .dbc-leads-per-page option,
body.night_mode .dbc-page-member .dbc-leads-per-page optgroup,
.night_mode .dbc-page-member .dbc-leads-per-page optgroup,
html:has(link.night-mode-css) .dbc-page-member .dbc-leads-per-page optgroup {
    background: #17181b;
    color: #f2f4f8;
}

/* Status inline dropdown */
.dbc-status-dropdown {
    position: relative;
}

.dbc-status-dropdown .dbc-status-chip {
    cursor: pointer;
}

.dbc-status-menu {
    background: var(--dbc-surface);
    border: 1px solid var(--dbc-border-soft);
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
    display: none;
    flex-direction: column;
    min-width: 120px;
    padding: 4px;
    position: absolute;
    right: 0;
    top: 100%;
    z-index: 10;
}

.dbc-status-menu--open {
    display: flex;
}

.dbc-status-menu button {
    background: transparent;
    border: none;
    border-radius: 6px;
    color: var(--dbc-text-soft);
    cursor: pointer;
    font-size: 12px;
    padding: 7px 12px;
    text-align: left;
    transition: background 0.15s;
}

.dbc-status-menu button:hover {
    background: rgba(228, 13, 13, 0.14);
    color: var(--dbc-text);
}

.dbc-badge-score {
    background: rgba(15, 23, 42, 0.05);
}

body.night_mode .dbc-badge-score,
.night_mode .dbc-badge-score,
html:has(link.night-mode-css) .dbc-badge-score {
    background: rgba(255, 255, 255, 0.05);
}

.dbc-score-critical {
    border-color: rgba(255, 82, 82, 0.48);
    box-shadow: 0 18px 60px rgba(128, 0, 0, 0.16);
}

.dbc-score-hot {
    border-color: rgba(255, 82, 82, 0.3);
}

.dbc-lead-actions .btn {
    min-width: 120px;
}

.dbc-feature-card .dbc-feature-grid {
    grid-template-columns: 1fr;
}

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

.dbc-feature-grid div {
    background: var(--dbc-surface-muted);
    border: 1px solid var(--dbc-border-soft);
    border-radius: 18px;
    padding: 18px;
}

.dbc-feature-grid strong {
    color: var(--dbc-text);
    display: block;
    margin-bottom: 8px;
}

/* ══════════════════════════════════════════
   Member Control Center layout
   ══════════════════════════════════════════ */
.dbc-cc-head {
    align-items: flex-start;
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    justify-content: space-between;
    margin-bottom: 24px;
}

.dbc-cc-head > div {
    flex: 1 1 320px;
    min-width: 0;
}

.dbc-cc-head .btn {
    max-width: 100%;
    white-space: normal;
}

.dbc-page-member .dbc-panel,
.dbc-page-member .dbc-cc-metric {
    border: 0;
    border-radius: 10px;
    box-shadow: 0 11px 15px -7px rgba(0, 0, 0, .2), 0 24px 38px 3px rgba(0, 0, 0, .14), 0 9px 46px 8px rgba(0, 0, 0, .12);
}

.dbc-page-member .tag_user_insight {
    margin: 0;
    padding: 0;
}

.dbc-page-member .dbc-panel.tag_user_insight {
    padding: 22px 24px 24px;
}

.dbc-page-member .dbc-panel__header--analytics {
    align-items: center;
    margin-bottom: 16px;
}

.dbc-page-member .dbc-cc-section-title {
    color: var(--main, #ef3338);
    display: flex;
    flex: 1 1 auto;
    font-size: 16px;
    font-weight: 700;
    margin: 0;
}

.dbc-page-member .dbc-cc-section-title::after {
    background: rgba(0, 0, 0, 0.1);
    content: '';
    flex-grow: 1;
    height: 1px;
    margin-left: 10px;
}

body.night_mode .dbc-page-member .dbc-cc-section-title::after,
.night_mode .dbc-page-member .dbc-cc-section-title::after,
html:has(link.night-mode-css) .dbc-page-member .dbc-cc-section-title::after {
    background: rgba(255, 255, 255, 0.12);
}

.dbc-cc-title {
    color: var(--dbc-text);
    font-size: 28px;
    font-weight: 800;
    margin: 0 0 4px;
}

.dbc-cc-sub {
    color: var(--dbc-text-muted);
    margin: 0;
    overflow-wrap: anywhere;
}

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

.dbc-cc-grid > * {
    min-width: 0;
}

.dbc-cc-social-card {
    grid-column: span 2;
}

/* QR card: spans left 2 columns */
.dbc-cc-qr-card {
    grid-column: 1 / -1;
}

.dbc-cc-qr-card .dbc-panel__header {
    margin-bottom: 8px;
}

.dbc-cc-live-dot {
    color: #39d07f;
    font-size: 13px;
    font-weight: 600;
}

.dbc-cc-live-dot::before {
    background: #39d07f;
    border-radius: 50%;
    content: '';
    display: inline-block;
    height: 8px;
    margin-right: 6px;
    width: 8px;
}

.dbc-cc-qr-wrap {
    align-items: start;
    display: grid;
    gap: 22px;
    grid-template-columns: minmax(0, 240px) minmax(0, 1fr);
    margin: 14px 0;
}

.dbc-cc-qr-wrap .dbc-qr-box {
    align-items: stretch;
    background: #fff;
    border: 1px solid var(--dbc-border-soft);
    border-radius: 14px;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .55);
    display: flex;
    justify-content: stretch;
    min-height: 220px;
    padding: 22px;
}

.dbc-cc-qr-wrap .dbc-qr-canvas {
    aspect-ratio: 1;
    display: block;
    min-height: 0;
    min-width: 0;
    width: 100%;
}

.dbc-cc-qr-wrap .dbc-qr-canvas canvas,
.dbc-cc-qr-wrap .dbc-qr-canvas svg {
    display: block;
    height: 100% !important;
    width: 100% !important;
}

.dbc-cc-qr-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.dbc-cc-qr-actions .btn {
    background: var(--dbc-surface-muted);
    border: 1px solid var(--dbc-border-soft);
    color: var(--dbc-text);
    text-align: left;
    white-space: normal;
    width: 100%;
}

.dbc-cc-qr-actions .btn:hover,
.dbc-cc-qr-actions .btn:focus {
    background: rgba(228, 13, 13, 0.12);
    border-color: rgba(228, 13, 13, 0.35);
    color: var(--dbc-text);
}

.dbc-cc-url-bar {
    align-items: center;
    background: var(--dbc-surface-muted);
    border: 1px solid var(--dbc-border-soft);
    border-radius: 10px;
    color: var(--dbc-text-muted);
    display: flex;
    flex-wrap: nowrap;
    font-size: 12px;
    gap: 8px;
    justify-content: space-between;
    margin-top: 8px;
    padding: 10px 14px;
}

.dbc-page-member .dbc-cc-url-bar.counter {
    background: rgb(0 0 0 / 5%);
    border: 0;
    border-radius: 10px;
    box-shadow: none;
    margin-top: 12px;
}

body.night_mode .dbc-page-member .dbc-cc-url-bar.counter,
.night_mode .dbc-page-member .dbc-cc-url-bar.counter,
html:has(link.night-mode-css) .dbc-page-member .dbc-cc-url-bar.counter {
    background: rgba(255, 255, 255, 0.05);
}

.dbc-cc-url-bar span {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dbc-cc-url-bar button {
    background: transparent;
    border: none;
    color: var(--dbc-text-muted);
    cursor: pointer;
    flex: 0 0 auto;
    font-size: 13px;
    line-height: 1;
    padding: 0;
}

/* Metric cards */
.dbc-cc-metric {
    background: var(--dbc-surface);
    border: 1px solid var(--dbc-border);
    border-radius: var(--dbc-radius, 18px);
    box-shadow: var(--dbc-shadow);
    display: grid;
    gap: 4px;
    min-width: 0;
    padding: 22px 20px;
}

.dbc-page-member .dbc-cc-metric.counter {
    background: rgb(0 0 0 / 5%);
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 10px;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.05);
    gap: 3px;
    padding: 12px 15px;
}

body:not(.night_mode) .dbc-page-member .dbc-cc-metric.counter {
    background: #ffffff;
}

body.night_mode .dbc-page-member .dbc-cc-metric.counter,
.night_mode .dbc-page-member .dbc-cc-metric.counter,
html:has(link.night-mode-css) .dbc-page-member .dbc-cc-metric.counter {
    background: rgba(255, 255, 255, 0.05);
}

.dbc-cc-metric span,
.dbc-cc-metric p {
    color: var(--dbc-text-muted);
    font-size: 13px;
    margin: 0 0 3px;
    opacity: 0.9;
    text-transform: uppercase;
}

.dbc-cc-metric strong,
.dbc-cc-metric h2 {
    color: var(--dbc-text);
    font-size: 26px;
    font-weight: 800;
    line-height: 1.1;
    margin: 0;
}

.dbc-cc-metric h2 small {
    color: var(--dbc-text-muted);
    font-size: 13px;
    font-weight: 600;
    margin-left: 4px;
}

.dbc-cc-level {
    border-radius: 8px;
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    margin-top: 4px;
    padding: 4px 10px;
    width: max-content;
}

.dbc-level-high {
    background: rgba(57, 208, 127, .15);
    color: #39d07f;
}

.dbc-level-med {
    background: rgba(247, 183, 42, .15);
    color: #f7b72a;
}

.dbc-level-low {
    background: rgba(164, 164, 170, .15);
    color: #a4a4aa;
}

/* Leads table card */
.dbc-cc-leads-card {
    grid-column: 1 / -1;
}

.dbc-cc-table-wrap {
    margin-top: 14px;
    overflow-x: auto;
}

.dbc-cc-table-wrap.is-loading {
    opacity: 0.6;
    transition: opacity .18s ease;
}

.dbc-cc-table {
    border-collapse: collapse;
    min-width: 1020px;
    width: 100%;
}

.dbc-cc-table th {
    border-bottom: 1px solid var(--dbc-border-soft);
    color: var(--dbc-text-muted);
    font-size: 12px;
    font-weight: 600;
    padding: 10px 12px;
    text-align: left;
    text-transform: uppercase;
    white-space: nowrap;
}

.dbc-cc-table td {
    border-bottom: 1px solid var(--dbc-border-soft);
    color: var(--dbc-text-soft);
    font-size: 14px;
    padding: 14px 12px;
    vertical-align: middle;
}

.dbc-cc-table td strong {
    color: var(--dbc-text);
    display: block;
}

.dbc-cc-table td small {
    color: var(--dbc-text-muted);
    display: block;
    font-size: 12px;
    margin-top: 2px;
}

.dbc-cc-table td time {
    color: var(--dbc-text-muted);
    font-size: 13px;
    white-space: nowrap;
}

.dbc-cc-table th:nth-child(1),
.dbc-cc-table td:nth-child(1) {
    min-width: 200px;
    width: 24%;
}

.dbc-cc-table th:nth-child(2),
.dbc-cc-table td:nth-child(2) {
    min-width: 140px;
    width: 16%;
}

.dbc-cc-table th:nth-child(3),
.dbc-cc-table td:nth-child(3) {
    width: 9%;
}

.dbc-cc-table th:nth-child(4),
.dbc-cc-table td:nth-child(4) {
    width: 11%;
}

.dbc-cc-table th:nth-child(5),
.dbc-cc-table td:nth-child(5) {
    min-width: 110px;
    width: 12%;
}

.dbc-cc-table th:nth-child(6),
.dbc-cc-table td:nth-child(6) {
    min-width: 148px;
    overflow: visible;
    width: 14%;
    white-space: nowrap;
}

.dbc-cc-table th:nth-child(7),
.dbc-cc-table td:nth-child(7) {
    min-width: 180px;
    width: 16%;
}

.dbc-cc-score {
    border-radius: 8px;
    display: inline-block;
    font-size: 14px;
    font-weight: 700;
    min-width: 36px;
    padding: 4px 10px;
    text-align: center;
}

.dbc-cc-score.dbc-score-critical {
    background: rgba(239, 51, 56, .15);
    color: #ef3338;
}

.dbc-cc-score.dbc-score-hot {
    background: rgba(239, 51, 56, .10);
    color: #ff8f8f;
}

.dbc-cc-score.dbc-score-warm {
    background: rgba(247, 183, 42, .12);
    color: #f7b72a;
}

.dbc-cc-score.dbc-score-cool {
    background: rgba(164, 164, 170, .12);
    color: #a4a4aa;
}

.dbc-leads-footer {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: space-between;
    margin-top: 16px;
}

.dbc-leads-footer--hidden {
    display: none;
}

.dbc-leads-summary {
    color: var(--dbc-text-muted);
    font-size: 13px;
}

.dbc-leads-pagination {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}

.dbc-page-btn {
    background: var(--dbc-surface-muted);
    border: 1px solid var(--dbc-border-soft);
    border-radius: 10px;
    color: var(--dbc-text-soft);
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
    min-width: 40px;
    padding: 10px 12px;
    transition: .18s ease;
}

.dbc-page-btn:hover {
    border-color: rgba(239, 51, 56, .28);
    color: var(--dbc-text);
}

.dbc-page-btn.is-active {
    background: #ef3338;
    border-color: #ef3338;
    color: #fff;
}

.dbc-page-btn.is-disabled,
.dbc-page-btn:disabled {
    cursor: default;
    opacity: 0.45;
}

.dbc-page-btn--nav {
    min-width: 88px;
}

.dbc-page-ellipsis {
    color: var(--dbc-text-muted);
    font-size: 16px;
    line-height: 1;
    padding: 0 2px;
}

.dbc-cc-actions-cell {
    align-items: center;
    display: flex;
    gap: 6px;
    justify-content: flex-start;
    flex-wrap: nowrap;
    white-space: nowrap;
}

.dbc-cc-actions-cell .btn.btn-sm {
    border-radius: 999px;
    display: inline-flex;
    font-size: 11px !important;
    font-weight: 600;
    justify-content: center;
    line-height: 1.2;
    min-height: 24px;
    padding: 5px 9px !important;
    text-transform: none;
}

/* Preview mini card */
.dbc-cc-preview-card {
    align-self: start;
    grid-column: span 1;
    text-align: center;
}

.dbc-page-member .dbc-cc-preview-card .dbc-cc-section-title {
    margin-bottom: 14px;
}

.dbc-cc-preview-body {
    background: rgb(0 0 0 / 5%);
    border-radius: 10px;
    margin-top: 0;
    padding: 14px 15px 15px;
}

body.night_mode .dbc-cc-preview-body,
.night_mode .dbc-cc-preview-body,
html:has(link.night-mode-css) .dbc-cc-preview-body {
    background: rgba(255, 255, 255, 0.05);
}

.dbc-cc-preview-hero {
    background: linear-gradient(135deg, rgba(228, 13, 13, 0.18), rgba(228, 13, 13, 0.08));
    border-radius: 14px;
    height: 80px;
    margin-bottom: -30px;
}

body.night_mode .dbc-cc-preview-hero,
.night_mode .dbc-cc-preview-hero,
html:has(link.night-mode-css) .dbc-cc-preview-hero {
    background: linear-gradient(135deg, #1a0505, #2a0a0a);
}

.dbc-cc-preview-card .dbc-avatar {
    border: 3px solid var(--dbc-border);
    margin-bottom: 10px;
    position: relative;
    z-index: 1;
}

.dbc-cc-preview-card h4 {
    color: var(--dbc-text);
    font-size: 16px;
    margin: 0 0 4px;
}

.dbc-cc-preview-role {
    color: var(--dbc-text-muted);
    font-size: 13px;
    margin: 0 0 14px;
}

/* Activity feed card */
.dbc-cc-activity-card {
    align-self: start;
    grid-column: span 3;
}

.dbc-cc-activity-list {
    list-style: none;
    margin: 14px 0 0;
    padding: 0;
}

.dbc-cc-activity-list li {
    background: rgb(0 0 0 / 5%);
    border-radius: 10px;
    display: flex;
    gap: 12px;
    justify-content: space-between;
    margin-bottom: 10px;
    padding: 12px 14px;
}

.dbc-cc-activity-list li:last-child {
    margin-bottom: 0;
}

body.night_mode .dbc-cc-activity-list li,
.night_mode .dbc-cc-activity-list li,
html:has(link.night-mode-css) .dbc-cc-activity-list li {
    background: rgba(255, 255, 255, 0.05);
}

.dbc-cc-activity-list span {
    color: var(--dbc-text-soft);
    font-size: 14px;
}

.dbc-cc-activity-list time {
    color: var(--dbc-text-muted);
    font-size: 12px;
    white-space: nowrap;
}

/* ── Public DBC: brand bar ── */
.dbc-brand-bar {
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    justify-content: space-between;
    padding: 18px 28px;
}

.dbc-brand-logo {
    color: var(--dbc-text);
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -1px;
}

.dbc-brand-logo strong {
    color: #ef3338;
}

.dbc-brand-trust {
    color: var(--dbc-text-muted);
    font-size: 13px;
}

.dbc-brand-link {
    border: 1px solid var(--dbc-border-soft);
    border-radius: 11px;
    color: var(--dbc-text);
    font-size: 13px;
    font-weight: 600;
    padding: 10px 14px;
    text-decoration: none;
    transition: .18s ease;
}

.dbc-brand-link:hover {
    border-color: #ef3338;
    box-shadow: 0 0 0 1px rgba(239, 51, 56, .55), 0 0 28px rgba(239, 51, 56, .10);
    color: var(--dbc-text);
    text-decoration: none;
}

/* ── Public DBC: content layout ── */
.dbc-public-content {
    align-items: start;
    display: grid;
    gap: 20px;
    grid-template-columns: minmax(280px, 330px) minmax(0, 1fr);
    padding: 28px;
}

.dbc-public-stack {
    display: grid;
    gap: 18px;
    min-width: 0;
}

/* ── Public DBC: profile article ── */
.dbc-profile-article {
    background: var(--dbc-surface);
    border: 1px solid var(--dbc-border-soft);
    border-radius: 26px;
    box-shadow: var(--dbc-shadow);
    display: grid;
    gap: 20px;
    grid-template-columns: 1fr;
    justify-items: center;
    overflow: hidden;
    padding: 26px;
    position: relative;
    text-align: center;
}

.dbc-profile-article.dbc-glow {
    border-color: var(--dbc-border-soft);
    box-shadow: var(--dbc-shadow);
}

.dbc-profile-article__label {
    background: var(--dbc-surface-muted);
    border: 1px solid var(--dbc-border-soft);
    border-radius: 10px;
    color: var(--dbc-text-muted);
    font-size: 13px;
    left: 18px;
    padding: 10px 12px;
    position: absolute;
    top: 18px;
    z-index: 2;
}

.dbc-profile-article__label span:last-child {
    display: block;
    font-size: 11px;
    margin-top: 2px;
    opacity: .7;
}

.dbc-profile-article__media {
    display: flex;
    justify-content: center;
    position: relative;
}

.dbc-profile-article .dbc-avatar-lg {
    border: 3px solid rgba(255, 74, 74, 0.45);
    border-radius: 50%;
    box-shadow: 0 0 0 6px rgba(255, 74, 74, 0.08), 0 18px 34px rgba(0, 0, 0, 0.3);
    height: 150px;
    object-fit: cover;
    width: 150px;
}

.dbc-profile-article__verified-badge {
    align-items: center;
    background: #ff4747;
    border: 3px solid #111214;
    border-radius: 50%;
    bottom: 8px;
    box-shadow: 0 0 0 1px rgba(255, 71, 71, 0.35);
    display: inline-flex;
    height: 26px;
    justify-content: center;
    position: absolute;
    right: calc(50% - 75px + 10px);
    width: 26px;
}

.dbc-profile-article__avatar-link {
    border-radius: 50%;
    display: inline-flex;
    line-height: 0;
    text-decoration: none;
}

.dbc-profile-article__avatar-link:focus-visible {
    outline: 2px solid rgba(239, 51, 56, 0.6);
    outline-offset: 4px;
}

.dbc-profile-article h1 {
    color: var(--dbc-text);
    font-size: 24px;
    margin: 0;
}

.dbc-profile-name-link {
    color: inherit;
    text-decoration: none;
}

.dbc-profile-name-link:hover,
.dbc-profile-name-link:focus {
    color: #ff5c5c;
    text-decoration: none;
}

.dbc-profile-name-link:focus-visible {
    border-radius: 6px;
    outline: 2px solid rgba(239, 51, 56, 0.6);
    outline-offset: 3px;
}

.dbc-profile-copy {
    display: grid;
    gap: 14px;
    justify-items: center;
    min-width: 0;
    text-align: center;
    width: 100%;
}

.dbc-profile-copy__header {
    display: grid;
    gap: 8px;
    justify-items: center;
}

.dbc-title {
    color: #ff5c5c;
    font-size: 16px;
    font-weight: 600;
    margin: 0;
}

.dbc-contact-inline {
    color: var(--dbc-text-soft);
    display: grid;
    font-size: 14px;
    gap: 10px;
    list-style: none;
    margin: 0;
    padding: 0;
    width: 100%;
}

.dbc-contact-inline li {
    align-items: center;
    background: var(--dbc-surface-muted);
    border: 1px solid var(--dbc-border-soft);
    border-radius: 14px;
    display: flex;
    gap: 10px;
    padding: 11px 14px;
}

.dbc-contact-inline__icon {
    align-items: center;
    color: #ff5c5c;
    display: inline-flex;
    flex: 0 0 auto;
    justify-content: center;
}

.dbc-contact-inline__link {
    color: inherit;
    text-decoration: none;
    word-break: break-word;
}

.dbc-contact-inline__link:hover,
.dbc-contact-inline__link:focus {
    color: #ff5c5c;
    text-decoration: none;
}

.dbc-contact-inline__link:focus-visible {
    border-radius: 6px;
    outline: 2px solid rgba(239, 51, 56, 0.6);
    outline-offset: 2px;
}

.dbc-verified-strip {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    color: #d9d9dd;
    font-size: 13px;
    font-weight: 600;
    padding: 12px 16px;
    text-align: center;
}

.dbc-social-strip--public {
    gap: 12px;
    margin-top: 2px;
}

.dbc-social-strip--public .dbc-social-link {
    background: var(--dbc-surface-muted);
    border-color: var(--dbc-border-soft);
    border-radius: 50%;
    height: 44px;
    justify-content: center;
    min-height: 44px;
    min-width: 44px;
    padding: 0;
    width: 44px;
}

.dbc-social-strip--public .dbc-social-link__label {
    display: none;
}

/* ── Public DBC: step cards ── */
.dbc-step-card {
    background: var(--dbc-surface);
    border: 1px solid var(--dbc-border-soft);
    border-radius: 24px;
    box-shadow: var(--dbc-shadow);
    padding: 24px;
    position: relative;
}

.dbc-step-card h2 {
    color: var(--dbc-text);
    font-size: 18px;
    margin: 0;
}

.dbc-step-card p {
    color: var(--dbc-text-muted);
    margin: 0;
}

.dbc-step-card__topbar {
    align-items: flex-start;
    display: flex;
    gap: 12px;
    justify-content: space-between;
    margin: 0 0 18px 54px;
}

.dbc-step-card__head {
    display: grid;
    gap: 6px;
    min-width: 0;
}

.dbc-step-card__status {
    background: rgba(39, 171, 96, 0.08);
    border: 1px solid rgba(39, 171, 96, 0.25);
    border-radius: 999px;
    color: #9ee6af;
    flex: 0 0 auto;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.03em;
    padding: 8px 10px;
    text-transform: uppercase;
}

.dbc-step-card__body {
    margin-left: 54px;
}

.dbc-step-number {
    align-items: center;
    background: var(--main);
    border: 0;
    border-radius: 50%;
    color: var(--main-color);
    display: grid;
    font-size: 16px;
    font-weight: 900;
    height: 40px;
    left: 22px;
    place-items: center;
    position: absolute;
    top: 22px;
    width: 40px;
}

.dbc-step-card--save {
    border-color: var(--dbc-border-soft);
    box-shadow: var(--dbc-shadow);
}

.dbc-save-layout {
    align-items: start;
    display: grid;
    gap: 16px;
    grid-template-columns: minmax(170px, 190px) minmax(0, 1fr);
}

.dbc-save-layout__actions {
    min-width: 0;
}

.dbc-step-qr-box {
    align-items: center;
    background: #fff;
    border-radius: 20px;
    display: flex;
    justify-content: center;
    min-height: 190px;
    padding: 16px;
}

.dbc-step-qr-box .dbc-qr-canvas {
    min-height: 0;
    min-width: 0;
    width: 100%;
}

.dbc-step-qr-box .dbc-qr-canvas canvas,
.dbc-step-qr-box .dbc-qr-canvas svg {
    display: block;
    height: auto !important;
    width: 100% !important;
}

.dbc-save-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 18px 0 14px;
}

.dbc-save-actions .btn {
    border: 1px solid var(--dbc-border-soft);
    border-radius: 11px;
    padding: 12px 14px;
    text-align: left;
    transition: .18s ease;
}

.dbc-save-actions .btn:hover {
    border-color: #ef3338;
    box-shadow: 0 0 0 1px rgba(239, 51, 56, .55), 0 0 28px rgba(239, 51, 56, .10);
}

.dbc-save-actions .btn-main {
    background: linear-gradient(180deg, #ef3338, #9e171a);
    border-color: #ef3338;
    color: #fff;
    font-weight: 700;
}

.dbc-secure-note {
    color: var(--dbc-text-muted);
    display: block;
    font-size: 13px;
    margin-top: 16px;
}

/* ── Public DBC: inline inquiry ── */
.dbc-inquiry-inline {
    margin-bottom: 12px;
}

/* Honeypot — invisible to humans, bots fill it */
.dbc-hp-field {
    opacity: 0;
    position: absolute;
    top: 0;
    left: 0;
    height: 0;
    width: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.dbc-inquiry-input-wrap {
    border: 1px solid var(--dbc-border-soft);
    border-radius: 14px;
    overflow: hidden;
}

.dbc-inquiry-input-wrap textarea {
    background: transparent;
    border: none;
    color: var(--dbc-text);
    display: block;
    font-size: 14px;
    outline: none;
    padding: 14px 16px 6px;
    resize: none;
    width: 100%;
}

.dbc-inquiry-input-wrap textarea::placeholder {
    color: var(--dbc-text-muted);
}

.dbc-inquiry-bar {
    align-items: center;
    display: flex;
    gap: 14px;
    justify-content: space-between;
    padding: 6px 10px 10px 16px;
}

.dbc-inquiry-bar .dbc-char-count {
    color: var(--dbc-text-muted);
    font-size: 12px;
}

.dbc-inquiry-bar .btn {
    background: linear-gradient(180deg, #ef3338, #9e171a);
    border: 1px solid #ef3338;
    border-radius: 11px;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    padding: 10px 18px;
}

/* ── Public DBC: inquiry form fields ── */
.dbc-inquiry-field {
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--dbc-border-soft);
    color: var(--dbc-text);
    display: block;
    font-size: 14px;
    outline: none;
    padding: 12px 16px;
    width: 100%;
}

.dbc-inquiry-field::placeholder {
    color: var(--dbc-text-muted);
}

.dbc-inquiry-field:focus {
    border-bottom-color: #ef3338;
}

.dbc-inquiry-contact-row {
    display: flex;
    gap: 0;
}

.dbc-inquiry-contact-row .dbc-inquiry-field {
    flex: 1;
}

.dbc-inquiry-contact-row .dbc-inquiry-field:first-child {
    border-right: 1px solid var(--dbc-border-soft);
}

/* ── Public DBC: logged-in conversation CTA ── */
.dbc-conversation-actions {
    margin: 14px 0 8px;
}

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

.dbc-owner-actions .dbc-start-conversation {
    width: auto;
}

.dbc-owner-actions__link {
    align-items: center;
    display: inline-flex;
    justify-content: center;
    min-height: 48px;
}

.dbc-owner-share-bar {
    background: var(--dbc-surface-muted);
    border: 1px solid var(--dbc-border-soft);
    border-radius: 14px;
    color: var(--dbc-text-muted);
    font-size: 13px;
    margin-top: 14px;
    overflow: hidden;
    padding: 12px 14px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dbc-start-conversation {
    background: var(--main);
    border: 0;
    border-radius: 10px;
    color: var(--main-color);
    display: inline-block;
    font-size: 15px;
    font-weight: 700;
    padding: 12px 28px;
    transition: background 0.2s;
    width: 100%;
}

.dbc-start-conversation:hover {
    background: var(--main-hover);
    color: var(--main-hover-color);
}

.dbc-start-conversation[disabled] {
    opacity: 0.6;
    cursor: wait;
}

/* ── Public DBC: feature card ── */
.dbc-feature-card {
    background: var(--dbc-surface);
    border: 1px solid var(--dbc-border-soft);
    border-radius: 24px;
    box-shadow: var(--dbc-shadow);
    padding: 24px;
}

.dbc-feature-card h2 {
    color: var(--dbc-text);
    font-size: 18px;
    margin: 0 0 16px;
}

/* ── Public DBC: flow strip ── */
.dbc-flow-strip {
    align-items: center;
    border-top: 1px solid var(--dbc-border-soft);
    color: var(--dbc-text-muted);
    display: flex;
    flex-wrap: wrap;
    font-size: 14px;
    gap: 12px;
    justify-content: center;
    margin: 0 28px;
    padding: 20px 0 24px;
}

.dbc-flow-arrow {
    color: #ef3338;
    font-weight: 700;
}

.dbc-flow-step {
    align-items: center;
    display: inline-flex;
    gap: 8px;
}

.dbc-flow-step__icon {
    align-items: center;
    background: rgba(228, 13, 13, 0.12);
    border: 1px solid rgba(228, 13, 13, 0.3);
    border-radius: 999px;
    color: var(--main, #e40d0d);
    display: inline-flex;
    height: 24px;
    justify-content: center;
    width: 24px;
}

.dbc-flow-step__label {
    color: var(--dbc-text-soft);
    font-size: 13px;
    font-weight: 600;
}

/* ── Public DBC: responsive ── */
@media (max-width: 1280px) {
    .dbc-cc-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .dbc-cc-qr-card {
        grid-column: 1 / -1;
    }

    .dbc-cc-leads-card {
        grid-column: 1 / -1;
    }

    .dbc-cc-metric {
        padding: 18px 14px;
    }

    .dbc-cc-metric strong {
        font-size: 28px;
    }

    .dbc-cc-preview-card {
        grid-column: span 1;
    }

    .dbc-cc-activity-card {
        grid-column: span 3;
    }

    .dbc-cc-table {
        min-width: 960px;
    }
}

@media (max-width: 1100px) {
    .dbc-cc-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dbc-cc-qr-card,
    .dbc-cc-leads-card,
    .dbc-cc-preview-card,
    .dbc-cc-activity-card {
        grid-column: 1 / -1;
    }

    .dbc-cc-metric {
        padding: 18px 16px;
    }

    .dbc-cc-metric strong {
        font-size: 26px;
    }
}

@media (max-width: 991px) {
    .dbc-hero,
    .dbc-grid-control,
    .dbc-grid-public,
    .dbc-feature-grid,
    .dbc-summary-strip,
    .dbc-form-grid,
    .dbc-lead-meta {
        grid-template-columns: 1fr;
    }

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

    .dbc-cc-qr-card,
    .dbc-cc-leads-card,
    .dbc-cc-preview-card,
    .dbc-cc-social-card,
    .dbc-cc-activity-card {
        grid-column: 1 / -1;
    }

    .dbc-cc-qr-wrap {
        grid-template-columns: 1fr;
    }

    .dbc-cc-qr-wrap .dbc-qr-box {
        margin: 0 auto;
        width: min(100%, 240px);
    }

    .dbc-cc-qr-wrap .dbc-qr-canvas {
        min-width: 0;
        width: 100%;
    }

    .dbc-cc-table {
        border-collapse: separate;
        min-width: 0;
    }

    .dbc-cc-table thead {
        display: none;
    }

    .dbc-cc-table,
    .dbc-cc-table tbody,
    .dbc-cc-table tr,
    .dbc-cc-table td {
        display: block;
        width: 100%;
    }

    .dbc-cc-table tr {
        background: var(--dbc-surface-muted);
        border: 1px solid var(--dbc-border-soft);
        border-radius: 14px;
        margin-bottom: 12px;
        overflow: hidden;
        padding: 6px 0;
    }

    .dbc-cc-table td {
        border-bottom: 1px solid var(--dbc-border-soft);
        padding: 10px 14px;
    }

    .dbc-cc-table td:last-child {
        border-bottom: none;
    }

    .dbc-cc-table td::before {
        color: var(--dbc-text-muted);
        content: attr(data-label);
        display: block;
        font-size: 11px;
        font-weight: 700;
        letter-spacing: .04em;
        margin-bottom: 4px;
        text-transform: uppercase;
    }

    .dbc-cc-table th:nth-child(1),
    .dbc-cc-table td:nth-child(1),
    .dbc-cc-table th:nth-child(2),
    .dbc-cc-table td:nth-child(2),
    .dbc-cc-table th:nth-child(3),
    .dbc-cc-table td:nth-child(3),
    .dbc-cc-table th:nth-child(4),
    .dbc-cc-table td:nth-child(4),
    .dbc-cc-table th:nth-child(5),
    .dbc-cc-table td:nth-child(5),
    .dbc-cc-table th:nth-child(6),
    .dbc-cc-table td:nth-child(6),
    .dbc-cc-table th:nth-child(7),
    .dbc-cc-table td:nth-child(7) {
        min-width: 0;
        white-space: normal;
        width: 100%;
    }

    .dbc-status-dropdown {
        width: 100%;
    }

    .dbc-status-menu {
        left: 0;
        min-width: min(220px, 100%);
        right: auto;
    }

    .dbc-cc-activity-list li {
        align-items: flex-start;
        flex-direction: column;
    }

    .dbc-public-content {
        grid-template-columns: 1fr;
        padding: 22px;
    }

    .dbc-profile-article {
        align-items: center;
        gap: 18px;
        grid-template-columns: 170px minmax(0, 1fr);
        padding: 22px;
        text-align: left;
    }

    .dbc-profile-article__label {
        left: 16px;
        top: 16px;
    }

    .dbc-profile-article .dbc-avatar-lg {
        height: 170px;
        width: 170px;
    }

    .dbc-verified-strip {
        grid-column: 1 / -1;
        margin-top: 4px;
        width: 100%;
    }

    .dbc-save-layout {
        grid-template-columns: minmax(160px, 184px) minmax(0, 1fr);
    }

    .dbc-feature-card {
        padding: 20px;
    }

    .dbc-public-head {
        align-items: start;
        grid-template-columns: 88px minmax(0, 1fr);
    }
}

@media (max-width: 767px) {
    .dbc-profile-modal {
        padding: 0 !important;
    }

    .dbc-profile-modal__dialog {
        margin: 0;
        max-width: 100%;
        width: 100%;
    }

    .dbc-profile-modal__content {
        min-height: 100vh;
    }

    .dbc-profile-modal .modal-content {
        border-radius: 0;
        min-height: 100vh;
        padding: 0;
    }

    .dbc-profile-modal .modal-header {
        margin: 0;
        padding: 12px 14px 10px;
    }

    .dbc-profile-modal .modal-body {
        padding: 0 !important;
    }

    .dbc-public-content {
        gap: 14px;
        overflow-x: hidden;
        padding: 0;
        width: 100%;
    }

    .dbc-profile-article,
    .dbc-step-card,
    .dbc-feature-card {
        border-radius: 18px;
        max-width: 100%;
        overflow: hidden;
        padding: 16px;
    }

    .dbc-profile-article {
        grid-template-columns: 1fr;
        justify-items: center;
        padding-top: 54px;
        text-align: center;
    }

    .dbc-profile-article__label {
        left: 14px;
        top: 14px;
    }

    .dbc-profile-article .dbc-avatar-lg {
        height: 136px;
        width: 136px;
    }

    .dbc-profile-article__verified-badge {
        right: calc(50% - 68px);
    }

    .dbc-profile-copy,
    .dbc-profile-copy__header {
        justify-items: center;
        text-align: center;
    }

    .dbc-contact-inline {
        width: 100%;
    }

    .dbc-contact-inline li {
        justify-content: center;
        text-align: center;
    }

    .dbc-social-strip--public {
        justify-content: center;
    }

    .dbc-step-number {
        font-size: 18px;
        height: 36px;
        left: 16px;
        top: 16px;
        width: 36px;
    }

    .dbc-step-card__body,
    .dbc-step-card h2,
    .dbc-step-card p {
        margin-left: 0;
    }

    .dbc-step-card__topbar {
        flex-direction: column;
        gap: 8px;
        margin-left: 46px;
        min-height: 36px;
        padding-top: 0;
    }

    .dbc-step-card__status {
        align-self: flex-start;
    }

    .dbc-save-layout {
        grid-template-columns: 1fr;
    }

    .dbc-step-qr-box {
        margin: 0 auto;
        width: min(100%, 210px);
    }

    .dbc-owner-actions,
    .dbc-profile-card__field-row {
        flex-direction: column;
    }

    .dbc-owner-actions .dbc-start-conversation,
    .dbc-owner-actions__link {
        width: 100%;
    }

    .dbc-feature-grid {
        grid-template-columns: 1fr;
    }

    .dbc-flow-strip {
        gap: 8px;
        margin: 0 16px;
        padding: 16px 0 20px;
    }

    .dbc-flow-step {
        font-size: 12px;
    }

    .dbc-profile-modal__footer-note {
        margin: 0 16px 16px;
        text-align: center;
    }

    .dbc-page-member .dbc-panel {
        padding: 18px;
    }

    .dbc-page-member .dbc-panel.tag_user_insight {
        padding: 18px;
    }

    .dbc-cc-head {
        gap: 12px;
    }

    .dbc-cc-head > div,
    .dbc-cc-head .btn {
        width: 100%;
    }

    .dbc-cc-grid {
        gap: 14px;
        grid-template-columns: 1fr;
    }

    .dbc-cc-grid > * {
        grid-column: 1 / -1 !important;
    }

    .dbc-cc-qr-wrap {
        gap: 16px;
    }

    .dbc-cc-qr-wrap .dbc-qr-box {
        min-height: 0;
        padding: 18px;
        width: min(100%, 240px);
    }

    .dbc-cc-qr-wrap .dbc-qr-canvas,
    .dbc-cc-qr-wrap .dbc-qr-canvas canvas,
    .dbc-cc-qr-wrap .dbc-qr-canvas svg {
        height: auto !important;
        max-width: 100%;
        min-width: 0;
        width: 100% !important;
    }

    .dbc-leads-controls {
        width: 100%;
    }

    .dbc-leads-per-page-label,
    .dbc-leads-controls .btn,
    .dbc-leads-per-page {
        width: 100%;
    }

    .dbc-leads-footer {
        align-items: stretch;
        flex-direction: column;
    }

    .dbc-leads-pagination {
        justify-content: flex-start;
        width: 100%;
    }

    .dbc-page-btn--nav {
        min-width: 76px;
    }

    .dbc-cc-url-bar {
        padding: 10px 12px;
    }

    .dbc-cc-metric {
        padding: 18px 16px;
    }

    .dbc-cc-metric strong {
        font-size: 24px;
    }

    .dbc-hero__actions,
    .dbc-save-actions {
        flex-direction: column;
    }

    .dbc-hero__actions .btn,
    .dbc-save-actions .btn {
        width: 100%;
    }

    .dbc-contact-row {
        gap: 6px;
        grid-template-columns: 1fr;
    }

    .dbc-inline-row {
        grid-auto-flow: row;
    }
}

@media (max-width: 575px) {
    .dbc-profile-article h1 {
        font-size: 21px;
    }

    .dbc-title {
        font-size: 14px;
    }

    .dbc-about,
    .dbc-contact-inline,
    .dbc-step-card p {
        font-size: 13px;
    }

    .dbc-profile-card__option {
        padding: 11px 12px;
    }

    .dbc-profile-card__option-text strong {
        font-size: 12px;
    }

    .dbc-profile-card__option-text small,
    .dbc-profile-card__secure,
    .dbc-step-card__status {
        font-size: 10px;
    }

    .dbc-flow-arrow {
        display: none;
    }

    .dbc-stat-grid {
        grid-template-columns: 1fr;
    }

    .dbc-activity-item,
    .dbc-table__row,
    .dbc-lead-card__top,
    .dbc-lead-actions {
        align-items: start;
        flex-direction: column;
    }
}

/* DBC member-managed links and appearance */
.dbc-profile-article__avatar-link,
.dbc-profile-name-link {
    appearance: none;
    background: none;
    border: 0;
    color: inherit;
    cursor: pointer;
    font: inherit;
    margin: 0;
    padding: 0;
}

.dbc-profile-name-link {
    align-items: center;
    display: inline-flex;
    min-height: 44px;
}

.dbc-profile-modal .modal-header .close {
    min-height: 44px;
    min-width: 44px;
}

.dbc-contact-inline__link {
    align-items: center;
    display: inline-flex;
    margin: -12px 0;
    min-height: 44px;
}

/* ══════════════════════════════════════════
   Public DBC theme tokens

   Every theme owns the full visual language of the card: background,
   overlay, surfaces, borders, typography, accent, avatar, verified badge
   and calls to action. Components below consume the tokens only, so a new
   theme needs one token block rather than component-level overrides.

   --dbc-surface-panel is the surface components actually paint with. It
   resolves to the opaque --dbc-surface normally and to the translucent
   --dbc-surface-alpha when the member supplied a background image, which
   keeps that image part of the card instead of hiding it behind cards.
   ══════════════════════════════════════════ */
.dbc-page-public-modal {
    --dbc-radius: 22px;
    --dbc-radius-sm: 14px;
    --dbc-avatar-size: 120px;
    --dbc-background-position: center;
    --dbc-surface-panel: var(--dbc-surface);
    --dbc-verified-border: var(--dbc-surface-panel);
    /* Text painted straight onto the canvas instead of a panel. Most themes
       read fine with the panel tones, so these default to them; a theme whose
       canvas contrasts with its panels (Electric day) overrides them. */
    --dbc-canvas-text: var(--dbc-text-soft);
    --dbc-canvas-muted: var(--dbc-text-muted);
    --dbc-canvas-accent: var(--dbc-accent);
    --dbc-canvas-accent-soft: var(--dbc-accent-soft);
    --dbc-canvas-border: var(--dbc-border-soft);
    background: var(--dbc-page-background);
    isolation: isolate;
    position: relative;
}

.dbc-profile-modal .dbc-page-public-modal,
.dbc-profile-modal .dbc-page-public-modal.dbc-theme--classic,
.dbc-theme-option__swatch.dbc-theme--classic,
.dbc-cc-preview-card {
    --dbc-page-background: #f4f5f7;
    --dbc-surface: #ffffff;
    --dbc-surface-alpha: rgba(255, 255, 255, 0.84);
    --dbc-surface-muted: rgba(15, 23, 42, 0.04);
    --dbc-border: rgba(15, 23, 42, 0.14);
    --dbc-border-soft: rgba(15, 23, 42, 0.09);
    --dbc-shadow: 0 10px 30px rgba(15, 23, 42, 0.07);
    --dbc-text: #12141a;
    --dbc-text-soft: #4c525c;
    --dbc-text-muted: #6f757f;
    --dbc-accent: #d92d33;
    --dbc-accent-soft: rgba(217, 45, 51, 0.12);
    --dbc-cta-background: #d92d33;
    --dbc-cta-hover: #bf2429;
    --dbc-cta-color: #ffffff;
    --dbc-link-background: rgba(15, 23, 42, 0.035);
    --dbc-link-color: #12141a;
    --dbc-link-border: rgba(15, 23, 42, 0.12);
    --dbc-avatar-ring: rgba(217, 45, 51, 0.55);
    --dbc-avatar-glow: rgba(217, 45, 51, 0.12);
    --dbc-verified-bg: #d92d33;
    --dbc-verified-shadow: rgba(217, 45, 51, 0.3);
    --dbc-background-overlay: linear-gradient(rgba(246, 247, 249, 0.74), rgba(233, 236, 242, 0.88));
}

body.night_mode .dbc-profile-modal .dbc-page-public-modal,
body.night_mode .dbc-profile-modal .dbc-page-public-modal.dbc-theme--classic,
.night_mode .dbc-profile-modal .dbc-page-public-modal,
.night_mode .dbc-profile-modal .dbc-page-public-modal.dbc-theme--classic,
html:has(link.night-mode-css) .dbc-profile-modal .dbc-page-public-modal,
html:has(link.night-mode-css) .dbc-profile-modal .dbc-page-public-modal.dbc-theme--classic,
body.night_mode .dbc-theme-option__swatch.dbc-theme--classic,
.night_mode .dbc-theme-option__swatch.dbc-theme--classic,
html:has(link.night-mode-css) .dbc-theme-option__swatch.dbc-theme--classic,
body.night_mode .dbc-cc-preview-card,
.night_mode .dbc-cc-preview-card,
html:has(link.night-mode-css) .dbc-cc-preview-card {
    --dbc-page-background: #090b0f;
    --dbc-surface: #101216;
    --dbc-surface-alpha: rgba(16, 18, 22, 0.78);
    --dbc-surface-muted: rgba(255, 255, 255, 0.05);
    --dbc-border: rgba(255, 255, 255, 0.16);
    --dbc-border-soft: rgba(255, 255, 255, 0.1);
    --dbc-shadow: 0 14px 38px rgba(0, 0, 0, 0.42);
    --dbc-text: #f6f6f8;
    --dbc-text-soft: #d2d4d9;
    --dbc-text-muted: #9ca1aa;
    --dbc-accent: #ff6b6b;
    --dbc-accent-soft: rgba(255, 107, 107, 0.16);
    --dbc-cta-background: #e03a3f;
    --dbc-cta-hover: #f2494e;
    --dbc-cta-color: #ffffff;
    --dbc-link-background: rgba(255, 255, 255, 0.06);
    --dbc-link-color: #f6f6f8;
    --dbc-link-border: rgba(255, 255, 255, 0.14);
    --dbc-avatar-ring: rgba(255, 107, 107, 0.55);
    --dbc-avatar-glow: rgba(255, 107, 107, 0.14);
    --dbc-verified-bg: #e03a3f;
    --dbc-verified-shadow: rgba(255, 107, 107, 0.3);
    --dbc-background-overlay: linear-gradient(rgba(9, 11, 15, 0.62), rgba(6, 8, 11, 0.84));
}

.dbc-profile-modal .dbc-page.dbc-theme--warm,
.dbc-theme-option__swatch.dbc-theme--warm,
.dbc-cc-preview-card.dbc-theme--warm {
    --dbc-page-background: #f3eadf;
    --dbc-surface: #fffaf5;
    --dbc-surface-alpha: rgba(255, 250, 245, 0.84);
    --dbc-surface-muted: rgba(80, 45, 22, 0.05);
    --dbc-border: rgba(80, 45, 22, 0.2);
    --dbc-border-soft: rgba(80, 45, 22, 0.13);
    --dbc-shadow: 0 10px 30px rgba(80, 45, 22, 0.1);
    --dbc-text: #281b14;
    --dbc-text-soft: #5f4a3e;
    --dbc-text-muted: #806b5e;
    --dbc-accent: #a8501e;
    --dbc-accent-soft: rgba(199, 107, 58, 0.14);
    --dbc-cta-background: #a8501e;
    --dbc-cta-hover: #8d4116;
    --dbc-cta-color: #ffffff;
    --dbc-link-background: rgba(199, 107, 58, 0.08);
    --dbc-link-color: #3a2318;
    --dbc-link-border: rgba(199, 107, 58, 0.28);
    --dbc-avatar-ring: rgba(199, 107, 58, 0.5);
    --dbc-avatar-glow: rgba(199, 107, 58, 0.14);
    --dbc-verified-bg: #c76b3a;
    --dbc-verified-shadow: rgba(199, 107, 58, 0.3);
    --dbc-background-overlay: linear-gradient(rgba(243, 232, 219, 0.74), rgba(229, 212, 193, 0.88));
}

body.night_mode .dbc-profile-modal .dbc-page.dbc-theme--warm,
.night_mode .dbc-profile-modal .dbc-page.dbc-theme--warm,
html:has(link.night-mode-css) .dbc-profile-modal .dbc-page.dbc-theme--warm,
body.night_mode .dbc-theme-option__swatch.dbc-theme--warm,
.night_mode .dbc-theme-option__swatch.dbc-theme--warm,
html:has(link.night-mode-css) .dbc-theme-option__swatch.dbc-theme--warm,
body.night_mode .dbc-cc-preview-card.dbc-theme--warm,
.night_mode .dbc-cc-preview-card.dbc-theme--warm,
html:has(link.night-mode-css) .dbc-cc-preview-card.dbc-theme--warm {
    --dbc-page-background: #1b1410;
    --dbc-surface: #241b16;
    --dbc-surface-alpha: rgba(36, 27, 22, 0.78);
    --dbc-surface-muted: rgba(255, 222, 198, 0.06);
    --dbc-border: rgba(255, 199, 158, 0.22);
    --dbc-border-soft: rgba(255, 199, 158, 0.15);
    --dbc-shadow: 0 14px 38px rgba(0, 0, 0, 0.46);
    --dbc-text: #fff8f2;
    --dbc-text-soft: #e6d4c7;
    --dbc-text-muted: #b9a698;
    --dbc-accent: #e9a178;
    --dbc-accent-soft: rgba(233, 161, 120, 0.16);
    --dbc-cta-background: #e2a173;
    --dbc-cta-hover: #f0b189;
    --dbc-cta-color: #2a1a10;
    --dbc-link-background: rgba(255, 199, 158, 0.09);
    --dbc-link-color: #fff3e9;
    --dbc-link-border: rgba(255, 199, 158, 0.24);
    --dbc-avatar-ring: rgba(233, 161, 120, 0.5);
    --dbc-avatar-glow: rgba(233, 161, 120, 0.16);
    --dbc-verified-bg: #c76b3a;
    --dbc-verified-shadow: rgba(233, 161, 120, 0.3);
    --dbc-background-overlay: linear-gradient(rgba(30, 21, 15, 0.64), rgba(19, 13, 10, 0.86));
}

.dbc-profile-modal .dbc-page.dbc-theme--midnight,
.dbc-theme-option__swatch.dbc-theme--midnight,
.dbc-cc-preview-card.dbc-theme--midnight {
    --dbc-page-background: #e9edf4;
    --dbc-surface: #f9fafc;
    --dbc-surface-alpha: rgba(249, 250, 252, 0.84);
    --dbc-surface-muted: rgba(30, 58, 95, 0.05);
    --dbc-border: rgba(30, 58, 95, 0.2);
    --dbc-border-soft: rgba(30, 58, 95, 0.13);
    --dbc-shadow: 0 10px 30px rgba(19, 31, 49, 0.09);
    --dbc-text: #131f31;
    --dbc-text-soft: #3d4c62;
    --dbc-text-muted: #68768a;
    --dbc-accent: #2563eb;
    --dbc-accent-soft: rgba(37, 99, 235, 0.12);
    --dbc-cta-background: #1b2b45;
    --dbc-cta-hover: #26395b;
    --dbc-cta-color: #ffffff;
    --dbc-link-background: rgba(23, 36, 58, 0.05);
    --dbc-link-color: #17243a;
    --dbc-link-border: rgba(30, 58, 95, 0.18);
    --dbc-avatar-ring: rgba(37, 99, 235, 0.45);
    --dbc-avatar-glow: rgba(37, 99, 235, 0.12);
    --dbc-verified-bg: #2563eb;
    --dbc-verified-shadow: rgba(37, 99, 235, 0.28);
    --dbc-background-overlay: linear-gradient(rgba(231, 236, 244, 0.74), rgba(213, 222, 236, 0.88));
}

body.night_mode .dbc-profile-modal .dbc-page.dbc-theme--midnight,
.night_mode .dbc-profile-modal .dbc-page.dbc-theme--midnight,
html:has(link.night-mode-css) .dbc-profile-modal .dbc-page.dbc-theme--midnight,
body.night_mode .dbc-theme-option__swatch.dbc-theme--midnight,
.night_mode .dbc-theme-option__swatch.dbc-theme--midnight,
html:has(link.night-mode-css) .dbc-theme-option__swatch.dbc-theme--midnight,
body.night_mode .dbc-cc-preview-card.dbc-theme--midnight,
.night_mode .dbc-cc-preview-card.dbc-theme--midnight,
html:has(link.night-mode-css) .dbc-cc-preview-card.dbc-theme--midnight {
    --dbc-page-background: #080b12;
    --dbc-surface: #111725;
    --dbc-surface-alpha: rgba(17, 23, 37, 0.78);
    --dbc-surface-muted: rgba(255, 255, 255, 0.06);
    --dbc-border: rgba(150, 180, 230, 0.24);
    --dbc-border-soft: rgba(150, 180, 230, 0.16);
    --dbc-shadow: 0 14px 38px rgba(0, 0, 0, 0.5);
    --dbc-text: #ffffff;
    --dbc-text-soft: #dde3ee;
    --dbc-text-muted: #a3adc0;
    --dbc-accent: #6ea8ff;
    --dbc-accent-soft: rgba(110, 168, 255, 0.16);
    --dbc-cta-background: #6ea8ff;
    --dbc-cta-hover: #8bbaff;
    --dbc-cta-color: #0a1220;
    --dbc-link-background: rgba(110, 168, 255, 0.1);
    --dbc-link-color: #eaf1ff;
    --dbc-link-border: rgba(110, 168, 255, 0.26);
    --dbc-avatar-ring: rgba(110, 168, 255, 0.55);
    --dbc-avatar-glow: rgba(110, 168, 255, 0.16);
    --dbc-verified-bg: #4f8ff0;
    --dbc-verified-shadow: rgba(110, 168, 255, 0.32);
    --dbc-background-overlay: linear-gradient(rgba(8, 12, 22, 0.62), rgba(5, 8, 14, 0.84));
}

.dbc-profile-modal .dbc-page.dbc-theme--electric,
.dbc-theme-option__swatch.dbc-theme--electric,
.dbc-cc-preview-card.dbc-theme--electric {
    --dbc-page-background: linear-gradient(180deg, #2d6ae0, #1a49b0);
    --dbc-surface: #ffffff;
    --dbc-surface-alpha: rgba(255, 255, 255, 0.84);
    --dbc-surface-muted: rgba(29, 78, 216, 0.06);
    --dbc-border: rgba(16, 55, 130, 0.2);
    --dbc-border-soft: rgba(16, 55, 130, 0.14);
    --dbc-shadow: 0 12px 32px rgba(9, 32, 84, 0.18);
    --dbc-text: #0f1a2e;
    --dbc-text-soft: #33415a;
    --dbc-text-muted: #64748b;
    --dbc-accent: #1d4ed8;
    --dbc-accent-soft: rgba(29, 78, 216, 0.1);
    --dbc-cta-background: #1d4ed8;
    --dbc-cta-hover: #1740b8;
    --dbc-cta-color: #ffffff;
    --dbc-link-background: rgba(29, 78, 216, 0.07);
    --dbc-link-color: #12224a;
    --dbc-link-border: rgba(29, 78, 216, 0.24);
    --dbc-avatar-ring: rgba(255, 255, 255, 0.85);
    --dbc-avatar-glow: rgba(29, 78, 216, 0.22);
    --dbc-verified-bg: #1d4ed8;
    --dbc-verified-shadow: rgba(29, 78, 216, 0.3);
    --dbc-background-overlay: linear-gradient(rgba(37, 99, 235, 0.58), rgba(11, 40, 106, 0.8));
    /* The canvas is deep blue while the panels stay white, so canvas text
       flips to light instead of following the panel tones. */
    --dbc-canvas-text: #eaf1ff;
    --dbc-canvas-muted: rgba(234, 241, 255, 0.78);
    --dbc-canvas-accent: #ffffff;
    --dbc-canvas-accent-soft: rgba(255, 255, 255, 0.18);
    --dbc-canvas-border: rgba(255, 255, 255, 0.26);
}

body.night_mode .dbc-profile-modal .dbc-page.dbc-theme--electric,
.night_mode .dbc-profile-modal .dbc-page.dbc-theme--electric,
html:has(link.night-mode-css) .dbc-profile-modal .dbc-page.dbc-theme--electric,
body.night_mode .dbc-theme-option__swatch.dbc-theme--electric,
.night_mode .dbc-theme-option__swatch.dbc-theme--electric,
html:has(link.night-mode-css) .dbc-theme-option__swatch.dbc-theme--electric,
body.night_mode .dbc-cc-preview-card.dbc-theme--electric,
.night_mode .dbc-cc-preview-card.dbc-theme--electric,
html:has(link.night-mode-css) .dbc-cc-preview-card.dbc-theme--electric {
    --dbc-page-background: linear-gradient(165deg, #123a94 0%, #0b2360 55%, #071a41 100%);
    --dbc-surface: #10306f;
    --dbc-surface-alpha: rgba(16, 48, 111, 0.78);
    --dbc-surface-muted: rgba(255, 255, 255, 0.08);
    --dbc-border: rgba(150, 190, 255, 0.3);
    --dbc-border-soft: rgba(150, 190, 255, 0.22);
    --dbc-shadow: 0 14px 38px rgba(0, 0, 0, 0.5);
    --dbc-text: #ffffff;
    --dbc-text-soft: #d9e6ff;
    --dbc-text-muted: #9db6e6;
    --dbc-accent: #8cb4ff;
    --dbc-accent-soft: rgba(140, 180, 255, 0.16);
    --dbc-cta-background: #8cb4ff;
    --dbc-cta-hover: #a6c6ff;
    --dbc-cta-color: #07152e;
    --dbc-link-background: rgba(140, 180, 255, 0.1);
    --dbc-link-color: #eaf1ff;
    --dbc-link-border: rgba(140, 180, 255, 0.26);
    --dbc-avatar-ring: rgba(140, 180, 255, 0.55);
    --dbc-avatar-glow: rgba(140, 180, 255, 0.18);
    --dbc-verified-bg: #3f7ae0;
    --dbc-verified-shadow: rgba(140, 180, 255, 0.32);
    --dbc-background-overlay: linear-gradient(rgba(18, 58, 148, 0.58), rgba(7, 26, 65, 0.82));
}

/* Custom background: theme-tinted overlay, translucent surfaces */
.dbc-page-public-modal.dbc-has-custom-background {
    --dbc-surface-panel: var(--dbc-surface-alpha);
}

.dbc-page-public-modal.dbc-has-custom-background::before {
    background-image: var(--dbc-background-overlay), var(--dbc-custom-background-image);
    background-position: var(--dbc-background-position);
    background-repeat: no-repeat;
    background-size: cover;
    content: '';
    inset: 0;
    pointer-events: none;
    position: absolute;
    z-index: -1;
}

/* ══════════════════════════════════════════
   Public DBC surfaces: one canvas, not a stack of cards

   The profile panel and the action flow share a single surface language,
   and the two flow steps live inside one panel divided by a hairline so
   the card reads as a single identity rather than separate Bootstrap cards.
   ══════════════════════════════════════════ */
.dbc-profile-modal .dbc-page-public-modal .dbc-public-content {
    gap: 16px;
    padding: 26px;
}

.dbc-profile-modal .dbc-page-public-modal .dbc-profile-article,
.dbc-profile-modal .dbc-page-public-modal .dbc-public-stack {
    background: var(--dbc-surface-panel);
    border: 1px solid var(--dbc-border-soft);
    border-radius: var(--dbc-radius);
    box-shadow: var(--dbc-shadow);
    overflow: hidden;
}

.dbc-profile-modal .dbc-page-public-modal .dbc-profile-article {
    gap: 18px;
    padding: 26px 22px;
}

.dbc-profile-modal .dbc-page-public-modal .dbc-public-stack {
    gap: 0;
}

.dbc-profile-modal .dbc-page-public-modal .dbc-public-stack .dbc-step-card {
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    padding: 22px;
}

.dbc-profile-modal .dbc-page-public-modal .dbc-public-stack .dbc-step-card + .dbc-step-card {
    border-top: 1px solid var(--dbc-border-soft);
}

.dbc-profile-modal .dbc-page-public-modal .dbc-step-number {
    background: var(--dbc-accent-soft);
    border: 1px solid var(--dbc-border-soft);
    color: var(--dbc-accent);
    font-size: 13px;
    font-weight: 800;
    height: 28px;
    left: 22px;
    top: 24px;
    width: 28px;
}

.dbc-profile-modal .dbc-page-public-modal .dbc-step-card__topbar,
.dbc-profile-modal .dbc-page-public-modal .dbc-step-card__body {
    margin-left: 40px;
}

.dbc-profile-modal .dbc-page-public-modal .dbc-step-card__topbar {
    margin-bottom: 14px;
}

.dbc-profile-modal .dbc-page-public-modal .dbc-step-card h2 {
    font-size: 16px;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.dbc-profile-modal .dbc-page-public-modal .dbc-step-card p {
    font-size: 13px;
}

/* ── Public DBC: themed identity ── */
.dbc-profile-modal .dbc-page-public-modal .dbc-avatar-lg {
    border: 3px solid var(--dbc-avatar-ring);
    box-shadow: 0 0 0 6px var(--dbc-avatar-glow);
    height: var(--dbc-avatar-size);
    width: var(--dbc-avatar-size);
}

.dbc-profile-modal .dbc-page-public-modal .dbc-profile-article__verified-badge {
    background: var(--dbc-verified-bg);
    border: 3px solid var(--dbc-verified-border);
    bottom: 2px;
    box-shadow: 0 2px 8px var(--dbc-verified-shadow);
    height: 26px;
    right: calc(50% - (var(--dbc-avatar-size) / 2) + 2px);
    width: 26px;
}

.dbc-profile-modal .dbc-page-public-modal .dbc-profile-article__verified-badge svg path:first-child {
    fill: var(--dbc-verified-bg);
}

.dbc-profile-modal .dbc-page-public-modal .dbc-profile-article h1 {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.dbc-profile-modal .dbc-page-public-modal .dbc-profile-name-link:hover,
.dbc-profile-modal .dbc-page-public-modal .dbc-profile-name-link:focus {
    color: var(--dbc-accent);
}

.dbc-profile-modal .dbc-page-public-modal .dbc-title {
    color: var(--dbc-accent);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.dbc-profile-modal .dbc-page-public-modal .dbc-about {
    color: var(--dbc-text-soft);
    font-size: 14px;
    line-height: 1.55;
    margin: 0;
    max-width: 46ch;
}

/* ── Public DBC: contact, social and custom links ── */
.dbc-profile-modal .dbc-page-public-modal .dbc-contact-inline li {
    background: var(--dbc-surface-muted);
    border: 1px solid var(--dbc-border-soft);
    border-radius: var(--dbc-radius-sm);
}

.dbc-profile-modal .dbc-page-public-modal .dbc-contact-inline__icon {
    color: var(--dbc-accent);
}

.dbc-profile-modal .dbc-page-public-modal .dbc-contact-inline__link {
    color: var(--dbc-text-soft);
}

.dbc-profile-modal .dbc-page-public-modal .dbc-contact-inline__link:hover,
.dbc-profile-modal .dbc-page-public-modal .dbc-contact-inline__link:focus {
    color: var(--dbc-accent);
}

.dbc-profile-modal .dbc-page-public-modal .dbc-social-link {
    background: var(--dbc-surface-muted);
    border-color: var(--dbc-border-soft);
    color: var(--dbc-text-soft);
}

.dbc-profile-modal .dbc-page-public-modal .dbc-social-link:hover,
.dbc-profile-modal .dbc-page-public-modal .dbc-social-link:focus {
    border-color: var(--dbc-accent);
    color: var(--dbc-accent);
}

.dbc-profile-modal .dbc-page-public-modal .dbc-social-link__icon {
    color: var(--dbc-accent);
}

.dbc-profile-modal .dbc-page-public-modal .dbc-custom-link {
    background: var(--dbc-link-background);
    border: 1px solid var(--dbc-link-border);
    border-radius: var(--dbc-radius-sm);
    box-shadow: none;
    color: var(--dbc-link-color) !important;
    font-size: 14px;
    font-weight: 600;
}

.dbc-profile-modal .dbc-page-public-modal .dbc-custom-link svg {
    color: var(--dbc-accent);
}

.dbc-profile-modal .dbc-page-public-modal .dbc-custom-link:hover,
.dbc-profile-modal .dbc-page-public-modal .dbc-custom-link:focus {
    background: var(--dbc-accent-soft);
    border-color: var(--dbc-accent);
    box-shadow: none;
}

/* ── Public DBC: action hierarchy ── */
.dbc-profile-modal .dbc-page-public-modal .dbc-profile-card__save-btn,
.dbc-profile-modal .dbc-page-public-modal .dbc-profile-card__inquiry-btn,
.dbc-profile-modal .dbc-page-public-modal .dbc-start-conversation {
    background: var(--dbc-cta-background);
    border: 0;
    border-radius: var(--dbc-radius-sm);
    box-shadow: none;
    color: var(--dbc-cta-color) !important;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: -0.01em;
    padding: 14px 18px;
}

.dbc-profile-modal .dbc-page-public-modal .dbc-profile-card__save-btn:hover,
.dbc-profile-modal .dbc-page-public-modal .dbc-profile-card__inquiry-btn:hover,
.dbc-profile-modal .dbc-page-public-modal .dbc-start-conversation:hover,
.dbc-profile-modal .dbc-page-public-modal .dbc-profile-card__save-btn:focus,
.dbc-profile-modal .dbc-page-public-modal .dbc-profile-card__inquiry-btn:focus,
.dbc-profile-modal .dbc-page-public-modal .dbc-start-conversation:focus {
    background: var(--dbc-cta-hover);
    color: var(--dbc-cta-color) !important;
}

.dbc-profile-modal .dbc-page-public-modal .dbc-profile-card__option {
    background: var(--dbc-surface-muted);
    border: 1px solid var(--dbc-border-soft);
    border-radius: var(--dbc-radius-sm);
    color: var(--dbc-text);
}

.dbc-profile-modal .dbc-page-public-modal .dbc-profile-card__option:hover {
    background: var(--dbc-accent-soft);
    border-color: var(--dbc-accent);
    transform: none;
}

.dbc-profile-modal .dbc-page-public-modal .dbc-profile-card__option-icon {
    background: var(--dbc-accent-soft);
    color: var(--dbc-accent);
}

.dbc-profile-modal .dbc-page-public-modal .dbc-profile-card__option .dbc-profile-card__option-text strong {
    color: var(--dbc-text);
}

.dbc-profile-modal .dbc-page-public-modal .dbc-profile-card__option-text small,
.dbc-profile-modal .dbc-page-public-modal .dbc-profile-card__secure,
.dbc-profile-modal .dbc-page-public-modal .dbc-flow-note {
    color: var(--dbc-text-muted);
}

.dbc-profile-modal .dbc-page-public-modal .dbc-owner-share-bar {
    background: var(--dbc-surface-muted);
    border-color: var(--dbc-border-soft);
    border-radius: var(--dbc-radius-sm);
    color: var(--dbc-text-muted);
}

.dbc-profile-modal .dbc-page-public-modal .dbc-brand-link {
    border-color: var(--dbc-border-soft);
    border-radius: var(--dbc-radius-sm);
    color: var(--dbc-text);
}

.dbc-profile-modal .dbc-page-public-modal .dbc-brand-link:hover {
    border-color: var(--dbc-accent);
    box-shadow: none;
    color: var(--dbc-accent);
}

/* ── Public DBC: inquiry fields ── */
.dbc-profile-modal .dbc-page-public-modal .dbc-profile-card__input,
.dbc-profile-modal .dbc-page-public-modal .dbc-profile-card__textarea {
    background: var(--dbc-surface-muted);
    border: 1px solid var(--dbc-border-soft);
    border-radius: var(--dbc-radius-sm);
    color: var(--dbc-text);
}

.dbc-profile-modal .dbc-page-public-modal .dbc-profile-card__input::placeholder,
.dbc-profile-modal .dbc-page-public-modal .dbc-profile-card__textarea::placeholder {
    color: var(--dbc-text-muted);
}

.dbc-profile-modal .dbc-page-public-modal .dbc-profile-card__input:focus,
.dbc-profile-modal .dbc-page-public-modal .dbc-profile-card__textarea:focus {
    border-color: var(--dbc-accent);
    box-shadow: 0 0 0 3px var(--dbc-accent-soft);
}

/* ── Public DBC: flow strip ── */
.dbc-profile-modal .dbc-page-public-modal .dbc-flow-strip {
    border-top: 1px solid var(--dbc-canvas-border);
    color: var(--dbc-canvas-muted);
    margin: 0 22px;
}

.dbc-profile-modal .dbc-page-public-modal .dbc-flow-arrow {
    color: var(--dbc-canvas-muted);
}

.dbc-profile-modal .dbc-page-public-modal .dbc-flow-step__icon {
    background: var(--dbc-canvas-accent-soft);
    border-color: var(--dbc-canvas-border);
    color: var(--dbc-canvas-accent);
}

.dbc-profile-modal .dbc-page-public-modal .dbc-flow-step__label {
    color: var(--dbc-canvas-text);
}

/* ── Public DBC: themed focus states ──
   style.css ships a global `* { outline: none !important }`, so the keyboard
   ring has to be important as well to survive inside the card. */
.dbc-profile-modal .dbc-page-public-modal a:focus-visible,
.dbc-profile-modal .dbc-page-public-modal button:focus-visible,
.dbc-profile-modal .dbc-page-public-modal input:focus-visible,
.dbc-profile-modal .dbc-page-public-modal textarea:focus-visible,
.dbc-profile-modal .dbc-page-public-modal .dbc-custom-link:focus-visible {
    outline: 2px solid var(--dbc-accent) !important;
    outline-offset: 3px;
}

/* On the canvas itself the panel accent can disappear into the background. */
.dbc-profile-modal .dbc-page-public-modal .dbc-flow-strip a:focus-visible,
.dbc-profile-modal .dbc-page-public-modal .dbc-flow-strip button:focus-visible {
    outline-color: var(--dbc-canvas-accent) !important;
}

@media (max-width: 767px) {
    .dbc-profile-modal .dbc-page-public-modal {
        --dbc-avatar-size: 104px;
        --dbc-radius: 18px;
    }

    .dbc-profile-modal .dbc-page-public-modal .dbc-public-content {
        gap: 12px;
        padding: 14px;
    }

    .dbc-profile-modal .dbc-page-public-modal .dbc-profile-article {
        padding: 24px 16px;
    }

    .dbc-profile-modal .dbc-page-public-modal .dbc-public-stack .dbc-step-card {
        padding: 18px 16px;
    }

    .dbc-profile-modal .dbc-page-public-modal .dbc-step-number {
        left: 16px;
        top: 18px;
    }

    .dbc-profile-modal .dbc-page-public-modal .dbc-step-card__topbar {
        margin-left: 38px;
    }

    .dbc-profile-modal .dbc-page-public-modal .dbc-step-card__body {
        margin-left: 0;
    }

    .dbc-profile-modal .dbc-page-public-modal .dbc-flow-strip {
        margin: 0 12px;
    }
}

.dbc-custom-links {
    display: grid;
    gap: 10px;
    margin-top: 2px;
    width: min(100%, 680px);
}

.dbc-custom-links--preview {
    margin: 14px 0;
    width: 100%;
}

.dbc-custom-links--preview .dbc-custom-link {
    font-size: 12px;
    min-height: 40px;
    padding: 9px 12px;
}

.dbc-custom-link {
    align-items: center;
    background: var(--dbc-link-background);
    border: 1px solid var(--dbc-border-soft);
    border-radius: 14px;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.1);
    color: var(--dbc-link-color) !important;
    display: flex;
    font-size: 14px;
    font-weight: 700;
    gap: 12px;
    justify-content: center;
    min-height: 48px;
    padding: 12px 16px;
    position: relative;
    text-align: center;
    text-decoration: none !important;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.dbc-custom-link svg {
    flex: 0 0 auto;
    position: absolute;
    right: 16px;
}

.dbc-custom-link:hover,
.dbc-custom-link:focus {
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.16);
    color: var(--dbc-link-color) !important;
    transform: translateY(-1px);
}

.dbc-custom-link:focus-visible {
    outline: 3px solid rgba(239, 51, 56, 0.45);
    outline-offset: 3px;
}

.dbc-cc-links-card,
.dbc-cc-settings-card,
.dbc-cc-appearance-card {
    grid-column: 1 / -1;
}

.dbc-toggle-wrapper {
    align-items: center;
    display: flex;
    gap: 18px;
    justify-content: space-between;
    padding: 12px 0 4px;
}

.dbc-toggle-wrapper strong {
    color: var(--dbc-text);
    display: block;
    font-size: 14px;
}

.dbc-switch {
    display: inline-block;
    flex: 0 0 auto;
    height: 28px;
    position: relative;
    width: 50px;
}

.dbc-switch input {
    height: 0;
    opacity: 0;
    width: 0;
}

.dbc-switch-slider {
    background: #c5c9d1;
    border-radius: 28px;
    bottom: 0;
    cursor: pointer;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
    transition: background 0.2s ease;
}

.dbc-switch-slider:before {
    background: #fff;
    border-radius: 50%;
    bottom: 3px;
    content: "";
    height: 22px;
    left: 3px;
    position: absolute;
    transition: transform 0.2s ease;
    width: 22px;
}

.dbc-switch input:checked + .dbc-switch-slider {
    background: var(--main);
}

.dbc-switch input:checked + .dbc-switch-slider:before {
    transform: translateX(22px);
}

.dbc-switch input:disabled + .dbc-switch-slider {
    opacity: 0.6;
}

.dbc-lead-type {
    background: rgba(17, 24, 39, 0.08);
    border-radius: 999px;
    color: var(--dbc-text-muted);
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.04em;
    margin-left: 6px;
    padding: 2px 7px;
    text-transform: uppercase;
    vertical-align: middle;
}

.dbc-lead-type--off_topic,
.dbc-lead-type--spam {
    background: rgba(239, 68, 68, 0.12);
    color: #b91c1c;
}

.dbc-lead-type--recruitment,
.dbc-lead-type--partnership {
    background: rgba(37, 99, 235, 0.12);
    color: #1d4ed8;
}

.dbc-cc-section-copy {
    font-size: 13px;
    margin: 4px 0 0;
}

.dbc-links-editor-layout {
    display: grid;
    gap: 22px;
    grid-template-columns: minmax(260px, 0.8fr) minmax(360px, 1.2fr);
}

.dbc-link-form {
    background: var(--dbc-surface-muted);
    border: 1px solid var(--dbc-border-soft);
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    gap: 9px;
    padding: 18px;
}

.dbc-field-label {
    color: var(--dbc-text);
    font-size: 13px;
    font-weight: 700;
    margin: 2px 0 0;
}

.dbc-field-help {
    color: var(--dbc-text-muted);
    display: flex;
    font-size: 11px;
    gap: 12px;
    justify-content: space-between;
}

.dbc-checkbox-row {
    align-items: center;
    color: var(--dbc-text-soft);
    cursor: pointer;
    display: flex;
    font-size: 13px;
    gap: 9px;
    margin: 4px 0;
}

.dbc-checkbox-row input {
    accent-color: var(--main);
    height: 18px;
    width: 18px;
}

.dbc-link-form__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.dbc-links-list-wrap {
    min-width: 0;
}

.dbc-links-guidance {
    color: var(--dbc-text-muted);
    font-size: 12px;
    margin-bottom: 10px;
}

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

.dbc-link-editor-item {
    align-items: center;
    background: var(--dbc-surface);
    border: 1px solid var(--dbc-border-soft);
    border-radius: 14px;
    display: grid;
    gap: 10px;
    grid-template-columns: 32px minmax(0, 1fr) auto;
    padding: 12px;
}

.dbc-link-editor-item.is-hidden {
    opacity: 0.62;
}

.dbc-link-drag {
    background: transparent;
    border: 0;
    color: var(--dbc-text-muted);
    cursor: grab;
    font-size: 18px;
    padding: 8px;
}

.dbc-link-editor-item__main {
    display: grid;
    min-width: 0;
}

.dbc-link-editor-item__main strong {
    color: var(--dbc-text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dbc-link-editor-item__main > span {
    color: var(--dbc-text-muted);
    font-size: 12px;
}

.dbc-link-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 5px;
}

.dbc-link-stats span {
    background: var(--dbc-surface-muted);
    border-radius: 999px;
    color: var(--dbc-text-soft);
    font-size: 10px;
    padding: 3px 7px;
}

.dbc-link-editor-item__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    justify-content: flex-end;
}

.dbc-link-editor-item__actions button {
    background: var(--dbc-surface-muted);
    border: 1px solid var(--dbc-border-soft);
    border-radius: 8px;
    color: var(--dbc-text-soft);
    min-height: 34px;
    padding: 6px 9px;
}

.dbc-link-editor-item__actions .dbc-link-delete {
    color: #d92d20;
}

.dbc-theme-picker {
    border: 0;
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin: 0 0 20px;
    padding: 0;
}

.dbc-theme-picker legend {
    color: var(--dbc-text);
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 10px;
}

.dbc-theme-option {
    border: 2px solid var(--dbc-border-soft);
    border-radius: 14px;
    cursor: pointer;
    display: grid;
    gap: 5px;
    padding: 10px;
}

.dbc-theme-option:has(input:checked) {
    border-color: var(--main);
    box-shadow: 0 0 0 3px rgba(239, 51, 56, 0.08);
}

.dbc-theme-option input {
    position: absolute;
    opacity: 0;
}

/* Miniature DBC preview so the picker shows the real result, including
   the member's own background under each theme's overlay. */
.dbc-theme-option__swatch {
    align-content: center;
    background: var(--dbc-page-background);
    border-radius: 9px;
    display: grid;
    gap: 5px;
    height: 104px;
    isolation: isolate;
    justify-items: center;
    overflow: hidden;
    padding: 12px;
    position: relative;
}

.dbc-theme-option__swatch.dbc-has-custom-background {
    --dbc-surface-panel: var(--dbc-surface-alpha);
}

.dbc-theme-option__swatch.dbc-has-custom-background::before {
    background-image: var(--dbc-background-overlay), var(--dbc-custom-background-image);
    background-position: var(--dbc-background-position, center);
    background-repeat: no-repeat;
    background-size: cover;
    content: '';
    inset: 0;
    position: absolute;
    z-index: -1;
}

.dbc-theme-option__panel {
    background: var(--dbc-surface-panel, var(--dbc-surface));
    border: 1px solid var(--dbc-border-soft);
    border-radius: 8px;
    display: grid;
    gap: 5px;
    justify-items: center;
    padding: 8px 10px;
    width: 100%;
}

.dbc-theme-option__avatar {
    background: var(--dbc-surface-muted);
    border: 2px solid var(--dbc-avatar-ring);
    border-radius: 50%;
    height: 20px;
    width: 20px;
}

.dbc-theme-option__name {
    background: var(--dbc-text);
    border-radius: 2px;
    height: 5px;
    margin-bottom: 2px;
    opacity: 0.8;
    width: 46%;
}

.dbc-theme-option__link {
    background-color: var(--dbc-surface-panel, var(--dbc-surface));
    background-image: linear-gradient(var(--dbc-link-background), var(--dbc-link-background));
    border: 1px solid var(--dbc-link-border);
    border-radius: 5px;
    height: 13px;
    width: 100%;
}

.dbc-theme-option__cta {
    background: var(--dbc-cta-background);
    border-radius: 5px;
    height: 13px;
    width: 100%;
}

.dbc-theme-option strong {
    color: var(--dbc-text);
    font-size: 13px;
}

.dbc-theme-option small {
    color: var(--dbc-text-muted);
    font-size: 11px;
    line-height: 1.35;
}

.dbc-background-control {
    align-items: center;
    display: grid;
    gap: 16px;
    grid-template-columns: minmax(220px, 1fr) minmax(220px, 1fr) minmax(220px, 1fr);
    margin-bottom: 18px;
}

.dbc-background-control p {
    font-size: 12px;
}

.dbc-background-current {
    align-items: center;
    background-position: center;
    background-size: cover;
    border: 1px solid var(--dbc-border-soft);
    border-radius: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    min-height: 90px;
    padding: 12px;
}

.dbc-background-current--empty {
    color: var(--dbc-text-muted);
    font-size: 12px;
}

/* Sits over the chosen image, so it carries its own backdrop. */
.dbc-background-current__pending {
    background: rgba(12, 14, 18, 0.72);
    border-radius: 8px;
    color: #ffffff;
    font-size: 12px;
    line-height: 1.4;
    padding: 6px 10px;
    text-align: center;
    width: 100%;
}

@media (max-width: 991px) {
    .dbc-links-editor-layout,
    .dbc-background-control {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 575px) {
    .dbc-link-editor-item {
        grid-template-columns: 28px minmax(0, 1fr);
    }

    .dbc-link-editor-item__actions {
        grid-column: 1 / -1;
        justify-content: stretch;
    }

    .dbc-link-editor-item__actions button {
        flex: 1 1 auto;
    }

    .dbc-theme-picker {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    .dbc-custom-link {
        transition: none;
    }
}

/* ── Profile page: DBC Card ── */
.dbc-profile-card {
    background: linear-gradient(168deg, rgba(239, 51, 56, 0.04) 0%, transparent 40%);
    border: none;
    border-radius: 16px;
    margin-top: 16px;
    overflow: hidden;
    position: relative;
    width: 100%;
}

.dbc-profile-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #ef3338, #ff6b6b, #ef3338);
    opacity: 0.8;
}

.dbc-profile-card__section {
    padding: 16px 12px;
}

.dbc-profile-card__section + .dbc-profile-card__section {
    border-top: 1px solid rgba(239, 51, 56, 0.15);
}

.dbc-profile-card__header {
    align-items: flex-start;
    display: flex;
    gap: 12px;
    margin-bottom: 6px;
}

.dbc-profile-card__title-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    flex: 1;
}

.dbc-profile-card__title-row h4 {
    font-size: 17px;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin: 0;
}

.dbc-profile-card__step {
    align-items: center;
    background: linear-gradient(135deg, #ef3338, #c42025);
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(239, 51, 56, 0.35);
    color: #fff;
    display: inline-flex;
    flex-shrink: 0;
    font-size: 12px;
    font-weight: 800;
    height: 26px;
    justify-content: center;
    margin-top: 1px;
    width: 26px;
}

.dbc-profile-card__badge {
    align-items: center;
    display: inline-flex;
    flex-shrink: 0;
}

.dbc-profile-card--convo {
    margin-top: 12px;
}

.dbc-profile-card__desc {
    color: #999;
    font-size: 13px;
    line-height: 1.4;
    margin: 0 0 16px;
}

/* Body: QR centered above options */
.dbc-profile-card__body {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    margin-bottom: 18px;
}

.dbc-profile-card__qr {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12), 0 1px 4px rgba(0, 0, 0, 0.08);
    padding: 12px;
    width: 100%;
}

.dbc-profile-card__qr .dbc-qr-canvas {
    display: block;
    border-radius: 8px;
    overflow: hidden;
}

.dbc-profile-card__qr .dbc-qr-canvas canvas {
    display: block;
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 1;
    min-width: 180px;
}

.dbc-profile-card__options {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
    width: 100%;
}

.dbc-profile-card__option {
    align-items: center;
    background: rgba(255, 255, 255, 0.03);
    border: none;
    border-radius: 10px;
    color: inherit;
    display: flex;
    gap: 12px;
    padding: 12px 14px;
    text-decoration: none;
    transition: all 0.2s ease;
    width: 100%;
}

.dbc-profile-card__option:hover {
    background: rgba(239, 51, 56, 0.08);
    color: inherit;
    transform: translateX(2px);
}

.dbc-profile-card__option-icon {
    align-items: center;
    background: rgba(239, 51, 56, 0.1);
    border-radius: 8px;
    color: #ef3338;
    display: flex;
    flex-shrink: 0;
    height: 32px;
    justify-content: center;
    width: 32px;
}

.dbc-profile-card__option-text {
    display: flex;
    flex-direction: column;
    gap: 1px;
    line-height: 1.3;
}

.dbc-profile-card__option-text strong {
    font-size: 13px;
    font-weight: 600;
}

.dbc-profile-card__option-text small {
    color: #777;
    font-size: 11px;
}

/* Save to Device button */
.dbc-profile-card__save-btn {
    background: var(--main);
    border: none;
    border-radius: 10px;
    color: var(--main-color) !important;
    display: block;
    font-size: 15px;
    font-weight: 700;
    padding: 14px 16px;
    text-align: center;
    text-decoration: none;
    transition: background 0.2s;
}

.dbc-profile-card__save-btn:hover {
    background: var(--main-hover);
    color: var(--main-hover-color) !important;
}

.dbc-profile-card__save-btn:active {
    transform: translateY(0);
}

.dbc-profile-card__options--secondary {
    margin-bottom: 0;
    margin-top: 10px;
}

.dbc-profile-card__save-btn:focus-visible,
.dbc-profile-card__inquiry-btn:focus-visible,
.dbc-profile-card__option:focus-visible {
    outline: 2px solid var(--dbc-accent, rgba(239, 51, 56, 0.6)) !important;
    outline-offset: 2px;
}

.dbc-profile-card__secure {
    color: #777;
    font-size: 11px;
    margin-top: 12px;
    text-align: center;
}

/* Start a Conversation */
.dbc-profile-card__convo {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.dbc-profile-card__field-row {
    display: flex;
    gap: 8px;
}

.dbc-profile-card__field-row .dbc-profile-card__input {
    flex: 1;
    min-width: 0;
}

.dbc-profile-card__input {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    box-sizing: border-box;
    color: inherit;
    font-family: inherit;
    font-size: 13px;
    outline: none;
    padding: 11px 14px;
    transition: border-color 0.2s;
    width: 100%;
}

.dbc-profile-card__input::placeholder {
    color: #666;
}

.dbc-profile-card__input:focus {
    border-color: rgba(239, 51, 56, 0.4);
    box-shadow: 0 0 0 3px rgba(239, 51, 56, 0.08);
}

.dbc-profile-card__textarea {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    box-sizing: border-box;
    color: inherit;
    font-family: inherit;
    font-size: 13px;
    line-height: 1.5;
    outline: none;
    padding: 14px 16px;
    resize: none;
    transition: border-color 0.2s;
    width: 100%;
}

.dbc-profile-card__textarea::placeholder {
    color: #666;
}

.dbc-profile-card__textarea:focus {
    border-color: rgba(239, 51, 56, 0.4);
    box-shadow: 0 0 0 3px rgba(239, 51, 56, 0.08);
}

.dbc-profile-card__inquiry-btn {
    background: var(--main);
    border: none;
    border-radius: 10px;
    color: var(--main-color) !important;
    cursor: pointer;
    display: block;
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    padding: 14px 16px;
    text-align: center;
    text-decoration: none;
    transition: background 0.2s;
    width: 100%;
}

.dbc-profile-card__inquiry-btn:hover {
    background: var(--main-hover);
    color: var(--main-hover-color) !important;
}

.dbc-profile-card__inquiry-btn:disabled {
    opacity: 0.6;
    cursor: wait;
}

/* Mobile: full-width card when sidebar stacks */
@media (max-width: 991px) {
    .dbc-profile-card {
        margin-top: 12px;
    }

    .dbc-profile-card__qr {
        max-width: 320px;
        margin: 0 auto;
    }

    .dbc-profile-card__section {
        padding: 18px 16px;
    }
}

@media (max-width: 575px) {
    .dbc-profile-card__qr {
        max-width: 280px;
    }
}

/* Night mode */
body.night_mode .dbc-profile-card,
.night_mode .dbc-profile-card,
html:has(link.night-mode-css) .dbc-profile-card {
    border: none;
}

body.night_mode .dbc-profile-card__option,
.night_mode .dbc-profile-card__option,
html:has(link.night-mode-css) .dbc-profile-card__option {
    background: rgba(255, 255, 255, 0.03);
    border: none;
}

body.night_mode .dbc-profile-card__textarea,
.night_mode .dbc-profile-card__textarea,
html:has(link.night-mode-css) .dbc-profile-card__textarea {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.1);
}

/* Day mode overrides */
body:not(.night_mode) .dbc-profile-card {
    background: linear-gradient(168deg, rgba(239, 51, 56, 0.03) 0%, rgba(255, 255, 255, 1) 40%);
    border: none;
}

body:not(.night_mode) .dbc-profile-card__option {
    background: rgba(0, 0, 0, 0.02);
    border: none;
}

body:not(.night_mode) .dbc-profile-card__option:hover {
    background: rgba(239, 51, 56, 0.05);
}

body:not(.night_mode) .dbc-profile-card__option-text strong {
    color: #1a1a1a;
}

body:not(.night_mode) .dbc-profile-card__textarea {
    background: rgba(0, 0, 0, 0.02);
    border-color: rgba(0, 0, 0, 0.12);
    color: #1a1a1a;
}

body:not(.night_mode) .dbc-profile-card__textarea::placeholder {
    color: #999;
}

body:not(.night_mode) .dbc-profile-card__input {
    background: rgba(0, 0, 0, 0.02);
    border-color: rgba(0, 0, 0, 0.12);
    color: #1a1a1a;
}

body:not(.night_mode) .dbc-profile-card__input::placeholder {
    color: #999;
}

body:not(.night_mode) .dbc-profile-card__inquiry-btn {
    color: #fff !important;
}

@media (max-width: 575px) {
    .dbc-cc-title {
        font-size: clamp(15px, 4.6vw, 22px);
        letter-spacing: -0.025em;
        white-space: nowrap;
    }

    .dbc-cc-qr-wrap .dbc-qr-box {
        width: 100%;
    }
}

/* Inquiry conversations
   ------------------------------------------------------------------------- */

.dbc-convo-open {
    align-items: center;
    background: var(--dbc-surface-muted);
    border: 1px solid var(--dbc-border-soft);
    border-radius: 999px;
    color: var(--dbc-text-soft);
    cursor: pointer;
    display: inline-flex;
    flex-shrink: 0;
    flex-wrap: nowrap;
    font-size: 13px;
    font-weight: 600;
    gap: 6px;
    line-height: 1.2;
    max-width: 100%;
    padding: 7px 16px;
    position: relative;
    white-space: nowrap;
    transition: .18s ease;
}

.dbc-convo-open:hover {
    border-color: rgba(239, 51, 56, .28);
    color: var(--dbc-text);
}

.dbc-convo-open--awaiting {
    background: rgba(239, 51, 56, .12);
    border-color: rgba(239, 51, 56, .3);
    color: #ef3338;
}

.dbc-convo-open__label {
    display: inline-block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dbc-convo-badge {
    background: #ef3338;
    border-radius: 999px;
    box-shadow: 0 0 0 2px var(--dbc-surface-muted);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
    min-width: 18px;
    padding: 3px 5px;
    pointer-events: none;
    position: absolute;
    right: -7px;
    text-align: center;
    top: -7px;
}

.dbc-guest-messages .dbc-convo-msg-shell {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    height: 100%;
    min-height: 0;
}

.dbc-guest-messages .tag_msg_user_chat,
.dbc-guest-messages .text-sender-container,
.dbc-guest-messages .messagejoint {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-height: 0;
    width: 100%;
}

.dbc-guest-messages .tag_msg_user_list {
    display: none !important;
}

.chat_main [data-dbc-guest-chat] .dbc-convo-avatar-fallback.cht_hd_avtr {
    height: 36px;
    width: 36px;
}

.dbc-convo-avatar-fallback {
    align-items: center;
    background: var(--dbc-surface-muted, #eef1f5);
    border-radius: 50%;
    color: var(--dbc-text, #111);
    display: inline-flex;
    font-size: 15px;
    font-weight: 700;
    height: 42px;
    justify-content: center;
    width: 42px;
}

.dbc-guest-messages .messages-container {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    padding: 12px 14px 18px;
}

.dbc-guest-messages .tag_msg_write {
    flex: 0 0 auto;
}

.dbc-convo-composer__hint {
    color: var(--dbc-text-muted);
    font-size: 12px;
    margin: 8px 0 0;
    padding: 0 4px;
}

[data-dbc-guest-chat] textarea.form-control {
    padding-right: 75px !important;
}

[data-dbc-guest-chat] .chat-messages .message-contnaier {
    padding: 0 8px;
}

.dbc-guest-page {
    margin: 0;
    max-width: none;
    padding: 0;
}

.dbc-guest-messages.tag_messages {
    bottom: 0;
    height: 100%;
    left: 0;
    margin: 0;
    overflow: hidden;
    position: fixed;
    right: 0;
    top: 0;
    width: 100%;
    z-index: 20;
}

.dbc-guest-messages > .wow_content,
.dbc-guest-messages .tag_msg_user_chat .text-sender-container {
    height: 100%;
    margin: 0;
    min-height: 100%;
}

.dbc-guest-messages .tag_msg_user_chat {
    background: inherit;
    height: 100%;
    left: auto;
    min-height: 100%;
    min-width: 100%;
    position: relative;
    right: auto;
    top: auto;
    width: 100%;
    z-index: auto;
}

.dbc-guest-messages .chat_navigation.dbc-convo-back {
    align-items: center;
    display: none;
    flex: 0 0 auto;
    justify-content: center;
}

.dbc-guest-messages .dbc-convo-back[hidden] {
    display: none !important;
}

.dbc-guest-messages[data-dbc-viewer="owner"] .chat_navigation.dbc-convo-back:not([hidden]) {
    display: inline-flex;
}

.dbc-guest-messages .tag_msg_participant {
    align-items: center;
    display: flex;
    gap: 2px;
    max-width: calc(100% - 110px);
}

.dbc-guest-messages[data-dbc-viewer="owner"] .tag_msg_participant {
    max-width: calc(100% - 90px);
}

.dbc-guest-messages .message-contnaier {
    align-items: flex-end;
    padding: 4px 2px 10px;
    width: 100%;
}

.dbc-guest-messages .message-contnaier.dbc-msg-out {
    justify-content: flex-end;
}

.dbc-guest-messages .message-contnaier.dbc-msg-in {
    justify-content: flex-start;
}

.dbc-guest-messages .message-user-image {
    align-self: flex-end;
    border-radius: 50%;
    flex: 0 0 32px;
    float: none;
    height: 32px;
    margin: 0 8px 2px 0;
    object-fit: cover;
    width: 32px;
}

.dbc-guest-messages .tag_msg_wrapper {
    max-width: min(78%, 420px);
}

.dbc-guest-messages .tag_msg_wrapper.outgoing {
    margin-left: auto;
    order: 2;
}

.dbc-guest-messages .tag_msg_wrapper.incoming {
    margin-right: 0;
}

.dbc-guest-messages .tag_msg_wrapper.outgoing .message-text {
    margin-left: auto;
}

.dbc-guest-messages .tag_msg_header .tag_msg_toolbar {
    flex: 0 0 auto;
    margin: 0;
}

.dbc-guest-messages .dbc-convo-view-card {
    align-items: center;
    background: rgba(0, 0, 0, .05);
    border-radius: 999px;
    color: inherit;
    display: inline-flex;
    font-size: 13px;
    font-weight: 600;
    height: auto;
    line-height: 1.2;
    padding: 8px 14px;
    white-space: nowrap;
    width: auto;
}

.night_mode .dbc-guest-messages .dbc-convo-view-card {
    background: rgba(255, 255, 255, .08);
}

.dbc-guest-messages .tag_msg_container {
    height: calc(100% - 65px);
    left: auto;
    min-height: 0;
    position: relative;
    right: auto;
    top: auto;
    width: 100%;
}

.dbc-guest-messages .messages-container {
    min-height: 0;
}

.dbc-guest-messages .dbc-empty-state {
    color: var(--dbc-text-muted, #8a8a8a);
    font-size: 14px;
    line-height: 1.5;
    margin: 28px 12px;
    text-align: center;
}

.dbc-guest-messages .tag_msg_write {
    padding-bottom: max(12px, env(safe-area-inset-bottom, 12px));
}

.night_mode .dbc-guest-messages .tag_msg_user_chat,
.night_mode_body .dbc-guest-messages .tag_msg_user_chat {
    background-color: #121212;
}

.dbc-guest-card__note {
    color: var(--dbc-text-muted);
    font-size: 12.5px;
    line-height: 1.6;
    margin: 12px 4px 0;
}

@media (max-width: 575px) {
    .dbc-guest-messages .tag_msg_participant {
        max-width: calc(100% - 88px);
    }

    .dbc-guest-messages[data-dbc-viewer="owner"] .tag_msg_participant {
        max-width: calc(100% - 72px);
    }

    .dbc-guest-messages .tag_msg_wrapper {
        max-width: min(82%, 100%);
    }
}
