/* Reset and base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 50%, #fef3c7 100%);
    min-height: 100vh;
}

/* Header */
.header {
    background: linear-gradient(90deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
    padding: 80px 24px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.header::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNjAiIGhlaWdodD0iNjAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGRlZnM+PHBhdHRlcm4gaWQ9ImdyaWQiIHdpZHRoPSI2MCIgaGVpZ2h0PSI2MCIgcGF0dGVyblVuaXRzPSJ1c2VyU3BhY2VPblVzZSI+PHBhdGggZD0iTSAxMCAwIEwgMCAwIDAgMTAiIGZpbGw9Im5vbmUiIHN0cm9rZT0id2hpdGUiIHN0cm9rZS1vcGFjaXR5PSIwLjAzIiBzdHJva2Utd2lkdGg9IjEiLz48L3BhdHRlcm4+PC9kZWZzPjxyZWN0IHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiIGZpbGw9InVybCgjZ3JpZCkiLz48L3N2Zz4=');
    opacity: 0.4;
}

.header-content {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

.icon-box {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    border-radius: 16px;
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    box-shadow: 0 20px 40px rgba(245, 158, 11, 0.3);
    margin-bottom: 24px;
}

h1 {
    font-size: 56px;
    font-weight: 700;
    color: white;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.subtitle {
    font-size: 20px;
    color: #cbd5e1;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Container */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 64px 24px;
}

/* Stats */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-bottom: 48px;
}

.stat-card {
    background: white;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0.5;
}

.stat-card.total::before {
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
}

.stat-card.active::before {
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
}

.stat-card.inactive::before {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.stat-content {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.stat-label {
    font-size: 14px;
    color: #64748b;
    font-weight: 500;
    margin-bottom: 8px;
}

.stat-value {
    font-size: 48px;
    font-weight: 700;
    color: #0f172a;
}

.stat-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.stat-card.total .stat-icon {
    background: linear-gradient(135deg, #475569 0%, #1e293b 100%);
}

.stat-card.active .stat-icon {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.stat-card.inactive .stat-icon {
    background: linear-gradient(135deg, #94a3b8 0%, #64748b 100%);
}

/* Section */
.section-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.section-title {
    font-size: 32px;
    font-weight: 700;
    color: #0f172a;
}

/* Accounts */
.accounts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 24px;
}

.account-card {
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 20px;
    padding: 32px;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.account-card:hover {
    border-color: #fbbf24;
    box-shadow: 0 20px 60px rgba(251, 191, 36, 0.1);
    transform: translateY(-4px);
}

.account-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 50%, #fef3c7 100%);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.account-card:hover::before {
    opacity: 1;
}

.account-header {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 24px;
}

.account-info {
    display: flex;
    align-items: center;
    gap: 16px;
}

.account-number {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
    box-shadow: 0 8px 16px rgba(15, 23, 42, 0.3);
}

.account-details h3 {
    font-size: 20px;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 4px;
}

.account-details p {
    font-size: 14px;
    color: #64748b;
}

.badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.badge.active {
    background: #10b981;
    color: white;
}

.badge.inactive {
    background: #cbd5e1;
    color: #475569;
}

.account-number-display {
    position: relative;
    margin-bottom: 24px;
    font-family: monospace;
    color: #64748b;
    font-size: 14px;
}

.request-button {
    position: relative;
    width: 100%;
    padding: 20px 24px;
    background: linear-gradient(90deg, #1e293b 0%, #0f172a 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 16px rgba(15, 23, 42, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.request-button:hover {
    background: linear-gradient(90deg, #0f172a 0%, #000000 100%);
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.4);
}

.request-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: 24px;
    padding: 48px;
    max-width: 480px;
    width: 100%;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    text-align: center;
}

.modal-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    margin: 0 auto 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    box-shadow: 0 12px 24px rgba(245, 158, 11, 0.3);
}

.modal-title {
    font-size: 28px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 16px;
}

.modal-description {
    color: #64748b;
    margin-bottom: 32px;
    line-height: 1.6;
}

.code-input {
    width: 100%;
    padding: 24px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    text-align: center;
    font-size: 32px;
    font-weight: 700;
    letter-spacing: 8px;
    margin-bottom: 24px;
    transition: border-color 0.3s ease;
}

.code-input:focus {
    outline: none;
    border-color: #fbbf24;
}

.verify-button {
    width: 100%;
    padding: 20px;
    background: linear-gradient(90deg, #1e293b 0%, #0f172a 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 16px rgba(15, 23, 42, 0.3);
}

.verify-button:hover {
    background: linear-gradient(90deg, #0f172a 0%, #000000 100%);
}

.close-button {
    margin-top: 16px;
    background: none;
    border: none;
    color: #64748b;
    cursor: pointer;
    font-size: 14px;
}

.modal-message {
    margin-top: 10px;
    font-weight: bold;
    font-size: 14px;
    color: #2c3e50;
}

.modal-message.success {
    color: green;
}

.modal-message.error {
    color: red;
}


@media (max-width: 768px) {
    h1 {
        font-size: 36px;
    }

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

    .modal-content {
        padding: 32px 24px;
    }
}
