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

.dbc-cc-preview-card {
    --dbc-link-background: var(--main);
    --dbc-link-color: var(--main-color);
}

.dbc-cc-preview-card.dbc-theme--midnight {
    --dbc-text: #142033;
    --dbc-text-soft: #3f4f66;
    --dbc-text-muted: #6e7d91;
    --dbc-link-background: #17243a;
    --dbc-link-color: #ffffff;
    background: #e8edf5 !important;
}

.dbc-cc-preview-card.dbc-theme--warm {
    --dbc-text: #281b14;
    --dbc-text-soft: #5f4a3e;
    --dbc-text-muted: #806b5e;
    background: #f3eadf !important;
}

.dbc-cc-preview-card.dbc-theme--electric {
    --dbc-text: #101828;
    --dbc-text-soft: #344054;
    --dbc-text-muted: #667085;
    --dbc-link-background: #ffffff;
    --dbc-link-color: #111827;
    background: #2865d8 !important;
}

body.night_mode .dbc-page-member .dbc-cc-preview-card.dbc-theme--midnight,
.night_mode .dbc-page-member .dbc-cc-preview-card.dbc-theme--midnight,
html:has(link.night-mode-css) .dbc-page-member .dbc-cc-preview-card.dbc-theme--midnight {
    --dbc-text: #ffffff;
    --dbc-text-soft: #e4e7ee;
    --dbc-text-muted: #aeb5c5;
    --dbc-link-background: #ffffff;
    --dbc-link-color: #11131a;
    background: #090b12 !important;
}

body.night_mode .dbc-page-member .dbc-cc-preview-card.dbc-theme--warm,
.night_mode .dbc-page-member .dbc-cc-preview-card.dbc-theme--warm,
html:has(link.night-mode-css) .dbc-page-member .dbc-cc-preview-card.dbc-theme--warm {
    --dbc-text: #fff8f2;
    --dbc-text-soft: #ead8cc;
    --dbc-text-muted: #bba89c;
    background: #1c1511 !important;
}

body.night_mode .dbc-page-member .dbc-cc-preview-card.dbc-theme--electric,
.night_mode .dbc-page-member .dbc-cc-preview-card.dbc-theme--electric,
html:has(link.night-mode-css) .dbc-page-member .dbc-cc-preview-card.dbc-theme--electric {
    --dbc-text: #ffffff;
    --dbc-text-soft: #dbe7ff;
    --dbc-text-muted: #9cb7e8;
    background: #071a3c !important;
}

.dbc-cc-preview-card.dbc-has-custom-background {
    background-image: linear-gradient(rgba(7, 9, 14, 0.58), rgba(7, 9, 14, 0.72)), var(--dbc-custom-background-image) !important;
    background-position: center !important;
    background-size: cover !important;
}

.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: 920px;
    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: 220px;
    width: 26%;
}

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

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

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

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

.dbc-cc-table th:nth-child(6),
.dbc-cc-table td:nth-child(6) {
    min-width: 190px;
    width: 20%;
}

.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: 860px;
    }
}

@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) {
        min-width: 0;
        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;
}

.dbc-page-public-modal {
    --dbc-page-background: #f5f6f8;
    --dbc-link-background: var(--main);
    --dbc-link-color: var(--main-color);
    background: var(--dbc-page-background);
    isolation: isolate;
    position: relative;
}

body.night_mode .dbc-profile-modal .dbc-page-public-modal.dbc-theme--classic:not(.dbc-has-custom-background),
.night_mode .dbc-profile-modal .dbc-page-public-modal.dbc-theme--classic:not(.dbc-has-custom-background),
html:has(link.night-mode-css) .dbc-profile-modal .dbc-page-public-modal.dbc-theme--classic:not(.dbc-has-custom-background) {
    --dbc-page-background: #090b0f;
}

.dbc-profile-modal .dbc-page.dbc-theme--midnight {
    --dbc-page-background: #e8edf5;
    --dbc-surface: #f8fafc;
    --dbc-surface-muted: rgba(30, 58, 95, 0.05);
    --dbc-border-soft: rgba(30, 58, 95, 0.13);
    --dbc-text: #142033;
    --dbc-text-soft: #3f4f66;
    --dbc-text-muted: #6e7d91;
    --dbc-link-background: #17243a;
    --dbc-link-color: #ffffff;
}

.dbc-profile-modal .dbc-page.dbc-theme--warm {
    --dbc-page-background: #f3eadf;
    --dbc-surface: #fffaf5;
    --dbc-surface-muted: rgba(80, 45, 22, 0.05);
    --dbc-border-soft: rgba(80, 45, 22, 0.12);
    --dbc-text: #281b14;
    --dbc-text-soft: #5f4a3e;
    --dbc-text-muted: #806b5e;
}

.dbc-profile-modal .dbc-page.dbc-theme--electric {
    --dbc-page-background: #2865d8;
    --dbc-surface: #ffffff;
    --dbc-surface-muted: rgba(33, 89, 195, 0.06);
    --dbc-border-soft: rgba(16, 55, 130, 0.14);
    --dbc-text: #101828;
    --dbc-text-soft: #344054;
    --dbc-text-muted: #667085;
    --dbc-link-background: #ffffff;
    --dbc-link-color: #111827;
}

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 {
    --dbc-page-background: #090b12;
    --dbc-surface: #121622;
    --dbc-surface-muted: rgba(255, 255, 255, 0.06);
    --dbc-border-soft: rgba(255, 255, 255, 0.12);
    --dbc-text: #ffffff;
    --dbc-text-soft: #e4e7ee;
    --dbc-text-muted: #aeb5c5;
    --dbc-link-background: #ffffff;
    --dbc-link-color: #11131a;
}

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 {
    --dbc-page-background: #1c1511;
    --dbc-surface: #251c17;
    --dbc-surface-muted: rgba(255, 222, 198, 0.06);
    --dbc-border-soft: rgba(255, 199, 158, 0.14);
    --dbc-text: #fff8f2;
    --dbc-text-soft: #ead8cc;
    --dbc-text-muted: #bba89c;
}

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 {
    --dbc-page-background: #071a3c;
    --dbc-surface: #0d234b;
    --dbc-surface-muted: rgba(255, 255, 255, 0.06);
    --dbc-border-soft: rgba(122, 170, 255, 0.18);
    --dbc-text: #ffffff;
    --dbc-text-soft: #dbe7ff;
    --dbc-text-muted: #9cb7e8;
    --dbc-link-background: #ffffff;
    --dbc-link-color: #111827;
}

.dbc-page-public-modal.dbc-has-custom-background::before {
    background-image: linear-gradient(rgba(7, 9, 14, 0.58), rgba(7, 9, 14, 0.72)), var(--dbc-custom-background-image);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    content: '';
    inset: 0;
    pointer-events: none;
    position: absolute;
    z-index: -1;
}

.dbc-page-public-modal.dbc-has-custom-background {
    --dbc-page-background: #111318;
}

.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-appearance-card {
    grid-column: 1 / -1;
}

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

.dbc-theme-option__swatch {
    background: #f5f6f8;
    border-radius: 9px;
    display: block;
    height: 58px;
}

.dbc-theme-option--midnight .dbc-theme-option__swatch {
    background: #090b12;
}

.dbc-theme-option--warm .dbc-theme-option__swatch {
    background: #f3eadf;
}

.dbc-theme-option--electric .dbc-theme-option__swatch {
    background: #2865d8;
}

.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;
    justify-content: center;
    min-height: 90px;
    padding: 12px;
}

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

@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 rgba(239, 51, 56, 0.6);
    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: 24px;
    }

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