/*
FINAL UPDATE:
1. Community Info section ki spacing theek ki gayi hai.
2. Prime Member card ka naam bold aur center kiya gaya hai.
3. Info cards mein image ke liye naya style joda gaya hai.
4. Top 3 member cards ke liye custom frame styles jode gaye hain.
5. Framed cards ka size bada kiya gaya hai aur content ko frame ke upar position kiya gaya hai.
6. Rank medals/badges hata diye gaye hain.
7. Name/Amount/Prime tag ko frame par aakhri baar aache se set kiya gaya hai.
8. [USER REQUEST] Normal card (Rank 4+) ke liye naya frame-based design aur ranking number system joda gaya hai.
9. [USER REQUEST 2] Normal card mein profile photo ki layering (z-index) theek ki gayi hai.
10. [USER REQUEST 3] Normal card ka size aur style ko Top 3 card ke "Same to Same" kiya gaya hai. Rank number ka color black kiya gaya hai. Name ka color white with shadow kiya gaya hai.
11. [SELF-GUIDED UPDATE] Card ke beech ka gap kam kiya gaya aur badge ki position adjust ki gayi.
12. [LATEST UPDATE] Card size chhota kiya gaya hai taki screen par do cards fit ho sakein.
*/

:root {
    --primary-color: #007bff; --primary-darker: #0056b3; --secondary-color: #25D366;
    --secondary-darker: #128C7E; --text-color: #333; --light-text: #555;
    --bg-color: #f8f9fa; --card-bg: #ffffff; --border-color: #dee2e6;
    --shadow-color: rgba(0, 0, 0, 0.08); --prime-color: #ffc107; --danger-color: #dc3545;
    --success-color: #28a745; --info-color: #17a2b8; --animation-duration: 0.6s;
}
html { scroll-behavior: smooth; }
body { font-family: 'Roboto', 'Arial', sans-serif; background-color: var(--bg-color); margin: 0; padding: 0; color: var(--text-color); overflow-x: hidden; line-height: 1.7; }

h1, h2, h3, h4, h5, h6 { color: var(--text-color); margin-top: 1.5em; margin-bottom: 0.8em; font-weight: 700; }
h2 { text-align: center; color: var(--primary-darker); font-size: 1.8em; display: flex; align-items: center; justify-content: center; gap: 10px; }

