/* ==========================================================================
   PART 2: HEADER AUTO-FIT TITLE, TCF PREMIUM CARD & 4 BOTTOM BUTTONS
   ========================================================================== */

/* --- 0. AUTO-RESPONSIVE CENTER HEADER TITLE (NEVER TRUNCATES) --- */
header .main-top-title,
.main-top-title {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 10px !important;
    margin: 0 auto 8px auto !important;
    box-sizing: border-box !important;
    text-align: center !important;
    font-size: clamp(0.95rem, 4.45vw, 1.8rem) !important;
    letter-spacing: clamp(0.2px, 0.2vw, 1.2px) !important;
    line-height: 1.2 !important;
    white-space: nowrap !important;
    overflow: visible !important;
    text-overflow: clip !important;
    display: block !important;
}


/* --- 1. TCF ROYAL ATM / DEBIT CARD (AUTO-ADJUST FOR ALL MOBILES) --- */
.tcf-premium-card-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 clamp(12px, 3.8vw, 18px) 14px clamp(12px, 3.8vw, 18px);
    width: 100%;
    box-sizing: border-box;
    margin-top: -32px !important;
    position: relative;
    z-index: 10;
}

.tcf-card.compact-wallet-card {
    background: linear-gradient(135deg, #031333 0%, #072154 48%, #020b1f 100%) !important;
    border-radius: 18px !important;
    padding: clamp(14px, 3.8vw, 18px) clamp(16px, 4.5vw, 22px) !important;
    width: 100% !important;
    max-width: 420px !important;
    aspect-ratio: 1.76 / 1;
    min-height: 176px;
    color: #ffffff;
    box-shadow: 0 18px 38px rgba(0, 10, 30, 0.58), inset 0 1px 1px rgba(255, 255, 255, 0.28), inset 0 -1px 2px rgba(212, 175, 55, 0.25) !important;
    position: relative;
    overflow: hidden;
    border: 1.5px solid rgba(212, 175, 55, 0.55) !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    box-sizing: border-box !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tcf-card.compact-wallet-card::before {
    content: '';
    position: absolute;
    top: -45%;
    right: -25%;
    width: 220px;
    height: 220px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.16) 0%, transparent 68%);
    pointer-events: none;
    z-index: 0;
}

.tcf-card.compact-wallet-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(115deg, rgba(255, 255, 255, 0.07) 0%, rgba(255, 255, 255, 0.01) 42%, transparent 43%);
    pointer-events: none;
    z-index: 0;
}

.wallet-top-section {
    position: relative;
    z-index: 1;
    cursor: pointer;
    width: 100%;
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    -webkit-tap-highlight-color: transparent;
}

.wallet-header-row {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 8px !important;
    width: 100% !important;
    margin-bottom: 0 !important;
}

.wallet-title-area {
    display: inline-flex !important;
    align-items: center !important;
    gap: clamp(5px, 1.6vw, 8px) !important;
    min-width: 0 !important;
    flex-shrink: 1 !important;
}

.wallet-label {
    font-size: clamp(9.5px, 2.7vw, 11.5px) !important;
    color: #cbd5e1 !important;
    letter-spacing: 0.6px !important;
    text-transform: uppercase !important;
    font-weight: 700 !important;
    white-space: nowrap !important;
    line-height: 1 !important;
    margin: 0 !important;
    display: inline-block !important;
}

.tcf-eye-icon {
    width: clamp(13px, 3.6vw, 15px) !important;
    height: clamp(13px, 3.6vw, 15px) !important;
    color: #FFD700 !important;
    opacity: 0.95 !important;
    flex-shrink: 0 !important;
    background: rgba(212, 175, 55, 0.14);
    border: 1px solid rgba(212, 175, 55, 0.38);
    border-radius: 50%;
    padding: 3px;
    box-sizing: content-box !important;
    transition: transform 0.2s ease, background 0.2s ease;
}

.wallet-top-section:hover .tcf-eye-icon,
.wallet-top-section:active .tcf-eye-icon {
    transform: scale(1.12);
    background: rgba(212, 175, 55, 0.28);
}

.wallet-badge {
    flex-shrink: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
}

.wallet-badge span {
    font-size: clamp(8.5px, 2.4vw, 10px) !important;
    font-weight: 800 !important;
    color: #FFD700 !important;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.22), rgba(212, 175, 55, 0.08)) !important;
    padding: 3px clamp(7px, 2.2vw, 10px) !important;
    border-radius: 20px !important;
    border: 1px solid rgba(212, 175, 55, 0.45) !important;
    letter-spacing: 0.8px !important;
    white-space: nowrap !important;
    line-height: 1.1 !important;
    display: inline-block !important;
}

.wallet-balance-row {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 10px !important;
    width: 100% !important;
    margin: auto 0 !important;
}

.tcf-funds-value-wrapper {
    display: inline-flex !important;
    align-items: baseline !important;
    gap: 5px !important;
    min-width: 0 !important;
}

.tcf-currency {
    font-size: clamp(22px, 6.2vw, 28px) !important;
    font-weight: 900 !important;
    color: #FFD700 !important;
    line-height: 1 !important;
    text-shadow: 0 2px 6px rgba(212, 175, 55, 0.35) !important;
}

.tcf-amount {
    font-size: clamp(29px, 8.2vw, 38px) !important;
    font-weight: 900 !important;
    letter-spacing: 0.4px !important;
    text-shadow: 0 3px 10px rgba(0, 0, 0, 0.7) !important;
    line-height: 1 !important;
    color: #ffffff !important;
    white-space: nowrap !important;
}

.tcf-amount.masked {
    letter-spacing: clamp(3px, 1vw, 5px) !important;
    font-size: clamp(24px, 6.8vw, 31px) !important;
    padding-top: 2px !important;
}

.wallet-chip {
    width: clamp(38px, 10.5vw, 46px) !important;
    height: auto !important;
    flex-shrink: 0 !important;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.5)) !important;
    opacity: 0.96 !important;
    border-radius: 5px;
}

.wallet-divider {
    height: 1px !important;
    width: 100% !important;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.18) 15%, rgba(212, 175, 55, 0.4) 50%, rgba(255, 255, 255, 0.18) 85%, transparent 100%) !important;
    margin: clamp(8px, 2.2vw, 11px) 0 clamp(8px, 2.2vw, 10px) 0 !important;
    position: relative;
    z-index: 1;
}

.wallet-stats-row {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 4px !important;
    width: 100% !important;
    position: relative;
    z-index: 1;
}

.wallet-stat {
    min-width: 0 !important;
}

.wallet-stat:first-child { text-align: left !important; flex: 1.3 !important; }
.wallet-stat:nth-child(3) { text-align: center !important; flex: 1.1 !important; }
.wallet-stat:last-child { text-align: right !important; flex: 0.9 !important; }

.stat-lbl {
    display: block !important;
    font-size: clamp(7.5px, 2.1vw, 9px) !important;
    color: #94a3b8 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.2px !important;
    margin-bottom: 3px !important;
    font-weight: 700 !important;
    white-space: nowrap !important;
    line-height: 1 !important;
}

.wallet-stat strong {
    display: block !important;
    font-size: clamp(12.5px, 3.6vw, 15px) !important;
    font-weight: 800 !important;
    letter-spacing: 0.2px !important;
    white-space: nowrap !important;
    line-height: 1.1 !important;
}

.stat-line {
    width: 1px !important;
    height: clamp(20px, 5.5vw, 24px) !important;
    background: rgba(255, 255, 255, 0.14) !important;
    flex-shrink: 0 !important;
}



/* --- 2. OLD BUTTONS (Kept for compatibility, can be hidden) --- */
.tcf-action-buttons { display: none; }

/* --- 3. QUICK ACTIONS GRID (ROYAL FINTECH 3D GLASS BADGE DESIGN) --- */
.action-cards-section {
    padding: 0 clamp(12px, 3.8vw, 18px);
    margin-bottom: 22px;
}

