/* MATONDI Premium Reference — noir / blanc / or / rose
   Référence visuelle adoptée pour l'ensemble de l'application. */
:root{
  --matondi-black:#090806;--matondi-black-2:#14110e;--matondi-white:#fff;--matondi-soft:#f7f7f7;
  --matondi-gold:#c99a35;--matondi-gold-light:#f1c866;--matondi-gold-dark:#8f681d;
  --matondi-pink:#ef2f67;--matondi-pink-soft:#fff0f4;--matondi-green:#2e9b59;--matondi-red:#dd3f48;
  --matondi-text:#17130f;--matondi-muted:#6f6963;--matondi-border:#ece8e2;
  --matondi-shadow:0 10px 32px rgba(0,0,0,.10);--matondi-shadow-sm:0 4px 16px rgba(0,0,0,.07);
}
body,#app,.screen{background:#fff;color:var(--matondi-text)}
.screen{scrollbar-width:none}.screen::-webkit-scrollbar{display:none}
#topnav{min-height:72px;padding:.72rem 1rem;background:radial-gradient(circle at 18% 0,rgba(201,154,53,.12),transparent 38%),var(--matondi-black);border-bottom:1px solid rgba(201,154,53,.22);box-shadow:0 6px 20px rgba(0,0,0,.10)}
.topnav-logo img{height:2.75rem!important;filter:drop-shadow(0 3px 9px rgba(0,0,0,.28))}
#topnav .icon-btn{color:var(--matondi-gold-light);background:rgba(255,255,255,.035);border:1px solid rgba(201,154,53,.12)}
#topnav .icon-btn:hover{background:rgba(255,255,255,.09);color:#fff}
.badge,.nav-badge{background:var(--matondi-pink);border-color:var(--matondi-black)}
#bottomnav{min-height:70px;padding:.5rem .15rem .35rem;background:linear-gradient(180deg,#11100d,var(--matondi-black));border-top:1px solid rgba(201,154,53,.18);box-shadow:0 -8px 28px rgba(0,0,0,.14)}
.nav-item{min-width:58px;padding:5px 7px;color:rgba(255,255,255,.56);font-size:9px;gap:4px}.nav-item i{font-size:21px}.nav-item.active{color:var(--matondi-gold-light)}.nav-item.active i{filter:drop-shadow(0 0 9px rgba(201,154,53,.3))}
.nav-event-dot{position:absolute;top:3px;right:6px;width:9px;height:9px;border-radius:50%;background:var(--matondi-pink);border:2px solid var(--matondi-black)}
.feature-disabled{display:none!important}.feature-stack{display:flex;flex-direction:column;gap:12px}.feature-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,160px),1fr));gap:12px}
.btn{min-height:46px;border-radius:999px;font-weight:600;letter-spacing:.02em}.btn-gold{background:linear-gradient(135deg,var(--matondi-gold-light),var(--matondi-gold));color:#18120a;box-shadow:0 7px 20px rgba(201,154,53,.22)}.btn-rose{background:var(--matondi-pink)}
.field input,.field select,.field textarea{background:#fff;border:1px solid var(--matondi-border);border-radius:12px}.field input:focus,.field select:focus,.field textarea:focus{border-color:var(--matondi-gold);box-shadow:0 0 0 3px rgba(201,154,53,.11)}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:2px solid var(--matondi-gold-light);outline-offset:2px}

/* Auth — référence sombre premium */
#screen-auth{background:radial-gradient(circle at 50% -10%,rgba(201,154,53,.15),transparent 35%),var(--matondi-black);color:#fff}
.auth-header{background:transparent;padding:2rem 1.5rem .8rem}.auth-header img{height:3rem!important}.auth-sub{color:rgba(255,255,255,.65)}
.auth-tabs{background:rgba(255,255,255,.04);border:1px solid rgba(201,154,53,.35);margin-top:.7rem}.auth-tab{color:rgba(255,255,255,.65)}.auth-tab.active{background:linear-gradient(135deg,var(--matondi-gold-light),var(--matondi-gold));color:#18120a}
.auth-body{background:transparent;color:#fff}.auth-body .step-title{color:var(--matondi-gold-light)}.auth-body .step-sub,.auth-body .field-hint,.auth-body .checkbox-label{color:rgba(255,255,255,.62)}.auth-body .field label{color:var(--matondi-gold-light)}
.auth-body .field input,.auth-body .field select,.auth-body .field textarea{background:rgba(255,255,255,.045);border-color:rgba(201,154,53,.36);color:#fff}.auth-body .field input::placeholder,.auth-body textarea::placeholder{color:rgba(255,255,255,.35)}
.auth-body .age-notice{background:rgba(201,154,53,.08);border-color:rgba(201,154,53,.3)}.auth-body .age-notice p,.auth-body .age-notice i{color:var(--matondi-gold-light)}
.step-dot{background:rgba(255,255,255,.16)}.step-dot.active{background:var(--matondi-gold-light)}

/* Découvrir — carte photo immersive */
#screen-discover{background:#fff}.card-stack{margin:.7rem 1rem 0;height:535px}.profile-card{border-radius:25px;border:1px solid var(--matondi-border);box-shadow:var(--matondi-shadow);background:#fff}
.card-photo{height:365px;background:var(--matondi-black)!important}.card-img{object-fit:cover!important}.card-photo::after{content:"";position:absolute;inset:42% 0 0;background:linear-gradient(transparent,rgba(0,0,0,.76));pointer-events:none}
.card-verified{z-index:4;top:13px;right:13px;background:rgba(9,8,6,.68);color:#fff;border:1px solid rgba(241,200,102,.35);backdrop-filter:blur(8px)}.card-verified i{color:var(--matondi-pink)}.card-media-tags{z-index:4;bottom:12px}.media-tag{background:rgba(9,8,6,.68);backdrop-filter:blur(7px)}
.card-body{padding:1rem 1.15rem 1.1rem}.card-name{font-size:1.7rem;color:var(--matondi-text)}.card-age{font-weight:600;color:var(--matondi-gold-dark)}.card-meta span{color:var(--matondi-muted)}.card-bio{color:#4c4742}.interest-tag{background:#fff;border:1px solid rgba(201,154,53,.28);color:var(--matondi-gold-dark);padding:5px 10px}
.action-bar{gap:.45rem;padding:.7rem .65rem 0}.act-btn{box-shadow:var(--matondi-shadow-sm);border-color:var(--matondi-border);background:#fff}.act-like{background:var(--matondi-pink);color:#fff;border-color:var(--matondi-pink)}.act-super{color:#d6930f;background:#fff8e8}.act-diamond{color:#2489df;background:#eef7ff}.act-nope{color:var(--matondi-pink);border-color:rgba(239,47,103,.2)}.swipe-hint{color:#9a938d}
#stories-barre-wrap{background:#fff;border-bottom:1px solid #f2efeb}

/* Messages — référence adoptée */
#screen-messages{background:#fff}.messages-page-head{display:flex;justify-content:space-between;align-items:center;padding:1.05rem 1.15rem .2rem}.messages-page-head h1{font:700 1.85rem var(--fd);color:var(--matondi-text)}.messages-page-head p{font-size:11px;color:var(--matondi-muted);margin-top:2px}.messages-compose{width:40px;height:40px;border-radius:50%;border:1px solid rgba(201,154,53,.3);background:#fff;color:var(--matondi-gold-dark);box-shadow:var(--matondi-shadow-sm)}
.section-title{padding:.75rem 1.15rem .25rem;font-size:1.12rem;color:var(--matondi-text)}.matches-row{padding:.45rem 1.15rem .8rem;gap:14px}.match-av{width:58px;height:58px;border-color:var(--matondi-gold);box-shadow:0 0 0 3px rgba(201,154,53,.09)}.match-av.online::after,.conv-av.online::after{border-color:#fff;background:var(--matondi-green)}.match-nm{color:var(--matondi-text)}
.search-wrap{padding:.45rem 1.15rem .3rem}.search-field input{background:#f7f7f7;border-color:#e9e6e2;padding:.7rem 1rem .7rem 2.35rem}.search-field input:focus{background:#fff;border-color:var(--matondi-gold)}
#conv-list{padding:.15rem .75rem 1rem}.conv-swipe-wrap{border-radius:17px;margin:.25rem 0}.conv-item{padding:.78rem .75rem;border-radius:17px;background:#fff!important;border:1px solid transparent}.conv-item:hover{background:#fafafa!important;border-color:#eee}.conv-av{width:52px;height:52px}.conv-name{font-weight:600;color:var(--matondi-text)}.conv-preview{color:#948e88}.conv-preview.unread{color:#3f3934;font-weight:600}.unread-dot{background:var(--matondi-pink);box-shadow:0 0 0 4px var(--matondi-pink-soft)}

/* Conversation ouverte */
#chat-view{background:#fff}.chat-header{min-height:76px;padding:.72rem .8rem;background:var(--matondi-black);border-bottom:1px solid rgba(201,154,53,.2);color:#fff}.chat-header .back-btn,.chat-header .icon-btn{color:var(--matondi-gold-light);background:rgba(255,255,255,.04)}.chat-av{width:44px;height:44px;border:2px solid var(--matondi-gold)}.chat-pname{color:#fff;font-weight:600}.chat-pstatus{color:#79d89b}.chat-pstatus.away{color:rgba(255,255,255,.55)}.chat-messages{background:#fff;padding:1rem;gap:9px}.msg-wrap.them .msg-bubble{background:#f2f2f2!important;color:#17130f!important;border-radius:18px 18px 18px 5px!important}.msg-wrap.me .msg-bubble{background:linear-gradient(135deg,var(--matondi-gold-light),var(--matondi-gold))!important;color:#18120a!important;border-radius:18px 18px 5px 18px!important}.chat-input-zone{background:#fff;border-top:1px solid #ece8e2;padding:.65rem .75rem}.chat-input-zone textarea{background:#f6f6f6;border-color:#e9e6e2;padding-right:5.6rem}.chat-input-zone textarea:focus{background:#fff;border-color:var(--matondi-gold)}.send-btn{background:linear-gradient(135deg,var(--matondi-gold-light),var(--matondi-gold))!important;color:#17120b!important}.attach-toggle,.chat-mic-btn{color:var(--matondi-gold-dark)!important}.attach-menu{border:1px solid var(--matondi-border);box-shadow:var(--matondi-shadow);border-radius:16px!important;background:#fff!important}.attach-opt:hover{background:#faf7f0!important}.chat-more-menu{position:absolute;right:.65rem;top:64px;width:245px;background:#fff;border:1px solid var(--matondi-border);border-radius:17px;box-shadow:var(--matondi-shadow);z-index:80;overflow:hidden}.chat-more-menu[hidden]{display:none}.chat-more-item{display:flex;align-items:center;gap:10px;width:100%;padding:.78rem .9rem;border:0;border-bottom:1px solid #f0ede9;background:#fff;text-align:left;color:#332e29;font-size:13px}.chat-more-item:last-child{border-bottom:0}.chat-more-item i{width:18px;color:var(--matondi-gold-dark)}.chat-more-item.danger{color:var(--matondi-red)}.chat-more-item.danger i{color:var(--matondi-red)}

/* Vérification */
#screen-verify{background:#fff}.verify-hero{margin:1rem 1rem .2rem;padding:1.25rem;background:radial-gradient(circle at 90% 0,rgba(201,154,53,.18),transparent 38%),var(--matondi-black);border:1px solid rgba(201,154,53,.18);border-radius:22px;color:#fff}.verify-hero h2{color:var(--matondi-gold-light);font-size:1.65rem}.verify-hero p{color:rgba(255,255,255,.68)}#vp-badge{border:1px solid rgba(255,255,255,.12)}#vp-badge-desc{color:rgba(255,255,255,.55)!important}.verify-list{padding:.9rem 1rem;gap:.75rem}.verify-card{border-radius:18px;border-color:var(--matondi-border);box-shadow:var(--matondi-shadow-sm);padding:1rem}.verify-card.done{background:#f8fff9;border-color:rgba(46,155,89,.25)}.v-label{font-weight:700;color:var(--matondi-text)}.v-arrow{color:var(--matondi-gold-dark)}.media-section{margin:0 1rem 1.5rem;border-radius:20px;box-shadow:var(--matondi-shadow-sm);border-color:var(--matondi-border)}.media-slot{background:#fafafa;border-color:#ddd5ca}.media-slot:hover{background:#fff9ec;border-color:var(--matondi-gold)}

/* Événements */
#screen-evenements{background:#fff}.events-shell{padding:1rem}.events-head{margin-bottom:.9rem}.events-head h2{font:700 1.85rem var(--fd);color:var(--matondi-text)}.events-head p{font-size:12px;color:var(--matondi-muted);margin-top:2px}.events-tabs{display:flex;gap:7px;overflow:auto;padding:.2rem 0 .8rem;scrollbar-width:none}.events-tabs span{white-space:nowrap;padding:6px 12px;border-radius:999px;border:1px solid #e5e1dc;font-size:11px;color:#777}.events-tabs span.active{background:var(--matondi-black);color:var(--matondi-gold-light);border-color:var(--matondi-black)}.event-card{background:#fff;border:1px solid var(--matondi-border);border-radius:22px;overflow:hidden;box-shadow:var(--matondi-shadow-sm);margin-bottom:1rem}.event-visual{height:155px;background:linear-gradient(135deg,#211a14,#5c452d);position:relative;overflow:hidden}.event-visual img{width:100%;height:100%;object-fit:cover}.event-visual::after{content:"";position:absolute;inset:0;background:linear-gradient(transparent,rgba(0,0,0,.35))}.event-date-badge{position:absolute;z-index:2;left:12px;top:12px;width:52px;background:#fff;border-radius:13px;text-align:center;padding:7px 3px;box-shadow:0 5px 20px rgba(0,0,0,.18)}.event-date-badge strong{display:block;font-size:18px;color:var(--matondi-pink);line-height:1}.event-date-badge span{font-size:9px;text-transform:uppercase;color:#777}.event-body{padding:1rem}.event-title-row{display:flex;justify-content:space-between;gap:10px}.event-title{font:700 1.18rem var(--fd);color:var(--matondi-text)}.event-price{font-weight:700;color:var(--matondi-gold-dark);white-space:nowrap}.event-meta,.event-location{font-size:12px;color:var(--matondi-muted);margin-top:6px;line-height:1.5}.event-description{font-size:12.5px;color:#5d5751;line-height:1.6;margin-top:.65rem}.event-actions{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:.85rem}.event-members{font-size:11px;color:#8d8680}.event-btn{border:0;border-radius:999px;padding:.62rem 1rem;background:linear-gradient(135deg,var(--matondi-gold-light),var(--matondi-gold));color:#18120a;font-size:12px;font-weight:700}.event-btn.registered{background:#edf8f0;color:var(--matondi-green)}.event-btn:disabled{background:#eee;color:#999}

/* Profil — dernière référence adoptée, sans bloc vérification */
#screen-profile{background:#fff}.profile-hero{padding:1.55rem 1.25rem 1.25rem;background:radial-gradient(circle at 50% 0,rgba(201,154,53,.13),transparent 40%),var(--matondi-black);border-bottom:1px solid rgba(201,154,53,.18)}.my-avatar{width:96px;height:96px;border-color:var(--matondi-gold-light);box-shadow:0 0 0 5px rgba(201,154,53,.08)}.verified-ring{background:var(--matondi-pink);border-color:var(--matondi-black)}.my-name{color:#fff;font-size:1.95rem}.my-meta{color:rgba(255,255,255,.58)}.complete-label{color:rgba(255,255,255,.6)}.pc-track{height:5px}.pc-fill{background:linear-gradient(90deg,var(--matondi-gold),var(--matondi-gold-light))}.profile-body{padding:1rem 1rem 2rem;background:#fff}.premium-card{background:linear-gradient(135deg,#1b1712,#342817);border:1px solid rgba(201,154,53,.32);box-shadow:var(--matondi-shadow-sm)}.prem-text h4{color:var(--matondi-gold-light)}
#profile-body>div[id$="-section"]{padding:0 0 .65rem!important}#profile-body>div[id$="-section"]>div{background:#fff!important;border:1px solid var(--matondi-border)!important;border-radius:18px!important;box-shadow:var(--matondi-shadow-sm)!important;color:var(--matondi-text)!important;padding:1rem!important}#profile-body>div[id$="-section"]>div>span{width:42px;height:42px;border-radius:13px;display:flex;align-items:center;justify-content:center;background:var(--matondi-black);font-size:1.15rem!important}#profile-body>div[id$="-section"]>div>div:nth-of-type(1)>div:first-child{color:var(--matondi-text)!important;font-weight:700!important}#profile-body>div[id$="-section"]>div>div:nth-of-type(1)>div:nth-child(2){color:var(--matondi-muted)!important}#profile-body>div[id$="-section"]>div>div:last-child{background:#fff7e8!important;color:var(--matondi-gold-dark)!important;border:1px solid rgba(201,154,53,.24)!important}
.prof-section-title{color:#817970;font-weight:700}.prof-card{border-color:var(--matondi-border);border-radius:18px;box-shadow:var(--matondi-shadow-sm)}.prof-row{border-color:#f0ede9;padding:.78rem 1rem}.prof-link{color:var(--matondi-gold-dark)}.danger-zone{background:#fff6f6;border-color:#f2cccc}

/* Modals / recherches */
.modal-overlay{background:rgba(0,0,0,.58);backdrop-filter:blur(5px)}.modal-sheet{background:#fff;border-radius:26px 26px 0 0;box-shadow:0 -20px 60px rgba(0,0,0,.2)}.modal-title{color:var(--matondi-text);font-size:1.5rem}.modal-close{background:#f3f3f3;color:#555}.modal-handle{background:#d8d4cf}

/* Appels */
.call-screen{position:fixed;inset:0;z-index:5000;background:radial-gradient(circle at 50% 20%,rgba(201,154,53,.16),transparent 32%),#090806;color:#fff;display:flex;flex-direction:column;align-items:center;justify-content:space-between;padding:2.4rem 1.2rem 2rem;text-align:center}.call-avatar{width:122px;height:122px;border-radius:50%;border:3px solid var(--matondi-gold);box-shadow:0 0 0 8px rgba(201,154,53,.07),0 18px 50px rgba(0,0,0,.35);display:flex;align-items:center;justify-content:center;overflow:hidden;font:700 2.2rem var(--fd)}.call-avatar img{width:100%;height:100%;object-fit:cover}.call-name{font:700 1.65rem var(--fd);margin-top:1rem}.call-status{font-size:12px;color:rgba(255,255,255,.62);margin-top:4px}.call-encrypted{font-size:10px;color:rgba(255,255,255,.42);margin-top:8px}.call-controls{display:flex;align-items:center;justify-content:center;gap:13px}.call-control{width:56px;height:56px;border-radius:50%;border:1px solid rgba(255,255,255,.12);background:rgba(255,255,255,.09);color:#fff;font-size:17px}.call-control.end{width:66px;height:66px;background:var(--matondi-red);border-color:var(--matondi-red)}.call-control.active-off{background:var(--matondi-red)!important}.call-video-remote{position:absolute;inset:0;background:#000}.call-video-local{position:absolute;top:86px;right:14px;width:104px;height:145px;border-radius:18px;overflow:hidden;background:#222;z-index:4;border:2px solid rgba(255,255,255,.88);box-shadow:0 12px 32px rgba(0,0,0,.36);touch-action:none;cursor:grab}.call-video-local.dragging{cursor:grabbing}.call-video-meta{position:absolute;left:0;right:0;top:0;z-index:3;padding:1.1rem;background:linear-gradient(rgba(0,0,0,.65),transparent);text-align:left}.call-video-controls{position:absolute;left:0;right:0;bottom:0;z-index:3;padding:1.3rem 1rem 1.8rem;background:linear-gradient(transparent,rgba(0,0,0,.76));display:flex;justify-content:center;gap:12px}.call-more-menu{position:absolute;right:14px;bottom:92px;width:240px;background:#fff;color:#2a2520;border-radius:17px;overflow:hidden;box-shadow:var(--matondi-shadow);z-index:8;text-align:left}.call-more-menu[hidden]{display:none}.call-more-menu button{display:flex;width:100%;gap:10px;align-items:center;padding:.75rem .9rem;border:0;border-bottom:1px solid #eee;background:#fff;color:#302b26}.call-more-menu button:last-child{border-bottom:0}.call-more-menu button i{width:18px;color:var(--matondi-gold-dark)}

@media(max-width:350px){.nav-item{min-width:51px;padding-inline:3px;font-size:8px}.nav-item i{font-size:19px}.card-stack{margin-inline:.6rem}.action-bar{gap:.25rem}.act-btn{transform:scale(.92)}}


/* ========================================================================
   MATONDI — RÉFÉRENCES VISUELLES ADOPTÉES (2026-08-16)
   Écrans réels alignés sur les maquettes validées avec l'utilisateur.
   ======================================================================== */

/* AUTH / INSCRIPTION — 2e écran seulement.
   IMPORTANT : le splash initial conserve /icons/splash-bg.jpg, inchangé. */
#screen-auth {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(5,4,3,.30) 0%, rgba(5,4,3,.68) 25%, rgba(5,4,3,.92) 56%, rgba(5,4,3,.98) 100%),
    url('/icons/auth-bg-couple.jpg') center top / cover no-repeat;
  color: #fff;
}
#screen-auth::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(circle at 50% 28%, transparent 0 20%, rgba(0,0,0,.18) 52%, rgba(0,0,0,.45) 100%);
  pointer-events: none;
}
#screen-auth .auth-header {
  padding: 1.3rem 1.25rem .65rem;
  background: transparent;
  text-shadow: 0 2px 12px rgba(0,0,0,.65);
}
#screen-auth .auth-header img { height: 4.25rem!important; filter: drop-shadow(0 5px 18px rgba(0,0,0,.45)); }
#screen-auth .auth-sub { color: rgba(255,255,255,.88); font-size: 13px; letter-spacing: .04em; }
#screen-auth .auth-tabs {
  margin: .55rem 1.15rem 0;
  padding: 4px;
  border: 1px solid rgba(241,200,102,.58);
  background: rgba(6,5,4,.45);
  backdrop-filter: blur(12px);
  box-shadow: 0 9px 25px rgba(0,0,0,.20);
}
#screen-auth .auth-tab { color: rgba(255,255,255,.85); min-height: 48px; font-size: 14px; }
#screen-auth .auth-tab.active {
  background: linear-gradient(135deg, #f4d071, #c9942d);
  color: #17110a;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.40), 0 3px 16px rgba(201,154,53,.25);
}
#screen-auth .auth-body {
  padding: 1rem 1.15rem 2rem;
  background: linear-gradient(180deg, rgba(5,4,3,.08), rgba(5,4,3,.56) 8%, rgba(5,4,3,.90) 28%, rgba(5,4,3,.97) 100%);
  min-height: 62vh;
}
#screen-auth .auth-body .field label { color: #f0c967; font-weight: 600; letter-spacing: .06em; }
#screen-auth .auth-body .field input,
#screen-auth .auth-body .field select,
#screen-auth .auth-body .field textarea {
  min-height: 48px;
  background: rgba(10,8,6,.68);
  border: 1px solid rgba(201,154,53,.55);
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.03);
}
#screen-auth .auth-body .field input::placeholder,
#screen-auth .auth-body textarea::placeholder { color: rgba(255,255,255,.46); }
#screen-auth .auth-body .btn-gold,
#screen-auth #login-btn {
  min-height: 54px;
  color: #17110a;
  background: linear-gradient(135deg, #f6d879 0%, #c8902a 100%);
  border: 1px solid #f6d879;
  box-shadow: 0 8px 24px rgba(201,154,53,.34), inset 0 0 0 1px rgba(255,255,255,.35);
}
#screen-auth .age-notice { background: rgba(12,10,8,.65)!important; border: 1px solid rgba(201,154,53,.45)!important; backdrop-filter: blur(8px); }
#screen-auth a { color: #f0c967; }

/* DÉCOUVRIR — maquette adoptée : Stories + photo immersive + fiche blanche. */
#screen-discover {
  --discover-media-height: clamp(360px, calc(100svh - 282px), 480px);
  --discover-media-height: clamp(360px, calc(100dvh - 282px), 480px);
  background: #fff;
  padding-bottom: 168px;
}
#stories-barre-wrap {
  position: sticky;
  top: 0;
  z-index: 70;
  background: #fff;
  border-bottom: 0;
  padding: .42rem 0 .08rem;
  overflow: hidden;
  box-shadow: 0 5px 14px rgba(0,0,0,.035);
}
.discover-stories-title {
  padding: 0 1.05rem .28rem;
  font-size: .96rem;
  font-weight: 700;
  color: #191613;
}
#stories-barre {
  display: flex;
  gap: 12px;
  min-height: 73px;
  align-items: flex-start;
  padding: 0 1.05rem .18rem;
  overflow-x: auto;
  scrollbar-width: none;
}
#stories-barre::-webkit-scrollbar { display:none; }
.stories-loading { font-size: 12px; color: #999; padding: .5rem 0; }
.story-item { gap: 3px; }
.story-avatar { width: 54px; height: 54px; background:#fff; }
.story-new { padding: 2px; border: 0; box-shadow: 0 0 0 2px #c99a35; }
.story-seen { border: 1.5px solid #e5ded4; }
.story-add { border: 1.5px dashed #d6b870; background:#fff; }
.story-add i { color:#b38632!important; font-size:1.65rem!important; }
.story-nom { max-width: 60px; font-size: 9.5px; color:#4f4944; }

#screen-discover .card-stack {
  margin: .25rem .85rem 0;
  height: calc(var(--discover-media-height) + 105px);
}
#screen-discover .profile-card {
  overflow: visible;
  border: 0;
  border-radius: 25px;
  background: transparent;
  box-shadow: none;
}
.discover-profile-media {
  position: relative;
  height: var(--discover-media-height);
  overflow: hidden;
  border-radius: 25px 25px 15px 15px;
  background: #15110d;
  box-shadow: 0 12px 34px rgba(0,0,0,.16);
}
.discover-profile-img {
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  z-index:1;
  object-fit: contain!important;
  object-position: center center;
}
.discover-profile-bg {
  position:absolute;
  inset:-18px;
  width:calc(100% + 36px);
  height:calc(100% + 36px);
  object-fit:cover;
  object-position:center;
  filter:blur(18px) brightness(.66) saturate(.88);
  transform:scale(1.06);
  pointer-events:none;
}
.discover-profile-initials { position:absolute; inset:0; width:100%; height:100%; border-radius:0; font-size:4rem; }
.discover-photo-shade {
  position:absolute;
  inset:38% 0 0;
  z-index:1;
  background:linear-gradient(180deg, transparent 0%, rgba(0,0,0,.18) 25%, rgba(0,0,0,.84) 100%);
}
.discover-favorite-btn {
  position:absolute!important;
  z-index:4;
  top:14px!important;
  left:14px!important;
  width:42px!important;
  height:42px!important;
  border-radius:50%!important;
  border:1px solid rgba(255,255,255,.18)!important;
  background:rgba(8,7,6,.62)!important;
  display:flex;
  align-items:center;
  justify-content:center;
  backdrop-filter:blur(8px);
  cursor:pointer;
}
.discover-new-badge {
  position:absolute;
  z-index:4;
  top:14px;
  right:14px;
  display:flex;
  gap:6px;
  align-items:center;
  padding:8px 12px;
  border-radius:999px;
  color:#fff;
  background:rgba(9,8,6,.66);
  border:1px solid rgba(255,255,255,.14);
  backdrop-filter:blur(9px);
  font-size:11px;
  font-weight:600;
}
.discover-new-badge i { color:#f1c866; }
.discover-profile-overlay {
  position:absolute;
  z-index:3;
  left:20px;
  right:20px;
  bottom:75px;
  color:#fff;
  text-shadow:0 2px 12px rgba(0,0,0,.55);
}
.discover-name-line { display:flex; align-items:center; gap:8px; }
.discover-name { font-family:var(--fd); font-size:2.05rem; line-height:1; font-weight:700; }
.discover-check { color:#ef2f67; font-size:1.05rem; filter:drop-shadow(0 2px 5px rgba(0,0,0,.4)); }
.discover-age { margin-top:8px; font-size:1.05rem; font-weight:600; }
.discover-location { margin-top:8px; font-size:12.5px; display:flex; align-items:center; gap:6px; }
.discover-location i { color:#d5a83e; }
.discover-compat {
  margin-top:9px;
  color:#ef2f67;
  font-size:13px;
  font-weight:700;
  text-shadow:0 2px 8px rgba(0,0,0,.7);
}
.discover-compat i { color:#d8a83d; margin-right:5px; }
.discover-profile-sheet {
  position:absolute;
  z-index:5;
  left:8px;
  right:8px;
  top:calc(var(--discover-media-height) - 30px);
  min-height:132px;
  padding:16px 17px 11px;
  border-radius:23px;
  background:#fff;
  border:1px solid #eee9e3;
  box-shadow:0 10px 28px rgba(0,0,0,.11);
}
.discover-bio { display:flex; gap:10px; color:#69625c; font-size:12.5px; line-height:1.55; }
.discover-bio i { color:#ef2f67; font-size:1rem; margin-top:2px; }
.discover-bio span { display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.discover-interests { display:flex; flex-wrap:wrap; gap:6px; margin-top:12px; }
.discover-interests .interest-tag {
  padding:6px 10px;
  border:1px solid rgba(201,154,53,.28);
  border-radius:999px;
  background:#fff;
  color:#8f681d;
  font-size:10.5px;
}
.discover-sheet-handle { text-align:center; height:16px; margin-top:2px; color:#cfb783; font-size:13px; }
#screen-discover .swipe-hint { display:none; }
.discover-action-bar {
  display:grid;
  grid-template-columns:repeat(6, minmax(0,1fr));
  align-items:start;
  gap:3px;
  position:fixed;
  left:50%;
  bottom:70px;
  transform:translateX(-50%);
  z-index:80;
  width:100%;
  max-width:430px;
  padding:.55rem .55rem .35rem;
  overflow:visible;
  background:rgba(255,255,255,.98);
  border-top:1px solid #eee9e3;
  box-shadow:0 -8px 24px rgba(0,0,0,.08);
  backdrop-filter:blur(10px);
  -webkit-backdrop-filter:blur(10px);
}
.discover-action-item { min-width:0; display:flex; flex-direction:column; align-items:center; gap:7px; }
.discover-action-item > span { font-size:8.5px; line-height:1.05; color:#4f4944; text-align:center; white-space:normal; }
.discover-action-item .act-btn { width:46px; height:46px; flex:none; }
.discover-action-item .act-like { width:56px; height:56px; background:#ef2f67!important; color:#fff!important; border-color:#ef2f67!important; font-size:21px; box-shadow:0 10px 20px rgba(239,47,103,.25); }
.discover-action-item .act-diamond { width:50px; height:50px; color:#1787e6; background:#eef7ff; border-color:#b6dcfb; }
.discover-action-item .act-super { width:50px; height:50px; color:#f1a70d; background:#fffaf0; border-color:#f0dcae; }
.discover-action-item .act-nope { color:#ef647e; background:#fff8f9; border-color:#f5cfd7; }
.discover-action-item .act-info { color:#777; background:#fafafa; border-color:#e9e9e9; }
.discover-action-item .act-rewind { color:#8c54d8; background:#faf6ff; border-color:#e2d3f7; }

/* MESSAGES — rapprochement strict de la maquette adoptée. */
.messages-page-head { padding:1.05rem 1.15rem .55rem; border-bottom:1px solid #f1eee9; }
.messages-page-head h1 { font-family:var(--fb); font-size:1.75rem; font-weight:800; }
.messages-page-head p { font-size:11.5px; color:#777; display:flex; align-items:center; gap:8px; }
.messages-summary-dot { display:inline-block; width:7px; height:7px; border-radius:50%; background:#ef2f67; }
#screen-messages .section-title { font-family:var(--fb); font-size:1rem; font-weight:800; padding:.85rem 1.15rem .35rem; }
#screen-messages .section-title.sm { display:none; }
#screen-messages .matches-row { padding:.35rem 1.15rem .9rem; gap:14px; }
#screen-messages .match-av { width:58px; height:58px; box-shadow:0 0 0 2px #c99a35; border:2px solid #fff; }
#screen-messages .search-wrap { padding:.3rem 1.15rem .45rem; }
#screen-messages .search-field input { min-height:48px; border-radius:999px; background:#fff; border:1px solid #e9e5e0; }
#screen-messages #conv-list { margin:0 1rem 1rem; padding:0; border:1px solid #ebe7e2; border-radius:22px; overflow:hidden; }
#screen-messages .conv-swipe-wrap { margin:0; border-radius:0; }
#screen-messages .conv-item { border-radius:0; border:0; border-bottom:1px solid #eeeae5; padding:.72rem .85rem; }
#screen-messages .conv-swipe-wrap:last-child .conv-item { border-bottom:0; }
#screen-messages .unread-dot { width:22px; height:22px; border-radius:50%; display:flex; align-items:center; justify-content:center; box-shadow:none; }

/* CHAT — maquette adoptée : header noir, blanc pur, or/rose. */
.chat-header { position:relative; }
.chat-pname::after { content:""; }
.chat-more-menu { top:68px; right:10px; width:255px; }
.chat-more-item { min-height:46px; }
.chat-more-item i { color:#111; }
.chat-more-item.danger, .chat-more-item.danger i { color:#e33253; }
/* Mise en page réelle (4 éléments : sablier, +, champ+micro, envoi) définie
   plus bas par #chat-view .chat-input-zone — l'ancienne grille à 5 colonnes
   qui vivait ici supposait un #chat-mic-btn en cellule de grille séparée, ce
   qui n'a jamais correspondu au HTML réel (le micro est imbriqué DANS .iw,
   positionné en absolute par-dessus le champ, voir #chat-view .chat-mic-btn
   plus bas). Retirée : elle ne faisait plus que semer la confusion. */
.chat-input-zone #send-btn { grid-column:5; grid-row:1; width:50px; height:50px; border-radius:50%; }
.chat-input-zone textarea { padding-right:45px!important; min-height:46px; border-radius:999px!important; }
.chat-input-zone .attach-menu { bottom:66px; }

@media (max-width:350px) {
  #screen-discover { --discover-media-height: clamp(345px, calc(100svh - 272px), 445px); }
  #screen-discover { --discover-media-height: clamp(345px, calc(100dvh - 272px), 445px); }
  #screen-discover .card-stack { margin-inline:.55rem; }
  .discover-action-item .act-btn { transform:scale(.9); }
  .discover-action-item > span { font-size:7.5px; }
}


/* ========================================================================
   AUTH V3 — RÉFÉRENCE CONNEXION ADOPTÉE
   La photo /icons/auth-bg-couple-v2.jpg est uniquement utilisée sur l'écran
   Connexion / Inscription. Le splash d'accueil reste inchangé.
   ======================================================================== */
#screen-auth {
  position: relative;
  isolation: isolate;
  overflow-x: hidden;
  min-height: 100svh;
  padding-bottom: 0;
  background: #070604 !important;
  color: #fff;
}

#screen-auth .auth-bg-photo {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: -3;
  width: 100%;
  height: min(61svh, 610px);
  object-fit: cover;
  object-position: center 18%;
  display: block;
  pointer-events: none;
  user-select: none;
}

#screen-auth .auth-bg-overlay {
  position: absolute;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    linear-gradient(180deg,
      rgba(3,3,2,.12) 0%,
      rgba(3,3,2,.18) 18%,
      rgba(3,3,2,.40) 31%,
      rgba(5,4,3,.78) 48%,
      rgba(7,6,4,.96) 61%,
      #070604 72%,
      #070604 100%);
}

#screen-auth::after {
  content: none !important;
}

#screen-auth .auth-header {
  position: relative;
  z-index: 1;
  padding: clamp(3.6rem, 13svh, 7rem) 1.2rem .55rem;
  min-height: 235px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  background: transparent !important;
  text-align: center;
}

#screen-auth .auth-logo {
  width: 100%;
  display: flex;
  justify-content: center;
  margin: 0 0 .3rem;
}

#screen-auth .auth-header .auth-logo img {
  width: min(48vw, 190px) !important;
  height: auto !important;
  max-height: none !important;
  filter: drop-shadow(0 6px 18px rgba(0,0,0,.62));
}

#screen-auth .auth-sub {
  margin-top: .2rem;
  color: rgba(255,255,255,.93) !important;
  font-size: 14px !important;
  font-weight: 500;
  letter-spacing: .035em !important;
  text-shadow: 0 2px 10px rgba(0,0,0,.75);
}

#screen-auth .auth-tabs {
  position: relative;
  z-index: 2;
  margin: .42rem 1.15rem 0;
  padding: 4px;
  min-height: 56px;
  display: flex;
  border: 1px solid rgba(231,178,55,.72) !important;
  border-radius: 999px !important;
  background: rgba(8,7,5,.64) !important;
  backdrop-filter: blur(12px);
  box-shadow: 0 12px 35px rgba(0,0,0,.30), inset 0 0 0 1px rgba(255,255,255,.02);
}

#screen-auth .auth-tab {
  flex: 1;
  min-height: 48px !important;
  border-radius: 999px !important;
  color: rgba(255,255,255,.88) !important;
  font-size: 14px !important;
  font-weight: 600;
  letter-spacing: .025em;
}

#screen-auth .auth-tab.active {
  color: #111 !important;
  background: linear-gradient(135deg, #f8d675 0%, #d39b30 100%) !important;
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.36),
    0 5px 18px rgba(205,151,43,.34) !important;
}

#screen-auth .auth-body {
  position: relative;
  z-index: 2;
  padding: 1.15rem 1.15rem max(2rem, env(safe-area-inset-bottom));
  min-height: 55svh;
  background: transparent !important;
}

#screen-auth .auth-login-panel {
  width: 100%;
  max-width: 390px;
  margin: 0 auto;
}

#screen-auth .auth-body .field {
  margin-bottom: 1rem;
}

#screen-auth .auth-body .field label {
  display: block;
  margin-bottom: .52rem;
  color: #f4c85e !important;
  font-size: 12px;
  font-weight: 700 !important;
  letter-spacing: .075em !important;
  text-transform: uppercase;
}

#screen-auth .auth-input-shell {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

#screen-auth .auth-input-shell .auth-field-icon {
  position: absolute;
  left: 15px;
  z-index: 2;
  color: #efbd49;
  font-size: 17px;
  pointer-events: none;
}

#screen-auth .auth-input-shell input {
  width: 100%;
  min-height: 56px !important;
  padding: 0 48px 0 46px !important;
  border: 1px solid rgba(197,145,38,.68) !important;
  border-radius: 13px !important;
  background: rgba(9,8,6,.77) !important;
  color: #fff !important;
  font-size: 14px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.025) !important;
}

#screen-auth .auth-input-shell input:focus {
  border-color: #efbd49 !important;
  box-shadow: 0 0 0 3px rgba(239,189,73,.11) !important;
}

#screen-auth .auth-input-shell input::placeholder {
  color: rgba(255,255,255,.40) !important;
}

#screen-auth .auth-password-toggle {
  position: absolute;
  right: 8px;
  z-index: 3;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #efbd49;
  font-size: 18px;
  cursor: pointer;
}

#screen-auth .auth-password-toggle:active {
  transform: scale(.94);
}

#screen-auth .auth-forgot-row {
  display: flex;
  justify-content: flex-end;
  margin: -.25rem 0 1rem;
}

#screen-auth .auth-forgot-row a {
  color: #e4b652 !important;
  font-size: 12px;
  text-decoration: none;
}

#screen-auth .auth-login-main {
  min-height: 56px !important;
  border-radius: 999px !important;
  color: #14100a !important;
  font-size: 16px;
  font-weight: 700;
  background: linear-gradient(135deg, #f8d675 0%, #d49c31 100%) !important;
  border: 1px solid #f6d275 !important;
  box-shadow:
    0 8px 26px rgba(197,145,38,.28),
    inset 0 0 0 1px rgba(255,255,255,.30) !important;
}

#screen-auth .auth-login-main i {
  font-size: 17px;
}

#screen-auth .auth-or {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 1.15rem 0 1rem;
  color: rgba(255,255,255,.66);
  font-size: 12px;
}

#screen-auth .auth-or::before,
#screen-auth .auth-or::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201,154,53,.50));
}

#screen-auth .auth-or::after {
  background: linear-gradient(90deg, rgba(201,154,53,.50), transparent);
}

#screen-auth .auth-social-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

#screen-auth .auth-social-btn {
  min-height: 48px;
  padding: .55rem .7rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid rgba(220,164,52,.66);
  border-radius: 999px;
  background: rgba(8,7,5,.72);
  color: #fff;
  font-size: 11px;
  line-height: 1.15;
}

