/* ==========================================================================
   PART 2: TCF PREMIUM CARD (OVERLAP DESIGN) & 4 BOTTOM BUTTONS
   ========================================================================== */

/* --- 1. TCF PREMIUM CARD (COMPACT & OVERLAP) --- */
.tcf-premium-card-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 15px 20px 15px;
    width: 100%;
    box-sizing: border-box;
    margin-top: -70px; /* 🔥 OVERLAP MAGIC */
    position: relative;
    z-index: 10;
}

.tcf-card {
    background: linear-gradient(135deg, #001f5c 0%, #000c24 100%);
    border-radius: 16px;
    padding: 15px 20px;
    width: 100%;
    max-width: 380px;
    color: #ffffff;
    box-shadow: 0 15px 35px rgba(0, 12, 36, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(212, 175, 55, 0.4); 
}

.tcf-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: radial-gradient(circle at 50% 0%, rgba(255,255,255,0.05) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
}

.tcf-card-top { display: flex; justify-content: space-between; align-items: flex-start; position: relative; z-index: 1; margin-bottom: 15px; }
.tcf-chip { width: 35px; height: auto; filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3)); }
.tcf-card-brand { text-align: right; }
.tcf-brand-title { display: block; color: #FFD700; font-weight: 800; font-size: 1.05em; letter-spacing: 1px; text-shadow: 0 1px 3px rgba(0,0,0,0.5); line-height: 1.1; }
.tcf-brand-subtitle { display: block; font-size: 0.6em; color: #e0e0e0; font-style: italic; letter-spacing: 0.5px; }

.tcf-card-middle { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; position: relative; z-index: 1; }
.tcf-funds-section { flex: 1; }
.tcf-funds-label { font-size: 0.65em; color: #b0c4de; letter-spacing: 1px; margin: 0 0 2px 0; text-transform: uppercase; }
.tcf-funds-value-wrapper { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.tcf-currency { font-size: 1.4em; font-weight: 700; }
.tcf-amount { font-size: 1.6em; font-weight: 800; letter-spacing: 1px; text-shadow: 0 2px 5px rgba(0,0,0,0.5); }
.tcf-amount.masked { letter-spacing: 3px; font-size: 1.5em; }
.tcf-eye-icon { width: 18px; height: 18px; color: #FFD700; opacity: 0.8; }

.tcf-stats-section { text-align: right; border-left: 1px solid rgba(255,255,255,0.1); padding-left: 12px; }
.tcf-stat { margin-bottom: 4px; line-height: 1.1; }
.tcf-stat span { display: block; font-size: 0.5em; color: #b0c4de; text-transform: uppercase; letter-spacing: 0.5px; }
.tcf-stat strong { display: block; font-size: 0.8em; font-weight: 700; }
.text-red { color: #ff6b6b; }
.text-green { color: #4ade80; }

.tcf-card-bottom { display: flex; justify-content: space-between; align-items: center; margin-top: 15px; position: relative; z-index: 1; }
.tcf-card-number { font-family: 'Courier New', Courier, monospace; font-size: 0.85em; letter-spacing: 2px; color: #d1d5db; text-shadow: 0 1px 2px rgba(0,0,0,0.5); }
.tcf-mastercard-logo { display: flex; align-items: center; }
.circle { width: 20px; height: 20px; border-radius: 50%; opacity: 0.85; }
.circle-red { background-color: #eb001b; z-index: 2; }
.circle-yellow { background-color: #f79e1b; margin-left: -8px; z-index: 1; }

/* --- 2. OLD BUTTONS (Kept for compatibility, can be hidden) --- */
.tcf-action-buttons { display: none; /* 🔥 HIDDEN NOW AS REQUESTED TO MOVE TO NAV/QUICK ACTIONS */ }

/* --- 3. QUICK ACTIONS GRID --- */
.action-cards-section { padding: 0 10px; margin-bottom: 20px; }
.action-cards-section h2 { text-align: center; margin-bottom: 20px; text-transform: uppercase; letter-spacing: 1px; }

.quick-actions-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; justify-items: center; }

.quick-actions-grid .compact-card, #totalMembersCard, #viewPenaltyWalletBtn, #quickActionSip {
    background: linear-gradient(145deg, #1c2b4a, #0b1528) !important; 
    border-radius: 12px !important; padding: 0 !important; margin: 0 !important;
    text-align: center !important; display: flex !important; flex-direction: column !important; 
    align-items: center !important; justify-content: center !important; text-decoration: none !important; 
    width: 100% !important; aspect-ratio: 1 / 1.1 !important; max-width: 85px !important; 
    border: 1px solid rgba(212, 175, 55, 0.4) !important; 
    box-shadow: inset 0 0 10px rgba(255, 215, 0, 0.05), 0 4px 10px rgba(0,0,0,0.2) !important; 
    transition: all 0.3s ease !important; cursor: pointer !important; 
}

.quick-actions-grid .compact-card:hover, #totalMembersCard:hover, #viewPenaltyWalletBtn:hover, #quickActionSip:hover { 
    transform: translateY(-2px) !important; 
    box-shadow: inset 0 0 15px rgba(212, 175, 55, 0.2), 0 6px 15px rgba(0,0,0,0.3) !important; 
    border-color: #FFD700 !important;
}

.quick-actions-grid .compact-icon { width: 26px !important; height: 26px !important; margin-bottom: 6px !important; margin-top: 0 !important; color: #D4AF37 !important; stroke-width: 1.5 !important; filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5)) !important; }
.quick-actions-grid span { font-weight: 500 !important; font-size: 0.7rem !important; line-height: 1.2 !important; color: #f0f0f0 !important; font-family: 'Poppins', sans-serif !important; white-space: normal !important; display: block !important; }

@media (max-width: 380px) {
    .quick-actions-grid { gap: 6px; }
    .quick-actions-grid .compact-icon { width: 22px !important; height: 22px !important; margin-bottom: 4px !important; }
    .quick-actions-grid span { font-size: 0.6rem !important; }
}

/* ==========================================================================
   PART 4: BOTTOM NAVIGATION & TABS (NEW) 🚀
   ========================================================================== */

/* --- Tab Logic --- */
.app-tab { 
    display: none; 
    padding-bottom: 90px; /* Space for fixed bottom nav */
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.app-tab.active-tab { 
    display: block; 
    opacity: 1;
    transform: translateY(0);
}

/* --- Bottom Nav Container --- */
.bottom-nav-container {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60px; /* Fixed height */
    background: #ffffff;
    box-shadow: 0 -5px 25px rgba(0,0,0,0.08);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 1000;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    padding-bottom: env(safe-area-inset-bottom); /* iPhone X Safe Area */
    border-top: 1px solid rgba(0,0,0,0.05);
}

/* --- Nav Item --- */
/* --- Nav Item --- */
.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #a0aec0; /* Inactive Color */
    cursor: pointer;
    flex: 1;
    height: 100%;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    -webkit-tap-highlight-color: transparent;

    /* यह नया कोड जोड़ना है 👇 */
    -webkit-user-select: none; /* Safari/Chrome के लिए */
    user-select: none; /* टेक्स्ट सेलेक्ट होने से रोकेगा */
    -webkit-touch-callout: none; /* लॉन्ग प्रेस करने पर जो पॉपअप आता है उसे रोकेगा */
}


.nav-item.active {
    color: var(--primary-color);
}

.nav-icon {
    width: 22px;
    height: 22px;
    margin-bottom: 4px;
    stroke-width: 2px;
    transition: transform 0.2s;
}

.nav-item.active .nav-icon {
    transform: translateY(-2px);
    fill: rgba(0, 35, 102, 0.05); /* Subtle fill on active */
}

.nav-text {
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.3px;
}

.nav-item.active .nav-text {
    font-weight: 700;
}

/* --- Center Floating Button (Apply) --- */
.nav-center-btn {
    width: 58px;
    height: 58px;
    background: linear-gradient(145deg, var(--primary-color), #001540);
    border-radius: 50%;
    margin-top: -25px; /* Pulls it up */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(0, 35, 102, 0.4);
    border: 5px solid var(--bg-color); /* Matches background to create 'cutout' effect */
    color: var(--accent-gold);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    position: relative;
    z-index: 1002;
}

.nav-item:active .nav-center-btn {
    transform: scale(0.92);
    box-shadow: 0 4px 10px rgba(0, 35, 102, 0.3);
}

/* ==========================================================================
   PART 5: GATEKEEPER PROFILE & HISTORY UI (NEW)
   ========================================================================== */

/* --- Gatekeeper (Lock Screen) --- */
.gatekeeper-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 80vh;
    padding: 20px;
    text-align: center;
    background: linear-gradient(180deg, #f4f6f9 0%, #ffffff 100%);
}

.gk-avatar {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    border: 4px solid #fff;
    outline: 3px solid var(--accent-gold);
    margin-bottom: 15px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    object-fit: cover;
    background-color: #eee;
}

.gk-name {
    font-size: 1.6em;
    color: var(--primary-color);
    font-weight: 800;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.gk-role {
    color: #D4AF37;
    font-size: 0.9em;
    margin-bottom: 25px;
    font-weight: 600;
    background: rgba(212, 175, 55, 0.1);
    padding: 4px 12px;
    border-radius: 20px;
}

.gk-stats {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    background: #fff;
    padding: 20px;
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    width: 100%;
    max-width: 320px;
    justify-content: space-around;
}

.gk-stat-item { text-align: center; }
.gk-label { font-size: 0.7em; color: #718096; text-transform: uppercase; font-weight: 600; display: block; margin-bottom: 4px; }
.gk-value { font-size: 1.1em; font-weight: 700; color: #2d3748; }

.gk-input {
    width: 100%;
    max-width: 260px;
    padding: 14px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    margin-bottom: 15px;
    text-align: center;
    font-size: 1.1em;
    outline: none;
    transition: 0.3s;
    background: #fff;
    color: var(--primary-color);
    font-weight: bold;
}

.gk-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(0,35,102,0.1);
}

.gk-input::placeholder { color: #cbd5e0; font-weight: normal; }

/* History List Styling */
.history-list-item {
    background: #fff;
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    border-left: 4px solid transparent;
}
.history-list-item.income { border-left-color: var(--success-color); }
.history-list-item.expense { border-left-color: var(--danger-color); }

/* EXISTING STYLES FROM PART 3 (PRODUCTS/SLIDERS/MODALS) REMAIN BELOW... */
/* [Previous Product/Modal styles remain unchanged, assumed to be appended if needed] */





/* ==========================================================================
   PART 3: MEMBER CARDS, PRODUCTS, SLIDERS & NOTIFICATIONS
   ========================================================================== */

/* --- MEMBER CARDS SECTION --- */
.bank-members { 
    background: linear-gradient(to bottom, #eef2f8, #ffffff); 
    padding: 30px 0; 
    width: 100%; 
    border-bottom: 1px solid var(--border-color); 
}

.header-container { display: flex; flex-direction: column; align-items: center; padding: 0 15px 20px 15px; max-width: 1140px; margin: 0 auto; gap: 15px; }
.bank-headline { font-size: 1.8em; font-weight: 800; color: var(--primary-color); margin: 0; text-transform: uppercase; }

.header-buttons-wrapper { display: flex; gap: 15px; flex-wrap: wrap; justify-content: center; width: 100%; }


.member-slider { display: flex; gap: 10px; overflow-x: auto; scroll-behavior: smooth; padding: 30px 10px; max-width: 1140px; margin: 0 auto; }


.member-slider::-webkit-scrollbar { height: 6px; }
.member-slider::-webkit-scrollbar-thumb { background-color: var(--accent-gold); border-radius: 4px; }

/* TOP 3 CARDS: SPECIAL CONFIGURATION (GOLD, SILVER, BRONZE) */
.framed-card-wrapper { 
    flex: 0 0 auto; 
    width: 180px; /* Naya 180px width */
    height: 297px; /* 180px ke hisaab se perfect height */
    cursor: pointer; 
    transition: transform 0.3s ease; 
    filter: drop-shadow(0 8px 15px rgba(0,0,0,0.2)); 
    position: relative; 
}




.framed-card-wrapper:hover { transform: translateY(-8px) scale(1.02); filter: drop-shadow(0 12px 20px rgba(212, 175, 55, 0.4)); }
.framed-card-content { position: relative; width: 100%; height: 100%; text-align: center; }
.card-frame-image { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 2; pointer-events: none; }

/* GOLD CARD (RANK 1) */
.gold-card .framed-member-photo { position: absolute; top: 9%; left: 12%; width: 80%; height: 50%; object-fit: cover; border-radius: 6px; z-index: 1; }
.gold-card .framed-info-container { position: absolute; bottom: 14%; left: 7%; width: 90%; z-index: 3; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0px; }
.gold-card .framed-balance-badge { margin-top: 5px; }

/* SILVER CARD (RANK 2) */
.silver-card .framed-member-photo { position: absolute; top: 9%; left: 12%; width: 80%; height: 50%; object-fit: cover; border-radius: 6px; z-index: 1; }

.silver-card .framed-info-container { position: absolute; bottom: 11%; left: 8%; width: 90%; z-index: 3; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0px; }



.silver-card .framed-balance-badge { margin-top: 20px; }

/* BRONZE CARD (RANK 3) */
.bronze-card .framed-member-photo { position: absolute; top: 9%; left: 12%; width: 80%; height: 50%; object-fit: cover; border-radius: 6px; z-index: 1; }
.bronze-card .framed-info-container { position: absolute; bottom: 14%; left: 9%; width: 90%; z-index: 3; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0px; }
.bronze-card .framed-balance-badge { margin-top: 4px; }

.framed-member-name { margin: 2px; font-size: 0.85em; font-weight: 700; text-shadow: 1px 1px 2px rgba(0,0,0,0.9); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; width: 100%; text-transform: capitalize; color: #f0f0f0; margin-bottom: 2px; }

.framed-balance-badge { font-size: 1.3em; font-weight: 900; letter-spacing: 0.5px; text-shadow: 0 2px 4px rgba(0,0,0,0.8); background: transparent; }




.gold-text { color: #FFF8DC; } .gold-bg { color: #FFD700 !important; text-shadow: 0 0 10px rgba(255, 215, 0, 0.6), 0 2px 4px rgba(0,0,0,1) !important; }
.silver-text { color: #F0F8FF; } .silver-bg { color: #E0E0E0 !important; text-shadow: 0 0 10px rgba(224, 224, 224, 0.6), 0 2px 4px rgba(0,0,0,1) !important; }
.bronze-text { color: #FFE4B5; } .bronze-bg { color: #CD7F32 !important; text-shadow: 0 0 10px rgba(205, 127, 50, 0.6), 0 2px 4px rgba(0,0,0,1) !important; }



.framed-prime-tag { position: absolute; top: 60%; right: 11%; background-color: var(--prime-color); color: var(--text-color); padding: 1px 3px; border-radius: 4px; font-size: 0.4em; font-weight: 800; box-shadow: 0 2px 4px rgba(0,0,0,0.3); z-index: 4; border: 1px solid #fff; }


/* NORMAL CARDS */
.normal-framed-card-wrapper { 
    flex: 0 0 auto; 
    width: 180px; /* Naya 180px width */
    height: 306px; /* 180px ke hisaab se perfect height */
    cursor: pointer; 
    transition: transform 0.3s ease; 
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.15)); 
    position: relative; 
}



.normal-framed-card-wrapper:hover { transform: translateY(-8px) scale(1.02); }
.normal-card-content { position: relative; width: 100%; height: 100%; text-align: center; }
.normal-framed-photo { position: absolute; top: 8%; left: 11%; width: 85%; height: 50%; object-fit: cover; border-radius: 0px; z-index: 1; }
.normal-card-frame-image { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 2; pointer-events: none; }


.normal-info-container { position: absolute; bottom: 13%; left: 0; width: 100%; z-index: 3; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 0 10px; }



.normal-framed-name { margin: 4px 0; font-size: 1.05em; font-weight: 700; color: white; text-shadow: 1px 1px 3px rgba(0,0,0,0.9); }

.normal-framed-balance { font-size: 1.05em; font-weight: 800; color: white; text-shadow: 1px 1px 2px rgba(0,0,0,0.8); margin-top: 17px; }


.normal-card-rank { position: absolute; top: 2%; left: 1%; background: white; width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: black; font-size: 0.85em; font-weight: 800; z-index: 3; box-shadow: 0 2px 5px rgba(0,0,0,0.3); border: 2px solid #333; }




.normal-prime-tag { position: absolute; top: 59%; right: 6%; background-color: var(--prime-color); color: var(--text-color); padding: 1px 3px; border-radius: 4px; font-size: 0.6em; font-weight: 800; box-shadow: 0 2px 4px rgba(0,0,0,0.2); z-index: 3; }








/* --- INFO & LETTER SLIDERS --- */
.info-slider-section { background: transparent; border: none; box-shadow: none; padding: 0 20px; }
.info-slider-container { display: flex; overflow-x: auto; gap: 15px; padding: 10px 0; scrollbar-width: none; scroll-snap-type: x mandatory; }
.info-slider-container::-webkit-scrollbar { display: none; }
.info-card-slide { flex: 0 0 280px; background-color: var(--card-bg); border-radius: 12px; padding: 20px; box-shadow: 0 4px 15px var(--shadow-color); border: 1px solid var(--border-color); scroll-snap-align: start; display: flex; flex-direction: column; position: relative; }
.info-card-slide::after { content: ""; position: absolute; top: 0; left: 0; width: 4px; height: 100%; background: var(--accent-gold); }
.prime-member-card img { width: 100%; height: 380px; object-fit: cover; border-radius: 8px; margin-bottom: 5px; border: 3px solid var(--accent-gold); }



.slider-container { position: relative; max-width: 1000px; margin: 10px auto; overflow: hidden; border-radius: 12px; }
.slides { display: flex; transition: transform 0.5s ease-in-out; }
.slide { min-width: 100%; }
.slide img { width: 100%; display: block; border-radius: 12px; cursor: pointer; }
.prev, .next { cursor: pointer; position: absolute; top: 50%; transform: translateY(-50%); padding: 12px 16px; color: white; font-weight: bold; font-size: 24px; background-color: rgba(0,35,102,0.7); border-radius: 50%; border: none; }
.prev { left: 15px; } .next { right: 15px; }

/* --- ALL MEMBERS GRID LAYOUT (PREMIUM SMALL CARDS) --- */
.all-members-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 10px 5px; }
.small-member-card { background: #ffffff; border-radius: 14px; box-shadow: 0 4px 15px rgba(0,0,0,0.08); padding: 15px 10px; display: flex; flex-direction: column; align-items: center; border: 1px solid rgba(212, 175, 55, 0.25); transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1); cursor: pointer; position: relative; }
.small-member-card:hover { transform: translateY(-5px); border-color: var(--accent-gold); box-shadow: 0 8px 20px rgba(212, 175, 55, 0.2); }
.small-member-card img { width: 65px; height: 65px; border-radius: 50%; object-fit: cover; margin-bottom: 10px; border: 2px solid var(--accent-gold); padding: 2px; background-color: #fff; cursor: zoom-in; transition: transform 0.3s ease; }
.small-member-card img:hover { transform: scale(1.1); }
.small-member-card span { font-size: 0.9em; font-weight: 600; color: var(--primary-color); line-height: 1.3; text-align: center; }

.sip-status-item { display: flex; align-items: center; justify-content: space-between; padding: 12px; background: #f8f9fa; margin-bottom: 8px; border-radius: 8px; border: 1px solid #eee; }
.sip-status-item img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; margin-right: 10px; }
.sip-status-name { flex-grow: 1; text-align: left; font-weight: 600; }
.sip-status-badge { padding: 4px 8px; border-radius: 4px; font-size: 0.8em; font-weight: bold; color: white; }
.sip-status-badge.paid { background-color: var(--success-color); }
.sip-status-badge.not-paid { background-color: var(--danger-color); }

/* --- PROFILE MODAL SPECIFICS --- */
#memberProfileModal .modal-content { text-align: left; padding-top: 80px; margin-top: 40px; border-top: 6px solid var(--primary-color); overflow: visible; }
.profile-modal-header { position: absolute; top: -60px; left: 50%; transform: translateX(-50%); width: 120px; height: 120px; border-radius: 50%; border: 6px solid white; overflow: hidden; background-color: #eee; }
.profile-modal-header img { width: 100%; height: 100%; object-fit: cover; }
#profileModalName { text-align: center; font-size: 1.6em; margin-bottom: 25px; color: var(--primary-color); font-weight: 700; }
.profile-stats-list li { display: flex; justify-content: space-between; align-items: center; padding: 12px 5px; border-bottom: 1px solid var(--border-color); }
.stat-value { font-weight: 700; font-size: 1.1em; }
.stat-value.positive { color: var(--success-color); }
.stat-value.negative { color: var(--danger-color); }

/* --- ROYAL NOTIFICATION POPUP (Toast Style) --- */
#notification-popup-container { position: fixed; top: 20px; left: 50%; transform: translateX(-50%); width: 90%; max-width: 400px; z-index: 2000; display: flex; flex-direction: column; gap: 10px; pointer-events: none; }
.notification-popup { background: linear-gradient(145deg, #001540, #002366); border: 2px solid var(--accent-gold); border-radius: 16px; padding: 15px; display: flex; align-items: center; gap: 15px; box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5); position: relative; pointer-events: auto; animation: slideDownFade 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards; cursor: pointer; overflow: hidden; }
.notification-popup::before { content: ''; position: absolute; top: 0; left: -50%; width: 100%; height: 100%; background: linear-gradient(to right, transparent, rgba(255,255,255,0.1), transparent); transform: skewX(-25deg); animation: shine 3s infinite; }
@keyframes slideDownFade { from { opacity: 0; transform: translateY(-50px); } to { opacity: 1; transform: translateY(0); } }
@keyframes shine { 0% { left: -50%; } 100% { left: 150%; } }
.notification-popup-img { width: 50px; height: 50px; border-radius: 50%; object-fit: cover; border: 2px solid var(--accent-gold); flex-shrink: 0; }
.notification-popup-content { flex-grow: 1; color: white; font-size: 0.9em; line-height: 1.3; }
.notification-popup-content p { margin: 0; padding: 0; color: #e0e0e0; }
.notification-popup-content strong { color: var(--accent-gold); font-size: 1.05em; display: block; margin-bottom: 2px; }
.notification-popup-amount { font-weight: 800; font-size: 1.1em; margin-top: 4px !important; display: inline-block; padding: 2px 8px; border-radius: 4px; background: rgba(0,0,0,0.3); }
.notification-popup-amount.sip { color: #4caf50; border: 1px solid #4caf50; } 
.notification-popup-amount.loan { color: #ff5252; border: 1px solid #ff5252; } 
.notification-popup-amount.payment { color: #4caf50; border: 1px solid #4caf50; }
.notification-popup-close { background: transparent; border: none; color: rgba(255,255,255,0.5); font-size: 24px; cursor: pointer; line-height: 1; padding: 0 5px; transition: color 0.3s; }
.notification-popup-close:hover { color: white; }
.notification-popup.closing { animation: fadeOutNotification 0.5s forwards; }
@keyframes fadeOutNotification { to { opacity: 0; transform: translateY(-30px); } }




/* ==========================================================================
   PART 6: MODERN PROFILE DASHBOARD (ROYAL STYLE) 👑
   ========================================================================== */

.profile-dashboard-wrapper {
    padding: 20px;
    background: linear-gradient(180deg, #f0f4f8 0%, #ffffff 100%);
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* --- 1. Identity Card --- */
.profile-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 25px 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 35, 102, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.5);
    position: relative;
    overflow: hidden;
}

.profile-image-container {
    position: relative;
    width: 110px;
    height: 110px;
    margin: 0 auto 15px;
    cursor: pointer; /* Clickable cursor for zoom */
}

.gk-avatar-modern {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #fff;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    outline: 3px solid #D4AF37; /* Royal Gold Outline */
    transition: transform 0.3s ease;
}

.gk-avatar-modern:hover {
    transform: scale(1.05);
}

.zoom-indicator {
    position: absolute;
    bottom: 5px;
    right: 0;
    background: #002366;
    color: #fff;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    pointer-events: none; /* Icon click pass-through */
}

.zoom-indicator i {
    width: 14px;
    height: 14px;
}

.gk-name-modern {
    font-size: 1.6em;
    font-weight: 800;
    color: #002366;
    margin: 0 0 5px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.gk-role-badge {
    display: inline-block;
    background: rgba(212, 175, 55, 0.15);
    color: #b8860b;
    font-weight: 700;
    font-size: 0.85em;
    padding: 6px 16px;
    border-radius: 50px;
    border: 1px solid rgba(212, 175, 55, 0.3);
}

/* --- 2. Stats Grid (Time & Money) --- */
.profile-stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.stat-box {
    background: #fff;
    border-radius: 16px;
    padding: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border: 1px solid #f0f0f0;
    transition: transform 0.2s ease;
}

.stat-box:hover {
    transform: translateY(-3px);
    border-color: #D4AF37;
}

.stat-icon-circle {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}

.time-icon {
    background: rgba(0, 35, 102, 0.1);
    color: #002366;
}

.balance-icon {
    background: rgba(40, 167, 69, 0.1);
    color: #28a745;
}

.stat-label {
    font-size: 0.75em;
    color: #888;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

.stat-value {
    font-size: 1.1em;
    font-weight: 800;
    color: #333;
    margin: 0;
}

/* --- 3. Security Card --- */
.security-card {
    text-align: left;
    padding: 20px;
    border-left: 5px solid #D4AF37;
}

.security-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    color: #002366;
    font-weight: 700;
    font-size: 1.1em;
}

.security-text {
    font-size: 0.9em;
    color: #666;
    margin-bottom: 15px;
    line-height: 1.4;
}

.gk-input-modern {
    width: 100%;
    padding: 14px;
    border: 2px solid #eef2f6;
    border-radius: 10px;
    font-size: 1em;
    font-weight: 600;
    margin-bottom: 15px;
    outline: none;
    transition: 0.3s;
    box-sizing: border-box; 
    background: #fdfdfd;
}

.gk-input-modern:focus {
    border-color: #002366;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(0, 35, 102, 0.1);
}

.btn-full-width {
    width: 100%;
    border-radius: 10px;
    background: linear-gradient(135deg, #002366 0%, #001540 100%);
    color: white;
    font-weight: 700;
    padding: 14px;
    box-shadow: 0 4px 15px rgba(0, 35, 102, 0.3);
    border: none;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
}

.btn-full-width:active {
    transform: scale(0.98);
}

