/* Стили для модальных окон */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999999;
    opacity: 0;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(5px);
}

.modal.show {
    opacity: 1;
}

.modal-content {
    background-color: #1A1B23;
    border-radius: 10px;
    padding: 20px;
    width: 90%;
    max-width: 400px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transform: scale(0.95);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
    z-index: 1000000;
    color: #ffffff;
    border: 1px solid rgba(0, 232, 83, 0.1);
}

.modal.show .modal-content {
    transform: scale(1);
    opacity: 1;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 20px;
    padding-bottom: 10px;
}

.modal-header h2 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: #ffffff;
}

.close-btn {
    font-size: 24px;
    cursor: pointer;
    user-select: none;
    color: #ffffff;
}

/* Стили для модального окна согласия */
.consent-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999999;
    opacity: 0;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(8px);
}

.consent-modal.show {
    opacity: 1;
}

.consent-modal-content {
    background-color: #ffffff;
    border-radius: 16px;
    padding: 30px;
    width: 90%;
    max-width: 450px;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transform: scale(0.9);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
    z-index: 1000000;
    color: #333333;
    text-align: center;
}

.consent-modal.show .consent-modal-content {
    transform: scale(1);
    opacity: 1;
}

.consent-modal-header {
    margin-bottom: 25px;
}

.consent-modal-header .icon {
    font-size: 48px;
    margin-bottom: 15px;
    color: #4CAF50;
}

.consent-modal-header h2 {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
    color: #333333;
    margin-bottom: 10px;
}

.consent-modal-text {
    font-size: 16px;
    line-height: 1.6;
    color: #555555;
    margin-bottom: 25px;
    text-align: left;
}

.consent-checkbox-container {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
    text-align: left;
    cursor: pointer;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.consent-checkbox-container:hover {
    border-color: #4CAF50;
    background-color: #f8f9fa;
}

.consent-checkbox-container.checked {
    border-color: #4CAF50;
    background-color: #f0f8f0;
}

.consent-checkbox {
    width: 20px;
    height: 20px;
    margin-right: 12px;
    margin-top: 2px;
    flex-shrink: 0;
    cursor: pointer;
    accent-color: #4CAF50;
}

.consent-checkbox-label {
    font-size: 14px;
    line-height: 1.5;
    color: #333333;
    cursor: pointer;
    flex: 1;
}

.consent-link {
    color: #4CAF50;
    text-decoration: underline;
    cursor: pointer;
    font-weight: 600;
}

.consent-link:hover {
    color: #45a049;
}

.consent-buttons {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}

.consent-btn {
    flex: 1;
    padding: 14px 20px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.consent-btn-accept {
    background-color: #4CAF50;
    color: white;
    opacity: 0.5;
    cursor: not-allowed;
}

.consent-btn-accept.enabled {
    opacity: 1;
    cursor: pointer;
}

.consent-btn-accept.enabled:hover {
    background-color: #45a049;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

.consent-btn-accept:active {
    transform: translateY(0);
}

/* Стили для модального окна пополнения баланса */
.topup-modal .topup-icon {
    text-align: center;
    margin-bottom: 20px;
}

.topup-modal .icon-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: #6C5CE7;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    box-shadow: 0 4px 10px rgba(108, 92, 231, 0.3);
}

.topup-modal .icon-circle i {
    font-size: 36px;
    color: white;
}

.topup-modal .topup-message {
    font-size: 16px;
    line-height: 1.5;
    margin-bottom: 25px;
    text-align: center;
    color: #333;
    padding: 0 10px;
}

.topup-modal .topup-close-btn {
    display: block;
    width: 100%;
    padding: 12px;
    background-color: #6C5CE7;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(108, 92, 231, 0.3);
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.topup-modal .topup-close-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.7s ease;
}

.topup-modal .topup-close-btn:hover {
    background-color: #5849ce;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(108, 92, 231, 0.4);
}

.topup-modal .topup-close-btn:hover:before {
    left: 100%;
}

.topup-modal .topup-close-btn:active {
    transform: translateY(1px);
    box-shadow: 0 2px 4px rgba(108, 92, 231, 0.3);
} 