/* ==========================================================
   BayadLuxury — espace membre (complète admin.css)
   ========================================================== */
.auth-card { width: min(460px, 100%); text-align: start; }
.auth-card > a:first-child { justify-self: center; }
.auth { display: grid; gap: 14px; }
.auth-t { font-family: var(--f-display); font-weight: 600; font-size: 1.9rem; text-align: center; line-height: 1.15; }
.auth > .note { text-align: center; }
.auth-tabs { justify-self: center; }
.auth-tabs button.on, .auth.compact .auth-tabs button.on { background: linear-gradient(135deg, #C9A462, #8E6C33); color: #fff; }
.auth.compact .auth-tabs { justify-self: stretch; }
.auth.compact .auth-tabs button { flex: 1; }
.seller-by { display: flex; gap: 8px; align-items: center; color: var(--muted); font-size: .92rem; }
.seller-by .ic { color: var(--gold); width: 18px; height: 18px; }
.seller-panel .note .ic { display: inline; width: 15px; height: 15px; vertical-align: -2px; color: var(--gold); }
.badge.seller { background: #1C1915; color: #fff; }
.rq-acts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; }
.rq .rq-acts .btn { margin-top: 0; }

/* Onglets (également utilisés sur le site public) */
.seg { display: flex; gap: 4px; padding: 4px; border-radius: 999px; border: 1px solid var(--line); background: rgba(var(--glass), .6); overflow-x: auto; max-width: 100%; scrollbar-width: none; }
.seg button { padding: 8px 14px; border-radius: 999px; font-size: .88rem; color: var(--muted); white-space: nowrap; }

/* Bouton compte dans le header */
.acc-btn { position: relative; display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font-weight: 600; font-size: .92rem; white-space: nowrap; transition: border-color .2s; }
.acc-btn:hover { border-color: var(--gold); }
.acc-btn .ic { color: var(--gold); width: 18px; height: 18px; }
.dot-n { position: absolute; top: -4px; inset-inline-end: -4px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; display: grid; place-items: center; background: var(--danger); color: #fff; font-size: .7rem; font-weight: 600; }
@media (max-width: 1180px) { .acc-btn span { display: none; } .acc-btn { width: 44px; padding: 0; justify-content: center; } }
@media (max-width: 560px) { .hdr-wa { display: none !important; } }

/* Espace membre */
.shell.account .hello { color: var(--muted); font-size: .92rem; }
.side-langs { align-self: start; margin: 0 8px 8px; }
@media (max-width: 900px) { .side-langs { display: none; } }
.pill.mod-pending { color: var(--warn); } .pill.mod-approved { color: var(--ok); } .pill.mod-rejected { color: var(--danger); }
.prow.my { grid-template-columns: 76px minmax(0, 1.6fr) auto auto; }
.prow .reason { display: block; color: var(--danger); font-size: .82rem; margin-top: 2px; }
.conv-link { display: inline-flex; gap: 6px; align-items: center; margin-top: 4px; font-size: .82rem; color: var(--gold-text); }
.conv-link .ic { width: 15px; height: 15px; }
.mini-sel { padding: 6px 12px; }
.mini-sel select { font-size: .88rem; }
@media (max-width: 760px) { .prow.my { grid-template-columns: 64px minmax(0, 1fr); } .prow.my .pact { flex-wrap: wrap; } }

/* Messagerie */
.inbox.chat { grid-template-columns: minmax(280px, 360px) minmax(0, 1fr); }
.irow.conv { grid-template-columns: 52px minmax(0, 1fr) auto; }
.cthumb { width: 52px; height: 52px; border-radius: 26px 26px 10px 10px; overflow: hidden; flex: none; }
.cthumb img, .cthumb svg { width: 100%; height: 100%; object-fit: cover; }
.role { font-size: .72rem; color: var(--gold-text); font-weight: 400; margin-inline-start: 6px; }
.ptitle { color: var(--text) !important; opacity: .8; -webkit-line-clamp: 1 !important; }
.cmeta { display: grid; justify-items: end; gap: 6px; }
.cmeta .badge-n { margin: 0; }
.thread { display: flex; flex-direction: column; padding: 0; overflow: hidden; height: calc(100vh - 180px); min-height: 460px; }
.th-head { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.th-head .back-btn { margin: 0; }
.th-tx { display: grid; min-width: 0; }
.th-tx a { font-size: .85rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.th-tx a:hover { color: var(--gold-text); }
.bubbles { flex: 1; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 10px; overscroll-behavior: contain; }
.bubble { max-width: min(78%, 520px); align-self: flex-start; padding: 10px 14px 6px; border-radius: 18px 18px 18px 6px; background: var(--surface-2); border: 1px solid var(--line); }
.bubble.mine { align-self: flex-end; border-radius: 18px 18px 6px 18px; background: #1C1915; color: #fff; border-color: transparent; }
[dir="rtl"] .bubble { border-radius: 18px 18px 6px 18px; } [dir="rtl"] .bubble.mine { border-radius: 18px 18px 18px 6px; }
.bubble p { white-space: pre-wrap; word-break: break-word; }
.bubble time { display: block; text-align: end; font-size: .7rem; opacity: .7; margin-top: 2px; }
.safety { padding: 0 18px 8px; font-size: .8rem; }
.safety .ic { display: inline; width: 14px; height: 14px; vertical-align: -2px; color: var(--gold); }
.composer { display: flex; gap: 10px; align-items: flex-end; padding: 12px 14px; border-top: 1px solid var(--line); }
.composer textarea { flex: 1; resize: none; min-height: 46px; max-height: 160px; padding: 12px 16px; border-radius: 22px; border: 1px solid var(--line-2); background: rgba(var(--glass), .55); outline: none; font-size: 1rem; }
.composer textarea:focus { border-color: var(--gold); }
.composer .btn { width: 46px; padding: 0; flex: none; }
@media (max-width: 900px) {
  .inbox.chat { grid-template-columns: 1fr; }
  .thread { height: calc(100dvh - 190px); min-height: 380px; padding: 0; }
  .th-head .back-btn { display: grid; }
}

/* Favoris */
.fav { position: absolute; top: 12px; inset-inline-end: 12px; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .92); color: var(--text); box-shadow: var(--shadow-sm); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); transition: transform .2s; z-index: 2; }

.fav:hover { transform: scale(1.08); }
.fav .ic { width: 20px; height: 20px; }
.fav.on, .fav-btn.on { color: #D6455B; }
.fav.on .ic path, .fav-btn.on .ic path { fill: currentColor; }
html[data-theme="gold"] .fav { color: var(--text); }
html[data-theme="gold"] .fav.on { color: #B3263A; }

/* Objectifs et démarrage */
.account-onboard { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px 40px; }
.onboard { width: min(760px, 100%); }
.ob-card { display: grid; gap: 16px; padding: clamp(22px, 4vw, 38px); border-radius: 30px; border: 1px solid var(--line-2); background: rgba(var(--glass), .78); box-shadow: var(--shadow); }
.ob-step { font-size: .85rem; color: var(--gold-text); }
.ob-bar { height: 4px; border-radius: 4px; background: var(--surface-3); overflow: hidden; margin-top: -8px; }
.ob-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--gold-lo), var(--gold-hi)); transition: width .5s; }
.intents { display: grid; gap: 14px; }
.int-t { font-family: var(--f-display); font-weight: 600; font-size: clamp(1.7rem, 3.6vw, 2.3rem); line-height: 1.15; }
html[lang="ar"] .int-t { letter-spacing: 0; line-height: 1.5; }
.int-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 6px; }
@media (max-width: 560px) { .int-grid { grid-template-columns: 1fr; } }
.int-card { position: relative; display: grid; gap: 6px; justify-items: start; text-align: start; padding: 20px; border-radius: 22px; border: 1px solid var(--line); background: rgba(var(--glass), .5); transition: border-color .2s, background .2s, transform .2s; }
.int-card:hover { border-color: var(--line-2); transform: translateY(-2px); }
.int-card[aria-pressed="true"] { border-color: var(--gold); background: var(--gold-soft); box-shadow: inset 0 0 0 1px var(--gold); }
.int-card .gate-ic { width: 52px; height: 52px; margin-bottom: 6px; }
.int-card .gate-ic .ic { width: 24px; height: 24px; }
.int-card b { font-family: var(--f-display); font-weight: 500; font-size: 1.15rem; }
.int-card small { color: var(--muted); font-size: .9rem; }
.int-card .tick { position: absolute; top: 14px; inset-inline-end: 14px; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-2); color: transparent; }
.int-card[aria-pressed="true"] .tick { background: linear-gradient(135deg, #C9A462, #8E6C33); color: #fff; border-color: transparent; }
.int-card .tick .ic { width: 16px; height: 16px; }
.int-go { justify-self: end; }
.gate-ic.big { width: 72px; height: 72px; justify-self: center; } .gate-ic.big .ic { width: 32px; height: 32px; }
.rq-acts.center { justify-content: center; }
.ob-card .ob-done, .ob-card > div:last-child { display: grid; gap: 12px; }

/* Tableau de bord */
.home { display: grid; gap: 16px; }
.goal-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.tile { display: grid; gap: 4px; padding: 16px; border-radius: 20px; border: 1px solid var(--line); background: rgba(var(--glass), .58); transition: border-color .2s; }
.tile:hover { border-color: var(--gold); }
.tile .ic { color: var(--gold); width: 22px; height: 22px; }
.tile b { font-family: var(--f-display); font-weight: 500; font-size: 1.5rem; }
.tile span { color: var(--muted); font-size: .84rem; }
.hsec { display: grid; gap: 14px; }
.hsec-h { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; }
.hsec-h h2 { display: flex; gap: 8px; align-items: center; margin: 0; }
.hsec-h h2 .ic { width: 18px; height: 18px; }
.stat-row { display: flex; flex-wrap: wrap; gap: 8px; }
.mgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 10px; }
.mcard { display: grid; grid-template-columns: 70px 1fr; gap: 12px; align-items: center; padding: 8px; border-radius: 16px; border: 1px solid var(--line); background: rgba(var(--glass), .45); transition: border-color .2s; }
.mcard:hover { border-color: var(--gold); }
.mcard .th { width: 70px; height: 56px; border-radius: 12px; overflow: hidden; }
.mcard .th img, .mcard .th svg { width: 100%; height: 100%; object-fit: cover; }
.mcard b { display: block; font-weight: 500; font-size: .95rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mcard small { color: var(--muted); font-size: .82rem; }
.see-all { justify-self: start; display: inline-flex; gap: 6px; align-items: center; color: var(--gold-text); font-size: .92rem; }
.see-all .ic { width: 16px; height: 16px; }
.srow, .rrow { grid-template-columns: 52px minmax(0, 1fr) auto; }
.rrow .thumb { width: 64px; height: 52px; }
.rrow .thumb .ki { width: 52px; height: 52px; }
.search-form .rq-acts { justify-content: flex-end; }
.pill.st-contacted { color: #9DBDF2; } .pill.st-closed { color: var(--faint); }
@media (max-width: 600px) { .tiles { gap: 8px; } .tile { padding: 12px; } .tile b { font-size: 1.25rem; } .srow .pact { grid-column: 1 / -1; justify-content: flex-end; } }
@media (max-width: 480px) { .shell.account .side-nav a span:not(.badge-n) { display: none; } .shell.account .side-nav a { padding: 10px 4px; } .shell.account .side-foot .side-link span { display: none; } }

/* Sélecteurs de langue (connexion, démarrage, espace) */
.auth-card { position: relative; }
.auth-langs { position: absolute; top: 16px; inset-inline-end: 16px; }
.auth-card > a:first-of-type { margin-top: 18px; }
.ob-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.ob-top .crest { height: 42px; }
.ob-top .wm { font-size: 1.1rem; }
.top-r { display: flex; align-items: center; gap: 12px; }
.top-langs button { min-width: 32px; height: 28px; font-size: .78rem; }
@media (max-width: 560px) { .shell.account .hello { display: none; } .ob-top .wm { display: none; } }
