/* ========================================
   MAHALLA BANK APP
   ======================================== */

.bank-header {
    padding: 20px;
    background: #ffffff;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

.add-card-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 8px 14px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s;
}

.add-card-btn:active {
    transform: scale(0.95);
}

.selection-card.bank {
    background: linear-gradient(135deg, #ffffff 0%, #f0fdf4 100%);
}

.selection-card.bank .card-icon-large {
    background: #dcfce7;
}

.bank-main {
    padding-top: 20px;
}

.bank-section-title {
    font-size: 1.1rem;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 16px;
    padding: 0 20px;
}

.cards-carousel {
    display: flex;
    gap: 15px;
    padding: 0 20px 20px;
    overflow-x: auto;
    scrollbar-width: none;
}

.cards-carousel::-webkit-scrollbar {
    display: none;
}

.bank-card-item {
    min-width: 280px;
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    color: white;
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 10px 25px rgba(30, 41, 59, 0.2);
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.bank-card-item.style-2 {
    background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.2);
}

.bank-card-item.style-3 {
    background: linear-gradient(135deg, #10b981 0%, #34d399 100%);
    box-shadow: 0 10px 25px rgba(16, 185, 129, 0.2);
}

.card-decor {
    position: absolute;
    width: 150px;
    height: 150px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    top: -50px;
    right: -50px;
}

.card-balance {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 24px;
    z-index: 1;
    position: relative;
}

.card-balance span {
    font-size: 0.9rem;
    font-weight: 500;
    opacity: 0.8;
}

.card-num {
    font-family: monospace;
    font-size: 1.1rem;
    letter-spacing: 2px;
    margin-bottom: 8px;
    z-index: 1;
    position: relative;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.card-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 1;
    position: relative;
    opacity: 0.8;
}

.bank-actions {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    padding: 0 20px;
}

.action-btn {
    background: white;
    border-radius: 16px;
    padding: 15px 10px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
    transition: all 0.2s;
    cursor: pointer;
}

.action-btn:active {
    transform: scale(0.95);
}

.action-icon {
    width: 44px;
    height: 44px;
    margin: 0 auto 10px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.action-btn span {
    font-size: 0.75rem;
    font-weight: 600;
    color: #475569;
}

.transactions-list {
    background: white;
    border-radius: 20px;
    padding: 10px 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
}

.transaction-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 16px 0;
    border-bottom: 1px solid #f1f5f9;
}

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

.t-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.t-icon.bg-red {
    background: #fee2e2;
    color: #ef4444;
}

.t-icon.bg-green {
    background: #ecfdf5;
    color: #10b981;
}

.t-info {
    flex: 1;
}

.t-info h4 {
    font-size: 0.95rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 4px;
}

.t-info p {
    font-size: 0.75rem;
    color: #94a3b8;
}

.t-amount {
    font-weight: 800;
    font-size: 0.95rem;
}

.t-amount.negative {
    color: #1e293b;
}

.t-amount.positive {
    color: #10b981;
}

.add-card-empty {
    min-width: 280px;
    background: transparent;
    border: 2px dashed #cbd5e1;
    color: #64748b;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.2s;
    padding: 30px;
}

.add-card-empty:active {
    background: #f8fafc;
}

.add-card-empty i {
    font-size: 2rem;
    color: #94a3b8;
}