.action-cards-section h2 {
    text-align: center;
    margin: 0 auto 16px auto;
    font-size: clamp(1rem, 3.8vw, 1.22rem) !important;
    font-weight: 800 !important;
    color: var(--primary-color) !important;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.action-cards-section h2::before,
.action-cards-section h2::after {
    content: '';
    height: 2px;
    width: 24px;
    border-radius: 2px;
    background: linear-gradient(90deg, transparent, #D4AF37);
}
.action-cards-section h2::after {
    background: linear-gradient(90deg, #D4AF37, transparent);
}

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

.quick-actions-grid .compact-card,
#totalMembersCard,
#viewPenaltyWalletBtn,
#quickActionSip {
    background: linear-gradient(155deg, #071b45 0%, #030e26 70%, #0a2254 100%) !important;
    border-radius: 16px !important;
    padding: clamp(8px, 2.2vw, 11px) 4px !important;
    margin: 0 !important;
    text-align: center !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: clamp(6px, 1.8vw, 8px) !important;
    text-decoration: none !important;
    width: 100% !important;
    aspect-ratio: 1 / 1.12 !important;
    max-width: 92px !important;
    border: 1px solid rgba(212, 175, 55, 0.42) !important;
    box-shadow: 0 8px 18px rgba(0, 12, 36, 0.24), inset 0 1px 1px rgba(255, 255, 255, 0.22), inset 0 -1px 2px rgba(212, 175, 55, 0.18) !important;
    position: relative !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
    transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.22s ease, border-color 0.22s ease !important;
    cursor: pointer !important;
    -webkit-tap-highlight-color: transparent !important;
}

/* Subtle Top Sheen */
.quick-actions-grid .compact-card::before,
#totalMembersCard::before,
#viewPenaltyWalletBtn::before,
#quickActionSip::before {
    content: '';
    position: absolute;
    top: -35%;
    right: -35%;
    width: 65px;
    height: 65px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.18) 0%, transparent 70%);
    pointer-events: none;
}

.quick-actions-grid .compact-card:hover,
#totalMembersCard:hover,
#viewPenaltyWalletBtn:hover,
#quickActionSip:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 12px 24px rgba(0, 12, 36, 0.34), 0 0 14px rgba(212, 175, 55, 0.32), inset 0 1px 1px rgba(255, 255, 255, 0.3) !important;
    border-color: #FFD700 !important;
}

.quick-actions-grid .compact-card:active,
#totalMembersCard:active,
#viewPenaltyWalletBtn:active,
#quickActionSip:active {
    transform: scale(0.93) !important;
    border-color: #FFD700 !important;
    box-shadow: 0 4px 10px rgba(0, 12, 36, 0.3), 0 0 12px rgba(255, 215, 0, 0.4) !important;
}

/* Circular Gold Glass Icon Pill */
.quick-actions-grid .compact-icon {
    width: clamp(18px, 4.8vw, 22px) !important;
    height: clamp(18px, 4.8vw, 22px) !important;
    padding: clamp(7px, 2vw, 9px) !important;
    border-radius: 50% !important;
    background: linear-gradient(145deg, rgba(212, 175, 55, 0.2), rgba(212, 175, 55, 0.06)) !important;
    border: 1px solid rgba(212, 175, 55, 0.45) !important;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.35), inset 0 1px 1px rgba(255, 255, 255, 0.2) !important;
    box-sizing: content-box !important;
    margin: 0 !important;
    color: #FFD700 !important;
    stroke-width: 2 !important;
    flex-shrink: 0 !important;
    transition: transform 0.25s ease, background 0.25s ease !important;
}

.quick-actions-grid .compact-card:hover .compact-icon,
#viewPenaltyWalletBtn:hover .compact-icon {
    transform: scale(1.08);
    background: linear-gradient(145deg, rgba(212, 175, 55, 0.32), rgba(212, 175, 55, 0.12)) !important;
}

.quick-actions-grid span {
    font-weight: 600 !important;
    font-size: clamp(9.5px, 2.5vw, 11px) !important;
    line-height: 1.2 !important;
    color: #f8fafc !important;
    font-family: 'Poppins', sans-serif !important;
    letter-spacing: 0.15px !important;
    white-space: normal !important;
    display: block !important;
    margin: 0 !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: 0 0 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; }

/* === VIP TRUST BENEFIT MAGIC GLOW & BADGE === */
@keyframes vipMagicGlow {
    0% { filter: drop-shadow(0 8px 15px rgba(0,0,0,0.2)) drop-shadow(0 0 10px rgba(212, 175, 55, 0.4)); }
    50% { filter: drop-shadow(0 12px 20px rgba(212, 175, 55, 0.6)) drop-shadow(0 0 25px rgba(255, 215, 0, 1)); }
    100% { filter: drop-shadow(0 8px 15px rgba(0,0,0,0.2)) drop-shadow(0 0 10px rgba(212, 175, 55, 0.4)); }
}

@keyframes vipBadgePulse {
    0% { transform: scale(1); box-shadow: 0 4px 10px rgba(0,0,0,0.5), 0 0 10px rgba(212, 175, 55, 0.5); }
    50% { transform: scale(1.08); box-shadow: 0 4px 15px rgba(0,0,0,0.6), 0 0 20px rgba(255, 215, 0, 0.9); }
    100% { transform: scale(1); box-shadow: 0 4px 10px rgba(0,0,0,0.5), 0 0 10px rgba(212, 175, 55, 0.5); }
}

.vip-glow {
    animation: vipMagicGlow 2s infinite alternate ease-in-out !important;
    z-index: 5 !important;
}

/* 🔥 THE TOP CORNER BADGE 🔥 */
.vip-top-badge {
    position: absolute;
    top: -12px;
    right: -10px;
    background: linear-gradient(135deg, #001233 0%, #002366 100%);
    color: #FFD700;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.65em;
    font-weight: 900;
    border: 2px solid #D4AF37;
    z-index: 10;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 4px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
}

/* बैज का एनिमेशन सिर्फ VIP होने पर चलेगा */
.vip-top-badge.active-vip {
    animation: vipBadgePulse 2s infinite ease-in-out;
}
.vip-top-badge.active-vip::before {
    content: '👑';
    font-size: 1.2em;
    margin-right: 2px;
}

/* 🔥 VIP BOTTOM PROGRESS BAR 🔥 */
.vip-bottom-bar-container {
    position: absolute;
    bottom: 3.5%;
    left: 12%;
    width: 76%;
    height: 14px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 10px;
    overflow: hidden;
    z-index: 5;
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 2px 5px rgba(0,0,0,0.5);
}

.vip-bottom-bar-fill {
    height: 100%;
    transition: width 0.8s ease-out;
    border-radius: 10px;
    position: relative;
}

.vip-bottom-bar-text {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.55em;
    font-weight: 800;
    color: #ffffff;
    text-shadow: 1px 1px 2px #000, -1px -1px 2px #000;
    z-index: 2;
    letter-spacing: 0.5px;
}

@keyframes barMagicGlow {
    from { filter: brightness(1); box-shadow: 0 0 5px currentColor; }
    to { filter: brightness(1.5); box-shadow: 0 0 15px currentColor; }
}
.bar-glow {
    animation: barMagicGlow 1s infinite alternate;
}

/* NORMAL CARDS */




/* 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; }








/* ==========================================================================
   ROYAL 3:4 COMMUNITY ECOSYSTEM & SIP LEADERBOARD (DARK GLASSMORPHISM) 👑
   ========================================================================== */

.info-slider-section { 
    background: transparent; 
    border: none; 
    box-shadow: none; 
    padding: 20px 10px 35px 10px; 
    overflow: hidden;
}

.community-info-header {
    text-align: center;
    margin-bottom: 18px;
}

.info-top-badge {
    display: inline-block;
    font-size: 0.65em;
    font-weight: 800;
    color: #B8860B;
    background: rgba(212, 175, 55, 0.14);
    border: 1px solid rgba(212, 175, 55, 0.45);
    padding: 4px 12px;
    border-radius: 20px;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.info-main-title {
    font-size: 1.45em !important;
    font-weight: 900 !important;
    color: var(--primary-color) !important;
    letter-spacing: 0.5px;
    margin: 0 !important;
    text-transform: uppercase;
}

.info-sub-text {
    font-size: 0.75em;
    color: #64748b;
    margin: 4px 0 0 0;
    font-weight: 600;
}

/* --- Swiper Container & 3:4 Card Base --- */
.tcf-eco-swiper {
    width: 100%;
    padding: 10px 0 38px 0 !important;
}

.tcf-eco-swiper .swiper-slide {
    width: 290px !important;
    display: flex;
    justify-content: center;
}

.eco-ratio-card {
    width: 100%;
    height: 420px; /* 🔥 NAYA JUGAAD: कार्ड को थोड़ा लंबा कर दिया गया है ताकि स्पेस मिल सके */
    border-radius: 24px;
    padding: 18px;
    box-sizing: border-box;
    background: linear-gradient(155deg, #04153b 0%, #020b21 65%, #081d4a 100%);
    border: 1.5px solid rgba(212, 175, 55, 0.45);
    box-shadow: 0 18px 38px rgba(0, 10, 30, 0.55), inset 0 1px 2px rgba(255, 255, 255, 0.18);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
    color: #ffffff;
}

.eco-ratio-card::before {
    content: '';
    position: absolute;
    top: -35%;
    right: -35%;
    width: 180px;
    height: 180px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.18) 0%, transparent 70%);
    pointer-events: none;
}

/* --- Top Row & Badges --- */
.mic-top-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 2;
}