#screen-auth .auth-social-btn:disabled {
  opacity: 1;
  cursor: not-allowed;
}

#screen-auth .auth-social-btn .fa-google {
  color: #fff;
  filter: drop-shadow(0 0 1px #4285f4);
}

#screen-auth .auth-social-btn .fa-facebook-f {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #1877f2;
  color: #fff;
}

#screen-auth .auth-demo-account {
  margin-top: 1.25rem;
  padding-bottom: .5rem;
  text-align: center;
  color: rgba(255,255,255,.58);
  font-size: 11px;
  line-height: 1.45;
}

#screen-auth .auth-demo-account strong {
  color: #e6bd69;
  font-weight: 600;
}

/* Inscription : mêmes fond/photo et langage premium, sans modifier la logique. */
#screen-auth .step-title {
  color: #fff !important;
}
#screen-auth .step-sub,
#screen-auth .field-hint,
#screen-auth .checkbox-label {
  color: rgba(255,255,255,.66) !important;
}
#screen-auth .age-notice {
  background: rgba(9,8,6,.74) !important;
  border: 1px solid rgba(201,154,53,.42) !important;
  color: #fff;
  backdrop-filter: blur(10px);
}
#screen-auth .age-notice p,
#screen-auth .age-notice i {
  color: #f1c45d !important;
}
#screen-auth .auth-body select,
#screen-auth .auth-body textarea,
#screen-auth .auth-body > .field input,
#screen-auth .field-row input {
  min-height: 52px;
  background: rgba(9,8,6,.78) !important;
  border: 1px solid rgba(201,154,53,.55) !important;
  color: #fff !important;
}
#screen-auth .auth-body select option {
  color: #111;
  background: #fff;
}

