/* ==========================================
   BLOGZINE — ШАПКА ПРОФИЛЯ
========================================== */

.bz-profile-header {
    position: relative;
    width: 100%;
    margin-bottom: 30px;
    overflow: hidden;
    background: #fff;
    border: 1px solid #eee9df;
    border-radius: 14px;
    box-shadow: 0 4px 22px rgba(35, 35, 35, .045);
}

/* Обложка */

.bz-profile-cover {
    position: relative;
    width: 100%;
    height: 260px;
    background-color: #f3eee5;
    background-image: url("../images/blog/profile-cover-variant-3.png");
    background-position: center 45%;
    background-repeat: no-repeat;
    background-size: cover;
    overflow: hidden;
}

.bz-profile-cover::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(20, 20, 20, 0.02) 35%,
        rgba(20, 20, 20, 0.25) 100%
    );
}

/* Основная часть шапки */

.bz-profile-header-body {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 28px;
    padding: 0 35px 30px;
    background: #fff;
}

/* Аватар */

.bz-profile-avatar {
    position: relative;
    flex: 0 0 150px;
    width: 150px;
    height: 150px;
    margin-top: -65px;
    z-index: 2;
}

.bz-profile-avatar img {
    display: block;
    width: 150px;
    height: 150px;
    object-fit: cover;
    border: 5px solid #fff;
    border-radius: 50%;
    background: #f5f1e9;
    box-shadow: 0 4px 18px rgba(0, 0, 0, .12);
}

/* Защита аватара от глобальных правил темы: фиксированный квадрат, без сжатия */
.bz-profile-avatar {
    flex-shrink: 0;
    overflow: visible;
}
.bz-profile-avatar img {
    box-sizing: border-box;
    display: block;
    flex: 0 0 150px;
    width: 150px !important;
    min-width: 150px;
    max-width: none !important;
    height: 150px !important;
    min-height: 150px;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    object-position: center;
}

/* Индикатор онлайн */

.bz-online-indicator {
    position: absolute;
    right: 12px;
    bottom: 12px;
    width: 19px;
    height: 19px;
    background: #35b66a;
    border: 3px solid #fff;
    border-radius: 50%;
}

.bz-profile-presence {
    margin-top: 9px;
    font-size: 13px;
    font-weight: 500;
}

.bz-profile-presence .is-online {
    color: #269b59;
}

.bz-profile-presence .is-offline {
    color: #929292;
}

/* Информация о пользователе */

.bz-profile-main {
    flex: 1;
    min-width: 0;
    padding-top: 19px;
}

.bz-profile-title {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.bz-profile-title h1 {
    margin: 0;
    color: #252525;
    font-size: 27px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -.3px;
}

.bz-profile-group {
    display: inline-flex;
    align-items: center;
    padding: 5px 12px;
    color: #987638;
    background: #faf5e9;
    border: 1px solid #eee3ce;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 600;
}

/* Дополнительная информация */

.bz-profile-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px 22px;
    margin-top: 13px;
    color: #77736b;
    font-size: 13px;
}

.bz-profile-meta span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.bz-profile-meta i {
    color: #b18b49;
    font-size: 14px;
}

/* Кнопки профиля */

.bz-profile-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 19px;
}

.bz-profile-action a,
.bz-profile-actions > a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 8px 16px;
    color: #82683d;
    background: #faf7f0;
    border: 1px solid #eee5d5;
    border-radius: 7px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: background .2s ease, color .2s ease,
                border-color .2s ease, transform .2s ease;
}

.bz-profile-action a:hover,
.bz-profile-actions > a:hover {
    color: #fff;
    background: #b18b49;
    border-color: #b18b49;
    transform: translateY(-1px);
}

/* Уведомление о блокировке */

.bz-profile-ban {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin: 0 35px 25px;
    padding: 16px 18px;
    color: #8d3939;
    background: #fff6f3;
    border: 1px solid #f0ddd7;
    border-radius: 10px;
}

.bz-profile-ban > i {
    margin-top: 2px;
    font-size: 22px;
}

.bz-profile-ban strong {
    display: block;
    margin-bottom: 4px;
    font-size: 14px;
}

.bz-profile-ban p {
    margin: 0;
    font-size: 13px;
}