.mic-badge {
    font-size: 0.62em;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 20px;
    letter-spacing: 0.6px;
    text-transform: uppercase;
}

.badge-neon-green {
    background: rgba(74, 222, 128, 0.14);
    color: #4ade80;
    border: 1px solid rgba(74, 222, 128, 0.4);
}

.badge-royal-gold {
    background: rgba(212, 175, 55, 0.16);
    color: #FFD700;
    border: 1px solid rgba(212, 175, 55, 0.45);
}

.eco-month-tag {
    font-size: 0.62em;
    font-weight: 800;
    color: #FFD700;
    background: rgba(255, 255, 255, 0.08);
    padding: 3px 8px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.mic-icon-circle {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(212, 175, 55, 0.15);
    border: 1px solid rgba(212, 175, 55, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFD700;
}
.mic-icon-circle i, .mic-icon-circle svg { width: 16px; height: 16px; }

/* --- Slide 1: SIP Leaderboard (Top 5 - Original Spacious Size) --- */
.eco-lb-header {
    margin-top: 2px;
}

.eco-lb-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 6px 0;
    flex: 1;
    justify-content: center;
}

.eco-lb-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 11px;
    padding: 5px 8px; /* 🔥 वापस पुराना बड़ा पैडिंग */
    transition: transform 0.2s ease;
}

.eco-lb-row.top-one-row {
    background: linear-gradient(90deg, rgba(212, 175, 55, 0.22) 0%, rgba(212, 175, 55, 0.05) 100%);
    border-color: rgba(212, 175, 55, 0.55);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.15); /* 🔥 वापस पुराना शैडो */
}

.eco-lb-left {
    display: flex;
    align-items: center;
    gap: 7px; /* 🔥 वापस पुराना गैप */
    min-width: 0;
    flex: 1;
}

.eco-lb-badge {
    width: 20px; /* 🔥 वापस पुराना साइज */
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72em;
    font-weight: 900;
    flex-shrink: 0;
}

.lb-rank-other {
    background: rgba(255, 255, 255, 0.12);
    color: #cbd5e1;
    font-size: 0.65em;
}

.eco-lb-avatar {
    width: 30px; /* 🔥 वापस पुराना फोटो साइज */
    height: 30px;
    border-radius: 50%;
    object-fit: cover;
    border: 1.5px solid #D4AF37;
    flex-shrink: 0;
    background: #001540;
}

.eco-lb-meta {
    min-width: 0;
    flex: 1;
    text-align: left;
}

.eco-lb-name {
    font-size: 0.74em; /* 🔥 वापस पुराना फोंट साइज */
    font-weight: 700;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.15;
}

.eco-lb-date {
    font-size: 0.58em;
    color: #94a3b8;
    font-weight: 600;
    line-height: 1.2;
}

.eco-lb-right {
    font-size: 0.76em; /* 🔥 वापस पुराना फोंट साइज */
    font-weight: 800;
    padding-left: 6px;
    white-space: nowrap;
}

.lb-amt-paid { color: #4ade80; }
.lb-amt-pending { color: #fbbf24; font-size: 0.65em; }

/* --- Visual Center Orb for Info Cards --- */
.eco-visual-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 6px 0;
}

.eco-glow-orb {
    width: 64px;
    height: 64px;
    border-radius: 20px;
    background: radial-gradient(circle, rgba(74, 222, 128, 0.22) 0%, rgba(0, 35, 102, 0.4) 100%);
    border: 1.5px solid rgba(74, 222, 128, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4ade80;
    box-shadow: 0 0 22px rgba(74, 222, 128, 0.25);
}

.eco-glow-orb.gold-orb {
    background: radial-gradient(circle, rgba(212, 175, 55, 0.25) 0%, rgba(0, 35, 102, 0.4) 100%);
    border-color: rgba(212, 175, 55, 0.55);
    color: #FFD700;
    box-shadow: 0 0 22px rgba(212, 175, 55, 0.28);
}

.eco-glow-orb svg { width: 28px; height: 28px; }

.eco-live-stat-pill {
    font-size: 0.68em;
    font-weight: 800;
    color: #FFD700;
    background: rgba(212, 175, 55, 0.12);
    border: 1px dashed rgba(212, 175, 55, 0.45);
    padding: 3px 10px;
    border-radius: 12px;
}

/* --- Typography Inside 3:4 Card --- */
.mic-body { text-align: left; }

.mic-subtitle {
    font-size: 0.62em;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #D4AF37;
    margin: 0 0 3px 0;
}

.mic-title {
    font-size: 1.12em;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 6px 0;
    line-height: 1.2;
}

.mic-desc {
    font-size: 0.76em;
    color: #cbd5e1;
    line-height: 1.42;
    margin: 0;
}

/* --- Prime Member Large Square Photo Styling --- */
.eco-prime-square-wrap {
    width: 148px;
    height: 148px;
    margin: 4px auto;
    border-radius: 20px;
    border: 2.5px solid #FFD700;
    padding: 3px;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.35), rgba(0, 18, 51, 0.9));
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5), 0 0 18px rgba(212, 175, 55, 0.3);
    position: relative;
    cursor: zoom-in;
    flex-shrink: 0;
}

.eco-prime-square-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 15px;
    display: block;
}

.eco-prime-verified-pill {
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(90deg, #D4AF37, #B8860B);
    color: #001233;
    font-size: 0.58em;
    font-weight: 900;
    padding: 2px 10px;
    border-radius: 12px;
    border: 1.5px solid #ffffff;
    white-space: nowrap;
    letter-spacing: 0.6px;
    box-shadow: 0 3px 8px rgba(0,0,0,0.4);
}

.eco-prime-info {
    text-align: center;
    margin-top: 6px;
}

/* --- Card Footer --- */
.mic-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px dashed rgba(255, 255, 255, 0.15);
    padding-top: 10px;
    margin-top: 4px;
}

.mic-highlight {
    font-size: 0.7em;
    font-weight: 800;
    color: #4ade80;
    background: rgba(74, 222, 128, 0.12);
    border: 1px solid rgba(74, 222, 128, 0.3);
    padding: 3px 9px;
    border-radius: 8px;
}

.mic-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 0.76em;
    font-weight: 800;
    color: #FFD700;
    text-decoration: none;
    cursor: pointer;
}
.mic-action-btn i, .mic-action-btn svg { width: 14px; height: 14px; }

/* Swiper Pagination Dots */
#tcfEcoPagination .swiper-pagination-bullet {
    background: #94a3b8;
    opacity: 0.45;
    transition: all 0.3s ease;
}
#tcfEcoPagination .swiper-pagination-bullet-active {
    background: #D4AF37;
    width: 20px;
    border-radius: 8px;
    opacity: 1;
}


/* --- 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; }

/* === FULL-SCREEN PAGE VIEW: ROYAL DARK BLUE SIP STATUS === */
#sipStatusModal {
    padding: 0 !important;
    align-items: stretch !important;
    justify-content: center !important;
    background: #020b21 !important;
}