@media (max-width: 360px) {
  #screen-auth .auth-header {
    min-height: 215px;
    padding-top: 3.2rem;
  }
  #screen-auth .auth-header .auth-logo img {
    width: min(46vw, 165px) !important;
  }
  #screen-auth .auth-social-row {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 431px) {
  #screen-auth .auth-bg-photo {
    height: 620px;
  }
}

/* ========================================================================
   MATONDI — CONVERSATION OUVERTE V2 (référence adoptée)
   Header noir/or, bulles premium et compositeur compact sur une seule ligne.
   ======================================================================== */
#chat-view {
  background: #fff;
  overflow: hidden;
}
#chat-view .chat-header {
  position: relative;
  flex: 0 0 auto;
  min-height: 78px;
  padding: .72rem .78rem;
  gap: 9px;
  background: #070706;
  border-bottom: 1px solid rgba(201,154,53,.24);
  box-shadow: 0 6px 18px rgba(0,0,0,.12);
  z-index: 30;
}
#chat-view .back-btn {
  width: 38px;
  height: 38px;
  color: var(--matondi-gold-light);
  background: transparent;
  font-size: 20px;
}
#chat-view .back-btn:hover { background: rgba(255,255,255,.07); }
#chat-view #chat-header-profil { gap: .62rem !important; }
#chat-view .chat-av {
  width: 48px;
  height: 48px;
  border: 2px solid var(--matondi-gold);
  box-shadow: 0 0 0 3px rgba(201,154,53,.10);
}
#chat-view .chat-pname {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.15;
}
.chat-verified-badge {
  display: inline-flex;
  width: 18px;
  height: 18px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--matondi-pink);
  color: #fff;
  font-size: 9px;
  box-shadow: 0 0 0 2px rgba(239,47,103,.12);
}
#chat-view .chat-pstatus {
  position: relative;
  padding-left: 12px;
  margin-top: 3px;
  color: rgba(255,255,255,.78);
  font-size: 11px;
}
#chat-view .chat-pstatus::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  transform: translateY(-50%);
  background: #18cf45;
}
#chat-view .chat-pstatus.away::before { background: #8b8580; }
#chat-view .chat-hbtns { gap: 4px; }
#chat-view .chat-hbtns .icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  color: var(--matondi-gold-light);
  background: transparent;
  border: 0;
  font-size: 17px;
}
#chat-view .chat-hbtns .icon-btn:hover { background: rgba(255,255,255,.08); }

