#rentActionSheet,
#rentActionSheet > *,
#rentActionSheet > * > * {
    background: #1a1a24 !important;
    color: #fff !important;
}
#rentActionSheet {
    background: transparent !important;
    color: #fff !important;
    padding: 8px !important;
    border-radius: 12px !important;
    box-shadow: 0 8px 24px rgba(0,0,0,0.5) !important;
    display: flex !important;
    gap: 10px !important;
    align-items: center !important;
    border: none !important;
}
.strela-mini-modal {
    background: #1a1a24 !important;
    color: #fff !important;
    padding: 8px !important;
    border-radius: 12px !important;
    box-shadow: 0 8px 24px rgba(0,0,0,0.5) !important;
    display: flex !important;
    gap: 10px !important;
    align-items: center !important;
    border: none !important;
}
[data-theme="light"] .equipment-card {
    box-shadow: 0 4px 24px rgba(30, 33, 44, 0.18), 0 1.5px 6px rgba(30,33,44,0.10);
}
/* Светлая тема: equipment-name и owner-name — тёмный цвет */
[data-theme="light"] .equipment-name,
[data-theme="light"] .owner-name {
    color: #23272f !important;
}
/* Усиление тёмного фона для истории чек-инов/сканирований на всех страницах, чтобы не было светлого фона из work.css */
.scan-history,
.scan-history .scan-history-item {
    background: rgba(30, 33, 44, 0.97) !important;
    color: #fff !important;
    border: 1px solid rgba(255,255,255,0.08) !important;
}
/* ==================== ОБЩИЕ СТИЛИ ==================== */
.mobile-footer,
.mobile-footer *,
.qr-modal-overlay,
.qr-modal-overlay *,
.qr-modal,
.qr-modal *,
.notifications-modal,
.notifications-modal *,
.toast-notification,
.toast-notification * {
    box-sizing: border-box;
}

/* CSS переменные футера — v3 palette */
:root {
    --footer-bg: rgba(13, 21, 32, 0.97);
    --footer-border: rgba(255, 255, 255, 0.07);
    --footer-active-primary: #e8a920;
    --footer-active-bg: rgba(232, 169, 32, 0.08);
    --footer-inactive: #4d5e7a;
    --footer-hover: #8292b0;
    --footer-radius: 24px;
    --footer-shadow: 0 -1px 0 rgba(255, 255, 255, 0.06), 0 -8px 24px rgba(0, 0, 0, 0.35);
    --footer-glow: transparent;
}


/* ==================== QR МОДАЛКА - СОВРЕМЕННЫЙ СТИЛЬ ==================== */
.qr-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.qr-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.qr-modal.modern {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    max-height: 90vh;
    background: linear-gradient(180deg, #1a1f2e 0%, #0f1419 100%);
    border-radius: 28px 28px 0 0;
    box-shadow: 
        0 -10px 50px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.05);
    padding: 24px 20px 20px;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s;
    z-index: 2001;
    display: flex;
    flex-direction: column;
    opacity: 0;
    visibility: hidden;
}

.qr-modal.modern.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

/* Заголовок QR модалки */
.qr-header.modern {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    flex-shrink: 0;
}

.qr-header.modern .header-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.qr-header.modern .header-icon {
    width: 44px;
    height: 44px;
    background: rgba(232, 169, 32, 0.15);
    border: 1px solid rgba(232, 169, 32, 0.25);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #e8a920;
    box-shadow: none;
}

.qr-header.modern .header-icon svg {
    width: 24px;
    height: 24px;
}

.qr-header.modern .header-title h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.5px;
}

.qr-header.modern .header-subtitle {
    margin: 0;
    font-size: 13px;
    color: #8b92a0;
    margin-top: 2px;
}

.close-btn.modern {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #8b92a0;
}

.close-btn.modern:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.close-btn.modern:active {
    transform: scale(0.95);
}

/* Контейнер сканера */
.qr-scanner-container.modern {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 20px;
    position: relative;
    min-height: 0;
    overflow: hidden;
}

/* Окно сканирования */
.qr-view.modern {
    flex: 0 0 auto;
    background: #000000;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    min-height: 320px;
    height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

#reader {
    width: 100% !important;
    height: 100% !important;
    border-radius: 18px !important;
}

#reader video {
    border-radius: 18px !important;
    object-fit: cover !important;
    width: 100% !important;
    height: 100% !important;
}

/* Рамка сканирования */
#reader__scan_region {
    border: 2px solid rgba(232, 169, 32, 0.6) !important;
    border-radius: 16px !important;
    box-shadow: none !important;
}

#reader__shaded_region {
    background: rgba(0, 0, 0, 0.6) !important;
}