.bz-profile-ban small {
    display: block;
    margin-top: 6px;
    color: #a36c66;
    font-size: 12px;
}

/* ==========================================
   ВКЛАДКИ ПРОФИЛЯ
========================================== */

#pills-tab {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 22px;
    padding: 8px;
    background: #fff;
    border: 1px solid #eee9df;
    border-radius: 12px;
}

#pills-tab .nav-item {
    margin: 0 !important;
}

#pills-tab .bz-profile-pm-tab {
    display: flex;
    align-items: center;
}

#pills-tab .bz-profile-pm-tab > a {
    color: #77736b;
    border: 1px solid transparent;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all .2s ease;
}

#pills-tab .nav-link,
#pills-tab .bz-profile-pm-tab > a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 11px 22px;
    color: #77736b;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    transition: all .2s ease;
}

#pills-tab .nav-link:hover,
#pills-tab .bz-profile-pm-tab > a:hover {
    color: #a17d40;
    background: #faf7f0;
}

#pills-tab .nav-link.active {
    color: #fff;
    background: #b18b49;
    border-color: #b18b49;
    box-shadow: 0 3px 9px rgba(177, 139, 73, .17);
}

/* Содержимое вкладок */

#pills-tabContent {
    padding: 25px;
    color: #626262;
    background: #fff;
    border: 1px solid #eee9df;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(35, 35, 35, .035);
    font-size: 14px;
    line-height: 1.75;
}

#pills-tabContent .tab-pane {
    min-height: 100px;
}

#pills-tabContent p:last-child {
    margin-bottom: 0;
}

/* ==========================================
   АДАПТИВНОСТЬ
========================================== */

@media (max-width: 767.98px) {

    .bz-profile-cover {
        height: 190px;
    }

    .bz-profile-header-body {
        flex-direction: column;
        align-items: center;
        gap: 0;
        padding: 0 18px 24px;
        text-align: center;
    }

    .bz-profile-avatar {
        margin-top: -65px;
        flex-basis: auto;
    }

    .bz-profile-main {
        width: 100%;
        padding-top: 14px;
    }

    .bz-profile-title {
        justify-content: center;
    }

    .bz-profile-title h1 {
        font-size: 23px;
    }

    .bz-profile-meta {
        justify-content: center;
        gap: 9px 16px;
    }

    .bz-profile-presence {
        text-align: center;
    }

    .bz-profile-actions {
        justify-content: center;
        width: 100%;
    }

    .bz-profile-ban {
        margin: 0 18px 20px;
    }

    #pills-tab {
        gap: 6px;
        padding: 7px;
    }

    #pills-tab .nav-item {
        flex: 1 1 auto;
    }

    #pills-tab .nav-link,
    #pills-tab .bz-profile-pm-tab > a {
        width: 100%;
        padding: 10px 12px;
        font-size: 13px;
    }

    #pills-tab .bz-profile-pm-tab {
        width: 100%;
    }

    #pills-tabContent {
        padding: 18px;
    }
}

@media (max-width: 420px) {

    .bz-profile-cover {
        height: 155px;
    }

    .bz-profile-title h1 {
        font-size: 21px;
    }

    .bz-profile-meta {
        flex-direction: column;
        gap: 8px;
    }

    .bz-profile-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .bz-profile-action a,
    .bz-profile-actions > a {
        width: 100%;
    }

    #pills-tab {
        display: flex;
        flex-direction: column;
        align-items: stretch;
    }

    #pills-tab .nav-item,
    #pills-tab .nav-link {
        width: 100%;
    }

    #pills-tabContent {
        padding: 15px;
    }
}


/* Оформление содержимого вкладок профиля */

#pills-tabContent .bg-light {
    background: #fff !important;
    border: 1px solid #eee9df;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(35, 35, 35, .035);
}

#pills-tabContent h4 {
    color: #292929;
    font-size: 19px;
    font-weight: 700;
}

#pills-tabContent .list-group-item {
    gap: 18px;
    padding: 14px 0;
    color: #626262;
    background: transparent;
    border-color: #f0ece5;
}

#pills-tabContent .list-group-item i {
    color: #b18b49 !important;
}

#pills-tabContent .form-label {
    color: #55514a;
    font-size: 13px;
    font-weight: 600;
}

