/* ============================================
   ОБЩИЕ СТИЛИ
   ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-blue: #3b82f6;
    --primary-cyan: #06b6d4;
    --glass-bg: rgba(26, 31, 46, 0.7);
    --glass-border: rgba(255, 255, 255, 0.1);
    --text-white: #ffffff;
    --text-muted: rgba(255, 255, 255, 0.6);
    --text-light: rgba(255, 255, 255, 0.8);
    --shadow-glow: 0 0 20px rgba(59, 130, 246, 0.3);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    min-height: 100vh;
    overflow-x: hidden;
    color: var(--text-white);
    line-height: 1.6;
}

/* ============================================
   ФОНОВОЕ ИЗОБРАЖЕНИЕ
   ============================================ */

.bg-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

.bg-image {
    position: absolute;
    inset: 0;
    background: url('../images/factory-bg.jpg') center/cover no-repeat;
}

.bg-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.85) 0%, rgba(30, 41, 59, 0.8) 50%, rgba(30, 58, 138, 0.7) 100%);
}

/* ============================================
   АНИМИРОВАННЫЕ ЧАСТИЦЫ
   ============================================ */

.particles-container {
    position: fixed;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: -1;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    animation: float-up linear infinite;
}

.particle:nth-child(1) { left: 5%; animation-duration: 8s; animation-delay: 0s; }
.particle:nth-child(2) { left: 15%; animation-duration: 10s; animation-delay: 1s; }
.particle:nth-child(3) { left: 25%; animation-duration: 7s; animation-delay: 2s; }
.particle:nth-child(4) { left: 35%; animation-duration: 9s; animation-delay: 0.5s; }
.particle:nth-child(5) { left: 45%; animation-duration: 11s; animation-delay: 1.5s; }
.particle:nth-child(6) { left: 55%; animation-duration: 8s; animation-delay: 3s; }
.particle:nth-child(7) { left: 65%; animation-duration: 10s; animation-delay: 2.5s; }
.particle:nth-child(8) { left: 75%; animation-duration: 7s; animation-delay: 4s; }
.particle:nth-child(9) { left: 85%; animation-duration: 9s; animation-delay: 1s; }
.particle:nth-child(10) { left: 95%; animation-duration: 11s; animation-delay: 3.5s; }
.particle:nth-child(11) { left: 10%; animation-duration: 8s; animation-delay: 5s; }
.particle:nth-child(12) { left: 20%; animation-duration: 10s; animation-delay: 4s; }
.particle:nth-child(13) { left: 30%; animation-duration: 7s; animation-delay: 6s; }
.particle:nth-child(14) { left: 40%; animation-duration: 9s; animation-delay: 2s; }
.particle:nth-child(15) { left: 50%; animation-duration: 11s; animation-delay: 5.5s; }
.particle:nth-child(16) { left: 60%; animation-duration: 8s; animation-delay: 7s; }
.particle:nth-child(17) { left: 70%; animation-duration: 10s; animation-delay: 3s; }
.particle:nth-child(18) { left: 80%; animation-duration: 7s; animation-delay: 6.5s; }
.particle:nth-child(19) { left: 90%; animation-duration: 9s; animation-delay: 4.5s; }
.particle:nth-child(20) { left: 3%; animation-duration: 11s; animation-delay: 8s; }

@keyframes float-up {
    0% {
        transform: translateY(100vh) translateX(0);
        opacity: 0;
    }
    10% {
        opacity: 0.3;
    }
    90% {
        opacity: 0.3;
    }
    100% {
        transform: translateY(-100vh) translateX(20px);
        opacity: 0;
    }
}

/* ============================================
   ОСНОВНОЙ КОНТЕЙНЕР
   ============================================ */

.main-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    gap: 4rem;
    max-width: 1400px;
    margin: 0 auto;
}

/* ============================================
   ЛЕВАЯ ЧАСТЬ - ИНФОРМАЦИЯ О КОМПАНИИ
   ============================================ */

.company-info {
    flex: 1;
    max-width: 600px;
    color: var(--text-white);
}

.company-header {
    margin-bottom: 2rem;
}

.company-logo {
    margin-bottom: 1.5rem;
}

.logo-img {
    max-width: 200px;
    height: auto;
    filter: drop-shadow(0 4px 20px rgba(59, 130, 246, 0.3));
    transition: all 0.3s ease;
}

.logo-img:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 6px 30px rgba(59, 130, 246, 0.5));
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.badge i {
    color: #93c5fd;
}

.company-title {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.gradient-text {
    background: linear-gradient(135deg, #ffffff 0%, #bfdbfe 50%, #93c5fd 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% auto;
    animation: gradient-shift 3s ease infinite;
}

@keyframes gradient-shift {
    0%, 100% { background-position: 0% center; }
    50% { background-position: 100% center; }
}

.company-description {
    font-size: 1.125rem;
    color: var(--text-light);
    line-height: 1.7;
    max-width: 500px;
}

/* Контактные карточки */
.contact-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
}

.contact-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.contact-card:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.contact-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(59, 130, 246, 0.2);
    border-radius: 10px;
    color: #93c5fd;
}