/* Инструкция - современный стиль */
.scan-instruction.modern {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(26, 31, 46, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 12px 20px;
    border-radius: 16px;
    font-size: 13px;
    font-weight: 600;
    color: #ffffff;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 8px;
}

.scan-instruction.modern .scan-icon {
    opacity: 0.7;
}

/* Loader - современный */
.loader.modern {
    display: none;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 15;
    text-align: center;
}

.loader.modern.active {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.spinner.modern {
    border: 4px solid rgba(255, 255, 255, 0.08);
    border-top: 4px solid #e8a920;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 0.8s linear infinite;
}

.loader-text {
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Уведомление об успешном сканировании */
.scan-notification {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(-100px);
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    padding: 14px 20px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: white;
    font-weight: 600;
    font-size: 14px;
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.4);
    z-index: 25;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.scan-notification.error {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    box-shadow: 0 8px 24px rgba(239, 68, 68, 0.4);
}

.scan-notification.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.scan-notification .notif-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 8px;
}

.scan-notification .notif-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.scan-notification .notif-title {
    font-weight: 700;
    font-size: 14px;
    margin: 0;
}

.scan-notification .notif-message {
    font-size: 12px;
    opacity: 0.9;
    margin: 0;
}

/* Результат сканирования - современный */
.scan-result.modern {
    position: absolute;
    bottom: 16px;
    left: 16px;
    right: 16px;
    background: linear-gradient(180deg, #1a1f2e 0%, #121720 100%);
    padding: 16px;
    border-radius: 16px;
    box-shadow: 
        0 12px 40px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.05);
    transform: translateY(calc(100% + 20px));
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 20;
    max-height: calc(100% - 24px);
    overflow-y: auto;
}

.scan-result.modern.active {
    transform: translateY(0);
}

.result-header.modern {
    display: none;
}

.result-icon.modern {
    display: none;
}

.result-content.modern {
    flex: 1;
    min-width: 0;
}

.result-content.modern .result-title {
    font-size: 14px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 8px 0;
}

.result-data.modern {
    background: rgba(255, 255, 255, 0.03);
    padding: 12px;
    border-radius: 12px;
    font-size: 13px;
    color: #8b92a0;
    line-height: 1.5;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.result-data-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.result-data-content .result-title-main {
    font-size: 16px;
    font-weight: 700;
    color: #10b981;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.result-content-body {
    color: #b8bfc9;
    line-height: 1.5;
    font-size: 14px;
}

.result-content-body h3 {
    color: #ffffff;
    margin: 8px 0 6px 0;
    font-size: 15px;
}

.result-content-body p {
    margin: 4px 0;
    color: #8b92a0;
    font-size: 13px;
}

.result-content-body strong {
    color: #ffffff;
}

.result-content-body img {
    width: 50px !important;
    height: 50px !important;
    border-radius: 50% !important;
    border: 2px solid rgba(232, 169, 32, 0.3) !important;
    margin: 4px 0 !important;
}

/* Кнопки действий - современный стиль */
.result-actions.modern {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

.result-btn.modern {
    flex: 1;
    padding: 12px 16px;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.result-btn.modern.primary {
    background: linear-gradient(135deg, #e8a920 0%, #f39c12 100%);
    color: #1a1f2e;
    box-shadow: 0 4px 12px rgba(232, 169, 32, 0.3);
}

.result-btn.modern.primary:hover {
    box-shadow: 0 6px 16px rgba(232, 169, 32, 0.4);
    transform: translateY(-1px);
}

.result-btn.modern.secondary {
    background: rgba(255, 255, 255, 0.06);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.result-btn.modern.secondary:hover {
    background: rgba(255, 255, 255, 0.1);
}

.result-btn.modern:active {
    transform: scale(0.98);
}

.result-btn.modern svg {
    width: 16px;
    height: 16px;
}

/* ==================== КАРТОЧКА ИНФОРМАЦИИ О ТЕХНИКЕ ==================== */
.equipment-info-card {
    text-align: center;
    padding: 8px 0;
}

.equipment-type-badge {
    display: inline-block;
    background: rgba(232, 169, 32, 0.2);
    color: #e8a920;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.equipment-name {
    font-size: 17px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 6px;
}

.equipment-rent-badge {
    display: inline-block;
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
    padding: 4px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 12px;
}

.equipment-owner-info,
.equipment-operator-info {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 10px;
    margin-top: 10px;
    text-align: left;
}

.equipment-operator-info {
    background: rgba(232, 169, 32, 0.1);
    border: 1px solid rgba(232, 169, 32, 0.2);
}

.owner-avatar-small,
.operator-avatar-small {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.operator-avatar-small {
    border: 2px solid #e8a920;
}

.owner-details,
.operator-details {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.owner-label,
.operator-label {
    font-size: 10px;
    color: #7f8c8d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.owner-name,
.operator-name {
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
}

.operator-time {
    font-size: 11px;
    color: #e8a920;
}

.equipment-warning {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ef4444;
    padding: 10px;
    border-radius: 10px;
    font-size: 12px;
    margin-top: 10px;
}

/* Кнопки с несколькими действиями */
.result-actions.multi-buttons {
    flex-wrap: wrap;
    gap: 6px;
}

.result-actions.multi-buttons .result-btn.modern {
    flex: 1 1 calc(50% - 3px);
    min-width: calc(50% - 3px);
    padding: 10px 8px;
    font-size: 11px;
}

.result-actions.multi-buttons .result-btn.modern.continue-btn {
    flex: 1 1 100%;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #8b92a0;
    margin-top: 4px;
}

.result-actions.multi-buttons .result-btn.modern.continue-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
}

/* ==================== ИСТОРИЯ СКАНИРОВАНИЙ ==================== *//* ==================== ИСТОРИЯ СКАНИРОВАНИЙ ==================== */
.scan-history {
    flex: 1;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
}

.scan-history-header {
    padding: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

.scan-history-title {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #ffffff;
    font-weight: 600;
    font-size: 15px;
}

.scan-history-title svg {
    color: #e8a920;
}

.scan-history-count {
    background: rgba(232, 169, 32, 0.2);
    color: #e8a920;
    border-radius: 8px;
    padding: 2px 8px;
    font-size: 12px;
    font-weight: 700;
}

.clear-history-btn {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: #ef4444;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.clear-history-btn:hover {
    background: rgba(239, 68, 68, 0.15);
}

.clear-history-btn:active {
    transform: scale(0.95);
}

#qrModal .scan-history .scan-history-list,
.qr-modal .scan-history .scan-history-list {
    flex: 1 !important;
    overflow-y: auto !important;
    padding: 0px !important;
    min-height: 0 !important;
    max-height: 300px !important;
}

#qrModal .scan-history .scan-history-list::-webkit-scrollbar,
.qr-modal .scan-history .scan-history-list::-webkit-scrollbar {
    width: 6px !important;
}

#qrModal .scan-history .scan-history-list::-webkit-scrollbar-track,
.qr-modal .scan-history .scan-history-list::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.02) !important;
    border-radius: 3px !important;
}

#qrModal .scan-history .scan-history-list::-webkit-scrollbar-thumb,
.qr-modal .scan-history .scan-history-list::-webkit-scrollbar-thumb {
    background: rgba(232, 169, 32, 0.3) !important;
    border-radius: 3px !important;
}

#qrModal .scan-history-empty,
.qr-modal .scan-history-empty {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 40px 20px !important;
    text-align: center !important;
    color: #8b92a0 !important;
    height: 100% !important;
}

#qrModal .scan-history-empty svg,
.qr-modal .scan-history-empty svg {
    margin-bottom: 16px !important;
    color: #3a4252 !important;
}

#qrModal .scan-history-empty p,
.qr-modal .scan-history-empty p {
    font-size: 15px !important;
    font-weight: 600 !important;
    margin: 0 0 8px 0 !important;
    color: #5a6171 !important;
}

#qrModal .scan-history-empty span,
.qr-modal .scan-history-empty span {
    font-size: 13px !important;
    color: #4a5161 !important;
}

/* История сканирований - специфичные стили для футера */
#qrModal .scan-history .scan-history-item,
.qr-modal .scan-history .scan-history-item {
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
    border-radius: 12px !important;
    padding: 12px !important;
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    margin-bottom: 8px !important;
    transition: all 0.2s !important;
    color: inherit !important;
}

#qrModal .scan-history .scan-history-item:hover,
.qr-modal .scan-history .scan-history-item:hover {
    background: rgba(255, 255, 255, 0.05) !important;
    border-color: rgba(232, 169, 32, 0.2) !important;
}

#qrModal .scan-history .scan-history-item-icon,
.qr-modal .scan-history .scan-history-item-icon {
    width: 40px !important;
    height: 40px !important;
    background: rgba(232, 169, 32, 0.1) !important;
    border-radius: 10px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #e8a920 !important;
    flex-shrink: 0 !important;
}

#qrModal .scan-history .scan-history-item-content,
.qr-modal .scan-history .scan-history-item-content {
    flex: 1 !important;
    min-width: 0 !important;
}

#qrModal .scan-history .scan-history-item-data,
.qr-modal .scan-history .scan-history-item-data {
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #ffffff !important;
    margin-bottom: 2px !important;
    word-break: break-all !important;
    line-height: 1.3 !important;
}

#qrModal .scan-history .scan-history-item-subtitle,
.qr-modal .scan-history .scan-history-item-subtitle {
    font-size: 12px !important;
    color: #e8a920 !important;
    margin-bottom: 4px !important;
    font-weight: 500 !important;
}

#qrModal .scan-history .scan-history-item-time,
.qr-modal .scan-history .scan-history-item-time {
    font-size: 11px !important;
    color: #6b7280 !important;
    display: flex !important;
    align-items: center !important;
    gap: 4px !important;
}

#qrModal .scan-history .scan-history-item-time svg,
.qr-modal .scan-history .scan-history-item-time svg {
    width: 12px !important;
    height: 12px !important;
    opacity: 0.7 !important;
}

#qrModal .scan-history .scan-history-item-actions,
.qr-modal .scan-history .scan-history-item-actions {
    display: flex !important;
    gap: 6px !important;
    flex-shrink: 0 !important;
}

#qrModal .scan-history .scan-history-action-btn,
.qr-modal .scan-history .scan-history-action-btn {
    width: 32px !important;
    height: 32px !important;
    border-radius: 8px !important;
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    color: #8b92a0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    transition: all 0.2s !important;
}

#qrModal .scan-history .scan-history-action-btn:hover,
.qr-modal .scan-history .scan-history-action-btn:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    color: #ffffff !important;
}

#qrModal .scan-history .scan-history-action-btn.goto,
.qr-modal .scan-history .scan-history-action-btn.goto {
    color: #e8a920 !important;
}

#qrModal .scan-history .scan-history-action-btn.goto:hover,
.qr-modal .scan-history .scan-history-action-btn.goto:hover {
    background: rgba(232, 169, 32, 0.1) !important;
    border-color: rgba(232, 169, 32, 0.2) !important;
}

#qrModal .scan-history .scan-history-action-btn.delete,
.qr-modal .scan-history .scan-history-action-btn.delete {
    color: #ef4444 !important;
}

#qrModal .scan-history .scan-history-action-btn.delete:hover,
.qr-modal .scan-history .scan-history-action-btn.delete:hover {
    background: rgba(239, 68, 68, 0.1) !important;
    border-color: rgba(239, 68, 68, 0.2) !important;
}

#qrModal .scan-history .scan-history-action-btn:active,
.qr-modal .scan-history .scan-history-action-btn:active {
    transform: scale(0.95) !important;
}

/* ==================== TOAST УВЕДОМЛЕНИЯ ==================== */
.toast-notification {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    padding: 14px 20px;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.4);
    z-index: 3000;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    font-size: 14px;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.toast-notification.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.toast-notification.error {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    box-shadow: 0 8px 24px rgba(239, 68, 68, 0.4);
}

.toast-notification .toast-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 8px;
}

/* ==================== АДАПТАЦИЯ ДЛЯ МАЛЕНЬКИХ ЭКРАНОВ ==================== */
@media (max-width: 450px) {
    .qr-modal.modern {
        padding: 20px 16px 16px;
        max-height: 92vh;
    }
    
    .qr-view.modern {
        height: 280px;
        min-height: 280px;
    }
    
    #qrModal .scan-history .scan-history-item,
    .qr-modal .scan-history .scan-history-item {
        padding: 10px !important;
    }
    
    #qrModal .scan-history .scan-history-item-icon,
    .qr-modal .scan-history .scan-history-item-icon {
        width: 36px !important;
        height: 36px !important;
    }
    
    #qrModal .scan-history .scan-history-item-data,
    .qr-modal .scan-history .scan-history-item-data {
        font-size: 12px !important;
    }
    
    .result-btn.modern {
        padding: 12px 16px;
        font-size: 13px;
    }
}

/* ==================== ФУТЕР В СТИЛЕ TELEGRAM (ТАБЛЕТКА) ==================== */
.mobile-footer {
    position: fixed;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 20px);
    max-width: 500px;
    
    /* Эффект таблетки с CSS переменными */
    background: var(--footer-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: var(--footer-radius);
    border: 1px solid var(--footer-border);
    
    /* Тени для глубины */
    box-shadow: 
        var(--footer-shadow),
        0 2px 8px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    
    /* GRID для 6 кнопок */
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    padding: 8px 6px;
    gap: 2px;
    z-index: 1000;
    
    /* Анимация появления */
    animation: slideUpFooter 0.4s ease-out;
    
    /* Дополнительный блик сверху */
    overflow: hidden;
}

.mobile-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent,
        rgba(255, 255, 255, 0.1) 25%,
        rgba(255, 255, 255, 0.15) 50%,
        rgba(255, 255, 255, 0.1) 75%,
        transparent
    );
}

@keyframes slideUpFooter {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

/* СТИЛИ КНОПКИ */
.footer-btn {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--footer-inactive);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    padding: 8px 4px;
    border-radius: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
    overflow: hidden;
}

/* Эффект ripple при нажатии */
.footer-btn::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 16px;
    opacity: 0;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 0%, transparent 70%);
    transform: scale(0);
    transition: transform 0.5s, opacity 0.5s;
}

.footer-btn:active::after {
    transform: scale(2);
    opacity: 1;
    transition: transform 0s, opacity 0s;
}

/* Фон активной кнопки - современная подсветка */
.footer-btn.active {
    color: var(--footer-active-primary);
}

.footer-btn.active::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--footer-active-bg), rgba(232, 169, 32, 0.08));
    border-radius: 16px;
    z-index: -1;
    animation: glowPulse 2s ease-in-out infinite;
}