#chat-view .chat-messages {
  flex: 1 1 auto;
  min-height: 0;
  padding: 1rem .9rem .9rem;
  gap: 10px;
  background: #fff;
  overscroll-behavior: contain;
}
#chat-view .day-sep {
  align-self: center;
  width: fit-content;
  padding: 5px 14px;
  border-radius: 999px;
  background: #f2eee8;
  color: #6f6862;
  font-size: 10px;
  letter-spacing: .01em;
}
#chat-view .msg-wrap { gap: 3px; }
#chat-view .bubble {
  max-width: min(78%, 310px);
  padding: .68rem .9rem;
  border: 0;
  box-shadow: none;
  font-size: 13.5px;
  line-height: 1.5;
}
#chat-view .bubble.them {
  background: #f2f2f2;
  color: #17130f;
  border-radius: 18px 18px 18px 5px;
}
#chat-view .bubble.me {
  background: linear-gradient(135deg,#d4a329 0%,#a97b17 100%);
  color: #fff;
  border-radius: 18px 18px 5px 18px;
  box-shadow: 0 4px 12px rgba(169,123,23,.13);
}
#chat-view .bubble-time {
  padding: 0 5px;
  color: #8b8580;
  font-size: 9.5px;
}
#chat-view .msg-wrap.me .bubble-time { color: #8b8580; }
#chat-view .msg-statut-lu { color: var(--matondi-gold-dark) !important; }

