/* Stored Cards Page Styles */

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.card-item {
    background: linear-gradient(135deg, #3b82f6 0%, #1e40af 100%);
    border: 1px solid #334155;
    padding: 25px;
    color: white;
    position: relative;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card-brand {
    font-size: 18px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.card-number {
    font-size: 20px;
    font-family: 'Courier New', monospace;
    letter-spacing: 2px;
    margin: 15px 0;
}

.card-holder {
    font-size: 14px;
    text-transform: uppercase;
    margin: 10px 0;
}

.card-expiry {
    font-size: 14px;
    margin: 5px 0;
}

.card-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.card-actions button {
    flex: 1;
    padding: 10px;
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.2s;
}

.btn-charge {
    background: white;
    color: #3b82f6;
}

.btn-charge:hover {
    background: #f1f5f9;
}

.btn-delete {
    background: transparent;
    color: white;
    border: 1px solid rgba(255,255,255,0.3);
}

.btn-delete:hover {
    background: rgba(239, 68, 68, 0.3);
    border-color: #ef4444;
}

.card-meta {
    font-size: 12px;
    opacity: 0.9;
    margin-top: 10px;
}

.add-card-section {
    background: #1e293b;
    border: 1px solid #334155;
    padding: 30px;
    margin: 30px 0;
}

.add-card-section h2 {
    font-size: 24px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 0 0 10px 0;
    color: #f1f5f9;
}

.add-card-section p {
    color: #94a3b8;
    margin-bottom: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    background: #1e293b;
    border: 1px solid #334155;
    margin: 30px 0;
}

.empty-state h3 {
    color: #f1f5f9;
    font-size: 24px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 10px;
}

.empty-state p {
    color: #94a3b8;
}

/* Charge Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: #1e293b;
    border: 1px solid #334155;
    padding: 30px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.modal-header h2 {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #f1f5f9;
}

.close-modal {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #94a3b8;
    transition: color 0.2s;
}

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

#storageNote {
    background: #0f172a;
    border-left: 4px solid #3b82f6;
    padding: 12px;
    margin-bottom: 20px;
    color: #cbd5e1;
}

#storageNote strong {
    color: #3b82f6;
}