@keyframes glowPulse {
    0%, 100% {
        opacity: 1;
        box-shadow: 0 0 15px rgba(232, 169, 32, 0.2);
    }
    50% {
        opacity: 0.8;
        box-shadow: 0 0 20px rgba(232, 169, 32, 0.3);
    }
}

/* Hover эффект для неактивных кнопок */
.footer-btn:not(.active):hover {
    color: var(--footer-hover);
    background: rgba(255, 255, 255, 0.05);
}

/* Эффект нажатия */
.footer-btn:active {
    transform: scale(0.92);
}

/* Обертка для иконки */
.icon-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    margin-bottom: 4px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.footer-btn.active .icon-wrapper {
    transform: translateY(-2px);
}

/* СТИЛИ ДЛЯ SVG ИКОНОК */
.footer-icon, 
.footer-btn svg {
    width: 26px;
    height: 26px;
    fill: currentColor;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.footer-btn.active svg {
    filter: drop-shadow(0 4px 12px rgba(232, 169, 32, 0.4));
}



/* Текст под иконкой */
.footer-btn span {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: -0.2px;
    white-space: nowrap;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.footer-btn.active span {
    font-weight: 700;
    text-shadow: 0 2px 8px rgba(232, 169, 32, 0.3);
}

/* Отключенная кнопка */
.footer-btn-disabled {
    opacity: 0.3;
    pointer-events: none;
}

/* Бейдж уведомлений - современный стиль */
.notification-badge,
#notifBadge {
    position: absolute;
    top: -4px; 
    right: -6px;
    
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 5px;
    border-radius: 12px;
    min-width: 16px;
    height: 16px;
    text-align: center;
    line-height: 12px;
    display: none;
    box-shadow: 
        0 2px 8px rgba(239, 68, 68, 0.4),
        0 0 0 2px rgba(26, 26, 26, 0.9);
    animation: badgePulse 2s ease-in-out infinite;
    z-index: 10;
}

@keyframes badgePulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 
            0 2px 8px rgba(239, 68, 68, 0.4),
            0 0 0 2px rgba(26, 26, 26, 0.9);
    }
    50% {
        transform: scale(1.1);
        box-shadow: 
            0 4px 12px rgba(239, 68, 68, 0.6),
            0 0 0 2px rgba(26, 26, 26, 0.9);
    }
}