#pills-tabContent .xfields {
    width: 100%;
    max-width: 100%;
}

#pills-tabContent .form-control,
#pills-tabContent select {
    border-color: #e9e3d8;
    border-radius: 8px;
    box-shadow: none;
}

#pills-tabContent .form-control:focus,
#pills-tabContent select:focus {
    border-color: #c4a46b;
    box-shadow: 0 0 0 3px rgba(177, 139, 73, .12);
}

#pills-tabContent .btn-primary {
    color: #fff;
    background: #b18b49;
    border-color: #b18b49;
}

#pills-tabContent .btn-primary:hover {
    background: #987638;
    border-color: #987638;
}

@media (max-width: 575.98px) {
    #pills-tabContent .list-group-item {
        align-items: flex-start !important;
        flex-direction: column;
        gap: 6px;
    }
}

/* =========================================================
   BLOGZINE PROFILE — DARK MODE + RESPONSIVE FINISH
   Theme source of truth: html[data-bs-theme] (colormode.js)
   ========================================================= */

.bz-profile-header,
#pills-tab,
#pills-tabContent,
#pills-tabContent .bg-light {
    min-width: 0;
}

.bz-profile-header img,
#pills-tabContent img {
    max-width: 100%;
}

#pills-tabContent .row > *,
#pills-tabContent [class*="col-"] {
    min-width: 0;
}

#pills-tabContent .xfields {
    display: block;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
}

#pills-tabContent .form-control,
#pills-tabContent .form-select,
#pills-tabContent select,
#pills-tabContent textarea {
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

#pills-tabContent .social-list,
#pills-tabContent .admin_checkboxs,
#pills-tabContent .list-group-item > span {
    min-width: 0;
    overflow-wrap: anywhere;
}

#pills-tabContent .btn {
    min-height: 40px;
    white-space: normal;
}

/* Dark mode follows the existing Blogzine color-mode switcher. */
html[data-bs-theme="dark"] .bz-profile-header,
html[data-bs-theme="dark"] .bz-profile-header-body,
html[data-bs-theme="dark"] #pills-tab,
html[data-bs-theme="dark"] #pills-tabContent,
html[data-bs-theme="dark"] #pills-tabContent .bg-light {
    color: #e8edf4;
    background: #1a2533 !important;
    border-color: #344254 !important;
    box-shadow: 0 8px 26px rgba(0, 0, 0, .18);
}

html[data-bs-theme="dark"] .bz-profile-title h1,
html[data-bs-theme="dark"] #pills-tabContent h4,
html[data-bs-theme="dark"] #pills-tabContent .h6,
html[data-bs-theme="dark"] #pills-tabContent strong {
    color: #f0f3f7 !important;
}

html[data-bs-theme="dark"] .bz-profile-meta,
html[data-bs-theme="dark"] .bz-profile-presence .is-offline,
html[data-bs-theme="dark"] #pills-tabContent,
html[data-bs-theme="dark"] #pills-tabContent .list-group-item,
html[data-bs-theme="dark"] #pills-tabContent .form-label {
    color: #b6c1cf !important;
}

html[data-bs-theme="dark"] .bz-profile-group {
    color: #e2c78f;
    background: rgba(198, 161, 91, .12);
    border-color: rgba(226, 199, 143, .25);
}

html[data-bs-theme="dark"] .bz-profile-avatar img {
    border-color: #1a2533;
    background: #263548;
}

html[data-bs-theme="dark"] .bz-online-indicator {
    border-color: #1a2533;
}

html[data-bs-theme="dark"] .bz-profile-action a,
html[data-bs-theme="dark"] .bz-profile-actions > a,
html[data-bs-theme="dark"] #pills-tab .nav-link,
html[data-bs-theme="dark"] #pills-tab .bz-profile-pm-tab > a {
    color: #e2c78f;
    background: #202e3e;
    border-color: #3a4a5d;
}

html[data-bs-theme="dark"] #pills-tab .nav-link:hover,
html[data-bs-theme="dark"] #pills-tab .bz-profile-pm-tab > a:hover,
html[data-bs-theme="dark"] .bz-profile-action a:hover,
html[data-bs-theme="dark"] .bz-profile-actions > a:hover {
    color: #17202b;
    background: #d3b477;
    border-color: #d3b477;
}