#chat-view .voice-bubble {
  min-width: 190px;
  max-width: 245px;
  padding: .58rem .72rem;
  background: #f2f2f2;
  border: 0;
  border-radius: 18px 18px 18px 5px;
}
#chat-view .voice-bubble.me {
  background: linear-gradient(135deg,#d4a329,#9c731b);
  color: #fff;
  border-radius: 18px 18px 5px 18px;
}
#chat-view .voice-bubble .play-btn {
  width: 32px;
  height: 32px;
  background: var(--matondi-gold-dark);
  color: #fff;
}
#chat-view .voice-bubble.me .play-btn { background: rgba(255,255,255,.24); }
#chat-view .voice-bubble .wbar { background: #bdb8b2; }
#chat-view .voice-bubble.me .wbar { background: rgba(255,255,255,.56); }
#chat-view .voice-bubble .voice-dur { color: #77716c; }
#chat-view .voice-bubble.me .voice-dur { color: rgba(255,255,255,.78); }

#chat-view .chat-more-menu {
  top: 69px;
  right: 10px;
  width: min(270px, calc(100vw - 28px));
  border-radius: 18px;
  border: 1px solid #ece8e2;
  background: #fff;
  box-shadow: 0 18px 44px rgba(0,0,0,.18);
}
#chat-view .chat-more-item {
  min-height: 45px;
  padding: .7rem .85rem;
  font-size: 12.5px;
}
#chat-view .chat-more-item i { color: #17130f; }
#chat-view .chat-more-item.danger,
#chat-view .chat-more-item.danger i { color: var(--matondi-pink); }

/* Compositeur : sablier + + + champ/micro + envoi, sans empilement. */
#chat-view .chat-composer-wrap {
  flex: 0 0 auto;
  background: #fff;
  border-top: 1px solid #eeeae5;
  padding: .62rem .7rem max(.55rem, env(safe-area-inset-bottom));
  box-shadow: 0 -7px 22px rgba(0,0,0,.04);
  z-index: 25;
}
#chat-view .chat-input-zone {
  display: grid;
  grid-template-columns: 42px 42px minmax(0,1fr) 48px;
  align-items: center;
  gap: 7px;
  padding: 0;
  border: 0;
  background: transparent;
  position: relative;
}
#chat-view .composer-tool {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid #e4dfd8;
  background: #fff;
  color: var(--matondi-gold-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  box-shadow: 0 3px 10px rgba(0,0,0,.05);
  transition: .16s ease;
}
#chat-view .composer-tool:active { transform: scale(.94); }
#chat-view .ephemere-tool[style*="var(--gold-d)"] {
  border-color: rgba(239,47,103,.32);
  box-shadow: 0 0 0 4px rgba(239,47,103,.08);
}
#chat-view .chat-input-shell {
  position: relative;
  min-width: 0;
}
#chat-view .chat-input-zone textarea {
  display: block;
  width: 100%;
  min-height: 44px;
  max-height: 108px;
  margin: 0;
  padding: .7rem 45px .68rem 14px;
  border: 1px solid #e4dfd8;
  border-radius: 23px;
  background: #fafafa;
  color: #211d19;
  font-size: 13px;
  line-height: 1.45;
  resize: none;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.8);
}
#chat-view .chat-input-zone textarea:focus {
  background: #fff;
  border-color: rgba(201,154,53,.62);
  box-shadow: 0 0 0 3px rgba(201,154,53,.08);
}
#chat-view .chat-mic-btn {
  position: absolute !important;
  right: 5px;
  bottom: 4px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 0;
  background: transparent;
  color: var(--matondi-gold-dark);
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  z-index: 3;
}
#chat-view .chat-mic-btn:active { background: #fff5d9; }
#chat-view .send-btn {
  width: 48px;
  height: 48px;
  align-self: center;
  border: 0;
  border-radius: 50%;
  background: linear-gradient(135deg,#e8b83d,#bd861d) !important;
  color: #17120b !important;
  box-shadow: 0 7px 16px rgba(189,134,29,.24);
  font-size: 17px;
}
#chat-view .send-btn:hover { transform: none; }
#chat-view .send-btn:active { transform: scale(.94); }
#chat-view .chat-encryption-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 23px;
  padding-top: 6px;
  color: #9a938c;
  font-size: 9.5px;
  text-align: center;
}
#chat-view .chat-encryption-note i { font-size: 9px; color: #8e877f; }

#chat-view .attach-menu {
  bottom: 56px;
  min-width: 184px;
  padding: .42rem;
  border-radius: 17px !important;
  border: 1px solid #e9e5df;
  background: #fff !important;
  box-shadow: 0 15px 38px rgba(0,0,0,.15);
  z-index: 50;
}
#chat-view .chat-attach-menu { left: 48px; right: auto; }
#chat-view .chat-ephemeral-menu { left: 0; right: auto; }
#chat-view .attach-opt {
  min-height: 39px;
  padding: .55rem .65rem;
  color: #28231f;
  border-radius: 11px;
  font-size: 12px;
}
#chat-view .attach-opt i { color: var(--matondi-gold-dark); }
#chat-view .attach-opt:hover { background: #faf7f1 !important; }

/* L'écran chat est autonome : la navigation globale ne doit pas le traverser visuellement. */
body:has(#chat-view:not([hidden])) #bottomnav { visibility: hidden; pointer-events: none; }

@media (max-width: 360px) {
  #chat-view .chat-input-zone {
    grid-template-columns: 38px 38px minmax(0,1fr) 44px;
    gap: 5px;
  }
  #chat-view .composer-tool { width: 38px; height: 38px; }
  #chat-view .send-btn { width: 44px; height: 44px; }
  #chat-view .chat-av { width: 44px; height: 44px; }
  #chat-view .chat-hbtns .icon-btn { width: 34px; height: 34px; }
}
body.chat-open #bottomnav { visibility: hidden !important; pointer-events: none !important; }

/* ========================================================================
   MATONDI — PHASE 2 VISUELLE GLOBALE (2026-08-29)
   Alignement final des écrans principaux sur les références adoptées.
   Aucun comportement métier n'est modifié par cette couche.
   ======================================================================== */

/* ---------- Socle ---------- */
#screen-discover,
#screen-messages,
#screen-verify,
#screen-evenements,
#screen-profile {
  background: #fff !important;
}

#topnav {
  background:
    radial-gradient(circle at 8% -10%, rgba(241,200,102,.14), transparent 32%),
    linear-gradient(180deg,#11100d 0%,#090806 100%) !important;
}

/* ---------- Messages : référence liste ---------- */
#screen-messages .messages-page-head {
  padding: 1.05rem 1.1rem .72rem;
  border-bottom: 0;
}
#screen-messages .messages-page-head h1 {
  margin: 0;
  color: #17130f;
  font: 800 1.85rem/1.08 var(--fb);
  letter-spacing: -.02em;
}
#screen-messages .messages-page-head p {
  margin: .28rem 0 0;
  color: #77716b;
  font-size: 11.5px;
}
#screen-messages .messages-compose {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(201,154,53,.34);
  background: #fff;
  color: #9b711d;
  box-shadow: 0 5px 16px rgba(0,0,0,.07);
}
#screen-messages .messages-summary-dot {
  width: 7px;
  height: 7px;
  margin-right: 4px;
  display: inline-block;
  border-radius: 50%;
  background: #ef2f67;
  box-shadow: 0 0 0 4px rgba(239,47,103,.08);
}
#screen-messages .match-av-wrap { position: relative; }
#screen-messages .match-new-dot {
  position: absolute;
  right: -2px;
  top: -2px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #ef2f67;
  border: 2px solid #fff;
}
#screen-messages .match-verified,
#screen-messages .conv-verified {
  margin-left: 5px;
  color: #ef2f67;
  font-size: .82em;
}
#screen-messages .messages-search-tools {
  display: grid;
  grid-template-columns: minmax(0,1fr) 46px;
  gap: 9px;
  align-items: center;
}
#screen-messages .messages-filter-btn {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(201,154,53,.34);
  background: #fff;
  color: #9b711d;
  box-shadow: 0 4px 14px rgba(0,0,0,.06);
}
#screen-messages .messages-filter-pills {
  display: flex;
  gap: 7px;
  padding: 0 1.15rem .65rem;
  overflow-x: auto;
  scrollbar-width: none;
}
#screen-messages .messages-filter-pills[hidden] { display: none !important; }
#screen-messages .messages-filter-pills::-webkit-scrollbar { display: none; }
#screen-messages .messages-filter-pills button {
  flex: 0 0 auto;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid #e8e3dc;
  background: #fff;
  color: #777069;
  font-size: 11px;
  font-weight: 700;
}
#screen-messages .messages-filter-pills button.active {
  border-color: #17130f;
  background: #17130f;
  color: #f2c45a;
}
#screen-messages #conv-list {
  margin: .1rem .85rem 1rem;
  border: 0;
  border-radius: 0;
  overflow: visible;
}
#screen-messages .conv-swipe-wrap {
  margin-bottom: 7px;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 3px 14px rgba(0,0,0,.035);
}
#screen-messages .conv-item {
  min-height: 76px;
  padding: .72rem .78rem;
  border: 1px solid #eee9e3;
  border-radius: 18px;
  background: #fff !important;
}
#screen-messages .conv-av {
  width: 54px;
  height: 54px;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1.5px rgba(201,154,53,.72);
}
#screen-messages .conv-name {
  display: inline-flex;
  align-items: center;
  color: #17130f;
  font-size: 14px;
  font-weight: 800;
}
#screen-messages .conv-time { color: #a29b94; font-size: 10px; }
#screen-messages .conv-bottom-line {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
}
#screen-messages .conv-preview {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  color: #8a837c;
  font-size: 11.5px;
}
#screen-messages .conv-preview.unread { color: #3e3934; font-weight: 700; }
#screen-messages .unread-dot {
  flex: 0 0 auto;
  min-width: 21px;
  width: auto;
  height: 21px;
  padding: 0 6px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #ef2f67;
  color: #fff;
  font-size: 9px;
  font-weight: 800;
}