/* Адаптация для маленьких экранов */
@media (max-width: 380px) {
    .mobile-footer {
        width: calc(100% - 12px);
        padding: 6px 4px;
    }
    
    .footer-btn {
        padding: 6px 2px;
    }
    
    .footer-btn span {
        font-size: 9px;
    }
    
    .icon-wrapper {
        width: 24px;
        height: 24px;
    }
    
    .mobile-footer .footer-icon,
    .mobile-footer .footer-btn svg {
        width: 24px !important;
        height: 24px !important;
    }
}



/* ==================== МОДАЛКА УВЕДОМЛЕНИЙ (Объединены стили) ==================== */
.notifications-modal {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    z-index: 3000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
}

.notifications-modal.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.notifications-modal::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(8px);
}

.notifications-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    max-height: 75vh;
    background: #1f2937;
    border-radius: 24px 24px 0 0;
    box-shadow: 0 -5px 30px rgba(0, 0, 0, 0.5);
    padding: 1.25rem;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.notifications-modal.active .notifications-content {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.notifications-content::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 4px;
    background: #4b5563;
    border-radius: 2px;
}

.notif-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0 1rem 0;
    margin-bottom: 0.75rem;
    border-bottom: 2px solid rgba(232, 169, 32, 0.2);
}

.notif-header h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
    color: #e8a920;
}