html[data-bs-theme="dark"] #pills-tab .nav-link.active {
    color: #17202b;
    background: #d3b477;
    border-color: #d3b477;
}

html[data-bs-theme="dark"] #pills-tabContent .list-group-item {
    background: transparent !important;
    border-color: #344254 !important;
}

html[data-bs-theme="dark"] #pills-tabContent .text-muted,
html[data-bs-theme="dark"] #pills-tabContent small {
    color: #9eacbd !important;
}

html[data-bs-theme="dark"] #pills-tabContent .form-control,
html[data-bs-theme="dark"] #pills-tabContent .form-select,
html[data-bs-theme="dark"] #pills-tabContent select,
html[data-bs-theme="dark"] #pills-tabContent textarea {
    color: #e8edf4 !important;
    background-color: #111b28 !important;
    border-color: #405168 !important;
    color-scheme: dark;
}

html[data-bs-theme="dark"] #pills-tabContent .form-control::placeholder,
html[data-bs-theme="dark"] #pills-tabContent textarea::placeholder {
    color: #93a1b2;
}

html[data-bs-theme="dark"] #pills-tabContent .form-control:focus,
html[data-bs-theme="dark"] #pills-tabContent .form-select:focus,
html[data-bs-theme="dark"] #pills-tabContent select:focus,
html[data-bs-theme="dark"] #pills-tabContent textarea:focus {
    border-color: #c6a15b !important;
    box-shadow: 0 0 0 3px rgba(198, 161, 91, .18) !important;
}

html[data-bs-theme="dark"] #pills-tabContent .admin_checkboxs,
html[data-bs-theme="dark"] #pills-tabContent .social-list {
    color: #d5deea;
}

html[data-bs-theme="dark"] .bz-profile-ban {
    color: #ffc2b8;
    background: #342326;
    border-color: #634044;
}

/* Tablet and phone layout refinements. */
@media (max-width: 767.98px) {
    .bz-profile-header { margin-bottom: 22px; }
    .bz-profile-header-body { width: 100%; }
    .bz-profile-avatar { flex: 0 0 132px; width: 132px; height: 132px; }
    .bz-profile-avatar img { width: 132px; height: 132px; }
    .bz-profile-meta { width: 100%; }
    .bz-profile-actions { gap: 8px; }
    #pills-tab { margin-right: 0 !important; margin-left: 0 !important; }
    #pills-tabContent { width: 100%; }
    #pills-tabContent .row { --bs-gutter-x: 1rem; --bs-gutter-y: 1rem; }
}

@media (max-width: 575.98px) {
    .bz-profile-cover { height: 150px; }
    .bz-profile-header-body { padding-right: 14px; padding-left: 14px; }
    .bz-profile-avatar { flex-basis: 116px; width: 116px; height: 116px; margin-top: -52px; }
    .bz-profile-avatar img { width: 116px; height: 116px; }
    .bz-online-indicator { right: 7px; bottom: 7px; }
    .bz-profile-title { gap: 8px; }
    .bz-profile-title h1 { font-size: clamp(19px, 6vw, 23px); overflow-wrap: anywhere; }
    .bz-profile-meta { align-items: flex-start; text-align: left; }
    .bz-profile-meta span { max-width: 100%; overflow-wrap: anywhere; }
    .bz-profile-actions { display: grid; grid-template-columns: 1fr; }
    .bz-profile-action, .bz-profile-action a, .bz-profile-actions > a { width: 100%; }
    .bz-profile-ban { margin-right: 12px; margin-left: 12px; padding: 13px; }
    #pills-tab { display: grid; grid-template-columns: 1fr; gap: 6px; padding: 7px; }
    #pills-tab .nav-item, #pills-tab .bz-profile-pm-tab { width: 100%; margin: 0 !important; }
    #pills-tab .nav-link, #pills-tab .bz-profile-pm-tab > a { display: flex; width: 100%; justify-content: center; padding: 10px 12px; }
    #pills-tabContent { padding: 12px; }
    #pills-tabContent .bg-light { padding: 14px !important; }
    #pills-tabContent .list-group-item { display: flex; flex-direction: column; align-items: flex-start !important; gap: 5px; }
    #pills-tabContent .list-group-item > span:last-child { padding-left: 0; text-align: left; }
    #pills-tabContent [class*="col-lg-"] { width: 100%; }
    #pills-tabContent .btn { width: 100%; margin: 0 0 8px; }
    #pills-tabContent .text-start.p-3 { padding: 8px 0 !important; }
}

