* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Kanit', sans-serif;
}
body {
    background: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}
.payment-container {
    width: 400px;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    padding: 40px 30px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.payment-container img.logo {
    width: 120px;
    margin-bottom: 30px;
}
h2 {
    margin-bottom: 20px;
    font-weight: 600;
    color: #333;
}
.cards {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
}
.cards img {
    height: 15px;
    opacity: 0.3;
    transition: opacity 0.3s;
}
.cards img.active {
    opacity: 1;
}
.payment-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.payment-form input {
    padding: 12px 15px;
    border: 1px solid #ccc;
    border-radius: 12px;
    font-size: 16px;
    outline: none;
    transition: border 0.3s;
}
.payment-form input:focus {
    border-color: #D50037;
}
.pay-button {
    padding: 15px 30px;
    border: none;
    border-radius: 30px !important;
    background: linear-gradient(45deg, #D50037 65%, #D50037 100%);
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}
.pay-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(213,0,55,0.4);
}
.pay-button:disabled {
    background: #cccccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Loading animation */
.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    display: none;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    border-radius: 20px;
    z-index: 10;
}
.loading-overlay.active {
    display: flex;
}
.loading-container {
    width: 120px;
    height: 120px;
    position: relative;
    margin-bottom: 20px;
}
.bubble {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: #f0f0f0;
    position: relative;
    overflow: hidden;
    border: 3px solid #D50037;
}
.liquid {
    position: absolute;
    bottom: 0;
    width: 100%;
    background: linear-gradient(to top, #D50037, #ff3366);
    border-radius: 50% 50% 0 0;
    transform-origin: bottom;
}
.loading-text {
    font-size: 18px;
    color: #333;
    font-weight: 600;
}

/* Validation messages */
.validation-message {
    font-size: 14px;
    margin-top: 5px;
    text-align: left;
    padding-left: 10px;
    display: none;
}
.validation-message.error {
    color: #D50037;
    display: block;
}
.validation-message.success {
    color: #4CAF50;
    display: block;
}

/* Security warning */
.security-warning {
    margin-top: 20px;
    padding: 15px;
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 10px;
    font-size: 14px;
    color: #856404;
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}
.modal-overlay.active {
    display: flex;
}
.modal {
    background: white;
    padding: 30px;
    border-radius: 15px;
    width: 350px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}
.modal h3 {
    margin-bottom: 10px;
    color: #333;
}
.modal p {
    margin-bottom: 20px;
    color: #666;
}
.modal input {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 20px;
    text-align: center;
}
.modal input:focus {
    border-color: #D50037;
    outline: none;
}
.modal-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
}
.modal-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
}
.modal-btn.cancel {
    background: #6c757d;
    color: white;
}
.modal-btn.submit {
    background: #D50037;
    color: white;
}
.modal-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.loading-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
    flex-direction: column;
    z-index: 1000;
}

.loading-container {
    width: 100px;
    height: 100px;
    position: relative;
}

.bubble {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: #e0e0e0;
    position: relative;
    overflow: hidden;
    border: 3px solid #333;
}

.liquid {
    position: absolute;
    bottom: 0;
    width: 100%;
    background: linear-gradient(45deg, #667eea, #764ba2);
    transform: scaleY(0);
    transform-origin: bottom;
    border-radius: 50% 50% 0 0;
}

.loading-text {
    color: white;
    margin-top: 20px;
    font-size: 18px;
    font-family: 'Kanit', sans-serif;
}

.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    z-index: 1001;
}

.modal {
    background: white;
    padding: 30px;
    border-radius: 10px;
    min-width: 300px;
    text-align: center;
}

.liquid {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 100%; /* ДОБАВЬ ЭТУ СТРОКУ */
    background: linear-gradient(45deg, #667eea, #764ba2);
    transform: scaleY(0);
    transform-origin: bottom;
    border-radius: 50% 50% 0 0;
}

.validation-message {
            color: #ff6b6b;
            font-size: 12px;
            height: 14px;
            margin-top: 2px;
        }

        /* ВАЛИДАЦИЯ - добавить к существующему CSS */
.validation-message {
    min-height: 20px;
    font-size: 12px;
    color: transparent;
    transition: all 0.2s ease;
}

.validation-message.error {
    color: #ff4444;
}

.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 600;
    z-index: 1000;
    max-width: 300px;
}

.notification.error {
    background: #ff4444;
    color: white;
}

.notification.success {
    background: #4CAF50;
    color: white;
}

/* Подсветка ошибок */
input:invalid {
    border-color: #ff4444 !important;
}

input:valid {
    border-color: #4CAF50 !important;
}