.contact-label {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.contact-value {
    font-size: 0.875rem;
    font-weight: 500;
}

/* Статистика */
.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    padding-top: 1rem;
}

.stat-item {
    text-align: left;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: #93c5fd;
    line-height: 1;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

/* ============================================
   ПРАВАЯ ЧАСТЬ - ФОРМА АВТОРИЗАЦИИ
   ============================================ */

.login-container {
    width: 100%;
    max-width: 420px;
}

/* Glass Card Effect */
.glass-card {
    position: relative;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow: 
        0 25px 50px -12px rgba(0, 0, 0, 0.5),
        inset 0 0 0 1px rgba(255, 255, 255, 0.05);
    overflow: hidden;
    transition: all 0.3s ease;
}

.glass-card:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 30px 60px -12px rgba(0, 0, 0, 0.6),
        inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

/* Glow Effects */
.glow-effect {
    position: absolute;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.3;
    pointer-events: none;
}

.glow-top {
    top: -80px;
    right: -80px;
    background: var(--primary-blue);
}

.glow-bottom {
    bottom: -80px;
    left: -80px;
    background: var(--primary-cyan);
}

.card-content {
    position: relative;
    z-index: 1;
}

/* Form Header */
.form-header {
    text-align: center;
    margin-bottom: 2rem;
}

.lock-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-cyan));
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.3);
}

.lock-icon i {
    font-size: 1.75rem;
    color: white;
}

.form-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 0.5rem;
}

.form-subtitle {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* Form Groups */
.login-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-light);
    margin-left: 0.25rem;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    transition: transform 0.3s ease;
}

.input-wrapper.focused {
    transform: scale(1.02);
}

.input-icon {
    position: absolute;
    left: 1rem;
    color: rgba(255, 255, 255, 0.4);
    transition: all 0.3s ease;
    z-index: 2;
}

.input-wrapper.focused .input-icon {
    color: var(--primary-blue);
    transform: scale(1.1);
}

.form-input {
    width: 100%;
    padding: 0.875rem 1rem 0.875rem 3rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    color: var(--text-white);
    font-size: 0.9375rem;
    transition: all 0.3s ease;
}

.form-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.3);
    background: rgba(255, 255, 255, 0.15);
}

.toggle-password {
    position: absolute;
    right: 1rem;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    padding: 0.25rem;
    transition: all 0.3s ease;
    z-index: 2;
}

.toggle-password:hover {
    color: rgba(255, 255, 255, 0.8);
}

/* Form Options */
.form-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: -0.25rem;
}

.checkbox-wrapper {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.checkbox-input {
    display: none;
}

.checkbox-custom {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.checkbox-custom::after {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 10px;
    color: white;
    opacity: 0;
    transform: scale(0);
    transition: all 0.2s ease;
}

.checkbox-input:checked + .checkbox-custom {
    background: var(--primary-blue);
    border-color: var(--primary-blue);
    animation: check-pop 0.2s ease-out;
}

.checkbox-input:checked + .checkbox-custom::after {
    opacity: 1;
    transform: scale(1);
}

@keyframes check-pop {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.checkbox-label {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
}

.forgot-password {
    background: none;
    border: none;
    font-size: 0.875rem;
    color: #93c5fd;
    cursor: pointer;
    transition: color 0.3s ease;
}

.forgot-password:hover {
    color: #bfdbfe;
}

/* Submit Button */
.submit-btn {
    position: relative;
    width: 100%;
    padding: 0.875rem;
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-cyan));
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.3);
    transition: all 0.3s ease;
    overflow: hidden;
}

.submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.submit-btn:hover::before {
    left: 100%;
}

.submit-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(59, 130, 246, 0.4);
}

.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.submit-btn.loading .btn-text,
.submit-btn.loading .btn-icon {
    opacity: 0;
}

.btn-loader {
    position: absolute;
    display: none;
    align-items: center;
    gap: 0.5rem;
}

.submit-btn.loading .btn-loader {
    display: flex;
}

.spinner {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Divider */
.divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1.5rem 0;
}

.divider-line {
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
}

.divider-text {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.4);
    padding: 0.25rem 0.75rem;
    background: rgba(26, 31, 46, 0.5);
    backdrop-filter: blur(10px);
    border-radius: 50px;
}

/* Gosuslugi Button */
.gosuslugi-btn {
    width: 100%;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    color: white;
    font-size: 0.9375rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.gosuslugi-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
}

/* Support Text */
.support-text {
    text-align: center;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.4);
    margin-top: 1.5rem;
}

.support-link {
    color: #93c5fd;
    text-decoration: none;
    transition: color 0.3s ease;
}

.support-link:hover {
    color: #bfdbfe;
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1rem 2rem;
    z-index: 10;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.4);
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.4);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: rgba(255, 255, 255, 0.7);
}