@media (max-width: 360px) {
    .bz-profile-cover { height: 130px; }
    .bz-profile-header-body { padding-right: 10px; padding-left: 10px; }
    .bz-profile-title h1 { font-size: 19px; }
    #pills-tabContent { padding: 9px; }
    #pills-tabContent .bg-light { padding: 11px !important; }
}


/* Blogzine group badge: consistent warm-gold palette in both themes */
.bz-profile-title .bz-profile-group,
.bz-profile-title .bz-profile-group * {
    color: #82683d !important;
    background-color: transparent;
}
.bz-profile-title .bz-profile-group {
    background: #faf5e9;
    border: 1px solid #e8dcc5;
}
html[data-bs-theme="dark"] .bz-profile-title .bz-profile-group,
html[data-bs-theme="dark"] .bz-profile-title .bz-profile-group * {
    color: #e2c78f !important;
}
html[data-bs-theme="dark"] .bz-profile-title .bz-profile-group {
    background: rgba(198, 161, 91, .12);
    border-color: rgba(226, 199, 143, .25);
}

/* Responsive avatar dimensions must remain square at every breakpoint */
@media (max-width: 767.98px) {
    .bz-profile-avatar { flex: 0 0 132px; width: 132px; height: 132px; }
    .bz-profile-avatar img {
        flex: 0 0 132px;
        width: 132px !important; min-width: 132px; height: 132px !important; min-height: 132px;
    }
}
@media (max-width: 575.98px) {
    .bz-profile-avatar { flex: 0 0 116px; width: 116px; height: 116px; }
    .bz-profile-avatar img {
        flex: 0 0 116px;
        width: 116px !important; min-width: 116px; height: 116px !important; min-height: 116px;
    }
}


/* =========================================================
   BLOGZINE PROFILE — FINAL LAYOUT OVERRIDES
   Fixes global avatar sizing conflicts and compact information rows.
   ========================================================= */

/* Keep avatar a true circle; override global theme avatar rules. */
.bz-profile-header .bz-profile-header-body {
    display: flex;
    align-items: flex-start;
    gap: 28px;
}
.bz-profile-header .bz-profile-avatar {
    display: block;
    position: relative;
    flex: 0 0 150px !important;
    width: 150px !important;
    min-width: 150px !important;
    height: 150px !important;
    min-height: 150px !important;
    margin-top: -65px;
    overflow: visible !important;
}
.bz-profile-header .bz-profile-avatar img {
    display: block !important;
    position: relative;
    width: 150px !important;
    min-width: 150px !important;
    max-width: 150px !important;
    height: 150px !important;
    min-height: 150px !important;
    max-height: 150px !important;
    aspect-ratio: 1 / 1;
    object-fit: cover !important;
    border-radius: 50% !important;
}
.bz-profile-header .bz-profile-main {
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
}

/* Compact two-column rows: label at left, value in a controlled column. */
#pills-tabContent .list-group-item {
    display: grid !important;
    grid-template-columns: minmax(210px, 34%) minmax(0, 1fr);
    align-items: center !important;
    column-gap: 24px;
}
#pills-tabContent .list-group-item > span:last-child {
    min-width: 0;
    text-align: right;
    overflow-wrap: anywhere;
}
#pills-tabContent .list-group-item > span:first-child {
    min-width: 0;
}

/* The cover is an actual image; avoid a blank fallback surface. */
.bz-profile-cover {
    background-image: url("../images/blog/profile-cover-variant-3.png") !important;
    background-position: center 45%;
    background-size: cover;
}

/* Group label uses the Blogzine warm-gold palette, not alert red. */
.bz-profile-title .bz-profile-group,
.bz-profile-title .bz-profile-group * {
    color: #987638 !important;
}
.bz-profile-title .bz-profile-group {
    background: #faf5e9 !important;
    border: 1px solid #eee3ce !important;
}
html[data-bs-theme="dark"] .bz-profile-title .bz-profile-group,
html[data-bs-theme="dark"] .bz-profile-title .bz-profile-group * {
    color: #e2c78f !important;
}
html[data-bs-theme="dark"] .bz-profile-title .bz-profile-group {
    background: rgba(198,161,91,.12) !important;
    border-color: rgba(226,199,143,.25) !important;
}

