/* ========================= Light theme: Profile layout ========================= */
/* ---------- Base ---------- */
html, body { background:#f7f8fb; color:#0f172a; }

/* ---------- Top block (cover + name + buttons) ---------- */
.block-member { display:block; margin-bottom:20px; }
.member-cover { position:relative; background:linear-gradient(180deg, #e2e8f0, #eef2f7); border-radius:16px; overflow:hidden; min-height:180px; box-shadow:0 6px 18px rgba(2,6,23,.06); }
.member-cover img { width:100%; height:260px; object-fit:cover; display:block; }
.member-name-container { position:absolute; left:20px; bottom:16px; z-index:2; background:rgba(255,255,255,.7); backdrop-filter:blur(6px); padding:6px 12px; border-radius:999px; box-shadow:0 2px 10px rgba(0,0,0,.05); }
.member-name { margin:0; font-size:20px; font-weight:700; color:#0f172a; }
.add-cover-button { position:absolute; right:16px; bottom:16px; z-index:2; display:inline-flex; align-items:center; gap:8px; background:#2563eb; color:#fff; padding:10px 14px; border-radius:999px; text-decoration:none; box-shadow:0 6px 18px rgba(2,6,23,.06); transition:transform .15s ease, background .15s ease; }
.add-cover-button:hover { background:#1d4ed8; transform:translateY(-1px); }
.add-cover-button i { font-style:normal; }

/* ---------- Avatar ---------- */
.member-avatar { position:relative; z-index:3; padding-left:12px;    padding-bottom: 20px; }
.member-avatar .avatar { display:flex; justify-content:center; align-items:center; }
.current-avatar { width:90%; height:90%; border-radius:50%; border:4px solid #fff; box-shadow:0 6px 18px rgba(2,6,23,.06); object-fit:cover; background:#e2e8f0; }
.add-avatar-button { display:inline-flex; gap:8px; align-items:center; padding:8px 12px; border-radius:999px; background:#2563eb; color:#fff; text-decoration:none; font-size:14px; transition:background .15s ease, transform .15s ease; }
.add-avatar-button:hover { background:#1d4ed8; transform:translateY(-1px); }
.add-avatar-button i { font-style:normal; }

/* ---------- Buttons row (subscribe / message / friends + menus) ---------- */
.member-buttons { margin-top:14px; display:grid; grid-template-columns:1fr; gap:14px; }
.member-profile-buttons { display:flex; flex-wrap:wrap; gap:10px; }
.member-profile-buttons .button, .member-profile-buttons a { display:inline-flex; align-items:center; gap:10px; background:#0f172a; color:#fff; text-decoration:none; padding:10px 14px; border-radius:12px; box-shadow:0 6px 18px rgba(2,6,23,.06); transition:transform .15s ease, background .15s ease; }
.member-profile-buttons .button:hover, .member-profile-buttons a:hover { background:#111827; transform:translateY(-1px); }
.member-profile-buttons svg { display:block; }
.member-profile-buttons a[data-subscribe-to].is-active .subscribe { display:none; }
.member-profile-buttons a[data-subscribe-to]:not(.is-active) .subscribed { display:none; }
.user-edit-btn-wrapper { display:flex; gap:10px; flex-wrap:wrap; }
.user-edit-btn-wrapper a { display:inline-flex; gap:8px; align-items:center; padding:10px 12px; border-radius:10px; background:#0ea5e9; color:#fff; text-decoration:none; box-shadow:0 6px 18px rgba(2,6,23,.06); transition:transform .15s ease, background .15s ease; }
.user-edit-btn-wrapper a:hover { background:#0284c7; transform:translateY(-1px); }
.sort.sort-tab { display:inline-flex; align-items:center; gap:12px; background:#ffffff; border:1px solid #e5e7eb; padding:8px 12px; border-radius:10px; box-shadow:0 6px 18px rgba(2,6,23,.06); }
.sort.sort-tab strong { font-weight:700; }
.sort.sort-tab ul { display:inline-flex; gap:10px; list-style:none; margin:0; padding:0; }
.sort.sort-tab a { color:#2563eb; text-decoration:none; padding:6px 8px; border-radius:8px; }
.sort.sort-tab a:hover { background:#eff6ff; }

/* ---------- Main two-column layout ---------- */
.main-content { margin-top:18px; display:grid; grid-template-columns:290px minmax(0,1fr); gap:18px; }

/* Sidebar (left) */
.sidebar-member { position:sticky; top:18px; align-self:start; background:#ffffff; border:1px solid #e5e7eb; border-radius:16px; padding:16px; box-shadow:0 6px 18px rgba(2,6,23,.06); }
.show-user-info-container { margin-bottom:10px; }
.show-user-info { font-weight:700; color:#0f172a; }

/* Info list */
.member-data .member-specs { display:flex; justify-content:space-between; gap:10px; padding:8px 0; border-bottom:1px dashed #e5e7eb; font-size:14px;font-weight: 600; }
  
.about-me .member-specs {  display: flex;flex-wrap: wrap;}
  
  .btn-favourites ul li span.not-added {
    position: relative;
    background: url(../images/plus2.png) 8px 8px no-repeat;
}

.member-data .member-specs em {
 font-style: normal;
    color: #475569;
}

.about-me .member-specs em {
    font-style: normal;
    color: #475569;
    display: flex;
    flex: 0 0 100%;
    flex-wrap: wrap;
    min-width: 0;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
    padding: 10px 0px;

}
.form-status{display:none;margin-top:8px;font-size:14px}
.form-status.is-success{display:block;color:#16a34a}  /* зелёный */
.form-status.is-error{display:block;color:#dc2626}    /* красный */
button.toggle-password {
    position: absolute;
    right: 10px;
    top: 22px;
}


#edit-profile select.selectbox::after {
    content: "";
    display: inline-block;
    width: 5px;
    height: 5px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    margin-left: 6px;
    vertical-align: middle;
    color: #fff;
    font-size: 16px;
}



.member-data .about-me .member-specs span {display: flex; flex: 0 0 100%;}
.member-data .about-me .member-specs { border-bottom:0; padding-bottom:0; }

.member-data .member-specs em .text,
.member-data .member-specs em span {
  flex: 1 1 auto;
  min-width: 0;
}

/* Show more/less toggle */
.show-linkM { width:100%; margin-top:6px; display:inline-flex; justify-content:center; align-items:center; gap:8px; border:1px solid #e5e7eb; background:#ffffff; color:#0f172a; padding:8px 10px; border-radius:10px; cursor:pointer; transition:background .15s ease, transform .15s ease, border-color .15s ease; }
.show-linkM:hover { background:#f8fafc; transform:translateY(-1px); }
.show-linkM[aria-expanded="true"] .icon-chevron-thin-down { transform:rotate(180deg); }

/* Friends list in sidebar */
.list_members { margin-top:14px; }

@media (max-width: 900px) {
.list_members {
display:none;
    }
}


.sidebar-member-list-related-header { margin:0 0 10px 0; font-size:16px; font-weight:700; color:#0f172a; }
.sidebar-member-list-related-content { display:grid; gap:10px; }

/* ---------- Main container (center) ---------- */
.main-container { min-height:400px; background:#ffffff; border:1px solid #e5e7eb; border-radius:16px; padding:16px; box-shadow:0 6px 18px rgba(2,6,23,.06); }

/* ---------- Cards/plugins ---------- */
.card { background:#ffffff; border:1px solid #e5e7eb; border-radius:12px; box-shadow:0 6px 18px rgba(2,6,23,.06); padding:12px; }

/* ---------- Icons reset ---------- */
.icon, .icon-svg { display:inline-block; vertical-align:middle; }

/* ---------- Utility ---------- */
.g_clear { clear:both; }

/* ---------- Focus states ---------- */
a, button { outline:none; }
a:focus-visible, button:focus-visible { box-shadow:0 0 0 3px rgba(37,99,235,.35); border-radius:10px; }

/* Bottom buttons */
.bottom { margin:10px; text-align:right; }
.bottom-btn { display:inline-flex; gap:8px; align-items:center; padding:10px 12px; border-radius:10px; background:#0ea5e9; color:#fff; text-decoration:none; box-shadow:0 6px 18px rgba(2,6,23,.06); transition:transform .15s ease, background .15s ease; }

/* ========================= Responsive ========================= */
@media (max-width:1100px) { .profile-menu { grid-template-columns:repeat(2, minmax(0,1fr)); } }
@media (max-width:900px) { .main-content { grid-template-columns:1fr; } .sidebar-member { position:static; order:0; } .main-container { order:1; } .member-avatar { margin-top:-28px; } }
@media (max-width:600px) { .member-cover img { height:200px; } .current-avatar { width:60%; display:block; margin:0 auto; border-radius:50%; border:4px solid #fff; box-shadow:0 6px 18px rgba(2,6,23,.06); object-fit:cover; background:#e2e8f0; } .avatar { display:flex; justify-content:center; align-items:center; } .member-profile-buttons .button, .member-profile-buttons a[rel="nofollow"][data-fancybox="ajax"] { width:100%; justify-content:center; } .user-edit-btn-wrapper a { width:100%; justify-content:center; } }

/* Profile menu */
.profile-menu { display:flex; flex-wrap:wrap; gap:16px; list-style:none; padding:0; margin:0; justify-content:space-between; }

.profile-menu li a { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:6px; background:#ffffff; border:1px solid #e5e7eb; border-radius:12px; padding:16px 12px; text-decoration:none; color:#0f172a; box-shadow:0 4px 10px rgba(0,0,0,.05); transition:transform .15s ease, box-shadow .15s ease; }
.profile-menu li a:hover { transform:translateY(-2px); box-shadow:0 6px 16px rgba(0,0,0,.08); }
.profile-menu .icon-svg { width:28px; height:28px; fill:#2563eb; }
.profile-menu .count { font-weight:700; font-size:16px; color:#111827; }
.profile-menu .label { font-size:14px; color:#475569; }
@media (max-width:900px) { .profile-menu li { flex:1 1 45%; min-width:auto; } }
@media (max-width:320px) { .profile-menu li { flex:1 1 100%; } }

/* Favourites list bits */
.btn-favourites ul li span .delete { position:absolute; right:0px; top:4px; color:#9b9b9b; padding:3px 10px; border-left:1px solid #373737; border-bottom:none; }
.btn-favourites ul li span.added { position:relative; background:url(../images/ico-checkmark.png) 7px 7px no-repeat; }
.btn-favourites ul li { padding-left:10px; border-bottom:1px solid #373737; }
.btn-favourites ul li span .delete:before { content:"🗑️"; }
.btn-favourites ul li a, .btn-favourites ul li span { white-space:nowrap; display:block; font-weight:bold; color:#222222; }
.btn-favourites ul li a { padding:0; background:none; padding:8px 0px 8px 36px; }


/* List selector / checkboxes */
form .list-selector-popup .button-group .item { display:inline-block; width:31%; padding:3px 0 0; }
form input[type="checkbox"] { width:18px; height:18px; }
form .checkbox+label, form .checkbox+span, form .radio+label, form .radio+span { position:relative; padding-left:20px !important; cursor:pointer; }
form .list-selector-popup .button-group .item label { color:#f1f1f1; font-size:12px; cursor:pointer; position:relative; padding:0 0 0 25px; }
form .checkbox+label:before, form .checkbox+span:before { content:"\ea10"; position:absolute; left:0; z-index:2; width:15px; height:12px; border-radius:2px; background:#343434; font-family:"icomoon" !important; speak:none; font-style:normal; font-weight:normal; font-variant:normal; text-transform:none; line-height:1; color:#343434; font-size:11px; text-align:center; padding:3px 0 0; transition:background 0.3s, border 0.3s, color 0.3s; }
span.close-popup { position:absolute; top:0px; right:30px; width:14px; height:14px; display:flex; align-items:center; justify-content:center; background:#000; color:#fff; font-size:22px; line-height:1; font-weight:700; border-radius:10px; border:none; cursor:pointer; box-shadow:0 2px 6px rgba(160,160,160,.4); transition:background .2s ease, color .2s ease, transform .15s ease, box-shadow .2s ease; }

/* Inputs / file control */
form .file-control { position:relative; width:100%; margin:0 0 2rem; }
form .file-control .textfield { padding-left:75px; }
form .file-control .textfield { padding-left:24px; }
form .file, form .selectbox, form .textarea, form .textfield { width:100%; background:#171717; border-radius:3px; padding:8px 10px; padding-left:10px; height:39px; border:1px solid #2d2d2d; box-sizing:border-box; color:#fff; transition:all 0.3s; }
form .file-control .button { position:absolute; top:5px; left:5px; padding:8px 10px; border-radius:3px; color:#fff; background:#313131; font-size:13px; font-weight:500; line-height:1; cursor:pointer; }
.file-control input.file { position:absolute; left:0; top:0; bottom:0; padding:0; opacity:0; filter:alpha(opacity=0); cursor:pointer; }

/* Edit profile buttons */
#edit-profile .bottom { display:flex; flex-wrap:wrap; justify-content:flex-end; position:relative; max-width:100%; width:100%; padding:15px 0; }
#edit-profile .grad { background:linear-gradient(356deg, #e15e00 0%, #fa9a1b 100%); --btn-color:#fff; transition:background 0.3s ease-out; background-size:1px 50px; }

/* Misc */
.error-message { color:red; font-weight:700; }
form .radio+label:before, form .radio+span:before { content:""; position:absolute; top:0; left:0; width:10px; height:10px; background:#111; border:2px solid #fd7500; border-radius:50%; transition:all 0.3s; }
form input[type="radio"] { width:18px; height:18px; }
form .checkbox, form .radio { display:none; }
.button-group { margin:0 0 10px; }
form .row { display:block; position:relative; width:100%; margin:0px 0px 12px; }

/* Headline layout overrides */
@media screen and (max-width:992px) { .profile-list .box.reverse .headline { flex-direction:column; margin-top:-24px; width:100%; } .profile-list .headline { display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:nowrap; } .profile-list .headline .title-holder { flex:1 1 auto; min-width:0; } .profile-list .headline .title-holder h2 { margin:0; } .profile-list .headline .sort-holder { margin-left:auto; white-space:nowrap; } }
@media (max-width:600px) { .profile-list .headline { flex-wrap:wrap; } .profile-list .headline .sort-holder { width:100%; margin-left:0; } }
svg.icon-svg.icon-subscription {
    width: 26px;
    height: 26px;
}


.profile-menu svg.icon-svg.icon-subscription {
    width: 30px;
    height: 30px;
}

.profile-menu li {
    flex: 1 1 13%;
    min-width: 150px;
}

.box.profile-list .btn-favourites ul li span.not-added {
    position: relative;
    background: url(../images/plus2.png) 8px 8px no-repeat;
}

.box.profile-list .panel-holder .avatar-holder {
    position: relative;
    text-align: center;
    padding: 0 0 15px;
    line-height: 0;
    display: block;
}

.box.profile-list .avatar-holder .no-avatar {
    width: 192px;
    height: 192px;
    background: #f8f6f6;
    overflow: visible;
    -webkit-border-radius: 50%;
    border-radius: 50%;
    position: relative;
    margin: 0 auto;
    -webkit-box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex
;
    -webkit-box-align: center;
    -webkit-align-items: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -webkit-justify-content: center;
    -ms-flex-pack: center;
    justify-content: center;
}



.box.profile-list  .avatar-holder .no-avatar .icon {
    position: absolute;
    top: 0;
    bottom: 0;
    right: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: -webkit-box;
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex
;
    -webkit-box-align: center;
    -ms-flex-align: center;
    -webkit-align-items: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    -webkit-justify-content: center;
    justify-content: center;
    -webkit-border-radius: 50%;
    border-radius: 50%;
    overflow: hidden;
    background: #fff;
    font-size: 70px;
    color: rgba(94, 94, 94, 0.35);
}

.box.profile-list  .avatar-holder .no-avatar .icon i {
    -webkit-transform: rotate(0);
    -ms-transform: rotate(0);
    transform: rotate(0);
}
.box.profile-list .avatar-holder .no-avatar i {
    font-size: 50px;
    color: #5e5e5e;
    font-size: 100px;
}


.icon-camera-2:before {
    content: "\e91e";
}
.box.profile-list  .avatar-holder .no-avatar i {
    font-size: 50px;
    color: #5e5e5e;
    font-size: 100px;
}



/* Section header */
.section-header { align-items:center; display:flex;     display: block; justify-content:flex-start; background-color:#ffffff; border-radius:0px; padding:15px 0px; }
.section-header_title { display:flex; position:relative; align-items:center; color:#000000; font-size:1.375em; font-weight:bold; font-style:normal; text-transform:uppercase; line-height:1.4; font-family:Roboto Condensed, Droid Sans, sans-serif; margin-right:10px; }
a.section-header_links { cursor:pointer; text-decoration:none; user-select:none; background:#000000; border:0px solid #000000; box-shadow:none; text-shadow:none; color:#fbca27; border-radius:0px; padding:5px 10px; font-size:100%; font-weight:normal; font-style:normal; font-family:roboto, Droid Sans, sans-serif; line-height:1.15; border-radius:6px; }
.section-header {
    background-color: #ffffff;
    border-radius: 0px;
    position: relative;
    display: flex
;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: nowrap;
    gap: 12px;
    padding: 0 0 10px;
}




.user-profile .token-user {
    display: -webkit-box;
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex
;
    -webkit-box-align: center;
    -ms-flex-align: center;
    -webkit-align-items: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    -webkit-justify-content: center;
    justify-content: center;
    -ms-flex-wrap: nowrap;
    -webkit-flex-wrap: nowrap;
    flex-wrap: nowrap;
    border-top: 1px solid #dedede;
    padding-top: 20px;
    margin: 10px -20px 0;
}
.js-info-holder {
    position: relative;
}

.user-profile .token-user .quantity {
    color: #5e5e5e;
    font-size: 14px;
    line-height: 16px;
    padding: 0 25px 0 0;
    font-weight: 500;
}


.user-profile .token-user .icon-token {
    position: relative;
    width: 33px;
}


.user-profile .token-user .icon-token img {
    width: 100%;
}

.js-info-holder.open-popup .js-info-popup {-webkit-transform: translateZ(0);transform: translateZ(0);opacity: 1;visibility: visible;}

.user-profile .token-user .icon-token .icon {
    cursor: pointer;
    position: absolute;
    color: #fff;
    font-size: 12px;
    line-height: 12px;
    font-weight: 500;
    background-color: #acacac;
    -webkit-border-radius: 50%;
    border-radius: 50%;
    display: inline-block;
    padding: 1px 4px;
    top: -7px;
    right: -10px;
    width: 14px;
}

/* 3 колонки в одну строку */
.row.date fieldset {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* день / месяц / год */
  gap: 12px;
  margin: 0;
  padding: 0;
  border: 0; /* убирает рамку fieldset */
}

/* чтобы селекты растягивались по колонке */
.row.date fieldset .selectbox,
.row.date fieldset select {
  width: 100%;
  min-width: 0;        /* предотвращает переполнение */
  box-sizing: border-box;
}

/* (необязательно) одинаковая высота */
.row.date fieldset select {
  height: 40px;

}

.row.about_myself .textarea {
    height: 150px;
}

.row.about_myself.input-with-emoji .ta-wrap{
  position:relative;
}
.row.about_myself.input-with-emoji .emoji-btn{
  position:absolute;
  right:8px;
  bottom:8px;      /* или top:8px — как удобнее */
  border:1px solid rgba(0,0,0,.12);
  background:#fff;
  border-radius:6px;
  padding:6px 10px;
  line-height:1;
  cursor:pointer;
}




/* Если нужно на очень узких экранах складывать в 2 строки — раскомментируй
@media (max-width: 420px) {
  .row.date fieldset { grid-template-columns: repeat(2, 1fr); }
}
*/


/* ========================= Dark theme: Profile layout ========================= */
body.dark html,
body.dark body { background:#0b1220; color:#e5e7eb; }

/* ---------- Top block (cover + name + buttons) ---------- */
body.dark .member-cover {
  background:linear-gradient(180deg, #0f172a, #111827);
  box-shadow:0 6px 18px rgba(0,0,0,.35);
  border-color:#1f2937;
}
body.dark .member-cover img { filter:saturate(.95) brightness(.9); }
body.dark .member-name-container {
  background:rgba(15,23,42,.65);
  color:#e5e7eb;
  box-shadow:0 2px 10px rgba(0,0,0,.4);
}
body.dark .member-name { color:#f1f5f9; }
body.dark .add-cover-button { background:#2563eb; color:#fff; }
body.dark .add-cover-button:hover { background:#1d4ed8; }

/* ---------- Avatar ---------- */
body.dark .current-avatar { border-color:#0f172a; box-shadow:0 6px 18px rgba(0,0,0,.45); background:#0b1220; }
body.dark .add-avatar-button { background:#2563eb; color:#fff; }
body.dark .add-avatar-button:hover { background:#1d4ed8; }

/* ---------- Buttons row (subscribe / message / friends + menus) ---------- */
body.dark .member-profile-buttons .button,
body.dark .member-profile-buttons a {
  background:#111827; color:#e5e7eb; box-shadow:0 6px 18px rgba(0,0,0,.35);
}
body.dark .member-profile-buttons .button:hover,
body.dark .member-profile-buttons a:hover { background:#0b1220; }
body.dark .user-edit-btn-wrapper a { background:#0284c7; color:#fff; }
body.dark .user-edit-btn-wrapper a:hover { background:#0ea5e9; }
body.dark .sort.sort-tab {
  background:#0f172a; border-color:#1f2937; box-shadow:0 6px 18px rgba(0,0,0,.35); color:#e5e7eb;
}
body.dark .sort.sort-tab a { color:#93c5fd; }
body.dark .sort.sort-tab a:hover { background:#0b1220; }

/* ---------- Main two-column layout ---------- */
body.dark .sidebar-member,
body.dark .main-container,
body.dark .card {
  background:#0f172a;
  border:1px solid #1f2937;
  box-shadow:0 6px 18px rgba(0,0,0,.4);
}
body.dark .show-user-info { color:#e2e8f0; }

/* Info list */
body.dark .member-data .member-specs {
  border-bottom:1px dashed #243041; color:#e5e7eb;
}
body.dark .member-data .member-specs em,
body.dark .about-me .member-specs em { color:#94a3b8; }

/* Show more/less toggle */
body.dark .show-linkM {
  border-color:#1f2937; background:#0f172a; color:#e5e7eb;
}
body.dark .show-linkM:hover { background:#0b1220; }

/* Friends list in sidebar */
body.dark .sidebar-member-list-related-header { color:#e2e8f0; }

/* ---------- Icons reset ---------- */
body.dark .icon, body.dark .icon-svg { filter:none; }

/* ---------- Focus states ---------- */
body.dark a:focus-visible,
body.dark button:focus-visible { box-shadow:0 0 0 3px rgba(59,130,246,.45); }

/* Bottom buttons */
body.dark .bottom-btn { background:#0284c7; color:#fff; }
body.dark .bottom-btn:hover { background:#0ea5e9; }

/* ========================= Responsive tweaks ========================= */
@media (max-width:600px) {
  body.dark .member-cover img { height:200px; filter:saturate(.95) brightness(.9); }
  body.dark .current-avatar { border-color:#0f172a; }
}

/* Profile menu */
body.dark .profile-menu li a {
  background:#0f172a; border:1px solid #1f2937; color:#e5e7eb;
  box-shadow:0 4px 10px rgba(0,0,0,.35);
}
body.dark .profile-menu li a:hover { transform:translateY(-2px); box-shadow:0 6px 16px rgba(0,0,0,.45); }
body.dark .profile-menu .icon-svg { fill:#60a5fa; }
body.dark .profile-menu .count { color:#f3f4f6; }
body.dark .profile-menu .label { color:#94a3b8; }

/* Favourites list bits */
body.dark .btn-favourites ul li { border-bottom:1px solid #1f2937; }
body.dark .btn-favourites ul li a,
body.dark .btn-favourites ul li span { color:#e5e7eb; }
body.dark .btn-favourites ul li span .delete { color:#94a3b8; border-left:1px solid #1f2937; }

/* List selector / checkboxes */
body.dark form .list-selector-popup .button-group .item label { color:#e5e7eb; }
body.dark form .checkbox+label:before,
body.dark form .checkbox+span:before {
  background:#0b1220; color:#0b1220; border:1px solid #334155;
}

/* Inputs / selects / file control */
body.dark form .file,
body.dark form .selectbox,
body.dark form .textarea,
body.dark form .textfield {
  background:#0b1220; border:1px solid #334155; color:#e5e7eb;
}
body.dark form .file-control .button { background:#1f2937; color:#e5e7eb; }
body.dark .file-control input.file { /* invisible input — без изменений */ }

/* Edit profile buttons */
body.dark #edit-profile .bottom { /* layout — без изменений */ }
body.dark #edit-profile .grad { background:linear-gradient(356deg, #c2410c 0%, #f59e0b 100%); --btn-color:#0b1220; }

/* Misc */
body.dark .error-message { color:#fca5a5; }
body.dark form .radio+label:before,
body.dark form .radio+span:before {
  background:#0b1220; border-color:#fdba74;
}
body.dark .button-group { /* без изменений */ }
body.dark form .row { /* без изменений */ }

/* Headline layout overrides */
body.dark .profile-list .headline { color:#e5e7eb; }
body.dark .profile-list .headline .sort-holder { /* визуально на тёмном — без изменений */ }

/* SVG sizes (оставляем размеры, только контраст) */
body.dark svg.icon-svg.icon-subscription { /* size unchanged */ }
body.dark .profile-menu svg.icon-svg.icon-subscription { /* size unchanged */ }

/* Плейсхолдеры и muted-текст */
body.dark ::placeholder { color:#94a3b8; opacity:1; }
body.dark .form-status.is-success { color:#22c55e; }
body.dark .form-status.is-error { color:#ef4444; }

/* Section header */
body.dark .section-header { background-color:#0f172a; }
body.dark .section-header_title { color:#f1f5f9; }
body.dark a.section-header_links {
  background:#111827; color:#fbbf24; border-color:#111827;
}

/* Tokens / info popup */
body.dark .user-profile .token-user { border-top:1px solid #1f2937; }
body.dark .user-profile .token-user .quantity { color:#cbd5e1; }
body.dark .user-profile .token-user .icon-token .icon { background-color:#475569; }
body.dark .js-info-holder .js-info-popup {
  background:rgba(15,23,42,.95);
  box-shadow:0 0 10px rgba(0,0,0,.5);
  color:#e2e8f0;
}

/* Date grid selects */
body.dark .row.date fieldset select { background:#0b1220; color:#e5e7eb; border:1px solid #334155; }

/* About myself textarea + emoji button */
body.dark .row.about_myself .textarea { background:#0b1220; color:#e5e7eb; border:1px solid #334155; }
body.dark .row.about_myself.input-with-emoji .emoji-btn {
  background:#0f172a; border-color:#334155; color:#e5e7eb;
}

/* Close popup chip */
body.dark span.close-popup { background:#0f172a; color:#e5e7eb; box-shadow:0 2px 6px rgba(0,0,0,.5); }
body.dark span.close-popup:hover { background:#111827; }

/* Toggle password button (чтобы было видно на тёмном) */
body.dark button.toggle-password { color:#cbd5e1; }

/* Links */
body.dark a { color:#93c5fd; }
body.dark a:hover { color:#bfdbfe; }


.js-info-holder .js-info-popup {
    background: rgba(255, 255, 255, 0.9);
    position: absolute;
    bottom: -webkit-calc(100% + 10px);
    bottom: calc(100% + 10px);
    left: 0;
    right: 0;
    width: 100%;
    overflow: hidden;
    -webkit-transform: translate3d(0, -20px, 0);
    transform: translate3d(0, -20px, 0);
    opacity: 0;
    z-index: 15;
    -webkit-box-shadow: 0 0 3px rgba(94, 94, 94, 0.5);
    box-shadow: 0 0 3px rgba(94, 94, 94, 0.5);
    -webkit-border-radius: 5px 5px;
    border-radius: 5px 5px;
    visibility: hidden;
    padding: 10px;
    -webkit-transition: opacity .3s, visibility .3s, -webkit-transform .3s;
    transition: opacity .3s, visibility .3s, -webkit-transform .3s;
    -o-transition: transform .3s, opacity .3s, visibility .3s;
    transition: transform .3s, opacity .3s, visibility .3s;
    transition: transform .3s, opacity .3s, visibility .3s, -webkit-transform .3s;
}

@media (max-width:600px) {
	.section-header {
    position: relative;
    display: flex
;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: nowrap;
    gap: 12px;
    padding: 0 0 10px;
    flex-direction: column;
    margin-top: -24px;
    width: 100%;
}
}