#sipStatusModal .modal-content {
    background: linear-gradient(160deg, #04153b 0%, #020b21 60%, #071942 100%) !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    color: #ffffff !important;
    width: 100% !important;
    max-width: 600px !important;
    height: 100vh !important;
    height: 100dvh !important;
    max-height: 100dvh !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
    position: relative !important;
}

/* Compact Sticky Top Header */
.royal-sip-sticky-head {
    background: rgba(3, 16, 46, 0.96);
    border-bottom: 1px solid rgba(212, 175, 55, 0.28);
    padding: 12px 14px 10px 14px;
    flex-shrink: 0;
    z-index: 10;
}

.royal-sip-top-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.royal-sip-title-group {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.royal-sip-compact-title {
    color: #ffffff !important;
    font-size: 1.02rem !important;
    font-weight: 800 !important;
    margin: 0 !important;
    padding: 0 !important;
    letter-spacing: 0.2px !important;
    line-height: 1.2 !important;
    white-space: nowrap;
    text-transform: none !important;
}

.royal-sip-month-pill {
    font-size: 0.62rem;
    font-weight: 800;
    color: #FFD700;
    background: rgba(212, 175, 55, 0.16);
    border: 1px solid rgba(212, 175, 55, 0.45);
    padding: 2px 7px;
    border-radius: 6px;
    letter-spacing: 0.5px;
    white-space: nowrap;
    flex-shrink: 0;
}

#sipStatusModal .close.royal-sip-close-btn {
    position: static !important;
    width: 30px !important;
    height: 30px !important;
    border-radius: 50% !important;
    background: rgba(239, 68, 68, 0.18) !important;
    border: 1px solid rgba(239, 68, 68, 0.5) !important;
    color: #ff6b6b !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 19px !important;
    line-height: 1 !important;
    cursor: pointer;
    flex-shrink: 0;
    margin: 0 !important;
    padding: 0 !important;
}

.royal-sip-summary-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 10px;
    padding: 6px 12px;
    margin-top: 8px;
}

.royal-sip-stat {
    display: flex;
    align-items: center;
    gap: 6px;
}

.royal-sip-stat-lbl {
    font-size: 0.65rem;
    color: #94a3b8;
    font-weight: 700;
    text-transform: uppercase;
}

.royal-sip-stat-val {
    font-size: 0.85rem;
    font-weight: 800;
    color: #4ade80;
}
.royal-sip-stat-val.gold { color: #FFD700; }

.royal-sip-filter-tabs {
    display: flex;
    gap: 6px;
    margin-top: 8px;
}

.royal-sip-tab {
    flex: 1;
    padding: 5px 6px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.05);
    color: #cbd5e1;
    font-size: 0.7rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.royal-sip-tab.active {
    background: linear-gradient(135deg, #D4AF37, #B8860B);
    color: #001233;
    border-color: #FFD700;
    font-weight: 800;
}

#sipStatusListContainer {
    overflow-y: auto;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 7px;
    padding: 10px 14px 28px 14px;
}

#sipStatusListContainer::-webkit-scrollbar { width: 4px; }
#sipStatusListContainer::-webkit-scrollbar-thumb { background: rgba(212, 175, 55, 0.45); border-radius: 4px; }

.sip-status-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 10px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.2s ease;
}

.sip-status-item.top-rank-row {
    background: linear-gradient(90deg, rgba(212, 175, 55, 0.22) 0%, rgba(212, 175, 55, 0.05) 100%);
    border-color: rgba(212, 175, 55, 0.55);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.14);
}

.sip-status-left {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    flex: 1;
}

.sip-rank-pill {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    color: #cbd5e1;
    font-size: 0.68em;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.sip-status-item img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 1.5px solid #D4AF37;
    background: #001540;
    flex-shrink: 0;
    margin-right: 0;
    cursor: zoom-in;
}

.sip-member-meta {
    min-width: 0;
    flex: 1;
    text-align: left;
}

.sip-status-name {
    font-size: 0.82em;
    font-weight: 700;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
}

.sip-status-date {
    font-size: 0.64em;
    color: #94a3b8;
    font-weight: 600;
    margin-top: 2px;
}

.sip-status-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 3px;
    flex-shrink: 0;
    padding-left: 8px;
}

.sip-paid-amount {
    font-size: 0.88em;
    font-weight: 800;
    color: #4ade80;
    line-height: 1;
}

.sip-paid-amount.unpaid {
    color: #94a3b8;
    font-size: 0.8em;
}

.sip-status-badge {
    padding: 2px 7px;
    border-radius: 20px;
    font-size: 0.58em;
    font-weight: 800;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

.sip-status-badge.paid {
    background: rgba(74, 222, 128, 0.16);
    color: #4ade80;
    border: 1px solid rgba(74, 222, 128, 0.45);
}

.sip-status-badge.not-paid {
    background: rgba(239, 68, 68, 0.16);
    color: #ff6b6b;
    border: 1px solid rgba(239, 68, 68, 0.45);
}


/* --- 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: 92%; 
    max-width: 390px; 
    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: 10px 14px; 
    display: flex; 
    align-items: center; 
    gap: 12px; 
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5); 
    position: relative; 
    pointer-events: auto; 
    animation: slideDownFade 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards; 
    cursor: grab; 
    overflow: hidden; 
    touch-action: pan-y;
    user-select: none;
    -webkit-user-select: none;
    will-change: transform, opacity;
    max-height: 80px; /* Toast ki height lock */
}

.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%; } }

/* 🔥 Image ko 50px Gol circle me fix lock karna */
.notification-popup-img { 
    width: 50px !important; 
    height: 50px !important; 
    min-width: 50px !important;
    max-width: 50px !important;
    max-height: 50px !important;
    border-radius: 50% !important; 
    object-fit: cover !important; 
    border: 2px solid var(--accent-gold) !important; 
    flex-shrink: 0 !important; 
    display: block !important;
}

.notification-popup-content { 
    flex-grow: 1; 
    color: white; 
    font-size: 0.88em; 
    line-height: 1.25; 
    overflow: hidden;
}

.notification-popup-content p { 
    margin: 0; 
    padding: 0; 
    color: #e0e0e0; 
    font-size: 0.9em;
}

.notification-popup-content strong { 
    color: var(--accent-gold); 
    font-size: 1.05em; 
    display: block; 
    margin-bottom: 2px; 
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.notification-popup-amount { 
    font-weight: 800; 
    font-size: 0.95em; 
    margin-top: 3px !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: 22px; 
    cursor: pointer; 
    line-height: 1; 
    padding: 0 4px; 
    transition: color 0.3s; 
    flex-shrink: 0;
}
.notification-popup-close:hover { color: white; }

/* 🚀 Swipe Transitions */
.notification-popup.swiping { transition: none !important; }
.notification-popup.dismiss-left { transition: transform 0.22s cubic-bezier(0.2, 0.9, 0.3, 1), opacity 0.22s ease !important; transform: translateX(-120%) scale(0.95) !important; opacity: 0 !important; }
.notification-popup.dismiss-right { transition: transform 0.22s cubic-bezier(0.2, 0.9, 0.3, 1), opacity 0.22s ease !important; transform: translateX(120%) scale(0.95) !important; opacity: 0 !important; }
.notification-popup.dismiss-up { transition: transform 0.22s cubic-bezier(0.2, 0.9, 0.3, 1), opacity 0.22s ease !important; transform: translateY(-120%) scale(0.95) !important; opacity: 0 !important; }
.notification-popup.reset-position { transition: transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.25s ease !important; transform: translateX(0) translateY(0) !important; opacity: 1 !important; }
.notification-popup.closing { animation: fadeOutNotification 0.3s forwards; }
@keyframes fadeOutNotification { to { opacity: 0; transform: translateY(-30px); } }




/* ==========================================================================
   PART 6: MODERN PROFILE DASHBOARD (COMPACT FIT SCREEN) 👑
   ========================================================================== */

.profile-dashboard-wrapper {
    padding: 0 0 85px 0;
    background: linear-gradient(180deg, #f0f4f8 0%, #ffffff 100%);
    display: flex;
    flex-direction: column;
    gap: 12px; /* सेक्शनों के बीच स्पेस बढ़ाया गया */
}

/* --- 1. Identity Card (Compact Header) --- */
.profile-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 12px 15px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 35, 102, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.6);
    position: relative;
}