/* Mobile: preserve the square avatar and stack profile details cleanly. */
@media (max-width: 767.98px) {
    .bz-profile-header .bz-profile-header-body {
        flex-direction: column;
        align-items: center;
        gap: 0;
    }
    .bz-profile-header .bz-profile-avatar {
        flex: 0 0 132px !important;
        width: 132px !important;
        min-width: 132px !important;
        height: 132px !important;
        min-height: 132px !important;
    }
    .bz-profile-header .bz-profile-avatar img {
        width: 132px !important; min-width: 132px !important; max-width: 132px !important;
        height: 132px !important; min-height: 132px !important; max-height: 132px !important;
    }
    #pills-tabContent .list-group-item {
        grid-template-columns: minmax(0, 1fr);
        row-gap: 5px;
    }
    #pills-tabContent .list-group-item > span:last-child {
        text-align: left;
        padding-left: 30px;
    }
}
@media (max-width: 575.98px) {
    .bz-profile-header .bz-profile-avatar {
        flex: 0 0 116px !important;
        width: 116px !important; min-width: 116px !important;
        height: 116px !important; min-height: 116px !important;
    }
    .bz-profile-header .bz-profile-avatar img {
        width: 116px !important; min-width: 116px !important; max-width: 116px !important;
        height: 116px !important; min-height: 116px !important; max-height: 116px !important;
    }
}

/* ==========================================================
   BLOGZINE — FINAL DARK PALETTE CORRECTION
   Keep dark mode warm graphite/charcoal with champagne-gold accents.
   Overrides legacy blue-grey profile rules from older stylesheets.
   ========================================================== */
:root:is(.theme-dark, [data-theme="dark"], [data-bs-theme="dark"]),
html.theme-dark,
html[data-theme="dark"],
html[data-bs-theme="dark"],
body.theme-dark,
body[data-theme="dark"],
body[data-bs-theme="dark"] {
    color-scheme: dark;
    --bz-page-bg: #171716;
    --bz-surface: #20201e;
    --bz-surface-soft: #272522;
    --bz-border: #3b352b;
    --bz-text: #f2ede3;
    --bz-muted: #c2b9aa;
    --bz-accent: #d5ac61;
    --bz-accent-dark: #d5ac61;
    --obs-paper: #171716;
    --obs-page: #171716;
    --obs-card: #272522;
    --obs-surface: #20201e;
    --obs-ink: #f2ede3;
    --obs-ink-soft: #e4dccf;
    --obs-line: #3b352b;
    --obs-muted: #c2b9aa;
    --obs-gold: #d5ac61;
    --obs-gold-dark: #d5ac61;
}

/* Profile cover/body, information panel and tab area */
html[data-bs-theme="dark"] .bz-profile-header,
html[data-bs-theme="dark"] .bz-profile-header-body,
html[data-bs-theme="dark"] #pills-tab,
html[data-bs-theme="dark"] #pills-tabContent,
html[data-bs-theme="dark"] #pills-tabContent .bg-light,
body.theme-dark .bz-profile-header,
body.theme-dark .bz-profile-header-body,
body.theme-dark #pills-tab,
body.theme-dark #pills-tabContent,
body.theme-dark #pills-tabContent .bg-light,
html.theme-dark .bz-profile-header,
html.theme-dark .bz-profile-header-body,
html.theme-dark #pills-tab,
html.theme-dark #pills-tabContent,
html.theme-dark #pills-tabContent .bg-light,
html[data-theme="dark"] .bz-profile-header,
html[data-theme="dark"] .bz-profile-header-body,
html[data-theme="dark"] #pills-tab,
html[data-theme="dark"] #pills-tabContent,
html[data-theme="dark"] #pills-tabContent .bg-light {
    color: #f2ede3 !important;
    background-color: #20201e !important;
    border-color: #3b352b !important;
    box-shadow: 0 8px 26px rgba(0,0,0,.2);
}

