/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: #0a0e27;
    color: #e4e7eb;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.page-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Container */
.container {
    max-width: 650px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
    flex: 1;
}

/* Test Mode Banner */
.test-mode-banner {
    background: linear-gradient(135deg, #ffd700, #ffaa00);
    color: #000;
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    font-weight: 600;
    box-shadow: 0 4px 20px rgba(255, 193, 7, 0.3);
}

.banner-icon {
    width: 24px;
    height: 24px;
    stroke-width: 2.5;
}

/* Header */
.page-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

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

.logo {
    width: 100px;
    height: 100px;
    filter: drop-shadow(0 10px 30px rgba(102, 126, 234, 0.4));
}

.page-header h1 {
    font-size: 2.25rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.subtitle {
    font-size: 1.05rem;
    color: #9ca3af;
    font-weight: 500;
}

/* Donation Panel */
.donation-panel {
    background: linear-gradient(135deg, #1a1f3a 0%, #151829 100%);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Form Sections */
.form-section {
    margin-bottom: 2rem;
}

.form-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
    font-size: 0.9rem;
    color: #e4e7eb;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.label-icon {
    width: 20px;
    height: 20px;
    stroke-width: 2.5;
    color: #667eea;
}

/* Form Inputs */
.form-input,
.form-textarea {
    width: 100%;
    padding: 1rem 1.25rem;
    background: rgba(15, 23, 42, 0.6);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: #e4e7eb;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: rgba(228, 231, 235, 0.4);
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: #667eea;
    background: rgba(15, 23, 42, 0.8);
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
    line-height: 1.6;
}

/* Amount Grid */
.amount-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
    margin-top: 0.75rem;
}

.amount-btn {
    position: relative;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: #e4e7eb;
    font-weight: 700;
    font-size: 1.05rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.amount-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.amount-btn.selected {
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-color: transparent;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.amount-popular {
    border-color: #ffd700;
}

.popular-badge {
    position: absolute;
    top: -10px;
    right: -10px;
    background: linear-gradient(135deg, #ffd700, #ffaa00);
    color: #000;
    font-size: 0.65rem;
    padding: 0.25rem 0.5rem;
    border-radius: 8px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Character Counter */
.char-counter-wrapper {
    margin-top: 0.75rem;
}

.char-counter {
    font-size: 0.9rem;
    color: #9ca3af;
    margin-bottom: 0.5rem;
    text-align: right;
}

.char-bar {
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
}

.char-bar-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #667eea, #764ba2);
    transition: all 0.3s ease;
    border-radius: 10px;
}

.char-bar-fill.warning {
    background: linear-gradient(90deg, #ffd700, #ffaa00);
}

.char-bar-fill.danger {
    background: linear-gradient(90deg, #f45c43, #eb3349);
}

/* PayPal Container */
.paypal-container {
    margin-top: 2rem;
}

/* Submit Button */
.btn-submit {
    width: 100%;
    padding: 1.25rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 12px;
    color: #fff;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 2rem;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.5);
}

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

.btn-icon {
    width: 24px;
    height: 24px;
    stroke-width: 2.5;
}

/* Messages */
.message {
    display: none;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    border-radius: 12px;
    margin-top: 1.5rem;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-success {
    background: rgba(56, 239, 125, 0.1);
    border: 2px solid rgba(56, 239, 125, 0.3);
    color: #38ef7d;
}

.message-error {
    background: rgba(244, 92, 67, 0.1);
    border: 2px solid rgba(244, 92, 67, 0.3);
    color: #f45c43;
}

.message-icon {
    width: 32px;
    height: 32px;
    stroke-width: 2.5;
    flex-shrink: 0;
}

.message strong {
    display: block;
    font-size: 1.05rem;
    margin-bottom: 0.25rem;
}

.message p {
    opacity: 0.9;
    font-size: 0.95rem;
}

/* Footer */
.page-footer {
    text-align: center;
    padding: 2rem 1.5rem;
    margin-top: 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #9ca3af;
    font-size: 0.95rem;
}

.page-footer a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
    padding: 0.25rem 0.5rem;
    border-radius: 5px;
}

.page-footer a:hover {
    background: rgba(102, 126, 234, 0.1);
    color: #764ba2;
}

.footer-separator {
    margin: 0 0.75rem;
    opacity: 0.5;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    background: linear-gradient(135deg, #1a1f3a 0%, #151829 100%);
    margin: 5% auto;
    padding: 2.5rem;
    border-radius: 20px;
    max-width: 600px;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    font-size: 2rem;
    font-weight: bold;
    color: #e4e7eb;
    cursor: pointer;
    transition: transform 0.2s ease;
    line-height: 1;
}

.close:hover {
    transform: scale(1.1);
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 1.5rem 1rem;
    }
    
    .page-header h1 {
        font-size: 1.75rem;
    }
    
    .donation-panel {
        padding: 2rem 1.5rem;
    }
    
    .amount-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .modal-content {
        margin: 10% 1rem;
        padding: 2rem 1.5rem;
    }
}

@media (max-width: 480px) {
    .page-header h1 {
        font-size: 1.5rem;
    }
    
    .logo {
        width: 80px;
        height: 80px;
    }
    
    .donation-panel {
        padding: 1.5rem 1rem;
    }
    
    .amount-grid {
        gap: 0.5rem;
    }
    
    .amount-btn {
        padding: 0.75rem;
        font-size: 0.95rem;
    }
}