.profile-card.identity-card {
    border-radius: 0 0 20px 20px;
    padding-top: 18px; /* Hero सेक्शन की हाइट हल्की बढ़ाई गई */
    padding-bottom: 18px;
    border-top: none;
    border-left: none;
    border-right: none;
}

.profile-logout-btn {
    position: absolute;
    top: 12px;
    right: 14px;
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 10;
}
.profile-logout-btn:active {
    transform: scale(0.9);
    background: #dc3545;
    color: #fff;
}

.profile-image-container {
    position: relative;
    width: 82px; /* Chhota photo size */
    height: 82px;
    margin: 0 auto 6px;
    cursor: pointer;
}

.gk-avatar-modern {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
    outline: 2px solid #D4AF37;
}

.zoom-indicator {
    position: absolute;
    bottom: 2px;
    right: 0;
    background: #002366;
    color: #fff;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    pointer-events: none;
}
.zoom-indicator i {
    width: 11px;
    height: 11px;
}

.gk-name-modern {
    font-size: 1.25em; /* Name size compact */
    font-weight: 800;
    color: #002366;
    margin: 0 0 2px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.gk-id-modern {
    font-size: 0.72em;
    font-weight: 700;
    color: #64748b;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    margin: 0 0 6px 0;
}

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

/* --- 2. Stats Grid (Compact 3 Columns) --- */
.profile-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px; /* Cards ke beech space */
    margin: 6px 14px 4px 14px; /* हल्का नीचे शिफ्ट किया गया */
}

.stat-box {
    background: #fff;
    border-radius: 12px;
    padding: 8px 4px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    border: 1px solid #f0f0f0;
    aspect-ratio: 1 / 0.92; /* Perfect compact ratio */
    height: auto;
}

.stat-icon-circle {
    width: 28px; /* Icon size chhota kiya */
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 4px;
}
.stat-icon-circle i {
    width: 14px;
    height: 14px;
}

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

.stat-info { width: 100%; overflow: hidden; }

.stat-label {
    font-size: 0.6em;
    color: #888;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-bottom: 2px;
    display: block;
    white-space: nowrap;
}