html[data-bs-theme="dark"] .bz-profile-title h1,
html[data-bs-theme="dark"] #pills-tabContent h4,
html[data-bs-theme="dark"] #pills-tabContent .h6,
html[data-bs-theme="dark"] #pills-tabContent strong,
body.theme-dark .bz-profile-title h1,
body.theme-dark #pills-tabContent h4,
body.theme-dark #pills-tabContent .h6,
body.theme-dark #pills-tabContent strong {
    color: #f2ede3 !important;
}

html[data-bs-theme="dark"] .bz-profile-meta,
html[data-bs-theme="dark"] .bz-profile-presence .is-offline,
html[data-bs-theme="dark"] #pills-tabContent,
html[data-bs-theme="dark"] #pills-tabContent .list-group-item,
html[data-bs-theme="dark"] #pills-tabContent .form-label,
body.theme-dark .bz-profile-meta,
body.theme-dark .bz-profile-presence .is-offline,
body.theme-dark #pills-tabContent,
body.theme-dark #pills-tabContent .list-group-item,
body.theme-dark #pills-tabContent .form-label {
    color: #c2b9aa !important;
    border-color: #3b352b !important;
}

html[data-bs-theme="dark"] .bz-profile-group,
body.theme-dark .bz-profile-group {
    color: #e4c98f !important;
    background: rgba(213,172,97,.12) !important;
    border-color: rgba(213,172,97,.28) !important;
}

html[data-bs-theme="dark"] .bz-profile-avatar img,
body.theme-dark .bz-profile-avatar img {
    border-color: #20201e !important;
    background: #302c26 !important;
}
html[data-bs-theme="dark"] .bz-online-indicator,
body.theme-dark .bz-online-indicator { border-color: #20201e !important; }

/* Profile action buttons and tabs: warm graphite, never blue */
html[data-bs-theme="dark"] .bz-profile-action a,
html[data-bs-theme="dark"] .bz-profile-actions > a,
html[data-bs-theme="dark"] #pills-tab .nav-link,
html[data-bs-theme="dark"] #pills-tab .bz-profile-pm-tab > a,
body.theme-dark .bz-profile-action a,
body.theme-dark .bz-profile-actions > a,
body.theme-dark #pills-tab .nav-link,
body.theme-dark #pills-tab .bz-profile-pm-tab > a {
    color: #e4c98f !important;
    background: #302c26 !important;
    border-color: #514638 !important;
}
html[data-bs-theme="dark"] #pills-tab .nav-link.active,
body.theme-dark #pills-tab .nav-link.active {
    color: #211d16 !important;
    background: #d5ac61 !important;
    border-color: #d5ac61 !important;
}
html[data-bs-theme="dark"] #pills-tab .nav-link:hover,
html[data-bs-theme="dark"] #pills-tab .bz-profile-pm-tab > a:hover,
html[data-bs-theme="dark"] .bz-profile-action a:hover,
html[data-bs-theme="dark"] .bz-profile-actions > a:hover,
body.theme-dark #pills-tab .nav-link:hover,
body.theme-dark #pills-tab .bz-profile-pm-tab > a:hover,
body.theme-dark .bz-profile-action a:hover,
body.theme-dark .bz-profile-actions > a:hover {
    color: #211d16 !important;
    background: #d5ac61 !important;
    border-color: #d5ac61 !important;
}

/* Profile content panels, including legacy DLE-generated rows */
html[data-bs-theme="dark"] .userinfo-card,
body.theme-dark .userinfo-card,
html[data-theme="dark"] .userinfo-card {
    --bz-prof-bg: #20201e;
    --bz-prof-panel: #272522;
    --bz-prof-soft: #302c26;
    --bz-prof-ink: #f2ede3;
    --bz-prof-muted: #c2b9aa;
    --bz-prof-line: #3b352b;
    --bz-prof-gold: #d5ac61;
    color: var(--bz-prof-ink) !important;
    background: var(--bz-prof-bg) !important;
    border-color: var(--bz-prof-line) !important;
}
html[data-bs-theme="dark"] .userinfo-card .profile-dashboard-sidebar,
body.theme-dark .userinfo-card .profile-dashboard-sidebar,
html[data-bs-theme="dark"] .userinfo-card .profile-settings-main,
body.theme-dark .userinfo-card .profile-settings-main {
    background: #272522 !important;
    border-color: #3b352b !important;
}