.notif-header .close-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #374151;
    border: 2px solid #e8a920;
    color: #e8a920;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 1.1rem;
}

.notif-header .close-btn:hover {
    background: #e8a920;
    color: #1f2937;
    transform: rotate(90deg);
}

/* ==================== ТАБЫ ==================== */
.notif-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    background: #111827;
    border-radius: 12px;
    padding: 0.25rem;
}

.notif-tab {
    flex: 1;
    padding: 0.6rem 0.75rem;
    background: transparent;
    border: none;
    color: #64748b;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    border-radius: 10px;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
}

.notif-tab:hover {
    color: #e5e7eb;
}

.notif-tab.active {
    color: #1f2937;
    background: #e8a920;
}

.notif-tab i {
    font-size: 1rem;
}

.notif-tab-content {
    display: none;
}

.notif-tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 2. Конкретно для пульсирующего черного логотипа */
.icon-logo {
    /* Принудительно черный цвет, игнорируя currentColor родителя */
    fill: #000000 !important; 
    
    /* Центрируем точку трансформации, чтобы уменьшалось к середине */
    transform-origin: center;
    
    /* Применяем анимацию */
    animation: logoPulseInside 1.5s infinite ease-in-out;
}
/* Анимация пульсации: черный цвет + уменьшение (мигание внутрь) */
@keyframes logoPulseInside {
    0%, 100% {
        fill: #000000;
        transform: scale(1.1); /* Исходный размер (чуть увеличили для акцента) */
        opacity: 1;
    }
    50% {
        fill: #000000;
        transform: scale(0.7); /* Уменьшение (то самое мигание "внутрь") */
        opacity: 0.6;          /* Дополнительный эффект затухания */
    }
}
/* ==================== ПОДПИСКА ==================== */
.subscription-status {
    background: linear-gradient(135deg, #111827 0%, #0f172a 100%);
    padding: 1.25rem;
    border-radius: 12px;
    margin-bottom: 1rem;
    border: 2px solid #374151;
    text-align: center;
}

.subscription-status.subscribed {
    border-color: #10b981;
}

.status-icon {
    font-size: 2rem;
    margin-bottom: 0.6rem;
    color: #e8a920;
}

.subscription-status p {
    margin: 0 0 0.75rem 0;
    color: #e5e7eb;
    font-size: 0.9rem;
    line-height: 1.4;
}

.subscribe-btn {
    background: #e8a920;
    color: #1f2937;
    border: none;
    padding: 0.65rem 1.25rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    width: 100%;
    max-width: 280px;
}

.subscribe-btn:hover {
    background: #d49618;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(232, 169, 32, 0.3);
}

.subscribe-btn:disabled {
    background: #4b5563;
    color: #9ca3af;
    cursor: not-allowed;
}

/* ==================== PUSH УВЕДОМЛЕНИЯ ==================== */
.empty-notifications {
    text-align: center;
    padding: 2rem 1rem;
    color: #64748b;
}

.empty-notifications i {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
    opacity: 0.3;
    color: #e8a920;
}

.empty-notifications p {
    margin: 0;
    font-size: 0.9rem;
    font-style: italic;
}

.notification-item {
    position: relative;
    background: linear-gradient(135deg, #111827 0%, #0f172a 100%);
    border-radius: 12px;
    padding: 0.875rem;
    border-left: 3px solid #3b82f6;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    transition: all 0.2s ease;
    cursor: pointer;
    margin-bottom: 0.75rem;
}

.notification-item:hover {
    transform: translateX(3px);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.15);
}

.notification-item.unread {
    border-left-color: #e8a920;
    background: linear-gradient(135deg, #1f2937 0%, #0f172a 100%);
}

.notification-item h4 {
    margin: 0 0 0.35rem 0;
    font-size: 0.95rem;
    font-weight: 700;
    color: #e8a920;
}

.notification-item p {
    margin: 0 0 0.5rem 0;
    color: #e5e7eb;
    font-size: 0.85rem;
    line-height: 1.4;
}

.notif-time {
    font-size: 0.7rem;
    color: #64748b;
    font-weight: 500;
}

.read-notifications-section {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.toggle-read-btn {
    width: 100%;
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #ecf0f1;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.toggle-read-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
}

.toggle-read-btn i {
    transition: transform 0.3s ease;
    color: #95a5a6;
}

.toggle-read-btn span {
    flex: 1;
    text-align: left;
}

.read-notifications-list {
    margin-top: 12px;
}

.read-notifications-list .notification-item {
    opacity: 0.7;
    background: rgba(255, 255, 255, 0.03);
}

.read-notifications-list .notification-item:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.05);
}

/* ==================== АНИМАЦИИ ==================== */
@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}