/* ---------- Conversation ouverte ---------- */
#chat-view .chat-messages { padding: 1.05rem .9rem 1.2rem; }
#chat-view .chat-date-sep {
  align-self: center;
  padding: 5px 11px;
  border-radius: 999px;
  background: #f2eee8;
  color: #777069;
  font-size: 9.5px;
}
#chat-view .bubble.me,
#chat-view .msg-wrap.me .msg-bubble {
  background: linear-gradient(135deg,#d5a32c,#9e7218) !important;
  color: #fff !important;
}
#chat-view .bubble.them,
#chat-view .msg-wrap.them .msg-bubble {
  background: #f1f1f1 !important;
  color: #17130f !important;
}
#chat-view .chat-hbtns { gap: 4px; }
#chat-view .chat-hbtns .icon-btn {
  width: 37px;
  height: 37px;
  border: 1px solid rgba(201,154,53,.15);
  color: #f1c866;
  background: rgba(255,255,255,.035);
}

/* ---------- Vérification ---------- */
#screen-verify { padding: 0 0 84px; }
#screen-verify .verify-hero {
  margin: 0;
  padding: 1.3rem 1.05rem 1.05rem;
  border: 0;
  border-radius: 0 0 24px 24px;
  background:
    radial-gradient(circle at 92% 0, rgba(241,200,102,.17), transparent 38%),
    linear-gradient(160deg,#15110d,#090806) !important;
  color: #fff;
  box-shadow: 0 9px 28px rgba(0,0,0,.12);
}
#screen-verify .verify-hero h2 {
  margin: 0;
  color: #fff;
  font: 800 1.65rem/1.1 var(--fb);
}
#screen-verify .verify-hero > p {
  margin-top: .35rem;
  color: rgba(255,255,255,.65);
  font-size: 11.5px;
}
#screen-verify .verify-progress-card {
  margin-top: 1rem;
  padding: .85rem .9rem;
  border: 1px solid rgba(241,200,102,.22);
  border-radius: 16px;
  background: rgba(255,255,255,.045);
}
#screen-verify .verify-progress-copy {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
}
#screen-verify .verify-progress-copy strong { color: #f1c866; font-size: 12px; }
#screen-verify .verify-progress-copy span { color: rgba(255,255,255,.52); font-size: 9.5px; text-align: right; }
#screen-verify .verify-progress-track {
  height: 5px;
  margin-top: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255,255,255,.12);
}
#screen-verify .verify-progress-track span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg,#c99a35,#f1c866);
  transition: width .25s ease;
}
#screen-verify .vp-wrap { margin-top: .8rem; }
#screen-verify #vp-badge { border: 1px solid rgba(255,255,255,.12); }
#screen-verify #vp-badge-desc { color: rgba(255,255,255,.58) !important; }
#screen-verify .verify-list { padding: 1rem .95rem .3rem; }
#screen-verify .verify-card {
  min-height: 88px;
  margin-bottom: 10px;
  padding: .85rem;
  border: 1px solid #ece7e1;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 5px 18px rgba(0,0,0,.055);
}
#screen-verify .verify-card.done { border-color: rgba(46,155,89,.22); background: #fff; }
#screen-verify .v-icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: #f8f5ef;
}
#screen-verify .v-icon.ok { background: #edf8f1; color: #2e9b59; }
#screen-verify .v-icon.req { background: #fff0f4; color: #ef2f67; }
#screen-verify .v-icon.pend { background: #fff8e8; color: #a87816; }
#screen-verify .v-label { color: #17130f; font-weight: 800; }
#screen-verify .v-desc { color: #8b847d; }
#screen-verify .media-section {
  margin: .4rem .95rem 1rem;
  padding: 1rem;
  border: 1px solid #ece7e1;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 5px 18px rgba(0,0,0,.05);
}
#screen-verify .media-section-title { color: #17130f; }
#screen-verify .media-section-title i { color: #c99a35; }

/* ---------- Événements : référence utilisateur ---------- */
#screen-evenements { padding-bottom: 84px; }
#screen-evenements .events-shell { padding: 0 0 1rem; }
#screen-evenements .events-head {
  padding: 1.1rem 1.05rem .72rem;
  background: #fff;
}
#screen-evenements .events-head h2 {
  margin: 0;
  color: #17130f;
  font: 800 1.8rem/1.05 var(--fb);
}
#screen-evenements .events-head p {
  margin-top: .3rem;
  color: #7d766f;
  font-size: 11.5px;
}
#screen-evenements .events-tabs {
  display: flex;
  gap: 7px;
  padding: 0 1.05rem .72rem;
  overflow-x: auto;
  scrollbar-width: none;
}
#screen-evenements .events-tabs::-webkit-scrollbar { display:none; }
#screen-evenements .events-tabs span {
  flex: 0 0 auto;
  padding: 8px 13px;
  border: 1px solid #e8e3dc;
  border-radius: 999px;
  background: #fff;
  color: #777069;
  font-size: 10.5px;
  font-weight: 700;
}
#screen-evenements .events-tabs span.active {
  border-color: #17130f;
  background: #17130f;
  color: #f1c866;
}
#screen-evenements .events-tools {
  display: grid;
  grid-template-columns: minmax(0,1fr) 46px;
  gap: 9px;
  padding: 0 1.05rem .9rem;
}
#screen-evenements .events-search-field {
  position: relative;
  min-width: 0;
}
#screen-evenements .events-search-field i {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #9a938c;
}
#screen-evenements .events-search-field input {
  width: 100%;
  min-height: 46px;
  padding: 0 14px 0 40px;
  border: 1px solid #e8e3dc;
  border-radius: 999px;
  background: #f8f8f8;
  color: #17130f;
  outline: none;
}
#screen-evenements .events-search-field input:focus {
  border-color: rgba(201,154,53,.58);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(201,154,53,.08);
}
#screen-evenements .events-filter-icon {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(201,154,53,.35);
  background: #fff;
  color: #9b711d;
}
#screen-evenements #evenements-list { padding: 0 .85rem; }
#screen-evenements .event-card {
  margin-bottom: 13px;
  overflow: hidden;
  border: 1px solid #ece7e1;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(0,0,0,.07);
}
#screen-evenements .event-visual {
  position: relative;
  height: 178px;
  overflow: hidden;
  background: #17130f;
}
#screen-evenements .event-visual img { width:100%; height:100%; object-fit:cover; }
#screen-evenements .event-visual::after {
  content:"";
  position:absolute;
  inset:45% 0 0;
  background:linear-gradient(transparent,rgba(0,0,0,.35));
  pointer-events:none;
}
#screen-evenements .event-date-badge {
  position:absolute;
  z-index:2;
  left:12px;
  top:12px;
  width:48px;
  height:54px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  border-radius:13px;
  background:rgba(255,255,255,.95);
  color:#17130f;
  box-shadow:0 6px 16px rgba(0,0,0,.14);
}
#screen-evenements .event-date-badge strong { font-size:18px; line-height:1; }
#screen-evenements .event-date-badge span { margin-top:3px; color:#9b711d; font-size:9px; font-weight:800; text-transform:uppercase; }
#screen-evenements .event-status-badge {
  position:absolute;
  z-index:2;
  right:12px;
  top:12px;
  display:flex;
  align-items:center;
  gap:5px;
  padding:6px 9px;
  border-radius:999px;
  background:rgba(9,8,6,.72);
  color:#fff;
  border:1px solid rgba(255,255,255,.16);
  backdrop-filter:blur(8px);
  font-size:9px;
  font-weight:700;
}
#screen-evenements .event-status-badge i { color:#f1c866; font-size:6px; }
#screen-evenements .event-body { padding: .9rem .95rem 1rem; }
#screen-evenements .event-title-row { display:flex; gap:12px; align-items:flex-start; }
#screen-evenements .event-title { flex:1; color:#17130f; font-size:14px; font-weight:850; line-height:1.25; }
#screen-evenements .event-price { flex:0 0 auto; color:#9b711d; font-size:15px; font-weight:900; }
#screen-evenements .event-meta,
#screen-evenements .event-location { margin-top:7px; color:#777069; font-size:10.5px; line-height:1.45; }
#screen-evenements .event-meta i,
#screen-evenements .event-location i { width:16px; color:#b48525; }
#screen-evenements .event-description { margin-top:9px; color:#5f5953; font-size:11.5px; line-height:1.5; }
#screen-evenements .event-actions {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-top:12px;
  padding-top:11px;
  border-top:1px solid #f0ece7;
}
#screen-evenements .event-members { color:#89827b; font-size:10px; }
#screen-evenements .event-btn {
  min-height:36px;
  padding:0 14px;
  border:0;
  border-radius:999px;
  background:linear-gradient(135deg,#f1c866,#c99a35);
  color:#17120b;
  font-size:10.5px;
  font-weight:800;
}
#screen-evenements .event-btn.registered {
  background:#edf8f1;
  color:#277c49;
  border:1px solid rgba(46,155,89,.2);
}

/* ---------- Profil : référence adoptée, sans duplication Vérification ---------- */
#screen-profile .profile-hero {
  padding: 1.35rem 1rem 1.2rem;
  border-radius: 0 0 26px 26px;
  background:
    radial-gradient(circle at 85% 5%, rgba(241,200,102,.14), transparent 32%),
    linear-gradient(160deg,#15110d,#090806) !important;
  box-shadow: 0 9px 28px rgba(0,0,0,.12);
}
#screen-profile .my-name { margin-top:.7rem; font:800 1.85rem/1.05 var(--fb); letter-spacing:-.02em; }
#screen-profile .profile-body { padding: 1rem .9rem 2rem; }
#screen-profile #profile-body > div[id$="-section"] { padding:0 0 .62rem !important; }
#screen-profile #profile-body > div[id$="-section"] > div {
  min-height:72px;
  border-radius:18px !important;
  box-shadow:0 5px 18px rgba(0,0,0,.05) !important;
}
#screen-profile .prof-section { margin-top:.85rem; }
#screen-profile .prof-section-title { margin:0 0 .45rem .2rem; color:#8b837b; font-size:10.5px; text-transform:uppercase; letter-spacing:.07em; }
#screen-profile .prof-card,
#screen-profile .danger-zone {
  overflow:hidden;
  border:1px solid #ece7e1;
  border-radius:18px;
  background:#fff;
  box-shadow:0 4px 16px rgba(0,0,0,.045);
}
#screen-profile .prof-row,
#screen-profile .danger-row { min-height:48px; }
#screen-profile .prof-key i { color:#9b711d; width:18px; }
#screen-profile .prof-val { color:#756e68; }
#screen-profile .danger-row { border-color:#f0ece7; }

