/* ===== ОСНОВНЫЕ СТИЛИ ===== */
:root {
    --primary: #57b9ff;
    --primary-dark: #3a9eff;
    --secondary: #ee6ef5;
    --bg-dark: #0a0a1a;
    --bg-card: rgba(15, 15, 25, 0.7);
    --glass-border: rgba(87, 185, 255, 0.3);
    --text-light: #e0e0e0;
    --text-muted: #a0a0b0;
}

body {
    background: linear-gradient(135deg, #0a0a1a 0%, #1a1a2e 100%);
    color: var(--text-light);
    font-family: 'Segoe UI', 'Inter', system-ui, -apple-system, sans-serif;
    min-height: 100vh;
    margin: 0;
    padding: 0;
}

.navbar.bg-glass {
    background: rgba(10, 10, 26, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}
.navbar-brand {
    font-size: 1.4rem;
    letter-spacing: -0.5px;
    white-space: nowrap;
}
.badge-premium {
    background: linear-gradient(135deg, #57b9ff, #3a9eff);
    padding: 5px 12px;
    border-radius: 40px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #0a0a1a;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 0 8px rgba(87,185,255,0.5);
}
.btn-premium-extend {
    background: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
    border-radius: 40px;
    padding: 5px 14px;
    font-size: 0.85rem;
    transition: all 0.2s;
}
.btn-premium-extend:hover {
    background: var(--primary);
    color: #0a0a1a;
    box-shadow: 0 0 12px var(--primary);
}

.main-container {
    padding: 1rem;
    height: calc(100vh - 70px);
}

/* ===== ЛОГИН, РЕГИСТРАЦИЯ ===== */
.card.glass {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}

/* ===== ЧАТЫ (layout) ===== */
.chats-layout {
    display: flex;
    gap: 1rem;
    height: 100%;
    width: 100%;
}
.chats-sidebar {
    width: 280px;
    background: rgba(10, 10, 26, 0.6);
    backdrop-filter: blur(8px);
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: transform 0.3s ease;
}
.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid var(--glass-border);
}
.sidebar-header h5 {
    margin: 0;
    color: var(--primary);
}
.btn-close-sidebar {
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 1.5rem;
    cursor: pointer;
}
.sidebar-actions {
    display: flex;
    gap: 0.5rem;
    padding: 1rem;
}
.btn-new-chat, .btn-delete-chat {
    flex: 1;
    background: rgba(87, 185, 255, 0.1);
    border: 1px solid var(--glass-border);
    border-radius: 40px;
    color: var(--text-light);
    padding: 0.5rem;
    font-size: 0.8rem;
    transition: all 0.2s;
}
.btn-new-chat:hover {
    background: var(--primary);
    color: #0a0a1a;
    border-color: var(--primary);
}
.btn-delete-chat:hover:not(:disabled) {
    background: #ff4757;
    border-color: #ff4757;
    color: white;
}
.search-box {
    position: relative;
    margin: 0 1rem 1rem 1rem;
}
.search-box i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}
.search-box input {
    width: 100%;
    background: rgba(0,0,0,0.4);
    border: 1px solid var(--glass-border);
    border-radius: 40px;
    padding: 0.6rem 1rem 0.6rem 2.2rem;
    color: white;
}
.chats-list {
    flex: 1;
    overflow-y: auto;
    padding: 0 0.5rem 0.5rem;
}
.list-group-item {
    background: transparent;
    border: none;
    color: var(--text-light);
    border-radius: 12px;
    margin-bottom: 4px;
    transition: all 0.2s;
}
.list-group-item i {
    margin-right: 8px;
    color: var(--primary);
}
.list-group-item:hover {
    background: rgba(87, 185, 255, 0.15);
    transform: translateX(4px);
}
.list-group-item.active {
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    color: #0a0a1a;
    font-weight: 600;
}
.list-group-item.active i {
    color: #0a0a1a;
}

/* Основная область чата */
.chat-main {
    flex: 1;
    background: rgba(10, 10, 26, 0.5);
    backdrop-filter: blur(8px);
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.chat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--glass-border);
}
.chat-header h4 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--primary);
}
.btn-show-sidebar, .btn-settings {
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 1.3rem;
    cursor: pointer;
    transition: color 0.2s;
}
.btn-show-sidebar:hover, .btn-settings:hover {
    color: var(--primary);
}
.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.empty-chat-message {
    text-align: center;
    margin-top: 3rem;
    opacity: 0.6;
}
.empty-chat-message i {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 1rem;
}
.message-wrapper {
    display: flex;
    margin: 0.5rem 0;
    animation: fadeInUp 0.3s ease;
}
.message-wrapper.user {
    justify-content: flex-end;
}
.message {
    max-width: 75%;
    padding: 0.75rem 1rem;
    border-radius: 20px;
    background: rgba(30,30,50,0.8);
    border: 1px solid var(--glass-border);
    font-size: 0.95rem;
    line-height: 1.4;
}
.message.user {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #0a0a1a;
    border: none;
}
.message.assistant {
    background: rgba(20,20,40,0.8);
}
.assistant-buttons {
    display: flex;
    gap: 8px;
    margin-left: 12px;
    align-items: center;
}
.copy-btn, .translate-btn {
    background: rgba(87,185,255,0.2);
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}
.copy-btn:hover, .translate-btn:hover {
    background: var(--primary);
    color: #0a0a1a;
    transform: scale(1.05);
}
.translation-hint {
    font-size: 0.7rem;
    color: var(--primary);
    margin-top: 6px;
    padding-left: 8px;
}
.typing-indicator {
    display: flex;
    gap: 6px;
    background: rgba(20,20,40,0.8);
    padding: 0.75rem 1rem;
    border-radius: 20px;
    width: fit-content;
}
.typing-indicator span {
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
    animation: typing 1.4s infinite;
}
.typing-indicator span:nth-child(2) { animation-delay: 0.2s; }
.typing-indicator span:nth-child(3) { animation-delay: 0.4s; }
@keyframes typing {
    0%,60%,100% { transform: translateY(0); opacity: 0.4; }
    30% { transform: translateY(-8px); opacity: 1; }
}
.chat-input-area {
    padding: 1rem;
    border-top: 1px solid var(--glass-border);
}
.input-group {
    display: flex;
    gap: 0.5rem;
}
.input-group .form-control {
    background: rgba(0,0,0,0.4);
    border: 1px solid var(--glass-border);
    border-radius: 40px;
    color: white;
    padding: 0.75rem 1rem;
}
.btn-send {
    background: var(--primary);
    border: none;
    border-radius: 40px;
    padding: 0 1.5rem;
    color: #0a0a1a;
    font-weight: 600;
    transition: all 0.2s;
}
.btn-send:hover:not(:disabled) {
    background: var(--primary-dark);
    box-shadow: 0 0 12px var(--primary);
}
.chat-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
}
.chat-actions .btn {
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--glass-border);
    border-radius: 40px;
    font-size: 0.8rem;
    padding: 0.4rem 1rem;
}
.glass-modal {
    background: rgba(20,20,40,0.95);
    backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
}
.setting-item {
    margin-bottom: 1rem;
}
.setting-item label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}
.form-range {
    background: rgba(255,255,255,0.1);
}
.form-range::-webkit-slider-thumb {
    background: var(--primary);
}

