/* ============================================================
   ПОДКЛЮЧЕНИЕ ШРИФТА
   ============================================================ */
@font-face {
    font-family: 'Hezaedrus-Regular';
    src: url('/fonts/hezaedrus.woff2') format('woff2'),
         url('/fonts/hezaedrus.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* ============================================================
   ГЛОБАЛЬНЫЕ СБРОСЫ
   ============================================================ */
html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow-x: hidden;
}
body {
    background: #EFEFEF;
    font-family: Hezaedrus-Regular, sans-serif;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* ============================================================
   ОСНОВНОЙ КОНТЕНТ (центрированный, с отступами)
   ============================================================ */
.page-content {
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    flex: 1 0 auto !important;
    width: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}
.page-content .block-style-editable {
    flex: 1 0 auto;
}

/* ============================================================
   ОБЩИЕ СТИЛИ ЭЛЕМЕНТОВ
   ============================================================ */
.flex { display: flex; flex-wrap: wrap; gap: 30px; }
.flex > div { flex: 1; min-width: 300px; }
input, select { margin-bottom: 8px; }
table { border-collapse: collapse; width: 100%; margin-bottom: 15px; font-size: 14px; }
th, td { border: 1px solid transparent; padding: 4px 8px; text-align: left; }
th { background: #f0f0f0; }
td { color: #000; }
table tbody tr:hover { background-color: #f5f5f5; }
tr.highlight-row { background-color: #ffffcc !important; }
.error { color: red; }
.btn { padding: 4px 12px; margin: 2px; cursor: pointer; }
.btn-gray { background: #6c757d; color: white; border: none; padding: 4px 12px; border-radius: 4px; }
.btn-gray:hover { background: #5a6268; color: white; }
.btn-save { background: #6c757d; color: white; border: none; padding: 4px 12px; border-radius: 4px; }
.btn-save:hover { background: #5a6268; color: white; }
.action-buttons form { display: inline; }
.confirm-box { border: 1px solid #f0ad4e; padding: 15px; margin: 10px 0; background: #fcf8e3; }
svg { display: block; margin: 0 auto; }
svg * { pointer-events: all; }
.small-gray { color: #888; font-size: 0.9em; }
.small-gray h3 { color: #888; font-size: 1.1em; }
.field-wide { width: 300px; box-sizing: border-box; }
.field-tz { width: 3em; box-sizing: border-box; }
.field-coord { width: 10em; box-sizing: border-box; }
.city-input-wrapper { position: relative; display: inline-block; width: 300px; }
.city-input-wrapper input { width: 100%; box-sizing: border-box; }
.suggestions-box { position: absolute; background: white; border: 1px solid #ccc; max-height: 200px; overflow-y: auto; width: 100%; z-index: 1000; display: none; }
.suggestions-box div { padding: 8px 12px; cursor: pointer; }
.suggestions-box div:hover { background: #f0f0f0; }
.btn-extra { background: #ffffff; color: #333; border: 1px solid #ccc; border-radius: 0; padding: 6px 18px; transition: background 0.2s; }
.btn-extra:hover { background: #f0f0f0; }

/* ===== Стили для статического модуля (табы, дерево, карточки продуктов) ===== */
.tree-nav { list-style: none; padding-left: 0; margin: 0; }
.tree-nav .tree-item { margin-bottom: 2px; }
.tree-nav .tree-item-content { display: flex; align-items: center; padding: 4px 8px; border-radius: 4px; transition: background 0.15s; }
.tree-nav .tree-item-content:hover { background: #f0f0f0; }
.tree-nav .tree-toggle { display: inline-block; width: 18px; text-align: center; cursor: pointer; font-size: 14px; color: #6c757d; margin-right: 4px; transition: transform 0.2s; }
.tree-nav .tree-toggle.open { transform: rotate(90deg); }
.tree-nav .tree-toggle-placeholder { display: inline-block; width: 18px; margin-right: 4px; }
.tree-nav .tree-link { text-decoration: none; color: #333; flex: 1; }
.tree-nav .tree-link.active { font-weight: bold; color: #0d6efd; }
.tree-nav .tree-icon { margin-right: 4px; }
.tree-nav .tree-children { list-style: none; padding-left: 20px; margin: 0; }

.static-tabs { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 20px; border-bottom: 1px solid #ccc; padding-top: 10px !important; padding-bottom: 2px; }
.static-tabs .static-link { padding: 6px 16px; border-radius: 4px 4px 0 0; text-decoration: none; color: #495057; background: #f8f9fa; border: 1px solid #dee2e6; border-bottom: none; transition: background 0.15s, color 0.15s; }
.static-tabs .static-link:hover { background: #e9ecef; }
.static-tabs .static-link.active { background: #0d6efd; color: #fff; border-color: #0d6efd; }

.static-layout { display: flex; gap: 30px; margin-top: 10px; }
.static-sidebar { flex: 0 0 280px; min-width: 200px; border-right: 1px solid #dee2e6; padding-right: 20px; }
.static-content { flex: 1; min-width: 0; }

/* ===== Стили для карточек продуктов (гостевые) ===== */
.product-card-wrapper {
    overflow: hidden;
    position: relative;
}
.product-card-wrapper img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    display: block;
    margin: 0 auto;
}
.product-card-wrapper:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.products-grid.drag-over {
    border: 3px dashed #0d6efd !important;
    background: rgba(13, 110, 253, 0.05) !important;
    border-radius: 8px;
}
.drop-hint {
    font-size: 0.85rem;
    color: #6c757d;
    margin-top: 4px;
    text-align: center;
}
.static-content-simple {
    margin: 0 !important;
    padding: 0 !important;
    width: 100%;
}
.static-content-simple .editable-content {
    margin: 0 !important;
    padding: 0 !important;
}
#user-products-list {
    min-height: 100px;
}

/* ===== КНОПКА «НАЗАД» (общие стили) ===== */
.btn-back {
    font-size: 0.7rem;
    padding: 0.15rem 0.5rem;
    flex-shrink: 0;
}

/* ============================================================
   БАЗОВЫЕ СТИЛИ МЕНЮ (гостевые)
   ============================================================ */
.dropdown {
    position: relative;
    display: inline-block;
}
.dropdown-submenu {
    position: relative;
    display: block;
    box-sizing: border-box;
}
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 1050;
    min-width: auto;
    padding: 5px 0;
    margin: 0;
    background: #fff;
    border: 1px solid #ccc;
    box-shadow: 0 6px 12px rgba(0,0,0,0.175);
    list-style: none;
    white-space: nowrap;
    display: none;
}
.dropdown-submenu > .dropdown-menu {
    top: 0;
    left: 100%;
    margin-left: -10px;
    margin-top: -6px;
    border-radius: 0.25rem;
}
.dropdown.open > .dropdown-menu,
.dropdown-submenu.open > .dropdown-menu {
    display: block !important;
}
.dropdown-submenu > .dropdown-toggle.btn {
    display: block;
    width: 100%;
    padding: 6px 20px;
    text-align: left;
    background: transparent !important;
    border: none !important;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
    font-size: inherit;
}
.dropdown-submenu > .dropdown-toggle.btn:hover,
.dropdown-submenu > .dropdown-toggle.btn:focus {
    background: #f0f0f0 !important;
    color: #333 !important;
    transform: translateX(-2px);
}
.dropdown-submenu.open > .dropdown-toggle.btn,
.dropdown-submenu > .dropdown-toggle.btn.active {
    background: transparent !important;
    color: #333 !important;
    border: none !important;
    transform: none;
}
.dropdown > .dropdown-toggle.btn:hover,
.dropdown > .dropdown-toggle.btn:focus,
.dropdown.open > .dropdown-toggle.btn,
.dropdown.show > .dropdown-toggle.btn {
    background: #f0f0f0;
    border-color: #d0d0d0;
    color: #333;
}
.dropdown-item {
    cursor: pointer;
    padding: 6px 20px;
}
.dropdown-item:hover {
    background: #f0f0f0;
}
.dropdown-submenu > .dropdown-toggle.btn::after {
    transform: rotate(-90deg);
    vertical-align: middle;
    margin-left: 0.5em;
    border-top: 0.3em solid;
    border-right: 0.3em solid transparent;
    border-bottom: 0;
    border-left: 0.3em solid transparent;
    content: "";
    display: inline-block;
}

.menu-item-wrapper {
    /* базовые стили для пунктов меню, без админских контролов */
}
.menu-side-panel {
    display: flex;
    flex-direction: row;
    gap: 8px;
    align-items: center;
    padding: 10px 5px;
    background: transparent;
    pointer-events: auto;
    transform-origin: center center;
    max-height: 80vh;
    overflow-y: auto;
    overflow-x: visible;
}
.menu-side-panel .menu-zone-middle-left,
.menu-side-panel .menu-zone-middle-right {
    display: flex;
    flex-direction: row;
    gap: 8px;
    align-items: center;
}
.menu-side-panel .menu-item-wrapper {
    display: block;
    padding: 0;
    border: none;
    background: transparent;
    box-shadow: none;
    flex-shrink: 0;
    margin: 0;
}
.menu-side-panel .menu-item-wrapper .btn,
.menu-side-panel .menu-item-wrapper a {
    display: block;
    width: 100%;
    padding: 4px 12px;
    box-sizing: border-box;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: rgba(255,255,255,0.9);
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    text-align: center;
    white-space: nowrap;
    color: #333;
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
}
.menu-side-panel .menu-item-wrapper .btn:hover,
.menu-side-panel .menu-item-wrapper a:hover {
    background: rgba(0,0,0,0.06);
    color: inherit;
    border-color: #bbb;
}
.menu-side-panel .menu-item-wrapper .btn-primary {
    background: #0d6efd !important;
    color: #fff !important;
    border-color: #0d6efd;
}
.menu-side-panel .menu-item-wrapper .btn-primary:hover {
    background: #0b5ed7 !important;
    color: #fff !important;
}
.menu-side-panel .menu-item-wrapper:hover {
    margin: 0 !important;
    transform: none !important;
}
.dropdown-menu {
    text-align: left;
}
.menu-center-panel {
    width: 100%;
    display: flex;
    justify-content: center;
    pointer-events: auto;
}
.menu-center-panel-inner {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    width: auto;
}
.menu-center-panel .menu-item-wrapper {
    display: inline-block;
}

#menu-footer .btn {
    border: 0 !important;
    text-align: left !important;
}
#menu-footer .menu-item-wrapper {
    background: transparent !important;
    border: none !important;
}
#menu-footer .menu-item-wrapper .btn,
#menu-footer .menu-item-wrapper .dropdown-toggle {
    background: transparent !important;
    border: none !important;
    color: #555 !important;
    padding: 4px 8px;
}
#menu-footer .footer-submenu {
    display: block;
    padding-left: 0;
    list-style: none;
    margin: 0;
}
#menu-footer .footer-submenu .menu-item-wrapper {
    display: block;
}
#menu-footer .footer-submenu .dropdown-item,
#menu-footer .footer-submenu .btn {
    padding-left: 0 !important;
}
#menu-footer .footer-submenu .footer-submenu {
    padding-left: 0;
}
#menu-footer .footer-submenu li {
    list-style: none;
    padding-left: 0;
    margin-left: 0;
}
#menu-footer {
    gap: 0 !important;
    margin: 0 !important;
    flex-wrap: nowrap;
    justify-content: flex-start;
}
#menu-footer .footer-col {
    padding: 0;
}

/* ============================================================
   ТЁМНАЯ ТЕМА (при активации класса .theme-dark на body)
   ============================================================ */
body.theme-dark {
    background: #1a1a1a;
    color: #e0e0e0;
}
body.theme-dark .page-content {
    background: #1a1a1a;
    color: #e0e0e0;
}
body.theme-dark .greeting-bg {
    background: #2a2a2a;
    color: #e0e0e0;
}
body.theme-dark #mainForm,
body.theme-dark #searchForm,
body.theme-dark #transitForm,
body.theme-dark #rectificationForm {
    background: #CCCCCC !important;
}
body.theme-dark #mainForm label,
body.theme-dark #searchForm label,
body.theme-dark #transitForm label,
body.theme-dark #rectificationForm label {
    color: #000000 !important;
}
body.theme-dark table {
    border-collapse: separate;
    border-spacing: 1px;
    background: transparent;
}
body.theme-dark th,
body.theme-dark td {
    border: 1px solid transparent;
    background: #2a2a2a;
    color: #e0e0e0;
}
body.theme-dark th {
    background: #333;
}
body.theme-dark table tbody tr:hover td {
    background: #3a3a3a;
}
body.theme-dark tr.highlight-row td {
    background: #4a4a2a !important;
}
body.theme-dark table thead th {
    background-color: #333 !important;
    color: #f0f0f0 !important;
    border-color: #555 !important;
    font-weight: 600;
}
body.theme-dark table thead th a,
body.theme-dark table thead th .btn {
    color: #f0f0f0 !important;
}
body.theme-dark table thead th:hover {
    background-color: #3a3a3a !important;
}
body.theme-dark .card .card-header.bg-light {
    background: #333 !important;
    color: #e0e0e0 !important;
    border-bottom-color: #444 !important;
}
body.theme-dark .card .card-header.bg-light .btn {
    color: #e0e0e0 !important;
}
body.theme-dark .card .card-header.bg-light .btn:hover {
    color: #fff !important;
}
body.theme-dark .form-control::placeholder,
body.theme-dark .form-select::placeholder {
    color: #888 !important;
    opacity: 1 !important;
}
body.theme-dark .form-control,
body.theme-dark .form-select {
    background: #333 !important;
    color: #e0e0e0 !important;
    border-color: #555 !important;
}
body.theme-dark .form-control:focus,
body.theme-dark .form-select:focus {
    background: #333 !important;
    color: #e0e0e0 !important;
    border-color: #0d6efd !important;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}
body.theme-dark input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
body.theme-dark select,
body.theme-dark textarea {
    background: #333 !important;
    color: #e0e0e0 !important;
    border-color: #555 !important;
}
body.theme-dark input::placeholder,
body.theme-dark textarea::placeholder {
    color: #888 !important;
}
body.theme-dark .btn-back {
    background-color: #2a2a2a !important;
    border-color: #555 !important;
    color: #e0e0e0 !important;
}
body.theme-dark .btn-back:hover {
    background-color: #3a3a3a !important;
    border-color: #777 !important;
    color: #fff !important;
}
body.theme-dark .suggestions-box div:hover {
    background: #f0f0f0 !important;
    color: #000000 !important;
}
body.theme-dark .card {
    background: #2a2a2a;
    border-color: #444;
    color: #e0e0e0;
}
body.theme-dark .card .card-header {
    background: #333;
    border-bottom-color: #444;
    color: #e0e0e0;
}
body.theme-dark .card .card-body {
    background: #2a2a2a;
    color: #e0e0e0;
}
body.theme-dark .card .card-title {
    color: #e0e0e0;
}
body.theme-dark .card .card-text {
    color: #c0c0c0;
}
body.theme-dark .form-check-label {
    color: #e0e0e0;
}
body.theme-dark .form-check-input {
    background-color: #333;
    border-color: #555;
}
body.theme-dark .form-check-input:checked {
    background-color: #0d6efd;
    border-color: #0d6efd;
}
body.theme-dark .balance-card {
    background: linear-gradient(135deg, #1a2a3a 0%, #2a1a3a 100%) !important;
    color: #ffffff !important;
}
body.theme-dark .balance-card .balance-amount {
    color: #ffffff;
}
body.theme-dark .balance-card .balance-label {
    color: rgba(255,255,255,0.8);
}
body.theme-dark .balance-card .btn-outline-light {
    border-color: rgba(255,255,255,0.5);
    color: #fff;
}
body.theme-dark .balance-card .btn-outline-light:hover {
    background: rgba(255,255,255,0.1);
    color: #fff;
}
body.theme-dark .table {
    color: #e0e0e0;
}
body.theme-dark .table thead th {
    background: #333;
    border-color: #444;
    color: #e0e0e0;
}
body.theme-dark .table tbody td {
    background: #2a2a2a;
    border-color: #444;
    color: #e0e0e0;
}
body.theme-dark .table-striped tbody tr:nth-of-type(odd) td {
    background: #2f2f2f;
}
body.theme-dark .table-hover tbody tr:hover td {
    background: #3a3a3a;
}
body.theme-dark .table td[style*="color: green"] {
    color: #75b798 !important;
}
body.theme-dark .table td[style*="color: red"] {
    color: #ea868f !important;
}
body.theme-dark .package-option {
    background: #2a2a2a;
    border-color: #444;
    color: #e0e0e0;
}
body.theme-dark .package-option:hover {
    background: #3a3a3a;
}
body.theme-dark .package-option.active {
    background: #1a2a3a;
    border-color: #0d6efd;
    color: #fff;
}
body.theme-dark .package-option .pkg-name {
    color: #e0e0e0;
}
body.theme-dark .package-option.active .pkg-name {
    color: #75b798 !important;
}
body.theme-dark .package-option .badge {
    background-color: #0d6efd;
}
body.theme-dark .package-option .text-muted {
    color: #aaa !important;
}
body.theme-dark .package-option .pkg-duration {
    color: #aaa;
}
body.theme-dark .modal-content {
    background: #2a2a2a;
    color: #e0e0e0;
}
body.theme-dark .modal-header,
body.theme-dark .modal-footer {
    border-color: #444;
}
body.theme-dark .modal-header .btn-close {
    filter: invert(1);
}
body.theme-dark .list-group-item {
    background: #2a2a2a;
    color: #e0e0e0;
    border-color: #444;
}
body.theme-dark .list-group-item:hover {
    background: #3a3a3a;
}
body.theme-dark .list-group-item.active {
    background: #0d6efd;
    border-color: #0d6efd;
}
body.theme-dark .list-group-item .text-muted {
    color: #aaa !important;
}
body.theme-dark .house-number-link.square-house {
    fill: #ffffff !important;
}
body.theme-dark .house-number-link.square-house.hovered {
    fill: #FFD700 !important;
}
body.theme-dark .about-project .card {
    background: #2a2a2a !important;
    border-color: #444 !important;
    box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.3) !important;
}
body.theme-dark .about-project .card .card-title {
    color: #e0e0e0 !important;
}
body.theme-dark .about-project .card .card-text {
    color: #c0c0c0 !important;
}
body.theme-dark .about-project .card i {
    color: #e0e0e0 !important;
}
body.theme-dark .about-project .card i.fa-calculator { color: #6ea8fe !important; }
body.theme-dark .about-project .card i.fa-chart-pie { color: #75b798 !important; }
body.theme-dark .about-project .card i.fa-brain { color: #ffc107 !important; }
body.theme-dark .about-project .card i.fa-clock { color: #6edff6 !important; }
body.theme-dark .about-project .card i.fa-exchange-alt { color: #ea868f !important; }
body.theme-dark .about-project .card i.fa-pray { color: #b07cdb !important; }
body.theme-dark .about-project .card i.fa-hourglass-half { color: #adb5bd !important; }
body.theme-dark .about-project .card i.fa-save { color: #e0e0e0 !important; }
body.theme-dark .about-project .card i.fa-shield-alt { color: #75b798 !important; }
body.theme-dark .about-project .border-bottom {
    border-bottom-color: #444 !important;
}
body.theme-dark .about-project .btn-primary {
    background: linear-gradient(135deg, #2a4a8a 0%, #4a2a8a 100%) !important;
    color: #fff !important;
}
body.theme-dark .about-project .btn-primary:hover {
    background: linear-gradient(135deg, #3a5a9a 0%, #5a3a9a 100%) !important;
    box-shadow: 0 8px 25px rgba(42, 74, 138, 0.4) !important;
}
body.theme-dark .about-project .lead {
    color: #c0c0c0 !important;
}
body.theme-dark .about-project .text-muted {
    color: #adb5bd !important;
}
body.theme-dark .highlight-karaka {
    background-color: #000000 !important;
    color: #ffffff !important;
}
body.theme-dark .text-muted {
    color: #adb5bd !important;
}
body.theme-dark .text-muted.small {
    color: #adb5bd !important;
}
body.theme-dark .btn-outline-secondary {
    color: #adb5bd;
    border-color: #495057;
}
body.theme-dark .btn-outline-secondary:hover {
    background: #495057;
    color: #fff;
}
body.theme-dark .btn-outline-primary {
    color: #6ea8fe;
    border-color: #6ea8fe;
}
body.theme-dark .btn-outline-primary:hover {
    background: #6ea8fe;
    color: #1a1a1a;
}
body.theme-dark .btn-outline-info {
    color: #6edff6;
    border-color: #6edff6;
}
body.theme-dark .btn-outline-info:hover {
    background: #6edff6;
    color: #1a1a1a;
}
body.theme-dark .btn-outline-warning {
    color: #ffc107;
    border-color: #ffc107;
}
body.theme-dark .btn-outline-warning:hover {
    background: #ffc107;
    color: #1a1a1a;
}
body.theme-dark .btn-outline-success {
    color: #75b798;
    border-color: #75b798;
}
body.theme-dark .btn-outline-success:hover {
    background: #75b798;
    color: #1a1a1a;
}
body.theme-dark .btn-outline-danger {
    color: #ea868f;
    border-color: #ea868f;
}
body.theme-dark .btn-outline-danger:hover {
    background: #ea868f;
    color: #1a1a1a;
}
body.theme-dark .btn-primary {
    background: #0d6efd;
    border-color: #0d6efd;
}
body.theme-dark .btn-secondary {
    background: #495057;
    border-color: #495057;
}
body.theme-dark .btn-success {
    background: #198754;
    border-color: #198754;
}
body.theme-dark .btn-warning {
    background: #ffc107;
    border-color: #ffc107;
    color: #1a1a1a;
}
body.theme-dark .btn-info {
    background: #0dcaf0;
    border-color: #0dcaf0;
    color: #1a1a1a;
}
body.theme-dark .btn-danger {
    background: #dc3545;
    border-color: #dc3545;
}
body.theme-dark .btn-calculate {
    background: #4CAF50;
    color: #fff;
}
body.theme-dark .btn-calculate:hover {
    background: #45a049;
}
body.theme-dark .btn-stop {
    background: #dc3545;
    color: #fff;
}
body.theme-dark .btn-stop:hover {
    background: #c82333;
}
body.theme-dark .btn-extra {
    background: #2a2a2a;
    color: #e0e0e0;
    border-color: #555;
}
body.theme-dark .btn-extra:hover {
    background: #3a3a3a;
}
body.theme-dark .btn-save {
    background: #495057;
    color: #fff;
}
body.theme-dark .btn-save:hover {
    background: #5a6268;
}
body.theme-dark .btn-gray {
    background: #495057;
    color: #fff;
}
body.theme-dark .btn-gray:hover {
    background: #5a6268;
}
body.theme-dark .btn-partner-select {
    background: #495057;
    color: #fff;
}
body.theme-dark .btn-partner-select:hover {
    background: #5a6268;
}
body.theme-dark .alert-warning {
    background: #332d1a;
    color: #ffc107;
    border-color: #ffc107;
}
body.theme-dark .alert-info {
    background: #1a2d33;
    color: #0dcaf0;
    border-color: #0dcaf0;
}
body.theme-dark .alert-danger {
    background: #332a2d;
    color: #ea868f;
    border-color: #ea868f;
}
body.theme-dark .alert-success {
    background: #1a332a;
    color: #75b798;
    border-color: #75b798;
}
body.theme-dark .yoga-card {
    border-left-color: #ffc107;
}
body.theme-dark .yoga-card .yoga-condition {
    border-color: #444;
}
body.theme-dark .summary-stats {
    background: #2a2a2a;
}
body.theme-dark .range-slider .track-bg {
    background: #555;
}
body.theme-dark .range-slider .track-fill {
    background: #4CAF50;
}
body.theme-dark .range-slider .slider-label {
    background: #2a2a2a;
    border-color: #555;
    color: #e0e0e0;
}
body.theme-dark .partner-info {
    background: #2a2a2a;
    border-color: #444;
}
body.theme-dark .time-control-panel {
    background: #2a2a2a !important;
    border-color: #444 !important;
}
body.theme-dark .btn-arrow {
    color: #e0e0e0;
}
body.theme-dark .btn-arrow:hover {
    background: #444;
}
body.theme-dark .progress-bar {
    background: #4CAF50;
}
body.theme-dark .confirm-box {
    background: #332d1a;
    border-color: #ffc107;
}
body.theme-dark .auth-box {
    background: #2a2a2a;
    border-color: #444;
}
body.theme-dark .auth-box input {
    background: #333;
    color: #e0e0e0;
    border-color: #555;
}
body.theme-dark .auth-box .btn-gray {
    background: #495057;
    color: #fff;
}
body.theme-dark .auth-box .btn-gray:hover {
    background: #5a6268;
}
body.theme-dark .auth-box .error {
    color: #ea868f;
}
body.theme-dark .auth-box .forgot-link a {
    color: #6ea8fe;
}
body.theme-dark .suggestions-box {
    background: #2a2a2a;
    border-color: #444;
}
body.theme-dark .suggestions-box div {
    color: #e0e0e0;
}
body.theme-dark .package-card-reg {
    background: #2a2a2a;
    border-color: #444;
}
body.theme-dark .package-card-reg.selected {
    border-color: #0d6efd;
    background: #1a2a3a;
}
body.theme-dark .package-card-reg .pkg-desc {
    color: #aaa;
}
body.theme-dark .package-card-reg .pkg-price {
    color: #75b798;
}
body.theme-dark .package-card-reg .pkg-duration {
    color: #aaa;
}
body.theme-dark #registerBtn.active {
    background: #28a745 !important;
    border-color: #28a745 !important;
    color: #ffffff !important;
}
body.theme-dark #registerBtn.active:hover {
    background: #218838 !important;
    border-color: #218838 !important;
}
body.theme-dark .sticky-charts {
    background: #1a1a1a;
}
body.theme-dark .resize-handle {
    background: rgba(255,255,255,0.1);
    border-color: #666;
}
body.theme-dark .resize-handle:hover {
    background: rgba(255,255,255,0.2);
}
body.theme-dark .resize-handle:active {
    background: rgba(255,255,255,0.3);
}
body.theme-dark .sector-light {
    fill: #2a2a2a;
}
body.theme-dark .sector-dark {
    fill: #1a1a1a;
}
body.theme-dark .house-number-light {
    fill: #2a2a2a;
}
body.theme-dark .house-number-dark {
    fill: #1a1a1a;
}
body.theme-dark .aspect-label {
    fill: #aaa;
}
body.theme-dark a {
    color: #6ea8fe;
}
body.theme-dark a:hover {
    color: #8bb9fe;
}
body.theme-dark .small-gray {
    color: #aaa;
}
body.theme-dark .small-gray h3 {
    color: #aaa;
}
body.theme-dark .btn-close {
    filter: invert(1);
}
body.theme-dark .modal-backdrop {
    background: rgba(0,0,0,0.7);
}
body.theme-dark .product-card-wrapper {
    background: #2a2a2a;
    border-color: #444;
}
body.theme-dark .product-card-wrapper:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}
body.theme-dark .tree-nav .tree-item-content:hover {
    background: #3a3a3a;
}
body.theme-dark .tree-nav .tree-link {
    color: #e0e0e0;
}
body.theme-dark .tree-nav .tree-link.active {
    color: #6ea8fe;
}
body.theme-dark .static-tabs .static-link {
    background: #2a2a2a;
    border-color: #444;
    color: #adb5bd;
}
body.theme-dark .static-tabs .static-link:hover {
    background: #3a3a3a;
}
body.theme-dark .static-tabs .static-link.active {
    background: #0d6efd;
    color: #fff;
}
body.theme-dark .static-sidebar {
    border-color: #444;
}
body.theme-dark .dropdown-menu {
    background: #2a2a2a !important;
    border-color: #444 !important;
}
body.theme-dark .dropdown-item {
    color: #e0e0e0 !important;
}
body.theme-dark .dropdown-item:hover {
    background: #3a3a3a !important;
    color: #fff !important;
}
body.theme-dark .dropdown-item.active {
    background: #0d6efd !important;
    color: #fff !important;
}
body.theme-dark .dropdown-submenu > .dropdown-toggle.btn {
    color: #e0e0e0 !important;
}
body.theme-dark .dropdown-submenu > .dropdown-toggle.btn:hover,
body.theme-dark .dropdown-submenu > .dropdown-toggle.btn:focus {
    background: #3a3a3a !important;
    color: #fff !important;
}
body.theme-dark .dropdown-submenu.open > .dropdown-toggle.btn {
    background: transparent !important;
    color: #e0e0e0 !important;
    transform: none;
}
body.theme-dark .dropdown > .dropdown-toggle.btn:hover,
body.theme-dark .dropdown > .dropdown-toggle.btn:focus,
body.theme-dark .dropdown.open > .dropdown-toggle.btn,
body.theme-dark .dropdown.show > .dropdown-toggle.btn {
    background: #3a3a3a !important;
    border-color: #555 !important;
    color: #e0e0e0 !important;
}
body.theme-dark .dropdown-submenu > .dropdown-toggle.btn::after {
    filter: invert(1);
}
body.theme-dark .menu-side-panel .menu-item-wrapper .btn,
body.theme-dark .menu-side-panel .menu-item-wrapper a {
    background: rgba(40,40,40,0.9);
    border-color: #555;
    color: #e0e0e0;
}
body.theme-dark .menu-side-panel .menu-item-wrapper .btn:hover,
body.theme-dark .menu-side-panel .menu-item-wrapper a:hover {
    background: rgba(60,60,60,0.9);
    color: #e0e0e0;
    border-color: #777;
}
body.theme-dark .menu-side-panel .menu-item-wrapper .btn-primary {
    background: #0d6efd !important;
    color: #fff !important;
}
body.theme-dark .menu-center-panel-inner {
    background: #2a2a2a;
    border-color: #444;
}
body.theme-dark .menu-center-panel .menu-item-wrapper .btn,
body.theme-dark .menu-center-panel .menu-item-wrapper a {
    color: #e0e0e0;
}
body.theme-dark #menu-footer .menu-item-wrapper .btn,
body.theme-dark #menu-footer .menu-item-wrapper .dropdown-toggle {
    color: #aaa !important;
}

/* ============================================================
   ФЛЭШ-СООБЩЕНИЯ
   ============================================================ */
#flashContainer .alert {
    animation: slideInRight 0.5s ease forwards;
    transition: opacity 0.5s ease, transform 0.5s ease;
}
#flashContainer .alert.fade-out {
    opacity: 0;
    transform: translateX(30px);
    pointer-events: none;
}
@keyframes slideInRight {
    0% { opacity: 0; transform: translateX(30px); }
    100% { opacity: 1; transform: translateX(0); }
}