/* =============================================================
   Mobilité Littoral & SAM — Design UI fidèle aux maquettes
   ============================================================= */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

:root {
  --blue:#1A56DB;--blue-dark:#1040B0;--blue-deeper:#0D2D6B;--blue-light:#EBF2FF;
  --green:#0E9F6E;--green-light:#DEF7EC;--red:#E53E3E;--red-light:#FEE2E2;
  --orange:#F6AD55;--orange-light:#FFFBEB;
  --gray-50:#F9FAFB;--gray-100:#F3F4F6;--gray-200:#E5E7EB;--gray-300:#D1D5DB;
  --gray-400:#9CA3AF;--gray-500:#6B7280;--gray-600:#4B5563;--gray-700:#374151;
  --gray-800:#1F2937;--gray-900:#111827;--white:#FFFFFF;
  --sidebar-w:260px;--header-h:60px;
  --radius-sm:8px;--radius:12px;--radius-lg:16px;--radius-xl:20px;--radius-full:9999px;
  --shadow-sm:0 1px 3px rgba(0,0,0,.06),0 1px 2px rgba(0,0,0,.04);
  --shadow:0 4px 12px rgba(0,0,0,.08),0 2px 4px rgba(0,0,0,.04);
  --shadow-lg:0 10px 30px rgba(0,0,0,.12),0 4px 8px rgba(0,0,0,.06);
  --font:'Inter',system-ui,-apple-system,sans-serif;
  --bg:var(--gray-50);--surface:var(--white);--surface-2:var(--gray-100);
  --border:var(--gray-200);--text:var(--gray-900);--text-2:var(--gray-600);--text-3:var(--gray-400);
}
[data-theme="dark"]{
  --bg:#0B1120;--surface:#111827;--surface-2:#1A2334;--border:#2A3A52;
  --text:#F0F4FF;--text-2:#9AA8C0;--text-3:#5A6A82;
  --blue-light:#1A2D4A;--green-light:#0A2218;--red-light:#2A0F0F;
}
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0;}
html{font-size:16px;scroll-behavior:smooth;}
body{font-family:var(--font);background:var(--bg);color:var(--text);line-height:1.5;min-height:100vh;padding-top:env(safe-area-inset-top);}
img{max-width:100%;height:auto;display:block;}
a{color:var(--blue);text-decoration:none;}
a:hover{text-decoration:underline;}
button,input,select,textarea{font-family:inherit;}
ul{list-style:none;}