/* ============================================
   TOAST УВЕДОМЛЕНИЯ
   ============================================ */

.toast-container {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.toast {
    padding: 1rem 1.5rem;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    color: white;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: slide-in 0.3s ease-out;
}

.toast.success {
    border-left: 3px solid #22c55e;
}

.toast.error {
    border-left: 3px solid #ef4444;
}

.toast.info {
    border-left: 3px solid var(--primary-blue);
}

@keyframes slide-in {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.toast.hide {
    animation: slide-out 0.3s ease-out forwards;
}

@keyframes slide-out {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

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

@media (max-width: 1024px) {
    .main-container {
        flex-direction: column;
        gap: 2rem;
        padding: 2rem 1.5rem 6rem;
    }

    .company-info {
        text-align: center;
        max-width: 100%;
    }

    .company-logo {
        display: flex;
        justify-content: center;
    }

    .logo-img {
        max-width: 160px;
    }

    .company-title {
        font-size: 2.5rem;
    }

    .company-description {
        max-width: 100%;
    }

    .contact-cards {
        justify-content: center;
    }

    .stats {
        justify-content: center;
    }

    .stat-item {
        text-align: center;
    }

    .login-container {
        max-width: 100%;
    }
}

@media (max-width: 640px) {
    .company-title {
        font-size: 2rem;
    }

    .logo-img {
        max-width: 140px;
    }

    .glass-card {
        padding: 1.5rem;
        border-radius: 20px;
    }

    .stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }

    .stat-number {
        font-size: 1.5rem;
    }

    .footer {
        padding: 0.75rem 1rem;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }
}

@media (max-width: 480px) {
    .contact-cards {
        flex-direction: column;
        width: 100%;
    }

    .contact-card {
        width: 100%;
    }

    .form-options {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
}

/* ============================================
   АУТЕНТИФИКАЦИЯ И СЕЛЕКЦИЯ
   ============================================ */

::selection {
    background: rgba(59, 130, 246, 0.3);
    color: white;
}

/* Autofill Styles */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus {
    -webkit-text-fill-color: white;
    -webkit-box-shadow: 0 0 0px 1000px rgba(26, 31, 46, 0.9) inset;
    transition: background-color 5000s ease-in-out 0s;
}

/* Focus Visible */
button:focus-visible,
input:focus-visible,
a:focus-visible {
    outline: 2px solid var(--primary-blue);
    outline-offset: 2px;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ============================================
   СКРОЛЛБАР
   ============================================ */

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}
/* ============================================
   МОДАЛЬНОЕ ОКНО
   ============================================ */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: 1rem;
}

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

.modal-container {
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    margin: 0 auto;
    animation: modal-scale-in 0.4s ease-out;
}

@keyframes modal-scale-in {
    0% {
        opacity: 0;
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.modal-glass-card {
    position: relative;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 2rem;
    box-shadow: 
        0 25px 50px -12px rgba(0, 0, 0, 0.5),
        inset 0 0 0 1px rgba(255, 255, 255, 0.05);
    overflow: hidden;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 1;
}

.modal-title {
    font-size: 1.5rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: white;
}

.modal-title i {
    color: var(--primary-blue);
    font-size: 1.5rem;
}

.modal-close {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    transform: rotate(90deg);
}

.modal-content {
    overflow-y: auto;
    padding-right: 0.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-light);
    line-height: 1.6;
    position: relative;
    z-index: 1;
    flex: 1;
}

.modal-content::-webkit-scrollbar {
    width: 6px;
}

.modal-content::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
}

.modal-content::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
}

.modal-content::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

.modal-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 1.5rem 0 1rem;
    color: white;
}

.modal-content h3:first-of-type {
    margin-top: 0;
}

.modal-content p {
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.7);
}

.modal-content ul,
.modal-content ol {
    margin: 1rem 0 1rem 1.5rem;
    color: rgba(255, 255, 255, 0.7);
}

.modal-content li {
    margin-bottom: 0.5rem;
}

.modal-content .modal-date {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.4);
    text-align: right;
}

.modal-footer {
    display: flex;
    gap: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 1;
}

.modal-btn {
    flex: 1;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    font-size: 0.9375rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    border: none;
}

.modal-btn-primary {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-cyan));
    color: white;
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.3);
}

.modal-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(59, 130, 246, 0.4);
}

.modal-btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
}

.modal-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
}

/* Прелоадер для модального окна */
.modal-loader {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    z-index: 2500;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.modal-loader .spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top-color: var(--primary-blue);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.modal-loader span {
    color: var(--text-light);
    font-size: 0.9375rem;
}

/* Адаптивность для модального окна */
@media (max-width: 640px) {
    .modal-glass-card {
        padding: 1.5rem;
    }
    
    .modal-title {
        font-size: 1.25rem;
    }
    
    .modal-footer {
        flex-direction: column;
    }
    
    .modal-btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .modal-glass-card {
        padding: 1rem;
    }
    
    .modal-header {
        margin-bottom: 1rem;
    }
}