/* Адаптив */
@media (max-width: 768px) {
    .chats-sidebar {
        position: fixed;
        top: 70px;
        left: 0;
        height: calc(100% - 70px);
        width: 280px;
        z-index: 1000;
        transform: translateX(-100%);
        background: rgba(10,10,26,0.95);
    }
    .chats-sidebar.open {
        transform: translateX(0);
    }
    .chat-main {
        border-radius: 20px;
    }
    .message {
        max-width: 85%;
    }
}
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: #1a1a2e;
}
::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 10px;
}

@media (max-width: 480px) {
    .main-container { padding: 0.25rem; }
    .chat-header { padding: 0.5rem; }
    .chat-header h4 { font-size: 0.9rem; }
    .btn-show-sidebar, .btn-settings { font-size: 1rem; }
    .chat-messages { padding: 0.5rem; }
    .message { max-width: 92%; font-size: 0.8rem; padding: 0.4rem 0.7rem; }
    .assistant-buttons { gap: 4px; margin-left: 4px; }
    .copy-btn, .translate-btn { width: 26px; height: 26px; font-size: 0.7rem; }
    .chat-input-area { padding: 0.5rem; }
    .input-group .form-control { padding: 0.4rem 0.6rem; font-size: 0.85rem; }
    .btn-send { padding: 0 0.8rem; font-size: 0.85rem; }
    .chat-actions { gap: 0.3rem; }
    .chat-actions .btn { padding: 0.25rem 0.6rem; font-size: 0.7rem; }
    .chats-sidebar { width: 260px; }
    .sidebar-header { padding: 0.6rem; }
    .sidebar-header h5 { font-size: 0.9rem; }
    .btn-new-chat, .btn-delete-chat { font-size: 0.65rem; padding: 0.35rem; }
    .search-box { margin: 0 0.6rem 0.6rem 0.6rem; }
    .search-box input { padding: 0.4rem 0.8rem 0.4rem 2rem; font-size: 0.8rem; }
    .list-group-item { font-size: 0.8rem; padding: 0.4rem 0.6rem; }
    .modal-content { margin: 0.5rem; }
    .setting-item label { font-size: 0.85rem; }
    .form-range { height: 3px; }
    .form-select { font-size: 0.85rem; padding: 0.3rem 0.5rem; }
}