/* SIDEBAR */
.sidebar{width:var(--sidebar-w);background:var(--surface);border-right:1px solid var(--border);position:fixed;top:0;left:0;bottom:0;display:flex;flex-direction:column;z-index:200;transition:transform .25s ease;}
.sidebar-brand{display:flex;align-items:center;gap:12px;padding:18px 20px;border-bottom:1px solid var(--border);text-decoration:none;min-height:var(--header-h);}
.sidebar-brand:hover{text-decoration:none;}
.brand-icon{width:44px;height:38px;display:flex;align-items:center;justify-content:center;flex-shrink:0;}
.brand-icon img{width:100%;height:100%;object-fit:contain;}
.brand-text .name{font-weight:800;font-size:.85rem;color:var(--text);line-height:1.1;}
.brand-text .sub{font-size:.7rem;font-weight:500;color:var(--text-2);margin-top:1px;}
.sidebar-nav{flex:1;overflow-y:auto;padding:8px 0;}
.sidebar-nav::-webkit-scrollbar{width:3px;}
.sidebar-nav::-webkit-scrollbar-thumb{background:var(--border);border-radius:2px;}
.nav-section{padding:14px 16px 5px;font-size:.65rem;font-weight:700;text-transform:uppercase;letter-spacing:.1em;color:var(--text-3);}
.nav-item{margin:1px 8px;}
.nav-link{display:flex;align-items:center;gap:10px;padding:9px 12px;border-radius:var(--radius-sm);color:var(--text-2);font-size:.875rem;font-weight:500;transition:all .15s;text-decoration:none;position:relative;}
.nav-link:hover{background:var(--surface-2);color:var(--text);text-decoration:none;}
.nav-link.active{background:var(--blue-light);color:var(--blue);font-weight:600;}
.nav-link.active::after{content:'';position:absolute;left:-8px;top:50%;transform:translateY(-50%);width:3px;height:18px;background:var(--blue);border-radius:0 2px 2px 0;}
.nl-icon{width:18px;height:18px;flex-shrink:0;opacity:.7;}
.nav-link:hover .nl-icon,.nav-link.active .nl-icon{opacity:1;}
.nav-badge{margin-left:auto;background:var(--red);color:white;font-size:.6rem;font-weight:700;padding:2px 6px;border-radius:20px;min-width:18px;text-align:center;}
.sidebar-footer{padding:12px;border-top:1px solid var(--border);}
.sidebar-user{display:flex;align-items:center;gap:10px;padding:8px 10px;border-radius:var(--radius-sm);cursor:pointer;transition:background .15s;text-decoration:none;}
.sidebar-user:hover{background:var(--surface-2);text-decoration:none;}
.user-ava{width:34px;height:34px;border-radius:50%;background:linear-gradient(135deg,var(--blue),var(--green));color:white;display:flex;align-items:center;justify-content:center;font-weight:700;font-size:.75rem;flex-shrink:0;overflow:hidden;}
.user-ava img{width:100%;height:100%;object-fit:cover;}
.u-name{font-size:.82rem;font-weight:600;color:var(--text);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.u-role{font-size:.68rem;color:var(--text-3);}

/* MAIN LAYOUT */
.app-wrap{display:flex;min-height:100vh;}
.main-content{margin-left:var(--sidebar-w);flex:1;min-width:0;display:flex;flex-direction:column;}
.top-bar{height:var(--header-h);background:var(--surface);border-bottom:1px solid var(--border);display:flex;align-items:center;padding:0 24px;gap:14px;position:sticky;top:0;z-index:100;}
.top-bar-toggle{display:none;background:none;border:none;padding:6px;border-radius:8px;cursor:pointer;color:var(--text-2);}
.top-bar-toggle:hover{background:var(--surface-2);}
.top-bar-title{font-size:1rem;font-weight:700;color:var(--text);flex:1;}
.top-actions{display:flex;align-items:center;gap:8px;}
.icon-btn{width:36px;height:36px;border-radius:var(--radius-sm);border:none;background:var(--surface-2);color:var(--text-2);cursor:pointer;display:flex;align-items:center;justify-content:center;transition:all .15s;text-decoration:none;position:relative;}
.icon-btn:hover{background:var(--blue-light);color:var(--blue);text-decoration:none;}
.notif-dot{position:absolute;top:5px;right:5px;width:8px;height:8px;border-radius:50%;background:var(--red);border:2px solid var(--surface);display:none;}
.page-body{padding:24px;flex:1;}

/* AUTH PAGES */
.auth-page{min-height:100vh;min-height:100dvh;display:flex;background:linear-gradient(160deg,#0D2D6B 0%,#1040B0 40%,#0B7A52 100%);}
.auth-left{flex:1;display:flex;flex-direction:column;justify-content:center;padding:60px;color:white;max-width:520px;}
.auth-left-logo{display:flex;align-items:center;gap:14px;margin-bottom:48px;}
.auth-left-logo .logo-box{width:52px;height:52px;background:rgba(255,255,255,.15);border-radius:14px;backdrop-filter:blur(10px);display:flex;align-items:center;justify-content:center;border:1px solid rgba(255,255,255,.2);}
.auth-left-logo .logo-text .t1{font-size:1.2rem;font-weight:800;letter-spacing:.03em;}
.auth-left-logo .logo-text .t2{font-size:.75rem;opacity:.7;font-weight:500;}
.auth-tagline{font-size:2rem;font-weight:800;line-height:1.2;margin-bottom:20px;}
.auth-tagline span{color:rgba(255,255,255,.6);}
.auth-features{display:flex;flex-direction:column;gap:12px;margin-top:32px;}
.auth-feature{display:flex;align-items:center;gap:12px;background:rgba(255,255,255,.1);border-radius:var(--radius);padding:12px 16px;backdrop-filter:blur(8px);border:1px solid rgba(255,255,255,.15);font-size:.875rem;font-weight:500;}
.auth-feature-icon{width:36px;height:36px;border-radius:10px;background:rgba(255,255,255,.15);display:flex;align-items:center;justify-content:center;flex-shrink:0;}
.auth-right{width:480px;background:var(--surface);display:flex;flex-direction:column;justify-content:center;padding:60px 48px;overflow-y:auto;}
.auth-right h2{font-size:1.6rem;font-weight:800;margin-bottom:6px;color:var(--text);}
.auth-right .auth-sub{font-size:.9rem;color:var(--text-2);margin-bottom:32px;}

/* WELCOME BANNER */
.welcome-banner{background:linear-gradient(135deg,var(--blue) 0%,var(--blue-deeper) 100%);border-radius:var(--radius-xl);padding:28px 32px;color:white;position:relative;overflow:hidden;margin-bottom:24px;}
.welcome-banner::before{content:'';position:absolute;right:-40px;top:-40px;width:200px;height:200px;background:rgba(255,255,255,.07);border-radius:50%;}
.welcome-banner::after{content:'';position:absolute;right:60px;bottom:-60px;width:160px;height:160px;background:rgba(255,255,255,.04);border-radius:50%;}
.welcome-banner h2{font-size:1.4rem;font-weight:800;margin-bottom:4px;}
.welcome-banner p{font-size:.9rem;opacity:.85;}
.welcome-badge{display:inline-flex;align-items:center;gap:6px;background:rgba(255,255,255,.2);border-radius:var(--radius-full);padding:4px 12px;font-size:.75rem;font-weight:600;margin-bottom:12px;backdrop-filter:blur(8px);}

/* QUICK ACTIONS */
.quick-actions{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:16px;margin-bottom:24px;}
.qa-card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-lg);padding:20px;text-align:center;text-decoration:none;transition:all .2s;display:flex;flex-direction:column;align-items:center;gap:10px;}
.qa-card:hover{transform:translateY(-3px);box-shadow:var(--shadow-lg);text-decoration:none;border-color:var(--blue);}
.qa-icon{width:52px;height:52px;border-radius:var(--radius);display:flex;align-items:center;justify-content:center;}
.qa-icon.blue{background:var(--blue-light);color:var(--blue);}
.qa-icon.green{background:var(--green-light);color:var(--green);}
.qa-icon.gray{background:var(--gray-100);color:var(--gray-600);}
.qa-title{font-size:.9rem;font-weight:700;color:var(--text);}
.qa-sub{font-size:.75rem;color:var(--text-2);}

/* STATS */
.stats-row{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin-bottom:24px;}
.stat-c{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-lg);padding:18px 20px;display:flex;align-items:center;gap:14px;}
.stat-ico{width:46px;height:46px;border-radius:var(--radius);display:flex;align-items:center;justify-content:center;flex-shrink:0;}
.stat-ico.blue{background:var(--blue-light);color:var(--blue);}
.stat-ico.green{background:var(--green-light);color:var(--green);}
.stat-ico.red{background:var(--red-light);color:var(--red);}
.stat-ico.orange{background:var(--orange-light);color:#B45309;}
.stat-v{font-size:1.6rem;font-weight:800;color:var(--text);line-height:1;}
.stat-l{font-size:.75rem;color:var(--text-2);margin-top:3px;}

/* TRAJET FORM */
.trajet-form-card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-xl);overflow:hidden;box-shadow:var(--shadow);}
.trajet-form-header{background:var(--blue);padding:20px 24px;color:white;display:flex;align-items:center;gap:12px;}
.trajet-form-header h3{font-size:1.1rem;font-weight:700;}
.trajet-form-body{padding:28px;}
.addr-group{background:var(--surface-2);border:1px solid var(--border);border-radius:var(--radius-lg);overflow:hidden;margin-bottom:16px;}
.addr-row{display:flex;align-items:center;gap:12px;padding:14px 16px;position:relative;}
.addr-row:not(:last-child){border-bottom:1px solid var(--border);}
.addr-dot{width:12px;height:12px;border-radius:50%;flex-shrink:0;}
.addr-dot.blue{background:var(--blue);}
.addr-dot.green{background:var(--green);}
.addr-input{flex:1;border:none;background:transparent;font-size:.9rem;color:var(--text);outline:none;font-weight:500;}
.addr-input::placeholder{color:var(--text-3);}
.route-info{background:var(--surface-2);border-radius:var(--radius-lg);padding:16px 20px;display:flex;gap:24px;margin-top:16px;flex-wrap:wrap;}
.ri-item{display:flex;flex-direction:column;gap:3px;}
.ri-label{font-size:.72rem;font-weight:600;text-transform:uppercase;letter-spacing:.05em;color:var(--text-3);}
.ri-value{font-size:1.1rem;font-weight:700;color:var(--text);}
.ri-value.price{color:var(--blue);font-size:1.3rem;}

