.lfm-dashboard-profile {
    width: 100%;
    max-width: 980px;
    margin: 28px auto;
    background: #fff;
    border: 1px solid #eef0f3;
    box-shadow: 0 14px 40px rgba(15, 23, 42, .07);
}

.lfm-dashboard-profile__header {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 22px 24px;
    border-bottom: 1px solid #eef0f3;
}

.lfm-dashboard-profile__header h3 {
    margin: 0 0 6px;
    color: #020617;
    font-size: 22px;
    line-height: 1.25;
}

.lfm-dashboard-profile__header p {
    margin: 0;
    color: #64748b;
    font-size: 14px;
}

.lfm-dashboard-profile__layout {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 0;
}

.lfm-dashboard-steps {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 18px;
    border-right: 1px solid #eef0f3;
    background: #fbfcfd;
}

.lfm-dashboard-steps button {
    width: 100%;
    border: 0;
    background: transparent;
    color: #334155;
    cursor: pointer;
    font-weight: 700;
    padding: 11px 12px;
    text-align: left;
}

.lfm-dashboard-steps button.is-active {
    background: #fff7ed;
    color: #ea7a1f;
}

.lfm-dashboard-panels {
    padding: 22px 24px 26px;
}

.lfm-dashboard-panel {
    display: none;
}

.lfm-dashboard-panel.is-active {
    display: block;
}

.lfm-dashboard-panel h4 {
    margin: 0 0 18px;
    color: #020617;
    font-size: 20px;
    line-height: 1.25;
}

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

.lfm-dashboard-grid label,
.lfm-dashboard-textarea {
    display: block;
}

.lfm-dashboard-grid span,
.lfm-dashboard-textarea span {
    display: block;
    margin-bottom: 7px;
    color: #0f172a;
    font-weight: 700;
}

.lfm-dashboard-grid input,
.lfm-dashboard-textarea textarea {
    width: 100%;
    border: 1px solid #dfe3e8;
    background: #fff;
    color: #0f172a;
    padding: 11px 12px;
}

.lfm-dashboard-grid__wide {
    grid-column: 1 / -1;
}

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

.lfm-dashboard-tile {
    display: flex;
    align-items: center;
    gap: 9px;
    min-height: 44px;
    border: 1px solid #e5e7eb;
    background: #fff;
    color: #111827;
    cursor: pointer;
    font-weight: 700;
    padding: 10px 12px;
}

.lfm-dashboard-tile input {
    flex: 0 0 auto;
}

.lfm-dashboard-tile:has(input:checked) {
    border-color: #f59e0b;
    background: #fff7ed;
}

.lfm-dashboard-brand-group {
    margin-top: 22px;
}

.lfm-dashboard-brand-group:first-of-type {
    margin-top: 0;
}

.lfm-dashboard-brand-group h5,
.lfm-dashboard-brand-group h6 {
    margin: 0 0 12px;
    color: #020617;
    font-size: 15px;
    line-height: 1.3;
}

.lfm-dashboard-brand-group__compact {
    margin-top: 18px;
}

.lfm-dashboard-certificates {
    margin-top: 24px;
}

.lfm-dashboard-certificates h5 {
    margin: 0 0 12px;
    color: #020617;
    font-size: 15px;
}

.lfm-dashboard-certificate-row {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) 160px;
    gap: 10px;
    margin-bottom: 10px;
}

.lfm-dashboard-proof-row {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.4fr) minmax(0, 1fr) 150px 150px;
    gap: 10px;
    margin-bottom: 10px;
}

.lfm-dashboard-certificate-row input,
.lfm-dashboard-proof-row input,
.lfm-dashboard-proof-row select,
.lfm-dashboard-file input {
    width: 100%;
    border: 1px solid #dfe3e8;
    background: #fff;
    color: #0f172a;
    padding: 10px 12px;
}

.lfm-dashboard-file {
    display: block;
    margin-top: 18px;
}

.lfm-dashboard-file span {
    display: block;
    margin-bottom: 7px;
    color: #0f172a;
    font-weight: 700;
}

.lfm-dashboard-note,
.lfm-dashboard-preview span {
    display: block;
    margin-top: 12px;
    color: #64748b;
    font-size: 14px;
}

.lfm-dashboard-preview {
    border: 1px solid #eef0f3;
    background: #fbfcfd;
    padding: 18px;
}

.lfm-dashboard-preview strong {
    display: block;
    color: #020617;
    font-size: 18px;
}

.lfm-dashboard-actions {
    padding: 0 24px 24px;
}

.lfm-dashboard-actions .directorist-btn-profile-save,
.lfm-dashboard-actions #update_user_profile {
    width: 100%;
    justify-content: center;
}

.lfm-native-logo-slot {
    display: flex;
    justify-content: center;
    padding: 12px 0 4px;
}

.lfm-native-logo-slot .directorist-image-profile-wrap {
    width: 220px;
    max-width: 100%;
}

.lfm-native-profile-slot .directorist-card,
.lfm-native-profile-slot .directorist-user-profile-box {
    border: 0;
    box-shadow: none;
    margin: 0;
}

.lfm-native-profile-slot .directorist-card__header {
    display: none;
}

.lfm-native-profile-slot .directorist-card__body {
    padding: 0;
}

.lfm-native-profile-slot .directorist-user-info-wrap {
    display: block;
}

.lfm-native-profile-slot .directorist-form-group {
    margin-bottom: 16px;
}

.lfm-directorist-profile-source-hidden {
    display: none !important;
}

@media (max-width: 900px) {
    .lfm-dashboard-profile__layout {
        grid-template-columns: 1fr;
    }

    .lfm-dashboard-steps {
        border-right: 0;
        border-bottom: 1px solid #eef0f3;
    }

    .lfm-dashboard-grid,
    .lfm-dashboard-tiles,
    .lfm-dashboard-certificate-row,
    .lfm-dashboard-proof-row {
        grid-template-columns: 1fr;
    }
}