@keyframes slideOutRight {
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* footer_styles.css: Добавить в раздел .subscription-status */

.subscription-status {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
    padding: 20px;
    border-radius: 12px;
    background: #2c3e50; /* Фоновый цвет по умолчанию (для неактивного или проверки) */
    border: 1px solid #7f8c8d;
    transition: all 0.3s ease;
}

/* Стиль для активного статуса (в WebView или после подписки) */
.subscription-status.status-active {
    background: #1e3347; /* Более темный фон для активного статуса */
    border-color: #2ecc71;
}

.subscription-status .status-icon {
    font-size: 32px;
    color: #e74c3c; /* Красный для неактивного */
    transition: color 0.3s ease;
}

.subscription-status.status-active .status-icon {
    color: #2ecc71; /* Зеленый для активного */
}

.subscription-status p {
    margin: 0;
    font-size: 14px;
    color: #ecf0f1;
}

.subscribe-btn {
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    width: 100%;
    max-width: 250px;
}

.subscribe-btn.btn-primary {
    background: #e8a920;
    color: #1a1a1a;
    border: none;
}

.subscribe-btn.btn-secondary {
    background: #95a5a6;
    color: #1a1a1a;
    border: none;
}

/* ================================
   ACTION SHEET: Аренда / Вакансии
   ================================ */

/* Анимация появления */
#rentActionSheet {
    animation: sheetFadeUp .18s ease-out;
}