/* MAP */
.map-box{height:380px;border-radius:var(--radius-lg);overflow:hidden;border:1px solid var(--border);position:relative;background:var(--gray-100);}
.map-overlay-info{position:absolute;bottom:16px;left:16px;right:16px;background:white;border-radius:var(--radius-lg);padding:14px 18px;box-shadow:var(--shadow-lg);display:flex;gap:20px;}
.mo-row{display:flex;flex-direction:column;gap:2px;}
.mo-label{font-size:.7rem;color:var(--text-2);font-weight:500;}
.mo-value{font-size:.95rem;font-weight:700;color:var(--text);}

/* TRAJET ITEMS */
.tab-bar{display:flex;gap:4px;background:var(--surface-2);border-radius:var(--radius-sm);padding:4px;margin-bottom:20px;}
.tab-btn{flex:1;padding:8px 16px;border:none;border-radius:var(--radius-sm);font-size:.875rem;font-weight:600;cursor:pointer;transition:all .15s;background:none;color:var(--text-2);}
.tab-btn.active{background:var(--blue);color:white;box-shadow:var(--shadow-sm);}
.trajet-item{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-lg);padding:18px 20px;margin-bottom:12px;transition:all .2s;cursor:pointer;}
.trajet-item:hover{box-shadow:var(--shadow);border-color:var(--blue);}
.ti-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px;}
.ti-date{font-size:.82rem;font-weight:600;color:var(--text-2);}
.ti-stops{display:flex;flex-direction:column;gap:2px;margin-bottom:10px;}
.ti-stop{display:flex;align-items:center;gap:10px;padding:4px 0;}
.ti-dot{width:10px;height:10px;border-radius:50%;flex-shrink:0;}
.ti-dot.blue{background:var(--blue);}
.ti-dot.green{background:var(--green);}
.ti-city{font-size:.875rem;font-weight:500;color:var(--text);}
.ti-footer{display:flex;align-items:center;justify-content:space-between;}
.ti-meta{font-size:.78rem;color:var(--text-3);display:flex;align-items:center;gap:8px;}
.ti-price{font-size:.95rem;font-weight:700;color:var(--blue);}

/* CONDUCTEUR */
.cond-request-card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-lg);padding:20px;margin-bottom:14px;transition:all .2s;}
.cond-request-card:hover{box-shadow:var(--shadow);}
.crd-header{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:12px;}
.crd-date{font-size:.82rem;font-weight:600;color:var(--text-2);}
.crd-price{font-size:1.05rem;font-weight:700;color:var(--blue);}
.crd-actions{display:flex;gap:10px;margin-top:14px;}
.live-card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-xl);overflow:hidden;}
.live-header{background:linear-gradient(135deg,var(--blue),var(--blue-deeper));padding:16px 20px;color:white;}
.live-ref{font-size:.75rem;opacity:.75;font-family:monospace;}
.live-title{font-size:1rem;font-weight:700;}
.live-body{padding:20px;}
.live-passenger{display:flex;align-items:center;gap:10px;background:var(--surface-2);border-radius:var(--radius);padding:10px 14px;margin-bottom:16px;}
.live-pa-name{font-size:.9rem;font-weight:600;color:var(--text);}
.live-pa-contact{display:flex;gap:8px;margin-left:auto;}
.live-stats{display:flex;gap:20px;padding:14px 0;border-top:1px solid var(--border);}
.ls-item{display:flex;flex-direction:column;gap:2px;}
.ls-label{font-size:.7rem;font-weight:600;color:var(--text-3);text-transform:uppercase;}
.ls-val{font-size:1rem;font-weight:700;color:var(--text);}

/* PROFIL */
.profile-hero{background:linear-gradient(135deg,var(--blue),var(--blue-deeper));border-radius:var(--radius-xl);padding:28px;color:white;display:flex;align-items:center;gap:20px;margin-bottom:20px;}
.profile-ava{width:72px;height:72px;border-radius:50%;background:rgba(255,255,255,.2);border:3px solid rgba(255,255,255,.4);display:flex;align-items:center;justify-content:center;font-size:1.5rem;font-weight:700;overflow:hidden;flex-shrink:0;}
.profile-ava img{width:100%;height:100%;object-fit:cover;}
.profile-name{font-size:1.3rem;font-weight:800;}
.profile-since{font-size:.8rem;opacity:.75;margin-top:2px;}
.profile-badge{display:inline-flex;align-items:center;gap:5px;background:rgba(14,159,110,.3);border:1px solid rgba(14,159,110,.5);border-radius:var(--radius-full);padding:3px 10px;font-size:.72rem;font-weight:700;margin-top:8px;}
.profile-menu-item{display:flex;align-items:center;gap:14px;padding:16px 20px;background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-lg);margin-bottom:10px;cursor:pointer;transition:all .15s;text-decoration:none;color:var(--text);}
.profile-menu-item:hover{border-color:var(--blue);background:var(--blue-light);text-decoration:none;}
.pmi-icon{width:40px;height:40px;border-radius:var(--radius-sm);background:var(--surface-2);display:flex;align-items:center;justify-content:center;flex-shrink:0;}
.pmi-text .pmi-title{font-size:.9rem;font-weight:600;color:var(--text);}
.pmi-text .pmi-sub{font-size:.78rem;color:var(--text-2);margin-top:1px;}
.pmi-arrow{margin-left:auto;color:var(--text-3);}
.pmi-danger:hover{border-color:var(--red)!important;background:var(--red-light)!important;}
.pmi-danger .pmi-text .pmi-title{color:var(--red);}