/* Кнопка гамбургер видна только на мобильных */
.btn-show-sidebar {
    display: none;
    background: none;
    border: none;
    color: var(--primary);
    font-size: 1.5rem;
    cursor: pointer;
}
.btn-close-sidebar {
    display: none;
}
@media (max-width: 768px) {
    .btn-show-sidebar {
        display: inline-block !important;
    }
    .btn-close-sidebar {
        display: block !important;
    }
}

/* ===== ГРАДИЕНТНОЕ СЕРДЕЧКО ===== */
.gradient-heart {
    background: linear-gradient(135deg, #ee6ef5, #a855f7, #7c3aed);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent !important;
    font-size: 1.4rem;
    animation: heartPulse 1.5s ease infinite;
}
@keyframes heartPulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.15); opacity: 0.9; }
    100% { transform: scale(1); opacity: 1; }
}

/* ===== СОВРЕМЕННЫЕ ПОЛЗУНКИ ===== */
.form-range {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 6px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: 10px;
    outline: none;
    cursor: pointer;
}
.form-range:focus { outline: none; }
.form-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    background: white;
    border: 2px solid var(--primary);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 6px rgba(87, 185, 255, 0.5);
    transition: transform 0.1s ease;
}
.form-range::-webkit-slider-thumb:hover { transform: scale(1.2); }
.form-range::-moz-range-thumb { width: 18px; height: 18px; background: white; border: 2px solid var(--primary); border-radius: 50%; cursor: pointer; }
.form-range::-moz-range-track { background: linear-gradient(90deg, var(--primary) 0%, var(--primary-dark) 100%); height: 6px; border-radius: 10px; }
.form-range::-ms-thumb { width: 18px; height: 18px; background: white; border: 2px solid var(--primary); border-radius: 50%; }
.form-range::-ms-track { background: linear-gradient(90deg, var(--primary) 0%, var(--primary-dark) 100%); height: 6px; border-radius: 10px; border: none; color: transparent; }

/* ===== СТРАНИЦА ВХОДА ===== */
.login-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 80vh;
    padding: 1rem;
}
.login-card {
    max-width: 450px;
    width: 100%;
    padding: 2rem;
    border-radius: 28px;
    background: rgba(15, 25, 45, 0.7);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}