/* ---------- Modales et écrans sans maquette dédiée : même langage ---------- */
.modal-sheet {
  border:1px solid rgba(201,154,53,.10);
}
.modal-title { font-family:var(--fb); font-weight:800; letter-spacing:-.01em; }
.modal-close { border:1px solid #ece8e2; }

/* Profil ouvert depuis une conversation : le bouton reste sous les zones
   réservées d'iOS/Android et offre une cible tactile confortable. */
#modal-profil-partenaire .modal-close {
  top:2rem;
  top:max(2rem, calc(env(safe-area-inset-top, 0px) + 1.25rem));
  right:1rem;
  right:max(1rem, calc(env(safe-area-inset-right, 0px) + 1rem));
  width:42px;
  height:42px;
  z-index:5;
  font-size:17px;
  box-shadow:0 4px 14px rgba(0,0,0,.10);
}
.empty-state i { color:#c99a35; }

@media (max-width: 350px) {
  #screen-messages .messages-search-tools,
  #screen-evenements .events-tools { grid-template-columns:minmax(0,1fr) 42px; gap:6px; }
  #screen-messages .messages-filter-btn,
  #screen-evenements .events-filter-icon { width:42px; height:42px; }
  #screen-evenements .event-visual { height:160px; }
  #screen-verify .verify-progress-copy { display:block; }
  #screen-verify .verify-progress-copy span { display:block; margin-top:4px; text-align:left; }
}

/* =========================================================
   MATONDI — Accent rose renforcé
   Modification strictement chromatique : Messages / Chat / Profil
   ========================================================= */

/* Messages : davantage de rose, sans modifier la mise en page. */
#screen-messages .messages-compose,
#screen-messages .messages-filter-btn {
  border-color: rgba(239,47,103,.32);
  color: var(--matondi-pink);
  box-shadow: 0 5px 16px rgba(239,47,103,.08);
}
#screen-messages .match-av {
  border-color: #fff;
  box-shadow: 0 0 0 2px rgba(239,47,103,.72);
}
#screen-messages .conv-av {
  border-color: #fff;
  box-shadow: 0 0 0 1.5px rgba(239,47,103,.55);
}
#screen-messages .conv-swipe-wrap {
  box-shadow: 0 3px 14px rgba(239,47,103,.045);
}
#screen-messages .conv-item {
  border-color: rgba(239,47,103,.12);
}
#screen-messages .conv-item:hover {
  background: #fff8fa !important;
  border-color: rgba(239,47,103,.22);
}
#screen-messages .messages-filter-pills button.active {
  border-color: #ef2f67;
  background: #ef2f67;
  color: #fff;
}
#screen-messages .search-field input:focus {
  border-color: rgba(239,47,103,.55);
  box-shadow: 0 0 0 3px rgba(239,47,103,.07);
}

/* Conversation : rose plus présent sur les actions et les messages envoyés. */
#chat-view .chat-header {
  border-bottom-color: rgba(239,47,103,.22);
}
#chat-view .chat-hbtns .icon-btn,
#chat-view .back-btn {
  color: #f66f96;
  border-color: rgba(239,47,103,.16);
}
#chat-view .chat-av {
  border-color: #ef2f67;
  box-shadow: 0 0 0 2px rgba(239,47,103,.13);
}
#chat-view .bubble.me,
#chat-view .msg-wrap.me .msg-bubble,
#chat-view .voice-bubble.me {
  background: linear-gradient(135deg,#f14a79,#d82358) !important;
  color: #fff !important;
}
#chat-view .msg-statut-lu {
  color: #ef2f67 !important;
}
#chat-view .composer-tool,
#chat-view .attach-toggle,
#chat-view .chat-mic-btn {
  color: #ef2f67 !important;
  border-color: rgba(239,47,103,.22);
}
#chat-view .chat-mic-btn:active {
  background: #fff0f4;
}
#chat-view .chat-input-zone textarea:focus {
  border-color: rgba(239,47,103,.5);
  box-shadow: 0 0 0 3px rgba(239,47,103,.07);
}
#chat-view .send-btn {
  background: linear-gradient(135deg,#f14a79,#d82358) !important;
  color: #fff !important;
}
#chat-view .attach-opt i {
  color: #ef2f67;
}
#chat-view .attach-opt:hover {
  background: #fff5f8 !important;
}

/* Profil : accents rose subtils, en gardant le noir/or premium. */
#screen-profile .profile-hero {
  background:
    radial-gradient(circle at 85% 5%, rgba(239,47,103,.18), transparent 34%),
    radial-gradient(circle at 15% 0%, rgba(241,200,102,.10), transparent 30%),
    linear-gradient(160deg,#15110d,#090806) !important;
}
#screen-profile .prof-section-title {
  color: #c93461;
}
#screen-profile .prof-card {
  border-color: rgba(239,47,103,.13);
  box-shadow: 0 4px 16px rgba(239,47,103,.045);
}
#screen-profile .prof-key i {
  color: #df3767;
}
#screen-profile #profile-body > div[id$="-section"] > div {
  box-shadow: 0 5px 18px rgba(239,47,103,.045) !important;
}

/* MATONDI — Ajustement conversation : bulles envoyées dorées.
   Conserve les autres accents roses validés. */
#chat-view .bubble.me,
#chat-view .msg-wrap.me .msg-bubble,
#chat-view .voice-bubble.me {
  background: linear-gradient(135deg,#f2c766,#c9972e) !important;
  color: #17120a !important;
}

/* Mode fantôme : accès promotionnel toujours visible dans l'en-tête profil. */
#screen-profile .profile-hero { position: relative; }
.ghost-mode-promo {
  position:absolute;top:14px;right:14px;z-index:3;
  display:flex;align-items:center;gap:7px;max-width:132px;
  padding:7px 9px;border:1px solid rgba(185,242,255,.5);border-radius:16px;
  background:linear-gradient(145deg,rgba(20,38,48,.92),rgba(4,12,18,.94));
  box-shadow:0 8px 24px rgba(0,0,0,.26),0 0 18px rgba(82,204,235,.12);
  color:#fff;cursor:pointer;text-align:left;transition:transform .18s ease,box-shadow .18s ease;
}
.ghost-mode-promo:hover,.ghost-mode-promo:focus-visible { transform:translateY(-1px);box-shadow:0 10px 28px rgba(0,0,0,.32),0 0 20px rgba(82,204,235,.2); }
.ghost-mode-promo-icon { font-size:20px;line-height:1; }
.ghost-mode-promo-copy { min-width:0;display:flex;flex-direction:column;line-height:1.05; }
.ghost-mode-promo-copy strong { font-size:11px;white-space:nowrap; }
.ghost-mode-promo-copy small { margin-top:4px;color:#b9f2ff;font-size:9px;font-weight:700;text-transform:uppercase;letter-spacing:.08em; }
.ghost-mode-promo.is-active { border-color:#75e6a6;background:linear-gradient(145deg,rgba(13,61,43,.96),rgba(4,24,17,.96)); }
.ghost-mode-promo.is-active .ghost-mode-promo-copy small { color:#8ff0b6; }
.ghost-benefit-list { display:grid;gap:9px;margin:14px 0 18px;padding:0;list-style:none; }
.ghost-benefit-list li { display:flex;gap:9px;align-items:flex-start;color:var(--mid);font-size:13px;line-height:1.45; }
.ghost-benefit-list i { width:18px;margin-top:2px;color:#0099bb;text-align:center; }
.ghost-warning-note { padding:11px 12px;border-radius:12px;background:#f4fbfd;border:1px solid #cdeef5;color:#315864;font-size:12px;line-height:1.5;margin-bottom:14px; }
@media(max-width:380px){.ghost-mode-promo-copy strong{font-size:10px}.ghost-mode-promo{right:9px;max-width:118px;padding:6px 8px}}
@media(max-width:520px){#profile-detail .pd-actions{gap:4px;padding:.7rem .55rem .85rem}#profile-detail .pd-actions .btn{min-width:0;padding:.65rem .45rem;font-size:10px}.pd-diamond-prefix{display:none}.pd-diamond-message-btn{flex:1.2}.pd-pass-btn{flex:.8}.pd-like-btn{flex:1}}

/* MATCH — célébration MATONDI, photos réelles et animation courte. */
#match-popup {
  z-index:1200;
  padding:max(14px, env(safe-area-inset-top, 0px)) 14px max(14px, env(safe-area-inset-bottom, 0px));
  overflow-y:auto;
  background:
    radial-gradient(circle at 18% 18%, rgba(239,47,103,.19), transparent 31%),
    radial-gradient(circle at 82% 28%, rgba(232,188,82,.22), transparent 34%),
    rgba(13,10,8,.91);
  -webkit-backdrop-filter:blur(13px) saturate(1.08);
  backdrop-filter:blur(13px) saturate(1.08);
  isolation:isolate;
}
#match-popup .match-celebration-glow {
  position:fixed;
  inset:0;
  z-index:0;
  pointer-events:none;
  background:radial-gradient(circle at center, rgba(223,177,67,.16), transparent 48%);
  animation:matchGlow 2.8s ease-in-out infinite;
}
#match-popup .match-popup-inner {
  position:relative;
  z-index:1;
  width:min(100%, 390px);
  margin:auto;
  padding:27px clamp(18px, 5vw, 28px) 23px;
  overflow:hidden;
  border:1px solid rgba(232,197,113,.36);
  border-radius:30px;
  background:linear-gradient(155deg, rgba(38,31,25,.94), rgba(19,15,12,.97));
  box-shadow:0 28px 80px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.09);
  animation:matchCardReveal .56s cubic-bezier(.22,.8,.22,1) both;
}
#match-popup .match-popup-inner::before {
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  background:linear-gradient(120deg, transparent 20%, rgba(255,255,255,.055) 48%, transparent 72%);
  transform:translateX(-100%);
  animation:matchSheen 1.15s .35s ease-out both;
}
#match-popup .match-sound-toggle {
  position:absolute;
  z-index:3;
  top:14px;
  right:14px;
  width:34px;
  height:34px;
  display:grid;
  place-items:center;
  border:1px solid rgba(232,197,113,.28);
  border-radius:50%;
  color:#ead18d;
  background:rgba(255,255,255,.055);
  cursor:pointer;
}
#match-popup .match-kicker {
  display:flex;
  align-items:center;
  justify-content:center;
  gap:7px;
  margin-bottom:8px;
  color:#ddb451;
  font-size:10px;
  font-weight:700;
  letter-spacing:.22em;
}
#match-popup .match-kicker i { color:#ef5b88; }
#match-popup .match-title {
  margin:0 0 7px;
  color:#f6e4b4;
  font-family:var(--fd);
  font-size:clamp(2.25rem, 10vw, 3.05rem);
  font-weight:700;
  line-height:1;
  letter-spacing:.035em;
  text-shadow:0 0 24px rgba(232,188,82,.24);
  animation:matchTitleReveal .55s .16s ease-out both;
}
#match-popup .match-sub {
  max-width:290px;
  margin:0 auto 21px;
  color:rgba(255,255,255,.74);
  font-size:13px;
  line-height:1.5;
  letter-spacing:0;
}
#match-popup .match-avs {
  position:relative;
  display:grid;
  grid-template-columns:minmax(0,1fr) 56px minmax(0,1fr);
  align-items:center;
  gap:0;
  width:100%;
  margin:0 auto 18px;
}
#match-popup .match-avs::before {
  content:"";
  position:absolute;
  z-index:0;
  top:49px;
  left:25%;
  right:25%;
  height:1px;
  background:linear-gradient(90deg, #d6a733, #ef5b88, #d6a733);
  box-shadow:0 0 12px rgba(239,91,136,.75);
  animation:matchLineReveal .5s .52s ease-out both;
}
#match-popup .match-person {
  position:relative;
  z-index:1;
  min-width:0;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:8px;
}
#match-popup .match-person-me { animation:matchPortraitLeft .6s .12s cubic-bezier(.2,.8,.2,1) both; }
#match-popup .match-person-them { animation:matchPortraitRight .6s .12s cubic-bezier(.2,.8,.2,1) both; }
#match-popup .match-portrait {
  width:100px;
  height:100px;
  padding:3px;
  overflow:hidden;
  border-radius:50%;
  background:linear-gradient(145deg, #f7db88, #a87313 58%, #ef5b88);
  box-shadow:0 0 0 3px rgba(231,190,84,.13), 0 12px 30px rgba(0,0,0,.38), 0 0 23px rgba(225,177,61,.19);
}
#match-popup .match-portrait img,
#match-popup .match-portrait > span {
  width:100%;
  height:100%;
  display:flex;
  align-items:center;
  justify-content:center;
  border:2px solid #211a14;
  border-radius:50%;
  object-fit:cover;
  color:#fff;
  font-family:var(--fd);
  font-size:1.55rem;
  font-weight:700;
}
#match-popup .match-person > span {
  width:100%;
  overflow:hidden;
  color:#fff;
  font-size:12px;
  font-weight:600;
  text-overflow:ellipsis;
  white-space:nowrap;
}
#match-popup .match-connection {
  position:relative;
  z-index:2;
  display:grid;
  place-items:center;
  align-self:center;
  margin-top:-20px;
}
#match-popup .match-heart {
  width:52px;
  height:52px;
  display:grid;
  place-items:center;
  border:1px solid rgba(255,255,255,.16);
  border-radius:50%;
  color:#fff;
  background:linear-gradient(145deg, #ff6a96, #e62d67);
  box-shadow:0 0 0 7px rgba(239,47,103,.1), 0 0 28px rgba(239,47,103,.48);
  font-size:21px;
  animation:matchHeartBurst .7s .48s cubic-bezier(.22,1.5,.42,1) both, matchHeartPulse 1.8s 1.2s ease-in-out infinite;
}
#match-popup .match-common {
  margin:0 0 18px;
  padding:11px 12px;
  border:1px solid rgba(232,197,113,.2);
  border-radius:16px;
  background:rgba(255,255,255,.045);
}
#match-popup .match-common-title {
  margin-bottom:8px;
  color:#ddbd69;
  font-size:10px;
  font-weight:700;
  letter-spacing:.08em;
  text-transform:uppercase;
}
#match-popup .match-common-tags { display:flex; flex-wrap:wrap; justify-content:center; gap:6px; }
#match-popup .match-common-tags span {
  padding:5px 9px;
  border:1px solid rgba(239,91,136,.25);
  border-radius:999px;
  color:#f7e8c1;
  background:rgba(239,91,136,.08);
  font-size:10px;
}
#match-popup .match-btns {
  position:relative;
  z-index:2;
  width:100%;
  max-width:none;
  gap:9px;
}
#match-popup .match-btns .btn { min-height:48px; border-radius:999px; }
#match-popup #mp-message {
  color:#17110a;
  border-color:#f3ce68;
  background:linear-gradient(135deg, #f7d36d, #d9a62f);
  box-shadow:0 10px 25px rgba(217,166,47,.24);
}
#match-popup #mp-message i { animation:matchMessageNudge 2s 1.25s ease-in-out infinite; }
#match-popup #mp-continue {
  color:#f2e7cd;
  border-color:rgba(239,215,159,.35);
  background:rgba(255,255,255,.035);
}
#match-popup .match-sparkles { position:fixed; inset:0; z-index:0; overflow:hidden; pointer-events:none; }
#match-popup .match-sparkles span {
  position:absolute;
  width:7px;
  height:7px;
  border-radius:2px;
  background:#f4cb62;
  box-shadow:0 0 11px currentColor;
  opacity:0;
  animation:matchSpark 2.4s ease-out infinite;
}
#match-popup .match-sparkles span:nth-child(3n) { color:#ef5b88; background:#ef5b88; border-radius:50%; }
#match-popup .match-sparkles span:nth-child(4n) { color:#fff0c6; background:#fff0c6; transform:rotate(45deg); }
#match-popup .match-sparkles span:nth-child(1) { left:11%; top:18%; animation-delay:.05s; }
#match-popup .match-sparkles span:nth-child(2) { left:24%; top:10%; animation-delay:.55s; }
#match-popup .match-sparkles span:nth-child(3) { left:38%; top:19%; animation-delay:.9s; }
#match-popup .match-sparkles span:nth-child(4) { left:57%; top:11%; animation-delay:.25s; }
#match-popup .match-sparkles span:nth-child(5) { left:76%; top:17%; animation-delay:1.15s; }
#match-popup .match-sparkles span:nth-child(6) { left:89%; top:29%; animation-delay:.45s; }
#match-popup .match-sparkles span:nth-child(7) { left:8%; top:48%; animation-delay:1.35s; }
#match-popup .match-sparkles span:nth-child(8) { left:17%; top:72%; animation-delay:.75s; }
#match-popup .match-sparkles span:nth-child(9) { left:34%; top:86%; animation-delay:1.55s; }
#match-popup .match-sparkles span:nth-child(10) { left:62%; top:84%; animation-delay:.38s; }
#match-popup .match-sparkles span:nth-child(11) { left:82%; top:73%; animation-delay:1.75s; }
#match-popup .match-sparkles span:nth-child(12) { left:93%; top:54%; animation-delay:.95s; }
#match-popup .match-sparkles span:nth-child(13) { left:48%; top:5%; animation-delay:1.9s; }
#match-popup .match-sparkles span:nth-child(14) { left:52%; top:92%; animation-delay:1.05s; }