@keyframes sheetFadeUp {
    from {
        opacity: 0;
        transform: translateY(12px) scale(.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Карточка меню */
#rentActionSheet > div {
    background: rgba(20, 20, 30, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.06);
    box-shadow:
        0 10px 30px rgba(0,0,0,.55),
        inset 0 1px 0 rgba(255,255,255,.04);
}

/* Уточнённые правила для action sheet: переопределяют inline-стили в динамической разметке */
#rentActionSheet .footer-action-option {
    color: #eaeaf0 !important;
    background: transparent !important;
}

#rentActionSheet .footer-action-option > div {
    background: rgba(255,255,255,0.03) !important;
    box-shadow: none !important;
}

#rentActionSheet .footer-action-option svg,
#rentActionSheet .footer-action-option svg path,
#rentActionSheet .footer-action-option svg rect,
#rentActionSheet .footer-action-option svg circle {
    fill: currentColor !important;
    stroke: none !important;
}

#rentActionSheet .footer-action-option span {
    color: inherit !important;
}

/* ================================
   КНОПКИ ВЫБОРА
   ================================ */

.footer-action-option {
    cursor: pointer;
    border-radius: 12px;
    color: #eaeaf0;
    transition:
        background .15s ease,
        transform .12s ease,
        color .15s ease;
}

.footer-action-option:active {
    transform: scale(.96);
    background: rgba(255,255,255,0.06);
}

/* Контейнер иконки */
.footer-action-option > div {
    transition:
        background .15s ease,
        box-shadow .15s ease,
        transform .15s ease;
}

.footer-action-option:hover > div {
    background: rgba(255,255,255,0.07);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08);
}

/* ================================
   SVG ИКОНКИ (КЛЮЧЕВОЕ)
   ================================ */

.footer-action-option svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
    stroke: none;
    opacity: .92;
    transition:
        fill .15s ease,
        opacity .15s ease,
        transform .15s ease;
}

/* Принудительно перекрываем чёрный fill внутри SVG */
.footer-action-option svg path,
.footer-action-option svg rect,
.footer-action-option svg circle {
    fill: currentColor !important;
}

/* Лёгкое «оживление» */
.footer-action-option:hover svg {
    opacity: 1;
    transform: scale(1.05);
}

/* ================================
   ПОДПИСЬ
   ================================ */

.footer-action-option span {
    font-size: 13px;
    font-weight: 500;
    letter-spacing: .2px;
    opacity: .9;
}

/* ================================
   ЦВЕТА ПО СМЫСЛУ
   ================================ */

#actionRent {
    color: #7dd3fc; /* аренда — голубой */
}

#actionJobs {
    color: #a7f3d0; /* вакансии — зелёный */
}

/* Активное состояние */
.footer-action-option:active svg {
    transform: scale(.95);
}
/* =====================================================
   v3 OVERRIDES — убираем жёлтые glows, обновляем ripple
   ===================================================== */

/* Ripple — белый вместо жёлтого (переопределяем inline JS стиль нельзя, но можно через анимацию) */
@keyframes footer-ripple {
    from { opacity: 0.25; transform: scale(0); }
    to   { opacity: 0;    transform: scale(2); }
}

/* Активный элемент — никакого жёлтого фона */
.mobile-footer .footer-btn.active::before {
    background: rgba(255, 255, 255, 0.05);
}

/* subscribe-btn цвет */
.subscribe-btn,
.subscribe-btn.btn-primary {
    background: #e8a920;
    color: #0d1520;
}

.subscribe-btn:hover {
    background: #d49618;
    box-shadow: none;
    transform: translateY(-1px);
}

/* notification unread border */
.notification-item.unread {
    border-left-color: #e8a920;
}

.notification-item h4 {
    color: #e8a920;
}

/* empty notifications icon */
.empty-notifications i {
    color: #e8a920;
}

/* footer bg и border из переменных */
.mobile-footer {
    background: var(--footer-bg) !important;
    border-top: 1px solid var(--footer-border) !important;
    box-shadow: var(--footer-shadow) !important;
}

.mobile-footer .footer-btn {
    color: var(--footer-inactive);
}

.mobile-footer .footer-btn.active {
    color: var(--footer-active-primary) !important;
}


/* ==================== СВЕТЛАЯ ТЕМА ==================== */
[data-theme="light"] {
    --footer-bg: rgba(255, 255, 255, 0.97);
    --footer-border: rgba(0, 0, 0, 0.08);
    --footer-active-primary: #b45309;
    --footer-active-bg: rgba(251, 191, 36, 0.28);
    --footer-inactive: #334155;        /* ← было #94a3b8 */
    --footer-hover: #1e293b;           /* ← было #475569 */
    --footer-shadow: 0 -1px 0 rgba(0, 0, 0, 0.06), 0 -8px 24px rgba(0, 0, 0, 0.08);
    --footer-glow: transparent;
}
[data-theme="light"] .mobile-footer .footer-btn {
    color: var(--footer-inactive);
    opacity: 1 !important;
    filter: none !important;
}