.stat-value {
    font-size: 0.85em;
    font-weight: 800;
    color: #333;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* --- 3. Compact Security & Password Card --- */
.security-card {
    text-align: left;
    padding: 16px 16px;
    margin: 6px 14px 0 14px; /* हल्का नीचे शिफ्ट किया गया */
    border-left: 4px solid #D4AF37;
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 4px 15px rgba(0, 35, 102, 0.05);
}


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

.security-header .security-icon {
    width: 17px;
    height: 17px;
    color: #D4AF37;
}

.password-wrapper {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.gk-input-modern {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid #eef2f6;
    border-radius: 9px;
    font-size: 0.92em;
    font-weight: 600;
    margin-bottom: 0;
    outline: none;
    box-sizing: border-box; 
    background: #fdfdfd;
    transition: all 0.25s ease;
}

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

.btn-full-width {
    width: 100%;
    border-radius: 9px;
    background: linear-gradient(135deg, #002366 0%, #001540 100%);
    color: white;
    font-weight: 700;
    font-size: 0.9em;
    padding: 12px;
    box-shadow: 0 4px 12px rgba(0, 35, 102, 0.25);
    border: none;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    letter-spacing: 0.5px;
}

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

/* 🚀 NAYA: Biometric Fingerprint Button Styles */
.bio-unlock-btn {
    width: 75px;
    height: 75px;
    border-radius: 50%;
    background: linear-gradient(135deg, #002366 0%, #001540 100%);
    border: 3px solid #D4AF37;
    color: #FFD700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 5px auto 0 auto;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(0, 35, 102, 0.3), inset 0 0 10px rgba(212, 175, 55, 0.2);
    transition: all 0.3s ease;
}
.bio-unlock-btn:active {
    transform: scale(0.92);
    box-shadow: 0 4px 10px rgba(0, 35, 102, 0.4);
}
.bio-icon {
    width: 34px;
    height: 34px;
    animation: pulseGlow 2s infinite alternate;
}
@keyframes pulseGlow {
    0% { filter: drop-shadow(0 0 2px rgba(255, 215, 0, 0.4)); }
    100% { filter: drop-shadow(0 0 12px rgba(255, 215, 0, 0.9)); }
}

/* Toggle Switch Styles */
.auth-toggle-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 15px;
    border-top: 1px dashed #e2e8f0;
    padding-top: 14px;
}
.toggle-label {
    font-size: 0.8em;
    color: #64748b;
    font-weight: 700;
}
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 38px;
    height: 22px;
}
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.slider {
    position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0;
    background-color: #cbd5e1; transition: .4s;
}
.slider:before {
    position: absolute; content: ""; height: 16px; width: 16px; left: 3px; bottom: 3px;
    background-color: white; transition: .4s;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}
input:checked + .slider { background-color: #002366; }
input:checked + .slider:before { transform: translateX(16px); }
.slider.round { border-radius: 25px; }
.slider.round:before { border-radius: 50%; }

/* --- ECOSYSTEM CHART CARD (100% Full Width Screen) --- */
.ecosystem-card { 
    background: linear-gradient(145deg, #0b1528, #001540); 
    border-radius: 0; /* किनारों को सीधा करने के लिए */
    padding: 20px 0; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.3); 
    border-top: 1px solid rgba(212, 175, 55, 0.2); 
    border-bottom: 1px solid rgba(212, 175, 55, 0.2); 
    border-left: none; /* साइड के बॉर्डर हटा दिए */
    border-right: none; 
    color: white; 
    margin-bottom: 20px; 
    overflow: hidden; 
    width: 100%;
}

/* Text sections got side padding, Graph gets nothing! */
.eco-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; padding: 0 20px; }
.eco-title { font-size: 0.8rem; font-weight: 700; color: #b0c4de; letter-spacing: 1px; text-transform: uppercase; }
.eco-growth { background: rgba(40, 167, 69, 0.2); color: #4ade80; padding: 4px 10px; border-radius: 20px; font-size: 0.8rem; font-weight: 800; border: 1px solid rgba(40, 167, 69, 0.4); }
.eco-growth.negative { background: rgba(220, 53, 69, 0.2); color: #ff6b6b; border-color: rgba(220, 53, 69, 0.4); }

.eco-stats { display: flex; justify-content: space-between; margin-bottom: 20px; border-bottom: 1px dashed rgba(255,255,255,0.1); padding: 0 20px 15px 20px; }
.eco-stat-item { display: flex; flex-direction: column; }
.eco-label { font-size: 0.65rem; color: #888; text-transform: uppercase; font-weight: 600; margin-bottom: 3px; }
.eco-value { font-size: 1.2rem; font-weight: 800; }
.text-green { color: #4ade80; }
.text-red { color: #ff6b6b; }

/* 🌟 High-Precision Fintech Chart Container (100% Edge-to-Edge) 🌟 */
.eco-chart-container {
    width: 100%;
    height: 205px;
    position: relative;
    margin-bottom: 14px;
    padding: 0;
    box-sizing: border-box;
    background: radial-gradient(ellipse at 50% 45%, rgba(212, 175, 55, 0.05) 0%, transparent 72%);
}
.eco-chart-container canvas { width: 100% !important; height: 100% !important; }

/* Modern Segmented Pill Timeframe Tabs */
.eco-filter-container { width: 100%; padding: 0 18px; box-sizing: border-box; }
.eco-filter-container.eco-pill-mode #ecoTimeSlider { display: none !important; }
#ecoTimeSlider { -webkit-appearance: none; width: 100%; height: 6px; background: rgba(255,255,255,0.1); border-radius: 5px; outline: none; margin-bottom: 10px; }
#ecoTimeSlider::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 20px; height: 20px; border-radius: 50%; background: #D4AF37; cursor: pointer; box-shadow: 0 0 10px rgba(212, 175, 55, 0.5); border: 3px solid #0b1528; }

.eco-filter-labels {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 4px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 12px;
    padding: 4px;
    font-size: 0.72rem;
    color: #94a3b8;
    font-weight: 700;
}
.eco-filter-labels span {
    flex: 1;
    text-align: center;
    padding: 6px 0;
    border-radius: 9px;
    cursor: pointer;
    letter-spacing: 0.4px;
    transition: all 0.22s ease;
    -webkit-tap-highlight-color: transparent;
}
.eco-filter-labels span.active {
    background: linear-gradient(135deg, #D4AF37, #B8860B);
    color: #020b21;
    font-weight: 900;
    box-shadow: 0 3px 10px rgba(212, 175, 55, 0.35);
}

/* ==========================================================================
   PART 7: FULL PAGE RANKED GRID VIEW STYLES (FIXED)
   ========================================================================== */

.ranked-grid-container {
    display: grid;
    /* Extra space aur scroll ko rokne ke liye minmax(0, 1fr) lagaya hai */
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important; 
    gap: 5px; 
    justify-items: center;
    padding: 0 5px;
    width: 100%;
    overflow-x: hidden; /* Left/Right swipe ko puri tarah block karega */
    box-sizing: border-box;
}

.scaled-card-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
    position: relative;
    height: 180px; 
    overflow: hidden; /* Card ka chhipa hua hissa grid ko disturb nahi karega */
}

/* Normal scale - !important lagaya taaki hover effect ise tod na sake */
.scaled-card-wrapper > div {
    transform: scale(0.52) !important; /* 3 fit karne ke liye perfect size */
    transform-origin: top center;
    pointer-events: auto;
    margin: 0 !important;
}

/* 🔥 Hover par jo ajeeb bada zoom ho raha tha usko theek kiya */
.scaled-card-wrapper > div:hover,
.scaled-card-wrapper > div:active {
    transform: scale(0.54) translateY(-5px) !important; 
    z-index: 10;
    filter: drop-shadow(0 8px 15px rgba(212, 175, 55, 0.4));
}

@media (max-width: 380px) {
    .scaled-card-wrapper > div {
        transform: scale(0.48) !important;
    }
    .scaled-card-wrapper {
        height: 160px;
    }
}

/* ==========================================================================
   TCF AI ASSISTANT STYLES (SWIPE BANNER & FLOATING BUTTON)
   ========================================================================== */

/* --- 1. Right Side Floating Button --- */
.tcf-ai-floating-btn {
    position: fixed;
    bottom: 80px; 
    right: -150px; /* Initially hidden screen ke bahar */
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #001233 0%, #002366 100%);
    border: 2px solid #D4AF37;
    border-radius: 50px;
    padding: 5px 12px 5px 5px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3), 0 0 15px rgba(212, 175, 55, 0.4);
    z-index: 1000;
    transition: right 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.5s ease;
    text-decoration: none;
    opacity: 0;
    pointer-events: none;
}

.tcf-ai-floating-btn.show {
    right: 15px; /* Ander aa jayega */
    opacity: 1;
    pointer-events: auto;
}

.tcf-ai-floating-btn img {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #fff;
    padding: 2px;
    animation: aiFloat 3s ease-in-out infinite;
}

.ai-floating-tooltip {
    color: #fff;
    font-size: 0.8em;
    font-weight: 700;
    margin-left: 8px;
    white-space: nowrap;
    overflow: hidden;
}

.ai-floating-typing-text {
    border-right: 2px solid #D4AF37;
    padding-right: 2px;
    animation: blinkCursor 0.7s infinite;
}

@keyframes aiFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}

@keyframes blinkCursor {
    50% { border-color: transparent; }
}

/* --- 2. AI Swipe Banner (Quick Actions ke niche) --- */
.ai-swipe-banner-container {
    margin: 15px auto 5px;
    width: 95%;
    max-width: 400px;
    background: #ffffff; /* Blue ki jagah White background */
    border-radius: 30px;
    padding: 6px;
    border: 2px solid #002366; /* Charon taraf blue border */
    box-shadow: 0 0 15px rgba(0, 35, 102, 0.5), inset 0 0 8px rgba(0, 35, 102, 0.1); /* Glowing light effect */
}

.ai-swipe-track {
    position: relative;
    width: 100%;
    height: 48px;
    background: rgba(0, 35, 102, 0.05); /* Light blue tint */
    border-radius: 25px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.ai-swipe-text-wrapper {
    position: absolute;
    width: 100%;
    text-align: center;
    pointer-events: none;
    color: #002366; /* White background par blue text */
    font-size: 0.9em;
    font-weight: 800;
    letter-spacing: 0.5px;
    padding-right: 35px; /* Naye logo ke liye space choda */
}

.ai-swipe-thumb {
    position: absolute;
    left: 5px;
    width: 38px;
    height: 38px;
    background: linear-gradient(135deg, #002366, #001540); /* Thumb ko blue kar diya taaki white pe match kare */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #D4AF37; /* Icon ko gold rakha */
    cursor: grab;
    box-shadow: 0 2px 8px rgba(0,35,102,0.4);
    z-index: 2;
    transition: transform 0.1s;
}

.ai-swipe-thumb:active {
    cursor: grabbing;
}

.ai-swipe-thumb i {
    width: 18px;
    height: 18px;
}

.ai-swipe-right-logo {
    position: absolute;
    right: 6px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid #D4AF37; /* Logo ke charon taraf gold border */
    background: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    z-index: 1;
    object-fit: cover;
}

/* ==========================================================================
   PART 5: PC DESKTOP RESPONSIVE DESIGN (SUPER ATTRACTIVE DASHBOARD GRID)
   ========================================================================== */
@media (min-width: 992px) {
    /* 1. Header Desktop Refinement */
    header {
        padding-bottom: 50px !important;
        box-shadow: 0 10px 30px rgba(0, 18, 51, 0.5) !important;
    }

    /* 2. Main App Container Centered */
    .content-wrapper ]{
        display: block !important;
        max-width: 850px !important;
        margin: 0 auto !important;
        padding: 0 20px 140px 20px !important;
    }

    /* 3. Cards overlap over header slightly */
    .bank-members, .top-rankers-section, .action-cards-section, .ecosystem-section {
        width: 100% !important;
        margin: 0 auto 30px auto !important;
        position: relative;
    }

    .tcf-premium-card-wrapper {
        margin-top: -30px !important;
        padding: 0 !important;
        width: 100% !important;
        display: flex !important;
        justify-content: center !important;
    }

    .tcf-card, .tcf-card.compact-wallet-card {
        max-width: 500px !important;
        padding: 22px 26px !important;
        border-radius: 20px !important;
        box-shadow: 0 20px 45px rgba(0, 12, 36, 0.6), inset 0 1px 2px rgba(255, 255, 255, 0.3) !important;
        transition: transform 0.4s ease, box-shadow 0.4s ease !important;
    }

    .tcf-card:hover, .tcf-card.compact-wallet-card:hover {
        transform: translateY(-5px) !important;
        box-shadow: 0 25px 60px rgba(0, 12, 36, 0.8), 0 0 25px rgba(212, 175, 55, 0.4) !important;
    }

    /* 4. Top Rankers Desktop Slider Adjustment */
    .member-slider {
        padding: 15px 5px !important;
        gap: 15px !important;
        max-width: 100% !important;
    }

    /* 5. Quick Actions Desktop Grid (4 columns) */
    .action-cards-section h2 {
        text-align: left !important;
        font-size: 1.3em !important;
        margin-bottom: 20px !important;
        padding-left: 5px !important;
    }

    .quick-actions-grid {
        grid-template-columns: repeat(4, 1fr) !important;
        gap: 20px !important;
        width: 100% !important;
    }

    .quick-actions-grid .compact-card, #totalMembersCard, #viewPenaltyWalletBtn, #quickActionSip {
        max-width: 100% !important;
        aspect-ratio: 1 !important;
        padding: 20px 10px !important;
        gap: 12px !important;
        font-size: 0.95em !important;
        border-radius: 16px !important;
        box-shadow: 0 6px 15px rgba(0,0,0,0.2), inset 0 1px 1px rgba(255, 215, 0, 0.15) !important;
        transition: transform 0.3s ease !important;
    }

    .quick-actions-grid .compact-card:hover {
        transform: translateY(-5px) !important;
    }

    .quick-actions-grid .compact-icon {
        width: 32px !important;
        height: 32px !important;
    }

    /* 6. Ecosystem Chart Desktop Styling */
    .ecosystem-card {
        border-radius: 20px !important;
        border: 1px solid rgba(212, 175, 55, 0.35) !important;
        box-shadow: 0 20px 45px rgba(0, 12, 36, 0.5) !important;
        padding: 25px 0 !important;
        margin-bottom: 25px !important;
        width: 100% !important;
        background: linear-gradient(145deg, #0b1528, #001f5c) !important;
    }

    .eco-chart-container {
        height: 350px !important;
        margin-bottom: 25px !important;
    }

    /* 7. Floating Glassmorphism Bottom Pill Dock for Desktop */
    .bottom-nav-container {
        width: 100% !important;
        max-width: 600px !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        bottom: 30px !important;
        border-radius: 50px !important;
        border: 1px solid rgba(212, 175, 55, 0.4) !important;
        box-shadow: 0 20px 40px rgba(0, 12, 36, 0.5), inset 0 2px 5px rgba(255,255,255,0.2) !important;
        padding: 5px 30px !important;
        height: 75px !important;
        background: rgba(0, 15, 45, 0.95) !important;
        backdrop-filter: blur(20px) !important;
        display: flex !important;
        justify-content: space-around !important;
        align-items: center !important;
    }

    .nav-item {
        color: #8fa3c0 !important;
        flex: 1 !important;
        height: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        gap: 5px !important;
    }

    .nav-item i {
        width: 24px !important;
        height: 24px !important;
    }

    .nav-item span {
        font-size: 0.75rem !important;
        font-weight: 600 !important;
    }

    .nav-item.active {
        color: #FFD700 !important;
    }

    .nav-item:hover {
        transform: translateY(-4px) !important;
        color: #fff !important;
    }

    /* 8. Profile, History, & Loan Tabs Desktop Alignment */
    #tab-loan, #tab-history {
        max-width: 850px !important;
        margin: 0 auto !important;
        padding: 30px !important;
    }

    .profile-dashboard-wrapper {
        max-width: 850px !important;
        margin: 0 auto !important;
        padding: 30px 20px 100px 20px !important;
    }

    .profile-stats-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 20px !important;
    }
}

/* Dashboard Status Cards */
.dashboard-status-cards { padding-top: 15px; }
.dash-status-row { display: flex; gap: 10px; margin: 0 15px 10px 15px; overflow-x: auto; padding-bottom: 5px; scrollbar-width: none; }
.dash-status-row::-webkit-scrollbar { display: none; }
.dash-status-card { background: #001540; border-radius: 12px; padding: 10px; flex: 1; min-width: 30%; aspect-ratio: 30 / 17; box-shadow: 0 4px 10px rgba(0,0,0,0.2); display: flex; flex-direction: column; justify-content: center; border: 1px solid rgba(255,255,255,0.05); }
.dsc-header { display: flex; align-items: center; gap: 6px; margin-bottom: 8px; }
.dsc-icon { width: 12px; height: 12px; color: #fff; }
.dsc-title { color: #fff; font-size: 0.7em; font-weight: 600; white-space: nowrap; }
.dsc-value { color: #fff; font-size: 1.1em; font-weight: 800; margin-bottom: 2px; }
.dsc-sub, .dsc-footer { font-size: 0.65em; color: #94a3b8; font-weight: 600; }
.dsc-footer { margin-top: 2px; }
@media (max-width: 600px) { .dash-status-card { min-width: 130px; } }




/* ==========================================================================
   DISABLED MEMBER CARD STYLING
   ========================================================================== */
.disabled-member-card {
    opacity: 0.82;
    filter: grayscale(40%);
    transition: all 0.3s ease;
}

.disabled-member-card:hover {
    filter: grayscale(0%);
    opacity: 1;
}

/* DP Fade and Grayscale effect */
.faded-disabled-dp {
    filter: grayscale(100%) contrast(90%) brightness(85%);
    opacity: 0.55 !important;
}

/* Disabled Rank Badge */
.normal-card-rank.disabled-rank {
    background: #4a5568 !important;
    color: #e2e8f0 !important;
    border-color: #718096 !important;
    font-size: 0.7em !important;
}

/* Disabled Balance Badge Layout */
.disabled-balance-badge {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1.1 !important;
    padding: 3px 6px !important;
    background: linear-gradient(135deg, #2d3748 0%, #1a202c 100%) !important;
    border: 1px solid rgba(220, 53, 69, 0.4) !important;
}

.disabled-tag-text {
    font-size: 0.65em !important;
    font-weight: 900 !important;
    letter-spacing: 1px !important;
    color: #ff6b6b !important;
    text-transform: uppercase !important;
}

.crossed-amount {
    font-size: 0.78em !important;
    text-decoration: line-through !important;
    text-decoration-color: #ef4444 !important;
    text-decoration-thickness: 1.5px !important;
    color: #a0aec0 !important;
    font-weight: 500 !important;
}



/* SIP Modal Disabled Badge */
.sip-status-badge.disabled-badge {
    background-color: #6c757d !important;
    color: #ffffff !important;
    border: 1px solid #495057 !important;
    opacity: 0.85;
}
.sip-status-item.disabled-sip-row {
    background-color: #f8f9fa;
    opacity: 0.85;
}



/* ==========================================================================
   PART 8: HISTORY & TRANSACTIONS (SPA INTEGRATION)
   ========================================================================== */

/* HEADER SECTION (COMPACT) */
.header-section {
    background-color: var(--primary-color);
    color: white;
    padding: 14px 18px 28px 18px;
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
    position: relative;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.header-top { display: flex; justify-content: space-between; align-items: center; }
.page-title { font-size: 1.18rem; font-weight: 700; margin: 0; }
.sub-title { font-size: 0.68rem; color: var(--accent-gold); letter-spacing: 0.8px; text-transform: uppercase; font-weight: 600; display: block; }

/* PDF Download Icon */
.header-logo-btn {
    width: 38px; height: 38px; border-radius: 50%; border: 2px solid var(--accent-gold);
    overflow: hidden; cursor: pointer; background: white;
    box-shadow: 0 0 8px rgba(212, 175, 55, 0.4); transition: transform 0.2s;
    display: flex; align-items: center; justify-content: center;
}
.header-logo-btn:active { transform: scale(0.9); }
.header-logo-btn img { width: 100%; height: 100%; object-fit: cover; }

/* MONTH NAVIGATOR (SLIM PILL) */
.month-nav-container { position: absolute; bottom: -16px; left: 0; width: 100%; display: flex; justify-content: center; z-index: 10; }
.month-selector { background: white; padding: 4px 10px; border-radius: 25px; box-shadow: 0 3px 12px rgba(0,0,0,0.1); display: flex; align-items: center; gap: 12px; min-width: 195px; justify-content: space-between; }
.nav-btn { background: #f0f2f5; border: none; width: 25px; height: 25px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--primary-color); cursor: pointer; transition: 0.2s; }
.nav-btn:active { background: var(--accent-gold); color: white; }
.nav-btn svg { width: 13px !important; height: 13px !important; }
.current-month { font-weight: 700; color: var(--primary-color); font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.3px; }

/* STATS CARDS (COMPACT RECTANGULAR GRID) */
.stats-container { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; padding: 26px 12px 6px 12px; }
.stat-card { background: white; border-radius: 12px; padding: 7px 4px; text-align: center; box-shadow: 0 4px 15px rgba(0,0,0,0.05); cursor: pointer; border: 1.5px solid transparent; transition: all 0.2s ease; min-height: 62px; display: flex; flex-direction: column; justify-content: center; align-items: center; }
.stat-card.active { border-color: var(--accent-gold); background: #fffdf5; transform: translateY(-2px); }
.stat-icon-circle { width: 25px; height: 25px; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 3px; }
.stat-icon-circle svg, .stat-icon-circle i { width: 13px !important; height: 13px !important; }
.stat-label { font-size: 0.58rem; font-weight: 600; color: #888; text-transform: uppercase; margin-bottom: 2px; letter-spacing: 0.2px; }
.stat-value { font-size: 0.82rem; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; line-height: 1.1; }

.card-sip .stat-icon-circle { background: #e8f5e9; color: #2e7d32; } .card-sip .stat-value { color: #2e7d32; }
.card-loan .stat-icon-circle { background: #ffebee; color: #c62828; } .card-loan .stat-value { color: #c62828; }
.card-repay .stat-icon-circle { background: #e3f2fd; color: #1565c0; } .card-repay .stat-value { color: #1565c0; }

/* LIST HEADER */
.list-header { padding: 15px 20px 5px; display: flex; justify-content: space-between; align-items: center; }
.list-title { font-size: 0.85rem; font-weight: 700; color: #999; letter-spacing: 1px; text-transform: uppercase; }
.tx-count-badge { background: var(--primary-color); color: var(--accent-gold); font-size: 0.7rem; padding: 3px 10px; border-radius: 12px; font-weight: 600; box-shadow: 0 2px 5px rgba(0,0,0,0.1); }
.filter-indicator { display: block; font-size: 0.7rem; color: var(--accent-gold); text-align: center; margin-top: -3px; margin-bottom: 8px; font-weight: 600; min-height: 15px; }

/* 🌟 MODERN 2-WAY LEDGER TOGGLE SWITCHER (STICKY) */
.sticky-toggle-wrapper { position: -webkit-sticky; position: sticky; top: 0; background-color: #f8f9fd; z-index: 100; padding: 10px 15px; margin: 0; box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03); }
.ledger-switcher-container { display: flex; background: #eef2f8; border-radius: 30px; padding: 4px; box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.08); border: 1px solid rgba(0, 21, 64, 0.08); width: 100%; }
.ledger-toggle-btn { flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px; padding: 8px 12px; border: none; background: transparent; color: #64748b; font-size: 0.78rem; font-weight: 700; border-radius: 25px; cursor: pointer; transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1); font-family: inherit; }
.ledger-toggle-btn svg { width: 14px !important; height: 14px !important; stroke-width: 2.2; }
.ledger-toggle-btn.active { background: linear-gradient(135deg, #001540 0%, #002875 100%); color: #ffffff; box-shadow: 0 4px 12px rgba(0, 21, 64, 0.25); }
.ledger-toggle-btn.active svg { color: var(--accent-gold); }

/* --- 📢 2-CARD SIZE MANUAL NOTICE BOX --- */
.notice-container { padding: 0 15px 10px 15px; }
.notice-hero-card { background: linear-gradient(135deg, #001540 0%, #002875 100%); border: 1.5px solid var(--accent-gold); border-radius: 16px; padding: 10px; box-shadow: 0 6px 20px rgba(0, 21, 64, 0.22); cursor: pointer; position: relative; overflow: hidden; transition: transform 0.2s ease; display: flex; flex-direction: column; gap: 8px; }
.notice-hero-card:active { transform: scale(0.98); }
.notice-media-wrap { width: 100%; height: 95px; border-radius: 10px; overflow: hidden; background: #000e2b; border: 1px solid rgba(212, 175, 55, 0.35); }
.notice-img-banner { width: 100%; height: 100%; object-fit: cover; display: block; }
.notice-action-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 2px 4px 2px 2px; }
.notice-title-box { flex: 1; min-width: 0; }
.notice-title { color: #ffffff; font-size: 0.92rem; font-weight: 700; margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.25; }
.notice-sub-date { font-size: 0.65rem; color: #a0aec0; font-weight: 500; margin-top: 2px; display: flex; align-items: center; gap: 4px; }
.notice-redirect-link { display: inline-flex; align-items: center; gap: 4px; background: linear-gradient(135deg, #D4AF37 0%, #B8860B 100%); color: #001540 !important; font-size: 0.72rem; font-weight: 800; padding: 6px 12px; border-radius: 20px; text-decoration: none; white-space: nowrap; box-shadow: 0 2px 8px rgba(212, 175, 55, 0.35); flex-shrink: 0; transition: transform 0.15s ease; }
.notice-redirect-link:active { transform: scale(0.92); }
.notice-read-chip { display: inline-flex; align-items: center; gap: 2px; color: #FFD700; font-size: 0.72rem; font-weight: 700; flex-shrink: 0; }

/* TX LIST */
.tx-list { padding: 5px 15px; }
.tx-card { background: white; border-radius: 16px; padding: 15px; margin-bottom: 12px; display: flex; align-items: center; box-shadow: 0 4px 15px rgba(0,0,0,0.05); transition: transform 0.2s; }
.tx-card:active { transform: scale(0.98); }
.tx-date-box { background: #f5f7fa; border-radius: 12px; padding: 8px 10px; text-align: center; min-width: 50px; margin-right: 15px; }
.tx-month { font-size: 0.65rem; font-weight: 700; color: #c62828; text-transform: uppercase; display: block; line-height: 1; }
.tx-day { font-size: 1.2rem; font-weight: 700; color: var(--primary-color); display: block; line-height: 1.2; }
.tx-info { flex-grow: 1; }
.tx-name { font-size: 0.95rem; font-weight: 600; color: var(--primary-color); margin: 0; }
.tx-type { font-size: 0.7rem; font-weight: 600; margin-top: 4px; display: flex; align-items: center; gap: 4px; }
.tx-amount { font-size: 1rem; font-weight: 700; text-align: right; }
.color-green { color: #2e7d32; } .color-red { color: #c62828; } .color-blue { color: #1565c0; }
.empty-state { text-align: center; padding: 40px; color: #999; font-size: 0.9rem; }
.tx-card.today { background-color: #fffdf0; border: 1px solid rgba(212, 175, 55, 0.4); }
.tx-today-badge { font-size: 0.55rem; background: var(--accent-gold); color: white; padding: 2px 6px; border-radius: 8px; margin-left: 5px; vertical-align: middle; font-weight: 700; letter-spacing: 0.5px; }

/* --- TRANSACTION DETAIL MODAL --- */
.tx-modal-overlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,21,64,0.7); z-index: 2000; justify-content: center; align-items: center; backdrop-filter: blur(4px); }
.tx-modal-content { background: white; border-radius: 20px; width: 90%; max-width: 350px; padding: 25px 20px; position: relative; box-shadow: 0 10px 30px rgba(0,0,0,0.3); transform: translateY(30px); transition: transform 0.3s ease; }
.tx-modal-overlay.show { display: flex; }
.tx-modal-overlay.show .tx-modal-content { transform: translateY(0); }
.tx-modal-close { position: absolute; top: 15px; right: 15px; background: #f0f2f5; border: none; width: 32px; height: 32px; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; color: var(--primary-color); }
.tx-modal-header { text-align: center; border-bottom: 1px dashed #ddd; padding-bottom: 15px; margin-bottom: 15px; }
.tx-modal-amount { font-size: 2rem; font-weight: 800; color: var(--primary-color); margin: 5px 0; }
.tx-modal-type { font-size: 0.85rem; font-weight: 700; color: #666; text-transform: uppercase; letter-spacing: 1px;}
.tx-modal-row { display: flex; justify-content: space-between; margin-bottom: 12px; font-size: 0.85rem; }
.tx-modal-row span:first-child { color: #888; font-weight: 500; }
.tx-modal-row span:last-child { color: var(--primary-color); font-weight: 700; text-align: right; }
.tx-modal-id { font-family: monospace; font-size: 0.75rem; background: #f5f7fa; padding: 6px 10px; border-radius: 8px; color: #555; word-break: break-all; margin-top: 5px; border: 1px solid #eee;}

/* 🔥 WhatsApp Style Unread Badge */
.nav-unread-badge {
    position: absolute;
    top: -3px;
    right: 8px;
    background: #ef4444;
    color: #ffffff;
    font-size: 0.62rem;
    font-weight: 800;
    min-width: 17px;
    height: 17px;
    border-radius: 50%;
    display: none; 
    align-items: center;
    justify-content: center;
    border: 2px solid #ffffff;
    box-shadow: 0 2px 6px rgba(239, 68, 68, 0.45);
    animation: pulseBadge 1.8s infinite;
}

@keyframes pulseBadge {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.18); }
}