/* =====================================================
   GLOBAL RESET
===================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', sans-serif;
    min-height: 100vh;
    background: #f4f6f9;
}

/* =====================================================
   AUTH PAGES
===================================================== */
.auth-body {
    background: linear-gradient(135deg, #141e30, #243b55);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.container {
    background: #ffffff;
    width: 100%;
    max-width: 420px;
    padding: 40px 30px;
    border-radius: 18px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.25);
    text-align: center;
    animation: fadeIn 0.4s ease;
}

input, select {
    width: 100%;
    padding: 12px 14px;
    border-radius: 8px;
    border: 1px solid #ddd;
    font-size: 14px;
}

button, .btn {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #0072ff, #0056d2);
    border: none;
    border-radius: 8px;
    color: white;
    cursor: pointer;
}

/* =====================================================
   LAYOUT
===================================================== */
.premium-layout {
    display: flex;
    min-height: 100vh;
    background: linear-gradient(135deg, #141e30, #243b55);
}

/* SIDEBAR */
.premium-sidebar {
    width: 250px;
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(12px);
    color: white;
    padding: 30px 20px;
}

.premium-nav {
    list-style: none;
    margin-top: 30px;
}

.premium-nav li {
    padding: 12px;
    border-radius: 10px;
    transition: 0.3s;
}

.premium-nav li:hover,
.premium-nav li.active {
    background: rgba(255,255,255,0.15);
}

.premium-nav a {
    color: white;
    text-decoration: none;
}

/* MAIN */
.premium-main {
    flex: 1;
    padding: 40px;
    color: white;
}

/* =====================================================
   PROFILE HEADER
===================================================== */
.premium-profile-card {
    background: rgba(255,255,255,0.08);
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    margin-bottom: 40px;
}

.profile-large-premium {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    border: 4px solid white;
    margin-bottom: 15px;
}

/* =====================================================
   SECTIONS
===================================================== */
.profile-section {
    margin-bottom: 40px;
}

.profile-section h3 {
    margin-bottom: 15px;
}

/* DATA CARD */
.data-card {
    background: rgba(255,255,255,0.1);
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 12px;
}

/* BUTTON */
.add-btn {
    display: inline-block;
    margin-top: 10px;
    padding: 8px 16px;
    background: linear-gradient(135deg, #00c6ff, #0072ff);
    border-radius: 10px;
    color: white;
    text-decoration: none;
}

/* =====================================================
   BANK TABS (FINAL CLEAN)
===================================================== */
.sub-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.sub-tab {
    padding: 8px 18px;
    border-radius: 20px;
    border: none;
    background: rgba(255,255,255,0.1);
    color: white;
    cursor: pointer;
}

.sub-tab.active {
    background: linear-gradient(135deg, #00c6ff, #0072ff);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* BANK CARD */
.bank-card {
    display: flex;
    align-items: center;
    gap: 15px;
}

.bank-logo {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid white;
}

/* =====================================================
   ANIMATION
===================================================== */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* =====================================================
   RESPONSIVE
===================================================== */
@media (max-width: 768px) {

    .premium-layout {
        flex-direction: column;
    }

    .premium-sidebar {
        width: 100%;
    }

    .premium-main {
        padding: 20px;
    }
}
/* BANK GRID */
.bank-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

/* CARD */
.bank-card-ui {
    background: rgba(255,255,255,0.1);
    padding: 20px;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    color: white;
    box-shadow: 0 10px 25px rgba(0,0,0,0.25);
    transition: 0.3s;
}

.bank-card-ui:hover {
    transform: translateY(-6px);
}

/* LOGO */
.bank-logo {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 10px;
}

/* TYPE BADGE */
.bank-type {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    margin-bottom: 10px;
    font-weight: bold;
}

/* COLORS */
.savings {
    background: #28a745;
}

.current {
    background: #dc3545;
}

/* DETAILS */
.bank-details p {
    font-size: 13px;
    margin: 3px 0;
}

/* RESPONSIVE */
@media (max-width: 1000px) {
    .bank-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .bank-grid {
        grid-template-columns: 1fr;
    }
}
/* CARD BASE */
.bank-card-ui {
    padding: 20px;
    border-radius: 15px;
    color: white;
    box-shadow: 0 10px 25px rgba(0,0,0,0.25);
    transition: 0.3s;
}

.bank-card-ui:hover {
    transform: translateY(-6px);
}

/* GREEN = SAVINGS */
.bank-card-ui.savings {
    background: linear-gradient(135deg, #28a745, #1e7e34);
}

/* RED = CURRENT */
.bank-card-ui.current {
    background: linear-gradient(135deg, #dc3545, #a71d2a);
}

/* LOGO */
.bank-logo {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 10px;
    border: 2px solid white;
}

/* DETAILS */
.bank-details p {
    font-size: 13px;
    margin: 4px 0;
}
/* CREDIT CARD STYLE */
.credit-card {
    background: linear-gradient(135deg, #1e3c72, #2a5298);
}
.balance {
    margin-top: 10px;
    font-size: 18px;
    font-weight: bold;
    background: rgba(255,255,255,0.2);
    padding: 6px 10px;
    border-radius: 8px;
    display: inline-block;
}
.balance input {
    padding: 4px;
    border-radius: 5px;
    border: none;
}

.balance button {
    margin-left: 5px;
    background: green;
    color: white;
    border: none;
    padding: 4px 8px;
    border-radius: 5px;
    cursor: pointer;
}
.credit {
    color: green;
    font-weight: bold;
}

.debit {
    color: red;
    font-weight: bold;
}
.tabs {
    display: flex;
    gap: 10px;
    margin: 20px 0;
}

/* 🔥 FIX */
.tab-btn {
    display: inline-block;
    width: auto;              /* 🔥 REMOVE FULL WIDTH */
    padding: 10px 20px;
    border: none;
    background: green;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
}

/* ACTIVE TAB */
.tab-btn.active {
    background: inear-gradient(135deg, #1e3c72, #2a5298);
    color: white;
}