h2 i { width: 28px; height: 28px; color: var(--primary-color); }
p { margin-bottom: 1.2em; color: var(--light-text); }
a { color: var(--primary-color); text-decoration: none; transition: color 0.3s ease; }
a:hover { color: var(--primary-darker); text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
header { background: linear-gradient(135deg, var(--primary-color), var(--primary-darker)); color: white; padding: 20px 0; text-align: center; border-bottom: 5px solid var(--prime-color); }
.header-display { width: 100%; max-width: 500px; height: 180px; margin: 0 auto 15px auto; padding: 10px; box-sizing: border-box; border-radius: 20px; background: linear-gradient(145deg, #2a2a2a, #1a1a1a); box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3), inset 0 0 10px rgba(0, 0, 0, 0.5); position: relative; display: flex; flex-direction: column; }
.ad-content { background-color: #111; border-radius: 10px; width: 100%; height: 100%; position: relative; overflow: hidden; box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.7); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 10px; box-sizing: border-box; animation: fadeIn 0.8s ease-in-out; flex-grow: 1; }
.ad-content::before { content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-image: repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(255, 255, 255, 0.02) 2px, rgba(255, 255, 255, 0.02) 4px); opacity: 0.5; z-index: 1; pointer-events: none; }
.ticker-wrap { width: 100%; overflow: hidden; background-color: #000; padding: 5px 0; border-top: 1px solid #333; margin-top: auto; }
.ticker { display: inline-block; white-space: nowrap; padding-left: 100%; animation: ticker-scroll 20s linear infinite; color: #0f0; font-family: 'Courier New', Courier, monospace; font-size: 0.9em; }
@keyframes ticker-scroll { 0% { transform: translateX(0); } 100% { transform: translateX(-100%); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.ad-headline { font-size: 1em; font-weight: 600; color: #e5e5e5; margin-bottom: 5px; z-index: 2; position: relative; }
.ad-member-info, .ad-top-three-container, .ad-bank-stats-container { z-index: 2; position: relative; display: flex; align-items: center; justify-content: center; gap: 15px; flex-wrap: wrap; width: 100%; }
.ad-top-three-container { justify-content: space-around; align-items: flex-start; }
.ad-member-img { width: 60px; height: 60px; border-radius: 50%; object-fit: cover; border: 3px solid #4b5563; }
.ad-member-details { text-align: left; }
.ad-member-name { font-size: 1.3em; font-weight: 700; margin: 0; color: #f0f0f0; }
.ad-member-amount { font-size: 1.1em; font-weight: 500; color: #34d399; margin: 5px 0 0 0; text-shadow: 0 0 8px rgba(52, 211, 153, 0.5); }
.ad-top-three-member { text-align: center; flex: 1; }
.ad-top-three-img { width: 45px; height: 45px; border-radius: 50%; object-fit: cover; margin: 0 auto 5px; border: 2px solid #4b5563; }
.ad-top-three-name { font-size: 0.85em; font-weight: 600; line-height: 1.2; color: #d1d5db; margin: 0 0 4px 0; }
.ad-top-three-amount { font-size: 0.8em; color: #34d399; margin: 0; }
.ad-bank-logo { width: 70px; height: 70px; }
.ad-bank-stats { list-style: none; padding: 0; margin: 0; text-align: left; }
.ad-bank-stats li { font-size: 1em; font-weight: 500; margin-bottom: 5px; color: #d1d5db;}
.ad-bank-stats li strong { color: #93c5fd; }
header h1 { color: white; font-size: 2.2em; margin: 15px 0 5px 0; text-shadow: 1px 1px 3px rgba(0,0,0,0.4); font-weight: 700; }
header h4 { color: rgba(255, 255, 255, 0.9); margin: 0 0 20px 0; font-weight: 400; font-size: 1em; }
.header-actions { display: flex; flex-direction: column; align-items: center; gap: 15px; width: 100%; padding: 0 15px; margin-top: 15px; box-sizing: border-box; }
.dynamic-buttons-wrapper { display: flex; flex-wrap: wrap; justify-content: center; gap: 15px; width: 100%; padding: 0 15px; }
.civil-button { padding: 12px 25px; font-size: 1em; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; cursor: pointer; transition: all 0.3s ease; }
.civil-button svg, .notification-btn svg { width: 20px; height: 20px; }
.notification-btn { position: relative; line-height: 1; display: inline-flex; align-items: center; justify-content: center; }
.notification-dot { position: absolute; top: 8px; right: 12px; width: 10px; height: 10px; background-color: var(--danger-color); border-radius: 50%; border: 2px solid var(--prime-color); display: none; }
.install-button { display: none; font-weight: bold; cursor: pointer; transition: all 0.3s ease; gap: 10px; align-items: center; justify-content: center; }
.install-button img { width: 24px; height: 24px; }
.btn-glossy {
    background-image: linear-gradient(to top, #5a67d8, #7f9cf5); box-shadow: inset 0 1px 1px #a3bffa, 0 4px 6px rgba(0,0,0,0.2); text-shadow: 0 1px 1px rgba(0,0,0,0.3); border-bottom: 1px solid #4c51bf; }
.btn-neumorphic { background: #e0e5ec; box-shadow: 9px 9px 16px #a3b1c6, -9px -9px 16px #ffffff; border: none; }
.btn-outline { background-color: transparent; border-style: solid; }
.content-wrapper { max-width: 1140px; margin: 30px auto; padding: 0; }

section { margin-bottom: 25px; padding: 25px; background-color: var(--card-bg); border-radius: 12px; box-shadow: 0 4px 15px var(--shadow-color); border: 1px solid var(--border-color); }

.products-section { 
    background: linear-gradient(135deg, #2d3748, #1a202c);
    padding: 25px 0;
    border-radius: 0;
    margin-bottom: 25px;
    box-shadow: none;
    border: none;
}
.products-section h2 { 
    color: white;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
    margin-bottom: 25px; 
    padding: 0 15px;
    font-weight: 700;
}
.products-container { 
    display: flex;
    overflow-x: auto;
    gap: 15px;
    padding: 0 15px 15px 15px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.products-container::-webkit-scrollbar {
    display: none;
}
.product-card { 
    flex: 0 0 160px;
    width: 160px;
    background-color: var(--card-bg); 
    border-radius: 4px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.07); 
    border: 1px solid var(--border-color); 
    overflow: hidden; 
    display: flex; 
    flex-direction: column; 
    transition: transform 0.3s ease, box-shadow 0.3s ease; 
}
.product-card:hover { transform: translateY(-5px); box-shadow: 0 8px 20px rgba(0,0,0,0.12); }
.product-image-wrapper { background-color: #f8f9fa; }
.product-image { width: 100%; height: 140px; object-fit: contain; }
.product-info { 
    padding: 10px; 
    flex-grow: 1; 
    display: flex; 
    flex-direction: column; 
}
.product-name { 
    font-size: 0.95em; 
    font-weight: 700;
    color: var(--text-color);
    margin: 0 0 5px 0; 
    line-height: 1.3; 
    flex-grow: 1; 
}
.product-price-container { 
    display: flex; 
    align-items: baseline; 
    gap: 8px; 
    flex-wrap: wrap; 
    margin-bottom: 5px; 
}
.product-price { font-size: 1.1em; font-weight: 700; color: var(--primary-darker); }
.product-mrp { font-size: 0.85em; color: var(--light-text); text-decoration: line-through; }
.product-discount { display: none; }
.product-emi-link { 
    font-size: 0.8em; 
    color: #B91C1C;
    font-weight: 600;
    text-decoration: underline; 
    cursor: pointer; 
    margin-top: 5px; 
}
.product-actions { display: grid; grid-template-columns: 1fr 2fr; gap: 8px; padding: 12px; border-top: 1px solid var(--border-color); }
.product-btn { 
    border-radius: 5px;
    text-align: center; 
    font-weight: 600; 
    text-decoration: none; 
    transition: background-color 0.3s ease; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
}
.product-btn.whatsapp { 
    background-color: #e8f5e9; 
    padding: 8px;
}
.product-btn.whatsapp:hover { background-color: #dcedc8; }
.product-btn.whatsapp img { width: 22px; height: 22px; }
.product-btn.explore { 
    background-color: var(--primary-color); 
    color: white; 
    padding: 8px 10px;
    font-size: 0.9em;
}
.product-btn.explore:hover { background-color: var(--primary-darker); }

.action-cards-section { padding-left: 20px; padding-right: 20px; }
.action-cards-section h2 { text-align: center; margin-bottom: 30px; }
.action-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 30px; }
.action-card { background-color: var(--card-bg); border-radius: 10px; padding: 15px 20px; text-align: center; box-shadow: 0 5px 15px rgba(0, 0, 0, 0.07); transition: transform 0.3s ease, box-shadow 0.3s ease; cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; text-decoration: none; color: var(--primary-color); border: 1px solid var(--border-color); min-height: 90px; overflow: hidden; }
.action-card:hover { transform: translateY(-6px); box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12); text-decoration: none; color: var(--primary-darker); }
.action-card-icon { width: 36px; height: 56px; stroke-width: 1.5px; margin-bottom: 12px; color: var(--primary-color); }
.action-card:hover .action-card-icon { color: var(--primary-darker); }
.action-card-icon-img { width: 40px; height: 40px; margin-bottom: 10px; object-fit: contain; }
.action-card span { font-size: 1em; font-weight: 500; line-height: 1.4; margin-top: auto; }
.action-card.whatsapp-card { background-color: var(--secondary-color); color: white; border-color: var(--secondary-darker); }
.action-card.whatsapp-card:hover { background-color: var(--secondary-darker); color: white; }
.action-card.whatsapp-card span { color: white; }
.info-card { cursor: default; align-items: center; padding: 20px 15px; border-left: 4px solid var(--info-color); min-height: 140px; }
.info-card:hover { transform: none; box-shadow: 0 5px 15px rgba(0, 0, 0, 0.07); }
.info-card .action-card-icon { color: var(--info-color); margin-bottom: 8px; }
.info-card:hover .action-card-icon { color: var(--info-color); }
.info-card-label { font-size: 0.9em; color: var(--light-text); margin-bottom: 5px; display: block; line-height: 1.3; }
.info-card-value { font-size: 1.6em; font-weight: 700; color: var(--primary-darker); display: block; line-height: 1.2; }
.total-loan-value { color: var(--danger-color) !important; }
@media (min-width: 768px) { .action-cards { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 992px) { .action-cards { grid-template-columns: repeat(4, 1fr); max-width: 900px; margin-left: auto; margin-right: auto; } }
@media (min-width: 1200px) { .action-cards { grid-template-columns: repeat(4, 1fr); max-width: 1100px; } }

.info-slider-section {
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0 20px;
}
.info-slider-section h2 {
    font-size: 1.7em;
    padding: 0;
    margin-bottom: 20px;
    justify-content: flex-start;
    text-align: left;
}
.info-slider-container {
    display: flex;
    overflow-x: auto;
    gap: 15px;
    padding: 10px 0;
    margin: 0;
    scrollbar-width: none;
    -ms-overflow-style: 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;
}
.info-card-slide h3 {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.15em;
    font-weight: 600;
    color: var(--text-color);
    margin: 0 0 10px 0;
}
.info-card-slide h3 i {
    color: var(--primary-color);
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}
.info-card-slide p {
    margin: 0;
    font-size: 0.95em;
    line-height: 1.6;
    color: var(--light-text);
    flex-grow: 1;
}
.info-card-image {
    width: 100%;
    aspect-ratio: 5 / 6;
    object-fit: cover;
    border-radius: 8px;
    display: block;
    margin: 0 auto 15px;
}
.prime-member-card {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 10px;
    margin-top: 5px;
    text-align: center;
    width: 100%;
    flex-grow: 1;
}
.prime-member-card img {
    width: 100%;
    height: 380px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 5px;
}
.prime-member-card span {
    font-weight: bold;
    font-size: 1.1em;
    color: var(--text-color);
}


.letter-slider-section h2 { text-align: center; }
.slider-container { position: relative; max-width: 1000px; margin: 10px auto; overflow: hidden; border: 1px solid var(--border-color); border-radius: 8px; background-color: var(--card-bg); box-shadow: 0 4px 10px rgba(0,0,0,0.1); }
.slides { display: flex; transition: transform 0.5s ease-in-out; }
.slide { min-width: 100%; box-sizing: border-box; }
.slide img { width: 100%; display: block; border-radius: 8px; cursor: pointer; }
.prev, .next { cursor: pointer; position: absolute; top: 50%; transform: translateY(-50%); width: auto; padding: 12px 16px; color: white; font-weight: bold; font-size: 24px; background-color: rgba(0, 0, 0, 0.5); border: none; border-radius: 50%; user-select: none; transition: background-color 0.3s ease; line-height: 1; z-index: 10; }
.prev:hover, .next:hover { background-color: rgba(0, 0, 0, 0.8); }
.prev { left: 15px; }
.next { right: 15px; }
.slide-indicator { text-align: center; margin-top: 15px; padding-bottom: 10px; }
.indicator-dot { display: inline-block; width: 8px; height: 8px; background-color: #ccc; border-radius: 50%; margin: 0 6px; cursor: pointer; transition: all 0.3s ease; }
.indicator-dot.active { background-color: var(--primary-color); transform: scale(1.2); }
.bank-members { background: linear-gradient(to bottom, #e0f2f7, #ffffff); padding: 30px 0; width: 100%; box-sizing: border-box; border-bottom: 1px solid var(--border-color); }
.header-container { display: flex; justify-content: space-between; align-items: center; padding: 0 25px 20px 25px; flex-wrap: wrap; gap: 15px; max-width: 1140px; margin: 0 auto; }
.bank-headline { font-size: 1.8em; font-weight: 700; color: var(--primary-darker); margin: 0; flex-grow: 1; }
.header-buttons-wrapper { display: flex; gap: 10px; }
/* === YAHAN BADLAV KIYA GAYA HAI === */
.member-slider { 
    display: flex; 
    gap: 5px; /* Gap kam kiya gaya */
    overflow-x: auto; 
    scroll-behavior: smooth; 
    padding: 30px 5px; /* Left/Right padding kam ki gayi */
    -webkit-overflow-scrolling: touch; 
    scrollbar-width: thin; 
    scrollbar-color: var(--primary-color) #e0f2f7; 
    max-width: 1140px; 
    margin: 0 auto; 
}
.member-slider::-webkit-scrollbar { height: 8px; }
.member-slider::-webkit-scrollbar-track { background: #e0f2f7; border-radius: 4px;}
.member-slider::-webkit-scrollbar-thumb { background-color: var(--primary-color); border-radius: 4px; border: 2px solid #e0f2f7; }
.member-slider::-webkit-scrollbar-thumb:hover { background-color: var(--primary-darker); }


/* === TOP 3 FRAMED CARD (RANK 1-3) === */
/* Card ka size chhota kiya gaya */
.framed-card-wrapper {
    flex: 0 0 auto; /* Flex-basis auto kiya gaya taki width kaam kare */
    width: 180px;
    height: 305px;
    cursor: pointer;
    transition: transform 0.3s ease;
}
.framed-card-wrapper:hover {
    transform: translateY(-8px) scale(1.03);
}
.framed-card-content {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
}
.framed-member-photo {
    position: absolute;
    top: 7.5%;
    left: 9%;
    width: 85%; /* Photo thodi patli ki gayi */
    height: 60%;
    object-fit: cover;
    border-radius: 4px; /* Radius thoda kam kiya */
    z-index: 1;
}
.card-frame-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}
/* Font size aur position adjust ki gayi */
.framed-member-name {
    position: absolute;
    bottom: 26%;
    width: 100%;
    left: 0;
    color: white;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.9);
    margin: 0;
    padding: 0 10px;
    box-sizing: border-box;
    font-size: 1.05em;
    font-weight: 700;
    z-index: 3;
}
.framed-member-balance {
    position: absolute;
    bottom: 5%;
    width: 100%;
    left: 4px; /* Center karne ke liye left 0 */
    font-weight: 700;
    font-size: 1.1em;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
    z-index: 3;
}
.framed-prime-tag {
    position: absolute;
    bottom: 35%;
    right: 11%; /* Position adjust ki gayi */
    background-color: var(--prime-color);
    color: var(--text-color);
    padding: 2px 6px;
    border-radius: 5px;
    font-size: 9px;
    font-weight: bold;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    z-index: 3;
}
.framed-member-balance.balance-gold { color: #4b3200; }
.framed-member-balance.balance-silver { color: white; }
.framed-member-balance.balance-bronze { color: #ffeb3b; }
.framed-member-balance.negative-balance { color: #ffc4c4; text-shadow: 1px 1px 2px #000; }


/* === NORMAL FRAMED CARD (RANK 4+) === */
/* Card ka size Top 3 jaisa kiya gaya */
.normal-framed-card-wrapper {
    flex: 0 0 auto;
    width: 180px;
    height: 305px;
    cursor: pointer;
    transition: transform 0.3s ease;
    position: relative;
}
.normal-framed-card-wrapper:hover {
    transform: translateY(-8px) scale(1.03);
}
.normal-card-content {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
}
.normal-framed-photo {
    position: absolute;
    top: 7.5%;
    left: 10%;
    width: 85%;
    height: 60%;
    object-fit: cover;
    border-radius: 8px;
    z-index: 1; 
}
.normal-card-frame-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2; 
    pointer-events: none;
}
.normal-card-rank {
    position: absolute;
    top: 4%;
    left: 5%;
    width: 18%; 
    height: 11%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: black; 
    font-size: 0.9em;
    font-weight: 700;
    text-shadow: 0 0 1px rgba(255,255,255,0.5); 
    z-index: 3;
}
.normal-framed-name {
    position: absolute;
    bottom: 26%;
    width: 100%;
    left: 0;
    color: white; 
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.9); 
    margin: 0;
    padding: 0 10px;
    box-sizing: border-box;
    font-size: 1.05em;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    z-index: 3;
}
.normal-framed-balance {
    position: absolute;
    bottom: 5%;
    width: 100%;
    left: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1.1em;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
    z-index: 3;
}
.normal-framed-balance.negative-balance {
    color: #FECACA;
}
.normal-prime-tag {
    position: absolute;
    bottom: 35%;
    right: 11%;
    background-color: var(--prime-color);
    color: var(--text-color);
    padding: 2px 6px;
    border-radius: 5px;
    font-size: 9px;
    font-weight: bold;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    z-index: 3;
}


#customCardsSection { background: none; border: none; box-shadow: none; padding: 0; margin-top: -20px; }
.custom-card-slider-wrapper { position: relative; }
.custom-cards-container { display: flex; gap: 15px; overflow-x: auto; scroll-behavior: smooth; padding: 20px 15px; -webkit-overflow-scrolling: touch; scrollbar-width: none; scroll-snap-type: x mandatory; }
.custom-cards-container::-webkit-scrollbar { display: none; }
.custom-card { background-color: var(--card-bg); border-radius: 12px; box-shadow: 0 6px 20px rgba(0,0,0,0.1); border: 1px solid var(--border-color); overflow: hidden; transition: transform 0.3s ease, box-shadow 0.3s ease; display: flex; flex-direction: column; flex: 0 0 calc(100% - 30px); max-width: 500px; scroll-snap-align: center; }
.custom-card-img-wrapper { position: relative; }
.custom-card-img { width: 100%; height: auto; object-fit: cover; display: block; }
.custom-card-content { padding: 15px; display: flex; flex-direction: column; flex-grow: 1; }
.custom-card-title { font-size: 1.3em; font-weight: 700; color: var(--primary-darker); margin-top: 0; margin-bottom: 5px; }
.custom-card-desc { font-size: 0.9em; color: var(--light-text); margin-bottom: 0; flex-grow: 1; }
.custom-card-btn { position: absolute; bottom: 15px; left: 50%; transform: translateX(-50%); display: block; width: auto; min-width: 120px; padding: 12px 25px; border-radius: 50px; border: none; background-color: var(--primary-color); color: white; font-size: 1.1em; font-weight: 600; text-align: center; text-decoration: none; cursor: pointer; transition: all 0.3s ease; box-shadow: 0 4px 15px rgba(0,0,0,0.3); }
.custom-card-btn:hover { transform: translateX(-50%) translateY(-2px) scale(1.02); box-shadow: 0 6px 20px rgba(0,0,0,0.4); }
#custom-cards-indicator { text-align: center; padding-bottom: 20px; }
#custom-cards-indicator .indicator-dot { background-image: url('https://placehold.co/200x200/e0e7ff/4f46e5?text=+'); background-size: cover; width: 40px; height: 25px; border-radius: 4px; border: 2px solid transparent; }
#custom-cards-indicator .indicator-dot.active { border-color: var(--primary-color); }
.loading-text, .error-text { color: var(--light-text); text-align: center; width: 100%; padding: 30px 20px; font-size: 1.1em; font-style: italic; }
.error-text { color: var(--danger-color); font-weight: bold; font-style: normal; }
.modal { display: none; position: fixed; z-index: 1001; left: 0; top: 0; width: 100%; height: 100%; background-color: rgba(0,0,0,0.7); backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px); justify-content: center; align-items: center; opacity: 0; transition: opacity 0.4s ease; }
.modal.show { display: flex; opacity: 1; }
.modal-content { background-color: var(--card-bg); padding: 25px 30px; border-radius: 15px; width: 90%; max-width: 450px; text-align: center; box-shadow: 0 8px 25px rgba(0,0,0,0.3); position: relative; transform: scale(0.9) translateY(20px); transition: transform 0.4s cubic-bezier(0.18, 0.89, 0.32, 1.28), border-color 0.3s ease; }
.modal.show .modal-content { transform: scale(1) translateY(0); }
.modal-content h2 { margin-top: 0; margin-bottom: 20px; color: var(--primary-darker); font-size: 1.5em; }
.close { position: absolute; top: 15px; right: 15px; color: #aaa; font-size: 35px; font-weight: bold; cursor: pointer; line-height: 1; transition: color 0.3s ease, transform 0.3s ease; }
.close:hover, .close:focus { color: var(--danger-color); transform: rotate(90deg); text-decoration: none; }
.balance-display { font-size: 2.8em; font-weight: 700; margin: 10px 0 0 0; color: var(--success-color); display: block; line-height: 1.1; font-family: 'Arial', sans-serif; }
.balance-label { font-size: 0.9em; color: var(--light-text); display: block; margin-top: 2px; }
.balance-display.return { color: var(--info-color); font-size: 2.2em; }
.balance-display.total { color: var(--primary-darker); font-size: 3.2em; }
.emi-details-list { list-style: none; padding: 0; margin-top: 20px; text-align: left; }
.emi-details-list li { display: flex; justify-content: space-between; padding: 12px 5px; border-bottom: 1px solid var(--border-color); }
.emi-details-list li:last-child { border-bottom: none; }
.emi-details-list .duration { font-weight: 500; color: var(--light-text); }
.emi-details-list .rate { font-weight: 600; color: var(--primary-darker); }
#memberProfileModal .modal-content { text-align: left; padding-top: 80px; margin-top: 40px; border-top: 5px solid var(--primary-color); }
.profile-modal-header { position: absolute; top: -60px; left: 50%; transform: translateX(-50%); width: 120px; height: 120px; border-radius: 50%; border: 5px solid white; box-shadow: 0 4px 15px rgba(0,0,0,0.2); overflow: hidden; background-color: #eee; cursor: pointer; transition: transform 0.2s ease, border-color 0.3s ease; }
.profile-modal-header:hover { transform: translateX(-50%) scale(1.05); }
.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-darker); font-weight: 600; }
.profile-stats-list { list-style: none; padding: 0; margin: 0; }
.profile-stats-list li { display: flex; justify-content: space-between; align-items: center; padding: 12px 5px; border-bottom: 1px solid var(--border-color); }
.profile-stats-list li:last-child { border-bottom: none; }
.profile-stats-list .stat-label { font-weight: 500; color: var(--light-text); display: flex; align-items: center; gap: 10px; }
.profile-stats-list .stat-label i { width: 18px; height: 18px; stroke-width: 2; }
.profile-stats-list .stat-value { font-weight: 700; font-size: 1.1em; color: var(--text-color); display: flex; align-items: center; gap: 8px; }
.stat-value.positive { color: var(--success-color); }
.stat-value.negative { color: var(--danger-color); }
.stat-value.info { color: var(--info-color); }
.sip-status-icon { font-size: 1.2em; }
.sip-status-icon.paid { color: var(--success-color); }
.sip-status-icon.not-paid { color: var(--danger-color); }
.sip-status-text { font-size: 0.9em; font-weight: 500; }
#memberProfileModal.prime-modal .modal-content { border-top-color: var(--prime-color); background: linear-gradient(to bottom, #fff, #fffef5); }
#memberProfileModal.prime-modal .profile-modal-header { border-color: var(--prime-color); }
.profile-modal-prime-tag { display: none; position: absolute; top: 85px; right: 20px; background: var(--prime-color); color: var(--text-color); padding: 5px 10px; border-radius: 6px; font-size: 0.8em; font-weight: bold; box-shadow: 0 2px 5px rgba(0,0,0,0.2); }
.sip-status-list, .all-members-list { list-style: none; padding: 0; margin-top: 20px; max-height: 60vh; overflow-y: auto; text-align: left; }
.sip-status-item { display: flex; align-items: center; padding: 10px; border-bottom: 1px solid var(--border-color); transition: background-color 0.2s ease; }
.sip-status-item:hover { background-color: #f8f9fa; }
.sip-status-item:last-child { border-bottom: none; }
.sip-status-item img { width: 45px; height: 45px; border-radius: 50%; object-fit: cover; margin-right: 15px; border: 2px solid var(--border-color); }
.sip-status-name { font-weight: 500; flex-grow: 1; color: var(--text-color); }
.sip-status-badge { padding: 5px 12px; border-radius: 15px; font-size: 0.85em; font-weight: bold; color: white; min-width: 80px; text-align: center; }
.sip-status-badge.paid { background-color: var(--success-color); }
.sip-status-badge.not-paid { background-color: var(--danger-color); }
#penaltyWalletModal .modal-content, #allMembersModal .modal-content { max-width: 500px; padding: 0; }
#penaltyWalletModal h2, #allMembersModal h2 { padding: 20px 20px 15px 20px; margin: 0; border-bottom: 1px solid var(--border-color); }
.penalty-history-list { list-style: none; padding: 0; margin: 0; max-height: 65vh; overflow-y: auto; }
.no-penalty-history { padding: 40px 20px; text-align: center; color: var(--light-text); }
.view-history-btn { color: var(--primary-color); background: none; border: none; font-weight: 600; cursor: pointer; margin: 10px 0; }
.penalty-history-list { display: none; }
.penalty-history-list.visible { display: block; }

footer { background-color: #343a40; color: #f8f9fa; padding: 25px 15px; margin-top: 50px; font-size: 0.95em; text-align: center; border-top: 5px solid var(--primary-color); }
footer p { color: #f8f9fa; margin: 0; }
.image-modal-overlay { display: none; position: fixed; z-index: 1002; left: 0; top: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.92); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); justify-content: center; align-items: center; cursor: pointer; padding: 20px; box-sizing: border-box; opacity: 0; transition: opacity 0.4s ease; }
.image-modal-overlay.show { display: flex; opacity: 1; }
.image-modal-content { max-width: 100%; max-height: 85%; object-fit: contain; display: block; border: 5px solid white; border-radius: 8px; box-shadow: 0 0 30px rgba(0,0,0,0.6); transform: scale(0.8); transition: transform 0.4s ease; }
.image-modal-overlay.show .image-modal-content { transform: scale(1); }
.image-modal-close { position: absolute; top: 25px; right: 35px; color: #ccc; font-size: 45px; font-weight: bold; cursor: pointer; transition: color 0.3s ease, transform 0.3s ease; z-index: 1003; }
.image-modal-close:hover { color: #fff; transform: scale(1.1); }
.animate-on-scroll { opacity: 0; transform: translateY(40px); transition: opacity var(--animation-duration) ease-out, transform var(--animation-duration) ease-out; }
.animate-on-scroll.is-visible { opacity: 1; transform: translateY(0); }
#fullProfileViewModal .modal-content { max-width: 95%; width: 600px; max-height: 90vh; display: flex; flex-direction: column; }
.full-profile-body { overflow-y: auto; padding: 20px; }
.full-profile-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; text-align: left; }
.full-profile-item { background: #f8f9fa; padding: 10px; border-radius: 8px; border: 1px solid #e9ecef; }
.full-profile-item strong { display: block; color: var(--primary-darker); font-size: 0.9em; margin-bottom: 5px; }
.full-profile-item span { font-size: 1.1em; }
.full-profile-images { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 15px; margin-top: 20px; }
.full-profile-images div { text-align: center; }
.full-profile-images img { width: 100%; height: 120px; object-fit: contain; border: 2px solid var(--border-color); border-radius: 8px; cursor: pointer; background: #f0f0f0; }
.full-profile-images strong { font-size: 0.9em; margin-top: 5px; display: block; }
#notification-popup-container { position: fixed; top: 20px; right: 20px; z-index: 2000; display: flex; flex-direction: column; gap: 10px; pointer-events: none; }
.notification-popup { background-color: var(--card-bg); border-radius: 10px; box-shadow: 0 5px 20px rgba(0,0,0,0.2); display: flex; align-items: center; padding: 12px 15px; width: 100%; max-width: 350px; border-left: 5px solid var(--primary-color); opacity: 0; transform: translateX(100%); animation: slideInNotification 0.5s forwards, fadeOutNotification 0.5s 6.5s forwards; pointer-events: all; }
.notification-popup.closing { animation: slideOutNotification 0.4s forwards; }
.notification-popup-img { width: 45px; height: 45px; border-radius: 50%; object-fit: cover; margin-right: 12px; flex-shrink: 0; }
.notification-popup-content { flex-grow: 1; font-size: 0.9em; }
.notification-popup-content p { margin: 0; line-height: 1.4; color: var(--text-color); }
.notification-popup-content p strong { color: var(--primary-darker); }
.notification-popup-amount { font-weight: 700; font-size: 0.95em; }
.notification-popup-amount.sip { color: var(--success-color); }
.notification-popup-amount.loan { color: var(--danger-color); }
.notification-popup-amount.payment { color: var(--info-color); }
.notification-popup-close { background: none; border: none; color: #aaa; font-size: 24px; font-weight: bold; cursor: pointer; margin-left: 10px; padding: 0 5px; line-height: 1; transition: color 0.2s ease; }
.notification-popup-close:hover { color: #333; }
@keyframes slideInNotification { to { opacity: 1; transform: translateX(0); } }
@keyframes fadeOutNotification { from { opacity: 1; } to { opacity: 0; transform: translateX(110%); } }
@keyframes slideOutNotification { to { opacity: 0; transform: translateX(110%); } }
@media (min-width: 576px) { .member-card { flex: 0 0 30%; max-width: 180px; } h2 { font-size: 1.9em; } .info-card-slide { flex: 0 0 320px; } .framed-card-wrapper { flex: 0 0 35%; max-width: 250px; height: 375px;} }
@media (min-width: 768px) { .member-card { flex: 0 0 22%; max-width: 200px; } h2 { font-size: 2em; } }
@media (min-width: 992px) { .member-card { flex: 0 0 20%; max-width: 210px; } .balance-display { font-size: 3.2em; } h2 { font-size: 2.1em; } }
@media (min-width: 1200px) { .content-wrapper, .header-container, .member-slider { max-width: 1140px; } .member-card { flex: 0 0 15%; max-width: 220px; } h2 { font-size: 2.2em; } }
@keyframes pulse { 0% { transform: scale(1); } 50% { transform: scale(1.1); } 100% { transform: scale(1); } }