@keyframes matchCardReveal { from{opacity:0;transform:translateY(22px) scale(.96)} to{opacity:1;transform:none} }
@keyframes matchTitleReveal { from{opacity:0;transform:translateY(8px);letter-spacing:.12em} to{opacity:1;transform:none;letter-spacing:.035em} }
@keyframes matchPortraitLeft { from{opacity:0;transform:translateX(-52px) scale(.72)} to{opacity:1;transform:none} }
@keyframes matchPortraitRight { from{opacity:0;transform:translateX(52px) scale(.72)} to{opacity:1;transform:none} }
@keyframes matchLineReveal { from{opacity:0;transform:scaleX(0)} to{opacity:1;transform:scaleX(1)} }
@keyframes matchHeartBurst { 0%{opacity:0;transform:scale(.2) rotate(-16deg)} 70%{opacity:1;transform:scale(1.14) rotate(4deg)} 100%{opacity:1;transform:scale(1)} }
@keyframes matchHeartPulse { 0%,100%{transform:scale(1)} 50%{transform:scale(1.07)} }
@keyframes matchGlow { 0%,100%{opacity:.6;transform:scale(.96)} 50%{opacity:1;transform:scale(1.05)} }
@keyframes matchSheen { from{transform:translateX(-110%)} to{transform:translateX(110%)} }
@keyframes matchSpark { 0%{opacity:0;transform:translateY(14px) rotate(0) scale(.4)} 30%{opacity:.9} 100%{opacity:0;transform:translateY(-48px) rotate(150deg) scale(1.05)} }
@keyframes matchMessageNudge { 0%,76%,100%{transform:translateX(0)} 82%{transform:translateX(-2px)} 88%{transform:translateX(3px)} 94%{transform:translateX(-1px)} }

@media(max-width:360px), (max-height:660px) {
  #match-popup .match-popup-inner { padding:21px 16px 17px; border-radius:25px; }
  #match-popup .match-title { font-size:2.15rem; }
  #match-popup .match-sub { margin-bottom:14px; }
  #match-popup .match-portrait { width:82px; height:82px; }
  #match-popup .match-avs::before { top:40px; }
  #match-popup .match-avs { grid-template-columns:minmax(0,1fr) 48px minmax(0,1fr); margin-bottom:13px; }
  #match-popup .match-heart { width:44px; height:44px; font-size:18px; }
  #match-popup .match-common { margin-bottom:12px; padding:8px 10px; }
  #match-popup .match-btns .btn { min-height:43px; padding:.6rem 1rem; }
}
@media(prefers-reduced-motion:reduce) {
  #match-popup *, #match-popup *::before, #match-popup *::after {
    animation-duration:.01ms!important;
    animation-iteration-count:1!important;
    transition-duration:.01ms!important;
  }
}

/* CONVERSATION — cadre lié au viewport, seul l'historique défile. */
html.chat-open,
body.chat-open {
  width:100%;
  height:100%;
  overflow:hidden!important;
  overscroll-behavior:none;
}
#chat-view {
  position:fixed!important;
  inset:auto 0 auto 0!important;
  top:var(--chat-viewport-top, 0px)!important;
  width:100%;
  max-width:430px;
  height:var(--chat-viewport-height, 100vh)!important;
  height:var(--chat-viewport-height, 100svh)!important;
  height:var(--chat-viewport-height, 100dvh)!important;
  min-height:0;
  margin:0 auto;
  display:flex;
  flex-direction:column;
  overflow:hidden!important;
  overscroll-behavior:none;
  background:#fff;
  isolation:isolate;
}
#chat-view[hidden] { display:none!important; }
#chat-view .chat-header,
#chat-view .chat-search-bar {
  position:relative;
  inset:auto;
  flex:0 0 auto;
  width:100%;
  z-index:40;
}
#chat-view .chat-header {
  padding-top:calc(.72rem + env(safe-area-inset-top, 0px));
  min-height:calc(78px + env(safe-area-inset-top, 0px));
}
#chat-view .chat-search-bar {
  padding-top:calc(.6rem + env(safe-area-inset-top, 0px));
  min-height:calc(58px + env(safe-area-inset-top, 0px));
  z-index:41;
}
#chat-view .chat-messages {
  position:relative;
  flex:1 1 0!important;
  min-height:0!important;
  width:100%;
  overflow-x:hidden!important;
  overflow-y:auto!important;
  -webkit-overflow-scrolling:touch;
  overscroll-behavior-y:contain;
  touch-action:pan-y;
  scroll-padding-block:1rem;
}
#chat-view .chat-composer-wrap {
  position:relative;
  inset:auto;
  flex:0 0 auto;
  width:100%;
  margin:0;
  padding-bottom:max(.55rem, env(safe-area-inset-bottom, 0px));
  z-index:42;
  background:#fff;
}
#chat-view .chat-input-zone { overflow:visible; }

@media(max-height:560px) {
  #chat-view .chat-header {
    min-height:64px;
    padding-top:calc(.45rem + env(safe-area-inset-top, 0px));
    padding-bottom:.45rem;
  }
  #chat-view .chat-av { width:42px; height:42px; }
  #chat-view .chat-hbtns .icon-btn { width:34px; height:34px; }
  #chat-view .chat-composer-wrap { padding-top:.42rem; }
  #chat-view .chat-encryption-note { min-height:18px; padding-top:3px; }
}