/* CARTE ADHERENT */
.member-card-wrap{display:flex;justify-content:center;margin-bottom:24px;}
.member-card{width:100%;max-width:380px;aspect-ratio:1.586;background:linear-gradient(135deg,#1A56DB 0%,#0D2D6B 60%,#0B5C3A 100%);border-radius:var(--radius-xl);padding:24px;color:white;position:relative;overflow:hidden;box-shadow:var(--shadow-lg);display:flex;flex-direction:column;justify-content:space-between;}
.mc-bg1{position:absolute;top:-30px;right:-30px;width:160px;height:160px;background:rgba(255,255,255,.07);border-radius:50%;}
.mc-bg2{position:absolute;bottom:-40px;left:-20px;width:120px;height:120px;background:rgba(255,255,255,.04);border-radius:50%;}
.mc-top{display:flex;justify-content:space-between;align-items:flex-start;position:relative;z-index:1;}
.mc-logo{display:flex;align-items:center;gap:8px;}
.mc-logo-box{width:30px;height:30px;border-radius:7px;background:rgba(255,255,255,.2);display:flex;align-items:center;justify-content:center;font-size:11px;font-weight:800;}
.mc-logo-text .t1{font-size:.65rem;font-weight:800;letter-spacing:.05em;}
.mc-logo-text .t2{font-size:.55rem;opacity:.7;}
.mc-type{font-size:.65rem;font-weight:600;opacity:.7;text-transform:uppercase;letter-spacing:.05em;}
.mc-bottom{position:relative;z-index:1;}
.mc-name{font-size:1rem;font-weight:800;text-transform:uppercase;letter-spacing:.08em;}
.mc-num{font-size:.75rem;font-family:monospace;opacity:.8;margin-top:4px;}
.mc-validity{font-size:.68rem;opacity:.6;margin-top:6px;}
.mc-qr{position:absolute;right:24px;bottom:24px;width:60px;height:60px;background:white;border-radius:6px;padding:4px;}

/* SAM */
.sam-hero{background:linear-gradient(160deg,#1a0000,#4a0000);border-radius:var(--radius-xl);padding:40px 32px;text-align:center;color:white;margin-bottom:24px;}
.sam-pulse-icon{width:90px;height:90px;border-radius:50%;background:rgba(229,62,62,.25);margin:0 auto 20px;display:flex;align-items:center;justify-content:center;animation:sam-anim 2s ease-in-out infinite;}
@keyframes sam-anim{0%{box-shadow:0 0 0 0 rgba(229,62,62,.5);}70%{box-shadow:0 0 0 20px rgba(229,62,62,0);}100%{box-shadow:0 0 0 0 rgba(229,62,62,0);}}
.sam-hero h2{font-size:1.5rem;font-weight:800;margin-bottom:8px;}
.sam-hero p{font-size:.9rem;opacity:.75;max-width:360px;margin:0 auto;}
.btn-sam-urgence{display:inline-flex;align-items:center;gap:10px;justify-content:center;background:var(--red);color:white;border:none;border-radius:var(--radius-lg);font-size:1.05rem;font-weight:700;padding:16px 32px;width:100%;max-width:340px;cursor:pointer;margin-top:24px;box-shadow:0 4px 20px rgba(229,62,62,.5);animation:pulse-btn 2s infinite;transition:all .2s;}
@keyframes pulse-btn{0%,100%{box-shadow:0 4px 20px rgba(229,62,62,.4);}50%{box-shadow:0 8px 30px rgba(229,62,62,.7);}}
.btn-sam-urgence:hover{background:#c53030;transform:scale(1.02);}

/* CONFIRMATION */
.confirm-card{background:var(--surface);border-radius:var(--radius-xl);padding:40px;text-align:center;border:1px solid var(--border);max-width:480px;margin:0 auto;}
.confirm-icon{width:72px;height:72px;border-radius:50%;background:var(--green-light);display:flex;align-items:center;justify-content:center;margin:0 auto 20px;box-shadow:0 0 0 12px rgba(14,159,110,.1);}
.confirm-title{font-size:1.4rem;font-weight:800;color:var(--text);margin-bottom:8px;}
.confirm-sub{font-size:.875rem;color:var(--text-2);margin-bottom:28px;}
.confirm-details{background:var(--surface-2);border-radius:var(--radius-lg);padding:16px 20px;text-align:left;margin-bottom:20px;}
.cd-row{display:flex;justify-content:space-between;align-items:center;padding:6px 0;}
.cd-row:not(:last-child){border-bottom:1px solid var(--border);}
.cd-label{font-size:.82rem;color:var(--text-2);}
.cd-value{font-size:.88rem;font-weight:600;color:var(--text);}

/* ADMIN */
.admin-stats-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin-bottom:24px;}
.admin-grid-2{display:grid;grid-template-columns:1fr 1fr;gap:20px;}
.card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-lg);overflow:hidden;}
.card-head{padding:18px 22px 14px;border-bottom:1px solid var(--border);display:flex;align-items:center;justify-content:space-between;gap:12px;}
.card-title{font-size:.9rem;font-weight:700;color:var(--text);display:flex;align-items:center;gap:8px;}
.card-body{padding:20px;}
.card-foot{padding:14px 20px;border-top:1px solid var(--border);background:var(--surface-2);}
.tbl-wrap{overflow-x:auto;}
.tbl{width:100%;border-collapse:collapse;font-size:.85rem;}
.tbl th{background:var(--surface-2);padding:10px 14px;text-align:left;font-size:.7rem;font-weight:700;text-transform:uppercase;letter-spacing:.05em;color:var(--text-3);border-bottom:1px solid var(--border);white-space:nowrap;}
.tbl td{padding:12px 14px;border-bottom:1px solid var(--border);color:var(--text-2);vertical-align:middle;}
.tbl tbody tr:last-child td{border-bottom:none;}
.tbl tbody tr:hover{background:var(--surface-2);}
.tbl-name{font-weight:600;color:var(--text);}
.tbl-sub{font-size:.74rem;color:var(--text-3);margin-top:1px;}

/* ============================================================
   TABLEAUX → CARTES SUR MOBILE
   Sur les ecrans etroits, un tableau dense (beaucoup de colonnes)
   devient une liste de cartes empilees plutot que de forcer un
   scroll horizontal. Chaque <td> affiche son intitule de colonne
   (via data-label="...") au-dessus de sa valeur.
   Activer ce mode sur un tableau : ajouter la classe .tbl-cards
   au <table> (en plus de .tbl), et data-label="Intitule" sur
   chaque <td> (le <thead> n'a besoin d'aucune modification, il
   est simplement masque en dessous de 700px).
   ============================================================ */
@media(max-width:700px){
  .tbl-cards thead{display:none;}
  .tbl-cards, .tbl-cards tbody, .tbl-cards tr, .tbl-cards td{display:block;width:100%;}
  .tbl-cards tr{
    background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-lg);
    margin-bottom:12px;padding:6px 14px;box-shadow:var(--shadow-sm);
  }
  .tbl-cards tr:hover{background:var(--surface);} /* annule le hover desktop, plus de sens en carte */
  .tbl-cards td{
    border-bottom:1px solid var(--border);padding:10px 0;
    display:flex;align-items:center;justify-content:space-between;gap:12px;text-align:right;
  }
  .tbl-cards td:last-child{border-bottom:none;}
  .tbl-cards td[data-label]::before{
    content:attr(data-label);flex-shrink:0;text-align:left;
    font-size:.68rem;font-weight:700;text-transform:uppercase;letter-spacing:.05em;color:var(--text-3);
  }
  /* data-label="" (vide) : cellule d'en-tete de carte (avatar+nom) ou
     colonne d'actions — pas de petit intitule au-dessus, juste le contenu
     pleine largeur, aligne a gauche plutot que pousse a droite. */
  .tbl-cards td[data-label=""]{justify-content:flex-start;text-align:left;}
  .tbl-cards td[data-label=""]::before{content:none;}
  /* Les textes tronques en ellipsis (adresses) retrouvent leur lecture
     complete en carte : plus de raison de tronquer, on a toute la largeur */
  .tbl-cards td.tbl-cell-ellipsis{
    max-width:none !important;white-space:normal !important;overflow:visible !important;
    text-overflow:initial !important;text-align:right;
  }
  /* Cellule "Aucun resultat" (colspan) : reste un simple message centre,
     pas le pattern label/valeur d'une cellule de donnees normale. */
  .tbl-cards td[colspan]{display:block !important;justify-content:initial;text-align:center !important;}
  .tbl-cards td[colspan]::before{content:none;}
}

/* FORMS */
.form-group{margin-bottom:18px;}
.form-label{display:block;font-size:.82rem;font-weight:600;color:var(--text-2);margin-bottom:6px;}
.req{color:var(--red);margin-left:2px;}
.form-ctrl{width:100%;padding:11px 14px;border:1.5px solid var(--border);border-radius:var(--radius-sm);background:var(--surface);color:var(--text);font-size:.9rem;transition:border-color .15s,box-shadow .15s;outline:none;}
.form-ctrl:focus{border-color:var(--blue);box-shadow:0 0 0 3px rgba(26,86,219,.1);}
.form-ctrl::placeholder{color:var(--text-3);}
.form-ctrl:disabled{background:var(--surface-2);cursor:not-allowed;color:var(--text-3);}
.form-ctrl.error{border-color:var(--red);}
.form-error{font-size:.75rem;color:var(--red);margin-top:4px;font-weight:500;}
.form-row{display:grid;grid-template-columns:1fr 1fr;gap:14px;}
.form-row-3{display:grid;grid-template-columns:1fr 1fr 1fr;gap:14px;}
select.form-ctrl{cursor:pointer;}
textarea.form-ctrl{resize:vertical;min-height:90px;}
.input-icon{position:relative;}
.input-icon .form-ctrl{padding-left:42px;}
.input-icon-el{position:absolute;left:13px;top:50%;transform:translateY(-50%);color:var(--text-3);}
.form-check{display:flex;align-items:flex-start;gap:10px;cursor:pointer;}
.form-check input[type=checkbox]{width:16px;height:16px;margin-top:2px;accent-color:var(--blue);cursor:pointer;flex-shrink:0;}
.form-check-label{font-size:.85rem;color:var(--text-2);line-height:1.5;}
.form-check-label a{color:var(--blue);font-weight:600;}

/* BUTTONS */
.btn{display:inline-flex;align-items:center;gap:8px;padding:11px 20px;border-radius:var(--radius-sm);font-size:.875rem;font-weight:600;cursor:pointer;border:1.5px solid transparent;text-decoration:none;transition:all .15s;white-space:nowrap;justify-content:center;line-height:1.4;}
.btn:hover{text-decoration:none;transform:translateY(-1px);}
.btn:active{transform:translateY(0);}
.btn-primary{background:var(--blue);color:white;border-color:var(--blue);}
.btn-primary:hover{background:var(--blue-dark);border-color:var(--blue-dark);color:white;}
.btn-secondary{background:var(--green);color:white;border-color:var(--green);}
.btn-secondary:hover{background:#078759;border-color:#078759;color:white;}
.btn-danger{background:var(--red);color:white;border-color:var(--red);}
.btn-danger:hover{background:#c53030;border-color:#c53030;color:white;}
.btn-outline{background:transparent;color:var(--blue);border-color:var(--blue);}
.btn-outline:hover{background:var(--blue-light);color:var(--blue);}
.btn-ghost{background:transparent;color:var(--text-2);border-color:var(--border);}
.btn-ghost:hover{background:var(--surface-2);color:var(--text);}
.btn-sm{padding:7px 14px;font-size:.8rem;}
.btn-lg{padding:14px 28px;font-size:1rem;border-radius:var(--radius);}
.btn-full{width:100%;}

/* BADGES */
.badge{display:inline-flex;align-items:center;padding:3px 10px;border-radius:var(--radius-full);font-size:.7rem;font-weight:700;}
.badge-success{background:#d1fae5;color:#065f46;}
.badge-danger{background:#fee2e2;color:#991b1b;}
.badge-warning{background:#fef3c7;color:#92400e;}
.badge-info{background:#dbeafe;color:#1e40af;}
.badge-primary{background:var(--blue-light);color:var(--blue);}
.badge-gray{background:var(--gray-100);color:var(--gray-600);}

/* ALERTS */
.alert{display:flex;align-items:flex-start;gap:10px;padding:12px 16px;border-radius:var(--radius-sm);font-size:.875rem;border:1px solid transparent;margin-bottom:18px;}
.alert-success{background:#d1fae5;border-color:#6ee7b7;color:#065f46;}
.alert-danger{background:#fee2e2;border-color:#fca5a5;color:#991b1b;}
.alert-warning{background:#fef3c7;border-color:#fcd34d;color:#92400e;}
.alert-info{background:#dbeafe;border-color:#93c5fd;color:#1e40af;}
.alert-close{margin-left:auto;background:none;border:none;cursor:pointer;opacity:.6;font-size:1rem;line-height:1;}

/* TOASTS */
#toast-zone{position:fixed;bottom:24px;right:24px;z-index:9999;display:flex;flex-direction:column;gap:10px;}
.toast{display:flex;align-items:center;gap:12px;padding:13px 18px;border-radius:var(--radius-lg);background:var(--surface);border:1px solid var(--border);box-shadow:var(--shadow-lg);font-size:.875rem;font-weight:500;max-width:360px;animation:t-in .25s ease;color:var(--text);}
@keyframes t-in{from{transform:translateX(110%);opacity:0;}to{transform:translateX(0);opacity:1;}}
@keyframes toast-out{from{transform:translateX(0);opacity:1;}to{transform:translateX(110%);opacity:0;}}
.toast.success{border-left:4px solid var(--green);}
.toast.error{border-left:4px solid var(--red);}
.toast.info{border-left:4px solid var(--blue);}

/* EMPTY / LOADING */
.empty-st{text-align:center;padding:56px 20px;}
.empty-st-icon{font-size:40px;opacity:.35;margin-bottom:14px;}
.empty-st-title{font-size:1rem;font-weight:700;color:var(--text-2);margin-bottom:6px;}
.empty-st-sub{font-size:.85rem;color:var(--text-3);max-width:320px;margin:0 auto 18px;}
.spinner{width:20px;height:20px;border:2.5px solid var(--border);border-top-color:var(--blue);border-radius:50%;animation:spin .6s linear infinite;display:inline-block;}
@keyframes spin{to{transform:rotate(360deg);}}

/* UTILS */
.page-top{display:flex;align-items:center;justify-content:space-between;margin-bottom:22px;gap:14px;flex-wrap:wrap;}
.page-top-l h2{font-size:1.3rem;font-weight:800;color:var(--text);}
.page-top-l p{font-size:.85rem;color:var(--text-2);margin-top:2px;}
.page-top-r{display:flex;align-items:center;gap:10px;flex-wrap:wrap;}
.divider{height:1px;background:var(--border);margin:18px 0;}
.flex{display:flex;}.flex-center{display:flex;align-items:center;justify-content:center;}
.flex-between{display:flex;align-items:center;justify-content:space-between;}
.items-center{align-items:center;}
.gap-1{gap:8px;}.gap-2{gap:14px;}.gap-3{gap:20px;}
.mt-1{margin-top:8px;}.mt-2{margin-top:16px;}.mt-3{margin-top:24px;}.mt-4{margin-top:32px;}
.mb-1{margin-bottom:8px;}.mb-2{margin-bottom:16px;}.mb-3{margin-bottom:24px;}
.text-center{text-align:center;}.text-right{text-align:right;}
.text-muted{color:var(--text-3);}.text-sm{font-size:.82rem;}
.font-bold{font-weight:700;}.font-mono{font-family:monospace;}
.text-blue{color:var(--blue);}.text-green{color:var(--green);}.text-red{color:var(--red);}
.w-full{width:100%;}.hidden{display:none!important;}
.grid-2{display:grid;grid-template-columns:1fr 1fr;gap:18px;}
.grid-3{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;}
.grid-sidebar{display:grid;grid-template-columns:1fr 340px;gap:20px;align-items:start;}
.grid-sidebar>div{min-width:0;}
.overlay-sidebar{position:fixed;inset:0;background:rgba(0,0,0,.5);z-index:190;display:none;backdrop-filter:blur(2px);}
.overlay-sidebar.open{display:block;}

/* RESPONSIVE */
@media(max-width:1100px){.admin-stats-grid,.stats-row{grid-template-columns:1fr 1fr;}.grid-sidebar{grid-template-columns:1fr;}}
@media(max-width:768px){
  .sidebar{transform:translateX(-100%);}
  .sidebar.open{transform:translateX(0);box-shadow:var(--shadow-lg);}
  .main-content{margin-left:0;}
  .top-bar-toggle{display:flex;}
  .top-bar{padding:0 12px;gap:8px;}
  .top-bar-title{font-size:.9rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
  .top-actions{gap:4px;}
  .top-actions .btn-danger.btn-sm{padding:7px 10px;font-size:0;}
  .top-actions .btn-danger.btn-sm::after{content:'🚨';font-size:1rem;}
  .page-body{padding:16px;}
  .quick-actions,.grid-2,.grid-3,.form-row,.form-row-3,.admin-grid-2{grid-template-columns:1fr;}
  .admin-stats-grid,.stats-row{grid-template-columns:1fr 1fr;}
  .auth-left{display:none;}
  .auth-right{width:100%;padding:32px 22px;}
  #toast-zone{right:12px;left:12px;bottom:16px;}
  .toast{max-width:none;}
}
@media(max-width:480px){.admin-stats-grid,.stats-row{grid-template-columns:1fr;}.trajet-form-body{padding:18px;}}

/* ── Messagerie in-app par trajet ──────────────────────────────── */
.chat-box{display:flex;flex-direction:column;height:380px;border:1px solid var(--border);border-radius:var(--radius);overflow:hidden;background:var(--surface);}
.chat-messages{flex:1;overflow-y:auto;padding:14px;display:flex;flex-direction:column;gap:8px;background:var(--surface-2);}
.chat-msg{max-width:78%;padding:8px 12px;border-radius:14px;font-size:.85rem;line-height:1.35;word-wrap:break-word;}
.chat-msg.mine{align-self:flex-end;background:var(--blue);color:#fff;border-bottom-right-radius:4px;}
.chat-msg.theirs{align-self:flex-start;background:var(--surface);color:var(--text);border:1px solid var(--border);border-bottom-left-radius:4px;}
.chat-msg .chat-time{display:block;font-size:.65rem;opacity:.65;margin-top:3px;text-align:right;}
.chat-empty{text-align:center;color:var(--text-3);font-size:.8rem;padding:24px;}
.chat-input-row{display:flex;gap:8px;padding:10px;border-top:1px solid var(--border);background:var(--surface);}
.chat-input-row input{flex:1;border:1px solid var(--border);border-radius:20px;padding:9px 16px;font-size:.85rem;background:var(--surface-2);color:var(--text);outline:none;}
.chat-input-row input:focus{border-color:var(--blue);}
.chat-input-row button{border:none;background:var(--blue);color:#fff;width:38px;height:38px;border-radius:50%;display:flex;align-items:center;justify-content:center;cursor:pointer;flex-shrink:0;}
.chat-input-row button:disabled{opacity:.5;cursor:default;}
.chat-input-row button svg{width:16px;height:16px;}

/* ── Impression carte adherent — format carte bancaire ISO/CR80 ──── */
/* Dimensions reelles : 85.6mm x 53.98mm (ratio 1.5857) */
@media print {
  .no-print, .sidebar, .top-bar, .overlay-sidebar,
  #toast-zone, .sidebar-overlay, .alert {
    display: none !important;
  }
  html, body {
    background: #fff !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  .app-wrap, .main-content, .page-body {
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    width: auto !important;
  }
  #carte-print-zone {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    width: 100% !important;
    height: 100vh !important;
    margin: 0 !important;
    page-break-inside: avoid;
  }
  #carte-adherent.member-card {
    width: 85.6mm !important;
    height: 53.98mm !important;
    max-width: none !important;
    aspect-ratio: auto !important;
    padding: 5mm !important;
    border-radius: 3mm !important;
    box-shadow: none !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
    color-adjust: exact !important;
  }
  .mc-qr {
    right: 5mm !important;
    bottom: 5mm !important;
    width: 13mm !important;
    height: 13mm !important;
  }
  @page {
    size: auto;
    margin: 0;
  }
}

/* ============================================================
   PAGES CARTE PLEIN ÉCRAN (conducteur + réservation adhérent)
   Style "Google Maps / Plans" : carte en fond, overlays flottants
   ============================================================ */
.fullmap-body{padding:0 !important;height:calc(100vh - var(--header-h));position:relative;overflow:hidden;}
.fullmap-body{height:calc(100dvh - var(--header-h));}
/* Si une alerte flash est presente au-dessus (cas rare sur ces pages), elle
   prend de la place reelle dans le flux ; on retire sa hauteur du calcul via
   la variable --flash-h, posee en JS dans layout.php quand une alerte existe. */
.fullmap-body{height:calc(100vh - var(--header-h) - var(--flash-h, 0px));}
.fullmap-body{height:calc(100dvh - var(--header-h) - var(--flash-h, 0px));}
.fullmap-wrap{position:relative;width:100%;height:100%;}
.fullmap-canvas{position:absolute;inset:0;width:100%;height:100%;}

/* Panneau flottant (liste de pins, ou formulaire de reservation) — desktop/tablette */
.fullmap-panel{
  position:absolute;top:16px;left:16px;z-index:20;
  width:380px;max-width:calc(100% - 32px);max-height:calc(100% - 32px);
  background:var(--surface);border-radius:var(--radius-lg);box-shadow:var(--shadow-lg);
  display:flex;flex-direction:column;overflow:hidden;
}
.fullmap-panel-header{padding:14px 16px;border-bottom:1px solid var(--border);display:flex;align-items:center;justify-content:space-between;gap:10px;flex-shrink:0;}
.fullmap-panel-title{font-weight:700;font-size:.95rem;display:flex;align-items:center;gap:8px;min-width:0;}
.fullmap-panel-title span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.fullmap-panel-body{overflow-y:auto;flex:1;padding:8px;-webkit-overflow-scrolling:touch;}
.fullmap-panel-body::-webkit-scrollbar{width:6px;}
.fullmap-panel-body::-webkit-scrollbar-thumb{background:var(--border);border-radius:10px;}

/* Bouton retour : icone ronde dans le header du panneau (plus de flottant separe qui chevauche) */
.fullmap-back-btn{
  width:34px;height:34px;border-radius:50%;border:1px solid var(--border);background:var(--surface-2);
  display:flex;align-items:center;justify-content:center;color:var(--text-2);flex-shrink:0;cursor:pointer;
  transition:background .15s;
}
.fullmap-back-btn:hover{background:var(--border);color:var(--text);}

/* Filtres / segmented control en haut du panneau */
.fullmap-tabs{display:flex;gap:4px;padding:10px 12px 0;flex-shrink:0;}
.fullmap-tab{flex:1;text-align:center;padding:8px 4px;border-radius:var(--radius-sm);font-size:.7rem;font-weight:700;cursor:pointer;color:var(--text-2);background:var(--surface-2);border:1px solid transparent;transition:all .15s;user-select:none;white-space:nowrap;}
.fullmap-tab.active{background:var(--blue-light);color:var(--blue);border-color:rgba(26,86,219,.25);}
.fullmap-tab .cnt{display:inline-block;margin-left:3px;opacity:.75;}

/* Carte d'item dans la liste (trajet / SAM) */
.fullmap-item{padding:12px;border-radius:var(--radius);cursor:pointer;transition:background .15s;border:1px solid transparent;margin-bottom:4px;}
.fullmap-item:hover{background:var(--surface-2);}
.fullmap-item.active{background:var(--blue-light);border-color:rgba(26,86,219,.25);}
.fullmap-item-top{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:6px;}
.fullmap-item-route{font-size:.82rem;font-weight:600;color:var(--text);display:flex;align-items:center;gap:6px;min-width:0;}
.fullmap-item-route span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.fullmap-item-meta{display:flex;align-items:center;gap:8px;font-size:.74rem;color:var(--text-3);flex-wrap:wrap;}
.fullmap-item-price{font-weight:700;color:var(--blue);font-size:.85rem;flex-shrink:0;}
.fullmap-empty{padding:32px 16px;text-align:center;color:var(--text-3);font-size:.85rem;}

/* Pastille type pin (legende + liste) */
.fm-dot{width:9px;height:9px;border-radius:50%;flex-shrink:0;display:inline-block;}
.fm-dot.blue{background:var(--blue);}
.fm-dot.green{background:var(--green);}
.fm-dot.orange{background:var(--orange);}
.fm-dot.red{background:var(--red);}

/* Marqueur HTML custom Leaflet */
.fm-marker{width:34px;height:34px;border-radius:50%;display:flex;align-items:center;justify-content:center;color:#fff;font-size:15px;box-shadow:0 2px 8px rgba(0,0,0,.35);border:2px solid #fff;cursor:pointer;transition:transform .15s;}
.fm-marker:hover{transform:scale(1.12);}
.fm-marker.blue{background:var(--blue);}
.fm-marker.green{background:var(--green);}
.fm-marker.orange{background:var(--orange);}
.fm-marker.red{background:var(--red);}
.fm-marker.me{background:var(--blue-deeper);width:16px;height:16px;border-width:3px;}

/* Leaflet overrides */
.leaflet-popup-content-wrapper{padding:0 !important;border-radius:var(--radius) !important;overflow:hidden;box-shadow:var(--shadow-lg) !important;max-width:min(280px,calc(100vw - 40px)) !important;}
.leaflet-popup-content{margin:0 !important;}
.leaflet-container{font-family:inherit;}
.leaflet-control-zoom{border:none !important;box-shadow:var(--shadow-lg) !important;}
.leaflet-control-zoom a{border-radius:var(--radius-sm) !important;color:var(--text) !important;background:var(--surface) !important;border:1px solid var(--border) !important;width:32px !important;height:32px !important;line-height:32px !important;}
.fm-popup{min-width:200px;font-family:inherit;}
.fm-popup-head{padding:10px 14px;font-weight:700;font-size:.85rem;color:#fff;}
.fm-popup-head.blue{background:var(--blue);}
.fm-popup-head.orange{background:var(--orange);}
.fm-popup-head.red{background:var(--red);}
.fm-popup-body{padding:10px 14px;font-size:.8rem;color:var(--text-2);}
.fm-popup-row{display:flex;justify-content:space-between;gap:10px;padding:3px 0;}
.fm-popup-actions{padding:10px 14px;border-top:1px solid var(--border);}

/* Bouton "ma position" flottant — sous les controles Leaflet (top-right), au-dessus du panneau mobile */
.fullmap-locate{position:absolute;top:16px;right:16px;z-index:15;width:40px;height:40px;border-radius:50%;background:var(--surface);border:1px solid var(--border);box-shadow:var(--shadow-lg);display:flex;align-items:center;justify-content:center;cursor:pointer;color:var(--blue);}

/* Panneau formulaire reservation (page adherent) */
.fullmap-panel.fullmap-form{width:380px;}
.fullmap-form .form-group{margin-bottom:14px;}

/* Recap itineraire : bandeau integre en haut du panneau de reservation,
   visible seulement une fois le trajet calcule (classe .show ajoutee en JS) */
.fullmap-recap{display:none;padding:10px 16px;background:var(--blue-light);border-bottom:1px solid var(--border);flex-shrink:0;}
.fullmap-recap.show{display:block;}

/* ============================================================
   MOBILE : le panneau devient un vrai "bottom sheet" (pattern
   Google Maps/Plans) au lieu d'un encart flottant en haut qui
   mange l'ecran et chevauche les autres boutons flottants.
   ============================================================ */
@media(max-width:768px){
  .fullmap-locate{top:auto;bottom:calc(42vh + 16px);right:12px;width:38px;height:38px;}

  .fullmap-panel{
    left:0;right:0;top:auto;bottom:0;width:100%;max-width:none;
    max-height:42vh;min-height:120px;
    border-radius:var(--radius-lg) var(--radius-lg) 0 0;
    box-shadow:0 -8px 24px rgba(0,0,0,.18);
    padding-bottom:env(safe-area-inset-bottom);
  }
  /* Poignee visuelle de bottom-sheet, purement decorative */
  .fullmap-panel-header{position:relative;padding:18px 14px 12px;}
  .fullmap-panel-header::before{
    content:'';position:absolute;top:7px;left:50%;transform:translateX(-50%);
    width:36px;height:4px;border-radius:4px;background:var(--border);
  }
  .fullmap-panel-title{font-size:.88rem;}
  .fullmap-tabs{padding:8px 10px 0;}
  .fullmap-tab{font-size:.66rem;padding:7px 3px;}

  /* Dans le formulaire de reservation mobile, on reduit un peu les marges
     pour gagner de la place dans la hauteur restreinte du bottom-sheet */
  .fullmap-form .form-group{margin-bottom:10px;}
  .fullmap-form .fullmap-panel-body{padding:10px;}
}

@media(max-width:480px){
  .fullmap-panel{max-height:48vh;}
  .fullmap-locate{bottom:calc(48vh + 16px);}
}

/* ============================================================
   MODALE DE CONFIRMATION GENERIQUE
   Remplace les confirm() natifs du navigateur. Voir app.js pour
   la logique d'interception des elements [data-confirm].
   ============================================================ */
.confirm-modal-overlay{
  position:fixed;inset:0;z-index:9998;background:rgba(15,17,23,.55);
  display:none;align-items:center;justify-content:center;padding:20px;
  backdrop-filter:blur(3px);
}
.confirm-modal-overlay.show{display:flex;animation:cm-fade-in .15s ease;}
.confirm-modal{
  background:var(--surface);border-radius:var(--radius-xl);box-shadow:var(--shadow-lg);
  padding:28px 26px;max-width:380px;width:100%;text-align:center;
  animation:cm-pop-in .18s cubic-bezier(.34,1.56,.64,1);
}
.confirm-modal-icon{
  width:54px;height:54px;border-radius:50%;background:var(--red-light);color:var(--red);
  display:flex;align-items:center;justify-content:center;margin:0 auto 16px;
}
.confirm-modal-icon.info{background:var(--blue-light);color:var(--blue);}
.confirm-modal-title{font-size:1.05rem;font-weight:800;color:var(--text);margin-bottom:8px;}
.confirm-modal-text{font-size:.88rem;color:var(--text-2);line-height:1.5;margin-bottom:22px;}
.confirm-modal-actions{display:flex;gap:10px;}
@keyframes cm-fade-in{from{opacity:0;}to{opacity:1;}}
@keyframes cm-pop-in{from{opacity:0;transform:scale(.92) translateY(8px);}to{opacity:1;transform:scale(1) translateY(0);}}
@media(max-width:420px){.confirm-modal-actions{flex-direction:column-reverse;}}