[data-theme="light"] .mobile-footer .footer-btn svg,
[data-theme="light"] .mobile-footer .footer-btn img {
    opacity: 1 !important;
    filter: none !important;
}

/* Сам футер */
[data-theme="light"] .mobile-footer {
    background: var(--footer-bg) !important;
    border-top: 1px solid var(--footer-border) !important;
    box-shadow: var(--footer-shadow) !important;
}

/* Кнопки футера */
[data-theme="light"] .mobile-footer .footer-btn {
    color: var(--footer-inactive);
}

[data-theme="light"] .mobile-footer .footer-btn.active {
    color: var(--footer-active-primary) !important;
}

[data-theme="light"] .mobile-footer .footer-btn.active::before {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.32), rgba(253, 230, 138, 0.45));
    box-shadow: inset 0 0 0 1px rgba(217, 119, 6, 0.22);
}

/* Подписи кнопок */
[data-theme="light"] .mobile-footer .footer-label {
    color: var(--footer-inactive);
}

[data-theme="light"] .mobile-footer .footer-btn.active .footer-label {
    color: var(--footer-active-primary);
}

/* ==================== QR МОДАЛКА (светлая тема) ==================== */
[data-theme="light"] .qr-modal.modern {
    background: linear-gradient(180deg, #ffffff 0%, #f1f5f9 100%);
    box-shadow: 0 -10px 50px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .qr-header.modern {
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .qr-header.modern .header-title h3 {
    color: #1e293b;
}

[data-theme="light"] .qr-header.modern .header-subtitle {
    color: #64748b;
}

[data-theme="light"] .close-btn.modern {
    background: rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.08);
    color: #64748b;
}

[data-theme="light"] .close-btn.modern:hover {
    background: rgba(0, 0, 0, 0.08);
    color: #1e293b;
}

[data-theme="light"] .scan-instruction.modern {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(0, 0, 0, 0.08);
    color: #1e293b;
}

[data-theme="light"] .loader-text {
    color: #1e293b;
}

/* ==================== МОДАЛКА УВЕДОМЛЕНИЙ (светлая тема) ==================== */
[data-theme="light"] .notifications-modal {
    background: linear-gradient(180deg, #ffffff 0%, #f1f5f9 100%);
    box-shadow: 0 -10px 50px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .notif-header {
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .notif-header h3 {
    color: #1e293b;
}

[data-theme="light"] .notification-item {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-left: 3px solid rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .notification-item.unread {
    background: linear-gradient(135deg, #fffbeb 0%, #fef9f0 100%);
    border-left-color: #d4920a;
}

[data-theme="light"] .notification-item h4 {
    color: #d4920a;
}

[data-theme="light"] .notification-item p {
    color: #475569;
}

[data-theme="light"] .notif-time {
    color: #94a3b8;
}

[data-theme="light"] .read-notifications-section {
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .toggle-read-btn {
    background: rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.08);
    color: #475569;
}

[data-theme="light"] .toggle-read-btn:hover {
    background: rgba(0, 0, 0, 0.07);
    border-color: rgba(0, 0, 0, 0.12);
}

[data-theme="light"] .read-notifications-list .notification-item {
    background: rgba(0, 0, 0, 0.02);
}

[data-theme="light"] .read-notifications-list .notification-item:hover {
    background: rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .empty-notifications {
    color: #94a3b8;
}

/* ==================== ACTION SHEET (светлая тема) ==================== */
[data-theme="light"] #rentActionSheet > *,
[data-theme="light"] #rentActionSheet > * > * {
    background: #ffffff !important;
    color: #1e293b !important;
}

[data-theme="light"] #rentActionSheet > div {
    background: rgba(255, 255, 255, 0.97) !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12) !important;
}

[data-theme="light"] .strela-mini-modal {
    background: #ffffff !important;
    color: #1e293b !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12) !important;
}

[data-theme="light"] #rentActionSheet .footer-action-option {
    color: #1e293b !important;
}

[data-theme="light"] .footer-action-option {
    color: #1e293b;
}

[data-theme="light"] .footer-action-option:active {
    background: rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .footer-action-option:hover > div {
    background: rgba(0, 0, 0, 0.04);
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.06);
}

[data-theme="light"] #actionRent {
    color: #0284c7;
}

[data-theme="light"] #actionJobs {
    color: #059669;
}

/* ==================== СТАТУС ПОДПИСКИ (светлая тема) ==================== */
[data-theme="light"] .subscription-status {
    background: #f8fafc;
    border-color: #cbd5e1;
}

[data-theme="light"] .subscription-status.status-active {
    background: #f0fdf4;
    border-color: #22c55e;
}

[data-theme="light"] .subscription-status p {
    color: #475569;
}

/* ==================== TOAST (светлая тема) ==================== */
[data-theme="light"] .toast-notification {
    background: #ffffff;
    color: #1e293b;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}