/* ===========================
   EMS-Association Manager Pro
   style.css — Eddymo 3.0
   =========================== */

@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700;900&family=Rajdhani:wght@300;400;600;700&family=Share+Tech+Mono&display=swap');

*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
html{font-size:16px;scroll-behavior:smooth}
body{font-family:'Rajdhani',sans-serif;background:#06080f;color:#c8d4e8;min-height:100vh;overflow-x:hidden}
::-webkit-scrollbar{width:6px;height:6px}
::-webkit-scrollbar-track{background:#0d1117}
::-webkit-scrollbar-thumb{background:#ff6b00;border-radius:3px}
a{color:inherit;text-decoration:none}
button{cursor:pointer;font-family:inherit;border:none;outline:none}
input,select,textarea{font-family:'Rajdhani',sans-serif;font-size:1rem;background:#0d1421;border:1px solid #1e3050;color:#c8d4e8;border-radius:6px;padding:.5rem .75rem;width:100%;outline:none;transition:border-color .2s,box-shadow .2s}
input:focus,select:focus,textarea:focus{border-color:#ff6b00;box-shadow:0 0 0 2px rgba(255,107,0,.2)}
select option{background:#0d1421}
textarea{resize:vertical}

:root{
  --orange:#ff6b00;--orange-glow:rgba(255,107,0,.35);--orange-light:#ff8c3a;
  --blue:#1a6cff;--blue-glow:rgba(26,108,255,.35);
  --neon-green:#00ffc8;--neon-red:#ff2d55;
  --dark-bg:#06080f;--dark-card:#0d1421;--dark-border:#1a2640;
  --sidebar-w:240px;--topbar-h:60px;
}

.hidden{display:none!important}

/* SPLASH */
#splash-screen{position:fixed;inset:0;background:#06080f;display:flex;align-items:center;justify-content:center;z-index:9999;animation:splashOut .5s ease 2.8s forwards}
@keyframes splashOut{to{opacity:0;pointer-events:none}}
.splash-content{text-align:center;position:relative}
.splash-logo-ring{width:120px;height:120px;border-radius:50%;border:3px solid transparent;border-top-color:var(--orange);border-right-color:var(--blue);position:absolute;top:50%;left:50%;transform:translate(-50%,-72px);animation:spin 1.5s linear infinite}
@keyframes spin{to{transform:translate(-50%,-72px) rotate(360deg)}}
.splash-logo{font-family:'Orbitron',sans-serif;font-size:3rem;font-weight:900;color:#fff;letter-spacing:4px;animation:fadeInUp .6s ease .3s both}
.logo-dot{color:var(--orange)}
.splash-title{font-size:1.1rem;color:var(--orange);letter-spacing:3px;text-transform:uppercase;margin-top:.4rem;animation:fadeInUp .6s ease .5s both}
.splash-sub{font-family:'Share Tech Mono',monospace;font-size:.8rem;color:var(--orange);margin-top:.5rem;animation:fadeInUp .6s ease .7s both}
.splash-loader{width:200px;height:3px;background:#1a2640;border-radius:2px;margin:2rem auto 0;overflow:hidden;animation:fadeInUp .6s ease .9s both}
.loader-bar{height:100%;background:linear-gradient(90deg,var(--orange),var(--blue));animation:loadProgress 2.2s ease 1s forwards;width:0}
@keyframes loadProgress{to{width:100%}}

/* LOGIN */
#login-screen{position:fixed;inset:0;display:flex;align-items:center;justify-content:center;background:#06080f;z-index:1000}
.login-bg-grid{position:absolute;inset:0;background-image:linear-gradient(rgba(255,107,0,.04) 1px,transparent 1px),linear-gradient(90deg,rgba(255,107,0,.04) 1px,transparent 1px);background-size:50px 50px}
.login-container{position:relative;width:100%;max-width:430px;padding:1rem;animation:fadeInUp .6s ease both}
.login-logo-area{text-align:center;margin-bottom:2rem}
.login-logo-icon{width:72px;height:72px;background:linear-gradient(135deg,var(--orange),var(--blue));border-radius:20px;display:flex;align-items:center;justify-content:center;font-size:2rem;color:#fff;margin:0 auto 1rem;box-shadow:0 0 30px var(--orange-glow)}
.login-title{font-family:'Orbitron',sans-serif;font-size:2rem;font-weight:900;color:#fff;letter-spacing:3px}
.login-sub{color:var(--orange);font-size:.9rem;letter-spacing:2px;margin-top:.3rem}
.login-form-card{background:#0d1421;border:1px solid #1e3050;border-radius:16px;padding:2rem;box-shadow:0 0 40px rgba(0,0,0,.5)}
.login-form-card h2{font-size:1.4rem;font-weight:700;color:#fff;margin-bottom:1.5rem}
.login-footer-sig{text-align:right;font-family:'Share Tech Mono',monospace;font-size:.75rem;color:var(--orange);margin-top:1rem;padding-right:.5rem}

/* Password wrap */
.pass-wrap{position:relative}
.pass-wrap input{padding-right:2.5rem}
.pass-toggle{position:absolute;right:.5rem;top:50%;transform:translateY(-50%);background:none;color:#3a5070;font-size:.9rem;padding:.2rem;transition:color .2s}
.pass-toggle:hover{color:var(--orange)}

/* Quick access */
.quick-access-section{margin-top:1.5rem;border-top:1px solid #1a2640;padding-top:1rem}
.qa-label{font-size:.75rem;color:#3a5070;letter-spacing:2px;text-transform:uppercase;margin-bottom:.6rem}
.qa-buttons{display:flex;gap:.5rem;flex-wrap:wrap}
.qa-btn{background:#0a1120;border:1px solid #1e3050;color:#7a9acc;border-radius:10px;padding:.5rem .9rem;font-size:.82rem;font-weight:700;display:flex;align-items:center;gap:.4rem;transition:all .2s;cursor:pointer}
.qa-btn:hover{border-color:var(--orange);color:var(--orange);background:rgba(255,107,0,.08)}
.qa-btn.unlocked{border-color:rgba(0,255,200,.4);color:var(--neon-green)}
.qa-btn i{font-size:.9rem}

/* Info box */
.info-box{background:rgba(26,108,255,.1);border:1px solid rgba(26,108,255,.3);border-radius:8px;padding:.7rem 1rem;font-size:.85rem;color:#7aaccc;display:flex;align-items:flex-start;gap:.6rem}
.info-box i{color:#5a9eff;margin-top:2px;flex-shrink:0}

/* MAIN APP */
#main-app{display:flex;min-height:100vh}

/* SIDEBAR */
.sidebar{width:var(--sidebar-w);background:#080e1a;border-right:1px solid #1a2640;display:flex;flex-direction:column;position:fixed;top:0;left:0;bottom:0;z-index:200;transition:transform .3s ease}
.sidebar-header{padding:1.2rem 1.5rem;border-bottom:1px solid #1a2640;flex-shrink:0}
.sidebar-logo{font-family:'Orbitron',sans-serif;font-size:1.5rem;font-weight:900;color:#fff;letter-spacing:3px}
.neon-orange{color:var(--orange)}
.sidebar-logo-sub{font-size:.7rem;color:var(--orange);letter-spacing:2px;text-transform:uppercase;margin-top:.1rem}
.sidebar-nav{flex:1;overflow-y:auto;padding:.8rem 0}
.nav-section-label{font-size:.65rem;color:#2a4060;letter-spacing:2px;text-transform:uppercase;padding:.8rem 1.5rem .3rem;font-weight:700}
.nav-item{display:flex;align-items:center;gap:.75rem;padding:.7rem 1.5rem;color:#5a7a99;font-size:.95rem;font-weight:600;cursor:pointer;transition:background .15s,color .15s;border-left:3px solid transparent}
.nav-item:hover{background:#0d1421;color:#8aaccc}
.nav-item.active{background:rgba(255,107,0,.1);color:var(--orange);border-left-color:var(--orange)}
.nav-item i{width:18px;text-align:center;font-size:1rem}
.sidebar-user{padding:1rem 1.2rem;border-top:1px solid #1a2640;display:flex;align-items:center;gap:.8rem;flex-shrink:0}
.user-avatar-wrap{position:relative;flex-shrink:0}
.user-avatar{width:38px;height:38px;background:linear-gradient(135deg,var(--orange),var(--blue));border-radius:50%;display:flex;align-items:center;justify-content:center;font-weight:700;font-size:1rem;color:#fff}
.user-info{flex:1;min-width:0}
.user-name{font-weight:700;font-size:.9rem;color:#d4e4f4;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.user-role{font-size:.75rem;color:#3a6080;margin-top:.1rem}
.logout-btn{background:none;color:#3a5070;font-size:1rem;padding:.3rem;transition:color .2s}
.logout-btn:hover{color:var(--neon-red)}

/* TOPBAR */
.topbar{position:fixed;top:0;left:var(--sidebar-w);right:0;height:var(--topbar-h);background:rgba(8,14,26,.95);border-bottom:1px solid #1a2640;display:flex;align-items:center;gap:1rem;padding:0 1.5rem;z-index:100;backdrop-filter:blur(10px)}
.menu-toggle{display:none;background:none;color:#c8d4e8;font-size:1.2rem;padding:.4rem;border-radius:6px}
.topbar-title{flex:1;font-weight:700;font-size:1.1rem;color:#d4e4f4}
.topbar-right{display:flex;align-items:center;gap:1rem}
.notif-btn{position:relative;color:#5a7a99;font-size:1.1rem;cursor:pointer;padding:.3rem;transition:color .2s}
.notif-btn:hover{color:var(--orange)}
.notif-badge{position:absolute;top:-3px;right:-5px;background:var(--neon-red);color:#fff;font-size:.6rem;font-weight:700;width:16px;height:16px;border-radius:50%;display:flex;align-items:center;justify-content:center}
.topbar-role{background:rgba(255,107,0,.15);color:var(--orange);border:1px solid rgba(255,107,0,.4);border-radius:20px;padding:.2rem .75rem;font-size:.8rem;font-weight:700;letter-spacing:1px}

/* MAIN CONTENT */
.main-content{margin-left:var(--sidebar-w);margin-top:var(--topbar-h);padding:2rem;min-height:calc(100vh - var(--topbar-h));width:100%}
.page{animation:fadeIn .3s ease}
@keyframes fadeIn{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}
.page-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:1.8rem;gap:1rem;flex-wrap:wrap}
.page-header h2{font-size:1.6rem;font-weight:700;color:#e8f0fc}
.page-header h2 i{color:var(--orange);margin-right:.5rem}
.page-header h3{font-size:1.2rem;font-weight:700;color:#c8d4e8}
.page-sub{color:#4a6a8a;font-size:.9rem;margin-top:.2rem}

/* BUTTONS */
.btn-primary{background:linear-gradient(135deg,var(--orange),#cc4400);color:#fff;border-radius:8px;padding:.55rem 1.2rem;font-size:.9rem;font-weight:700;letter-spacing:.5px;transition:transform .15s,box-shadow .15s;display:inline-flex;align-items:center;gap:.4rem}
.btn-primary:hover{transform:translateY(-1px);box-shadow:0 6px 20px var(--orange-glow)}
.btn-secondary{background:#1a2640;color:#8aaccc;border:1px solid #2a3e5c;border-radius:8px;padding:.55rem 1.2rem;font-size:.9rem;font-weight:700;transition:background .2s,color .2s;display:inline-flex;align-items:center;gap:.4rem}
.btn-secondary:hover{background:#243050;color:#c8d4e8}
.btn-danger{background:rgba(255,45,85,.15);color:var(--neon-red);border:1px solid rgba(255,45,85,.4);border-radius:8px;padding:.55rem 1.2rem;font-size:.9rem;font-weight:700;transition:background .2s;display:inline-flex;align-items:center;gap:.4rem}
.btn-danger:hover{background:rgba(255,45,85,.25)}
.btn-full{width:100%;justify-content:center}
.btn-sm{padding:.3rem .7rem!important;font-size:.8rem!important}
.btn-activate{background:rgba(0,255,200,.1);color:var(--neon-green);border:1px solid rgba(0,255,200,.3);border-radius:6px}
.btn-deactivate{background:rgba(255,45,85,.1);color:var(--neon-red);border:1px solid rgba(255,45,85,.3);border-radius:6px}

/* INFO BOX */
.info-box{background:rgba(26,108,255,.1);border:1px solid rgba(26,108,255,.3);border-radius:8px;padding:.7rem 1rem;font-size:.85rem;color:#7aaccc;display:flex;align-items:flex-start;gap:.6rem;margin-bottom:1rem}
.info-box i{color:#5a9eff;margin-top:2px;flex-shrink:0}

/* TOUR CLOSING */
.page-header+.bank-overview{margin-top:0}


/* FINANCIAL SUMMARY BANNER */
.my-finance-banner{background:linear-gradient(135deg,#0d1421,#0a1830);border:1px solid rgba(255,107,0,.3);border-radius:14px;padding:1.2rem 1.5rem;margin-bottom:1.5rem;display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:1rem}
.mfb-item{text-align:center}
.mfb-label{font-size:.75rem;color:#3a5070;text-transform:uppercase;letter-spacing:1px;margin-bottom:.3rem}
.mfb-val{font-family:'Orbitron',sans-serif;font-size:1rem;font-weight:700;color:#c8d4e8}
.mfb-val.orange{color:var(--orange)}
.mfb-val.green{color:var(--neon-green)}
.mfb-val.red{color:var(--neon-red)}

/* DASHBOARD STATS */
.dashboard-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:1.2rem;margin-bottom:1.8rem}
.stat-card{background:#0d1421;border:1px solid #1a2640;border-radius:14px;padding:1.4rem;display:flex;align-items:center;gap:1rem;transition:transform .2s,box-shadow .2s;position:relative;overflow:hidden}
.stat-card::before{content:'';position:absolute;top:0;left:0;right:0;height:2px}
.neon-border-orange{border-color:rgba(255,107,0,.3)}.neon-border-orange::before{background:linear-gradient(90deg,transparent,var(--orange),transparent)}
.neon-border-blue{border-color:rgba(26,108,255,.3)}.neon-border-blue::before{background:linear-gradient(90deg,transparent,var(--blue),transparent)}
.neon-border-green{border-color:rgba(0,255,200,.3)}.neon-border-green::before{background:linear-gradient(90deg,transparent,var(--neon-green),transparent)}
.neon-border-red{border-color:rgba(255,45,85,.3)}.neon-border-red::before{background:linear-gradient(90deg,transparent,var(--neon-red),transparent)}
.stat-card:hover{transform:translateY(-3px)}
.stat-icon{width:50px;height:50px;background:rgba(255,107,0,.12);border-radius:12px;display:flex;align-items:center;justify-content:center;font-size:1.4rem;color:var(--orange);flex-shrink:0}
.neon-border-blue .stat-icon{background:rgba(26,108,255,.12);color:#5a9eff}
.neon-border-green .stat-icon{background:rgba(0,255,200,.08);color:var(--neon-green)}
.neon-border-red .stat-icon{background:rgba(255,45,85,.1);color:var(--neon-red)}
.stat-value{font-family:'Orbitron',sans-serif;font-size:1.6rem;font-weight:700;color:#e8f0fc;line-height:1}
.stat-label{font-size:.8rem;color:#4a6a8a;margin-top:.3rem}

.dashboard-row{display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:1.2rem;margin-bottom:1.2rem}
.dashboard-card{background:#0d1421;border:1px solid #1a2640;border-radius:14px;padding:1.2rem}
.dashboard-card.wide{grid-column:1/-1}
.card-header{font-size:.9rem;font-weight:700;color:#7a9acc;margin-bottom:1rem;display:flex;align-items:center;gap:.5rem;border-bottom:1px solid #1a2640;padding-bottom:.7rem}
.card-header i{color:var(--orange)}
.session-item,.activity-item,.alert-item{padding:.6rem 0;border-bottom:1px solid #0e1825;display:flex;align-items:flex-start;gap:.7rem;font-size:.88rem}
.session-item:last-child,.activity-item:last-child,.alert-item:last-child{border-bottom:none}
.session-date{background:rgba(255,107,0,.1);color:var(--orange);border-radius:6px;padding:.2rem .5rem;font-size:.75rem;font-weight:700;white-space:nowrap}
.activity-dot{width:8px;height:8px;border-radius:50%;background:var(--orange);margin-top:4px;flex-shrink:0}
.alert-icon{color:var(--neon-red)}

/* FILTER BAR */
.filter-bar{display:flex;gap:.8rem;margin-bottom:1.2rem;flex-wrap:wrap}
.filter-bar input{flex:1;min-width:200px}
.filter-bar select{min-width:160px;width:auto}

/* TABLE */
.table-container{overflow-x:auto;border-radius:12px}
.data-table{width:100%;border-collapse:collapse;font-size:.88rem}
.data-table thead th{background:#080e1a;color:#5a7a99;font-size:.78rem;font-weight:700;text-transform:uppercase;letter-spacing:1px;padding:.9rem 1rem;white-space:nowrap;border-bottom:1px solid #1a2640;text-align:left}
.data-table tbody tr{border-bottom:1px solid #0e1825;transition:background .15s}
.data-table tbody tr:hover{background:#0f1a2a}
.data-table tbody td{padding:.75rem 1rem;color:#b8ccdf;white-space:nowrap}

/* BADGES */
.badge{display:inline-block;padding:.2rem .6rem;border-radius:20px;font-size:.75rem;font-weight:700;letter-spacing:.5px}
.badge-active{background:rgba(0,255,200,.1);color:var(--neon-green);border:1px solid rgba(0,255,200,.2)}
.badge-inactive{background:rgba(90,100,120,.2);color:#5a7a99;border:1px solid #2a3a55}
.badge-disabled{background:rgba(255,45,85,.1);color:var(--neon-red);border:1px solid rgba(255,45,85,.2)}
.badge-admin{background:rgba(255,107,0,.15);color:var(--orange);border:1px solid rgba(255,107,0,.3)}
.badge-bureau{background:rgba(26,108,255,.15);color:#5a9eff;border:1px solid rgba(26,108,255,.3)}
.badge-member{background:rgba(150,160,180,.1);color:#8a9ab0;border:1px solid #2a3a55}
.badge-warning{background:rgba(255,200,0,.1);color:#ffc800;border:1px solid rgba(255,200,0,.3)}
.badge-danger{background:rgba(255,45,85,.1);color:var(--neon-red);border:1px solid rgba(255,45,85,.3)}

/* ACTION BUTTONS */
.action-btns{display:flex;gap:.4rem}
.action-btn{width:30px;height:30px;border-radius:6px;display:flex;align-items:center;justify-content:center;font-size:.8rem;transition:background .15s,color .15s}
.action-btn-edit{background:rgba(26,108,255,.15);color:#5a9eff}.action-btn-edit:hover{background:rgba(26,108,255,.3)}
.action-btn-delete{background:rgba(255,45,85,.1);color:var(--neon-red)}.action-btn-delete:hover{background:rgba(255,45,85,.25)}
.action-btn-view{background:rgba(255,107,0,.12);color:var(--orange)}.action-btn-view:hover{background:rgba(255,107,0,.25)}
.action-btn-admin{background:rgba(150,50,255,.15);color:#aa7fff}.action-btn-admin:hover{background:rgba(150,50,255,.3)}

/* MEMBER PHOTO */
.member-photo-thumb{width:32px;height:32px;border-radius:50%;object-fit:cover;border:2px solid #1a2640}
.member-avatar-thumb{width:32px;height:32px;border-radius:50%;background:linear-gradient(135deg,var(--orange),var(--blue));display:flex;align-items:center;justify-content:center;font-size:.8rem;font-weight:700;color:#fff;flex-shrink:0}
.photo-upload-area{border:2px dashed #1e3050;border-radius:10px;padding:1.5rem;text-align:center;cursor:pointer;transition:border-color .2s;min-height:100px;display:flex;align-items:center;justify-content:center}
.photo-upload-area:hover{border-color:var(--orange)}
.photo-placeholder{display:flex;flex-direction:column;align-items:center;gap:.5rem;color:#3a5070;font-size:.88rem}
.photo-placeholder i{font-size:2rem}
.photo-preview{max-width:120px;max-height:120px;border-radius:8px;object-fit:cover}

/* BANK */
.bank-overview{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:1rem;margin-bottom:1.5rem}
.bank-stat{background:#0d1421;border:1px solid #1a2640;border-radius:12px;padding:1.2rem;text-align:center}
.bstat-label{font-size:.8rem;color:#4a6a8a;margin-bottom:.4rem}
.bstat-value{font-family:'Orbitron',sans-serif;font-size:1.1rem;font-weight:700;color:#c8d4e8}
.bstat-value.highlight{color:var(--orange)}

/* TONTINES */
.tontine-groups{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:1.2rem}
.tontine-card{background:#0d1421;border:1px solid #1a2640;border-radius:14px;padding:1.4rem;position:relative;overflow:hidden;transition:box-shadow .2s}
.tontine-card::before{content:'';position:absolute;top:0;left:0;right:0;height:3px;background:linear-gradient(90deg,var(--orange),var(--blue))}
.tontine-card:hover{box-shadow:0 0 20px rgba(255,107,0,.12)}
.tontine-name{font-size:1.1rem;font-weight:700;color:#e8f0fc;margin-bottom:.5rem}
.tontine-meta{font-size:.82rem;color:#4a6a8a;margin-bottom:1rem}
.tontine-amount{font-family:'Orbitron',sans-serif;font-size:1.3rem;font-weight:700;color:var(--orange);margin-bottom:.5rem}
.progress-bar{height:6px;background:#1a2640;border-radius:3px;overflow:hidden}
.progress-fill{height:100%;background:linear-gradient(90deg,var(--orange),var(--blue));border-radius:3px;transition:width .5s ease}

/* PROJECTS */
.projects-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(320px,1fr));gap:1.2rem}
.project-card{background:#0d1421;border:1px solid #1a2640;border-radius:14px;padding:1.4rem}
.project-name{font-size:1.1rem;font-weight:700;color:#e8f0fc;margin-bottom:.4rem}
.project-desc{font-size:.85rem;color:#4a6a8a;margin-bottom:1rem}
.project-stats{display:grid;grid-template-columns:1fr 1fr;gap:.6rem;margin-top:1rem}
.project-stat-item{background:#0a1120;border-radius:8px;padding:.6rem;text-align:center}
.psi-val{font-family:'Orbitron',sans-serif;font-size:.9rem;font-weight:700;color:var(--orange)}
.psi-label{font-size:.72rem;color:#3a5070;margin-top:.2rem}

/* SOLIDARITY */
.solidarity-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(340px,1fr));gap:1.2rem}
.solidarity-card{background:#0d1421;border:1px solid #1a2640;border-radius:14px;padding:1.4rem}
.solidarity-top{display:flex;align-items:center;gap:1rem;margin-bottom:1rem}
.solidarity-icon{width:44px;height:44px;background:rgba(255,107,0,.1);border-radius:12px;display:flex;align-items:center;justify-content:center;font-size:1.3rem;color:var(--orange);flex-shrink:0}
.solidarity-name{font-weight:700;color:#e8f0fc}
.solidarity-type{font-size:.82rem;color:#4a6a8a;margin-top:.2rem}
.solidarity-amount{font-family:'Orbitron',sans-serif;font-size:1.2rem;font-weight:700;color:var(--orange);margin-bottom:.5rem}

/* ATTENDANCE */
.attendance-checklist{display:flex;flex-direction:column;gap:.5rem;max-height:300px;overflow-y:auto}
.att-member-row{display:flex;align-items:center;justify-content:space-between;background:#0a1120;border:1px solid #1a2640;border-radius:8px;padding:.6rem .8rem}
.att-member-name{font-size:.88rem;color:#c8d4e8;font-weight:600}
.att-status-select{width:auto;min-width:130px;font-size:.82rem;padding:.3rem .5rem}
.attendance-session-card{background:#0a1120;border:1px solid #1a2640;border-radius:10px;padding:1rem;margin-bottom:.7rem}
.att-session-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:.6rem}
.att-session-date{font-family:'Share Tech Mono',monospace;font-size:.85rem;color:var(--orange)}
.att-session-stats{display:flex;gap:.6rem;font-size:.78rem;flex-wrap:wrap}
.att-stat{padding:.15rem .5rem;border-radius:4px;font-weight:700}
.att-present{background:rgba(0,255,200,.08);color:var(--neon-green)}
.att-absent{background:rgba(255,45,85,.08);color:var(--neon-red)}
.att-late{background:rgba(255,200,0,.08);color:#ffc800}

/* FINES */
.fine-paid-btn{background:rgba(0,255,200,.1);color:var(--neon-green);border:1px solid rgba(0,255,200,.2);border-radius:6px;padding:.25rem .6rem;font-size:.78rem;font-weight:700;cursor:pointer;transition:background .2s}
.fine-paid-btn:hover{background:rgba(0,255,200,.2)}

/* MINUTES (PV) */
.minutes-grid{display:flex;flex-direction:column;gap:1.2rem}
.minute-card{background:#0d1421;border:1px solid #1a2640;border-radius:14px;overflow:hidden}
.minute-header{background:#080e1a;padding:1rem 1.4rem;display:flex;align-items:center;justify-content:space-between;cursor:pointer}
.minute-header:hover{background:#0a1220}
.minute-title-wrap{display:flex;align-items:center;gap:.8rem}
.minute-date-badge{background:rgba(255,107,0,.1);color:var(--orange);border-radius:6px;padding:.2rem .6rem;font-size:.78rem;font-weight:700;font-family:'Share Tech Mono',monospace;white-space:nowrap}
.minute-title{font-weight:700;color:#e8f0fc;font-size:1rem}
.minute-chevron{color:#3a5070;transition:transform .3s}
.minute-body{padding:1.4rem;border-top:1px solid #1a2640;display:none}
.minute-body.open{display:block}
.minute-content{color:#b8ccdf;font-size:.9rem;line-height:1.6;white-space:pre-wrap;margin-bottom:1rem}
.minute-meta{display:flex;gap:1.5rem;font-size:.8rem;color:#3a5070;flex-wrap:wrap}
.minute-meta span i{margin-right:.3rem;color:#2a4060}

/* STATUTES */
.statutes-display{background:#0d1421;border:1px solid #1a2640;border-radius:14px;padding:2rem}
.statute-section{margin-bottom:2rem}
.statute-section-title{font-size:1.1rem;font-weight:700;color:var(--orange);margin-bottom:1rem;display:flex;align-items:center;gap:.5rem}
.statute-text{color:#b8ccdf;font-size:.9rem;line-height:1.7;white-space:pre-wrap}
.statute-empty{color:#3a5070;font-style:italic;font-size:.9rem}

/* ADMIN ACTIONS */
.admin-action-row{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:.9rem;background:#080e1a;border-radius:10px;border:1px solid #1a2640;margin-bottom:.7rem}
.admin-action-row:last-child{margin-bottom:0}

/* REPORTS */
.reports-tabs{display:flex;gap:.5rem;margin-bottom:1.5rem;flex-wrap:wrap}
.rtab{background:#0d1421;color:#5a7a99;border:1px solid #1a2640;border-radius:8px;padding:.5rem 1.2rem;font-size:.88rem;font-weight:600;transition:all .2s}
.rtab:hover{background:#1a2640;color:#c8d4e8}
.rtab.active{background:rgba(255,107,0,.15);color:var(--orange);border-color:rgba(255,107,0,.4)}
.report-content{background:#0d1421;border:1px solid #1a2640;border-radius:14px;padding:1.5rem}

/* ADMIN LOG TABLE */
.log-table td{font-size:.83rem}
.log-action{font-family:'Share Tech Mono',monospace;color:#7aaccc;font-size:.78rem}

/* SETTINGS */
.settings-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:1.2rem}
.settings-card{background:#0d1421;border:1px solid #1a2640;border-radius:14px;padding:1.4rem}
.settings-card h3{font-size:1rem;font-weight:700;color:#8aaccc;margin-bottom:1rem;display:flex;align-items:center;gap:.5rem}
.settings-card h3 i{color:var(--orange)}

/* FORMS */
.form-group{margin-bottom:1rem}
.form-group label{display:block;font-size:.82rem;font-weight:600;color:#5a7a99;margin-bottom:.35rem;letter-spacing:.3px}
.form-row{display:grid;grid-template-columns:1fr 1fr;gap:1rem}
.checkbox-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(160px,1fr));gap:.5rem;max-height:180px;overflow-y:auto}
.checkbox-item{display:flex;align-items:center;gap:.4rem;background:#0a1120;border:1px solid #1a2640;border-radius:6px;padding:.4rem .6rem;cursor:pointer;transition:border-color .15s;font-size:.82rem;color:#7a9acc}
.checkbox-item:hover{border-color:var(--orange)}
.checkbox-item input[type="checkbox"]{width:14px;height:14px;accent-color:var(--orange);flex-shrink:0}

/* LOAN PREVIEW */
.loan-preview{background:#060c18;border:1px solid #1a3050;border-radius:10px;padding:1rem;margin:.5rem 0 1rem}
.lp-row{display:flex;justify-content:space-between;padding:.35rem 0;font-size:.88rem;color:#7a9acc;border-bottom:1px solid #0e1a2a}
.lp-row:last-child{border-bottom:none}
.lp-row.highlight{color:var(--orange);font-weight:700}
.lp-row span:last-child{font-family:'Share Tech Mono',monospace}

/* MEMBER CARD */
.member-card-display{background:linear-gradient(135deg,#080e1a 0%,#0d1a30 50%,#1a0d05 100%);border:1px solid rgba(255,107,0,.5);border-radius:16px;padding:2rem;position:relative;overflow:hidden;box-shadow:0 0 40px rgba(255,107,0,.2);min-height:220px}
.member-card-display::before{content:'';position:absolute;top:-50%;right:-20%;width:200px;height:200px;background:radial-gradient(circle,rgba(255,107,0,.15),transparent 70%);border-radius:50%}
.mc-logo{font-family:'Orbitron',sans-serif;font-size:1.2rem;font-weight:900;color:var(--orange);letter-spacing:2px;margin-bottom:1rem}
.mc-photo{width:70px;height:70px;border-radius:10px;object-fit:cover;border:2px solid rgba(255,107,0,.4);margin-bottom:1rem}
.mc-name{font-size:1.5rem;font-weight:700;color:#fff;margin-bottom:.3rem}
.mc-matricule{font-family:'Share Tech Mono',monospace;font-size:.9rem;color:#7a9acc;margin-bottom:1.2rem}
.mc-details{display:grid;grid-template-columns:1fr 1fr;gap:.6rem;font-size:.82rem}
.mc-label{color:#3a5070;font-size:.72rem;text-transform:uppercase;letter-spacing:1px}
.mc-value{color:#b8d0e8;font-weight:600;margin-top:.1rem}
.mc-status-active{position:absolute;top:1.5rem;right:1.5rem;background:rgba(0,255,200,.1);border:1px solid rgba(0,255,200,.3);color:var(--neon-green);border-radius:20px;padding:.2rem .7rem;font-size:.75rem;font-weight:700}

/* PROFILE */
.profile-grid{display:grid;grid-template-columns:300px 1fr;gap:1.5rem;align-items:start}
.profile-card{background:#0d1421;border:1px solid #1a2640;border-radius:14px;padding:1.5rem;text-align:center}
.profile-avatar-big{width:80px;height:80px;background:linear-gradient(135deg,var(--orange),var(--blue));border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:2rem;font-weight:700;color:#fff;margin:0 auto 1rem}
.profile-avatar-big img{width:80px;height:80px;border-radius:50%;object-fit:cover}
.profile-name{font-size:1.3rem;font-weight:700;color:#e8f0fc}
.profile-matricule{font-family:'Share Tech Mono',monospace;font-size:.85rem;color:#5a7a99;margin-top:.3rem}
.profile-details-grid{background:#0d1421;border:1px solid #1a2640;border-radius:14px;padding:1.5rem;display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:1rem}
.pd-label{font-size:.75rem;color:#3a5070;text-transform:uppercase;letter-spacing:1px;margin-bottom:.2rem}
.pd-value{font-size:.95rem;color:#c8d4e8;font-weight:600}

/* MODALS */
.modal-overlay{position:fixed;inset:0;background:rgba(0,0,0,.75);display:flex;align-items:center;justify-content:center;z-index:1000;padding:1rem;backdrop-filter:blur(4px);animation:fadeIn .2s ease}
.modal-box{background:#0d1421;border:1px solid #1e3050;border-radius:18px;width:100%;max-width:620px;max-height:90vh;display:flex;flex-direction:column;box-shadow:0 20px 60px rgba(0,0,0,.6);animation:slideUp .25s ease}
.modal-box.small{max-width:420px}
@keyframes slideUp{from{transform:translateY(20px);opacity:0}to{transform:translateY(0);opacity:1}}
.modal-header{display:flex;align-items:center;justify-content:space-between;padding:1.2rem 1.5rem;border-bottom:1px solid #1a2640;flex-shrink:0}
.modal-header h3{font-size:1.1rem;font-weight:700;color:#e8f0fc;display:flex;align-items:center;gap:.5rem}
.modal-header h3 i{color:var(--orange)}
.modal-close{background:#1a2640;color:#5a7a99;width:30px;height:30px;border-radius:8px;display:flex;align-items:center;justify-content:center;font-size:1rem;transition:background .2s,color .2s}
.modal-close:hover{background:rgba(255,45,85,.2);color:var(--neon-red)}
.modal-body{flex:1;overflow-y:auto;padding:1.5rem}
.modal-footer{padding:1rem 1.5rem;border-top:1px solid #1a2640;display:flex;justify-content:flex-end;gap:.7rem;flex-shrink:0}

/* NOTIFICATIONS */
.notif-item{padding:.8rem;border-bottom:1px solid #0e1825;display:flex;gap:.7rem;align-items:flex-start;font-size:.85rem}
.notif-item:last-child{border-bottom:none}
.notif-dot{width:8px;height:8px;border-radius:50%;margin-top:5px;flex-shrink:0}
.notif-text{color:#8aaccc}
.notif-time{font-size:.75rem;color:#3a5070;margin-top:.2rem}

/* TOAST */
#toast-container{position:fixed;bottom:1.5rem;right:1.5rem;display:flex;flex-direction:column;gap:.6rem;z-index:9000}
.toast{background:#0d1421;border:1px solid #1e3050;border-radius:12px;padding:.8rem 1.2rem;min-width:280px;display:flex;align-items:center;gap:.8rem;font-size:.88rem;color:#b8ccdf;box-shadow:0 8px 24px rgba(0,0,0,.5);animation:toastIn .3s ease}
@keyframes toastIn{from{transform:translateX(20px);opacity:0}}
.toast.success{border-left:3px solid var(--neon-green)}
.toast.error{border-left:3px solid var(--neon-red)}
.toast.info{border-left:3px solid var(--blue)}
.toast.warning{border-left:3px solid #ffc800}
.toast.success i{color:var(--neon-green)}
.toast.error i{color:var(--neon-red)}
.toast.info i{color:#5a9eff}
.toast.warning i{color:#ffc800}

/* MISC */
.section-divider{height:1px;background:linear-gradient(90deg,transparent,#1e3050,transparent);margin:2rem 0}
.neon-orange{color:var(--orange)}
.sidebar-overlay{position:fixed;inset:0;background:rgba(0,0,0,.6);z-index:199}
.app-signature{position:fixed;bottom:1.5rem;right:1.5rem;font-family:'Share Tech Mono',monospace;font-size:.7rem;color:var(--orange);pointer-events:none;z-index:10}
.app-footer{background:#04060c;border-top:1px solid #1a2640;text-align:center;padding:.8rem;font-size:.78rem;color:#2a3a55;font-family:'Share Tech Mono',monospace;margin-left:var(--sidebar-w)}

@keyframes fadeInUp{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:translateY(0)}}

/* RESPONSIVE */
@media(max-width:900px){
  :root{--sidebar-w:0px}
  .sidebar{transform:translateX(-240px);width:240px}
  .sidebar.open{transform:translateX(0);width:240px}
  .topbar{left:0}
  .main-content{margin-left:0}
  .menu-toggle{display:flex;align-items:center;justify-content:center}
  .app-footer{margin-left:0}
  .form-row{grid-template-columns:1fr}
  .profile-grid{grid-template-columns:1fr}
  .dashboard-row{grid-template-columns:1fr}
}
@media(max-width:560px){
  .main-content{padding:1rem}
  .dashboard-grid{grid-template-columns:1fr 1fr}
  .modal-box{border-radius:14px}
}
@media(max-width:380px){
  .dashboard-grid{grid-template-columns:1fr}
}

/* ═══════════════════════════════════
   LOGO IMAGES — partout dans l'app
   ═══════════════════════════════════ */

/* Splash */
.splash-logo-img {
  width: 120px; height: 120px;
  object-fit: contain;
  border-radius: 20px;
  animation: fadeInUp .6s ease .3s both;
  filter: drop-shadow(0 0 20px rgba(255,107,0,.4));
}
/* Login */
.login-logo-img {
  width: 130px; height: 130px;
  object-fit: contain;
  border-radius: 20px;
  display: block;
  margin: 0 auto 0.8rem;
  filter: drop-shadow(0 0 24px rgba(255,107,0,.35));
  animation: fadeInUp .5s ease both;
}
.login-poweredby {
  font-size: .72rem;
  color: #3a5070;
  letter-spacing: 1px;
  margin-top: .4rem;
}

/* Sidebar logo */
.sidebar-logo-wrap {
  display: flex; align-items: center; gap: .7rem;
}
.sidebar-logo-img {
  width: 38px; height: 38px;
  object-fit: contain;
  border-radius: 8px;
  flex-shrink: 0;
  filter: drop-shadow(0 0 6px rgba(255,107,0,.3));
}
.sidebar-logo-text { display: flex; flex-direction: column; }
.sidebar-logo-name {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.1rem; font-weight: 900;
  color: #fff; letter-spacing: 2px;
  line-height: 1.1;
}
.sidebar-logo-sub {
  font-size: .65rem; color: var(--orange);
  letter-spacing: 2px; text-transform: uppercase;
  margin-top: .1rem;
}

/* Topbar logo — watermark discret mais visible */
.topbar-logo-img {
  width: 28px; height: 28px;
  object-fit: contain;
  border-radius: 6px;
  opacity: .7;
  filter: drop-shadow(0 0 4px rgba(255,107,0,.2));
  flex-shrink: 0;
}

/* Footer logo */
.footer-logo-img {
  width: 18px; height: 18px;
  object-fit: contain;
  vertical-align: middle;
  margin-right: .4rem;
  border-radius: 4px;
  opacity: .6;
}

/* Logo watermark flottant dans le contenu principal */
.content-logo-watermark {
  position: fixed;
  bottom: 3.5rem; right: 1.5rem;
  width: 36px; height: 36px;
  object-fit: contain;
  opacity: .12;
  pointer-events: none;
  z-index: 5;
  border-radius: 8px;
}

/* Logo dans les cartes de rapport et impression */
.report-logo-badge {
  width: 40px; height: 40px;
  object-fit: contain;
  border-radius: 10px;
  flex-shrink: 0;
}

/* ═══════════════════════════════════
   PHOTO DE PROFIL — édition
   ═══════════════════════════════════ */
.profile-photo-edit-overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,.55);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  opacity: 0;
  transition: opacity .2s;
  cursor: pointer;
  font-size: .75rem; color: #fff; font-weight: 700;
  text-align: center; flex-direction: column; gap: 3px;
}
.profile-avatar-big-wrap {
  position: relative;
  width: 90px; height: 90px;
  margin: 0 auto 1rem;
}
.profile-avatar-big-wrap:hover .profile-photo-edit-overlay { opacity: 1; }
.profile-avatar-big-wrap .profile-avatar-big {
  width: 90px; height: 90px;
  margin: 0;
}
.profile-avatar-big img {
  width: 90px; height: 90px;
  border-radius: 50%; object-fit: cover;
  border: 3px solid rgba(255,107,0,.4);
}

/* Carte membre numérique — photo */
.mc-photo-wrap {
  width: 64px; height: 64px;
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid rgba(255,107,0,.5);
  flex-shrink: 0;
}
.mc-photo-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.mc-photo-placeholder {
  width: 64px; height: 64px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--orange), var(--blue));
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem; font-weight: 700; color: #fff;
  flex-shrink: 0;
}
.mc-header-row {
  display: flex; align-items: center; gap: 1rem;
  margin-bottom: 1rem;
}
.mc-header-text { flex: 1; }
.gs-overlay{
  position:fixed;inset:0;
  background:rgba(0,0,0,.75);
  display:flex;align-items:flex-start;justify-content:center;
  padding:80px 1rem 1rem;
  z-index:2000;
  backdrop-filter:blur(6px);
  animation:fadeIn .2s ease;
}
.gs-box{
  background:#0d1421;
  border:1px solid #1e3050;
  border-radius:18px;
  width:100%;max-width:660px;
  box-shadow:0 20px 60px rgba(0,0,0,.7);
  overflow:hidden;
  animation:slideUp .2s ease;
}
.gs-header{
  display:flex;align-items:center;gap:.8rem;
  padding:1rem 1.2rem;
  border-bottom:1px solid #1a2640;
}
.gs-header input{
  flex:1;background:none;border:none;outline:none;
  font-size:1rem;color:#e8f0fc;
  font-family:'Rajdhani',sans-serif;
}
.gs-header input::placeholder{color:#3a5070}
.gs-close{
  background:none;color:#3a5070;font-size:1.1rem;
  padding:.3rem;cursor:pointer;transition:color .2s;border:none;
}
.gs-close:hover{color:var(--neon-red)}
.gs-results{max-height:400px;overflow-y:auto;padding:.5rem}
.gs-hint{color:#3a5070;font-size:.88rem;padding:1rem;text-align:center}
.gs-item{
  display:flex;align-items:center;gap:.8rem;
  padding:.7rem .8rem;border-radius:10px;cursor:pointer;
  transition:background .15s;border:1px solid transparent;
  margin-bottom:4px;
}
.gs-item:hover{background:#0a1120;border-color:#1a2640}
.gs-icon{
  width:36px;height:36px;border-radius:10px;
  display:flex;align-items:center;justify-content:center;
  font-size:.9rem;flex-shrink:0;
}
.gs-info{flex:1;min-width:0}
.gs-title{font-weight:700;color:#e8f0fc;font-size:.9rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.gs-sub{font-size:.78rem;color:#5a7a99;margin-top:2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.gs-type{font-size:.72rem;color:#3a5070;background:#080e1a;border-radius:6px;padding:.2rem .5rem;white-space:nowrap;flex-shrink:0}

/* ═══════════════════════════════════
   LOT 4 — GRAPHIQUES DASHBOARD
   ═══════════════════════════════════ */
.charts-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
  gap:1.2rem;
  margin-bottom:1.5rem;
}
.chart-card{
  background:#0d1421;
  border:1px solid #1a2640;
  border-radius:14px;
  padding:1.2rem;
}
.chart-title{
  font-size:.85rem;font-weight:700;color:#7a9acc;
  margin-bottom:.8rem;
  display:flex;align-items:center;gap:.4rem;
}
.chart-wrap{height:180px;position:relative}

/* ═══════════════════════════════════
   FIN DES STYLES
   ═══════════════════════════════════ */

/* ═══════════════════════════════════
   FEATURES — Onglets filtre tontine
   ═══════════════════════════════════ */
.tontine-filter-tabs {
  display: flex; gap: .5rem; flex-wrap: wrap;
  margin: 1rem 0 .8rem;
  padding: .8rem;
  background: #0d1421;
  border: 1px solid #1a2640;
  border-radius: 12px;
}
.tontine-tab {
  display: flex; align-items: center; gap: .4rem;
  background: #080e1a;
  color: #5a7a99;
  border: 1px solid #1a2640;
  border-radius: 20px;
  padding: .4rem 1rem;
  font-size: .85rem; font-weight: 600;
  cursor: pointer; transition: all .2s;
  font-family: 'Rajdhani', sans-serif;
}
.tontine-tab:hover { border-color: var(--orange); color: var(--orange); background: rgba(255,107,0,.05); }
.tontine-tab.active { background: rgba(255,107,0,.15); color: var(--orange); border-color: rgba(255,107,0,.5); }
.tab-count {
  background: rgba(255,107,0,.2);
  color: var(--orange);
  border-radius: 10px;
  padding: .05rem .4rem;
  font-size: .72rem; font-weight: 700;
}

/* ═══════════════════════════════════
   FEATURES — Ordre bénéficiaires drag
   ═══════════════════════════════════ */
.beneficiary-order-list {
  display: flex; flex-direction: column; gap: .5rem;
  max-height: 380px; overflow-y: auto;
}
.ben-order-item {
  display: flex; align-items: center; gap: .8rem;
  background: #0a1120;
  border: 1px solid #1a2640;
  border-radius: 10px;
  padding: .7rem .9rem;
  transition: border-color .15s;
}
.ben-order-item:hover { border-color: rgba(255,107,0,.3); }
.ben-order-num {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: rgba(255,107,0,.15);
  color: var(--orange);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: .85rem;
  flex-shrink: 0;
}

/* ═══════════════════════════════════
   FEATURES — Choix compte épargne
   ═══════════════════════════════════ */
.savings-account-choice {
  display: flex; flex-direction: column; gap: .6rem;
}
.savings-account-option {
  display: flex; align-items: center; gap: .8rem;
  background: #0a1120;
  border: 1px solid #1a2640;
  border-radius: 10px;
  padding: .8rem 1rem;
  cursor: pointer;
  transition: border-color .2s, background .2s;
}
.savings-account-option:has(input:checked) {
  border-color: var(--orange);
  background: rgba(255,107,0,.08);
}
.savings-account-option input[type="radio"] {
  width: 16px; height: 16px;
  accent-color: var(--orange);
  flex-shrink: 0;
}
.sao-icon {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: rgba(255,107,0,.1);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; color: var(--orange);
  flex-shrink: 0;
}
.sao-title { font-weight: 700; color: #e8f0fc; font-size: .9rem; }
.sao-balance { font-size: .78rem; color: #5a7a99; margin-top: .1rem; }

/* ═══════════════════════════════════════════════════════════════
   CAISSE ASSOCIATION — Cat. 7
   ═══════════════════════════════════════════════════════════════ */

/* Stat spéciale Caisse (accent vert) */
.bank-stat.caisse-stat {
  border-color: rgba(0,255,200,.2);
  background: linear-gradient(135deg, rgba(0,255,200,.04), transparent);
}
.bank-stat.caisse-stat .bstat-value { color: var(--neon-green); }

/* ═══════════════════════════════════════════════════════════════
   COLLECTES DE FONDS — Cat. 7
   ═══════════════════════════════════════════════════════════════ */
.collectes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1.2rem;
}
.collecte-card {
  background: #0d1421;
  border: 1px solid #1a2640;
  border-radius: 16px;
  padding: 1.3rem;
  transition: border-color .2s, box-shadow .2s;
  animation: fadeInUp .3s ease;
}
.collecte-card:hover {
  border-color: rgba(255,107,0,.3);
  box-shadow: 0 4px 24px rgba(255,107,0,.08);
}
.col-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: .7rem;
  margin-bottom: .8rem;
}
.col-card-header > div:first-child { display: flex; align-items: center; gap: .7rem; flex: 1; }
.col-card-icon {
  font-size: 1.6rem;
  line-height: 1;
  flex-shrink: 0;
}
.col-card-name {
  font-size: 1rem;
  font-weight: 700;
  color: #e8f0fc;
  margin-bottom: .15rem;
}

/* ═══════════════════════════════════════════════════════════════
   ÉCRAN DE LICENCE — license-screen
   ═══════════════════════════════════════════════════════════════ */
#license-screen {
  position: fixed; inset: 0; z-index: 9999;
  background: #06080f;
  display: flex; align-items: center; justify-content: center;
  padding: 1rem;
}
.lic-bg-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,107,0,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,107,0,.04) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}
.lic-container {
  position: relative; z-index: 1;
  width: 100%; max-width: 500px;
  display: flex; flex-direction: column; align-items: center; gap: 1.2rem;
}
.lic-header { text-align: center; }
.lic-logo {
  width: 72px; height: 72px; border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255,107,0,.4);
  margin-bottom: .7rem;
  display: block; margin: 0 auto .7rem;
}
.lic-title {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.1rem; font-weight: 900;
  color: #e8f0fc; letter-spacing: 1px;
  margin-bottom: .2rem;
}
.lic-subtitle {
  font-size: .9rem; color: var(--orange);
  font-weight: 600; margin-bottom: .2rem;
}
.lic-powered { font-size: .72rem; color: var(--orange); }

.lic-card {
  width: 100%;
  background: #0d1421;
  border: 1px solid #1a2640;
  border-radius: 16px;
  padding: 1.6rem;
}
.lic-alert {
  display: flex; align-items: flex-start; gap: .6rem;
  border-radius: 8px; padding: .7rem .9rem;
  font-size: .82rem; margin-bottom: 1rem;
  line-height: 1.4;
}
.lic-alert-info {
  background: rgba(26,108,255,.08);
  border: 1px solid rgba(26,108,255,.25);
  color: #8ab4f8;
}
.lic-alert-warn {
  background: rgba(255,200,0,.08);
  border: 1px solid rgba(255,200,0,.3);
  color: #ffd54f;
}
.lic-divider {
  display: flex; align-items: center; gap: .7rem;
  color: #2a3a50; font-size: .78rem;
  margin: .9rem 0;
}
.lic-divider::before, .lic-divider::after {
  content: ''; flex: 1; height: 1px; background: #1a2640;
}
.lic-footer {
  text-align: center; font-size: .75rem;
  color: #3a5070; line-height: 1.8;
}
.lic-footer i { color: var(--orange); margin-right: .3rem; }

/* ═══════════════════════════════════════════════════════════════
   CLOUD SYNC INDICATOR — Firebase Backend
   ═══════════════════════════════════════════════════════════════ */
.cloud-indicator {
  display: flex;
  align-items: center;
  gap: .35rem;
  padding: .3rem .65rem;
  border-radius: 8px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background .2s, border-color .2s;
  font-size: .8rem;
}
.cloud-indicator:hover {
  background: rgba(255,255,255,.05);
  border-color: rgba(255,107,0,.25);
}
.cloud-label {
  font-size: .72rem;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 600;
  white-space: nowrap;
}
@media(max-width:640px) { .cloud-label { display: none; } }

/* ═══════════════════════════════════════════════════════════════
   JOUER TONTINE — Cat. 8
   ═══════════════════════════════════════════════════════════════ */

/* Bouton "Jouer Tontine" — proéminent, accent orange */
.btn-jouer-tontine {
  display: inline-flex; align-items: center; gap: .4rem;
  background: linear-gradient(135deg, rgba(255,107,0,.18), rgba(255,107,0,.08));
  border: 1px solid rgba(255,107,0,.55);
  color: var(--orange);
  border-radius: 8px;
  padding: .35rem .9rem;
  font-size: .82rem;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  cursor: pointer;
  transition: background .2s, box-shadow .2s, border-color .2s;
}
.btn-jouer-tontine:hover {
  background: rgba(255,107,0,.25);
  border-color: var(--orange);
  box-shadow: 0 0 12px rgba(255,107,0,.25);
}

/* Bloc bénéficiaire mis en avant dans le modal */
.jt-benef-box {
  background: linear-gradient(135deg, rgba(255,107,0,.1), rgba(255,107,0,.04));
  border: 1.5px solid rgba(255,107,0,.35);
  border-radius: 14px;
  padding: 1.2rem 1.4rem;
  text-align: center;
}
.jt-benef-label {
  font-size: .72rem;
  letter-spacing: 1.2px;
  color: #4a6a8a;
  text-transform: uppercase;
  margin-bottom: .4rem;
}
.jt-benef-name {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--orange);
  font-family: 'Orbitron', sans-serif;
  letter-spacing: .5px;
}
.jt-benef-round {
  font-size: .8rem;
  color: #4a6a8a;
  margin-top: .3rem;
}

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE COMPLET — Tablettes & Smartphones — Cat. 6
   ═══════════════════════════════════════════════════════════════ */

/* ── Tableaux scrollables sur petits écrans ── */
.data-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
/* Toutes les tables en mode scroll automatique (conteneur parent scroll) */
.data-table { min-width: 600px; display: table; width: 100%; }
.dashboard-card { overflow-x: auto; }
.report-content { overflow-x: auto; }

/* ── Reports tabs ── */
.reports-tabs { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 1.2rem; }
.rtab { padding: .45rem .9rem; border-radius: 8px; border: 1px solid #1a2640; background: #080e1a;
  color: #5a7a99; font-size: .82rem; cursor: pointer; transition: all .2s; font-family: 'Rajdhani', sans-serif; }
.rtab:hover { background: #0a1120; border-color: rgba(90,154,216,.4); color: #c8d4e8; }
.rtab.active { background: rgba(90,154,216,.2); border-color: var(--blue); color: #e8f0fc; font-weight: 700; }

/* ── Tablette paysage / Desktop réduit (≤ 1024px) ── */
@media(max-width:1024px) {
  .bank-overview { grid-template-columns: repeat(2, 1fr); }
  .dashboard-grid { grid-template-columns: repeat(2, 1fr); }
  .charts-grid { grid-template-columns: 1fr; }
}

/* ── Tablette portrait (≤ 900px) — sidebar cachée ── */
@media(max-width:900px) {
  /* Tableaux → scroll horizontal */
  .data-table { min-width: 540px; }
  table.data-table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }

  /* Bank overview → 2 cols */
  .bank-overview { grid-template-columns: repeat(2, 1fr); gap: .7rem; }

  /* Fin-tabs déjà flex-wrap, juste ajustement taille */
  .ftab { font-size: .8rem; padding: .45rem .85rem; }

  /* Reports tabs */
  .rtab { font-size: .78rem; padding: .4rem .75rem; }

  /* Modal → presque pleine largeur */
  .modal-box { max-width: 95vw; margin: 0 .5rem; }
  .modal-box.small { max-width: 95vw; }

  /* Page header → stack vertical */
  .page-header { flex-direction: column; align-items: flex-start; gap: .7rem; }
  .page-header .btn-primary, .page-header .btn-secondary { width: 100%; justify-content: center; }

  /* Profile grid → 1 col (déjà géré mais renforcement) */
  .profile-details-grid { grid-template-columns: 1fr 1fr; }

  /* Projet card buttons → wrap */
  .project-action-btns { flex-wrap: wrap; gap: .4rem; }

  /* Loan preview → plus compact */
  .loan-preview { font-size: .85rem; }

  /* Member card → compact */
  .member-card-display { padding: 1rem; }
}

/* ── Smartphone (≤ 640px) ── */
@media(max-width:640px) {
  .collectes-grid { grid-template-columns: 1fr; }
  .main-content { padding: .9rem .8rem; }

  /* Statistiques → 2 cols serrées */
  .bank-overview { grid-template-columns: 1fr 1fr; gap: .5rem; }
  .bstat-value { font-size: 1rem; }
  .bstat-label { font-size: .7rem; }

  /* Dashboard stats → 2 cols */
  .dashboard-grid { grid-template-columns: 1fr 1fr; }

  /* Tables → blocs scrollables */
  table.data-table { font-size: .8rem; }
  table.data-table th, table.data-table td { padding: .5rem .6rem; }

  /* Action buttons → compact */
  .action-btns { gap: .3rem; flex-wrap: wrap; }
  .action-btn { padding: .3rem .5rem; font-size: .78rem; }

  /* Modals → pleine largeur, padding réduit */
  .modal-overlay { padding: .5rem; align-items: flex-end; }
  .modal-box { max-width: 100%; max-height: 95vh; border-radius: 18px 18px 10px 10px; }
  .modal-box.small { max-width: 100%; border-radius: 18px 18px 10px 10px; }
  .modal-body { padding: 1rem; }
  .modal-header { padding: 1rem 1.2rem; }
  .modal-footer { padding: .8rem 1.2rem; flex-wrap: wrap; }
  .modal-footer button { flex: 1; min-width: 110px; justify-content: center; }

  /* Topbar → réduit */
  .topbar { padding: 0 .8rem; }
  .topbar-title { font-size: .85rem; }

  /* Login → réduit */
  .login-container { padding: .7rem; }
  .login-form-card { padding: 1.2rem; }

  /* Profil grid → 1 col */
  .profile-details-grid { grid-template-columns: 1fr; }
  .profile-grid { grid-template-columns: 1fr; }

  /* Reports tabs → petits */
  .rtab { font-size: .72rem; padding: .35rem .6rem; }

  /* Fin-tabs → petits */
  .ftab { font-size: .75rem; padding: .4rem .75rem; }

  /* Loan preview rows → column sur très petits */
  .lp-row { flex-direction: column; gap: .15rem; align-items: flex-start; }

  /* Loan preview values → full width */
  .lp-row span:last-child { font-weight: 700; }

  /* Dashboard row → 1 col */
  .dashboard-row { grid-template-columns: 1fr; }

  /* Project action buttons → 2 par ligne */
  .project-action-btns { display: grid; grid-template-columns: 1fr 1fr; gap: .4rem; }
  .project-action-btns button { justify-content: center; font-size: .78rem; }

  /* Member financial summary banner → 2 cols */
  .mfb-item { padding: .5rem; }
  .mfb-val { font-size: .95rem; }

  /* Section headers → taille réduite */
  .page-header h2 { font-size: 1.1rem; }
  .card-header { font-size: .85rem; }

  /* Toast → full width */
  #toast-container { left: .5rem; right: .5rem; bottom: 1rem; }
  .toast { min-width: unset; width: 100%; }

  /* Checkbox grid → 1 col */
  .checkbox-grid { grid-template-columns: 1fr 1fr; }

  /* Membre carte numérique QR */
  #member-card-qr img { width: 90px !important; height: 90px !important; }
}

/* ── Smartphone compact (≤ 420px) ── */
@media(max-width:420px) {
  .dashboard-grid { grid-template-columns: 1fr; }
  .bank-overview { grid-template-columns: 1fr; }
  .project-action-btns { grid-template-columns: 1fr; }
  .checkbox-grid { grid-template-columns: 1fr; }
  .modal-footer button { width: 100%; }
  .fin-tabs { gap: .3rem; }
  .ftab { font-size: .7rem; padding: .35rem .6rem; }
  table.data-table th, table.data-table td { padding: .4rem .5rem; font-size: .75rem; }
  .bstat-value { font-size: .95rem; }
}

/* ── Sélecteur de langue FR / EN ──────────────────────────── */
.lang-toggle {
  display: flex; gap: .25rem; align-items: center;
  background: #0a1120; border: 1px solid #1a2640;
  border-radius: 20px; padding: .18rem .42rem; cursor: default;
  user-select: none;
}
.lang-opt {
  padding: .1rem .36rem; border-radius: 12px;
  font-size: .68rem; font-weight: 700; letter-spacing: .04em;
  color: #5a7a99; cursor: pointer; transition: background .18s, color .18s;
}
.lang-opt:hover { color: #c8d4e8; }
.lang-opt.active { background: var(--orange); color: #fff; }

/* Carte langue dans Paramètres */
.settings-lang-card {
  display: flex; align-items: center; gap: 1.2rem; flex-wrap: wrap;
  padding: .6rem 0;
}
.settings-lang-card .lang-toggle { transform: scale(1.15); transform-origin: left center; }
