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

:root {
    --primary: #3b82f6;
    --primary-hover: #2563eb;
    --dark: #0f172a;
    --darker: #020617;
    --gray: #1e293b;
    --light-gray: #334155;
    --white: #f8fafc;
    --success: #10b981;
}

body {
    font-family: 'Inter', -apple-system, system-ui, sans-serif;
    background: var(--dark);
    color: var(--white);
    line-height: 1.6;
    min-height: 100vh;
}

header {
    background: linear-gradient(135deg, var(--darker) 0%, var(--gray) 100%);
    border-bottom: 1px solid rgba(59, 130, 246, 0.1);
    padding: 24px 0;
    backdrop-filter: blur(20px);
}

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

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

.logo {
    font-size: 24px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary), #93c5fd);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.donate-btn,
.back-btn {
    background: linear-gradient(135deg, var(--primary), var(--primary-hover));
    color: var(--white);
    padding: 12px 32px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.3);
}

.donate-btn:hover,
.back-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(59, 130, 246, 0.5);
}

main {
    padding: 80px 0;
}

.stats {
    display: flex;
    justify-content: center;
    margin-bottom: 60px;
}

.stat {
    text-align: center;
    padding: 40px 60px;
    background: linear-gradient(135deg, var(--gray), var(--light-gray));
    border-radius: 20px;
    border: 1px solid rgba(59, 130, 246, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.stat-value {
    font-size: 72px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary), #93c5fd);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.donors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

.donor-card {
    background: linear-gradient(135deg, var(--gray), var(--light-gray));
    border: 1px solid rgba(59, 130, 246, 0.1);
    border-radius: 16px;
    padding: 32px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.donor-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), transparent);
}

.donor-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(59, 130, 246, 0.2);
    border-color: rgba(59, 130, 246, 0.3);
}

.donor-name {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--white);
}

.donor-amount {
    font-size: 32px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--success), #34d399);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 16px;
}

.donor-message {
    color: rgba(255, 255, 255, 0.5);
    font-style: italic;
    margin-bottom: 16px;
    font-size: 14px;
}

.donor-date {
    color: rgba(255, 255, 255, 0.4);
    font-size: 13px;
}

.donate-card {
    max-width: 500px;
    margin: 0 auto;
    background: linear-gradient(135deg, var(--gray), var(--light-gray));
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 24px;
    padding: 48px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.form-group {
    margin-bottom: 24px;
}

input,
select,
textarea {
    width: 100%;
    padding: 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: var(--white);
    font-size: 16px;
    font-family: inherit;
    transition: all 0.3s ease;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

input::placeholder,
textarea::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

select option {
    background: var(--gray);
    color: var(--white);
}

textarea {
    resize: none;
}

.btn-primary,
.btn-secondary {
    width: 100%;
    padding: 16px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-hover));
    color: var(--white);
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(59, 130, 246, 0.5);
}

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

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

.loading {
    text-align: center;
    padding: 60px;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(59, 130, 246, 0.2);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto;
}

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

.result {
    text-align: center;
    margin-top: 32px;
}

.success-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--success), #34d399);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    color: white;
    margin: 0 auto 32px;
    box-shadow: 0 8px 32px rgba(16, 185, 129, 0.3);
}

.expiry-notice {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    margin-bottom: 24px;
    padding: 12px;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 8px;
}

.address-display {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 32px;
}

.address-display code {
    display: block;
    color: var(--primary);
    font-size: 14px;
    word-break: break-all;
    margin-bottom: 16px;
    font-family: 'Courier New', monospace;
}

.copy-btn {
    background: rgba(59, 130, 246, 0.2);
    color: var(--primary);
    border: 1px solid rgba(59, 130, 246, 0.3);
    padding: 8px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.copy-btn:hover {
    background: rgba(59, 130, 246, 0.3);
}

.empty {
    text-align: center;
    padding: 80px 20px;
}

.empty p {
    font-size: 24px;
    color: rgba(255, 255, 255, 0.3);
    margin-bottom: 32px;
}

.error {
    text-align: center;
    padding: 40px;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 12px;
    margin-top: 32px;
}

.error p {
    color: #ef4444;
    margin-bottom: 24px;
}

.notification {
    position: fixed;
    top: 24px;
    right: 24px;
    background: linear-gradient(135deg, var(--gray), var(--light-gray));
    border: 1px solid rgba(59, 130, 246, 0.3);
    padding: 16px 24px;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    z-index: 1000;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@media (max-width: 768px) {
    .stat {
        padding: 32px 48px;
    }

    .stat-value {
        font-size: 56px;
    }

    .donors-grid {
        grid-template-columns: 1fr;
    }

    .donate-card {
        padding: 32px 24px;
    }

    .logo {
        font-size: 20px;
    }

    .donate-btn,
    .back-btn {
        padding: 10px 24px;
        font-size: 14px;
    }
}