.login-card:hover { transform: translateY(-5px); box-shadow: 0 12px 40px rgba(87,185,255,0.2); }
.login-icon { text-align: center; margin-bottom: 1rem; }
.login-icon i { font-size: 3rem; background: linear-gradient(135deg, #ee6ef5, #a855f7); -webkit-background-clip: text; background-clip: text; color: transparent; }
.login-title { text-align: center; font-size: 1.8rem; font-weight: 600; margin-bottom: 0.25rem; background: linear-gradient(135deg, #fff, var(--primary)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.login-subtitle { text-align: center; color: var(--text-muted); margin-bottom: 1.5rem; font-size: 0.9rem; }
.input-group-icon { position: relative; margin-bottom: 1.25rem; }
.input-group-icon i { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: var(--primary); font-size: 1rem; z-index: 1; }
.input-group-icon .form-control { padding: 0.75rem 1rem 0.75rem 2.5rem; background: rgba(0,0,0,0.4); border: 1px solid var(--glass-border); border-radius: 40px; color: var(--text-light); font-size: 0.95rem; }
.input-group-icon .form-control:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(87,185,255,0.2); outline: none; background: rgba(0,0,0,0.6); }
.btn-login { width: 100%; background: linear-gradient(135deg, var(--primary), var(--primary-dark)); border: none; border-radius: 40px; padding: 0.75rem; font-weight: 600; font-size: 1rem; color: #0a0a1a; transition: all 0.2s; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.btn-login:hover { transform: scale(1.02); box-shadow: 0 4px 12px rgba(87,185,255,0.5); }
.btn-login:active { transform: scale(0.98); }
@media (max-width: 576px) { .login-card { padding: 1.5rem; margin: 0 1rem; } .login-title { font-size: 1.5rem; } }

/* ===== ПЕРЕКЛЮЧАТЕЛИ ===== */
.prompt-switch { display: inline-flex; align-items: center; gap: 8px; background: rgba(0,0,0,0.4); padding: 4px 12px 4px 8px; border-radius: 40px; border: 1px solid var(--glass-border); backdrop-filter: blur(4px); }
.switch-option { font-size: 0.8rem; padding: 4px 8px; cursor: pointer; transition: color 0.3s; color: var(--text-muted); font-weight: 500; user-select: none; }
.switch-option.active { color: #0a0a1a; font-weight: 700; text-shadow: 0 0 6px rgba(87,185,255,0.8); }
.switch-track { position: relative; width: 64px; height: 30px; background-color: #2a2a3a; border-radius: 30px; cursor: pointer; box-shadow: inset 0 0 4px rgba(0,0,0,0.3); }
.switch-slider { position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; background: linear-gradient(135deg, #ffffff, #e0e0e0); border-radius: 50%; transition: transform 0.35s cubic-bezier(0.2,0.9,0.4,1.1); box-shadow: 0 2px 6px rgba(0,0,0,0.3); }
.switch-track.active { background: linear-gradient(90deg, #57b9ff, #3a9eff); }
.switch-track.active .switch-slider { transform: translateX(34px); background: white; box-shadow: 0 0 6px #57b9ff; }
.mode-switch { display: inline-flex; background: rgba(0,0,0,0.35); backdrop-filter: blur(8px); border-radius: 48px; padding: 4px; gap: 4px; border: 1px solid rgba(87,185,255,0.3); }
.mode-btn { background: transparent; border: none; padding: 6px 20px; border-radius: 40px; font-size: 0.8rem; font-weight: 600; cursor: pointer; transition: all 0.2s; color: #b0b0c0; }
.mode-btn.active { background: linear-gradient(135deg, #57b9ff, #3a9eff); color: #0a0a1a; box-shadow: 0 0 12px rgba(87,185,255,0.5); }
.mode-btn:not(.active):hover { background: rgba(87,185,255,0.2); color: #e0e0e0; transform: translateY(-1px); }
.free-limit-badge { background: rgba(87,185,255,0.2); border: 1px solid #57b9ff; border-radius: 40px; padding: 4px 12px; font-size: 0.8rem; display: inline-flex; align-items: center; gap: 8px; color: #57b9ff; }

/* ===== КНОПКА ПРОФИЛЯ – всегда видна ===== */
.btn-profile-trigger {
    background: rgba(87, 185, 255, 0.15);
    border: 1px solid rgba(87, 185, 255, 0.4);
    border-radius: 60px;
    padding: 6px 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: white;
    transition: all 0.2s;
    cursor: pointer;
    white-space: nowrap;
}
.btn-profile-trigger:hover {
    background: rgba(87, 185, 255, 0.3);
    border-color: #57b9ff;
    transform: scale(1.02);
}
.btn-profile-trigger i:first-child {
    font-size: 1.2rem;
    color: #57b9ff;
}
.profile-name {
    font-weight: 500;
    font-size: 0.9rem;
}
.btn-profile-trigger i:last-child {
    font-size: 0.7rem;
    opacity: 0.7;
}
@media (max-width: 576px) {
    .btn-profile-trigger .profile-name {
        display: none;
    }
    .btn-profile-trigger {
        padding: 6px 10px;
    }
    .btn-profile-trigger i:last-child {
        display: none;
    }
}

/* ===== МОДАЛЬНОЕ ОКНО ===== */
.profile-modal .modal-content {
    background: rgba(12, 12, 24, 0.98);
    backdrop-filter: blur(20px);
    border-radius: 32px;
    border: 1px solid rgba(87, 185, 255, 0.4);
    box-shadow: 0 20px 40px rgba(0,0,0,0.5), 0 0 0 1px rgba(87,185,255,0.2);
    color: #e0e0e0;
}
.profile-header-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #57b9ff, #3a9eff);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: -30px;
    margin-left: 20px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}
.profile-header-icon i { font-size: 2rem; color: #0a0a1a; }
.user-info-card { text-align: center; margin-top: 20px; }
.username { font-size: 1.6rem; font-weight: 700; background: linear-gradient(135deg, #fff, #57b9ff); -webkit-background-clip: text; background-clip: text; color: transparent; margin-bottom: 0.25rem; }
.user-email { color: #a0a0b0; font-size: 0.85rem; }
.premium-section { background: rgba(0,0,0,0.3); border-radius: 24px; padding: 1rem; margin: 1rem 0; text-align: center; }
.premium-status-badge { display: inline-flex; align-items: center; gap: 8px; background: rgba(87,185,255,0.2); border-radius: 40px; padding: 6px 16px; font-size: 0.9rem; margin-bottom: 12px; }
.premium-days-left { font-weight: bold; color: #57b9ff; }
.btn-premium-extend-modal { background: linear-gradient(135deg, #57b9ff, #3a9eff); border: none; border-radius: 40px; padding: 10px 20px; font-weight: 600; color: #0a0a1a; transition: all 0.2s; width: 100%; text-decoration: none; display: inline-block; text-align: center; }
.btn-glass { background: rgba(255,255,255,0.05); border: 1px solid rgba(87,185,255,0.3); border-radius: 40px; padding: 10px; color: white; text-align: center; transition: all 0.2s; text-decoration: none; display: inline-block; }
.telegram-section { background: rgba(0,0,0,0.25); border-radius: 20px; padding: 1rem; text-align: center; }
.telegram-header i { color: #26A5E4; }
.qr-container { display: flex; justify-content: center; margin: 10px 0; }
.qr-hint { font-size: 0.7rem; color: #888; }
@media (max-width: 576px) {
    .profile-modal .modal-dialog { margin: 0.5rem; max-width: calc(100% - 1rem); }
    .profile-modal .modal-content { border-radius: 20px; }
    .profile-header-icon { width: 50px; height: 50px; margin-top: -25px; margin-left: 15px; }
    .profile-header-icon i { font-size: 1.5rem; }
    .username { font-size: 1.3rem; }
    .premium-status-badge { font-size: 0.8rem; padding: 4px 12px; }
    .btn-premium-extend-modal, .btn-glass { font-size: 0.85rem; padding: 8px; }
    .telegram-section { padding: 0.75rem; }
}

/* ===== FIXES FOR GOOGLE CHROME ===== */
.navbar {
    min-height: 60px;
}
.navbar-brand {
    white-space: nowrap;
}
.navbar-nav {
    flex-direction: row !important;
    align-items: center;
}
.btn-profile-trigger {
    display: inline-flex !important;
    align-items: center;
    white-space: nowrap;
}
/* Для мобильных сворачивание меню */
@media (max-width: 768px) {
    .navbar-nav {
        flex-direction: column !important;
        align-items: flex-start;
        width: 100%;
    }
    .navbar-nav .nav-item {
        width: 100%;
        text-align: left;
    }
    .btn-profile-trigger {
        width: auto;
        justify-content: center;
    }
}
/* Стабильность модалки */
.modal-content {
    will-change: transform;
    transform: translateZ(0);
}

/* Убираем стандартные отступы навбара для мобильных */
.navbar {
    min-height: 60px;
}
.btn-profile-trigger {
    display: inline-flex !important;
    align-items: center;
}
@media (max-width: 576px) {
    .btn-profile-trigger .profile-name,
    .btn-profile-trigger i:last-child {
        display: none;
    }
    .btn-profile-trigger {
        padding: 6px 10px;
    }
    .btn-premium-extend {
        display: none !important;
    }
    .badge-premium {
        display: none !important;
    }
}
/* Модалка всегда по центру */
.modal-content {
    transform: translateZ(0);
}