/* ===== БАЗОВЫЕ СТИЛИ ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* ===== HEADER ===== */
.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    font-size: 2.5rem;
    background: linear-gradient(45deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 5px;
}

.logo p {
    color: #666;
    font-size: 1.1rem;
}

.balance-info {
    display: flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(45deg, #f093fb, #f5576c);
    color: white;
    padding: 12px 20px;
    border-radius: 15px;
    font-weight: bold;
}

.balance-info i {
    font-size: 1.2rem;
}

/* ===== MAIN CONTENT ===== */
.main-content {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.donate-form {
    max-width: 800px;
    margin: 0 auto;
}

/* ===== FORM SECTIONS ===== */
.form-section {
    margin-bottom: 35px;
}

.form-section h2 {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.4rem;
    margin-bottom: 20px;
    color: #333;
}

.form-section h2 i {
    color: #667eea;
    font-size: 1.2rem;
}

/* ===== INPUT GROUP ===== */
.input-group {
    position: relative;
    margin-bottom: 15px;
}

.input-group input,
.input-group select {
    width: 100%;
    padding: 15px 50px 15px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    background: white;
}

.input-group input:focus,
.input-group select:focus {
    border-color: #667eea;
    outline: none;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.input-icon {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    pointer-events: none;
}

.error-message {
    color: #e74c3c;
    font-size: 0.9rem;
    margin-top: 5px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.error-message::before {
    content: '⚠';
}

/* ===== AMOUNT INPUT ===== */
.amount-input-container {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 15px;
    border: 1px solid #e9ecef;
    margin-bottom: 25px;
}

.currency-selector {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.currency-selector label {
    font-weight: 600;
    color: #555;
}

.currency-selector select {
    padding: 10px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    background: white;
    font-size: 1rem;
    min-width: 130px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.currency-selector select:focus {
    border-color: #667eea;
    outline: none;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.amount-input-wrapper {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.amount-input-wrapper input {
    padding: 15px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.amount-input-wrapper input:focus {
    border-color: #667eea;
    outline: none;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.amount-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: white;
    border-radius: 10px;
    border: 1px solid #e9ecef;
}

.coins-display {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.1rem;
    font-weight: bold;
    color: #667eea;
}

.coins-display i {
    font-size: 1.2rem;
}

.rate-info {
    font-size: 0.9rem;
    color: #666;
}

/* ===== QUICK AMOUNTS ===== */
.quick-amounts h3 {
    margin-bottom: 20px;
    color: #333;
    font-size: 1.2rem;
}

.quick-amount-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
}

.quick-amount-btn {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.quick-amount-btn:hover {
    border-color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.2);
}

.quick-amount-btn.active {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    border-color: #667eea;
}

.quick-amount-btn .amount {
    font-size: 1.3rem;
    font-weight: bold;
}

.quick-amount-btn .currency {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* ===== PAYMENT METHODS ===== */
.payment-methods {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
}

.payment-option {
    cursor: pointer;
    transition: all 0.3s ease;
}

.payment-option input[type="radio"] {
    display: none;
}

.payment-card {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: all 0.3s ease;
}

.payment-option:hover .payment-card {
    border-color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.2);
}

.payment-option.active .payment-card {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    border-color: #667eea;
}

.payment-icon {
    width: 60px;
    height: 60px;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #667eea;
}

.payment-option.active .payment-icon {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.payment-info h3 {
    margin-bottom: 5px;
    font-size: 1.2rem;
}

.payment-info p {
    opacity: 0.8;
    font-size: 0.9rem;
}

/* ===== FORM ACTIONS ===== */
.form-actions {
    text-align: center;
    margin-top: 40px;
}

.donate-btn {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    border: none;
    padding: 18px 50px;
    border-radius: 12px;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

.donate-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
}

.donate-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    opacity: 0.6;
}

/* ===== MODALS ===== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.modal-content {
    position: relative;
    background: white;
    border-radius: 20px;
    max-width: 600px;
    margin: 50px auto;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 30px;
    border-bottom: 1px solid #e9ecef;
}

.modal-header h3 {
    font-size: 1.5rem;
    color: #333;
}

.modal-close {
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: #999;
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: #333;
}

.modal-body {
    padding: 30px;
}

/* ===== ORDER SUMMARY ===== */
.order-summary {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 25px;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #e9ecef;
}

.summary-item:last-child {
    border-bottom: none;
}

.summary-item .label {
    font-weight: 600;
    color: #555;
}

.summary-item .value {
    font-weight: bold;
    color: #333;
}

/* ===== TIMER ===== */
.timer-section {
    text-align: center;
    margin-bottom: 25px;
}

.timer {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #fff3cd;
    color: #856404;
    padding: 12px 20px;
    border-radius: 10px;
    font-weight: 600;
}

.timer i {
    font-size: 1.1rem;
}

/* ===== PAYMENT SECTION ===== */
.payment-section {
    margin-bottom: 25px;
}

.payment-details {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 12px;
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.loading {
    display: flex;
    align-items: center;
    gap: 15px;
    color: #666;
}

.loading i {
    font-size: 1.5rem;
}

.qr-code {
    text-align: center;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
}

.payment-actions {
    text-align: center;
}

.btn-check {
    background: #28a745;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-check:hover {
    background: #218838;
    transform: translateY(-1px);
}

/* ===== SUCCESS/ERROR MODALS ===== */
.modal-content.success {
    text-align: center;
    padding: 40px;
}

.success-icon {
    font-size: 4rem;
    color: #28a745;
    margin-bottom: 20px;
}

.modal-content.success h3 {
    color: #28a745;
    margin-bottom: 10px;
}

.modal-content.error {
    text-align: center;
    padding: 40px;
}

.error-icon {
    font-size: 4rem;
    color: #dc3545;
    margin-bottom: 20px;
}

.modal-content.error h3 {
    color: #dc3545;
    margin-bottom: 10px;
}

.modal-content.warning {
    text-align: center;
    padding: 40px;
}

.warning-icon {
    font-size: 4rem;
    color: #ffc107;
    margin-bottom: 20px;
}

.modal-content.warning h3 {
    color: #ffc107;
    margin-bottom: 10px;
}

.btn-close {
    background: #6c757d;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 20px;
}

.btn-close:hover {
    background: #5a6268;
    transform: translateY(-1px);
}

/* ===== FREEKASSA WIDGET ===== */
.freekassa-widget-container {
    background: white;
    border-radius: 12px;
    padding: 25px;
    text-align: center;
}

.widget-info {
    margin-bottom: 20px;
}

.widget-info p {
    margin-bottom: 8px;
    color: #666;
}

.widget-info strong {
    color: #333;
}

.widget-frame {
    margin: 20px 0;
    display: flex;
    justify-content: center;
}

.widget-frame iframe {
    max-width: 100%;
    height: auto;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.widget-instructions {
    margin-top: 15px;
    font-size: 0.9rem;
    color: #666;
}

.widget-info {
    margin-bottom: 25px;
}

.widget-info p {
    margin-bottom: 10px;
    color: #666;
}

.widget-info strong {
    color: #333;
}

.btn-pay {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    border: none;
    padding: 15px 40px;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.btn-pay:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
}

.payment-methods-info {
    font-size: 0.9rem;
    color: #666;
}

/* ===== CRYPTO INFO ===== */
.crypto-info {
    background: white;
    border-radius: 12px;
    padding: 25px;
}

.crypto-address {
    margin-bottom: 20px;
}

.crypto-address strong {
    display: block;
    margin-bottom: 10px;
    color: #333;
}

.crypto-address code {
    background: #f8f9fa;
    padding: 10px;
    border-radius: 6px;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    word-break: break-all;
    display: block;
    margin-bottom: 10px;
}

.btn-copy {
    background: #667eea;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 6px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.btn-copy:hover {
    background: #5a6fd8;
}

.crypto-currencies {
    margin-bottom: 15px;
}

.crypto-currencies strong {
    color: #333;
}

.crypto-instructions {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.5;
}

/* ===== ANIMATIONS ===== */
@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

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

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

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    .header-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .main-content {
        padding: 20px;
    }
    
    .quick-amount-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .modal-content {
        margin: 20px;
        max-height: 95vh;
    }
    
    .modal-header,
    .modal-body {
        padding: 20px;
    }
    
    .payment-card {
        padding: 15px;
        gap: 15px;
    }
    
    .payment-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .logo h1 {
        font-size: 2rem;
    }
    
    .form-section h2 {
        font-size: 1.2rem;
    }
    
    .quick-amount-grid {
        grid-template-columns: 1fr;
    }
    
    .amount-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}
